(()=>{const r={newPotentialVisitorTrackingId:"m2zl95iyfrgdnw9rm6jnuceplgjwe15eww5r0xrejvngjjj9mf5ee6c5r4qdcws7",visitorTrackingIdCookieName:"clive-visitor-tid-163",host:"live.clive.cloud",accountId:"163"},c=r.visitorTrackingIdCookieName,g=(e,n)=>{const s=e+"=",o=n.split(";");for(let i=0;i<o.length;i++){let t=o[i];for(;t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(s)==0)return t.substring(s.length,t.length)}return""},d=()=>{const e=window.location.hostname;if(!isNaN(Number(e.replace(/\\./gi,""))))return null;const n=e.split("."),s=n.length;return s<2?null:"."+n[s-2]+"."+n[s-1]},u=(e,n,s)=>{const o=new Date;o.setTime(o.getTime()+s*24*60*60*1e3);const i="expires="+o.toUTCString(),t=d(),a=t?";Domain="+encodeURIComponent(t):"";document.cookie=e+"="+n+";"+i+";path=/"+a,g(e,document.cookie)||(document.cookie=e+"="+n+";"+i+";path=/")},l=e=>{u(c,e,3650)},p=()=>{let e=g(c,document.cookie);return e||(e=r.newPotentialVisitorTrackingId,l(r.newPotentialVisitorTrackingId)),e},k=(e,n,s,o,i)=>{const t=new XMLHttpRequest;t.withCredentials=i!==!1,t.open(n,m(e),!0);for(let a in o)t[a]=o[a];t.send(s)},m=e=>{const n=new URL(e);return n.searchParams.set("referer",window.location.href),n.toString()},h=p(),v=encodeURIComponent(document.title);k(`https://${r.host}/page-views/${r.accountId}/visitors/${h}/register?t=${v}`,"GET",null,{onload:function(){if(this.status===200){const e=JSON.parse(this.responseText);e.success&&e.newTrackingId&&l(e.newTrackingId)}}});})();