4 lines
54 KiB
JavaScript
4 lines
54 KiB
JavaScript
"object"!=typeof _paq&&(_paq=[]),"object"!=typeof window.Matomo&&(window.Matomo=window.Piwik=function(){function t(t){try{return ot(t)}catch(e){return unescape(t)}}function e(t){return"undefined"!==typeof t}function n(t){return"function"==typeof t}function i(t){return"object"==typeof t}function r(t){return"string"==typeof t||t instanceof String}function o(t){return"number"==typeof t||t instanceof Number}function a(t){return e(t)&&(o(t)||r(t)&&t.length)}function s(t){if(!t)return!0;var e,n=!0;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n=!1);return n}function u(t){"undefined"!==typeof console&&console&&console.error&&console.error(t)}function c(){var t,e,n,i,o;for(t=0;t<arguments.length;t+=1){var a,s;if(o=null,arguments[t]&&arguments[t].slice&&(o=arguments[t].slice()),r(n=(i=arguments[t]).shift())&&n.indexOf("::")>0)s=(a=n.split("::"))[0],n=a[1],"object"==typeof X[s]&&"function"==typeof X[s][n]?X[s][n].apply(X[s],i):o&&st.push(o);else for(e=0;e<at.length;e++)if(r(n)){s=at[e];var c=n.indexOf(".")>0;if(c)if(a=n.split("."),s&&"object"==typeof s[a[0]])s=s[a[0]],n=a[1];else if(o){st.push(o);break}if(s[n])s[n].apply(s,i);else{var f="The method '"+n+'\' was not found in "_paq" variable. Please have a look at the Matomo tracker documentation: https://developer.matomo.org/api-reference/tracking-javascript';if(u(f),!c)throw new TypeError(f)}if("addTracker"===n)break;if("setTrackerUrl"===n||"setSiteId"===n)break}else n.apply(at[e],i)}}function f(t,e,n,i){return t.addEventListener?(t.addEventListener(e,n,i),!0):t.attachEvent?t.attachEvent("on"+e,n):void(t["on"+e]=n)}function l(t){"complete"===Z.readyState?t():nt.addEventListener?nt.addEventListener("load",t,!1):nt.attachEvent&&nt.attachEvent("onload",t)}function d(t){var e=!1;(e=Z.attachEvent?"complete"===Z.readyState:"loading"!==Z.readyState)?t():(Z.addEventListener?f(Z,"DOMContentLoaded",function n(){Z.removeEventListener("DOMContentLoaded",n,!1),e||(e=!0,t())}):Z.attachEvent&&(Z.attachEvent("onreadystatechange",function i(){"complete"===Z.readyState&&(Z.detachEvent("onreadystatechange",i),e||(e=!0,t()))}),Z.documentElement.doScroll&&nt===nt.top&&function r(){if(!e){try{Z.documentElement.doScroll("left")}catch(n){return void setTimeout(r,0)}e=!0,t()}}()),f(nt,"load",function(){e||(e=!0,t())},!1))}function h(t,e,n){if(!t)return"";var i,r,o="";for(i in $)Object.prototype.hasOwnProperty.call($,i)&&($[i]&&"function"==typeof $[i][t])&&(r=(0,$[i][t])(e||{},n))&&(o+=r);return o}function g(){var t;lt=!0,h("unload");var e=(t=new Date).getTimeAlias();if(Y-e>3e3&&(Y=e+3e3),Y)do{t=new Date}while(t.getTimeAlias()<Y)}function m(t,e){var n=Z.createElement("script");n.type="text/javascript",n.src=t,n.readyState?n.onreadystatechange=function(){var t=this.readyState;"loaded"!==t&&"complete"!==t||(n.onreadystatechange=null,e())}:n.onload=e,Z.getElementsByTagName("head")[0].appendChild(n)}function p(){var t="";try{t=nt.top.document.referrer}catch(e){if(nt.parent)try{t=nt.parent.document.referrer}catch(n){t=""}}return""===t&&(t=Z.referrer),t}function v(t){var e=new RegExp("^([a-z]+):").exec(t);return e?e[1]:null}function C(t){var e=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)").exec(t);return e?e[1]:t}function T(t){return/^[0-9][0-9]*(\.[0-9]+)?$/.test(t)}function N(t,e){var n,i={};for(n in t)t.hasOwnProperty(n)&&e(t[n])&&(i[n]=t[n]);return i}function b(t){var e,n={};for(e in t)if(t.hasOwnProperty(e)){if(!T(t[e]))throw new Error('Parameter "'+e+'" provided value "'+t[e]+'" is not valid. Please provide a numeric value.');n[e]=Math.round(t[e])}return n}function k(t){var e,n="";for(e in t)t.hasOwnProperty(e)&&(n+="&"+rt(e)+"="+rt(t[e]));return n}function w(t,e){return 0===(t=String(t)).lastIndexOf(e,0)}function y(t,e){return-1!==(t=String(t)).indexOf(e,t.length-e.length)}function A(t,e){return-1!==(t=String(t)).indexOf(e)}function E(t,e){return(t=String(t)).substr(0,t.length-e)}function _(t,e,n){n||(n="");var i=(t=String(t)).indexOf("#"),r=t.length;-1===i&&(i=r);var o=t.substr(0,i),a=t.substr(i,r-i);return-1===o.indexOf("?")?o+="?":y(o,"?")||(o+="&"),o+rt(e)+"="+rt(n)+a}function S(t,e){if(-1===(t=String(t)).indexOf("?"+e+"=")&&-1===t.indexOf("&"+e+"="))return t;var n=t.indexOf("?");if(-1===n)return t;var i=t.substr(n+1),r=t.substr(0,n);if(i){var o="",a=i.indexOf("#");-1!==a&&(o=i.substr(a+1),i=i.substr(0,a));for(var s=i.split("&"),u=s.length-1;u>=0;u--)s[u].split("=")[0]===e&&s.splice(u,1);var c=s.join("&");c&&(r=r+"?"+c),o&&(r+="#"+o)}return r}function O(e,n){var i=new RegExp("[\\?&#]"+n+"=([^&#]*)").exec(e);return i?t(i[1]):""}function I(t){return t&&String(t)===t?t.replace(/^\s+|\s+$/g,""):t}function L(t){return unescape(rt(t))}function x(t){var e,n,i,r,o,a,s,u,c,f,l=function(t,e){return t<<e|t>>>32-e},d=function(t){var e,n="";for(e=7;e>=0;e--)n+=(t>>>4*e&15).toString(16);return n},h=[],g=1732584193,m=4023233417,p=2562383102,v=271733878,C=3285377520,T=[];for(f=(t=L(t)).length,n=0;n<f-3;n+=4)i=t.charCodeAt(n)<<24|t.charCodeAt(n+1)<<16|t.charCodeAt(n+2)<<8|t.charCodeAt(n+3),T.push(i);switch(3&f){case 0:n=2147483648;break;case 1:n=t.charCodeAt(f-1)<<24|8388608;break;case 2:n=t.charCodeAt(f-2)<<24|t.charCodeAt(f-1)<<16|32768;break;case 3:n=t.charCodeAt(f-3)<<24|t.charCodeAt(f-2)<<16|t.charCodeAt(f-1)<<8|128}for(T.push(n);14!=(15&T.length);)T.push(0);for(T.push(f>>>29),T.push(f<<3&4294967295),e=0;e<T.length;e+=16){for(n=0;n<16;n++)h[n]=T[e+n];for(n=16;n<=79;n++)h[n]=l(h[n-3]^h[n-8]^h[n-14]^h[n-16],1);for(r=g,o=m,a=p,s=v,u=C,n=0;n<=19;n++)c=l(r,5)+(o&a|~o&s)+u+h[n]+1518500249&4294967295,u=s,s=a,a=l(o,30),o=r,r=c;for(n=20;n<=39;n++)c=l(r,5)+(o^a^s)+u+h[n]+1859775393&4294967295,u=s,s=a,a=l(o,30),o=r,r=c;for(n=40;n<=59;n++)c=l(r,5)+(o&a|o&s|a&s)+u+h[n]+2400959708&4294967295,u=s,s=a,a=l(o,30),o=r,r=c;for(n=60;n<=79;n++)c=l(r,5)+(o^a^s)+u+h[n]+3395469782&4294967295,u=s,s=a,a=l(o,30),o=r,r=c;g=g+r&4294967295,m=m+o&4294967295,p=p+a&4294967295,v=v+s&4294967295,C=C+u&4294967295}return(c=d(g)+d(m)+d(p)+d(v)+d(C)).toLowerCase()}function P(t,e,n){return t||(t=""),e||(e=""),"translate.googleusercontent.com"===t?(""===n&&(n=e),t=C(e=O(e,"u"))):"cc.bingj.com"!==t&&"webcache.googleusercontent.com"!==t&&"74.6."!==t.slice(0,5)||(t=C(e=Z.links[0].href)),[t,e,n]}function R(t){var e=t.length;return"."===t.charAt(--e)&&(t=t.slice(0,e)),"*."===t.slice(0,2)&&(t=t.slice(1)),-1!==t.indexOf("/")&&(t=t.substr(0,t.indexOf("/"))),t}function q(t){if(!r(t=t&&t.text?t.text:t)){var n=Z.getElementsByTagName("title");n&&e(n[0])&&(t=n[0].text)}return t}function V(t){return t?!e(t.children)&&e(t.childNodes)?t.children:e(t.children)?t.children:[]:[]}function M(t,e){return!(!t||!e)&&(t.contains?t.contains(e):t===e||!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e)))}function D(t,n){if(t&&t.indexOf)return t.indexOf(n);if(!e(t)||null===t)return-1;if(!t.length)return-1;var i=t.length;if(0===i)return-1;for(var r=0;r<i;){if(t[r]===n)return r;r++}return-1}function U(t){function n(t,e){return nt.getComputedStyle?Z.defaultView.getComputedStyle(t,null)[e]:t.currentStyle?t.currentStyle[e]:void 0}function i(t){for(t=t.parentNode;t;){if(t===Z)return!0;t=t.parentNode}return!1}function r(o,a,s,u,c,f,l){var d=o.parentNode,h=1;return!!i(o)&&(9===d.nodeType||"0"!==n(o,"opacity")&&"none"!==n(o,"display")&&"hidden"!==n(o,"visibility")&&(e(a)&&e(s)&&e(u)&&e(c)&&e(f)&&e(l)||(a=o.offsetTop,c=o.offsetLeft,u=a+o.offsetHeight,s=c+o.offsetWidth,f=o.offsetWidth,l=o.offsetHeight),(t!==o||0!==l&&0!==f||"hidden"!==n(o,"overflow"))&&(!d||("hidden"!==n(d,"overflow")&&"scroll"!==n(d,"overflow")||!(c+h>d.offsetWidth+d.scrollLeft||c+f-h<d.scrollLeft||a+h>d.offsetHeight+d.scrollTop||a+l-h<d.scrollTop))&&(o.offsetParent===d&&(c+=d.offsetLeft,a+=d.offsetTop),r(d,a,s,u,c,f,l)))))}return!!t&&r(t)}function j(t,e){if(e)return e;if(A(t=ht.toAbsoluteUrl(t),"?")){var n=t.indexOf("?");t=t.slice(0,n)}if(y(t,"matomo.php"))t=E(t,"matomo.php".length);else if(y(t,"piwik.php"))t=E(t,"piwik.php".length);else if(y(t,".php")){var i=t.lastIndexOf("/"),r=1;t=t.slice(0,i+r)}return y(t,"/js/")&&(t=E(t,"js/".length)),t}function G(t){var e="Matomo_Overlay",n=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)(&segment=[^&]*)?").exec(Z.referrer);if(n){if(n[1]!==String(t))return!1;var i=n[2],r=n[3],o=n[4];o?0===o.indexOf("&segment=")&&(o=o.substr("&segment=".length)):o="",nt.name=e+"###"+i+"###"+r+"###"+o}var a=nt.name.split("###");return 4===a.length&&a[0]===e}function F(t,e,n){var i=nt.name.split("###"),r=i[1],o=i[2],a=i[3],s=j(t,e);m(s+"plugins/Overlay/client/client.js?v=1",function(){Matomo_Overlay_Client.initialize(s,n,r,o,a)})}function H(){var t;try{t=nt.frameElement}catch(n){return!0}if(e(t))return!(!t||"iframe"!==String(t.nodeName).toLowerCase());try{return nt.self!==nt.top}catch(i){return!0}}function B(o,c){function g(t){if(Vn)return 0;var e=new RegExp("(^|;)[ ]*"+t+"=([^;]*)").exec(Z.cookie);return e?ot(e[2]):0}function m(t,e,n,i,r,o,a){var s;Vn&&t!==nn||(n&&(s=new Date).setTime(s.getTime()+n),a||(a="Lax"),Z.cookie=t+"="+rt(e)+(n?";expires="+s.toGMTString():"")+";path="+(i||"/")+(r?";domain="+r:"")+(o?";secure":"")+";SameSite="+a,(!n||n>=0)&&g(t)!==String(e)&&u("There was an error setting cookie `"+t+"`. Please check domain and path."))}function T(t){var e,n;for(t=S(t,xn),n=0;n<yn.length;n++)t=S(t,yn[n]);return Ge?(e=new RegExp("#.*"),t.replace(e,"")):t}function A(t,e){var n;return v(e)?e:"/"===e.slice(0,1)?v(t)+"://"+C(t)+e:((n=(t=T(t)).indexOf("?"))>=0&&(t=t.slice(0,n)),(n=t.lastIndexOf("/"))!==t.length-1&&(t=t.slice(0,n+1)),t+e)}function E(t,e){var n;if((t=String(t).toLowerCase())===(e=String(e).toLowerCase()))return!0;if("."===e.slice(0,1)){if(t===e.slice(1))return!0;if((n=t.length-e.length)>0&&t.slice(n)===e)return!0}return!1}function L(t){var e=document.createElement("a");return 0!==t.indexOf("//")&&0!==t.indexOf("http")&&(0===t.indexOf("*")&&(t=t.substr(1)),0===t.indexOf(".")&&(t=t.substr(1)),t="http://"+t),e.href=ht.toAbsoluteUrl(t),e.pathname?e.pathname:""}function V(t,e){w(e,"/")||(e="/"+e),w(t,"/")||(t="/"+t);var n="/"===e||"/*"===e;return!!n||(t===e||(e=String(e).toLowerCase(),t=String(t).toLowerCase(),y(e,"*")?!!(n=!(e=e.slice(0,-1))||"/"===e)||(t===e||0===t.indexOf(e)):(y(t,"/")||(t+="/"),y(e,"/")||(e+="/"),0===t.indexOf(e))))}function U(t,e){var n,i,r;for(n=0;n<kn.length;n++)if(i=R(kn[n]),r=L(kn[n]),E(t,i)&&V(e,r))return!0;return!1}function W(t){var e,n,i;for(e=0;e<kn.length;e++){if(t===(n=R(kn[e].toLowerCase())))return!0;if("."===n.slice(0,1)){if(t===n.slice(1))return!0;if((i=t.length-n.length)>0&&t.slice(i)===n)return!0}}return!1}function z(t,e){t=t.replace("send_image=0","send_image=1");var n=new Image(1,1);n.onload=function(){Q=0,"function"==typeof e&&e({request:t,trackerUrl:hn,success:!0})},n.onerror=function(){"function"==typeof e&&e({request:t,trackerUrl:hn,success:!1})},n.src=hn+(hn.indexOf("?")<0?"?":"&")+t}function J(t){return"POST"===fn||t&&(t.length>2e3||0===t.indexOf('{"requests"'))}function K(){return"object"==typeof tt&&"function"==typeof tt.sendBeacon&&"function"==typeof Blob}function st(t,e,n){if(!K())return!1;var i={type:"application/x-www-form-urlencoded; charset=UTF-8"},r=!1,o=hn;try{var a=new Blob([t],i);n&&!J(t)&&(a=new Blob([],i),o=o+(o.indexOf("?")<0?"?":"&")+t),r=tt.sendBeacon(o,a)}catch(s){return!1}return r&&"function"==typeof e&&e({request:t,trackerUrl:hn,success:!0,isSendBeacon:!0}),r}function gt(t,n,i){e(i)&&null!==i||(i=!0),lt&&st(t,n,i)||setTimeout(function(){if(!lt||!st(t,n,i))try{var e=nt.XMLHttpRequest?new nt.XMLHttpRequest:nt.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;e.open("POST",hn,!0),e.onreadystatechange=function(){4!==this.readyState||this.status>=200&&this.status<300?4===this.readyState&&"function"==typeof n&&n({request:t,trackerUrl:hn,success:!0,xhr:this}):!(lt&&st(t,n,i))&&i?z(t,n):"function"==typeof n&&n({request:t,trackerUrl:hn,success:!1,xhr:this})},e.setRequestHeader("Content-Type",dn),e.withCredentials=!0,e.send(t)}catch(r){!(lt&&st(t,n,i))&&i?z(t,n):"function"==typeof n&&n({request:t,trackerUrl:hn,success:!1})}},50)}function mt(t){var e=(new Date).getTime()+t;(!Y||e>Y)&&(Y=e)}function pt(){!0,ri=(new Date).getTime()}function vt(){var t=(new Date).getTime();return!ri||t-ri>Ue}function Ct(){vt()&&je()}function Tt(){"hidden"===Z.visibilityState&&vt()?je():"visible"===Z.visibilityState&&(ri=(new Date).getTime())}function Nt(){!ii&&Ue&&(ii=!0,f(nt,"focus",pt),f(nt,"blur",Ct),f(nt,"visibilitychange",Tt),ct++,X.addPlugin("HeartBeat"+ct,{unload:function(){ii&&vt()&&je()}}))}function bt(t){var e=(new Date).getTime();if(oi=e,ti&&e<ti){var n=ti-e;return setTimeout(t,n),mt(n+50),void(ti+=50)}!1===ti&&(ti=e+800);t()}function kt(){g(nn)?li=!1:g(tn)&&(li=!0)}function wt(t,e,n){kt(),li?(mi=!0,!We&&t&&(fi&&li&&(t+="&consent=1"),bt(function(){Sn&&st(t,n,!0)?mt(100):(J(t)?gt(t,n):z(t,n),mt(e))})),ii||Nt()):di.push(t)}function yt(t){return!We&&(t&&t.length)}function At(t,e){if(!e||e>=t.length)return[t];for(var n=0,i=t.length,r=[];n<i;n+=e)r.push(t.slice(n,n+e));return r}function Et(t,e){yt(t)&&(li?(mi=!0,bt(function(){for(var n,i=At(t,50),r=0;r<i.length;r++)n='{"requests":["?'+i[r].join('","?')+'"],"send_image":0}',Sn&&st(n,null,!1)?mt(100):gt(n,null,!1);mt(e)})):di.push(t))}function _t(t){return Ln+t+"."+vn+"."+$e}function St(t,e,n){m(t,"",-1296e5,e,n)}function Ot(){if(Vn)return"0";if(!e(nt.showModalDialog)&&e(tt.cookieEnabled))return tt.cookieEnabled?"1":"0";var t=Ln+"testcookie";m(t,"1",undefined,Be,He,Rn,qn);var n="1"===g(t)?"1":"0";return St(t),n}function It(){$e=ai((He||on)+(Be||"/")).slice(0,4)}function Lt(){if(!pi)return{};if(e($n.res))return $n;var t,n,i={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",fla:"application/x-shockwave-flash",java:"application/x-java-vm",ag:"application/x-silverlight"};if(!new RegExp("MSIE").test(tt.userAgent)){if(tt.mimeTypes&&tt.mimeTypes.length)for(t in i)Object.prototype.hasOwnProperty.call(i,t)&&(n=tt.mimeTypes[i[t]],$n[t]=n&&n.enabledPlugin?"1":"0");!new RegExp("Edge[ /](\\d+[\\.\\d]+)").test(tt.userAgent)&&"unknown"!=typeof navigator.javaEnabled&&e(tt.javaEnabled)&&tt.javaEnabled()&&($n.java="1"),!e(nt.showModalDialog)&&e(tt.cookieEnabled)?$n.cookie=tt.cookieEnabled?"1":"0":$n.cookie=Ot()}var r=parseInt(et.width,10),o=parseInt(et.height,10);return $n.res=parseInt(r,10)+"x"+parseInt(o,10),$n}function xt(){var t=g(_t("cvar"));return t&&t.length&&i(t=nt.JSON.parse(t))?t:{}}function Pt(){!1===Bn&&(Bn=xt())}function Rt(){var t=Lt();return ai((tt.userAgent||"")+(tt.platform||"")+nt.JSON.stringify(t)+(new Date).getTime()+Math.random()).slice(0,16)}function qt(){var t=Lt();return ai((tt.userAgent||"")+(tt.platform||"")+nt.JSON.stringify(t)).slice(0,6)}function Vt(){return Math.floor((new Date).getTime()/1e3)}function Mt(){var t=Vt(),e=qt();return String(t)+e}function Dt(t){t=String(t);var e=qt(),n=e.length,i=t.substr(-1*n,n),r=parseInt(t.substr(0,t.length-n),10);if(r&&i&&i===e){var o=Vt();if(Pn<=0)return!0;if(o>=r&&o<=r+Pn)return!0}return!1}function Ut(t){if(!ni)return"";var e=O(t,xn);if(!e)return"";e=String(e);var n=new RegExp("^[a-zA-Z0-9]+$");if(32===e.length&&n.test(e)&&Dt(e.substr(16,32)))return e.substr(0,16);return""}function jt(){Tn||(Tn=Ut(an));var t,e=new Date,n=Math.round(e.getTime()/1e3),i=g(_t("id"));return i?((t=i.split(".")).unshift("0"),Tn.length&&(t[1]=Tn),t):t=["1",Tn.length?Tn:"0"===Ot()?"":Rt(),n]}function Gt(){var t=jt();return{newVisitor:t[0],uuid:t[1],createTs:t[2]}}function Ft(){var t=(new Date).getTime(),e=Gt().createTs;return 1e3*parseInt(e,10)+Mn-t}function Ht(t){if(vn){var n=new Date;Math.round(n.getTime()/1e3);e(t)||(t=Gt());var i=t.uuid+"."+t.createTs+".";m(_t("id"),i,Ft(),Be,He,Rn,qn)}}function Bt(){var t=g(_t("ref"));if(t.length)try{if(i(t=nt.JSON.parse(t)))return t}catch(e){}return["","",0,""]}function Wt(t){var e=Ln+"testcookie_domain",n="testvalue";return m(e,n,1e4,null,t,Rn,qn),g(e)===n&&(St(e,null,t),!0)}function zt(){var t,e,n=Vn;for(Vn=!1,t=0;t<ci.length;t++)(e=_t(ci[t]))!==nn&&e!==tn&&0!==g(e)&&St(e,Be,He);Vn=n}function Jt(t){vn=t}function Yt(t){if(t&&i(t)){var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);var r={};n.sort();var o,a=n.length;for(o=0;o<a;o++)r[n[o]]=t[n[o]];return r}}function Qt(){m(_t("ses"),"1",Dn,Be,He,Rn,qn)}function Xt(){var t,e="",n="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",i=n.length;for(t=0;t<6;t++)e+=n.charAt(Math.floor(Math.random()*i));return e}function $t(t){if(""!==pn)return Fn=!0,t+=pn;if(!it)return t;var n="object"==typeof it.timing&&it.timing?it.timing:undefined;if(n||(n="function"==typeof it.getEntriesByType&&it.getEntriesByType("navigation")?it.getEntriesByType("navigation")[0]:undefined),!n)return t;var i="";if(n.connectEnd&&n.fetchStart){if(n.connectEnd<n.fetchStart)return;i+="&pf_net="+Math.round(n.connectEnd-n.fetchStart)}if(n.responseStart&&n.requestStart){if(n.responseStart<n.requestStart)return;i+="&pf_srv="+Math.round(n.responseStart-n.requestStart)}if(n.responseStart&&n.responseEnd){if(n.responseEnd<n.responseStart)return;i+="&pf_tfr="+Math.round(n.responseEnd-n.responseStart)}if(e(n.domLoading)){if(n.domInteractive&&n.domLoading){if(n.domInteractive<n.domLoading)return;i+="&pf_dm1="+Math.round(n.domInteractive-n.domLoading)}}else if(n.domInteractive&&n.responseEnd){if(n.domInteractive<n.responseEnd)return;i+="&pf_dm1="+Math.round(n.domInteractive-n.responseEnd)}if(n.domComplete&&n.domInteractive){if(n.domComplete<n.domInteractive)return;i+="&pf_dm2="+Math.round(n.domComplete-n.domInteractive)}if(n.loadEventEnd&&n.loadEventStart){if(n.loadEventEnd<n.loadEventStart)return;i+="&pf_onl="+Math.round(n.loadEventEnd-n.loadEventStart)}return t+i}function Kt(t,e,i){function r(t,e){var n=nt.JSON.stringify(t);return n.length>2?"&"+e+"="+rt(n):""}var o,u,c,f,l,d,p,v=new Date,N=Math.round(v.getTime()/1e3),b=1024,k=Bn,w=_t("ses"),y=_t("ref"),A=_t("cvar"),E=g(w),_=Bt(),S=De||an;if(Vn&&zt(),We)return"";var I=Gt(),L=Z.characterSet||Z.charset;if(L&&"utf-8"!==L.toLowerCase()||(L=null),d=_[0],p=_[1],u=_[2],c=_[3],!E){if(!Je||!d.length){for(o in On)if(Object.prototype.hasOwnProperty.call(On,o)&&(d=O(S,On[o])).length)break;for(o in In)if(Object.prototype.hasOwnProperty.call(In,o)&&(p=O(S,In[o])).length)break}f=C(sn),l=c.length?C(c):"",!f.length||W(f)||Je&&l.length&&!W(l)||(c=sn),(c.length||d.length)&&(_=[d,p,u=N,T(c.slice(0,b))],m(y,nt.JSON.stringify(_),Un,Be,He,Rn,qn))}t+="&idsite="+vn+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+v.getHours()+"&m="+v.getMinutes()+"&s="+v.getSeconds()+"&url="+rt(T(S))+(sn.length?"&urlref="+rt(T(sn)):"")+(a(Cn)?"&uid="+rt(Cn):"")+"&_id="+I.uuid+"&_idn="+I.newVisitor+(d.length?"&_rcn="+rt(d):"")+(p.length?"&_rck="+rt(p):"")+"&_refts="+u+(String(c).length?"&_ref="+rt(T(c.slice(0,b))):"")+(L?"&cs="+rt(L):"")+"&send_image=0";var x=Lt();for(o in x)Object.prototype.hasOwnProperty.call(x,o)&&(t+="&"+o+"="+x[o]);var P=[];if(e)for(o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&/^dimension\d+$/.test(o)){var R=o.replace("dimension","");P.push(parseInt(R,10)),P.push(String(R)),t+="&"+o+"="+rt(e[o]),delete e[o]}for(o in e&&s(e)&&(e=null),Qn)Object.prototype.hasOwnProperty.call(Qn,o)&&(t+="&"+o+"="+rt(Qn[o]));for(o in Jn){if(Object.prototype.hasOwnProperty.call(Jn,o))-1===D(P,o)&&(t+="&dimension"+o+"="+rt(Jn[o]))}e?t+="&data="+rt(nt.JSON.stringify(e)):Fe&&(t+="&data="+rt(nt.JSON.stringify(Fe)));var q=Yt(Wn),V=Yt(zn);if(t+=r(q,"cvar"),t+=r(V,"e_cvar"),Bn){for(o in t+=r(Bn,"_cvar"),k)Object.prototype.hasOwnProperty.call(k,o)&&(""!==Bn[o][0]&&""!==Bn[o][1]||delete Bn[o]);Hn&&m(A,nt.JSON.stringify(Bn),Dn,Be,He,Rn,qn)}return jn&&Gn&&!Fn&&(t=$t(t),Fn=!0),Ke&&(t+="&pv_id="+Ke),Ht(I),Qt(),t+=h(i,{tracker:Ze,request:t}),mn.length&&(t+="&"+mn),n(Ye)&&(t=Ye(t)),t}function Zt(t,n,i,r,o,a){var s,u="idgoal=0",c=(new Date,[]),f=String(t).length;if(f&&(u+="&ec_id="+rt(t)),u+="&revenue="+n,String(i).length&&(u+="&ec_st="+i),String(r).length&&(u+="&ec_tx="+r),String(o).length&&(u+="&ec_sh="+o),String(a).length&&(u+="&ec_dt="+a),Xn){for(s in Xn)Object.prototype.hasOwnProperty.call(Xn,s)&&(e(Xn[s][1])||(Xn[s][1]=""),e(Xn[s][2])||(Xn[s][2]=""),e(Xn[s][3])&&0!==String(Xn[s][3]).length||(Xn[s][3]=0),e(Xn[s][4])&&0!==String(Xn[s][4]).length||(Xn[s][4]=1),c.push(Xn[s]));u+="&ec_items="+rt(nt.JSON.stringify(c))}wt(u=Kt(u,Fe,"ecommerce"),_n),f&&(Xn={})}function te(t,n,i,r,o,a){String(t).length&&e(n)&&Zt(t,n,i,r,o,a)}function ee(t){e(t)&&Zt("",t,"","","","")}function ne(t,e,n){si||(Ke=Xt());var i=Kt("action_name="+rt(q(t||Nn)),e,"log");jn&&!Fn&&(i=$t(i)),wt(i,_n,n)}function ie(t,e){var n,i="(^| )(piwik[_-]"+e+"|matomo[_-]"+e;if(t)for(n=0;n<t.length;n++)i+="|"+t[n];return i+=")( |$)",new RegExp(i)}function re(t){return hn&&t&&0===String(t).indexOf(hn)}function oe(t,e,n,i){if(re(e))return 0;var r=ie(An,"download"),o=ie(En,"link"),a=new RegExp("\\.("+bn.join("|")+")([?&#]|$)","i");return o.test(t)?"link":i||r.test(t)||a.test(e)?"download":n?0:"link"}function ae(t){var n;for(n=t.parentNode;null!==n&&e(n)&&!dt.isLinkElement(t);)n=(t=n).parentNode;return t}function se(t){if(t=ae(t),dt.hasNodeAttribute(t,"href")&&e(t.href)){dt.getAttributeValueFromNode(t,"href");var n=t.pathname||L(t.href),i=t.hostname||C(t.href),r=i.toLowerCase(),o=t.href.replace(i,r);if(!new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i").test(o)){var a=oe(t.className,o,U(r,n),dt.hasNodeAttribute(t,"download"));if(a)return{type:a,href:o}}}}function ue(t,e,n,i){var r=ht.buildInteractionRequestParams(t,e,n,i);if(r)return Kt(r,null,"contentInteraction")}function ce(t,e){if(!t||!e)return!1;var n=ht.findTargetNode(t);return!ht.shouldIgnoreInteraction(n)&&!((n=ht.findTargetNodeNoDefault(t))&&!M(n,e))}function fe(t,e,n){if(t){var i=ht.findParentContentNode(t);if(i&&ce(i,t)){var r=ht.buildContentBlock(i);if(r)return!r.target&&n&&(r.target=n),ht.buildInteractionRequestParams(e,r.name,r.piece,r.target)}}}function le(t){if(!Kn||!Kn.length)return!1;var e,n;for(e=0;e<Kn.length;e++)if((n=Kn[e])&&n.name===t.name&&n.piece===t.piece&&n.target===t.target)return!0;return!1}function de(t){return function(e){if(t){var n,i=ht.findParentContentNode(t);if(e&&(n=e.target||e.srcElement),n||(n=t),ce(i,n)){if(!i)return!1;var r=ht.findTargetNode(i);if(!r||ht.shouldIgnoreInteraction(r))return!1;var o=se(r);return ei&&o&&o.type?o.type:Ze.trackContentInteractionNode(n,"click")}}}}function he(t){var e,n;if(t&&t.length)for(e=0;e<t.length;e++)(n=ht.findTargetNode(t[e]))&&!n.contentInteractionTrackingSetupDone&&(n.contentInteractionTrackingSetupDone=!0,f(n,"click",de(n)))}function ge(t,e){if(!t||!t.length)return[];var n,i;for(n=0;n<t.length;n++)le(t[n])?(t.splice(n,1),n--):Kn.push(t[n]);if(!t||!t.length)return[];he(e);var r=[];for(n=0;n<t.length;n++)(i=Kt(ht.buildImpressionRequestParams(t[n].name,t[n].piece,t[n].target),undefined,"contentImpressions"))&&r.push(i);return r}function me(t){return ge(ht.collectContent(t),t)}function pe(t){if(!t||!t.length)return[];var e;for(e=0;e<t.length;e++)ht.isNodeVisible(t[e])||(t.splice(e,1),e--);return t&&t.length?me(t):[]}function ve(t,e,n){return Kt(ht.buildImpressionRequestParams(t,e,n),null,"contentImpression")}function Ce(t,e){if(t){var n=ht.findParentContentNode(t),i=ht.buildContentBlock(n);if(i)return e||(e="Unknown"),ue(e,i.name,i.piece,i.target)}}function Te(t,n,i,r){return"e_c="+rt(t)+"&e_a="+rt(n)+(e(i)?"&e_n="+rt(i):"")+(e(r)?"&e_v="+rt(r):"")+"&ca=1"}function Ne(t,e,n,i,r,o){if(!a(t)||!a(e))return u("Error while logging event: Parameters `category` and `action` must not be empty or filled with whitespaces"),!1;wt(Kt(Te(t,e,n,i),r,"event"),_n,o)}function be(t,n,i,r){wt(Kt("search="+rt(t)+(n?"&search_cat="+rt(n):"")+(e(i)?"&search_count="+i:""),r,"sitesearch"),_n)}function ke(t,e,n,i){wt(Kt("idgoal="+t+(e?"&revenue="+e:""),n,"goal"),_n,i)}function we(t,e,n,i,r){var o=e+"="+rt(T(t)),a=fe(r,"click",t);a&&(o+="&"+a),wt(Kt(o,n,"link"),_n,i)}function ye(t,e){return""!==t?t+e.charAt(0).toUpperCase()+e.slice(1):e}function Ae(t){var e,n,i,r=["","webkit","ms","moz"];if(!ze)for(n=0;n<r.length;n++)if(i=r[n],Object.prototype.hasOwnProperty.call(Z,ye(i,"hidden"))){"prerender"===Z[ye(i,"visibilityState")]&&(e=!0);break}e?f(Z,i+"visibilitychange",function o(){Z.removeEventListener(i+"visibilitychange",o,!1),t()}):t()}function Ee(){return Ze.getVisitorId()+Mt()}function _e(t){if(t&&dt.hasNodeAttribute(t,"href")){var e=dt.getAttributeValueFromNode(t,"href");if(e&&!re(e)&&Ze.getVisitorId()){e=S(e,xn);var n=Ee();e=_(e,xn,n),dt.setAnyAttribute(t,"href",e)}}}function Se(t){var e=dt.getAttributeValueFromNode(t,"href");if(!e)return!1;if(!(0===(e=String(e)).indexOf("//")||0===e.indexOf("http://")||0===e.indexOf("https://")))return!1;var n=t.pathname||L(t.href),i=(t.hostname||C(t.href)).toLowerCase();return!!U(i,n)&&!E(on,R(i))}function Oe(e){var n=se(e);if(n&&n.type)return n.href=t(n.href),void we(n.href,n.type,undefined,null,e);ni&&Se(e=ae(e))&&_e(e)}function Ie(){return Z.all&&!Z.addEventListener}function Le(t){var e=t.which,n=typeof t.button;return e||"undefined"===n||(Ie()?1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2):0===t.button||"0"===t.button?e=1:1&t.button?e=2:2&t.button&&(e=3)),e}function xe(t){switch(Le(t)){case 1:return"left";case 2:return"middle";case 3:return"right"}}function Pe(t){return t.target||t.srcElement}function Re(t){return"A"===t||"AREA"===t}function qe(t){function e(t){for(var e=Pe(t),n=e.nodeName,i=ie(wn,"ignore");!Re(n)&&e&&e.parentNode;)n=(e=e.parentNode).nodeName;if(e&&Re(n)&&!i.test(e.className))return e}return function(n){var i=e(n=n||nt.event);if(i){var r=xe(n);if("click"===n.type){var o=!1;t&&"middle"===r&&(o=!0),i&&!o&&Oe(i)}else"mousedown"===n.type?"middle"===r&&i?(Qe=r,Xe=i):Qe=Xe=null:"mouseup"===n.type?(r===Qe&&i===Xe&&Oe(i),Qe=Xe=null):"contextmenu"===n.type&&Oe(i)}}}function Ve(t,e,n){"undefined"===typeof e&&(e=!0),f(t,"click",qe(e),n),e&&(f(t,"mouseup",qe(e),n),f(t,"mousedown",qe(e),n),f(t,"contextmenu",qe(e),n))}function Me(t,e,n){function i(){a=!0}if(Zn)return!0;Zn=!0;var r,o,a=!1;l(function(){function s(t){setTimeout(function(){Zn&&(a=!1,n.trackVisibleContentImpressions(),s(t))},t)}function u(t){setTimeout(function(){Zn&&(a&&(a=!1,n.trackVisibleContentImpressions()),u(t))},t)}if(t){for(r=["scroll","resize"],o=0;o<r.length;o++)Z.addEventListener?Z.addEventListener(r[o],i,!1):nt.attachEvent("on"+r[o],i);u(100)}e&&e>0&&s(e=parseInt(e,10))})}var De,Ue,je,Ge,Fe,He,Be,We,ze,Je,Ye,Qe,Xe,$e,Ke,Ze=this,tn="mtm_consent",en="mtm_cookie_consent",nn="mtm_consent_removed",rn=P(Z.domain,nt.location.href,p()),on=R(rn[0]),an=t(rn[1]),sn=t(rn[2]),un=!1,cn="GET",fn=cn,ln="application/x-www-form-urlencoded; charset=UTF-8",dn=ln,hn=o||"",gn="",mn="",pn="",vn=c||"",Cn="",Tn="",Nn="",bn=["7z","aac","apk","arc","arj","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","png","ppt","pptx","qt","qtm","ra","ram","rar","rpm","rtf","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","z","zip"],kn=[on],wn=[],yn=[],An=[],En=[],_n=500,Sn=!0,On=["pk_campaign","mtm_campaign","piwik_campaign","matomo_campaign","utm_campaign","utm_source","utm_medium"],In=["pk_kwd","mtm_kwd","piwik_kwd","matomo_kwd","utm_term"],Ln="_pk_",xn="pk_vid",Pn=180,Rn=!1,qn="Lax",Vn=!1,Mn=339552e5,Dn=18e5,Un=15768e6,jn=!0,Gn=!1,Fn=!1,Hn=!1,Bn=!1,Wn={},zn={},Jn={},Yn=200,Qn={},Xn={},$n={},Kn=[],Zn=!1,ti=!1,ei=!1,ni=!1,ii=!1,ri=(H(),null),oi=null,ai=x,si=!1,ui=0,ci=["id","ses","cvar","ref"],fi=!1,li=null,di=[],hi=[],gi=ft++,mi=!1,pi=!0;try{Nn=Z.title}catch(Ci){Nn=""}li=!g(nn),je=function(){var t=new Date;return t=t.getTime(),!!oi&&(oi+Ue<=t&&(Ze.ping(),!0))};var vi={enabled:!0,requests:[],timeout:null,interval:2500,sendRequests:function(){var t=this.requests;this.requests=[],1===t.length?wt(t[0],_n):Et(t,_n)},canQueue:function(){return!lt&&this.enabled},pushMultiple:function(t){var e;if(this.canQueue())for(e=0;e<t.length;e++)this.push(t[e]);else Et(t,_n)},push:function(t){if(t)if(this.canQueue()){vi.requests.push(t),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.timeout=setTimeout(function(){vi.timeout=null,vi.sendRequests()},vi.interval);var e="RequestQueue"+gi;Object.prototype.hasOwnProperty.call($,e)||($[e]={unload:function(){vi.timeout&&clearTimeout(vi.timeout),vi.sendRequests()}})}else wt(t,_n)}};It(),this.hasConsent=function(){return li},this.getVisitorInfo=function(){return g(_t("id"))||Ht(),jt()},this.getVisitorId=function(){return this.getVisitorInfo()[1]},this.getAttributionInfo=function(){return Bt()},this.getAttributionCampaignName=function(){return Bt()[0]},this.getAttributionCampaignKeyword=function(){return Bt()[1]},this.getAttributionReferrerTimestamp=function(){return Bt()[2]},this.getAttributionReferrerUrl=function(){return Bt()[3]},this.setTrackerUrl=function(t){hn=t},this.getTrackerUrl=function(){return hn},this.getMatomoUrl=function(){return j(this.getTrackerUrl(),gn)},this.getPiwikUrl=function(){return this.getMatomoUrl()},this.addTracker=function(t,n){e(t)&&null!==t||(t=this.getTrackerUrl());var i=new B(t,n);return at.push(i),X.trigger("TrackerAdded",[this]),i},this.getSiteId=function(){return vn},this.setSiteId=function(t){Jt(t)},this.resetUserId=function(){Cn=""},this.setUserId=function(t){a(t)&&(Cn=t)},this.setVisitorId=function(t){var e=/[0-9A-Fa-f]{16}/g;r(t)&&e.test(t)?Tn=t:u("Invalid visitorId set"+t)},this.getUserId=function(){return Cn},this.setCustomData=function(t,e){i(t)?Fe=t:(Fe||(Fe={}),Fe[t]=e)},this.getCustomData=function(){return Fe},this.setCustomRequestProcessing=function(t){Ye=t},this.appendToTrackingUrl=function(t){mn=t},this.getRequest=function(t){return Kt(t)},this.addPlugin=function(t,e){$[t]=e},this.setCustomDimension=function(t,n){(t=parseInt(t,10))>0&&(e(n)||(n=""),r(n)||(n=String(n)),Jn[t]=n)},this.getCustomDimension=function(t){if((t=parseInt(t,10))>0&&Object.prototype.hasOwnProperty.call(Jn,t))return Jn[t]},this.deleteCustomDimension=function(t){(t=parseInt(t,10))>0&&delete Jn[t]},this.setCustomVariable=function(t,n,i,o){var a;e(o)||(o="visit"),e(n)&&(e(i)||(i=""),t>0&&(n=r(n)?n:String(n),i=r(i)?i:String(i),a=[n.slice(0,Yn),i.slice(0,Yn)],"visit"===o||2===o?(Pt(),Bn[t]=a):"page"===o||3===o?Wn[t]=a:"event"===o&&(zn[t]=a)))},this.getCustomVariable=function(t,n){var i;return e(n)||(n="visit"),"page"===n||3===n?i=Wn[t]:"event"===n?i=zn[t]:"visit"!==n&&2!==n||(Pt(),i=Bn[t]),!(!e(i)||i&&""===i[0])&&i},this.deleteCustomVariable=function(t,e){this.getCustomVariable(t,e)&&this.setCustomVariable(t,"","",e)},this.deleteCustomVariables=function(t){"page"===t||3===t?Wn={}:"event"===t?zn={}:"visit"!==t&&2!==t||(Bn={})},this.storeCustomVariablesInCookie=function(){Hn=!0},this.setLinkTrackingTimer=function(t){_n=t},this.getLinkTrackingTimer=function(){return _n},this.setDownloadExtensions=function(t){r(t)&&(t=t.split("|")),bn=t},this.addDownloadExtensions=function(t){var e;for(r(t)&&(t=t.split("|")),e=0;e<t.length;e++)bn.push(t[e])},this.removeDownloadExtensions=function(t){var e,n=[];for(r(t)&&(t=t.split("|")),e=0;e<bn.length;e++)-1===D(t,bn[e])&&n.push(bn[e]);bn=n},this.setDomains=function(t){kn=r(t)?[t]:t;for(var e,n=!1,i=0;i<kn.length;i++){if(e=String(kn[i]),E(on,R(e))){n=!0;break}var o=L(e);if(o&&"/"!==o&&"/*"!==o){n=!0;break}}n||kn.push(on)},this.enableCrossDomainLinking=function(){ni=!0},this.disableCrossDomainLinking=function(){ni=!1},this.isCrossDomainLinkingEnabled=function(){return ni},this.setCrossDomainLinkingTimeout=function(t){Pn=t},this.getCrossDomainLinkingUrlParameter=function(){return rt(xn)+"="+rt(Ee())},this.setIgnoreClasses=function(t){wn=r(t)?[t]:t},this.setRequestMethod=function(t){"GET"===(fn=t?String(t).toUpperCase():cn)&&this.disableAlwaysUseSendBeacon()},this.setRequestContentType=function(t){dn=t||ln},this.setGenerationTimeMs=function(){u("setGenerationTimeMs is no longer supported since Matomo 4. The call will be ignored. The replacement is setPagePerformanceTiming.")},this.setPagePerformanceTiming=function(t,n,i,r,o,a){var s={pf_net:t,pf_srv:n,pf_tfr:i,pf_dm1:r,pf_dm2:o,pf_onl:a};try{if(s=b(s=N(s,e)),""===(pn=k(s)))return void u("setPagePerformanceTiming() called without parameters. This function needs to be called with at least one performance parameter.");Fn=!1,Gn=!0}catch(c){u("setPagePerformanceTiming: "+c.toString())}},this.setReferrerUrl=function(t){sn=t},this.setCustomUrl=function(t){De=A(an,t)},this.getCurrentUrl=function(){return De||an},this.setDocumentTitle=function(t){Nn=t},this.setPageViewId=function(t){Ke=t,si=!0},this.setAPIUrl=function(t){gn=t},this.setDownloadClasses=function(t){An=r(t)?[t]:t},this.setLinkClasses=function(t){
|
|
En=r(t)?[t]:t},this.setCampaignNameKey=function(t){On=r(t)?[t]:t},this.setCampaignKeywordKey=function(t){In=r(t)?[t]:t},this.discardHashTag=function(t){Ge=t},this.setCookieNamePrefix=function(t){Ln=t,Bn&&(Bn=xt())},this.setCookieDomain=function(t){var e=R(t);Vn||Wt(e)?(He=e,It()):u("Can't write cookie on domain "+t)},this.setExcludedQueryParams=function(t){yn=r(t)?[t]:t},this.getCookieDomain=function(){return He},this.hasCookies=function(){return"1"===Ot()},this.setSessionCookie=function(t,n,i){if(!t)throw new Error("Missing cookie name");e(i)||(i=Dn),ci.push(t),m(_t(t),n,i,Be,He,Rn,qn)},this.getCookie=function(t){var e=g(_t(t));return 0===e?null:e},this.setCookiePath=function(t){Be=t,It()},this.getCookiePath=function(){return Be},this.setVisitorCookieTimeout=function(t){Mn=1e3*t},this.setSessionCookieTimeout=function(t){Dn=1e3*t},this.getSessionCookieTimeout=function(){return Dn},this.setReferralCookieTimeout=function(t){Un=1e3*t},this.setConversionAttributionFirstReferrer=function(t){Je=t},this.setSecureCookie=function(t){t&&"https:"!==location.protocol?u("Error in setSecureCookie: You cannot use `Secure` on http."):Rn=t},this.setCookieSameSite=function(t){"None"===(t=(t=String(t)).charAt(0).toUpperCase()+t.toLowerCase().slice(1))||"Lax"===t||"Strict"===t?("None"===t&&("https:"===location.protocol?this.setSecureCookie(!0):(u("sameSite=None cannot be used on http, reverted to sameSite=Lax."),t="Lax")),qn=t):u("Ignored value for sameSite. Please use either Lax, None, or Strict.")},this.disableCookies=function(){Vn=!0,vn&&zt()},this.areCookiesEnabled=function(){return!Vn},this.setCookieConsentGiven=function(){Vn&&!We&&(Vn=!1,pi=!0,vn&&mi&&(Ht(),wt(Kt("ping=1",null,"ping"),_n)))},this.requireCookieConsent=function(){return!this.getRememberedCookieConsent()&&(this.disableCookies(),!0)},this.getRememberedCookieConsent=function(){return g(en)},this.forgetCookieConsentGiven=function(){St(en,Be,He),this.disableCookies()},this.rememberCookieConsentGiven=function(t){t=t?60*t*60*1e3:94608e7,this.setCookieConsentGiven();var e=(new Date).getTime();m(en,e,t,Be,He,Rn,qn)},this.deleteCookies=function(){zt()},this.setDoNotTrack=function(t){var e=tt.doNotTrack||tt.msDoNotTrack;(We=t&&("yes"===e||"1"===e))&&this.disableCookies()},this.alwaysUseSendBeacon=function(){Sn=!0},this.disableAlwaysUseSendBeacon=function(){Sn=!1},this.addListener=function(t,e){Ve(t,e,!1)},this.enableLinkTracking=function(t){if(!ei){ei=!0;d(function(){!0,Ve(Z.body,t,!0)})}},this.enableJSErrorTracking=function(){if(!un){un=!0;var t=nt.onerror;nt.onerror=function(e,n,i,r,o){return Ae(function(){var t="JavaScript Errors",o=n+":"+i;r&&(o+=":"+r),-1===D(hi,t+o+e)&&(hi.push(t+o+e),Ne(t,o,e))}),!!t&&t(e,n,i,r,o)}}},this.disablePerformanceTracking=function(){jn=!1},this.enableHeartBeatTimer=function(t){t=Math.max(t||15,5),Ue=1e3*t,null!==oi&&Nt()},this.disableHeartBeatTimer=function(){(Ue||ii)&&(nt.removeEventListener?(nt.removeEventListener("focus",pt),nt.removeEventListener("blur",Ct),nt.removeEventListener("visibilitychange",Tt)):nt.detachEvent&&(nt.detachEvent("onfocus",pt),nt.detachEvent("onblur",Ct),nt.detachEvent("visibilitychange",Tt))),Ue=null,ii=!1},this.killFrame=function(){nt.location!==nt.top.location&&(nt.top.location=nt.location)},this.redirectFile=function(t){"file:"===nt.location.protocol&&(nt.location=t)},this.setCountPreRendered=function(t){ze=t},this.trackGoal=function(t,e,n,i){Ae(function(){ke(t,e,n,i)})},this.trackLink=function(t,e,n,i){Ae(function(){we(t,e,n,i)})},this.getNumTrackedPageViews=function(){return ui},this.trackPageView=function(t,e,n){Kn=[],di=[],hi=[],G(vn)?Ae(function(){F(hn,gn,vn)}):Ae(function(){ui++,ne(t,e,n)})},this.disableBrowserFeatureDetection=function(){pi=!1},this.enableBrowserFeatureDetection=function(){pi=!0},this.trackAllContentImpressions=function(){G(vn)||Ae(function(){d(function(){var t=me(ht.findContentNodes());vi.pushMultiple(t)})})},this.trackVisibleContentImpressions=function(t,n){G(vn)||(e(t)||(t=!0),e(n)||(n=750),Me(t,n,this),Ae(function(){l(function(){var t=pe(ht.findContentNodes());vi.pushMultiple(t)})}))},this.trackContentImpression=function(t,e,n){G(vn)||(t=I(t),e=I(e),n=I(n),t&&(e=e||"Unknown",Ae(function(){var i=ve(t,e,n);vi.push(i)})))},this.trackContentImpressionsWithinNode=function(t){!G(vn)&&t&&Ae(function(){Zn?l(function(){var e=pe(ht.findContentNodesWithinNode(t));vi.pushMultiple(e)}):d(function(){var e=me(ht.findContentNodesWithinNode(t));vi.pushMultiple(e)})})},this.trackContentInteraction=function(t,e,n,i){G(vn)||(t=I(t),e=I(e),n=I(n),i=I(i),t&&e&&(n=n||"Unknown",Ae(function(){var r=ue(t,e,n,i);r&&vi.push(r)})))},this.trackContentInteractionNode=function(t,e){if(!G(vn)&&t){var n=null;return Ae(function(){(n=Ce(t,e))&&vi.push(n)}),n}},this.logAllContentBlocksOnPage=function(){var t=ht.findContentNodes(),e=ht.collectContent(t);"undefined"!==typeof console&&console&&console.log&&console.log(e)},this.trackEvent=function(t,e,n,i,r,o){Ae(function(){Ne(t,e,n,i,r,o)})},this.trackSiteSearch=function(t,e,n,i){Kn=[],Ae(function(){be(t,e,n,i)})},this.setEcommerceView=function(t,n,i,r){Qn={},a(i)&&(i=String(i)),e(i)&&null!==i&&!1!==i&&i.length?i instanceof Array&&(i=nt.JSON.stringify(i)):i="";var o="_pkc";Qn[o]=i,e(r)&&null!==r&&!1!==r&&String(r).length&&(Qn[o="_pkp"]=r),(a(t)||a(n))&&(a(t)&&(Qn[o="_pks"]=t),a(n)||(n=""),Qn[o="_pkn"]=n)},this.getEcommerceItems=function(){return JSON.parse(JSON.stringify(Xn))},this.addEcommerceItem=function(t,e,n,i,r){a(t)&&(Xn[t]=[String(t),e,n,i,r])},this.removeEcommerceItem=function(t){a(t)&&(t=String(t),delete Xn[t])},this.clearEcommerceCart=function(){Xn={}},this.trackEcommerceOrder=function(t,e,n,i,r,o){te(t,e,n,i,r,o)},this.trackEcommerceCartUpdate=function(t){ee(t)},this.trackRequest=function(t,e,n,i){Ae(function(){wt(Kt(t,e,i),_n,n)})},this.ping=function(){this.trackRequest("ping=1",null,null,"ping")},this.disableQueueRequest=function(){vi.enabled=!1},this.setRequestQueueInterval=function(t){if(t<1e3)throw new Error("Request queue interval needs to be at least 1000ms");vi.interval=t},this.queueRequest=function(t){Ae(function(){var e=Kt(t);vi.push(e)})},this.isConsentRequired=function(){return fi},this.getRememberedConsent=function(){var t=g(tn);return g(nn)?(t&&St(tn,Be,He),null):t&&0!==t?t:null},this.hasRememberedConsent=function(){return!!this.getRememberedConsent()},this.requireConsent=function(){fi=!0,(li=this.hasRememberedConsent())||(Vn=!0),$["CoreConsent"+ ++ut]={unload:function(){li||zt()}}},this.setConsentGiven=function(t){var n,i;for(li=!0,pi=!0,St(nn,Be,He),n=0;n<di.length;n++)"string"===(i=typeof di[n])?wt(di[n],_n):"object"===i&&Et(di[n],_n);di=[],e(t)&&!t||this.setCookieConsentGiven()},this.rememberConsentGiven=function(t){t=t?60*t*60*1e3:94608e7;var e=!0;this.setConsentGiven(e);var n=(new Date).getTime();m(tn,n,t,Be,He,Rn,qn)},this.forgetConsentGiven=function(){var t=94608e7;St(tn,Be,He),m(nn,(new Date).getTime(),t,Be,He,Rn,qn),this.forgetCookieConsentGiven(),this.requireConsent()},this.isUserOptedOut=function(){return!li},this.optUserOut=this.forgetConsentGiven,this.forgetUserOptOut=function(){this.setConsentGiven(!1)},l(function(){setTimeout(function(){Gn=!0},0)}),X.trigger("TrackerSetup",[this]),X.addPlugin("TrackerVisitorIdCookie"+gi,{unload:function(){mi||Ht()}})}function W(){return{push:c}}function z(t,e){var n,i,r={};for(n=0;n<e.length;n++){var o=e[n];for(r[o]=1,i=0;i<t.length;i++)if(t[i]&&t[i][0]){var a=t[i][0];o===a&&(c(t[i]),delete t[i],r[a]>1&&"addTracker"!==a&&"enableLinkTracking"!==a&&u("The method "+a+' is registered more than once in "_paq" variable. Only the last call has an effect. Please have a look at the multiple Matomo trackers documentation: https://developer.matomo.org/guides/tracking-javascript-guide#multiple-piwik-trackers'),r[a]++)}}return t}function J(t,e){var n=new B(t,e);for(at.push(n),_paq=z(_paq,gt),Q=0;Q<_paq.length;Q++)_paq[Q]&&c(_paq[Q]);return _paq=new W,X.trigger("TrackerAdded",[n]),n}var Y,Q,X,$={},K={},Z=document,tt=navigator,et=screen,nt=window,it=nt.performance||nt.mozPerformance||nt.msPerformance||nt.webkitPerformance,rt=nt.encodeURIComponent,ot=nt.decodeURIComponent,at=(unescape,[]),st=[],ut=0,ct=0,ft=0,lt=!1,dt={htmlCollectionToArray:function(t){var e,n=[];if(!t||!t.length)return n;for(e=0;e<t.length;e++)n.push(t[e]);return n},find:function(t){if(!document.querySelectorAll||!t)return[];var e=document.querySelectorAll(t);return this.htmlCollectionToArray(e)},findMultiple:function(t){if(!t||!t.length)return[];var e,n,i=[];for(e=0;e<t.length;e++)n=this.find(t[e]),i=i.concat(n);return i=this.makeNodesUnique(i)},findNodesByTagName:function(t,e){if(!t||!e||!t.getElementsByTagName)return[];var n=t.getElementsByTagName(e);return this.htmlCollectionToArray(n)},makeNodesUnique:function(t){var e=[].concat(t);if(t.sort(function(t,n){if(t===n)return 0;var i=D(e,t),r=D(e,n);return i===r?0:i>r?-1:1}),t.length<=1)return t;var n,i=0,r=0,o=[];for(n=t[i++];n;)n===t[i]&&(r=o.push(i)),n=t[i++]||null;for(;r--;)t.splice(o[r],1);return t},getAttributeValueFromNode:function(t,e){if(this.hasNodeAttribute(t,e)){if(t&&t.getAttribute)return t.getAttribute(e);if(t&&t.attributes)if("undefined"!==typeof t.attributes[e]){if(t.attributes[e].value)return t.attributes[e].value;if(t.attributes[e].nodeValue)return t.attributes[e].nodeValue;var n,i=t.attributes;if(i){for(n=0;n<i.length;n++)if(i[n].nodeName===e)return i[n].nodeValue;return null}}}},hasNodeAttributeWithValue:function(t,e){return!!this.getAttributeValueFromNode(t,e)},hasNodeAttribute:function(t,e){return t&&t.hasAttribute?t.hasAttribute(e):!(!t||!t.attributes)&&"undefined"!==typeof t.attributes[e]},hasNodeCssClass:function(t,e){if(t&&e&&t.className&&-1!==D("string"==typeof t.className?t.className.split(" "):[],e))return!0;return!1},findNodesHavingAttribute:function(t,e,n){if(n||(n=[]),!t||!e)return n;var i,r,o=V(t);if(!o||!o.length)return n;for(i=0;i<o.length;i++)r=o[i],this.hasNodeAttribute(r,e)&&n.push(r),n=this.findNodesHavingAttribute(r,e,n);return n},findFirstNodeHavingAttribute:function(t,e){if(t&&e){if(this.hasNodeAttribute(t,e))return t;var n=this.findNodesHavingAttribute(t,e);return n&&n.length?n[0]:void 0}},findFirstNodeHavingAttributeWithValue:function(t,e){if(t&&e){if(this.hasNodeAttributeWithValue(t,e))return t;var n,i=this.findNodesHavingAttribute(t,e);if(i&&i.length)for(n=0;n<i.length;n++)if(this.getAttributeValueFromNode(i[n],e))return i[n]}},findNodesHavingCssClass:function(t,e,n){if(n||(n=[]),!t||!e)return n;if(t.getElementsByClassName){var i=t.getElementsByClassName(e);return this.htmlCollectionToArray(i)}var r,o,a=V(t);if(!a||!a.length)return[];for(r=0;r<a.length;r++)o=a[r],this.hasNodeCssClass(o,e)&&n.push(o),n=this.findNodesHavingCssClass(o,e,n);return n},findFirstNodeHavingClass:function(t,e){if(t&&e){if(this.hasNodeCssClass(t,e))return t;var n=this.findNodesHavingCssClass(t,e);return n&&n.length?n[0]:void 0}},isLinkElement:function(t){return!!t&&-1!==D(["a","area"],String(t.nodeName).toLowerCase())},setAnyAttribute:function(t,e,n){t&&e&&(t.setAttribute?t.setAttribute(e,n):t[e]=n)}},ht={CONTENT_ATTR:"data-track-content",CONTENT_CLASS:"matomoTrackContent",LEGACY_CONTENT_CLASS:"piwikTrackContent",CONTENT_NAME_ATTR:"data-content-name",CONTENT_PIECE_ATTR:"data-content-piece",CONTENT_PIECE_CLASS:"matomoContentPiece",LEGACY_CONTENT_PIECE_CLASS:"piwikContentPiece",CONTENT_TARGET_ATTR:"data-content-target",CONTENT_TARGET_CLASS:"matomoContentTarget",LEGACY_CONTENT_TARGET_CLASS:"piwikContentTarget",CONTENT_IGNOREINTERACTION_ATTR:"data-content-ignoreinteraction",CONTENT_IGNOREINTERACTION_CLASS:"matomoContentIgnoreInteraction",LEGACY_CONTENT_IGNOREINTERACTION_CLASS:"piwikContentIgnoreInteraction",location:undefined,findContentNodes:function(){var t="."+this.CONTENT_CLASS,e="."+this.LEGACY_CONTENT_CLASS,n="["+this.CONTENT_ATTR+"]";return dt.findMultiple([t,e,n])},findContentNodesWithinNode:function(t){if(!t)return[];var e=dt.findNodesHavingCssClass(t,this.CONTENT_CLASS);e=dt.findNodesHavingCssClass(t,this.LEGACY_CONTENT_CLASS,e);var n,i=dt.findNodesHavingAttribute(t,this.CONTENT_ATTR);if(i&&i.length)for(n=0;n<i.length;n++)e.push(i[n]);return dt.hasNodeAttribute(t,this.CONTENT_ATTR)?e.push(t):dt.hasNodeCssClass(t,this.CONTENT_CLASS)?e.push(t):dt.hasNodeCssClass(t,this.LEGACY_CONTENT_CLASS)&&e.push(t),e=dt.makeNodesUnique(e)},findParentContentNode:function(t){if(t)for(var e=t,n=0;e&&e!==Z&&e.parentNode;){if(dt.hasNodeAttribute(e,this.CONTENT_ATTR))return e;if(dt.hasNodeCssClass(e,this.CONTENT_CLASS))return e;if(dt.hasNodeCssClass(e,this.LEGACY_CONTENT_CLASS))return e;if(e=e.parentNode,n>1e3)break;n++}},findPieceNode:function(t){var e;return(e=dt.findFirstNodeHavingAttribute(t,this.CONTENT_PIECE_ATTR))||(e=dt.findFirstNodeHavingClass(t,this.CONTENT_PIECE_CLASS)),e||(e=dt.findFirstNodeHavingClass(t,this.LEGACY_CONTENT_PIECE_CLASS)),e||t},findTargetNodeNoDefault:function(t){if(t){var e=dt.findFirstNodeHavingAttributeWithValue(t,this.CONTENT_TARGET_ATTR);return e||((e=dt.findFirstNodeHavingAttribute(t,this.CONTENT_TARGET_ATTR))?e:(e=dt.findFirstNodeHavingClass(t,this.CONTENT_TARGET_CLASS))?e:(e=dt.findFirstNodeHavingClass(t,this.LEGACY_CONTENT_TARGET_CLASS))||void 0)}},findTargetNode:function(t){var e=this.findTargetNodeNoDefault(t);return e||t},findContentName:function(t){if(t){var e=dt.findFirstNodeHavingAttributeWithValue(t,this.CONTENT_NAME_ATTR);if(e)return dt.getAttributeValueFromNode(e,this.CONTENT_NAME_ATTR);var n=this.findContentPiece(t);if(n)return this.removeDomainIfIsInLink(n);if(dt.hasNodeAttributeWithValue(t,"title"))return dt.getAttributeValueFromNode(t,"title");var i=this.findPieceNode(t);if(dt.hasNodeAttributeWithValue(i,"title"))return dt.getAttributeValueFromNode(i,"title");var r=this.findTargetNode(t);return dt.hasNodeAttributeWithValue(r,"title")?dt.getAttributeValueFromNode(r,"title"):void 0}},findContentPiece:function(t){if(t){var e=dt.findFirstNodeHavingAttributeWithValue(t,this.CONTENT_PIECE_ATTR);if(e)return dt.getAttributeValueFromNode(e,this.CONTENT_PIECE_ATTR);var n=this.findPieceNode(t),i=this.findMediaUrlInNode(n);return i?this.toAbsoluteUrl(i):void 0}},findContentTarget:function(t){if(t){var e,n=this.findTargetNode(t);if(dt.hasNodeAttributeWithValue(n,this.CONTENT_TARGET_ATTR))return dt.getAttributeValueFromNode(n,this.CONTENT_TARGET_ATTR);if(dt.hasNodeAttributeWithValue(n,"href"))return e=dt.getAttributeValueFromNode(n,"href"),this.toAbsoluteUrl(e);var i=this.findPieceNode(t);return dt.hasNodeAttributeWithValue(i,"href")?(e=dt.getAttributeValueFromNode(i,"href"),this.toAbsoluteUrl(e)):void 0}},isSameDomain:function(t){if(!t||!t.indexOf)return!1;if(0===t.indexOf(this.getLocation().origin))return!0;var e=t.indexOf(this.getLocation().host);return 8>=e&&0<=e},removeDomainIfIsInLink:function(t){var e="^https?://[^/]+",n="^.*//[^/]+";return t&&t.search&&-1!==t.search(new RegExp(e))&&this.isSameDomain(t)&&((t=t.replace(new RegExp(n),""))||(t="/")),t},findMediaUrlInNode:function(t){if(t){var e=["img","embed","video","audio"],n=t.nodeName.toLowerCase();if(-1!==D(e,n)&&dt.findFirstNodeHavingAttributeWithValue(t,"src")){var i=dt.findFirstNodeHavingAttributeWithValue(t,"src");return dt.getAttributeValueFromNode(i,"src")}if("object"===n&&dt.hasNodeAttributeWithValue(t,"data"))return dt.getAttributeValueFromNode(t,"data");if("object"===n){var r,o=dt.findNodesByTagName(t,"param");if(o&&o.length)for(r=0;r<o.length;r++)if("movie"===dt.getAttributeValueFromNode(o[r],"name")&&dt.hasNodeAttributeWithValue(o[r],"value"))return dt.getAttributeValueFromNode(o[r],"value");var a=dt.findNodesByTagName(t,"embed");if(a&&a.length)return this.findMediaUrlInNode(a[0])}}},trim:function(t){return I(t)},isOrWasNodeInViewport:function(t){if(!t||!t.getBoundingClientRect||1!==t.nodeType)return!0;var e=t.getBoundingClientRect(),n=Z.documentElement||{},i=e.top<0;i&&t.offsetTop&&(i=t.offsetTop+e.height>0);var r=n.clientWidth;nt.innerWidth&&r>nt.innerWidth&&(r=nt.innerWidth);var o=n.clientHeight;return nt.innerHeight&&o>nt.innerHeight&&(o=nt.innerHeight),(e.bottom>0||i)&&e.right>0&&e.left<r&&(e.top<o||i)},isNodeVisible:function(t){var e=U(t),n=this.isOrWasNodeInViewport(t);return e&&n},buildInteractionRequestParams:function(t,e,n,i){var r="";return t&&(r+="c_i="+rt(t)),e&&(r&&(r+="&"),r+="c_n="+rt(e)),n&&(r&&(r+="&"),r+="c_p="+rt(n)),i&&(r&&(r+="&"),r+="c_t="+rt(i)),r&&(r+="&ca=1"),r},buildImpressionRequestParams:function(t,e,n){var i="c_n="+rt(t)+"&c_p="+rt(e);return n&&(i+="&c_t="+rt(n)),i&&(i+="&ca=1"),i},buildContentBlock:function(t){if(t){var e=this.findContentName(t),n=this.findContentPiece(t),i=this.findContentTarget(t);return{name:(e=this.trim(e))||"Unknown",piece:(n=this.trim(n))||"Unknown",target:(i=this.trim(i))||""}}},collectContent:function(t){if(!t||!t.length)return[];var n,i,r=[];for(n=0;n<t.length;n++)e(i=this.buildContentBlock(t[n]))&&r.push(i);return r},setLocation:function(t){this.location=t},getLocation:function(){var t=this.location||nt.location;return t.origin||(t.origin=t.protocol+"//"+t.hostname+(t.port?":"+t.port:"")),t},toAbsoluteUrl:function(t){if((!t||String(t)!==t)&&""!==t)return t;if(""===t)return this.getLocation().href;if(-1!==t.search(/^\/\//))return this.getLocation().protocol+t;if(-1!==t.search(/:\/\//))return t;if(0===t.indexOf("#"))return this.getLocation().origin+this.getLocation().pathname+t;if(0===t.indexOf("?"))return this.getLocation().origin+this.getLocation().pathname+t;if(0===t.search("^[a-zA-Z]{2,11}:"))return t;if(-1!==t.search(/^\//))return this.getLocation().origin+t;var e="(.*/)";return this.getLocation().origin+this.getLocation().pathname.match(new RegExp(e))[0]+t},isUrlToCurrentDomain:function(t){var e=this.toAbsoluteUrl(t);if(!e)return!1;var n=this.getLocation().origin;return n===e||0===String(e).indexOf(n)&&":"!==String(e).substr(n.length,1)},setHrefAttribute:function(t,e){t&&e&&dt.setAnyAttribute(t,"href",e)},shouldIgnoreInteraction:function(t){return!!dt.hasNodeAttribute(t,this.CONTENT_IGNOREINTERACTION_ATTR)||(!!dt.hasNodeCssClass(t,this.CONTENT_IGNOREINTERACTION_CLASS)||!!dt.hasNodeCssClass(t,this.LEGACY_CONTENT_IGNOREINTERACTION_CLASS))}},gt=["addTracker","forgetCookieConsentGiven","requireCookieConsent","disableBrowserFeatureDetection","disableCookies","setTrackerUrl","setAPIUrl","enableCrossDomainLinking","setCrossDomainLinkingTimeout","setSessionCookieTimeout","setVisitorCookieTimeout","setCookieNamePrefix","setCookieSameSite","setSecureCookie","setCookiePath","setCookieDomain","setDomains","setUserId","setVisitorId","setSiteId","alwaysUseSendBeacon","disableAlwaysUseSendBeacon","enableLinkTracking","setCookieConsentGiven","requireConsent","setConsentGiven","disablePerformanceTracking","setPagePerformanceTiming","setExcludedQueryParams"];return f(nt,"beforeunload",g,!1),f(nt,"visibilitychange",function(){lt||"hidden"===Z.visibilityState&&h("unload")},!1),f(nt,"online",function(){e(tt.serviceWorker)&&tt.serviceWorker.ready.then(function(t){if(t&&t.sync)return t.sync.register("matomoSync")},function(){})},!1),f(nt,"message",function(t){function n(t){var n=Z.getElementsByTagName("iframe");for(r=0;r<n.length;r++){var i=n[r],a=C(i.src);if(i.contentWindow&&e(i.contentWindow.postMessage)&&a===o){var s=JSON.stringify(t);i.contentWindow.postMessage(s,"*")}}}if(t&&t.origin){var i,r,o=C(t.origin),a=X.getAsyncTrackers();for(r=0;r<a.length;r++)if(C(a[r].getMatomoUrl())===o){i=a[r];break}if(i){var s=null;try{s=JSON.parse(t.data)}catch(u){return}if(s)if(e(s.maq_initial_value))n({maq_opted_in:s.maq_initial_value&&i.hasConsent(),maq_url:i.getMatomoUrl(),maq_optout_by_default:i.isConsentRequired()});else if(e(s.maq_opted_in)){for(a=X.getAsyncTrackers(),r=0;r<a.length;r++)i=a[r],s.maq_opted_in?i.rememberConsentGiven():i.forgetConsentGiven();n({maq_confirm_opted_in:i.hasConsent(),maq_url:i.getMatomoUrl(),maq_optout_by_default:i.isConsentRequired()})}}}},!1),Date.prototype.getTimeAlias=Date.prototype.getTime,X={initialized:!1,JSON:nt.JSON,DOM:{addEventListener:function(t,e,n,i){"undefined"===typeof i&&(i=!1),f(t,e,n,i)},onLoad:l,onReady:d,isNodeVisible:U,isOrWasNodeVisible:ht.isNodeVisible},on:function(t,e){K[t]||(K[t]=[]),K[t].push(e)},off:function(t,e){if(K[t])for(var n=0;n<K[t].length;n++)K[t][n]===e&&K[t].splice(n,1)},trigger:function(t,e,n){if(K[t])for(var i=0;i<K[t].length;i++)K[t][i].apply(n||nt,e)},addPlugin:function(t,e){$[t]=e},getTracker:function(t,n){return e(n)||(n=this.getAsyncTracker().getSiteId()),e(t)||(t=this.getAsyncTracker().getTrackerUrl()),new B(t,n)},getAsyncTrackers:function(){return at},addTracker:function(t,e){return at.length?at[0].addTracker(t,e):J(t,e)},getAsyncTracker:function(t,n){var i;if(!(at&&at.length&&at[0]))return J(t,n);if(i=at[0],!n&&!t)return i;e(n)&&null!==n||!i||(n=i.getSiteId()),e(t)&&null!==t||!i||(t=i.getTrackerUrl());for(var r,o=0;o<at.length;o++)if((r=at[o])&&String(r.getSiteId())===String(n)&&r.getTrackerUrl()===t)return r},retryMissedPluginCalls:function(){var t=st;st=[];for(var e=0;e<t.length;e++)c(t[e])}},"function"==typeof define&&define.amd&&(define("piwik",[],function(){return X}),define("matomo",[],function(){return X})),X}()),function(){function t(){return"object"==typeof _paq&&("undefined"!=typeof _paq.length&&!!_paq.length)}if(window&&"object"==typeof window.matomoPluginAsyncInit&&window.matomoPluginAsyncInit.length)for(var e=0;e<window.matomoPluginAsyncInit.length;e++)"function"==typeof window.matomoPluginAsyncInit[e]&&window.matomoPluginAsyncInit[e]();window&&window.piwikAsyncInit&&window.piwikAsyncInit(),window&&window.matomoAsyncInit&&window.matomoAsyncInit(),window.Matomo.getAsyncTrackers().length||(t()?window.Matomo.addTracker():_paq={push:function(t){"undefined"!==typeof console&&console&&console.error&&console.error("_paq.push() was used but Matomo tracker was not initialized before the matomo.js file was loaded. Make sure to configure the tracker via _paq.push before loading matomo.js. Alternatively, you can create a tracker via Matomo.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order.",t)}}),window.Matomo.trigger("MatomoInitialized",[]),window.Matomo.initialized=!0}(),"undefined"==typeof window.AnalyticsTracker&&(window.AnalyticsTracker=window.Matomo),"function"!=typeof window.piwik_log&&(window.piwik_log=function(t,e,n,i){function r(t){try{if(window["piwik_"+t])return window["piwik_"+t]}catch(e){}}var o,a=window.Matomo.getTracker(n,e);a.setDocumentTitle(t),a.setCustomData(i),(o=r("tracker_pause"))&&a.setLinkTrackingTimer(o),(o=r("download_extensions"))&&a.setDownloadExtensions(o),(o=r("hosts_alias"))&&a.setDomains(o),(o=r("ignore_classes"))&&a.setIgnoreClasses(o),a.trackPageView(),r("install_tracker")&&(piwik_track=function(t,e,n,i){a.setSiteId(e),a.setTrackerUrl(n),a.trackLink(t,i)},a.enableLinkTracking())});
|
|
//# sourceMappingURL=/assets/source-maps/analytics.js.map
|
|
//# sourceURL=_assets/javascripts/analytics.js
|