diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-05-30 19:21:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 19:21:57 +0300 |
commit | bd6b69c57641222f0ade973087555f42e02acb6a (patch) | |
tree | d8fc08440946912c833df5a4fb69c0ac3d6c33d5 /piwik.js | |
parent | 7fa84731896c4ecf1514d0281adbe8b4e97ef511 (diff) |
Try to set referrer attribution cookie when leaving the page if no tracking request was sent yet (#19200)
* Try to set referrer attribution cookie when leaving the page if no tracking request was sent yet
* rebuilt piwik.js
* Adds js test
Diffstat (limited to 'piwik.js')
-rw-r--r-- | piwik.js | 83 |
1 files changed, 42 insertions, 41 deletions
@@ -29,46 +29,47 @@ at=ai.findFirstNodeHavingAttribute(au,this.CONTENT_PIECE_ATTR);if(!at){at=ai.fin }if(aw){aw+="&ca=1"}return aw},buildContentBlock:function(av){if(!av){return}var at=this.findContentName(av);var au=this.findContentPiece(av);var aw=this.findContentTarget(av);at=this.trim(at);au=this.trim(au);aw=this.trim(aw);return{name:at||"Unknown",piece:au||"Unknown",target:aw||""}},collectContent:function(aw){if(!aw||!aw.length){return[]}var av=[];var at,au;for(at=0;at<aw.length;at++){au=this.buildContentBlock(aw[at]);if(M(au)){av.push(au)}}return av},setLocation:function(at){this.location=at},getLocation:function(){var at=this.location||W.location;if(!at.origin){at.origin=at.protocol+"//"+at.hostname+(at.port?":"+at.port:"")}return at},toAbsoluteUrl:function(au){if((!au||String(au)!==au)&&au!==""){return au}if(""===au){return this.getLocation().href}if(au.search(/^\/\//)!==-1){return this.getLocation().protocol+au}if(au.search(/:\/\//)!==-1){return au}if(0===au.indexOf("#")){return this.getLocation().origin+this.getLocation().pathname+au}if(0===au.indexOf("?")){return this.getLocation().origin+this.getLocation().pathname+au }if(0===au.search("^[a-zA-Z]{2,11}:")){return au}if(au.search(/^\//)!==-1){return this.getLocation().origin+au}var at="(.*/)";var av=this.getLocation().origin+this.getLocation().pathname.match(new RegExp(at))[0];return av+au},isUrlToCurrentDomain:function(au){var av=this.toAbsoluteUrl(au);if(!av){return false}var at=this.getLocation().origin;if(at===av){return true}if(0===String(av).indexOf(at)){if(":"===String(av).substr(at.length,1)){return false}return true}return false},setHrefAttribute:function(au,at){if(!au||!at){return}ai.setAnyAttribute(au,"href",at)},shouldIgnoreInteraction:function(at){if(ai.hasNodeAttribute(at,this.CONTENT_IGNOREINTERACTION_ATTR)){return true}if(ai.hasNodeCssClass(at,this.CONTENT_IGNOREINTERACTION_CLASS)){return true}if(ai.hasNodeCssClass(at,this.LEGACY_CONTENT_IGNOREINTERACTION_CLASS)){return true}return false}};function aa(au,ax){if(ax){return ax}au=w.toAbsoluteUrl(au);if(A(au,"?")){var aw=au.indexOf("?");au=au.slice(0,aw)}if(U(au,"matomo.php")){au=f(au,"matomo.php".length) }else{if(U(au,"piwik.php")){au=f(au,"piwik.php".length)}else{if(U(au,".php")){var at=au.lastIndexOf("/");var av=1;au=au.slice(0,at+av)}}}if(U(au,"/js/")){au=f(au,"js/".length)}return au}function R(az){var aB="Matomo_Overlay";var au=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)(&segment=[^&]*)?");var av=au.exec(J.referrer);if(av){var ax=av[1];if(ax!==String(az)){return false}var ay=av[2],at=av[3],aw=av[4];if(!aw){aw=""}else{if(aw.indexOf("&segment=")===0){aw=aw.substr("&segment=".length)}}W.name=aB+"###"+ay+"###"+at+"###"+aw}var aA=W.name.split("###");return aA.length===4&&aA[0]===aB}function ad(au,az,av){var ay=W.name.split("###"),ax=ay[1],at=ay[2],aw=ay[3],aA=aa(au,az);o(aA+"plugins/Overlay/client/client.js?v=1",function(){Matomo_Overlay_Client.initialize(aA,av,ax,at,aw)})}function v(){var av;try{av=W.frameElement}catch(au){return true}if(M(av)){return(av&&String(av.nodeName).toLowerCase()==="iframe")?true:false}try{return W.self!==W.top -}catch(at){return true}}function T(cj,cf){var bP=this,bj="mtm_consent",cL="mtm_cookie_consent",cU="mtm_consent_removed",ca=ae(J.domain,W.location.href,N()),c2=O(ca[0]),bT=p(ca[1]),bu=p(ca[2]),c0=false,cn="GET",dj=cn,aM="application/x-www-form-urlencoded; charset=UTF-8",cE=aM,aI=cj||"",bO="",c9="",ct="",cc=cf||"",bF="",bU="",ba,bp="",dg=["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"],aC=[c2],bG=[],co=[],bR=[],be=[],bQ=500,c5=true,cR,bb,bX,bV,at,cw=["pk_campaign","mtm_campaign","piwik_campaign","matomo_campaign","utm_campaign","utm_source","utm_medium"],bN=["pk_kwd","mtm_kwd","piwik_kwd","matomo_kwd","utm_term"],bq="_pk_",az="pk_vid",a5=180,c7,bw,bY=false,aN="Lax",bs=false,cY,bk,bC,cS=33955200000,cu=1800000,df=15768000000,a8=true,bL=false,bn=false,bW=false,aV=false,ch,b2={},cs={},bt={},bA=200,cA={},da={},dh={},cg=[],ck=false,cJ=false,au=false,di=false,cV=false,aS=false,bi=v(),cF=null,c8=null,aW,bI,cd=aq,bv,aQ,bH=false,cx=0,bB=["id","ses","cvar","ref"],cI=false,bJ=null,cT=[],cz=[],aB=X++,aA=false,c6=true; -try{bp=J.title}catch(cG){bp=""}function aH(dv){if(bs){return 0}var dt=new RegExp("(^|;)[ ]*"+dv+"=([^;]*)"),du=dt.exec(J.cookie);return du?V(du[2]):0}bJ=!aH(cU);function dn(dx,dy,dB,dA,dv,dw,dz){if(bs&&dx!==cU){return}var du;if(dB){du=new Date();du.setTime(du.getTime()+dB)}if(!dz){dz="Lax"}J.cookie=dx+"="+t(dy)+(dB?";expires="+du.toGMTString():"")+";path="+(dA||"/")+(dv?";domain="+dv:"")+(dw?";secure":"")+";SameSite="+dz;if((!dB||dB>=0)&&aH(dx)!==String(dy)){var dt="There was an error setting cookie `"+dx+"`. Please check domain and path.";ao(dt)}}function b8(dt){var dv,du;dt=j(dt,az);for(du=0;du<co.length;du++){dt=j(dt,co[du])}if(bV){dv=new RegExp("#.*");return dt.replace(dv,"")}return dt}function b1(dv,dt){var dw=s(dt),du;if(dw){return dt}if(dt.slice(0,1)==="/"){return s(dv)+"://"+d(dv)+dt}dv=b8(dv);du=dv.indexOf("?");if(du>=0){dv=dv.slice(0,du)}du=dv.lastIndexOf("/");if(du!==dv.length-1){dv=dv.slice(0,du+1)}return dv+dt}function cP(dv,dt){var du;dv=String(dv).toLowerCase();dt=String(dt).toLowerCase(); -if(dv===dt){return true}if(dt.slice(0,1)==="."){if(dv===dt.slice(1)){return true}du=dv.length-dt.length;if((du>0)&&(dv.slice(du)===dt)){return true}}return false}function cr(dt){var du=document.createElement("a");if(dt.indexOf("//")!==0&&dt.indexOf("http")!==0){if(dt.indexOf("*")===0){dt=dt.substr(1)}if(dt.indexOf(".")===0){dt=dt.substr(1)}dt="http://"+dt}du.href=w.toAbsoluteUrl(dt);if(du.pathname){return du.pathname}return""}function a9(du,dt){if(!an(dt,"/")){dt="/"+dt}if(!an(du,"/")){du="/"+du}var dv=(dt==="/"||dt==="/*");if(dv){return true}if(du===dt){return true}dt=String(dt).toLowerCase();du=String(du).toLowerCase();if(U(dt,"*")){dt=dt.slice(0,-1);dv=(!dt||dt==="/");if(dv){return true}if(du===dt){return true}return du.indexOf(dt)===0}if(!U(du,"/")){du+="/"}if(!U(dt,"/")){dt+="/"}return du.indexOf(dt)===0}function aw(dx,dz){var du,dt,dv,dw,dy;for(du=0;du<aC.length;du++){dw=O(aC[du]);dy=cr(aC[du]);if(cP(dx,dw)&&a9(dz,dy)){return true}}return false}function a1(dw){var du,dt,dv;for(du=0; -du<aC.length;du++){dt=O(aC[du].toLowerCase());if(dw===dt){return true}if(dt.slice(0,1)==="."){if(dw===dt.slice(1)){return true}dv=dw.length-dt.length;if((dv>0)&&(dw.slice(dv)===dt)){return true}}}return false}function cv(dt,dv){dt=dt.replace("send_image=0","send_image=1");var du=new Image(1,1);du.onload=function(){H=0;if(typeof dv==="function"){dv({request:dt,trackerUrl:aI,success:true})}};du.onerror=function(){if(typeof dv==="function"){dv({request:dt,trackerUrl:aI,success:false})}};du.src=aI+(aI.indexOf("?")<0?"?":"&")+dt}function cM(dt){if(dj==="POST"){return true}return dt&&(dt.length>2000||dt.indexOf('{"requests"')===0)}function aP(){return"object"===typeof g&&"function"===typeof g.sendBeacon&&"function"===typeof Blob}function bc(dx,dA,dz){var dv=aP();if(!dv){return false}var dw={type:"application/x-www-form-urlencoded; charset=UTF-8"};var dB=false;var du=aI;try{var dt=new Blob([dx],dw);if(dz&&!cM(dx)){dt=new Blob([],dw);du=du+(du.indexOf("?")<0?"?":"&")+dx}dB=g.sendBeacon(du,dt)}catch(dy){return false -}if(dB&&typeof dA==="function"){dA({request:dx,trackerUrl:aI,success:true,isSendBeacon:true})}return dB}function de(du,dv,dt){if(!M(dt)||null===dt){dt=true}if(m&&bc(du,dv,dt)){return}setTimeout(function(){if(m&&bc(du,dv,dt)){return}var dy;try{var dx=W.XMLHttpRequest?new W.XMLHttpRequest():W.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;dx.open("POST",aI,true);dx.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dz=m&&bc(du,dv,dt);if(!dz&&dt){cv(du,dv)}else{if(typeof dv==="function"){dv({request:du,trackerUrl:aI,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dv==="function")){dv({request:du,trackerUrl:aI,success:true,xhr:this})}}};dx.setRequestHeader("Content-Type",cE);dx.withCredentials=true;dx.send(du)}catch(dw){dy=m&&bc(du,dv,dt);if(!dy&&dt){cv(du,dv)}else{if(typeof dv==="function"){dv({request:du,trackerUrl:aI,success:false})}}}},50)}function cl(du){var dt=new Date();var dv=dt.getTime()+du;if(!r||dv>r){r=dv}}function bg(){bi=true; -cF=new Date().getTime()}function dm(){var dt=new Date().getTime();return !cF||(dt-cF)>bb}function aD(){if(dm()){bX()}}function a0(){if(J.visibilityState==="hidden"&&dm()){bX()}else{if(J.visibilityState==="visible"){cF=new Date().getTime()}}}function dq(){if(aS||!bb){return}aS=true;ar(W,"focus",bg);ar(W,"blur",aD);ar(W,"visibilitychange",a0);af++;u.addPlugin("HeartBeat"+af,{unload:function(){if(aS&&dm()){bX()}}})}function cK(dx){var du=new Date();var dt=du.getTime();c8=dt;if(cJ&&dt<cJ){var dv=cJ-dt;setTimeout(dx,dv);cl(dv+50);cJ+=50;return}if(cJ===false){var dw=800;cJ=dt+dw}dx()}function aT(){if(aH(cU)){bJ=false}else{if(aH(bj)){bJ=true}}}function bM(du,dt,dv){aT();if(!bJ){cT.push(du);return}aA=true;if(!cY&&du){if(cI&&bJ){du+="&consent=1"}cK(function(){if(c5&&bc(du,dv,true)){cl(100);return}if(cM(du)){de(du,dv)}else{cv(du,dv)}cl(dt)})}if(!aS){dq()}}function cq(dt){if(cY){return false}return(dt&&dt.length)}function dd(dt,dx){if(!dx||dx>=dt.length){return[dt]}var du=0;var dv=dt.length;var dw=[]; -for(du;du<dv;du+=dx){dw.push(dt.slice(du,du+dx))}return dw}function dp(du,dt){if(!cq(du)){return}if(!bJ){cT.push(du);return}aA=true;cK(function(){var dx=dd(du,50);var dv=0,dw;for(dv;dv<dx.length;dv++){dw='{"requests":["?'+dx[dv].join('","?')+'"],"send_image":0}';if(c5&&bc(dw,null,false)){cl(100)}else{de(dw,null,false)}}cl(dt)})}function aY(dt){return bq+dt+"."+cc+"."+bv}function b5(dv,du,dt){dn(dv,"",-129600000,du,dt)}function cb(){if(bs){return"0"}if(!M(W.showModalDialog)&&M(g.cookieEnabled)){return g.cookieEnabled?"1":"0"}var dt=bq+"testcookie";dn(dt,"1",undefined,bw,c7,bY,aN);var du=aH(dt)==="1"?"1":"0";b5(dt);return du}function bo(){bv=cd((c7||c2)+(bw||"/")).slice(0,4)}function cQ(){if(!c6){return{}}if(M(dh.res)){return dh}var du,dw,dx={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(g.userAgent))){if(g.mimeTypes&&g.mimeTypes.length){for(du in dx){if(Object.prototype.hasOwnProperty.call(dx,du)){dw=g.mimeTypes[dx[du]]; -dh[du]=(dw&&dw.enabledPlugin)?"1":"0"}}}if(!((new RegExp("Edge[ /](\\d+[\\.\\d]+)")).test(g.userAgent))&&typeof navigator.javaEnabled!=="unknown"&&M(g.javaEnabled)&&g.javaEnabled()){dh.java="1"}if(!M(W.showModalDialog)&&M(g.cookieEnabled)){dh.cookie=g.cookieEnabled?"1":"0"}else{dh.cookie=cb()}}var dv=parseInt(ab.width,10);var dt=parseInt(ab.height,10);dh.res=parseInt(dv,10)+"x"+parseInt(dt,10);return dh}function b3(){var du=aY("cvar"),dt=aH(du);if(dt&&dt.length){dt=W.JSON.parse(dt);if(Z(dt)){return dt}}return{}}function cN(){if(aV===false){aV=b3()}}function cZ(){var dt=cQ();return cd((g.userAgent||"")+(g.platform||"")+W.JSON.stringify(dt)+(new Date()).getTime()+Math.random()).slice(0,16)}function aF(){var dt=cQ();return cd((g.userAgent||"")+(g.platform||"")+W.JSON.stringify(dt)).slice(0,6)}function bl(){return Math.floor((new Date()).getTime()/1000)}function aO(){var du=bl();var dv=aF();var dt=String(du)+dv;return dt}function dc(dv){dv=String(dv);var dy=aF();var dw=dy.length;var dx=dv.substr(-1*dw,dw); -var du=parseInt(dv.substr(0,dv.length-dw),10);if(du&&dx&&dx===dy){var dt=bl();if(a5<=0){return true}if(dt>=du&&dt<=(du+a5)){return true}}return false}function dr(dt){if(!cV){return""}var dx=e(dt,az);if(!dx){return""}dx=String(dx);var dv=new RegExp("^[a-zA-Z0-9]+$");if(dx.length===32&&dv.test(dx)){var du=dx.substr(16,32);if(dc(du)){var dw=dx.substr(0,16);return dw}}return""}function cW(){if(!bU){bU=dr(bT)}var dv=new Date(),dt=Math.round(dv.getTime()/1000),du=aY("id"),dy=aH(du),dx,dw;if(dy){dx=dy.split(".");dx.unshift("0");if(bU.length){dx[1]=bU}return dx}if(bU.length){dw=bU}else{if("0"===cb()){dw=""}else{dw=cZ()}}dx=["1",dw,dt];return dx}function a4(){var dw=cW(),du=dw[0],dv=dw[1],dt=dw[2];return{newVisitor:du,uuid:dv,createTs:dt}}function aL(){var dw=new Date(),du=dw.getTime(),dx=a4().createTs;var dt=parseInt(dx,10);var dv=(dt*1000)+cS-du;return dv}function aR(dt){if(!cc){return}var dv=new Date(),du=Math.round(dv.getTime()/1000);if(!M(dt)){dt=a4()}var dw=dt.uuid+"."+dt.createTs+".";dn(aY("id"),dw,aL(),bw,c7,bY,aN) -}function bS(){var dt=aH(aY("ref"));if(dt.length){try{dt=W.JSON.parse(dt);if(Z(dt)){return dt}}catch(du){}}return["","",0,""]}function bD(dv){var du=bq+"testcookie_domain";var dt="testvalue";dn(du,dt,10000,null,dv,bY,aN);if(aH(du)===dt){b5(du,null,dv);return true}return false}function aJ(){var du=bs;bs=false;var dt,dv;for(dt=0;dt<bB.length;dt++){dv=aY(bB[dt]);if(dv!==cU&&dv!==bj&&0!==aH(dv)){b5(dv,bw,c7)}}bs=du}function b9(dt){cc=dt}function ds(dx){if(!dx||!Z(dx)){return}var dw=[];var dv;for(dv in dx){if(Object.prototype.hasOwnProperty.call(dx,dv)){dw.push(dv)}}var dy={};dw.sort();var dt=dw.length;var du;for(du=0;du<dt;du++){dy[dw[du]]=dx[dw[du]]}return dy}function ci(){dn(aY("ses"),"1",cu,bw,c7,bY,aN)}function bm(){var dw="";var du="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";var dv=du.length;var dt;for(dt=0;dt<6;dt++){dw+=du.charAt(Math.floor(Math.random()*dv))}return dw}function aE(du){if(ct!==""){du+=ct;bn=true;return du}if(!h){return du}var dv=(typeof h.timing==="object")&&h.timing?h.timing:undefined; -if(!dv){dv=(typeof h.getEntriesByType==="function")&&h.getEntriesByType("navigation")?h.getEntriesByType("navigation")[0]:undefined}if(!dv){return du}var dt="";if(dv.connectEnd&&dv.fetchStart){if(dv.connectEnd<dv.fetchStart){return du}dt+="&pf_net="+Math.round(dv.connectEnd-dv.fetchStart)}if(dv.responseStart&&dv.requestStart){if(dv.responseStart<dv.requestStart){return du}dt+="&pf_srv="+Math.round(dv.responseStart-dv.requestStart)}if(dv.responseStart&&dv.responseEnd){if(dv.responseEnd<dv.responseStart){return du}dt+="&pf_tfr="+Math.round(dv.responseEnd-dv.responseStart)}if(M(dv.domLoading)){if(dv.domInteractive&&dv.domLoading){if(dv.domInteractive<dv.domLoading){return du}dt+="&pf_dm1="+Math.round(dv.domInteractive-dv.domLoading)}}else{if(dv.domInteractive&&dv.responseEnd){if(dv.domInteractive<dv.responseEnd){return du}dt+="&pf_dm1="+Math.round(dv.domInteractive-dv.responseEnd)}}if(dv.domComplete&&dv.domInteractive){if(dv.domComplete<dv.domInteractive){return du}dt+="&pf_dm2="+Math.round(dv.domComplete-dv.domInteractive) -}if(dv.loadEventEnd&&dv.loadEventStart){if(dv.loadEventEnd<dv.loadEventStart){return du}dt+="&pf_onl="+Math.round(dv.loadEventEnd-dv.loadEventStart)}return du+dt}function cy(dv,dP,dQ){var dO,du=new Date(),dC=Math.round(du.getTime()/1000),dz,dM,dw=1024,dV,dD,dL=aV,dx=aY("ses"),dJ=aY("ref"),dG=aY("cvar"),dH=aH(dx),dN=bS(),dR=ba||bT,dA,dt;if(bs){aJ()}if(cY){return""}var dI=a4();var dF=J.characterSet||J.charset;if(!dF||dF.toLowerCase()==="utf-8"){dF=null}dA=dN[0];dt=dN[1];dz=dN[2];dM=dN[3];if(!dH){if(!bC||!dA.length){for(dO in cw){if(Object.prototype.hasOwnProperty.call(cw,dO)){dA=e(dR,cw[dO]);if(dA.length){break}}}for(dO in bN){if(Object.prototype.hasOwnProperty.call(bN,dO)){dt=e(dR,bN[dO]);if(dt.length){break}}}}dV=d(bu);dD=dM.length?d(dM):"";if(dV.length&&!a1(dV)&&(!bC||!dD.length||a1(dD))){dM=bu}if(dM.length||dA.length){dz=dC;dN=[dA,dt,dz,b8(dM.slice(0,dw))];dn(dJ,W.JSON.stringify(dN),df,bw,c7,bY,aN)}}dv+="&idsite="+cc+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+du.getHours()+"&m="+du.getMinutes()+"&s="+du.getSeconds()+"&url="+t(b8(dR))+(bu.length?"&urlref="+t(b8(bu)):"")+(ac(bF)?"&uid="+t(bF):"")+"&_id="+dI.uuid+"&_idn="+dI.newVisitor+(dA.length?"&_rcn="+t(dA):"")+(dt.length?"&_rck="+t(dt):"")+"&_refts="+dz+(String(dM).length?"&_ref="+t(b8(dM.slice(0,dw))):"")+(dF?"&cs="+t(dF):"")+"&send_image=0"; -var dU=cQ();for(dO in dU){if(Object.prototype.hasOwnProperty.call(dU,dO)){dv+="&"+dO+"="+dU[dO]}}var dT=[];if(dP){for(dO in dP){if(Object.prototype.hasOwnProperty.call(dP,dO)&&/^dimension\d+$/.test(dO)){var dy=dO.replace("dimension","");dT.push(parseInt(dy,10));dT.push(String(dy));dv+="&"+dO+"="+t(dP[dO]);delete dP[dO]}}}if(dP&&D(dP)){dP=null}for(dO in cA){if(Object.prototype.hasOwnProperty.call(cA,dO)){dv+="&"+dO+"="+t(cA[dO])}}for(dO in bt){if(Object.prototype.hasOwnProperty.call(bt,dO)){var dE=(-1===P(dT,dO));if(dE){dv+="&dimension"+dO+"="+t(bt[dO])}}}if(dP){dv+="&data="+t(W.JSON.stringify(dP))}else{if(at){dv+="&data="+t(W.JSON.stringify(at))}}function dB(dW,dX){var dY=W.JSON.stringify(dW);if(dY.length>2){return"&"+dX+"="+t(dY)}return""}var dS=ds(b2);var dK=ds(cs);dv+=dB(dS,"cvar");dv+=dB(dK,"e_cvar");if(aV){dv+=dB(aV,"_cvar");for(dO in dL){if(Object.prototype.hasOwnProperty.call(dL,dO)){if(aV[dO][0]===""||aV[dO][1]===""){delete aV[dO]}}}if(bW){dn(dG,W.JSON.stringify(aV),cu,bw,c7,bY,aN) -}}if(a8&&bL&&!bn){dv=aE(dv);bn=true}if(aQ){dv+="&pv_id="+aQ}aR(dI);ci();dv+=ag(dQ,{tracker:bP,request:dv});if(c9.length){dv+="&"+c9}if(C(ch)){dv=ch(dv)}return dv}bX=function bd(){var dt=new Date();dt=dt.getTime();if(!c8){return false}if(c8+bb<=dt){bP.ping();return true}return false};function bx(dw,dv,dA,dx,dt,dD){var dz="idgoal=0",du=new Date(),dB=[],dC,dy=String(dw).length;if(dy){dz+="&ec_id="+t(dw)}dz+="&revenue="+dv;if(String(dA).length){dz+="&ec_st="+dA}if(String(dx).length){dz+="&ec_tx="+dx}if(String(dt).length){dz+="&ec_sh="+dt}if(String(dD).length){dz+="&ec_dt="+dD}if(da){for(dC in da){if(Object.prototype.hasOwnProperty.call(da,dC)){if(!M(da[dC][1])){da[dC][1]=""}if(!M(da[dC][2])){da[dC][2]=""}if(!M(da[dC][3])||String(da[dC][3]).length===0){da[dC][3]=0}if(!M(da[dC][4])||String(da[dC][4]).length===0){da[dC][4]=1}dB.push(da[dC])}}dz+="&ec_items="+t(W.JSON.stringify(dB))}dz=cy(dz,at,"ecommerce");bM(dz,bQ);if(dy){da={}}}function b4(dt,dx,dw,dv,du,dy){if(String(dt).length&&M(dx)){bx(dt,dx,dw,dv,du,dy) -}}function bz(dt){if(M(dt)){bx("",dt,"","","","")}}function b6(du,dw,dv){if(!bH){aQ=bm()}var dt=cy("action_name="+t(ap(du||bp)),dw,"log");if(a8&&!bn){dt=aE(dt)}bM(dt,bQ,dv)}function a6(dv,du){var dw,dt="(^| )(piwik[_-]"+du+"|matomo[_-]"+du;if(dv){for(dw=0;dw<dv.length;dw++){dt+="|"+dv[dw]}}dt+=")( |$)";return new RegExp(dt)}function aZ(dt){return(aI&&dt&&0===String(dt).indexOf(aI))}function cC(dx,dt,dy,du){if(aZ(dt)){return 0}var dw=a6(bR,"download"),dv=a6(be,"link"),dz=new RegExp("\\.("+dg.join("|")+")([?&#]|$)","i");if(dv.test(dx)){return"link"}if(du||dw.test(dx)||dz.test(dt)){return"download"}if(dy){return 0}return"link"}function ay(du){var dt;dt=du.parentNode;while(dt!==null&&M(dt)){if(ai.isLinkElement(du)){break}du=dt;dt=du.parentNode}return du}function dl(dy){dy=ay(dy);if(!ai.hasNodeAttribute(dy,"href")){return}if(!M(dy.href)){return}var dx=ai.getAttributeValueFromNode(dy,"href");var du=dy.pathname||cr(dy.href);var dz=dy.hostname||d(dy.href);var dA=dz.toLowerCase();var dv=dy.href.replace(dz,dA); -var dw=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");if(!dw.test(dv)){var dt=cC(dy.className,dv,aw(dA,du),ai.hasNodeAttribute(dy,"download"));if(dt){return{type:dt,href:dv}}}}function aU(dt,du,dv,dw){var dx=w.buildInteractionRequestParams(dt,du,dv,dw);if(!dx){return}return cy(dx,null,"contentInteraction")}function bh(dt,du){if(!dt||!du){return false}var dv=w.findTargetNode(dt);if(w.shouldIgnoreInteraction(dv)){return false}dv=w.findTargetNodeNoDefault(dt);if(dv&&!Y(dv,du)){return false}return true}function cB(dv,du,dx){if(!dv){return}var dt=w.findParentContentNode(dv);if(!dt){return}if(!bh(dt,dv)){return}var dw=w.buildContentBlock(dt);if(!dw){return}if(!dw.target&&dx){dw.target=dx}return w.buildInteractionRequestParams(du,dw.name,dw.piece,dw.target)}function a2(du){if(!cg||!cg.length){return false}var dt,dv;for(dt=0;dt<cg.length;dt++){dv=cg[dt];if(dv&&dv.name===du.name&&dv.piece===du.piece&&dv.target===du.target){return true}}return false}function a3(dt){return function(dx){if(!dt){return -}var dv=w.findParentContentNode(dt);var du;if(dx){du=dx.target||dx.srcElement}if(!du){du=dt}if(!bh(dv,du)){return}if(!dv){return false}var dy=w.findTargetNode(dv);if(!dy||w.shouldIgnoreInteraction(dy)){return false}var dw=dl(dy);if(di&&dw&&dw.type){return dw.type}return bP.trackContentInteractionNode(du,"click")}}function b7(dv){if(!dv||!dv.length){return}var dt,du;for(dt=0;dt<dv.length;dt++){du=w.findTargetNode(dv[dt]);if(du&&!du.contentInteractionTrackingSetupDone){du.contentInteractionTrackingSetupDone=true;ar(du,"click",a3(du))}}}function bE(dv,dw){if(!dv||!dv.length){return[]}var dt,du;for(dt=0;dt<dv.length;dt++){if(a2(dv[dt])){dv.splice(dt,1);dt--}else{cg.push(dv[dt])}}if(!dv||!dv.length){return[]}b7(dw);var dx=[];for(dt=0;dt<dv.length;dt++){du=cy(w.buildImpressionRequestParams(dv[dt].name,dv[dt].piece,dv[dt].target),undefined,"contentImpressions");if(du){dx.push(du)}}return dx}function cH(du){var dt=w.collectContent(du);return bE(dt,du)}function bf(du){if(!du||!du.length){return[] -}var dt;for(dt=0;dt<du.length;dt++){if(!w.isNodeVisible(du[dt])){du.splice(dt,1);dt--}}if(!du||!du.length){return[]}return cH(du)}function aK(dv,dt,du){var dw=w.buildImpressionRequestParams(dv,dt,du);return cy(dw,null,"contentImpression")}function dk(dw,du){if(!dw){return}var dt=w.findParentContentNode(dw);var dv=w.buildContentBlock(dt);if(!dv){return}if(!du){du="Unknown"}return aU(du,dv.name,dv.piece,dv.target)}function cX(du,dw,dt,dv){return"e_c="+t(du)+"&e_a="+t(dw)+(M(dt)?"&e_n="+t(dt):"")+(M(dv)?"&e_v="+t(dv):"")+"&ca=1"}function ax(dv,dx,dt,dw,dz,dy){if(!ac(dv)||!ac(dx)){ao("Error while logging event: Parameters `category` and `action` must not be empty or filled with whitespaces");return false}var du=cy(cX(dv,dx,dt,dw),dz,"event");bM(du,bQ,dy)}function ce(dt,dw,du,dx){var dv=cy("search="+t(dt)+(dw?"&search_cat="+t(dw):"")+(M(du)?"&search_count="+du:""),dx,"sitesearch");bM(dv,bQ)}function c1(dt,dx,dw,dv){var du=cy("idgoal="+dt+(dx?"&revenue="+dx:""),dw,"goal");bM(du,bQ,dv)}function db(dw,dt,dA,dz,dv){var dy=dt+"="+t(b8(dw)); -var du=cB(dv,"click",dw);if(du){dy+="&"+du}var dx=cy(dy,dA,"link");bM(dx,bQ,dz)}function b0(du,dt){if(du!==""){return du+dt.charAt(0).toUpperCase()+dt.slice(1)}return dt}function cm(dy){var dx,dt,dw=["","webkit","ms","moz"],dv;if(!bk){for(dt=0;dt<dw.length;dt++){dv=dw[dt];if(Object.prototype.hasOwnProperty.call(J,b0(dv,"hidden"))){if(J[b0(dv,"visibilityState")]==="prerender"){dx=true}break}}}if(dx){ar(J,dv+"visibilitychange",function du(){J.removeEventListener(dv+"visibilitychange",du,false);dy()});return}dy()}function by(){var du=bP.getVisitorId();var dt=aO();return du+dt}function cp(dt){if(!dt){return}if(!ai.hasNodeAttribute(dt,"href")){return}var du=ai.getAttributeValueFromNode(dt,"href");if(!du||aZ(du)){return}if(!bP.getVisitorId()){return}du=j(du,az);var dv=by();du=I(du,az,dv);ai.setAnyAttribute(dt,"href",du)}function br(dw){var dx=ai.getAttributeValueFromNode(dw,"href");if(!dx){return false}dx=String(dx);var du=dx.indexOf("//")===0||dx.indexOf("http://")===0||dx.indexOf("https://")===0; -if(!du){return false}var dt=dw.pathname||cr(dw.href);var dv=(dw.hostname||d(dw.href)).toLowerCase();if(aw(dv,dt)){if(!cP(c2,O(dv))){return true}return false}return false}function cO(dt){var du=dl(dt);if(du&&du.type){du.href=p(du.href);db(du.href,du.type,undefined,null,dt);return}if(cV){dt=ay(dt);if(br(dt)){cp(dt)}}}function cD(){return J.all&&!J.addEventListener}function c3(dt){var dv=dt.which;var du=(typeof dt.button);if(!dv&&du!=="undefined"){if(cD()){if(dt.button&1){dv=1}else{if(dt.button&2){dv=3}else{if(dt.button&4){dv=2}}}}else{if(dt.button===0||dt.button==="0"){dv=1}else{if(dt.button&1){dv=2}else{if(dt.button&2){dv=3}}}}}return dv}function bZ(dt){switch(c3(dt)){case 1:return"left";case 2:return"middle";case 3:return"right"}}function a7(dt){return dt.target||dt.srcElement}function c4(dt){return dt==="A"||dt==="AREA"}function aG(dt){function du(dw){var dx=a7(dw);var dy=dx.nodeName;var dv=a6(bG,"ignore");while(!c4(dy)&&dx&&dx.parentNode){dx=dx.parentNode;dy=dx.nodeName}if(dx&&c4(dy)&&!dv.test(dx.className)){return dx -}}return function(dx){dx=dx||W.event;var dy=du(dx);if(!dy){return}var dw=bZ(dx);if(dx.type==="click"){var dv=false;if(dt&&dw==="middle"){dv=true}if(dy&&!dv){cO(dy)}}else{if(dx.type==="mousedown"){if(dw==="middle"&&dy){aW=dw;bI=dy}else{aW=bI=null}}else{if(dx.type==="mouseup"){if(dw===aW&&dy===bI){cO(dy)}aW=bI=null}else{if(dx.type==="contextmenu"){cO(dy)}}}}}}function av(dw,dv,dt){var du=typeof dv;if(du==="undefined"){dv=true}ar(dw,"click",aG(dv),dt);if(dv){ar(dw,"mouseup",aG(dv),dt);ar(dw,"mousedown",aG(dv),dt);ar(dw,"contextmenu",aG(dv),dt)}}function aX(du,dx,dy){if(ck){return true}ck=true;var dz=false;var dw,dv;function dt(){dz=true}n(function(){function dA(dC){setTimeout(function(){if(!ck){return}dz=false;dy.trackVisibleContentImpressions();dA(dC)},dC)}function dB(dC){setTimeout(function(){if(!ck){return}if(dz){dz=false;dy.trackVisibleContentImpressions()}dB(dC)},dC)}if(du){dw=["scroll","resize"];for(dv=0;dv<dw.length;dv++){if(J.addEventListener){J.addEventListener(dw[dv],dt,false)}else{W.attachEvent("on"+dw[dv],dt) -}}dB(100)}if(dx&&dx>0){dx=parseInt(dx,10);dA(dx)}})}var bK={enabled:true,requests:[],timeout:null,interval:2500,sendRequests:function(){var dt=this.requests;this.requests=[];if(dt.length===1){bM(dt[0],bQ)}else{dp(dt,bQ)}},canQueue:function(){return !m&&this.enabled},pushMultiple:function(du){if(!this.canQueue()){dp(du,bQ);return}var dt;for(dt=0;dt<du.length;dt++){this.push(du[dt])}},push:function(dt){if(!dt){return}if(!this.canQueue()){bM(dt,bQ);return}bK.requests.push(dt);if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.timeout=setTimeout(function(){bK.timeout=null;bK.sendRequests()},bK.interval);var du="RequestQueue"+aB;if(!Object.prototype.hasOwnProperty.call(b,du)){b[du]={unload:function(){if(bK.timeout){clearTimeout(bK.timeout)}bK.sendRequests()}}}}};bo();this.hasConsent=function(){return bJ};this.getVisitorInfo=function(){if(!aH(aY("id"))){aR()}return cW()};this.getVisitorId=function(){return this.getVisitorInfo()[1]};this.getAttributionInfo=function(){return bS() -};this.getAttributionCampaignName=function(){return bS()[0]};this.getAttributionCampaignKeyword=function(){return bS()[1]};this.getAttributionReferrerTimestamp=function(){return bS()[2]};this.getAttributionReferrerUrl=function(){return bS()[3]};this.setTrackerUrl=function(dt){aI=dt};this.getTrackerUrl=function(){return aI};this.getMatomoUrl=function(){return aa(this.getTrackerUrl(),bO)};this.getPiwikUrl=function(){return this.getMatomoUrl()};this.addTracker=function(dv,du){if(!M(dv)||null===dv){dv=this.getTrackerUrl()}var dt=new T(dv,du);L.push(dt);u.trigger("TrackerAdded",[this]);return dt};this.getSiteId=function(){return cc};this.setSiteId=function(dt){b9(dt)};this.resetUserId=function(){bF=""};this.setUserId=function(dt){if(ac(dt)){bF=dt}};this.setVisitorId=function(du){var dt=/[0-9A-Fa-f]{16}/g;if(x(du)&&dt.test(du)){bU=du}else{ao("Invalid visitorId set"+du)}};this.getUserId=function(){return bF};this.setCustomData=function(dt,du){if(Z(dt)){at=dt}else{if(!at){at={}}at[dt]=du}};this.getCustomData=function(){return at -};this.setCustomRequestProcessing=function(dt){ch=dt};this.appendToTrackingUrl=function(dt){c9=dt};this.getRequest=function(dt){return cy(dt)};this.addPlugin=function(dt,du){b[dt]=du};this.setCustomDimension=function(dt,du){dt=parseInt(dt,10);if(dt>0){if(!M(du)){du=""}if(!x(du)){du=String(du)}bt[dt]=du}};this.getCustomDimension=function(dt){dt=parseInt(dt,10);if(dt>0&&Object.prototype.hasOwnProperty.call(bt,dt)){return bt[dt]}};this.deleteCustomDimension=function(dt){dt=parseInt(dt,10);if(dt>0){delete bt[dt]}};this.setCustomVariable=function(du,dt,dx,dv){var dw;if(!M(dv)){dv="visit"}if(!M(dt)){return}if(!M(dx)){dx=""}if(du>0){dt=!x(dt)?String(dt):dt;dx=!x(dx)?String(dx):dx;dw=[dt.slice(0,bA),dx.slice(0,bA)];if(dv==="visit"||dv===2){cN();aV[du]=dw}else{if(dv==="page"||dv===3){b2[du]=dw}else{if(dv==="event"){cs[du]=dw}}}}};this.getCustomVariable=function(du,dv){var dt;if(!M(dv)){dv="visit"}if(dv==="page"||dv===3){dt=b2[du]}else{if(dv==="event"){dt=cs[du]}else{if(dv==="visit"||dv===2){cN(); -dt=aV[du]}}}if(!M(dt)||(dt&&dt[0]==="")){return false}return dt};this.deleteCustomVariable=function(dt,du){if(this.getCustomVariable(dt,du)){this.setCustomVariable(dt,"","",du)}};this.deleteCustomVariables=function(dt){if(dt==="page"||dt===3){b2={}}else{if(dt==="event"){cs={}}else{if(dt==="visit"||dt===2){aV={}}}}};this.storeCustomVariablesInCookie=function(){bW=true};this.setLinkTrackingTimer=function(dt){bQ=dt};this.getLinkTrackingTimer=function(){return bQ};this.setDownloadExtensions=function(dt){if(x(dt)){dt=dt.split("|")}dg=dt};this.addDownloadExtensions=function(du){var dt;if(x(du)){du=du.split("|")}for(dt=0;dt<du.length;dt++){dg.push(du[dt])}};this.removeDownloadExtensions=function(dv){var du,dt=[];if(x(dv)){dv=dv.split("|")}for(du=0;du<dg.length;du++){if(P(dv,dg[du])===-1){dt.push(dg[du])}}dg=dt};this.setDomains=function(dt){aC=x(dt)?[dt]:dt;var dx=false,dv=0,du;for(dv;dv<aC.length;dv++){du=String(aC[dv]);if(cP(c2,O(du))){dx=true;break}var dw=cr(du);if(dw&&dw!=="/"&&dw!=="/*"){dx=true; -break}}if(!dx){aC.push(c2)}};this.enableCrossDomainLinking=function(){cV=true};this.disableCrossDomainLinking=function(){cV=false};this.isCrossDomainLinkingEnabled=function(){return cV};this.setCrossDomainLinkingTimeout=function(dt){a5=dt};this.getCrossDomainLinkingUrlParameter=function(){return t(az)+"="+t(by())};this.setIgnoreClasses=function(dt){bG=x(dt)?[dt]:dt};this.setRequestMethod=function(dt){if(dt){dj=String(dt).toUpperCase()}else{dj=cn}if(dj==="GET"){this.disableAlwaysUseSendBeacon()}};this.setRequestContentType=function(dt){cE=dt||aM};this.setGenerationTimeMs=function(dt){ao("setGenerationTimeMs is no longer supported since Matomo 4. The call will be ignored. The replacement is setPagePerformanceTiming.")};this.setPagePerformanceTiming=function(dx,dz,dy,du,dA,dv){var dw={pf_net:dx,pf_srv:dz,pf_tfr:dy,pf_dm1:du,pf_dm2:dA,pf_onl:dv};try{dw=Q(dw,M);dw=B(dw);ct=l(dw);if(ct===""){ao("setPagePerformanceTiming() called without parameters. This function needs to be called with at least one performance parameter."); -return}bn=false;bL=true}catch(dt){ao("setPagePerformanceTiming: "+dt.toString())}};this.setReferrerUrl=function(dt){bu=dt};this.setCustomUrl=function(dt){ba=b1(bT,dt)};this.getCurrentUrl=function(){return ba||bT};this.setDocumentTitle=function(dt){bp=dt};this.setPageViewId=function(dt){aQ=dt;bH=true};this.setAPIUrl=function(dt){bO=dt};this.setDownloadClasses=function(dt){bR=x(dt)?[dt]:dt};this.setLinkClasses=function(dt){be=x(dt)?[dt]:dt};this.setCampaignNameKey=function(dt){cw=x(dt)?[dt]:dt};this.setCampaignKeywordKey=function(dt){bN=x(dt)?[dt]:dt};this.discardHashTag=function(dt){bV=dt};this.setCookieNamePrefix=function(dt){bq=dt;if(aV){aV=b3()}};this.setCookieDomain=function(dt){var du=O(dt);if(!bs&&!bD(du)){ao("Can't write cookie on domain "+dt)}else{c7=du;bo()}};this.setExcludedQueryParams=function(dt){co=x(dt)?[dt]:dt};this.getCookieDomain=function(){return c7};this.hasCookies=function(){return"1"===cb()};this.setSessionCookie=function(dv,du,dt){if(!dv){throw new Error("Missing cookie name") -}if(!M(dt)){dt=cu}bB.push(dv);dn(aY(dv),du,dt,bw,c7,bY,aN)};this.getCookie=function(du){var dt=aH(aY(du));if(dt===0){return null}return dt};this.setCookiePath=function(dt){bw=dt;bo()};this.getCookiePath=function(dt){return bw};this.setVisitorCookieTimeout=function(dt){cS=dt*1000};this.setSessionCookieTimeout=function(dt){cu=dt*1000};this.getSessionCookieTimeout=function(){return cu};this.setReferralCookieTimeout=function(dt){df=dt*1000};this.setConversionAttributionFirstReferrer=function(dt){bC=dt};this.setSecureCookie=function(dt){if(dt&&location.protocol!=="https:"){ao("Error in setSecureCookie: You cannot use `Secure` on http.");return}bY=dt};this.setCookieSameSite=function(dt){dt=String(dt);dt=dt.charAt(0).toUpperCase()+dt.toLowerCase().slice(1);if(dt!=="None"&&dt!=="Lax"&&dt!=="Strict"){ao("Ignored value for sameSite. Please use either Lax, None, or Strict.");return}if(dt==="None"){if(location.protocol==="https:"){this.setSecureCookie(true)}else{ao("sameSite=None cannot be used on http, reverted to sameSite=Lax."); -dt="Lax"}}aN=dt};this.disableCookies=function(){bs=true;if(cc){aJ()}};this.areCookiesEnabled=function(){return !bs};this.setCookieConsentGiven=function(){if(bs&&!cY){bs=false;c6=true;if(cc&&aA){aR();var dt=cy("ping=1",null,"ping");bM(dt,bQ)}}};this.requireCookieConsent=function(){if(this.getRememberedCookieConsent()){return false}this.disableCookies();return true};this.getRememberedCookieConsent=function(){return aH(cL)};this.forgetCookieConsentGiven=function(){b5(cL,bw,c7);this.disableCookies()};this.rememberCookieConsentGiven=function(du){if(du){du=du*60*60*1000}else{du=30*365*24*60*60*1000}this.setCookieConsentGiven();var dt=new Date().getTime();dn(cL,dt,du,bw,c7,bY,aN)};this.deleteCookies=function(){aJ()};this.setDoNotTrack=function(du){var dt=g.doNotTrack||g.msDoNotTrack;cY=du&&(dt==="yes"||dt==="1");if(cY){this.disableCookies()}};this.alwaysUseSendBeacon=function(){c5=true};this.disableAlwaysUseSendBeacon=function(){c5=false};this.addListener=function(du,dt){av(du,dt,false)};this.enableLinkTracking=function(du){if(di){return -}di=true;var dt=this;q(function(){au=true;var dv=J.body;av(dv,du,true)})};this.enableJSErrorTracking=function(){if(c0){return}c0=true;var dt=W.onerror;W.onerror=function(dy,dw,dv,dx,du){cm(function(){var dz="JavaScript Errors";var dA=dw+":"+dv;if(dx){dA+=":"+dx}if(P(cz,dz+dA+dy)===-1){cz.push(dz+dA+dy);ax(dz,dA,dy)}});if(dt){return dt(dy,dw,dv,dx,du)}return false}};this.disablePerformanceTracking=function(){a8=false};this.enableHeartBeatTimer=function(dt){dt=Math.max(dt||15,5);bb=dt*1000;if(c8!==null){dq()}};this.disableHeartBeatTimer=function(){if(bb||aS){if(W.removeEventListener){W.removeEventListener("focus",bg);W.removeEventListener("blur",aD);W.removeEventListener("visibilitychange",a0)}else{if(W.detachEvent){W.detachEvent("onfocus",bg);W.detachEvent("onblur",aD);W.detachEvent("visibilitychange",a0)}}}bb=null;aS=false};this.killFrame=function(){if(W.location!==W.top.location){W.top.location=W.location}};this.redirectFile=function(dt){if(W.location.protocol==="file:"){W.location=dt}}; -this.setCountPreRendered=function(dt){bk=dt};this.trackGoal=function(dt,dw,dv,du){cm(function(){c1(dt,dw,dv,du)})};this.trackLink=function(du,dt,dw,dv){cm(function(){db(du,dt,dw,dv)})};this.getNumTrackedPageViews=function(){return cx};this.trackPageView=function(dt,dv,du){cg=[];cT=[];cz=[];if(R(cc)){cm(function(){ad(aI,bO,cc)})}else{cm(function(){cx++;b6(dt,dv,du)})}};this.disableBrowserFeatureDetection=function(){c6=false};this.enableBrowserFeatureDetection=function(){c6=true};this.trackAllContentImpressions=function(){if(R(cc)){return}cm(function(){q(function(){var dt=w.findContentNodes();var du=cH(dt);bK.pushMultiple(du)})})};this.trackVisibleContentImpressions=function(dt,du){if(R(cc)){return}if(!M(dt)){dt=true}if(!M(du)){du=750}aX(dt,du,this);cm(function(){n(function(){var dv=w.findContentNodes();var dw=bf(dv);bK.pushMultiple(dw)})})};this.trackContentImpression=function(dv,dt,du){if(R(cc)){return}dv=a(dv);dt=a(dt);du=a(du);if(!dv){return}dt=dt||"Unknown";cm(function(){var dw=aK(dv,dt,du); -bK.push(dw)})};this.trackContentImpressionsWithinNode=function(dt){if(R(cc)||!dt){return}cm(function(){if(ck){n(function(){var du=w.findContentNodesWithinNode(dt);var dv=bf(du);bK.pushMultiple(dv)})}else{q(function(){var du=w.findContentNodesWithinNode(dt);var dv=cH(du);bK.pushMultiple(dv)})}})};this.trackContentInteraction=function(dv,dw,dt,du){if(R(cc)){return}dv=a(dv);dw=a(dw);dt=a(dt);du=a(du);if(!dv||!dw){return}dt=dt||"Unknown";cm(function(){var dx=aU(dv,dw,dt,du);if(dx){bK.push(dx)}})};this.trackContentInteractionNode=function(dv,du){if(R(cc)||!dv){return}var dt=null;cm(function(){dt=dk(dv,du);if(dt){bK.push(dt)}});return dt};this.logAllContentBlocksOnPage=function(){var dv=w.findContentNodes();var dt=w.collectContent(dv);var du=typeof console;if(du!=="undefined"&&console&&console.log){console.log(dt)}};this.trackEvent=function(du,dw,dt,dv,dy,dx){cm(function(){ax(du,dw,dt,dv,dy,dx)})};this.trackSiteSearch=function(dt,dv,du,dw){cg=[];cm(function(){ce(dt,dv,du,dw)})};this.setEcommerceView=function(dx,dt,dv,du){cA={}; -if(ac(dv)){dv=String(dv)}if(!M(dv)||dv===null||dv===false||!dv.length){dv=""}else{if(dv instanceof Array){dv=W.JSON.stringify(dv)}}var dw="_pkc";cA[dw]=dv;if(M(du)&&du!==null&&du!==false&&String(du).length){dw="_pkp";cA[dw]=du}if(!ac(dx)&&!ac(dt)){return}if(ac(dx)){dw="_pks";cA[dw]=dx}if(!ac(dt)){dt=""}dw="_pkn";cA[dw]=dt};this.getEcommerceItems=function(){return JSON.parse(JSON.stringify(da))};this.addEcommerceItem=function(dx,dt,dv,du,dw){if(ac(dx)){da[dx]=[String(dx),dt,dv,du,dw]}};this.removeEcommerceItem=function(dt){if(ac(dt)){dt=String(dt);delete da[dt]}};this.clearEcommerceCart=function(){da={}};this.trackEcommerceOrder=function(dt,dx,dw,dv,du,dy){b4(dt,dx,dw,dv,du,dy)};this.trackEcommerceCartUpdate=function(dt){bz(dt)};this.trackRequest=function(du,dw,dv,dt){cm(function(){var dx=cy(du,dw,dt);bM(dx,bQ,dv)})};this.ping=function(){this.trackRequest("ping=1",null,null,"ping")};this.disableQueueRequest=function(){bK.enabled=false};this.setRequestQueueInterval=function(dt){if(dt<1000){throw new Error("Request queue interval needs to be at least 1000ms") -}bK.interval=dt};this.queueRequest=function(dt){cm(function(){var du=cy(dt);bK.push(du)})};this.isConsentRequired=function(){return cI};this.getRememberedConsent=function(){var dt=aH(bj);if(aH(cU)){if(dt){b5(bj,bw,c7)}return null}if(!dt||dt===0){return null}return dt};this.hasRememberedConsent=function(){return !!this.getRememberedConsent()};this.requireConsent=function(){cI=true;bJ=this.hasRememberedConsent();if(!bJ){bs=true}y++;b["CoreConsent"+y]={unload:function(){if(!bJ){aJ()}}}};this.setConsentGiven=function(du){bJ=true;c6=true;b5(cU,bw,c7);var dv,dt;for(dv=0;dv<cT.length;dv++){dt=typeof cT[dv];if(dt==="string"){bM(cT[dv],bQ)}else{if(dt==="object"){dp(cT[dv],bQ)}}}cT=[];if(!M(du)||du){this.setCookieConsentGiven()}};this.rememberConsentGiven=function(dv){if(dv){dv=dv*60*60*1000}else{dv=30*365*24*60*60*1000}var dt=true;this.setConsentGiven(dt);var du=new Date().getTime();dn(bj,du,dv,bw,c7,bY,aN)};this.forgetConsentGiven=function(){var dt=30*365*24*60*60*1000;b5(bj,bw,c7);dn(cU,new Date().getTime(),dt,bw,c7,bY,aN); -this.forgetCookieConsentGiven();this.requireConsent()};this.isUserOptedOut=function(){return !bJ};this.optUserOut=this.forgetConsentGiven;this.forgetUserOptOut=function(){this.setConsentGiven(false)};n(function(){setTimeout(function(){bL=true},0)});u.trigger("TrackerSetup",[this]);u.addPlugin("TrackerVisitorIdCookie"+aB,{unload:function(){if(!aA){aR()}}})}function K(){return{push:aj}}function c(ay,ax){var az={};var av,aw;for(av=0;av<ax.length;av++){var at=ax[av];az[at]=1;for(aw=0;aw<ay.length;aw++){if(ay[aw]&&ay[aw][0]){var au=ay[aw][0];if(at===au){aj(ay[aw]);delete ay[aw];if(az[au]>1&&au!=="addTracker"&&au!=="enableLinkTracking"){ao("The method "+au+' 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')}az[au]++}}}}return ay}var E=["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"]; -function ah(av,au){var at=new T(av,au);L.push(at);_paq=c(_paq,E);for(H=0;H<_paq.length;H++){if(_paq[H]){aj(_paq[H])}}_paq=new K();u.trigger("TrackerAdded",[at]);return at}ar(W,"beforeunload",am,false);ar(W,"visibilitychange",function(){if(m){return}if(J.visibilityState==="hidden"){ag("unload")}},false);ar(W,"online",function(){if(M(g.serviceWorker)){g.serviceWorker.ready.then(function(at){if(at&&at.sync){return at.sync.register("matomoSync")}},function(){})}},false);ar(W,"message",function(ay){if(!ay||!ay.origin){return}var aA,aw,au;var aB=d(ay.origin);var ax=u.getAsyncTrackers();for(aw=0;aw<ax.length;aw++){au=d(ax[aw].getMatomoUrl());if(au===aB){aA=ax[aw];break}}if(!aA){return}var av=null;try{av=JSON.parse(ay.data)}catch(az){return}if(!av){return}function at(aE){var aG=J.getElementsByTagName("iframe");for(aw=0;aw<aG.length;aw++){var aF=aG[aw];var aC=d(aF.src);if(aF.contentWindow&&M(aF.contentWindow.postMessage)&&aC===aB){var aD=JSON.stringify(aE);aF.contentWindow.postMessage(aD,"*")}}}if(M(av.maq_initial_value)){at({maq_opted_in:av.maq_initial_value&&aA.hasConsent(),maq_url:aA.getMatomoUrl(),maq_optout_by_default:aA.isConsentRequired()}) -}else{if(M(av.maq_opted_in)){ax=u.getAsyncTrackers();for(aw=0;aw<ax.length;aw++){aA=ax[aw];if(av.maq_opted_in){aA.rememberConsentGiven()}else{aA.forgetConsentGiven()}}at({maq_confirm_opted_in:aA.hasConsent(),maq_url:aA.getMatomoUrl(),maq_optout_by_default:aA.isConsentRequired()})}}},false);Date.prototype.getTimeAlias=Date.prototype.getTime;u={initialized:false,JSON:W.JSON,DOM:{addEventListener:function(aw,av,au,at){var ax=typeof at;if(ax==="undefined"){at=false}ar(aw,av,au,at)},onLoad:n,onReady:q,isNodeVisible:i,isOrWasNodeVisible:w.isNodeVisible},on:function(au,at){if(!z[au]){z[au]=[]}z[au].push(at)},off:function(av,au){if(!z[av]){return}var at=0;for(at;at<z[av].length;at++){if(z[av][at]===au){z[av].splice(at,1)}}},trigger:function(av,aw,au){if(!z[av]){return}var at=0;for(at;at<z[av].length;at++){z[av][at].apply(au||W,aw)}},addPlugin:function(at,au){b[at]=au},getTracker:function(au,at){if(!M(at)){at=this.getAsyncTracker().getSiteId()}if(!M(au)){au=this.getAsyncTracker().getTrackerUrl() -}return new T(au,at)},getAsyncTrackers:function(){return L},addTracker:function(av,au){var at;if(!L.length){at=ah(av,au)}else{at=L[0].addTracker(av,au)}return at},getAsyncTracker:function(ax,aw){var av;if(L&&L.length&&L[0]){av=L[0]}else{return ah(ax,aw)}if(!aw&&!ax){return av}if((!M(aw)||null===aw)&&av){aw=av.getSiteId()}if((!M(ax)||null===ax)&&av){ax=av.getTrackerUrl()}var au,at=0;for(at;at<L.length;at++){au=L[at];if(au&&String(au.getSiteId())===String(aw)&&au.getTrackerUrl()===ax){return au}}},retryMissedPluginCalls:function(){var au=al;al=[];var at=0;for(at;at<au.length;at++){aj(au[at])}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return u});define("matomo",[],function(){return u})}return u}())} +}catch(at){return true}}function T(cj,cf){var bP=this,bj="mtm_consent",cL="mtm_cookie_consent",cU="mtm_consent_removed",ca=ae(J.domain,W.location.href,N()),c2=O(ca[0]),bT=p(ca[1]),bu=p(ca[2]),c0=false,cn="GET",dk=cn,aM="application/x-www-form-urlencoded; charset=UTF-8",cE=aM,aI=cj||"",bO="",c9="",ct="",cc=cf||"",bF="",bU="",ba,bp="",dg=["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"],aC=[c2],bG=[],co=[],bR=[],be=[],bQ=500,c5=true,cR,bb,bX,bV,at,cw=["pk_campaign","mtm_campaign","piwik_campaign","matomo_campaign","utm_campaign","utm_source","utm_medium"],bN=["pk_kwd","mtm_kwd","piwik_kwd","matomo_kwd","utm_term"],bq="_pk_",az="pk_vid",a5=180,c7,bw,bY=false,aN="Lax",bs=false,cY,bk,bC,cS=33955200000,cu=1800000,df=15768000000,a8=true,bL=false,bn=false,bW=false,aV=false,ch,b2={},cs={},bt={},bA=200,cA={},da={},dh={},cg=[],ck=false,cJ=false,au=false,di=false,cV=false,aS=false,bi=v(),cF=null,c8=null,aW,bI,cd=aq,bv,aQ,bH=false,cx=0,bB=["id","ses","cvar","ref"],cI=false,bJ=null,cT=[],cz=[],aB=X++,aA=false,c6=true; +try{bp=J.title}catch(cG){bp=""}function aH(dw){if(bs){return 0}var du=new RegExp("(^|;)[ ]*"+dw+"=([^;]*)"),dv=du.exec(J.cookie);return dv?V(dv[2]):0}bJ=!aH(cU);function dp(dy,dz,dC,dB,dw,dx,dA){if(bs&&dy!==cU){return}var dv;if(dC){dv=new Date();dv.setTime(dv.getTime()+dC)}if(!dA){dA="Lax"}J.cookie=dy+"="+t(dz)+(dC?";expires="+dv.toGMTString():"")+";path="+(dB||"/")+(dw?";domain="+dw:"")+(dx?";secure":"")+";SameSite="+dA;if((!dC||dC>=0)&&aH(dy)!==String(dz)){var du="There was an error setting cookie `"+dy+"`. Please check domain and path.";ao(du)}}function b8(du){var dw,dv;du=j(du,az);for(dv=0;dv<co.length;dv++){du=j(du,co[dv])}if(bV){dw=new RegExp("#.*");return du.replace(dw,"")}return du}function b1(dw,du){var dx=s(du),dv;if(dx){return du}if(du.slice(0,1)==="/"){return s(dw)+"://"+d(dw)+du}dw=b8(dw);dv=dw.indexOf("?");if(dv>=0){dw=dw.slice(0,dv)}dv=dw.lastIndexOf("/");if(dv!==dw.length-1){dw=dw.slice(0,dv+1)}return dw+du}function cP(dw,du){var dv;dw=String(dw).toLowerCase();du=String(du).toLowerCase(); +if(dw===du){return true}if(du.slice(0,1)==="."){if(dw===du.slice(1)){return true}dv=dw.length-du.length;if((dv>0)&&(dw.slice(dv)===du)){return true}}return false}function cr(du){var dv=document.createElement("a");if(du.indexOf("//")!==0&&du.indexOf("http")!==0){if(du.indexOf("*")===0){du=du.substr(1)}if(du.indexOf(".")===0){du=du.substr(1)}du="http://"+du}dv.href=w.toAbsoluteUrl(du);if(dv.pathname){return dv.pathname}return""}function a9(dv,du){if(!an(du,"/")){du="/"+du}if(!an(dv,"/")){dv="/"+dv}var dw=(du==="/"||du==="/*");if(dw){return true}if(dv===du){return true}du=String(du).toLowerCase();dv=String(dv).toLowerCase();if(U(du,"*")){du=du.slice(0,-1);dw=(!du||du==="/");if(dw){return true}if(dv===du){return true}return dv.indexOf(du)===0}if(!U(dv,"/")){dv+="/"}if(!U(du,"/")){du+="/"}return dv.indexOf(du)===0}function aw(dy,dA){var dv,du,dw,dx,dz;for(dv=0;dv<aC.length;dv++){dx=O(aC[dv]);dz=cr(aC[dv]);if(cP(dy,dx)&&a9(dA,dz)){return true}}return false}function a1(dx){var dv,du,dw;for(dv=0; +dv<aC.length;dv++){du=O(aC[dv].toLowerCase());if(dx===du){return true}if(du.slice(0,1)==="."){if(dx===du.slice(1)){return true}dw=dx.length-du.length;if((dw>0)&&(dx.slice(dw)===du)){return true}}}return false}function cv(du,dw){du=du.replace("send_image=0","send_image=1");var dv=new Image(1,1);dv.onload=function(){H=0;if(typeof dw==="function"){dw({request:du,trackerUrl:aI,success:true})}};dv.onerror=function(){if(typeof dw==="function"){dw({request:du,trackerUrl:aI,success:false})}};dv.src=aI+(aI.indexOf("?")<0?"?":"&")+du}function cM(du){if(dk==="POST"){return true}return du&&(du.length>2000||du.indexOf('{"requests"')===0)}function aP(){return"object"===typeof g&&"function"===typeof g.sendBeacon&&"function"===typeof Blob}function bc(dy,dB,dA){var dw=aP();if(!dw){return false}var dx={type:"application/x-www-form-urlencoded; charset=UTF-8"};var dC=false;var dv=aI;try{var du=new Blob([dy],dx);if(dA&&!cM(dy)){du=new Blob([],dx);dv=dv+(dv.indexOf("?")<0?"?":"&")+dy}dC=g.sendBeacon(dv,du)}catch(dz){return false +}if(dC&&typeof dB==="function"){dB({request:dy,trackerUrl:aI,success:true,isSendBeacon:true})}return dC}function de(dv,dw,du){if(!M(du)||null===du){du=true}if(m&&bc(dv,dw,du)){return}setTimeout(function(){if(m&&bc(dv,dw,du)){return}var dz;try{var dy=W.XMLHttpRequest?new W.XMLHttpRequest():W.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;dy.open("POST",aI,true);dy.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dA=m&&bc(dv,dw,du);if(!dA&&du){cv(dv,dw)}else{if(typeof dw==="function"){dw({request:dv,trackerUrl:aI,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dw==="function")){dw({request:dv,trackerUrl:aI,success:true,xhr:this})}}};dy.setRequestHeader("Content-Type",cE);dy.withCredentials=true;dy.send(dv)}catch(dx){dz=m&&bc(dv,dw,du);if(!dz&&du){cv(dv,dw)}else{if(typeof dw==="function"){dw({request:dv,trackerUrl:aI,success:false})}}}},50)}function cl(dv){var du=new Date();var dw=du.getTime()+dv;if(!r||dw>r){r=dw}}function bg(){bi=true; +cF=new Date().getTime()}function dn(){var du=new Date().getTime();return !cF||(du-cF)>bb}function aD(){if(dn()){bX()}}function a0(){if(J.visibilityState==="hidden"&&dn()){bX()}else{if(J.visibilityState==="visible"){cF=new Date().getTime()}}}function dr(){if(aS||!bb){return}aS=true;ar(W,"focus",bg);ar(W,"blur",aD);ar(W,"visibilitychange",a0);af++;u.addPlugin("HeartBeat"+af,{unload:function(){if(aS&&dn()){bX()}}})}function cK(dy){var dv=new Date();var du=dv.getTime();c8=du;if(cJ&&du<cJ){var dw=cJ-du;setTimeout(dy,dw);cl(dw+50);cJ+=50;return}if(cJ===false){var dx=800;cJ=du+dx}dy()}function aT(){if(aH(cU)){bJ=false}else{if(aH(bj)){bJ=true}}}function bM(dv,du,dw){aT();if(!bJ){cT.push(dv);return}aA=true;if(!cY&&dv){if(cI&&bJ){dv+="&consent=1"}cK(function(){if(c5&&bc(dv,dw,true)){cl(100);return}if(cM(dv)){de(dv,dw)}else{cv(dv,dw)}cl(du)})}if(!aS){dr()}}function cq(du){if(cY){return false}return(du&&du.length)}function dd(du,dy){if(!dy||dy>=du.length){return[du]}var dv=0;var dw=du.length;var dx=[]; +for(dv;dv<dw;dv+=dy){dx.push(du.slice(dv,dv+dy))}return dx}function dq(dv,du){if(!cq(dv)){return}if(!bJ){cT.push(dv);return}aA=true;cK(function(){var dy=dd(dv,50);var dw=0,dx;for(dw;dw<dy.length;dw++){dx='{"requests":["?'+dy[dw].join('","?')+'"],"send_image":0}';if(c5&&bc(dx,null,false)){cl(100)}else{de(dx,null,false)}}cl(du)})}function aY(du){return bq+du+"."+cc+"."+bv}function b5(dw,dv,du){dp(dw,"",-129600000,dv,du)}function cb(){if(bs){return"0"}if(!M(W.showModalDialog)&&M(g.cookieEnabled)){return g.cookieEnabled?"1":"0"}var du=bq+"testcookie";dp(du,"1",undefined,bw,c7,bY,aN);var dv=aH(du)==="1"?"1":"0";b5(du);return dv}function bo(){bv=cd((c7||c2)+(bw||"/")).slice(0,4)}function cQ(){if(!c6){return{}}if(M(dh.res)){return dh}var dv,dx,dy={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(g.userAgent))){if(g.mimeTypes&&g.mimeTypes.length){for(dv in dy){if(Object.prototype.hasOwnProperty.call(dy,dv)){dx=g.mimeTypes[dy[dv]]; +dh[dv]=(dx&&dx.enabledPlugin)?"1":"0"}}}if(!((new RegExp("Edge[ /](\\d+[\\.\\d]+)")).test(g.userAgent))&&typeof navigator.javaEnabled!=="unknown"&&M(g.javaEnabled)&&g.javaEnabled()){dh.java="1"}if(!M(W.showModalDialog)&&M(g.cookieEnabled)){dh.cookie=g.cookieEnabled?"1":"0"}else{dh.cookie=cb()}}var dw=parseInt(ab.width,10);var du=parseInt(ab.height,10);dh.res=parseInt(dw,10)+"x"+parseInt(du,10);return dh}function b3(){var dv=aY("cvar"),du=aH(dv);if(du&&du.length){du=W.JSON.parse(du);if(Z(du)){return du}}return{}}function cN(){if(aV===false){aV=b3()}}function cZ(){var du=cQ();return cd((g.userAgent||"")+(g.platform||"")+W.JSON.stringify(du)+(new Date()).getTime()+Math.random()).slice(0,16)}function aF(){var du=cQ();return cd((g.userAgent||"")+(g.platform||"")+W.JSON.stringify(du)).slice(0,6)}function bl(){return Math.floor((new Date()).getTime()/1000)}function aO(){var dv=bl();var dw=aF();var du=String(dv)+dw;return du}function dc(dw){dw=String(dw);var dz=aF();var dx=dz.length;var dy=dw.substr(-1*dx,dx); +var dv=parseInt(dw.substr(0,dw.length-dx),10);if(dv&&dy&&dy===dz){var du=bl();if(a5<=0){return true}if(du>=dv&&du<=(dv+a5)){return true}}return false}function ds(du){if(!cV){return""}var dy=e(du,az);if(!dy){return""}dy=String(dy);var dw=new RegExp("^[a-zA-Z0-9]+$");if(dy.length===32&&dw.test(dy)){var dv=dy.substr(16,32);if(dc(dv)){var dx=dy.substr(0,16);return dx}}return""}function cW(){if(!bU){bU=ds(bT)}var dw=new Date(),du=Math.round(dw.getTime()/1000),dv=aY("id"),dz=aH(dv),dy,dx;if(dz){dy=dz.split(".");dy.unshift("0");if(bU.length){dy[1]=bU}return dy}if(bU.length){dx=bU}else{if("0"===cb()){dx=""}else{dx=cZ()}}dy=["1",dx,du];return dy}function a4(){var dx=cW(),dv=dx[0],dw=dx[1],du=dx[2];return{newVisitor:dv,uuid:dw,createTs:du}}function aL(){var dx=new Date(),dv=dx.getTime(),dy=a4().createTs;var du=parseInt(dy,10);var dw=(du*1000)+cS-dv;return dw}function aR(du){if(!cc){return}var dw=new Date(),dv=Math.round(dw.getTime()/1000);if(!M(du)){du=a4()}var dx=du.uuid+"."+du.createTs+".";dp(aY("id"),dx,aL(),bw,c7,bY,aN) +}function bS(){var du=aH(aY("ref"));if(du.length){try{du=W.JSON.parse(du);if(Z(du)){return du}}catch(dv){}}return["","",0,""]}function bD(dw){var dv=bq+"testcookie_domain";var du="testvalue";dp(dv,du,10000,null,dw,bY,aN);if(aH(dv)===du){b5(dv,null,dw);return true}return false}function aJ(){var dv=bs;bs=false;var du,dw;for(du=0;du<bB.length;du++){dw=aY(bB[du]);if(dw!==cU&&dw!==bj&&0!==aH(dw)){b5(dw,bw,c7)}}bs=dv}function b9(du){cc=du}function dt(dy){if(!dy||!Z(dy)){return}var dx=[];var dw;for(dw in dy){if(Object.prototype.hasOwnProperty.call(dy,dw)){dx.push(dw)}}var dz={};dx.sort();var du=dx.length;var dv;for(dv=0;dv<du;dv++){dz[dx[dv]]=dy[dx[dv]]}return dz}function ci(){dp(aY("ses"),"1",cu,bw,c7,bY,aN)}function bm(){var dx="";var dv="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";var dw=dv.length;var du;for(du=0;du<6;du++){dx+=dv.charAt(Math.floor(Math.random()*dw))}return dx}function aE(dv){if(ct!==""){dv+=ct;bn=true;return dv}if(!h){return dv}var dw=(typeof h.timing==="object")&&h.timing?h.timing:undefined; +if(!dw){dw=(typeof h.getEntriesByType==="function")&&h.getEntriesByType("navigation")?h.getEntriesByType("navigation")[0]:undefined}if(!dw){return dv}var du="";if(dw.connectEnd&&dw.fetchStart){if(dw.connectEnd<dw.fetchStart){return dv}du+="&pf_net="+Math.round(dw.connectEnd-dw.fetchStart)}if(dw.responseStart&&dw.requestStart){if(dw.responseStart<dw.requestStart){return dv}du+="&pf_srv="+Math.round(dw.responseStart-dw.requestStart)}if(dw.responseStart&&dw.responseEnd){if(dw.responseEnd<dw.responseStart){return dv}du+="&pf_tfr="+Math.round(dw.responseEnd-dw.responseStart)}if(M(dw.domLoading)){if(dw.domInteractive&&dw.domLoading){if(dw.domInteractive<dw.domLoading){return dv}du+="&pf_dm1="+Math.round(dw.domInteractive-dw.domLoading)}}else{if(dw.domInteractive&&dw.responseEnd){if(dw.domInteractive<dw.responseEnd){return dv}du+="&pf_dm1="+Math.round(dw.domInteractive-dw.responseEnd)}}if(dw.domComplete&&dw.domInteractive){if(dw.domComplete<dw.domInteractive){return dv}du+="&pf_dm2="+Math.round(dw.domComplete-dw.domInteractive) +}if(dw.loadEventEnd&&dw.loadEventStart){if(dw.loadEventEnd<dw.loadEventStart){return dv}du+="&pf_onl="+Math.round(dw.loadEventEnd-dw.loadEventStart)}return dv+du}function dj(){var dE,dx=new Date(),dy=Math.round(dx.getTime()/1000),dJ,dw,dz=1024,dG,dA,dv=aY("ses"),dD=aY("ref"),dC=aH(dv),du=bS(),dI=ba||bT,dF,dB,dH={};dF=du[0];dB=du[1];dJ=du[2];dw=du[3];if(!dC){if(!bC||!dF.length){for(dE in cw){if(Object.prototype.hasOwnProperty.call(cw,dE)){dF=e(dI,cw[dE]);if(dF.length){break}}}for(dE in bN){if(Object.prototype.hasOwnProperty.call(bN,dE)){dB=e(dI,bN[dE]);if(dB.length){break}}}}dG=d(bu);dA=dw.length?d(dw):"";if(dG.length&&!a1(dG)&&(!bC||!dA.length||a1(dA))){dw=bu}if(dw.length||dF.length){dJ=dy;du=[dF,dB,dJ,b8(dw.slice(0,dz))];dp(dD,W.JSON.stringify(du),df,bw,c7,bY,aN)}}if(dF.length){dH._rcn=t(dF)}if(dB.length){dH._rck=t(dB)}dH._refts=dJ;if(String(dw).length){dH._ref=t(b8(dw.slice(0,dz)))}return dH}function cy(dv,dG,dH){var dF,du=new Date(),dE=aV,dA=aY("cvar"),dI=ba||bT;if(bs){aJ()}if(cY){return"" +}var dB=a4();var dy=J.characterSet||J.charset;if(!dy||dy.toLowerCase()==="utf-8"){dy=null}dv+="&idsite="+cc+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+du.getHours()+"&m="+du.getMinutes()+"&s="+du.getSeconds()+"&url="+t(b8(dI))+(bu.length?"&urlref="+t(b8(bu)):"")+(ac(bF)?"&uid="+t(bF):"")+"&_id="+dB.uuid+"&_idn="+dB.newVisitor+(dy?"&cs="+t(dy):"")+"&send_image=0";var dD=dj();for(dF in dD){if(Object.prototype.hasOwnProperty.call(dD,dF)){dv+="&"+dF+"="+dD[dF]}}var dK=cQ();for(dF in dK){if(Object.prototype.hasOwnProperty.call(dK,dF)){dv+="&"+dF+"="+dK[dF]}}var dL=[];if(dG){for(dF in dG){if(Object.prototype.hasOwnProperty.call(dG,dF)&&/^dimension\d+$/.test(dF)){var dw=dF.replace("dimension","");dL.push(parseInt(dw,10));dL.push(String(dw));dv+="&"+dF+"="+t(dG[dF]);delete dG[dF]}}}if(dG&&D(dG)){dG=null}for(dF in cA){if(Object.prototype.hasOwnProperty.call(cA,dF)){dv+="&"+dF+"="+t(cA[dF])}}for(dF in bt){if(Object.prototype.hasOwnProperty.call(bt,dF)){var dz=(-1===P(dL,dF));if(dz){dv+="&dimension"+dF+"="+t(bt[dF]) +}}}if(dG){dv+="&data="+t(W.JSON.stringify(dG))}else{if(at){dv+="&data="+t(W.JSON.stringify(at))}}function dx(dM,dN){var dO=W.JSON.stringify(dM);if(dO.length>2){return"&"+dN+"="+t(dO)}return""}var dJ=dt(b2);var dC=dt(cs);dv+=dx(dJ,"cvar");dv+=dx(dC,"e_cvar");if(aV){dv+=dx(aV,"_cvar");for(dF in dE){if(Object.prototype.hasOwnProperty.call(dE,dF)){if(aV[dF][0]===""||aV[dF][1]===""){delete aV[dF]}}}if(bW){dp(dA,W.JSON.stringify(aV),cu,bw,c7,bY,aN)}}if(a8&&bL&&!bn){dv=aE(dv);bn=true}if(aQ){dv+="&pv_id="+aQ}aR(dB);ci();dv+=ag(dH,{tracker:bP,request:dv});if(c9.length){dv+="&"+c9}if(C(ch)){dv=ch(dv)}return dv}bX=function bd(){var du=new Date();du=du.getTime();if(!c8){return false}if(c8+bb<=du){bP.ping();return true}return false};function bx(dx,dw,dB,dy,du,dE){var dA="idgoal=0",dv=new Date(),dC=[],dD,dz=String(dx).length;if(dz){dA+="&ec_id="+t(dx)}dA+="&revenue="+dw;if(String(dB).length){dA+="&ec_st="+dB}if(String(dy).length){dA+="&ec_tx="+dy}if(String(du).length){dA+="&ec_sh="+du}if(String(dE).length){dA+="&ec_dt="+dE +}if(da){for(dD in da){if(Object.prototype.hasOwnProperty.call(da,dD)){if(!M(da[dD][1])){da[dD][1]=""}if(!M(da[dD][2])){da[dD][2]=""}if(!M(da[dD][3])||String(da[dD][3]).length===0){da[dD][3]=0}if(!M(da[dD][4])||String(da[dD][4]).length===0){da[dD][4]=1}dC.push(da[dD])}}dA+="&ec_items="+t(W.JSON.stringify(dC))}dA=cy(dA,at,"ecommerce");bM(dA,bQ);if(dz){da={}}}function b4(du,dy,dx,dw,dv,dz){if(String(du).length&&M(dy)){bx(du,dy,dx,dw,dv,dz)}}function bz(du){if(M(du)){bx("",du,"","","","")}}function b6(dv,dx,dw){if(!bH){aQ=bm()}var du=cy("action_name="+t(ap(dv||bp)),dx,"log");if(a8&&!bn){du=aE(du)}bM(du,bQ,dw)}function a6(dw,dv){var dx,du="(^| )(piwik[_-]"+dv+"|matomo[_-]"+dv;if(dw){for(dx=0;dx<dw.length;dx++){du+="|"+dw[dx]}}du+=")( |$)";return new RegExp(du)}function aZ(du){return(aI&&du&&0===String(du).indexOf(aI))}function cC(dy,du,dz,dv){if(aZ(du)){return 0}var dx=a6(bR,"download"),dw=a6(be,"link"),dA=new RegExp("\\.("+dg.join("|")+")([?&#]|$)","i");if(dw.test(dy)){return"link"}if(dv||dx.test(dy)||dA.test(du)){return"download" +}if(dz){return 0}return"link"}function ay(dv){var du;du=dv.parentNode;while(du!==null&&M(du)){if(ai.isLinkElement(dv)){break}dv=du;du=dv.parentNode}return dv}function dm(dz){dz=ay(dz);if(!ai.hasNodeAttribute(dz,"href")){return}if(!M(dz.href)){return}var dy=ai.getAttributeValueFromNode(dz,"href");var dv=dz.pathname||cr(dz.href);var dA=dz.hostname||d(dz.href);var dB=dA.toLowerCase();var dw=dz.href.replace(dA,dB);var dx=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");if(!dx.test(dw)){var du=cC(dz.className,dw,aw(dB,dv),ai.hasNodeAttribute(dz,"download"));if(du){return{type:du,href:dw}}}}function aU(du,dv,dw,dx){var dy=w.buildInteractionRequestParams(du,dv,dw,dx);if(!dy){return}return cy(dy,null,"contentInteraction")}function bh(du,dv){if(!du||!dv){return false}var dw=w.findTargetNode(du);if(w.shouldIgnoreInteraction(dw)){return false}dw=w.findTargetNodeNoDefault(du);if(dw&&!Y(dw,dv)){return false}return true}function cB(dw,dv,dy){if(!dw){return}var du=w.findParentContentNode(dw); +if(!du){return}if(!bh(du,dw)){return}var dx=w.buildContentBlock(du);if(!dx){return}if(!dx.target&&dy){dx.target=dy}return w.buildInteractionRequestParams(dv,dx.name,dx.piece,dx.target)}function a2(dv){if(!cg||!cg.length){return false}var du,dw;for(du=0;du<cg.length;du++){dw=cg[du];if(dw&&dw.name===dv.name&&dw.piece===dv.piece&&dw.target===dv.target){return true}}return false}function a3(du){return function(dy){if(!du){return}var dw=w.findParentContentNode(du);var dv;if(dy){dv=dy.target||dy.srcElement}if(!dv){dv=du}if(!bh(dw,dv)){return}if(!dw){return false}var dz=w.findTargetNode(dw);if(!dz||w.shouldIgnoreInteraction(dz)){return false}var dx=dm(dz);if(di&&dx&&dx.type){return dx.type}return bP.trackContentInteractionNode(dv,"click")}}function b7(dw){if(!dw||!dw.length){return}var du,dv;for(du=0;du<dw.length;du++){dv=w.findTargetNode(dw[du]);if(dv&&!dv.contentInteractionTrackingSetupDone){dv.contentInteractionTrackingSetupDone=true;ar(dv,"click",a3(dv))}}}function bE(dw,dx){if(!dw||!dw.length){return[] +}var du,dv;for(du=0;du<dw.length;du++){if(a2(dw[du])){dw.splice(du,1);du--}else{cg.push(dw[du])}}if(!dw||!dw.length){return[]}b7(dx);var dy=[];for(du=0;du<dw.length;du++){dv=cy(w.buildImpressionRequestParams(dw[du].name,dw[du].piece,dw[du].target),undefined,"contentImpressions");if(dv){dy.push(dv)}}return dy}function cH(dv){var du=w.collectContent(dv);return bE(du,dv)}function bf(dv){if(!dv||!dv.length){return[]}var du;for(du=0;du<dv.length;du++){if(!w.isNodeVisible(dv[du])){dv.splice(du,1);du--}}if(!dv||!dv.length){return[]}return cH(dv)}function aK(dw,du,dv){var dx=w.buildImpressionRequestParams(dw,du,dv);return cy(dx,null,"contentImpression")}function dl(dx,dv){if(!dx){return}var du=w.findParentContentNode(dx);var dw=w.buildContentBlock(du);if(!dw){return}if(!dv){dv="Unknown"}return aU(dv,dw.name,dw.piece,dw.target)}function cX(dv,dx,du,dw){return"e_c="+t(dv)+"&e_a="+t(dx)+(M(du)?"&e_n="+t(du):"")+(M(dw)?"&e_v="+t(dw):"")+"&ca=1"}function ax(dw,dy,du,dx,dA,dz){if(!ac(dw)||!ac(dy)){ao("Error while logging event: Parameters `category` and `action` must not be empty or filled with whitespaces"); +return false}var dv=cy(cX(dw,dy,du,dx),dA,"event");bM(dv,bQ,dz)}function ce(du,dx,dv,dy){var dw=cy("search="+t(du)+(dx?"&search_cat="+t(dx):"")+(M(dv)?"&search_count="+dv:""),dy,"sitesearch");bM(dw,bQ)}function c1(du,dy,dx,dw){var dv=cy("idgoal="+du+(dy?"&revenue="+dy:""),dx,"goal");bM(dv,bQ,dw)}function db(dx,du,dB,dA,dw){var dz=du+"="+t(b8(dx));var dv=cB(dw,"click",dx);if(dv){dz+="&"+dv}var dy=cy(dz,dB,"link");bM(dy,bQ,dA)}function b0(dv,du){if(dv!==""){return dv+du.charAt(0).toUpperCase()+du.slice(1)}return du}function cm(dz){var dy,du,dx=["","webkit","ms","moz"],dw;if(!bk){for(du=0;du<dx.length;du++){dw=dx[du];if(Object.prototype.hasOwnProperty.call(J,b0(dw,"hidden"))){if(J[b0(dw,"visibilityState")]==="prerender"){dy=true}break}}}if(dy){ar(J,dw+"visibilitychange",function dv(){J.removeEventListener(dw+"visibilitychange",dv,false);dz()});return}dz()}function by(){var dv=bP.getVisitorId();var du=aO();return dv+du}function cp(du){if(!du){return}if(!ai.hasNodeAttribute(du,"href")){return +}var dv=ai.getAttributeValueFromNode(du,"href");if(!dv||aZ(dv)){return}if(!bP.getVisitorId()){return}dv=j(dv,az);var dw=by();dv=I(dv,az,dw);ai.setAnyAttribute(du,"href",dv)}function br(dx){var dy=ai.getAttributeValueFromNode(dx,"href");if(!dy){return false}dy=String(dy);var dv=dy.indexOf("//")===0||dy.indexOf("http://")===0||dy.indexOf("https://")===0;if(!dv){return false}var du=dx.pathname||cr(dx.href);var dw=(dx.hostname||d(dx.href)).toLowerCase();if(aw(dw,du)){if(!cP(c2,O(dw))){return true}return false}return false}function cO(du){var dv=dm(du);if(dv&&dv.type){dv.href=p(dv.href);db(dv.href,dv.type,undefined,null,du);return}if(cV){du=ay(du);if(br(du)){cp(du)}}}function cD(){return J.all&&!J.addEventListener}function c3(du){var dw=du.which;var dv=(typeof du.button);if(!dw&&dv!=="undefined"){if(cD()){if(du.button&1){dw=1}else{if(du.button&2){dw=3}else{if(du.button&4){dw=2}}}}else{if(du.button===0||du.button==="0"){dw=1}else{if(du.button&1){dw=2}else{if(du.button&2){dw=3}}}}}return dw}function bZ(du){switch(c3(du)){case 1:return"left"; +case 2:return"middle";case 3:return"right"}}function a7(du){return du.target||du.srcElement}function c4(du){return du==="A"||du==="AREA"}function aG(du){function dv(dx){var dy=a7(dx);var dz=dy.nodeName;var dw=a6(bG,"ignore");while(!c4(dz)&&dy&&dy.parentNode){dy=dy.parentNode;dz=dy.nodeName}if(dy&&c4(dz)&&!dw.test(dy.className)){return dy}}return function(dy){dy=dy||W.event;var dz=dv(dy);if(!dz){return}var dx=bZ(dy);if(dy.type==="click"){var dw=false;if(du&&dx==="middle"){dw=true}if(dz&&!dw){cO(dz)}}else{if(dy.type==="mousedown"){if(dx==="middle"&&dz){aW=dx;bI=dz}else{aW=bI=null}}else{if(dy.type==="mouseup"){if(dx===aW&&dz===bI){cO(dz)}aW=bI=null}else{if(dy.type==="contextmenu"){cO(dz)}}}}}}function av(dx,dw,du){var dv=typeof dw;if(dv==="undefined"){dw=true}ar(dx,"click",aG(dw),du);if(dw){ar(dx,"mouseup",aG(dw),du);ar(dx,"mousedown",aG(dw),du);ar(dx,"contextmenu",aG(dw),du)}}function aX(dv,dy,dz){if(ck){return true}ck=true;var dA=false;var dx,dw;function du(){dA=true}n(function(){function dB(dD){setTimeout(function(){if(!ck){return +}dA=false;dz.trackVisibleContentImpressions();dB(dD)},dD)}function dC(dD){setTimeout(function(){if(!ck){return}if(dA){dA=false;dz.trackVisibleContentImpressions()}dC(dD)},dD)}if(dv){dx=["scroll","resize"];for(dw=0;dw<dx.length;dw++){if(J.addEventListener){J.addEventListener(dx[dw],du,false)}else{W.attachEvent("on"+dx[dw],du)}}dC(100)}if(dy&&dy>0){dy=parseInt(dy,10);dB(dy)}})}var bK={enabled:true,requests:[],timeout:null,interval:2500,sendRequests:function(){var du=this.requests;this.requests=[];if(du.length===1){bM(du[0],bQ)}else{dq(du,bQ)}},canQueue:function(){return !m&&this.enabled},pushMultiple:function(dv){if(!this.canQueue()){dq(dv,bQ);return}var du;for(du=0;du<dv.length;du++){this.push(dv[du])}},push:function(du){if(!du){return}if(!this.canQueue()){bM(du,bQ);return}bK.requests.push(du);if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.timeout=setTimeout(function(){bK.timeout=null;bK.sendRequests()},bK.interval);var dv="RequestQueue"+aB;if(!Object.prototype.hasOwnProperty.call(b,dv)){b[dv]={unload:function(){if(bK.timeout){clearTimeout(bK.timeout) +}bK.sendRequests()}}}}};bo();this.hasConsent=function(){return bJ};this.getVisitorInfo=function(){if(!aH(aY("id"))){aR()}return cW()};this.getVisitorId=function(){return this.getVisitorInfo()[1]};this.getAttributionInfo=function(){return bS()};this.getAttributionCampaignName=function(){return bS()[0]};this.getAttributionCampaignKeyword=function(){return bS()[1]};this.getAttributionReferrerTimestamp=function(){return bS()[2]};this.getAttributionReferrerUrl=function(){return bS()[3]};this.setTrackerUrl=function(du){aI=du};this.getTrackerUrl=function(){return aI};this.getMatomoUrl=function(){return aa(this.getTrackerUrl(),bO)};this.getPiwikUrl=function(){return this.getMatomoUrl()};this.addTracker=function(dw,dv){if(!M(dw)||null===dw){dw=this.getTrackerUrl()}var du=new T(dw,dv);L.push(du);u.trigger("TrackerAdded",[this]);return du};this.getSiteId=function(){return cc};this.setSiteId=function(du){b9(du)};this.resetUserId=function(){bF=""};this.setUserId=function(du){if(ac(du)){bF=du}};this.setVisitorId=function(dv){var du=/[0-9A-Fa-f]{16}/g; +if(x(dv)&&du.test(dv)){bU=dv}else{ao("Invalid visitorId set"+dv)}};this.getUserId=function(){return bF};this.setCustomData=function(du,dv){if(Z(du)){at=du}else{if(!at){at={}}at[du]=dv}};this.getCustomData=function(){return at};this.setCustomRequestProcessing=function(du){ch=du};this.appendToTrackingUrl=function(du){c9=du};this.getRequest=function(du){return cy(du)};this.addPlugin=function(du,dv){b[du]=dv};this.setCustomDimension=function(du,dv){du=parseInt(du,10);if(du>0){if(!M(dv)){dv=""}if(!x(dv)){dv=String(dv)}bt[du]=dv}};this.getCustomDimension=function(du){du=parseInt(du,10);if(du>0&&Object.prototype.hasOwnProperty.call(bt,du)){return bt[du]}};this.deleteCustomDimension=function(du){du=parseInt(du,10);if(du>0){delete bt[du]}};this.setCustomVariable=function(dv,du,dy,dw){var dx;if(!M(dw)){dw="visit"}if(!M(du)){return}if(!M(dy)){dy=""}if(dv>0){du=!x(du)?String(du):du;dy=!x(dy)?String(dy):dy;dx=[du.slice(0,bA),dy.slice(0,bA)];if(dw==="visit"||dw===2){cN();aV[dv]=dx}else{if(dw==="page"||dw===3){b2[dv]=dx +}else{if(dw==="event"){cs[dv]=dx}}}}};this.getCustomVariable=function(dv,dw){var du;if(!M(dw)){dw="visit"}if(dw==="page"||dw===3){du=b2[dv]}else{if(dw==="event"){du=cs[dv]}else{if(dw==="visit"||dw===2){cN();du=aV[dv]}}}if(!M(du)||(du&&du[0]==="")){return false}return du};this.deleteCustomVariable=function(du,dv){if(this.getCustomVariable(du,dv)){this.setCustomVariable(du,"","",dv)}};this.deleteCustomVariables=function(du){if(du==="page"||du===3){b2={}}else{if(du==="event"){cs={}}else{if(du==="visit"||du===2){aV={}}}}};this.storeCustomVariablesInCookie=function(){bW=true};this.setLinkTrackingTimer=function(du){bQ=du};this.getLinkTrackingTimer=function(){return bQ};this.setDownloadExtensions=function(du){if(x(du)){du=du.split("|")}dg=du};this.addDownloadExtensions=function(dv){var du;if(x(dv)){dv=dv.split("|")}for(du=0;du<dv.length;du++){dg.push(dv[du])}};this.removeDownloadExtensions=function(dw){var dv,du=[];if(x(dw)){dw=dw.split("|")}for(dv=0;dv<dg.length;dv++){if(P(dw,dg[dv])===-1){du.push(dg[dv]) +}}dg=du};this.setDomains=function(du){aC=x(du)?[du]:du;var dy=false,dw=0,dv;for(dw;dw<aC.length;dw++){dv=String(aC[dw]);if(cP(c2,O(dv))){dy=true;break}var dx=cr(dv);if(dx&&dx!=="/"&&dx!=="/*"){dy=true;break}}if(!dy){aC.push(c2)}};this.enableCrossDomainLinking=function(){cV=true};this.disableCrossDomainLinking=function(){cV=false};this.isCrossDomainLinkingEnabled=function(){return cV};this.setCrossDomainLinkingTimeout=function(du){a5=du};this.getCrossDomainLinkingUrlParameter=function(){return t(az)+"="+t(by())};this.setIgnoreClasses=function(du){bG=x(du)?[du]:du};this.setRequestMethod=function(du){if(du){dk=String(du).toUpperCase()}else{dk=cn}if(dk==="GET"){this.disableAlwaysUseSendBeacon()}};this.setRequestContentType=function(du){cE=du||aM};this.setGenerationTimeMs=function(du){ao("setGenerationTimeMs is no longer supported since Matomo 4. The call will be ignored. The replacement is setPagePerformanceTiming.")};this.setPagePerformanceTiming=function(dy,dA,dz,dv,dB,dw){var dx={pf_net:dy,pf_srv:dA,pf_tfr:dz,pf_dm1:dv,pf_dm2:dB,pf_onl:dw}; +try{dx=Q(dx,M);dx=B(dx);ct=l(dx);if(ct===""){ao("setPagePerformanceTiming() called without parameters. This function needs to be called with at least one performance parameter.");return}bn=false;bL=true}catch(du){ao("setPagePerformanceTiming: "+du.toString())}};this.setReferrerUrl=function(du){bu=du};this.setCustomUrl=function(du){ba=b1(bT,du)};this.getCurrentUrl=function(){return ba||bT};this.setDocumentTitle=function(du){bp=du};this.setPageViewId=function(du){aQ=du;bH=true};this.setAPIUrl=function(du){bO=du};this.setDownloadClasses=function(du){bR=x(du)?[du]:du};this.setLinkClasses=function(du){be=x(du)?[du]:du};this.setCampaignNameKey=function(du){cw=x(du)?[du]:du};this.setCampaignKeywordKey=function(du){bN=x(du)?[du]:du};this.discardHashTag=function(du){bV=du};this.setCookieNamePrefix=function(du){bq=du;if(aV){aV=b3()}};this.setCookieDomain=function(du){var dv=O(du);if(!bs&&!bD(dv)){ao("Can't write cookie on domain "+du)}else{c7=dv;bo()}};this.setExcludedQueryParams=function(du){co=x(du)?[du]:du +};this.getCookieDomain=function(){return c7};this.hasCookies=function(){return"1"===cb()};this.setSessionCookie=function(dw,dv,du){if(!dw){throw new Error("Missing cookie name")}if(!M(du)){du=cu}bB.push(dw);dp(aY(dw),dv,du,bw,c7,bY,aN)};this.getCookie=function(dv){var du=aH(aY(dv));if(du===0){return null}return du};this.setCookiePath=function(du){bw=du;bo()};this.getCookiePath=function(du){return bw};this.setVisitorCookieTimeout=function(du){cS=du*1000};this.setSessionCookieTimeout=function(du){cu=du*1000};this.getSessionCookieTimeout=function(){return cu};this.setReferralCookieTimeout=function(du){df=du*1000};this.setConversionAttributionFirstReferrer=function(du){bC=du};this.setSecureCookie=function(du){if(du&&location.protocol!=="https:"){ao("Error in setSecureCookie: You cannot use `Secure` on http.");return}bY=du};this.setCookieSameSite=function(du){du=String(du);du=du.charAt(0).toUpperCase()+du.toLowerCase().slice(1);if(du!=="None"&&du!=="Lax"&&du!=="Strict"){ao("Ignored value for sameSite. Please use either Lax, None, or Strict."); +return}if(du==="None"){if(location.protocol==="https:"){this.setSecureCookie(true)}else{ao("sameSite=None cannot be used on http, reverted to sameSite=Lax.");du="Lax"}}aN=du};this.disableCookies=function(){bs=true;if(cc){aJ()}};this.areCookiesEnabled=function(){return !bs};this.setCookieConsentGiven=function(){if(bs&&!cY){bs=false;c6=true;if(cc&&aA){aR();var du=cy("ping=1",null,"ping");bM(du,bQ)}}};this.requireCookieConsent=function(){if(this.getRememberedCookieConsent()){return false}this.disableCookies();return true};this.getRememberedCookieConsent=function(){return aH(cL)};this.forgetCookieConsentGiven=function(){b5(cL,bw,c7);this.disableCookies()};this.rememberCookieConsentGiven=function(dv){if(dv){dv=dv*60*60*1000}else{dv=30*365*24*60*60*1000}this.setCookieConsentGiven();var du=new Date().getTime();dp(cL,du,dv,bw,c7,bY,aN)};this.deleteCookies=function(){aJ()};this.setDoNotTrack=function(dv){var du=g.doNotTrack||g.msDoNotTrack;cY=dv&&(du==="yes"||du==="1");if(cY){this.disableCookies() +}};this.alwaysUseSendBeacon=function(){c5=true};this.disableAlwaysUseSendBeacon=function(){c5=false};this.addListener=function(dv,du){av(dv,du,false)};this.enableLinkTracking=function(dv){if(di){return}di=true;var du=this;q(function(){au=true;var dw=J.body;av(dw,dv,true)})};this.enableJSErrorTracking=function(){if(c0){return}c0=true;var du=W.onerror;W.onerror=function(dz,dx,dw,dy,dv){cm(function(){var dA="JavaScript Errors";var dB=dx+":"+dw;if(dy){dB+=":"+dy}if(P(cz,dA+dB+dz)===-1){cz.push(dA+dB+dz);ax(dA,dB,dz)}});if(du){return du(dz,dx,dw,dy,dv)}return false}};this.disablePerformanceTracking=function(){a8=false};this.enableHeartBeatTimer=function(du){du=Math.max(du||15,5);bb=du*1000;if(c8!==null){dr()}};this.disableHeartBeatTimer=function(){if(bb||aS){if(W.removeEventListener){W.removeEventListener("focus",bg);W.removeEventListener("blur",aD);W.removeEventListener("visibilitychange",a0)}else{if(W.detachEvent){W.detachEvent("onfocus",bg);W.detachEvent("onblur",aD);W.detachEvent("visibilitychange",a0) +}}}bb=null;aS=false};this.killFrame=function(){if(W.location!==W.top.location){W.top.location=W.location}};this.redirectFile=function(du){if(W.location.protocol==="file:"){W.location=du}};this.setCountPreRendered=function(du){bk=du};this.trackGoal=function(du,dx,dw,dv){cm(function(){c1(du,dx,dw,dv)})};this.trackLink=function(dv,du,dx,dw){cm(function(){db(dv,du,dx,dw)})};this.getNumTrackedPageViews=function(){return cx};this.trackPageView=function(du,dw,dv){cg=[];cT=[];cz=[];if(R(cc)){cm(function(){ad(aI,bO,cc)})}else{cm(function(){cx++;b6(du,dw,dv)})}};this.disableBrowserFeatureDetection=function(){c6=false};this.enableBrowserFeatureDetection=function(){c6=true};this.trackAllContentImpressions=function(){if(R(cc)){return}cm(function(){q(function(){var du=w.findContentNodes();var dv=cH(du);bK.pushMultiple(dv)})})};this.trackVisibleContentImpressions=function(du,dv){if(R(cc)){return}if(!M(du)){du=true}if(!M(dv)){dv=750}aX(du,dv,this);cm(function(){n(function(){var dw=w.findContentNodes(); +var dx=bf(dw);bK.pushMultiple(dx)})})};this.trackContentImpression=function(dw,du,dv){if(R(cc)){return}dw=a(dw);du=a(du);dv=a(dv);if(!dw){return}du=du||"Unknown";cm(function(){var dx=aK(dw,du,dv);bK.push(dx)})};this.trackContentImpressionsWithinNode=function(du){if(R(cc)||!du){return}cm(function(){if(ck){n(function(){var dv=w.findContentNodesWithinNode(du);var dw=bf(dv);bK.pushMultiple(dw)})}else{q(function(){var dv=w.findContentNodesWithinNode(du);var dw=cH(dv);bK.pushMultiple(dw)})}})};this.trackContentInteraction=function(dw,dx,du,dv){if(R(cc)){return}dw=a(dw);dx=a(dx);du=a(du);dv=a(dv);if(!dw||!dx){return}du=du||"Unknown";cm(function(){var dy=aU(dw,dx,du,dv);if(dy){bK.push(dy)}})};this.trackContentInteractionNode=function(dw,dv){if(R(cc)||!dw){return}var du=null;cm(function(){du=dl(dw,dv);if(du){bK.push(du)}});return du};this.logAllContentBlocksOnPage=function(){var dw=w.findContentNodes();var du=w.collectContent(dw);var dv=typeof console;if(dv!=="undefined"&&console&&console.log){console.log(du) +}};this.trackEvent=function(dv,dx,du,dw,dz,dy){cm(function(){ax(dv,dx,du,dw,dz,dy)})};this.trackSiteSearch=function(du,dw,dv,dx){cg=[];cm(function(){ce(du,dw,dv,dx)})};this.setEcommerceView=function(dy,du,dw,dv){cA={};if(ac(dw)){dw=String(dw)}if(!M(dw)||dw===null||dw===false||!dw.length){dw=""}else{if(dw instanceof Array){dw=W.JSON.stringify(dw)}}var dx="_pkc";cA[dx]=dw;if(M(dv)&&dv!==null&&dv!==false&&String(dv).length){dx="_pkp";cA[dx]=dv}if(!ac(dy)&&!ac(du)){return}if(ac(dy)){dx="_pks";cA[dx]=dy}if(!ac(du)){du=""}dx="_pkn";cA[dx]=du};this.getEcommerceItems=function(){return JSON.parse(JSON.stringify(da))};this.addEcommerceItem=function(dy,du,dw,dv,dx){if(ac(dy)){da[dy]=[String(dy),du,dw,dv,dx]}};this.removeEcommerceItem=function(du){if(ac(du)){du=String(du);delete da[du]}};this.clearEcommerceCart=function(){da={}};this.trackEcommerceOrder=function(du,dy,dx,dw,dv,dz){b4(du,dy,dx,dw,dv,dz)};this.trackEcommerceCartUpdate=function(du){bz(du)};this.trackRequest=function(dv,dx,dw,du){cm(function(){var dy=cy(dv,dx,du); +bM(dy,bQ,dw)})};this.ping=function(){this.trackRequest("ping=1",null,null,"ping")};this.disableQueueRequest=function(){bK.enabled=false};this.setRequestQueueInterval=function(du){if(du<1000){throw new Error("Request queue interval needs to be at least 1000ms")}bK.interval=du};this.queueRequest=function(du){cm(function(){var dv=cy(du);bK.push(dv)})};this.isConsentRequired=function(){return cI};this.getRememberedConsent=function(){var du=aH(bj);if(aH(cU)){if(du){b5(bj,bw,c7)}return null}if(!du||du===0){return null}return du};this.hasRememberedConsent=function(){return !!this.getRememberedConsent()};this.requireConsent=function(){cI=true;bJ=this.hasRememberedConsent();if(!bJ){bs=true}y++;b["CoreConsent"+y]={unload:function(){if(!bJ){aJ()}}}};this.setConsentGiven=function(dv){bJ=true;c6=true;b5(cU,bw,c7);var dw,du;for(dw=0;dw<cT.length;dw++){du=typeof cT[dw];if(du==="string"){bM(cT[dw],bQ)}else{if(du==="object"){dq(cT[dw],bQ)}}}cT=[];if(!M(dv)||dv){this.setCookieConsentGiven()}};this.rememberConsentGiven=function(dw){if(dw){dw=dw*60*60*1000 +}else{dw=30*365*24*60*60*1000}var du=true;this.setConsentGiven(du);var dv=new Date().getTime();dp(bj,dv,dw,bw,c7,bY,aN)};this.forgetConsentGiven=function(){var du=30*365*24*60*60*1000;b5(bj,bw,c7);dp(cU,new Date().getTime(),du,bw,c7,bY,aN);this.forgetCookieConsentGiven();this.requireConsent()};this.isUserOptedOut=function(){return !bJ};this.optUserOut=this.forgetConsentGiven;this.forgetUserOptOut=function(){this.setConsentGiven(false)};n(function(){setTimeout(function(){bL=true},0)});u.trigger("TrackerSetup",[this]);u.addPlugin("TrackerVisitorIdCookie"+aB,{unload:function(){if(!aA){aR();dj()}}})}function K(){return{push:aj}}function c(ay,ax){var az={};var av,aw;for(av=0;av<ax.length;av++){var at=ax[av];az[at]=1;for(aw=0;aw<ay.length;aw++){if(ay[aw]&&ay[aw][0]){var au=ay[aw][0];if(at===au){aj(ay[aw]);delete ay[aw];if(az[au]>1&&au!=="addTracker"&&au!=="enableLinkTracking"){ao("The method "+au+' 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') +}az[au]++}}}}return ay}var E=["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"];function ah(av,au){var at=new T(av,au);L.push(at);_paq=c(_paq,E);for(H=0;H<_paq.length;H++){if(_paq[H]){aj(_paq[H])}}_paq=new K();u.trigger("TrackerAdded",[at]);return at}ar(W,"beforeunload",am,false);ar(W,"visibilitychange",function(){if(m){return}if(J.visibilityState==="hidden"){ag("unload")}},false);ar(W,"online",function(){if(M(g.serviceWorker)){g.serviceWorker.ready.then(function(at){if(at&&at.sync){return at.sync.register("matomoSync") +}},function(){})}},false);ar(W,"message",function(ay){if(!ay||!ay.origin){return}var aA,aw,au;var aB=d(ay.origin);var ax=u.getAsyncTrackers();for(aw=0;aw<ax.length;aw++){au=d(ax[aw].getMatomoUrl());if(au===aB){aA=ax[aw];break}}if(!aA){return}var av=null;try{av=JSON.parse(ay.data)}catch(az){return}if(!av){return}function at(aE){var aG=J.getElementsByTagName("iframe");for(aw=0;aw<aG.length;aw++){var aF=aG[aw];var aC=d(aF.src);if(aF.contentWindow&&M(aF.contentWindow.postMessage)&&aC===aB){var aD=JSON.stringify(aE);aF.contentWindow.postMessage(aD,"*")}}}if(M(av.maq_initial_value)){at({maq_opted_in:av.maq_initial_value&&aA.hasConsent(),maq_url:aA.getMatomoUrl(),maq_optout_by_default:aA.isConsentRequired()})}else{if(M(av.maq_opted_in)){ax=u.getAsyncTrackers();for(aw=0;aw<ax.length;aw++){aA=ax[aw];if(av.maq_opted_in){aA.rememberConsentGiven()}else{aA.forgetConsentGiven()}}at({maq_confirm_opted_in:aA.hasConsent(),maq_url:aA.getMatomoUrl(),maq_optout_by_default:aA.isConsentRequired()})}}},false); +Date.prototype.getTimeAlias=Date.prototype.getTime;u={initialized:false,JSON:W.JSON,DOM:{addEventListener:function(aw,av,au,at){var ax=typeof at;if(ax==="undefined"){at=false}ar(aw,av,au,at)},onLoad:n,onReady:q,isNodeVisible:i,isOrWasNodeVisible:w.isNodeVisible},on:function(au,at){if(!z[au]){z[au]=[]}z[au].push(at)},off:function(av,au){if(!z[av]){return}var at=0;for(at;at<z[av].length;at++){if(z[av][at]===au){z[av].splice(at,1)}}},trigger:function(av,aw,au){if(!z[av]){return}var at=0;for(at;at<z[av].length;at++){z[av][at].apply(au||W,aw)}},addPlugin:function(at,au){b[at]=au},getTracker:function(au,at){if(!M(at)){at=this.getAsyncTracker().getSiteId()}if(!M(au)){au=this.getAsyncTracker().getTrackerUrl()}return new T(au,at)},getAsyncTrackers:function(){return L},addTracker:function(av,au){var at;if(!L.length){at=ah(av,au)}else{at=L[0].addTracker(av,au)}return at},getAsyncTracker:function(ax,aw){var av;if(L&&L.length&&L[0]){av=L[0]}else{return ah(ax,aw)}if(!aw&&!ax){return av}if((!M(aw)||null===aw)&&av){aw=av.getSiteId() +}if((!M(ax)||null===ax)&&av){ax=av.getTrackerUrl()}var au,at=0;for(at;at<L.length;at++){au=L[at];if(au&&String(au.getSiteId())===String(aw)&&au.getTrackerUrl()===ax){return au}}},retryMissedPluginCalls:function(){var au=al;al=[];var at=0;for(at;at<au.length;at++){aj(au[at])}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return u});define("matomo",[],function(){return u})}return u}())} /*!!! pluginTrackerHook */ -(function(){function b(){if("object"!==typeof _paq){return false}var c=typeof _paq.length;if("undefined"===c){return false}return !!_paq.length}if(window&&"object"===typeof window.matomoPluginAsyncInit&&window.matomoPluginAsyncInit.length){var a=0; -for(a;a<window.matomoPluginAsyncInit.length;a++){if(typeof window.matomoPluginAsyncInit[a]==="function"){window.matomoPluginAsyncInit[a]()}}}if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}if(window&&window.matomoAsyncInit){window.matomoAsyncInit()}if(!window.Matomo.getAsyncTrackers().length){if(b()){window.Matomo.addTracker()}else{_paq={push:function(c){var d=typeof console;if(d!=="undefined"&&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.",c)}}}}}window.Matomo.trigger("MatomoInitialized",[]);window.Matomo.initialized=true}());(function(){var a=(typeof window.AnalyticsTracker);if(a==="undefined"){window.AnalyticsTracker=window.Matomo}}()); -if(typeof window.piwik_log!=="function"){window.piwik_log=function(c,e,g,f){function b(h){try{if(window["piwik_"+h]){return window["piwik_"+h]}}catch(i){}return}var d,a=window.Matomo.getTracker(g,e);a.setDocumentTitle(c);a.setCustomData(f);d=b("tracker_pause");if(d){a.setLinkTrackingTimer(d)}d=b("download_extensions");if(d){a.setDownloadExtensions(d)}d=b("hosts_alias");if(d){a.setDomains(d)}d=b("ignore_classes");if(d){a.setIgnoreClasses(d)}a.trackPageView();if(b("install_tracker")){piwik_track=function(i,j,k,h){a.setSiteId(j);a.setTrackerUrl(k);a.trackLink(i,h)};a.enableLinkTracking()}}} +(function(){function b(){if("object"!==typeof _paq){return false}var c=typeof _paq.length;if("undefined"===c){return false}return !!_paq.length}if(window&&"object"===typeof window.matomoPluginAsyncInit&&window.matomoPluginAsyncInit.length){var a=0;for(a;a<window.matomoPluginAsyncInit.length;a++){if(typeof window.matomoPluginAsyncInit[a]==="function"){window.matomoPluginAsyncInit[a]()}}}if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}if(window&&window.matomoAsyncInit){window.matomoAsyncInit()}if(!window.Matomo.getAsyncTrackers().length){if(b()){window.Matomo.addTracker() +}else{_paq={push:function(c){var d=typeof console;if(d!=="undefined"&&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.",c)}}}}}window.Matomo.trigger("MatomoInitialized",[]);window.Matomo.initialized=true}());(function(){var a=(typeof window.AnalyticsTracker);if(a==="undefined"){window.AnalyticsTracker=window.Matomo}}());if(typeof window.piwik_log!=="function"){window.piwik_log=function(c,e,g,f){function b(h){try{if(window["piwik_"+h]){return window["piwik_"+h]}}catch(i){}return}var d,a=window.Matomo.getTracker(g,e);a.setDocumentTitle(c);a.setCustomData(f);d=b("tracker_pause");if(d){a.setLinkTrackingTimer(d)}d=b("download_extensions");if(d){a.setDownloadExtensions(d) +}d=b("hosts_alias");if(d){a.setDomains(d)}d=b("ignore_classes");if(d){a.setIgnoreClasses(d)}a.trackPageView();if(b("install_tracker")){piwik_track=function(i,j,k,h){a.setSiteId(j);a.setTrackerUrl(k);a.trackLink(i,h)};a.enableLinkTracking()}}} /*!! @license-end */;
\ No newline at end of file |