!function(){let a=document.querySelectorAll('[class*="track-"], [class*="atomicat-track-"]'),s=document.body.getAttribute("id")?.replace("_",""),i=document.body.getAttribute("data-page")?.replace("_",""),e=[],n=0,o=document.documentElement.scrollHeight-window.innerHeight,r=new Date,c=()=>{try{let e=window.location.hostname;return e?.includes("atomicatpages.com")||e?.includes("b-cdn.net")}catch(e){console.log(e)}};function t(t){let o="https://apidopro.atomicat-api.com/lytics/save";t.visitorId=function(){try{var n,s=localStorage.getItem("atomicat.host"),t=JSON.parse(s).uuid}catch{t=(n=(new Date).getTime(),(n*Math.random()*1e5).toString(36)+"-"+n+"-"+(n*Math.random()*1e5).toString(36)),localStorage.setItem("atomicat.host",JSON.stringify({uuid:t}))}return t}(),t.duration=(new Date-r)/1e3,t.btnClicks=e,t.uid=s,t.pid=i,t.search=window.location.search,t.pathname=window.location.pathname,t.scrolled=isNaN(n)?0:n,s&&i&&!c()&&(navigator&&navigator.sendBeacon?navigator.sendBeacon(o,JSON.stringify(t)):(t.origin=window.location.hostname,fetch(o,{keepalive:!0,method:"POST",mode:"no-cors",headers:{"content-type":"application/json"},body:JSON.stringify(t)})),e=[])}document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&t({action:"left",listenerType:"visibilitychange"})}),"onpagehide"in window&&window.addEventListener("pagehide",()=>{t({action:"left",listenerType:"pagehide"})}),"onbeforeunload"in window&&window.addEventListener("beforeunload",e=>{t({action:"left",listenerType:"beforeunload"})}),document.addEventListener("mouseout",function(e){!e.relatedTarget&&e.clientY<=0&&(console.log("mouseout..."),t({action:"left",listenerType:"mouseout"}))}),a.forEach(t=>{t.addEventListener("click",n=>function(n,s){n.target;let o=s.classList,i="";for(let e=0;ee.id==i);-1!==a?e[a].count=e[a].count+1:e.push({id:i,count:1})}(n,t))}),window.addEventListener("scroll",function(){let t=window.pageYOffset||document.documentElement.scrollTop;if(o<=0)n=0;else{let e=t/o*100;n=isNaN(e)?0:Math.max(n,e).toFixed(2)}}),t({action:"viewed"})}()