From ed79095e5b95813812119a6cf0baa11392156207 Mon Sep 17 00:00:00 2001 From: Ayke Halder Date: Tue, 17 Dec 2024 14:53:00 +0000 Subject: [PATCH] Build tracker js --- js/piwik.min.js | 88 ++++++++++++++++++++++++------------------------- matomo.js | 88 ++++++++++++++++++++++++------------------------- piwik.js | 88 ++++++++++++++++++++++++------------------------- 3 files changed, 132 insertions(+), 132 deletions(-) diff --git a/js/piwik.min.js b/js/piwik.min.js index a5b7d962480..43d1629832a 100644 --- a/js/piwik.min.js +++ b/js/piwik.min.js @@ -29,49 +29,49 @@ if(8>=av&&0<=av){return true}return false},removeDomainIfIsInLink:function(aw){v }}},trim:function(au){return a(au)},isOrWasNodeInViewport:function(az){if(!az||!az.getBoundingClientRect||az.nodeType!==1){return true}var ay=az.getBoundingClientRect();var ax=K.documentElement||{};var aw=ay.top<0;if(aw&&az.offsetTop){aw=(az.offsetTop+ay.height)>0}var av=ax.clientWidth;if(X.innerWidth&&av>X.innerWidth){av=X.innerWidth}var au=ax.clientHeight;if(X.innerHeight&&au>X.innerHeight){au=X.innerHeight}return((ay.bottom>0||aw)&&ay.right>0&&ay.left=0)&&aL(dP)!==String(dQ)){var dL="There was an error setting cookie `"+dP+"`. Please check domain and path.";ap(dL)}}function cf(dL){var dN,dM;if(dm!==true&&!cY){for(dM=0;dM=0){dN=dN.slice(0,dM)}dM=dN.lastIndexOf("/");if(dM!==dN.length-1){dN=dN.slice(0,dM+1)}return dN+dL}function c5(dN,dL){var dM;dN=String(dN).toLowerCase();dL=String(dL).toLowerCase();if(dN===dL){return true}if(dL.slice(0,1)==="."){if(dN===dL.slice(1)){return true}dM=dN.length-dL.length;if((dM>0)&&(dN.slice(dM)===dL)){return true}}return false}function cB(dL){var dM=document.createElement("a");if(dL.indexOf("//")!==0&&dL.indexOf("http")!==0){if(dL.indexOf("*")===0){dL=dL.substr(1)}if(dL.indexOf(".")===0){dL=dL.substr(1)}dL="http://"+dL}dM.href=x.toAbsoluteUrl(dL);if(dM.pathname){return dM.pathname}return""}function be(dM,dL){if(!ao(dL,"/")){dL="/"+dL}if(!ao(dM,"/")){dM="/"+dM}var dN=(dL==="/"||dL==="/*");if(dN){return true}if(dM===dL){return true}dL=String(dL).toLowerCase();dM=String(dM).toLowerCase();if(V(dL,"*")){dL=dL.slice(0,-1);dN=(!dL||dL==="/");if(dN){return true}if(dM===dL){return true}return dM.indexOf(dL)===0}if(!V(dM,"/")){dM+="/"}if(!V(dL,"/")){dL+="/" -}return dM.indexOf(dL)===0}function aA(dP,dR){var dM,dL,dN,dO,dQ;for(dM=0;dM0)&&(dO.slice(dN)===dL)){return true}}}return false}function cJ(dL){var dM,dO,dQ,dN,dP;if(!dL.length||!cS.length){return false}dO=d(dL);dQ=cB(dL);if(dO.indexOf("www.")===0){dO=dO.substr(4)}for(dM=0;dM0){return true}q=e(X.location.href,"tracker_install_check");return q&&q.length>0}function cI(){if(au()&&aa(X)){X.close()}}function cF(dL,dN){dL=dL.replace("send_image=0","send_image=1");var dM=new Image(1,1);dM.onload=function(){I=0;if(typeof dN==="function"){dN({request:dL,trackerUrl:aM,success:true}) -}};dM.onerror=function(){if(typeof dN==="function"){dN({request:dL,trackerUrl:aM,success:false})}};dM.src=aM+(aM.indexOf("?")<0?"?":"&")+dL;cI()}function c2(dL){if(dC==="POST"){return true}return dL&&(dL.length>2000||dL.indexOf('{"requests"')===0)}function aT(){return"object"===typeof g&&"function"===typeof g.sendBeacon&&"function"===typeof Blob}function bh(dP,dS,dR){var dN=aT();if(!dN){return false}var dO={type:"application/x-www-form-urlencoded; charset=UTF-8"};var dT=false;var dM=aM;try{var dL=new Blob([dP],dO);if(dR&&!c2(dP)){dL=new Blob([],dO);dM=dM+(dM.indexOf("?")<0?"?":"&")+dP}dT=g.sendBeacon(dM,dL)}catch(dQ){return false}if(dT&&typeof dS==="function"){dS({request:dP,trackerUrl:aM,success:true,isSendBeacon:true})}cI();return dT}function dw(dM,dN,dL){if(!N(dL)||null===dL){dL=true}if(m&&bh(dM,dN,dL)){return}setTimeout(function(){if(m&&bh(dM,dN,dL)){return}var dQ;try{var dP=X.XMLHttpRequest?new X.XMLHttpRequest():X.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;dP.open("POST",aM,true); -dP.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dR=m&&bh(dM,dN,dL);if(!dR&&dL){cF(dM,dN)}else{if(typeof dN==="function"){dN({request:dM,trackerUrl:aM,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dN==="function")){dN({request:dM,trackerUrl:aM,success:true,xhr:this})}}};dP.setRequestHeader("Content-Type",cR);dP.withCredentials=true;dP.send(dM)}catch(dO){dQ=m&&bh(dM,dN,dL);if(!dQ&&dL){cF(dM,dN)}else{if(typeof dN==="function"){dN({request:dM,trackerUrl:aM,success:false})}}}cI()},50)}function cv(dM){var dL=new Date();var dN=dL.getTime()+dM;if(!s||dN>s){s=dN}}function bl(){bn=true;cT=new Date().getTime()}function dF(){var dL=new Date().getTime();return !cT||(dL-cT)>bg}function aH(){if(dF()){b4()}}function a5(){if(K.visibilityState==="hidden"&&dF()){b4()}else{if(K.visibilityState==="visible"){cT=new Date().getTime()}}}function dJ(){if(aW||!bg){return}aW=true;at(X,"focus",bl);at(X,"blur",aH);at(X,"visibilitychange",a5);ag++;v.addPlugin("HeartBeat"+ag,{unload:function(){if(aW&&dF()){b4() -}}})}function c0(dP){var dM=new Date();var dL=dM.getTime();dq=dL;if(cZ&&dL=dL.length){return[dL]}var dM=0;var dN=dL.length;var dO=[];for(dM;dM=dM&&dL<=(dM+ba)){return true}}return false}function dI(dL){if(!db){return""}var dP=e(dL,aD);if(!dP){return""}dP=String(dP);var dN=new RegExp("^[a-zA-Z0-9]+$");if(dP.length===32&&dN.test(dP)){var dM=dP.substr(16,32); -if(du(dM)){var dO=dP.substr(0,16);return dO}}return""}function dc(){if(!b0){b0=dI(bZ)}var dN=new Date(),dL=Math.round(dN.getTime()/1000),dM=a2("id"),dQ=aL(dM),dP,dO;if(dQ){dP=dQ.split(".");dP.unshift("0");if(b0.length){dP[1]=b0}return dP}if(b0.length){dO=b0}else{if("0"===ci()){dO=""}else{dO=df()}}dP=["1",dO,dL];return dP}function a9(){var dO=dc(),dM=dO[0],dN=dO[1],dL=dO[2];return{newVisitor:dM,uuid:dN,createTs:dL}}function aP(){var dO=new Date(),dM=dO.getTime(),dP=a9().createTs;var dL=parseInt(dP,10);var dN=(dL*1000)+c8-dM;return dN}function aV(dL){if(!cj){return}var dN=new Date(),dM=Math.round(dN.getTime()/1000);if(!N(dL)){dL=a9()}var dO=dL.uuid+"."+dL.createTs+".";dG(a2("id"),dO,aP(),bC,dp,b5,aR)}function bX(){var dL=aL(a2("ref"));if(dL.length){try{dL=X.JSON.parse(dL);if(aa(dL)){return dL}}catch(dM){}}return["","",0,""]}function bJ(dN){var dM=bv+"testcookie_domain";var dL="testvalue";dG(dM,dL,10000,null,dN,b5,aR);if(aL(dM)===dL){cc(dM,null,dN);return true}return false}function aN(){var dM=bx; -bx=false;var dL,dN;for(dL=0;dL0){dP=parseInt(dP,10);dS(dP)}})}var bQ={enabled:true,requests:[],timeout:null,interval:2500,sendRequests:function(){var dL=this.requests;this.requests=[];if(dL.length===1){bS(dL[0],bW)}else{dH(dL,bW)}},canQueue:function(){return !m&&this.enabled},pushMultiple:function(dM){if(!this.canQueue()){dH(dM,bW);return}var dL;for(dL=0;dL0){if(!N(dM)){dM=""}if(!y(dM)){dM=String(dM)}bz[dL]=dM}};this.getCustomDimension=function(dL){dL=parseInt(dL,10);if(dL>0&&Object.prototype.hasOwnProperty.call(bz,dL)){return bz[dL]}};this.deleteCustomDimension=function(dL){dL=parseInt(dL,10);if(dL>0){delete bz[dL]}};this.setCustomVariable=function(dM,dL,dP,dN){var dO;if(!N(dN)){dN="visit"}if(!N(dL)){return}if(!N(dP)){dP=""}if(dM>0){dL=!y(dL)?String(dL):dL;dP=!y(dP)?String(dP):dP;dO=[dL.slice(0,bG),dP.slice(0,bG)];if(dN==="visit"||dN===2){c3();aZ[dM]=dO}else{if(dN==="page"||dN===3){b9[dM]=dO}else{if(dN==="event"){cC[dM]=dO}}}}};this.getCustomVariable=function(dM,dN){var dL;if(!N(dN)){dN="visit"}if(dN==="page"||dN===3){dL=b9[dM]}else{if(dN==="event"){dL=cC[dM]}else{if(dN==="visit"||dN===2){c3(); -dL=aZ[dM]}}}if(!N(dL)||(dL&&dL[0]==="")){return false}return dL};this.deleteCustomVariable=function(dL,dM){if(this.getCustomVariable(dL,dM)){this.setCustomVariable(dL,"","",dM)}};this.deleteCustomVariables=function(dL){if(dL==="page"||dL===3){b9={}}else{if(dL==="event"){cC={}}else{if(dL==="visit"||dL===2){aZ={}}}}};this.storeCustomVariablesInCookie=function(){b3=true};this.setLinkTrackingTimer=function(dL){bW=dL};this.getLinkTrackingTimer=function(){return bW};this.setDownloadExtensions=function(dL){if(y(dL)){dL=dL.split("|")}dy=dL};this.addDownloadExtensions=function(dM){var dL;if(y(dM)){dM=dM.split("|")}for(dL=0;dL1&&av!=="addTracker"&&av!=="enableLinkTracking"){ap("The method "+av+' 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') -}aA[av]++}}}}return az}var F=["addTracker","enableFileTracking","forgetCookieConsentGiven","requireCookieConsent","disableBrowserFeatureDetection","disableCampaignParameters","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","setExcludedReferrers"];function ai(aw,av){var au=new U(aw,av);M.push(au);_paq=c(_paq,F);for(I=0;I<_paq.length;I++){if(_paq[I]){ak(_paq[I])}}_paq=new L();v.trigger("TrackerAdded",[au]);return au}at(X,"beforeunload",an,false);at(X,"visibilitychange",function(){if(m){return}if(K.visibilityState==="hidden"){ah("unload") -}},false);at(X,"online",function(){if(N(g.serviceWorker)){g.serviceWorker.ready.then(function(au){if(au&&au.sync){return au.sync.register("matomoSync")}},function(){})}},false);at(X,"message",function(az){if(!az||!az.origin){return}var aB,ax,av;var aC=d(az.origin);var ay=v.getAsyncTrackers();for(ax=0;ax=0)&&aL(dQ)!==String(dR)){var dM="There was an error setting cookie `"+dQ+"`. Please check domain and path.";ap(dM)}}function cf(dM){var dO,dN;if(dn!==true&&!cY){for(dN=0;dN=0){dO=dO.slice(0,dN)}dN=dO.lastIndexOf("/");if(dN!==dO.length-1){dO=dO.slice(0,dN+1)}return dO+dM}function c5(dO,dM){var dN;dO=String(dO).toLowerCase();dM=String(dM).toLowerCase();if(dO===dM){return true}if(dM.slice(0,1)==="."){if(dO===dM.slice(1)){return true}dN=dO.length-dM.length;if((dN>0)&&(dO.slice(dN)===dM)){return true}}return false}function cB(dM){var dN=document.createElement("a");if(dM.indexOf("//")!==0&&dM.indexOf("http")!==0){if(dM.indexOf("*")===0){dM=dM.substr(1)}if(dM.indexOf(".")===0){dM=dM.substr(1)}dM="http://"+dM}dN.href=x.toAbsoluteUrl(dM);if(dN.pathname){return dN.pathname}return""}function be(dN,dM){if(!ao(dM,"/")){dM="/"+dM}if(!ao(dN,"/")){dN="/"+dN}var dO=(dM==="/"||dM==="/*");if(dO){return true}if(dN===dM){return true}dM=String(dM).toLowerCase();dN=String(dN).toLowerCase();if(V(dM,"*")){dM=dM.slice(0,-1);dO=(!dM||dM==="/");if(dO){return true}if(dN===dM){return true}return dN.indexOf(dM)===0}if(!V(dN,"/")){dN+="/"}if(!V(dM,"/")){dM+="/" +}return dN.indexOf(dM)===0}function aA(dQ,dS){var dN,dM,dO,dP,dR;for(dN=0;dN0)&&(dP.slice(dO)===dM)){return true}}}return false}function cJ(dM){var dN,dP,dR,dO,dQ;if(!dM.length||!cS.length){return false}dP=d(dM);dR=cB(dM);if(dP.indexOf("www.")===0){dP=dP.substr(4)}for(dN=0;dN0){return true}q=e(X.location.href,"tracker_install_check");return q&&q.length>0}function cI(){if(au()&&aa(X)){X.close()}}function cF(dM,dO){dM=dM.replace("send_image=0","send_image=1");var dN=new Image(1,1);dN.onload=function(){I=0;if(typeof dO==="function"){dO({request:dM,trackerUrl:aM,success:true}) +}};dN.onerror=function(){if(typeof dO==="function"){dO({request:dM,trackerUrl:aM,success:false})}};dN.src=aM+(aM.indexOf("?")<0?"?":"&")+dM;cI()}function c2(dM){if(dD==="POST"){return true}return dM&&(dM.length>2000||dM.indexOf('{"requests"')===0)}function aT(){return"object"===typeof g&&"function"===typeof g.sendBeacon&&"function"===typeof Blob}function bh(dQ,dT,dS){var dO=aT();if(!dO){return false}var dP={type:"application/x-www-form-urlencoded; charset=UTF-8"};var dU=false;var dN=aM;try{var dM=new Blob([dQ],dP);if(dS&&!c2(dQ)){dM=new Blob([],dP);dN=dN+(dN.indexOf("?")<0?"?":"&")+dQ}dU=g.sendBeacon(dN,dM)}catch(dR){return false}if(dU&&typeof dT==="function"){dT({request:dQ,trackerUrl:aM,success:true,isSendBeacon:true})}cI();return dU}function dx(dN,dO,dM){if(!N(dM)||null===dM){dM=true}if(m&&bh(dN,dO,dM)){return}setTimeout(function(){if(m&&bh(dN,dO,dM)){return}var dR;try{var dQ=X.XMLHttpRequest?new X.XMLHttpRequest():X.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;dQ.open("POST",aM,true); +dQ.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dS=m&&bh(dN,dO,dM);if(!dS&&dM){cF(dN,dO)}else{if(typeof dO==="function"){dO({request:dN,trackerUrl:aM,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dO==="function")){dO({request:dN,trackerUrl:aM,success:true,xhr:this})}}};dQ.setRequestHeader("Content-Type",cR);dQ.withCredentials=true;dQ.send(dN)}catch(dP){dR=m&&bh(dN,dO,dM);if(!dR&&dM){cF(dN,dO)}else{if(typeof dO==="function"){dO({request:dN,trackerUrl:aM,success:false})}}}cI()},50)}function cv(dN){var dM=new Date();var dO=dM.getTime()+dN;if(!s||dO>s){s=dO}}function bl(){bn=true;cT=new Date().getTime()}function dG(){var dM=new Date().getTime();return !cT||(dM-cT)>bg}function aH(){if(dG()){b4()}}function a5(){if(K.visibilityState==="hidden"&&dG()){b4()}else{if(K.visibilityState==="visible"){cT=new Date().getTime()}}}function dK(){if(aW||!bg){return}aW=true;at(X,"focus",bl);at(X,"blur",aH);at(X,"visibilitychange",a5);ag++;v.addPlugin("HeartBeat"+ag,{unload:function(){if(aW&&dG()){b4() +}}})}function c0(dQ){var dN=new Date();var dM=dN.getTime();dr=dM;if(cZ&&dM=dM.length){return[dM]}var dN=0;var dO=dM.length;var dP=[];for(dN;dN=dN&&dM<=(dN+ba)){return true}}return false}function dJ(dM){if(!dc){return""}var dQ=e(dM,aD);if(!dQ){return""}dQ=String(dQ);var dO=new RegExp("^[a-zA-Z0-9]+$");if(dQ.length===32&&dO.test(dQ)){var dN=dQ.substr(16,32); +if(dv(dN)){var dP=dQ.substr(0,16);return dP}}return""}function dd(){if(!b0){b0=dJ(bZ)}var dO=new Date(),dM=Math.round(dO.getTime()/1000),dN=a2("id"),dR=aL(dN),dQ,dP;if(dR){dQ=dR.split(".");dQ.unshift("0");if(b0.length){dQ[1]=b0}return dQ}if(b0.length){dP=b0}else{if("0"===ci()){dP=""}else{dP=dg()}}dQ=["1",dP,dM];return dQ}function a9(){var dP=dd(),dN=dP[0],dO=dP[1],dM=dP[2];return{newVisitor:dN,uuid:dO,createTs:dM}}function aP(){var dP=new Date(),dN=dP.getTime(),dQ=a9().createTs;var dM=parseInt(dQ,10);var dO=(dM*1000)+c8-dN;return dO}function aV(dM){if(!cj){return}var dO=new Date(),dN=Math.round(dO.getTime()/1000);if(!N(dM)){dM=a9()}var dP=dM.uuid+"."+dM.createTs+".";dH(a2("id"),dP,aP(),bC,dq,b5,aR)}function bX(){var dM=aL(a2("ref"));if(dM.length){try{dM=X.JSON.parse(dM);if(aa(dM)){return dM}}catch(dN){}}return["","",0,""]}function bJ(dO){var dN=bv+"testcookie_domain";var dM="testvalue";dH(dN,dM,10000,null,dO,b5,aR);if(aL(dN)===dM){cc(dN,null,dO);return true}return false}function aN(){var dN=bx; +bx=false;var dM,dO;for(dM=0;dM0){dQ=parseInt(dQ,10);dT(dQ)}})}var bQ={enabled:true,requests:[],timeout:null,interval:2500,sendRequests:function(){var dM=this.requests;this.requests=[];if(dM.length===1){bS(dM[0],bW)}else{dI(dM,bW)}},canQueue:function(){return !m&&this.enabled},pushMultiple:function(dN){if(!this.canQueue()){dI(dN,bW);return}var dM;for(dM=0;dM0){if(!N(dN)){dN=""}if(!y(dN)){dN=String(dN)}bz[dM]=dN}};this.getCustomDimension=function(dM){dM=parseInt(dM,10);if(dM>0&&Object.prototype.hasOwnProperty.call(bz,dM)){return bz[dM]}};this.deleteCustomDimension=function(dM){dM=parseInt(dM,10);if(dM>0){delete bz[dM]}};this.setCustomVariable=function(dN,dM,dQ,dO){var dP;if(!N(dO)){dO="visit"}if(!N(dM)){return}if(!N(dQ)){dQ=""}if(dN>0){dM=!y(dM)?String(dM):dM;dQ=!y(dQ)?String(dQ):dQ;dP=[dM.slice(0,bG),dQ.slice(0,bG)];if(dO==="visit"||dO===2){c3();aZ[dN]=dP}else{if(dO==="page"||dO===3){b9[dN]=dP +}else{if(dO==="event"){cC[dN]=dP}}}}};this.getCustomVariable=function(dN,dO){var dM;if(!N(dO)){dO="visit"}if(dO==="page"||dO===3){dM=b9[dN]}else{if(dO==="event"){dM=cC[dN]}else{if(dO==="visit"||dO===2){c3();dM=aZ[dN]}}}if(!N(dM)||(dM&&dM[0]==="")){return false}return dM};this.deleteCustomVariable=function(dM,dN){if(this.getCustomVariable(dM,dN)){this.setCustomVariable(dM,"","",dN)}};this.deleteCustomVariables=function(dM){if(dM==="page"||dM===3){b9={}}else{if(dM==="event"){cC={}}else{if(dM==="visit"||dM===2){aZ={}}}}};this.storeCustomVariablesInCookie=function(){b3=true};this.setLinkTrackingTimer=function(dM){bW=dM};this.getLinkTrackingTimer=function(){return bW};this.setDownloadExtensions=function(dM){if(y(dM)){dM=dM.split("|")}dz=dM};this.addDownloadExtensions=function(dN){var dM;if(y(dN)){dN=dN.split("|")}for(dM=0;dM1&&av!=="addTracker"&&av!=="enableLinkTracking"){ap("The method "+av+' 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')}aA[av]++}}}}return az}var F=["addTracker","enableFileTracking","forgetCookieConsentGiven","requireCookieConsent","disableBrowserFeatureDetection","disableCampaignParameters","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","setExcludedReferrers"]; +function ai(aw,av){var au=new U(aw,av);M.push(au);_paq=c(_paq,F);for(I=0;I<_paq.length;I++){if(_paq[I]){ak(_paq[I])}}_paq=new L();v.trigger("TrackerAdded",[au]);return au}at(X,"beforeunload",an,false);at(X,"visibilitychange",function(){if(m){return}if(K.visibilityState==="hidden"){ah("unload")}},false);at(X,"online",function(){if(N(g.serviceWorker)){g.serviceWorker.ready.then(function(au){if(au&&au.sync){return au.sync.register("matomoSync")}},function(){})}},false);at(X,"message",function(az){if(!az||!az.origin){return}var aB,ax,av;var aC=d(az.origin);var ay=v.getAsyncTrackers();for(ax=0;ax=av&&0<=av){return true}return false},removeDomainIfIsInLink:function(aw){v }}},trim:function(au){return a(au)},isOrWasNodeInViewport:function(az){if(!az||!az.getBoundingClientRect||az.nodeType!==1){return true}var ay=az.getBoundingClientRect();var ax=K.documentElement||{};var aw=ay.top<0;if(aw&&az.offsetTop){aw=(az.offsetTop+ay.height)>0}var av=ax.clientWidth;if(X.innerWidth&&av>X.innerWidth){av=X.innerWidth}var au=ax.clientHeight;if(X.innerHeight&&au>X.innerHeight){au=X.innerHeight}return((ay.bottom>0||aw)&&ay.right>0&&ay.left=0)&&aL(dP)!==String(dQ)){var dL="There was an error setting cookie `"+dP+"`. Please check domain and path.";ap(dL)}}function cf(dL){var dN,dM;if(dm!==true&&!cY){for(dM=0;dM=0){dN=dN.slice(0,dM)}dM=dN.lastIndexOf("/");if(dM!==dN.length-1){dN=dN.slice(0,dM+1)}return dN+dL}function c5(dN,dL){var dM;dN=String(dN).toLowerCase();dL=String(dL).toLowerCase();if(dN===dL){return true}if(dL.slice(0,1)==="."){if(dN===dL.slice(1)){return true}dM=dN.length-dL.length;if((dM>0)&&(dN.slice(dM)===dL)){return true}}return false}function cB(dL){var dM=document.createElement("a");if(dL.indexOf("//")!==0&&dL.indexOf("http")!==0){if(dL.indexOf("*")===0){dL=dL.substr(1)}if(dL.indexOf(".")===0){dL=dL.substr(1)}dL="http://"+dL}dM.href=x.toAbsoluteUrl(dL);if(dM.pathname){return dM.pathname}return""}function be(dM,dL){if(!ao(dL,"/")){dL="/"+dL}if(!ao(dM,"/")){dM="/"+dM}var dN=(dL==="/"||dL==="/*");if(dN){return true}if(dM===dL){return true}dL=String(dL).toLowerCase();dM=String(dM).toLowerCase();if(V(dL,"*")){dL=dL.slice(0,-1);dN=(!dL||dL==="/");if(dN){return true}if(dM===dL){return true}return dM.indexOf(dL)===0}if(!V(dM,"/")){dM+="/"}if(!V(dL,"/")){dL+="/" -}return dM.indexOf(dL)===0}function aA(dP,dR){var dM,dL,dN,dO,dQ;for(dM=0;dM0)&&(dO.slice(dN)===dL)){return true}}}return false}function cJ(dL){var dM,dO,dQ,dN,dP;if(!dL.length||!cS.length){return false}dO=d(dL);dQ=cB(dL);if(dO.indexOf("www.")===0){dO=dO.substr(4)}for(dM=0;dM0){return true}q=e(X.location.href,"tracker_install_check");return q&&q.length>0}function cI(){if(au()&&aa(X)){X.close()}}function cF(dL,dN){dL=dL.replace("send_image=0","send_image=1");var dM=new Image(1,1);dM.onload=function(){I=0;if(typeof dN==="function"){dN({request:dL,trackerUrl:aM,success:true}) -}};dM.onerror=function(){if(typeof dN==="function"){dN({request:dL,trackerUrl:aM,success:false})}};dM.src=aM+(aM.indexOf("?")<0?"?":"&")+dL;cI()}function c2(dL){if(dC==="POST"){return true}return dL&&(dL.length>2000||dL.indexOf('{"requests"')===0)}function aT(){return"object"===typeof g&&"function"===typeof g.sendBeacon&&"function"===typeof Blob}function bh(dP,dS,dR){var dN=aT();if(!dN){return false}var dO={type:"application/x-www-form-urlencoded; charset=UTF-8"};var dT=false;var dM=aM;try{var dL=new Blob([dP],dO);if(dR&&!c2(dP)){dL=new Blob([],dO);dM=dM+(dM.indexOf("?")<0?"?":"&")+dP}dT=g.sendBeacon(dM,dL)}catch(dQ){return false}if(dT&&typeof dS==="function"){dS({request:dP,trackerUrl:aM,success:true,isSendBeacon:true})}cI();return dT}function dw(dM,dN,dL){if(!N(dL)||null===dL){dL=true}if(m&&bh(dM,dN,dL)){return}setTimeout(function(){if(m&&bh(dM,dN,dL)){return}var dQ;try{var dP=X.XMLHttpRequest?new X.XMLHttpRequest():X.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;dP.open("POST",aM,true); -dP.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dR=m&&bh(dM,dN,dL);if(!dR&&dL){cF(dM,dN)}else{if(typeof dN==="function"){dN({request:dM,trackerUrl:aM,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dN==="function")){dN({request:dM,trackerUrl:aM,success:true,xhr:this})}}};dP.setRequestHeader("Content-Type",cR);dP.withCredentials=true;dP.send(dM)}catch(dO){dQ=m&&bh(dM,dN,dL);if(!dQ&&dL){cF(dM,dN)}else{if(typeof dN==="function"){dN({request:dM,trackerUrl:aM,success:false})}}}cI()},50)}function cv(dM){var dL=new Date();var dN=dL.getTime()+dM;if(!s||dN>s){s=dN}}function bl(){bn=true;cT=new Date().getTime()}function dF(){var dL=new Date().getTime();return !cT||(dL-cT)>bg}function aH(){if(dF()){b4()}}function a5(){if(K.visibilityState==="hidden"&&dF()){b4()}else{if(K.visibilityState==="visible"){cT=new Date().getTime()}}}function dJ(){if(aW||!bg){return}aW=true;at(X,"focus",bl);at(X,"blur",aH);at(X,"visibilitychange",a5);ag++;v.addPlugin("HeartBeat"+ag,{unload:function(){if(aW&&dF()){b4() -}}})}function c0(dP){var dM=new Date();var dL=dM.getTime();dq=dL;if(cZ&&dL=dL.length){return[dL]}var dM=0;var dN=dL.length;var dO=[];for(dM;dM=dM&&dL<=(dM+ba)){return true}}return false}function dI(dL){if(!db){return""}var dP=e(dL,aD);if(!dP){return""}dP=String(dP);var dN=new RegExp("^[a-zA-Z0-9]+$");if(dP.length===32&&dN.test(dP)){var dM=dP.substr(16,32); -if(du(dM)){var dO=dP.substr(0,16);return dO}}return""}function dc(){if(!b0){b0=dI(bZ)}var dN=new Date(),dL=Math.round(dN.getTime()/1000),dM=a2("id"),dQ=aL(dM),dP,dO;if(dQ){dP=dQ.split(".");dP.unshift("0");if(b0.length){dP[1]=b0}return dP}if(b0.length){dO=b0}else{if("0"===ci()){dO=""}else{dO=df()}}dP=["1",dO,dL];return dP}function a9(){var dO=dc(),dM=dO[0],dN=dO[1],dL=dO[2];return{newVisitor:dM,uuid:dN,createTs:dL}}function aP(){var dO=new Date(),dM=dO.getTime(),dP=a9().createTs;var dL=parseInt(dP,10);var dN=(dL*1000)+c8-dM;return dN}function aV(dL){if(!cj){return}var dN=new Date(),dM=Math.round(dN.getTime()/1000);if(!N(dL)){dL=a9()}var dO=dL.uuid+"."+dL.createTs+".";dG(a2("id"),dO,aP(),bC,dp,b5,aR)}function bX(){var dL=aL(a2("ref"));if(dL.length){try{dL=X.JSON.parse(dL);if(aa(dL)){return dL}}catch(dM){}}return["","",0,""]}function bJ(dN){var dM=bv+"testcookie_domain";var dL="testvalue";dG(dM,dL,10000,null,dN,b5,aR);if(aL(dM)===dL){cc(dM,null,dN);return true}return false}function aN(){var dM=bx; -bx=false;var dL,dN;for(dL=0;dL0){dP=parseInt(dP,10);dS(dP)}})}var bQ={enabled:true,requests:[],timeout:null,interval:2500,sendRequests:function(){var dL=this.requests;this.requests=[];if(dL.length===1){bS(dL[0],bW)}else{dH(dL,bW)}},canQueue:function(){return !m&&this.enabled},pushMultiple:function(dM){if(!this.canQueue()){dH(dM,bW);return}var dL;for(dL=0;dL0){if(!N(dM)){dM=""}if(!y(dM)){dM=String(dM)}bz[dL]=dM}};this.getCustomDimension=function(dL){dL=parseInt(dL,10);if(dL>0&&Object.prototype.hasOwnProperty.call(bz,dL)){return bz[dL]}};this.deleteCustomDimension=function(dL){dL=parseInt(dL,10);if(dL>0){delete bz[dL]}};this.setCustomVariable=function(dM,dL,dP,dN){var dO;if(!N(dN)){dN="visit"}if(!N(dL)){return}if(!N(dP)){dP=""}if(dM>0){dL=!y(dL)?String(dL):dL;dP=!y(dP)?String(dP):dP;dO=[dL.slice(0,bG),dP.slice(0,bG)];if(dN==="visit"||dN===2){c3();aZ[dM]=dO}else{if(dN==="page"||dN===3){b9[dM]=dO}else{if(dN==="event"){cC[dM]=dO}}}}};this.getCustomVariable=function(dM,dN){var dL;if(!N(dN)){dN="visit"}if(dN==="page"||dN===3){dL=b9[dM]}else{if(dN==="event"){dL=cC[dM]}else{if(dN==="visit"||dN===2){c3(); -dL=aZ[dM]}}}if(!N(dL)||(dL&&dL[0]==="")){return false}return dL};this.deleteCustomVariable=function(dL,dM){if(this.getCustomVariable(dL,dM)){this.setCustomVariable(dL,"","",dM)}};this.deleteCustomVariables=function(dL){if(dL==="page"||dL===3){b9={}}else{if(dL==="event"){cC={}}else{if(dL==="visit"||dL===2){aZ={}}}}};this.storeCustomVariablesInCookie=function(){b3=true};this.setLinkTrackingTimer=function(dL){bW=dL};this.getLinkTrackingTimer=function(){return bW};this.setDownloadExtensions=function(dL){if(y(dL)){dL=dL.split("|")}dy=dL};this.addDownloadExtensions=function(dM){var dL;if(y(dM)){dM=dM.split("|")}for(dL=0;dL1&&av!=="addTracker"&&av!=="enableLinkTracking"){ap("The method "+av+' 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') -}aA[av]++}}}}return az}var F=["addTracker","enableFileTracking","forgetCookieConsentGiven","requireCookieConsent","disableBrowserFeatureDetection","disableCampaignParameters","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","setExcludedReferrers"];function ai(aw,av){var au=new U(aw,av);M.push(au);_paq=c(_paq,F);for(I=0;I<_paq.length;I++){if(_paq[I]){ak(_paq[I])}}_paq=new L();v.trigger("TrackerAdded",[au]);return au}at(X,"beforeunload",an,false);at(X,"visibilitychange",function(){if(m){return}if(K.visibilityState==="hidden"){ah("unload") -}},false);at(X,"online",function(){if(N(g.serviceWorker)){g.serviceWorker.ready.then(function(au){if(au&&au.sync){return au.sync.register("matomoSync")}},function(){})}},false);at(X,"message",function(az){if(!az||!az.origin){return}var aB,ax,av;var aC=d(az.origin);var ay=v.getAsyncTrackers();for(ax=0;ax=0)&&aL(dQ)!==String(dR)){var dM="There was an error setting cookie `"+dQ+"`. Please check domain and path.";ap(dM)}}function cf(dM){var dO,dN;if(dn!==true&&!cY){for(dN=0;dN=0){dO=dO.slice(0,dN)}dN=dO.lastIndexOf("/");if(dN!==dO.length-1){dO=dO.slice(0,dN+1)}return dO+dM}function c5(dO,dM){var dN;dO=String(dO).toLowerCase();dM=String(dM).toLowerCase();if(dO===dM){return true}if(dM.slice(0,1)==="."){if(dO===dM.slice(1)){return true}dN=dO.length-dM.length;if((dN>0)&&(dO.slice(dN)===dM)){return true}}return false}function cB(dM){var dN=document.createElement("a");if(dM.indexOf("//")!==0&&dM.indexOf("http")!==0){if(dM.indexOf("*")===0){dM=dM.substr(1)}if(dM.indexOf(".")===0){dM=dM.substr(1)}dM="http://"+dM}dN.href=x.toAbsoluteUrl(dM);if(dN.pathname){return dN.pathname}return""}function be(dN,dM){if(!ao(dM,"/")){dM="/"+dM}if(!ao(dN,"/")){dN="/"+dN}var dO=(dM==="/"||dM==="/*");if(dO){return true}if(dN===dM){return true}dM=String(dM).toLowerCase();dN=String(dN).toLowerCase();if(V(dM,"*")){dM=dM.slice(0,-1);dO=(!dM||dM==="/");if(dO){return true}if(dN===dM){return true}return dN.indexOf(dM)===0}if(!V(dN,"/")){dN+="/"}if(!V(dM,"/")){dM+="/" +}return dN.indexOf(dM)===0}function aA(dQ,dS){var dN,dM,dO,dP,dR;for(dN=0;dN0)&&(dP.slice(dO)===dM)){return true}}}return false}function cJ(dM){var dN,dP,dR,dO,dQ;if(!dM.length||!cS.length){return false}dP=d(dM);dR=cB(dM);if(dP.indexOf("www.")===0){dP=dP.substr(4)}for(dN=0;dN0){return true}q=e(X.location.href,"tracker_install_check");return q&&q.length>0}function cI(){if(au()&&aa(X)){X.close()}}function cF(dM,dO){dM=dM.replace("send_image=0","send_image=1");var dN=new Image(1,1);dN.onload=function(){I=0;if(typeof dO==="function"){dO({request:dM,trackerUrl:aM,success:true}) +}};dN.onerror=function(){if(typeof dO==="function"){dO({request:dM,trackerUrl:aM,success:false})}};dN.src=aM+(aM.indexOf("?")<0?"?":"&")+dM;cI()}function c2(dM){if(dD==="POST"){return true}return dM&&(dM.length>2000||dM.indexOf('{"requests"')===0)}function aT(){return"object"===typeof g&&"function"===typeof g.sendBeacon&&"function"===typeof Blob}function bh(dQ,dT,dS){var dO=aT();if(!dO){return false}var dP={type:"application/x-www-form-urlencoded; charset=UTF-8"};var dU=false;var dN=aM;try{var dM=new Blob([dQ],dP);if(dS&&!c2(dQ)){dM=new Blob([],dP);dN=dN+(dN.indexOf("?")<0?"?":"&")+dQ}dU=g.sendBeacon(dN,dM)}catch(dR){return false}if(dU&&typeof dT==="function"){dT({request:dQ,trackerUrl:aM,success:true,isSendBeacon:true})}cI();return dU}function dx(dN,dO,dM){if(!N(dM)||null===dM){dM=true}if(m&&bh(dN,dO,dM)){return}setTimeout(function(){if(m&&bh(dN,dO,dM)){return}var dR;try{var dQ=X.XMLHttpRequest?new X.XMLHttpRequest():X.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;dQ.open("POST",aM,true); +dQ.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dS=m&&bh(dN,dO,dM);if(!dS&&dM){cF(dN,dO)}else{if(typeof dO==="function"){dO({request:dN,trackerUrl:aM,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dO==="function")){dO({request:dN,trackerUrl:aM,success:true,xhr:this})}}};dQ.setRequestHeader("Content-Type",cR);dQ.withCredentials=true;dQ.send(dN)}catch(dP){dR=m&&bh(dN,dO,dM);if(!dR&&dM){cF(dN,dO)}else{if(typeof dO==="function"){dO({request:dN,trackerUrl:aM,success:false})}}}cI()},50)}function cv(dN){var dM=new Date();var dO=dM.getTime()+dN;if(!s||dO>s){s=dO}}function bl(){bn=true;cT=new Date().getTime()}function dG(){var dM=new Date().getTime();return !cT||(dM-cT)>bg}function aH(){if(dG()){b4()}}function a5(){if(K.visibilityState==="hidden"&&dG()){b4()}else{if(K.visibilityState==="visible"){cT=new Date().getTime()}}}function dK(){if(aW||!bg){return}aW=true;at(X,"focus",bl);at(X,"blur",aH);at(X,"visibilitychange",a5);ag++;v.addPlugin("HeartBeat"+ag,{unload:function(){if(aW&&dG()){b4() +}}})}function c0(dQ){var dN=new Date();var dM=dN.getTime();dr=dM;if(cZ&&dM=dM.length){return[dM]}var dN=0;var dO=dM.length;var dP=[];for(dN;dN=dN&&dM<=(dN+ba)){return true}}return false}function dJ(dM){if(!dc){return""}var dQ=e(dM,aD);if(!dQ){return""}dQ=String(dQ);var dO=new RegExp("^[a-zA-Z0-9]+$");if(dQ.length===32&&dO.test(dQ)){var dN=dQ.substr(16,32); +if(dv(dN)){var dP=dQ.substr(0,16);return dP}}return""}function dd(){if(!b0){b0=dJ(bZ)}var dO=new Date(),dM=Math.round(dO.getTime()/1000),dN=a2("id"),dR=aL(dN),dQ,dP;if(dR){dQ=dR.split(".");dQ.unshift("0");if(b0.length){dQ[1]=b0}return dQ}if(b0.length){dP=b0}else{if("0"===ci()){dP=""}else{dP=dg()}}dQ=["1",dP,dM];return dQ}function a9(){var dP=dd(),dN=dP[0],dO=dP[1],dM=dP[2];return{newVisitor:dN,uuid:dO,createTs:dM}}function aP(){var dP=new Date(),dN=dP.getTime(),dQ=a9().createTs;var dM=parseInt(dQ,10);var dO=(dM*1000)+c8-dN;return dO}function aV(dM){if(!cj){return}var dO=new Date(),dN=Math.round(dO.getTime()/1000);if(!N(dM)){dM=a9()}var dP=dM.uuid+"."+dM.createTs+".";dH(a2("id"),dP,aP(),bC,dq,b5,aR)}function bX(){var dM=aL(a2("ref"));if(dM.length){try{dM=X.JSON.parse(dM);if(aa(dM)){return dM}}catch(dN){}}return["","",0,""]}function bJ(dO){var dN=bv+"testcookie_domain";var dM="testvalue";dH(dN,dM,10000,null,dO,b5,aR);if(aL(dN)===dM){cc(dN,null,dO);return true}return false}function aN(){var dN=bx; +bx=false;var dM,dO;for(dM=0;dM0){dQ=parseInt(dQ,10);dT(dQ)}})}var bQ={enabled:true,requests:[],timeout:null,interval:2500,sendRequests:function(){var dM=this.requests;this.requests=[];if(dM.length===1){bS(dM[0],bW)}else{dI(dM,bW)}},canQueue:function(){return !m&&this.enabled},pushMultiple:function(dN){if(!this.canQueue()){dI(dN,bW);return}var dM;for(dM=0;dM0){if(!N(dN)){dN=""}if(!y(dN)){dN=String(dN)}bz[dM]=dN}};this.getCustomDimension=function(dM){dM=parseInt(dM,10);if(dM>0&&Object.prototype.hasOwnProperty.call(bz,dM)){return bz[dM]}};this.deleteCustomDimension=function(dM){dM=parseInt(dM,10);if(dM>0){delete bz[dM]}};this.setCustomVariable=function(dN,dM,dQ,dO){var dP;if(!N(dO)){dO="visit"}if(!N(dM)){return}if(!N(dQ)){dQ=""}if(dN>0){dM=!y(dM)?String(dM):dM;dQ=!y(dQ)?String(dQ):dQ;dP=[dM.slice(0,bG),dQ.slice(0,bG)];if(dO==="visit"||dO===2){c3();aZ[dN]=dP}else{if(dO==="page"||dO===3){b9[dN]=dP +}else{if(dO==="event"){cC[dN]=dP}}}}};this.getCustomVariable=function(dN,dO){var dM;if(!N(dO)){dO="visit"}if(dO==="page"||dO===3){dM=b9[dN]}else{if(dO==="event"){dM=cC[dN]}else{if(dO==="visit"||dO===2){c3();dM=aZ[dN]}}}if(!N(dM)||(dM&&dM[0]==="")){return false}return dM};this.deleteCustomVariable=function(dM,dN){if(this.getCustomVariable(dM,dN)){this.setCustomVariable(dM,"","",dN)}};this.deleteCustomVariables=function(dM){if(dM==="page"||dM===3){b9={}}else{if(dM==="event"){cC={}}else{if(dM==="visit"||dM===2){aZ={}}}}};this.storeCustomVariablesInCookie=function(){b3=true};this.setLinkTrackingTimer=function(dM){bW=dM};this.getLinkTrackingTimer=function(){return bW};this.setDownloadExtensions=function(dM){if(y(dM)){dM=dM.split("|")}dz=dM};this.addDownloadExtensions=function(dN){var dM;if(y(dN)){dN=dN.split("|")}for(dM=0;dM1&&av!=="addTracker"&&av!=="enableLinkTracking"){ap("The method "+av+' 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')}aA[av]++}}}}return az}var F=["addTracker","enableFileTracking","forgetCookieConsentGiven","requireCookieConsent","disableBrowserFeatureDetection","disableCampaignParameters","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","setExcludedReferrers"]; +function ai(aw,av){var au=new U(aw,av);M.push(au);_paq=c(_paq,F);for(I=0;I<_paq.length;I++){if(_paq[I]){ak(_paq[I])}}_paq=new L();v.trigger("TrackerAdded",[au]);return au}at(X,"beforeunload",an,false);at(X,"visibilitychange",function(){if(m){return}if(K.visibilityState==="hidden"){ah("unload")}},false);at(X,"online",function(){if(N(g.serviceWorker)){g.serviceWorker.ready.then(function(au){if(au&&au.sync){return au.sync.register("matomoSync")}},function(){})}},false);at(X,"message",function(az){if(!az||!az.origin){return}var aB,ax,av;var aC=d(az.origin);var ay=v.getAsyncTrackers();for(ax=0;ax=av&&0<=av){return true}return false},removeDomainIfIsInLink:function(aw){v }}},trim:function(au){return a(au)},isOrWasNodeInViewport:function(az){if(!az||!az.getBoundingClientRect||az.nodeType!==1){return true}var ay=az.getBoundingClientRect();var ax=K.documentElement||{};var aw=ay.top<0;if(aw&&az.offsetTop){aw=(az.offsetTop+ay.height)>0}var av=ax.clientWidth;if(X.innerWidth&&av>X.innerWidth){av=X.innerWidth}var au=ax.clientHeight;if(X.innerHeight&&au>X.innerHeight){au=X.innerHeight}return((ay.bottom>0||aw)&&ay.right>0&&ay.left=0)&&aL(dP)!==String(dQ)){var dL="There was an error setting cookie `"+dP+"`. Please check domain and path.";ap(dL)}}function cf(dL){var dN,dM;if(dm!==true&&!cY){for(dM=0;dM=0){dN=dN.slice(0,dM)}dM=dN.lastIndexOf("/");if(dM!==dN.length-1){dN=dN.slice(0,dM+1)}return dN+dL}function c5(dN,dL){var dM;dN=String(dN).toLowerCase();dL=String(dL).toLowerCase();if(dN===dL){return true}if(dL.slice(0,1)==="."){if(dN===dL.slice(1)){return true}dM=dN.length-dL.length;if((dM>0)&&(dN.slice(dM)===dL)){return true}}return false}function cB(dL){var dM=document.createElement("a");if(dL.indexOf("//")!==0&&dL.indexOf("http")!==0){if(dL.indexOf("*")===0){dL=dL.substr(1)}if(dL.indexOf(".")===0){dL=dL.substr(1)}dL="http://"+dL}dM.href=x.toAbsoluteUrl(dL);if(dM.pathname){return dM.pathname}return""}function be(dM,dL){if(!ao(dL,"/")){dL="/"+dL}if(!ao(dM,"/")){dM="/"+dM}var dN=(dL==="/"||dL==="/*");if(dN){return true}if(dM===dL){return true}dL=String(dL).toLowerCase();dM=String(dM).toLowerCase();if(V(dL,"*")){dL=dL.slice(0,-1);dN=(!dL||dL==="/");if(dN){return true}if(dM===dL){return true}return dM.indexOf(dL)===0}if(!V(dM,"/")){dM+="/"}if(!V(dL,"/")){dL+="/" -}return dM.indexOf(dL)===0}function aA(dP,dR){var dM,dL,dN,dO,dQ;for(dM=0;dM0)&&(dO.slice(dN)===dL)){return true}}}return false}function cJ(dL){var dM,dO,dQ,dN,dP;if(!dL.length||!cS.length){return false}dO=d(dL);dQ=cB(dL);if(dO.indexOf("www.")===0){dO=dO.substr(4)}for(dM=0;dM0){return true}q=e(X.location.href,"tracker_install_check");return q&&q.length>0}function cI(){if(au()&&aa(X)){X.close()}}function cF(dL,dN){dL=dL.replace("send_image=0","send_image=1");var dM=new Image(1,1);dM.onload=function(){I=0;if(typeof dN==="function"){dN({request:dL,trackerUrl:aM,success:true}) -}};dM.onerror=function(){if(typeof dN==="function"){dN({request:dL,trackerUrl:aM,success:false})}};dM.src=aM+(aM.indexOf("?")<0?"?":"&")+dL;cI()}function c2(dL){if(dC==="POST"){return true}return dL&&(dL.length>2000||dL.indexOf('{"requests"')===0)}function aT(){return"object"===typeof g&&"function"===typeof g.sendBeacon&&"function"===typeof Blob}function bh(dP,dS,dR){var dN=aT();if(!dN){return false}var dO={type:"application/x-www-form-urlencoded; charset=UTF-8"};var dT=false;var dM=aM;try{var dL=new Blob([dP],dO);if(dR&&!c2(dP)){dL=new Blob([],dO);dM=dM+(dM.indexOf("?")<0?"?":"&")+dP}dT=g.sendBeacon(dM,dL)}catch(dQ){return false}if(dT&&typeof dS==="function"){dS({request:dP,trackerUrl:aM,success:true,isSendBeacon:true})}cI();return dT}function dw(dM,dN,dL){if(!N(dL)||null===dL){dL=true}if(m&&bh(dM,dN,dL)){return}setTimeout(function(){if(m&&bh(dM,dN,dL)){return}var dQ;try{var dP=X.XMLHttpRequest?new X.XMLHttpRequest():X.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;dP.open("POST",aM,true); -dP.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dR=m&&bh(dM,dN,dL);if(!dR&&dL){cF(dM,dN)}else{if(typeof dN==="function"){dN({request:dM,trackerUrl:aM,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dN==="function")){dN({request:dM,trackerUrl:aM,success:true,xhr:this})}}};dP.setRequestHeader("Content-Type",cR);dP.withCredentials=true;dP.send(dM)}catch(dO){dQ=m&&bh(dM,dN,dL);if(!dQ&&dL){cF(dM,dN)}else{if(typeof dN==="function"){dN({request:dM,trackerUrl:aM,success:false})}}}cI()},50)}function cv(dM){var dL=new Date();var dN=dL.getTime()+dM;if(!s||dN>s){s=dN}}function bl(){bn=true;cT=new Date().getTime()}function dF(){var dL=new Date().getTime();return !cT||(dL-cT)>bg}function aH(){if(dF()){b4()}}function a5(){if(K.visibilityState==="hidden"&&dF()){b4()}else{if(K.visibilityState==="visible"){cT=new Date().getTime()}}}function dJ(){if(aW||!bg){return}aW=true;at(X,"focus",bl);at(X,"blur",aH);at(X,"visibilitychange",a5);ag++;v.addPlugin("HeartBeat"+ag,{unload:function(){if(aW&&dF()){b4() -}}})}function c0(dP){var dM=new Date();var dL=dM.getTime();dq=dL;if(cZ&&dL=dL.length){return[dL]}var dM=0;var dN=dL.length;var dO=[];for(dM;dM=dM&&dL<=(dM+ba)){return true}}return false}function dI(dL){if(!db){return""}var dP=e(dL,aD);if(!dP){return""}dP=String(dP);var dN=new RegExp("^[a-zA-Z0-9]+$");if(dP.length===32&&dN.test(dP)){var dM=dP.substr(16,32); -if(du(dM)){var dO=dP.substr(0,16);return dO}}return""}function dc(){if(!b0){b0=dI(bZ)}var dN=new Date(),dL=Math.round(dN.getTime()/1000),dM=a2("id"),dQ=aL(dM),dP,dO;if(dQ){dP=dQ.split(".");dP.unshift("0");if(b0.length){dP[1]=b0}return dP}if(b0.length){dO=b0}else{if("0"===ci()){dO=""}else{dO=df()}}dP=["1",dO,dL];return dP}function a9(){var dO=dc(),dM=dO[0],dN=dO[1],dL=dO[2];return{newVisitor:dM,uuid:dN,createTs:dL}}function aP(){var dO=new Date(),dM=dO.getTime(),dP=a9().createTs;var dL=parseInt(dP,10);var dN=(dL*1000)+c8-dM;return dN}function aV(dL){if(!cj){return}var dN=new Date(),dM=Math.round(dN.getTime()/1000);if(!N(dL)){dL=a9()}var dO=dL.uuid+"."+dL.createTs+".";dG(a2("id"),dO,aP(),bC,dp,b5,aR)}function bX(){var dL=aL(a2("ref"));if(dL.length){try{dL=X.JSON.parse(dL);if(aa(dL)){return dL}}catch(dM){}}return["","",0,""]}function bJ(dN){var dM=bv+"testcookie_domain";var dL="testvalue";dG(dM,dL,10000,null,dN,b5,aR);if(aL(dM)===dL){cc(dM,null,dN);return true}return false}function aN(){var dM=bx; -bx=false;var dL,dN;for(dL=0;dL0){dP=parseInt(dP,10);dS(dP)}})}var bQ={enabled:true,requests:[],timeout:null,interval:2500,sendRequests:function(){var dL=this.requests;this.requests=[];if(dL.length===1){bS(dL[0],bW)}else{dH(dL,bW)}},canQueue:function(){return !m&&this.enabled},pushMultiple:function(dM){if(!this.canQueue()){dH(dM,bW);return}var dL;for(dL=0;dL0){if(!N(dM)){dM=""}if(!y(dM)){dM=String(dM)}bz[dL]=dM}};this.getCustomDimension=function(dL){dL=parseInt(dL,10);if(dL>0&&Object.prototype.hasOwnProperty.call(bz,dL)){return bz[dL]}};this.deleteCustomDimension=function(dL){dL=parseInt(dL,10);if(dL>0){delete bz[dL]}};this.setCustomVariable=function(dM,dL,dP,dN){var dO;if(!N(dN)){dN="visit"}if(!N(dL)){return}if(!N(dP)){dP=""}if(dM>0){dL=!y(dL)?String(dL):dL;dP=!y(dP)?String(dP):dP;dO=[dL.slice(0,bG),dP.slice(0,bG)];if(dN==="visit"||dN===2){c3();aZ[dM]=dO}else{if(dN==="page"||dN===3){b9[dM]=dO}else{if(dN==="event"){cC[dM]=dO}}}}};this.getCustomVariable=function(dM,dN){var dL;if(!N(dN)){dN="visit"}if(dN==="page"||dN===3){dL=b9[dM]}else{if(dN==="event"){dL=cC[dM]}else{if(dN==="visit"||dN===2){c3(); -dL=aZ[dM]}}}if(!N(dL)||(dL&&dL[0]==="")){return false}return dL};this.deleteCustomVariable=function(dL,dM){if(this.getCustomVariable(dL,dM)){this.setCustomVariable(dL,"","",dM)}};this.deleteCustomVariables=function(dL){if(dL==="page"||dL===3){b9={}}else{if(dL==="event"){cC={}}else{if(dL==="visit"||dL===2){aZ={}}}}};this.storeCustomVariablesInCookie=function(){b3=true};this.setLinkTrackingTimer=function(dL){bW=dL};this.getLinkTrackingTimer=function(){return bW};this.setDownloadExtensions=function(dL){if(y(dL)){dL=dL.split("|")}dy=dL};this.addDownloadExtensions=function(dM){var dL;if(y(dM)){dM=dM.split("|")}for(dL=0;dL1&&av!=="addTracker"&&av!=="enableLinkTracking"){ap("The method "+av+' 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') -}aA[av]++}}}}return az}var F=["addTracker","enableFileTracking","forgetCookieConsentGiven","requireCookieConsent","disableBrowserFeatureDetection","disableCampaignParameters","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","setExcludedReferrers"];function ai(aw,av){var au=new U(aw,av);M.push(au);_paq=c(_paq,F);for(I=0;I<_paq.length;I++){if(_paq[I]){ak(_paq[I])}}_paq=new L();v.trigger("TrackerAdded",[au]);return au}at(X,"beforeunload",an,false);at(X,"visibilitychange",function(){if(m){return}if(K.visibilityState==="hidden"){ah("unload") -}},false);at(X,"online",function(){if(N(g.serviceWorker)){g.serviceWorker.ready.then(function(au){if(au&&au.sync){return au.sync.register("matomoSync")}},function(){})}},false);at(X,"message",function(az){if(!az||!az.origin){return}var aB,ax,av;var aC=d(az.origin);var ay=v.getAsyncTrackers();for(ax=0;ax=0)&&aL(dQ)!==String(dR)){var dM="There was an error setting cookie `"+dQ+"`. Please check domain and path.";ap(dM)}}function cf(dM){var dO,dN;if(dn!==true&&!cY){for(dN=0;dN=0){dO=dO.slice(0,dN)}dN=dO.lastIndexOf("/");if(dN!==dO.length-1){dO=dO.slice(0,dN+1)}return dO+dM}function c5(dO,dM){var dN;dO=String(dO).toLowerCase();dM=String(dM).toLowerCase();if(dO===dM){return true}if(dM.slice(0,1)==="."){if(dO===dM.slice(1)){return true}dN=dO.length-dM.length;if((dN>0)&&(dO.slice(dN)===dM)){return true}}return false}function cB(dM){var dN=document.createElement("a");if(dM.indexOf("//")!==0&&dM.indexOf("http")!==0){if(dM.indexOf("*")===0){dM=dM.substr(1)}if(dM.indexOf(".")===0){dM=dM.substr(1)}dM="http://"+dM}dN.href=x.toAbsoluteUrl(dM);if(dN.pathname){return dN.pathname}return""}function be(dN,dM){if(!ao(dM,"/")){dM="/"+dM}if(!ao(dN,"/")){dN="/"+dN}var dO=(dM==="/"||dM==="/*");if(dO){return true}if(dN===dM){return true}dM=String(dM).toLowerCase();dN=String(dN).toLowerCase();if(V(dM,"*")){dM=dM.slice(0,-1);dO=(!dM||dM==="/");if(dO){return true}if(dN===dM){return true}return dN.indexOf(dM)===0}if(!V(dN,"/")){dN+="/"}if(!V(dM,"/")){dM+="/" +}return dN.indexOf(dM)===0}function aA(dQ,dS){var dN,dM,dO,dP,dR;for(dN=0;dN0)&&(dP.slice(dO)===dM)){return true}}}return false}function cJ(dM){var dN,dP,dR,dO,dQ;if(!dM.length||!cS.length){return false}dP=d(dM);dR=cB(dM);if(dP.indexOf("www.")===0){dP=dP.substr(4)}for(dN=0;dN0){return true}q=e(X.location.href,"tracker_install_check");return q&&q.length>0}function cI(){if(au()&&aa(X)){X.close()}}function cF(dM,dO){dM=dM.replace("send_image=0","send_image=1");var dN=new Image(1,1);dN.onload=function(){I=0;if(typeof dO==="function"){dO({request:dM,trackerUrl:aM,success:true}) +}};dN.onerror=function(){if(typeof dO==="function"){dO({request:dM,trackerUrl:aM,success:false})}};dN.src=aM+(aM.indexOf("?")<0?"?":"&")+dM;cI()}function c2(dM){if(dD==="POST"){return true}return dM&&(dM.length>2000||dM.indexOf('{"requests"')===0)}function aT(){return"object"===typeof g&&"function"===typeof g.sendBeacon&&"function"===typeof Blob}function bh(dQ,dT,dS){var dO=aT();if(!dO){return false}var dP={type:"application/x-www-form-urlencoded; charset=UTF-8"};var dU=false;var dN=aM;try{var dM=new Blob([dQ],dP);if(dS&&!c2(dQ)){dM=new Blob([],dP);dN=dN+(dN.indexOf("?")<0?"?":"&")+dQ}dU=g.sendBeacon(dN,dM)}catch(dR){return false}if(dU&&typeof dT==="function"){dT({request:dQ,trackerUrl:aM,success:true,isSendBeacon:true})}cI();return dU}function dx(dN,dO,dM){if(!N(dM)||null===dM){dM=true}if(m&&bh(dN,dO,dM)){return}setTimeout(function(){if(m&&bh(dN,dO,dM)){return}var dR;try{var dQ=X.XMLHttpRequest?new X.XMLHttpRequest():X.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;dQ.open("POST",aM,true); +dQ.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dS=m&&bh(dN,dO,dM);if(!dS&&dM){cF(dN,dO)}else{if(typeof dO==="function"){dO({request:dN,trackerUrl:aM,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dO==="function")){dO({request:dN,trackerUrl:aM,success:true,xhr:this})}}};dQ.setRequestHeader("Content-Type",cR);dQ.withCredentials=true;dQ.send(dN)}catch(dP){dR=m&&bh(dN,dO,dM);if(!dR&&dM){cF(dN,dO)}else{if(typeof dO==="function"){dO({request:dN,trackerUrl:aM,success:false})}}}cI()},50)}function cv(dN){var dM=new Date();var dO=dM.getTime()+dN;if(!s||dO>s){s=dO}}function bl(){bn=true;cT=new Date().getTime()}function dG(){var dM=new Date().getTime();return !cT||(dM-cT)>bg}function aH(){if(dG()){b4()}}function a5(){if(K.visibilityState==="hidden"&&dG()){b4()}else{if(K.visibilityState==="visible"){cT=new Date().getTime()}}}function dK(){if(aW||!bg){return}aW=true;at(X,"focus",bl);at(X,"blur",aH);at(X,"visibilitychange",a5);ag++;v.addPlugin("HeartBeat"+ag,{unload:function(){if(aW&&dG()){b4() +}}})}function c0(dQ){var dN=new Date();var dM=dN.getTime();dr=dM;if(cZ&&dM=dM.length){return[dM]}var dN=0;var dO=dM.length;var dP=[];for(dN;dN=dN&&dM<=(dN+ba)){return true}}return false}function dJ(dM){if(!dc){return""}var dQ=e(dM,aD);if(!dQ){return""}dQ=String(dQ);var dO=new RegExp("^[a-zA-Z0-9]+$");if(dQ.length===32&&dO.test(dQ)){var dN=dQ.substr(16,32); +if(dv(dN)){var dP=dQ.substr(0,16);return dP}}return""}function dd(){if(!b0){b0=dJ(bZ)}var dO=new Date(),dM=Math.round(dO.getTime()/1000),dN=a2("id"),dR=aL(dN),dQ,dP;if(dR){dQ=dR.split(".");dQ.unshift("0");if(b0.length){dQ[1]=b0}return dQ}if(b0.length){dP=b0}else{if("0"===ci()){dP=""}else{dP=dg()}}dQ=["1",dP,dM];return dQ}function a9(){var dP=dd(),dN=dP[0],dO=dP[1],dM=dP[2];return{newVisitor:dN,uuid:dO,createTs:dM}}function aP(){var dP=new Date(),dN=dP.getTime(),dQ=a9().createTs;var dM=parseInt(dQ,10);var dO=(dM*1000)+c8-dN;return dO}function aV(dM){if(!cj){return}var dO=new Date(),dN=Math.round(dO.getTime()/1000);if(!N(dM)){dM=a9()}var dP=dM.uuid+"."+dM.createTs+".";dH(a2("id"),dP,aP(),bC,dq,b5,aR)}function bX(){var dM=aL(a2("ref"));if(dM.length){try{dM=X.JSON.parse(dM);if(aa(dM)){return dM}}catch(dN){}}return["","",0,""]}function bJ(dO){var dN=bv+"testcookie_domain";var dM="testvalue";dH(dN,dM,10000,null,dO,b5,aR);if(aL(dN)===dM){cc(dN,null,dO);return true}return false}function aN(){var dN=bx; +bx=false;var dM,dO;for(dM=0;dM0){dQ=parseInt(dQ,10);dT(dQ)}})}var bQ={enabled:true,requests:[],timeout:null,interval:2500,sendRequests:function(){var dM=this.requests;this.requests=[];if(dM.length===1){bS(dM[0],bW)}else{dI(dM,bW)}},canQueue:function(){return !m&&this.enabled},pushMultiple:function(dN){if(!this.canQueue()){dI(dN,bW);return}var dM;for(dM=0;dM0){if(!N(dN)){dN=""}if(!y(dN)){dN=String(dN)}bz[dM]=dN}};this.getCustomDimension=function(dM){dM=parseInt(dM,10);if(dM>0&&Object.prototype.hasOwnProperty.call(bz,dM)){return bz[dM]}};this.deleteCustomDimension=function(dM){dM=parseInt(dM,10);if(dM>0){delete bz[dM]}};this.setCustomVariable=function(dN,dM,dQ,dO){var dP;if(!N(dO)){dO="visit"}if(!N(dM)){return}if(!N(dQ)){dQ=""}if(dN>0){dM=!y(dM)?String(dM):dM;dQ=!y(dQ)?String(dQ):dQ;dP=[dM.slice(0,bG),dQ.slice(0,bG)];if(dO==="visit"||dO===2){c3();aZ[dN]=dP}else{if(dO==="page"||dO===3){b9[dN]=dP +}else{if(dO==="event"){cC[dN]=dP}}}}};this.getCustomVariable=function(dN,dO){var dM;if(!N(dO)){dO="visit"}if(dO==="page"||dO===3){dM=b9[dN]}else{if(dO==="event"){dM=cC[dN]}else{if(dO==="visit"||dO===2){c3();dM=aZ[dN]}}}if(!N(dM)||(dM&&dM[0]==="")){return false}return dM};this.deleteCustomVariable=function(dM,dN){if(this.getCustomVariable(dM,dN)){this.setCustomVariable(dM,"","",dN)}};this.deleteCustomVariables=function(dM){if(dM==="page"||dM===3){b9={}}else{if(dM==="event"){cC={}}else{if(dM==="visit"||dM===2){aZ={}}}}};this.storeCustomVariablesInCookie=function(){b3=true};this.setLinkTrackingTimer=function(dM){bW=dM};this.getLinkTrackingTimer=function(){return bW};this.setDownloadExtensions=function(dM){if(y(dM)){dM=dM.split("|")}dz=dM};this.addDownloadExtensions=function(dN){var dM;if(y(dN)){dN=dN.split("|")}for(dM=0;dM1&&av!=="addTracker"&&av!=="enableLinkTracking"){ap("The method "+av+' 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')}aA[av]++}}}}return az}var F=["addTracker","enableFileTracking","forgetCookieConsentGiven","requireCookieConsent","disableBrowserFeatureDetection","disableCampaignParameters","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","setExcludedReferrers"]; +function ai(aw,av){var au=new U(aw,av);M.push(au);_paq=c(_paq,F);for(I=0;I<_paq.length;I++){if(_paq[I]){ak(_paq[I])}}_paq=new L();v.trigger("TrackerAdded",[au]);return au}at(X,"beforeunload",an,false);at(X,"visibilitychange",function(){if(m){return}if(K.visibilityState==="hidden"){ah("unload")}},false);at(X,"online",function(){if(N(g.serviceWorker)){g.serviceWorker.ready.then(function(au){if(au&&au.sync){return au.sync.register("matomoSync")}},function(){})}},false);at(X,"message",function(az){if(!az||!az.origin){return}var aB,ax,av;var aC=d(az.origin);var ay=v.getAsyncTrackers();for(ax=0;ax