/* This software Connector and its source code are the property of Contxtful Technologies Inc. Use of this script is Subject to the terms and conditions of the License Agreement. As a subscriber, you agree that you are solely responsible for providing all appropriate and legally required disclosures pertaining to the use and removal of the Connector(s) and obtain any legally required consents as needed, and you agree that it will defend, indemnify and hold Contxtful Technologies Inc. harmless from and against any and all third-party claims stemming from or related to the use of Tags as provided herein. */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(k){var n=0;return function(){return na){var c= void 0;a=Math.round(Math.random()*(void 0===c?100:c))d;d++){var b=h&255;f[q++]=b;h=(h-b)/256}}function g(h){if("undefined"!== typeof h&&h.length)for(var d=0;d=qa)return;1==ib&&(-1!==["FIRST","STOP","TRIGGER","MANUAL"].indexOf(b)||5>y.counter||1==jb?Hb():M={});M.ctxtpc=y.counter;p.postCount=y.counter; 1==w&&setTimeout(function(){y({autopost:w,noRawData:x,async:u})},250);p.tBrowser=k();p.other=ka(M);p.uField=ka(sa);p.cParam=ka(ta);var B=1E3*((new Date).getTime()-N);if(B<2E3*J||1==x){var ua=0;p.ctxtReq=ka(kb);p.eDesc="WEB_"+b+"_POST";0==y.counter?p.key=la+"_STATS":"RUNTIME"===b?p.eDesc="WEB_RUNTIME":"RUNTIME"!==b&&"FIRST_POST"!==b&&"TRAFFIC"!==b&&v!=F&&(B=B*F/v);p.url="";p.originUrl="";p.uaStr="";if("FIRST"==b||"STOP"==b||5>y.counter||1==jb)p.url=window.location.href,p.originUrl=document.referrer, p.uaStr="NaN";for(var G in p)p[G]=encodeURIComponent(p[G]);if(0==x){p.key="TRAFFIC"==b||"MANUAL"==b?la+"_"+b:la+"_STATS";G=function(Kb){return 0!=Kb};var D;var I=0;if(Y.some(G)||ma.some(G)||na.some(G)){z.sensorsWorking=!0;var T=1}else z.sensorsWorking=!1,T=0;G=va.some(G)||wa.some(G)||xa.some(G)?1:0;for(D=I=0;DLb?!0:!1:I>Mb?!0:!1;D=G&T;I=3*(T+G+D);1==Z&&0==ib&&ra();var aa=a;if("TRIGGER"==b||"MANUAL"==b)aa=F;ua="undefined"!== typeof S&&0e;e++)l=a&255,a>>=8,c[e]=l;a=hb(c,g);"undefined"!==typeof a&&V(a);return a}}function O(a,c,e,g){g=void 0===g?-1:g;-1!=g?e.AddFloat32Array(a.slice(c, g)):(c!=F&&e.AddFloat32Array(a.slice(c,F)),0!=c&&(c>F&&(c=F),e.AddFloat32Array(a.slice(0,c))))}function Ob(){K>J&&(N+=K-J);y({async:fa,CtxtEvent:"RUNTIME",dataSize:0});N=(new Date).getTime();y.counter>=Ta&&(clearInterval(W),W=null,y({noRawData:!0,async:!0,CtxtEvent:"STOP"}))}function Ua(){H=!0;null==W&&1==ba&&(N=(new Date).getTime(),k(),nb(),eb(Va)||(La=!1,W=setInterval(Ob,K)))}function Wa(a){0==v&&(N=(new Date).getTime(),k(),1==ba&&nb());null==a.acceleration.x&&null==a.acceleration.y&&null==a.acceleration.z&& 1==ba?Ua():H=!1;var c=Xa?-1:1;null!=a.accelerationIncludingGravity?(Y[v]=c*a.accelerationIncludingGravity.x,ma[v]=c*a.accelerationIncludingGravity.y,na[v]=c*a.accelerationIncludingGravity.z):(Y[v]=0,ma[v]=0,na[v]=0);null!=a.acceleration?(Oa[v]=c*a.acceleration.x,Pa[v]=c*a.acceleration.y,Qa[v]=c*a.acceleration.z):(Oa[v]=0,Pa[v]=0,Qa[v]=0);null!=a.rotationRate?(va[v]=a.rotationRate.alpha*Ya,wa[v]=a.rotationRate.beta*Ya,xa[v]=a.rotationRate.gamma*Ya):(va[v]=0,wa[v]=0,xa[v]=0);a=(new Date).getTime()- N;"undefined"===typeof ha||isNaN(ha)||(J=1E3*ha);a>J/2&&(F=Ga(v,J/a),Za=!0);v+=1;1==Z&&a>Pb&&(a=F,F=v,H=!1,y({async:fa,CtxtEvent:"TRAFFIC",dataSize:v}),F=a,Z=!1);1==Za&&v>=F&&(0==ob&&(y({async:fa,CtxtEvent:"RUNTIME",dataSize:F}),$a=(new Date).getTime()),N-$a>=K&&(y({async:fa,CtxtEvent:"RUNTIME",dataSize:F}),$a=N),ob+=1,v=0,Za=!1)}function Ga(a,c,e){a=Math.round(a*c);if(void 0===e||e){e=1;if(!a||a&a-1)for(;e>=1;)g<<=1;c=g}a=e-aC&&(a=C); return a}function pb(a){a=void 0===a?"FIRST":a;z.sampling=!0;"undefined"!=typeof Q&&Q.setReceptivity()&&(H=Z=!1);M.creationDate=Qb;y({noRawData:!0,async:!0,CtxtEvent:void 0===a?"FIRST":a});delete M.creationDate;H&&qb();v=0;"DeviceMotionEvent"in window?(window.addEventListener("devicemotion",Wa,!1),Xa&&Ua(),setTimeout(window.removeEventListener,18E5,"devicemotion",Wa)):Ua();1==ba&&(a=Ga(Ma/1E3,rb,!1),za.SetLength(a),Aa.SetLength(a),Ba.SetLength(a),Ca.SetLength(a),a=Ga(Na/1E3,sb,!1),Da.SetLength(a), Ea.SetLength(a),document.addEventListener("mousemove",tb,!1),document.addEventListener("touchmove",ub,!1),document.addEventListener("mousedown",vb),document.addEventListener("mouseup",wb),document.addEventListener("touchstart",xb),document.addEventListener("touchend",yb),zb=setInterval(Rb,1E3/rb),Ab=setInterval(Sb,1E3/sb))}function ra(){z.sampling&&(z.sampling=!1,y({noRawData:!0,async:!0,CtxtEvent:"STOP"}),window.removeEventListener("devicemotion",Wa),1==ba&&(document.removeEventListener("mousemove", tb,!1),document.removeEventListener("touchmove",ub,!1),document.removeEventListener("mouseup",wb),document.removeEventListener("mousedown",vb),document.removeEventListener("touchend",yb),document.removeEventListener("touchstart",xb),clearInterval(zb),clearInterval(Ab)),null!=W&&(clearInterval(W),W=null),null!=X&&(clearInterval(X),H=!1))}function qb(){try{Q.callbackInjection("-1",Q.getLookAlike())||Bb()}catch(a){Bb()}}function Bb(){Cb++;2>=Cb&&setTimeout(function(){qb()},500)}function nb(){ca=[];U= [];da=[];P=[];ea=[]}function tb(a){ab=Math.round(a.clientX);bb=Math.round(a.clientY)}function ub(a){ab=Math.round(a.touches[0].clientX);bb=Math.round(a.touches[0].clientY)}function Sb(){Da.push(ab);Ea.push(bb)}function wb(a){U.push(Math.round(a.clientX));da.push(Math.round(a.clientY));ea.push(a.button);P.push((new Date).getTime());ca.push(Ha.MouseUp)}function vb(a){U.push(Math.round(a.clientX));da.push(Math.round(a.clientY));ea.push(a.button);P.push((new Date).getTime());ca.push(Ha.MouseDown)}function yb(a){U.push(Math.round(a.changedTouches[a.changedTouches.length- 1].clientX));da.push(Math.round(a.changedTouches[a.changedTouches.length-1].clientY));ea.push(a.changedTouches[a.changedTouches.length-1].identifier);P.push((new Date).getTime());ca.push(Ha.TouchUp)}function xb(a){U.push(Math.round(a.touches[a.touches.length-1].clientX));da.push(Math.round(a.touches[a.touches.length-1].clientY));ea.push(a.touches[a.touches.length-1].identifier);P.push((new Date).getTime());ca.push(Ha.TouchDown)}function Rb(){var a=window,c="inner";"innerWidth"in window||(c="client", a=document.documentElement||document.body);var e=a[c+"Width"];a=a[c+"Height"];za.push(Math.round(window.pageXOffset));Aa.push(Math.round(window.pageYOffset));Ba.push(Math.round(Tb+e));Ca.push(Math.round(Ub+a))}var z={cicalls:[],ptim:[],clc:0,sicalls:[]},R=document.currentScript.getAttribute("src"),J=1E3,F=Ga(32*J/1E3,2),L=function(a){this.SetLength(a)};L.prototype.SetLength=function(a){this.array=new Float32Array(a);this.length=a;this.cursize=this.idx=0};L.prototype.push=function(a){this.array[this.idx]= a;this.idx=(this.idx+1)%this.length;this.cursize<=this.length&&this.cursize++};L.prototype.resetBuffers=function(){this.cursize=this.idx=0};L.prototype.read=function(){if(this.cursizec;c++){var g=e[c].charCodeAt();if(g<"0".charCodeAt()||g>"9".charCodeAt()&&g<"A".charCodeAt()|| g>"Z".charCodeAt()&&g<"a".charCodeAt()||g>"z".charCodeAt()){c=!1;break b}}c=!0}if(c){c="";for(g=0;g4*g-3?g=0:(g=Math.floor(4*g-3),100=K?1E3:5E3<=K?5E3:8E3;void 0==ia||isNaN(ia)||(K=ia);var Y=new Float32Array(C),ma=new Float32Array(C),na=new Float32Array(C),Oa=new Float32Array(C),Pa=new Float32Array(C),Qa=new Float32Array(C),va=new Float32Array(C),wa=new Float32Array(C), xa=new Float32Array(C),v=0;p.uaStr="NaN";p.screenW="NaN";p.screenH="NaN";p.color="NaN";p.dpi="NaN";p.ctxtReq=ka(kb);p.lang="NaN";var Xa=null,W=null,Tb=null,Ub=null,ab=null,bb=null,za=new L(C),Aa=new L(C),Ba=new L(C),Ca=new L(C),Da=new L(C),Ea=new L(C),Ma=m("WindowSize_fov",1E3),Na=m("WindowSize_pointer",1E3),rb=m("Freqency_fov",16),sb=m("Freqency_pointer",16),U=[],da=[],P=[],ea=[],ca=[],zb=null,Ab=null,Ha={MouseDown:0,MouseUp:1,TouchDown:2,TouchUp:3},ja=new function(){return{isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}, isiOScellphone:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)}}},Q=new function(){function a(l,f){f=void 0===f?{}:f;var q=!1,h;try{var d=parseInt(l)}catch(x){n("[CONTXTFUL] ERROR: "+x+". Receptivity not an numerical value."),d=-1}-1!=d&&"number"==typeof d&&H&&(H=!1);if("undefined"!==typeof f.M){var b=h="";var w="undefined"!==typeof ja&&"object"==typeof ja?ja.isMobile()?f.M:f.D:f.D;"N"==w?(w="No",b="NonReceptive"):(w="Yes",b="Receptive")}else 0>d?(h="",b="NonReceptive",w="No"):33>=d? (h="low",b="NonReceptive",w="No"):(h=66>=d?"average":"premium",b="Receptive",w="Yes");"undefined"!=typeof contxtful_config?(f=contxtful_config.callback||"",d=contxtful_config.SSP||"GAM"):(f=A(R).callback||"",d=A(R).SSP||"GAM");var u={receptivity:l,ReceptivityState:b,receptivity_range:h,ReceptivityLookalike:w};if(""!=f)if(d=f.split("."),5>=d.length)try{if(1==d.length)window[d[0]](u);else if(2==d.length)window[d[0]][d[1]](u);else if(3==d.length)window[d[0]][d[1]][d[2]](u);else if(4==d.length)window[d[0]][d[1]][d[2]][d[3]](u); else if(5==d.length)window[d[0]][d[1]][d[2]][d[3]][d[4]](u);q=!0;z.cicalls.push(["CC",performance.now().toFixed(0)]);z.callbackSetup=!0}catch(x){n("[CONTXTFUL INJECTION] ERROR caught: "+x+" for input : "+f)}else z.callbackSetup=!1,n("[CONTXTFUL INJECTION] ERROR: window."+f+"(str) is undefined"),n("[CONTXTFUL INJECTION] HINT: Make sure to add the callback=domain.function to the