/* 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(g){var p=0;return function(){return pa){var b=void 0;a=Math.round(Math.random()*(void 0===b?100:b))n;n++){var d=h&255;e[k++]=d;h=(h-d)/256}}function f(h){if("undefined"!==typeof h&&h.length)for(var n=0;n=ua)return;1==rb&&(-1!==["FIRST","STOP","TRIGGER","MANUAL"].indexOf(d)||5>y.counter||1==sb?Pb():K={});K.ctxtpc=y.counter;q.postCount=y.counter;1==v&&setTimeout(function(){y({autopost:v,noRawData:u,async:w})},250);q.tBrowser=g();q.other=pa(K);q.uField= pa(wa);q.cParam=pa(xa);var B=1E3*((new Date).getTime()-P);if(B<2E3*L||1==u){var H=0;q.ctxtReq=pa(tb);q.eDesc="WEB_"+d+"_POST";0==y.counter?q.key=qa+"_STATS":"RUNTIME"===d?q.eDesc="WEB_RUNTIME":"RUNTIME"!==d&&"FIRST_POST"!==d&&"TRAFFIC"!==d&&x!=I&&(B=B*I/x);q.url="";q.originUrl="";q.uaStr="";if("FIRST"==d||"STOP"==d||5>y.counter||1==sb)q.url=window.location.href,q.originUrl=document.referrer,q.uaStr="NaN";for(var z in q)q[z]=encodeURIComponent(q[z]);if(0==u){q.key="TRAFFIC"==d||"MANUAL"==d?qa+"_"+ d:qa+"_STATS";z=function(Ub){return 0!=Ub};var F;var J=0;if(da.some(z)||ra.some(z)||sa.some(z)){A.sensorsWorking=!0;var V=1}else A.sensorsWorking=!1,V=0;z=ya.some(z)||za.some(z)||Aa.some(z)?1:0;for(F=J=0;FVb?!0:!1:J>Wb?!0:!1;F=z&V;J=3*(V+z+F);1==ea&&0==rb&&va();var fa=a;if("TRIGGER"==d||"MANUAL"==d)fa=I;H="undefined"!==typeof U&&0c;c++)l=a&255,a>>=8,b[c]=l;a=pb(b,f);"undefined"!==typeof a&&Z(a);return a}}function Q(a,b,c,f){f=void 0===f?-1:f;-1!=f?c.AddFloat32Array(a.slice(b,f)):(b!=I&&c.AddFloat32Array(a.slice(b,I)),0!=b&& (b>I&&(b=I),c.AddFloat32Array(a.slice(0,b))))}function Yb(){M>L&&(P+=M-L);y({async:la,CtxtEvent:"RUNTIME",dataSize:0});P=(new Date).getTime();y.counter>=Xa&&(clearInterval(aa),aa=null,y({noRawData:!0,async:!0,CtxtEvent:"STOP"}))}function Ya(){N=!0;null===aa&&1==ha&&(P=(new Date).getTime(),g(),vb(),mb(Za)||(Pa=!1,aa=setInterval(Yb,M)))}function $a(a){0==x&&(P=(new Date).getTime(),g(),1==ha&&vb());null==a.acceleration.x&&null==a.acceleration.y&&null==a.acceleration.z&&1==ha?Ya():N=!1;var b=ab?-1:1; null!=a.accelerationIncludingGravity?(da[x]=b*a.accelerationIncludingGravity.x,ra[x]=b*a.accelerationIncludingGravity.y,sa[x]=b*a.accelerationIncludingGravity.z):(da[x]=0,ra[x]=0,sa[x]=0);null!=a.acceleration?(Sa[x]=b*a.acceleration.x,Ta[x]=b*a.acceleration.y,Ua[x]=b*a.acceleration.z):(Sa[x]=0,Ta[x]=0,Ua[x]=0);null!=a.rotationRate?(ya[x]=a.rotationRate.alpha*bb,za[x]=a.rotationRate.beta*bb,Aa[x]=a.rotationRate.gamma*bb):(ya[x]=0,za[x]=0,Aa[x]=0);a=(new Date).getTime()-P;"undefined"===typeof ma||isNaN(ma)|| (L=1E3*ma);a>L/2&&(I=Ja(x,L/a),cb=!0);x+=1;1==ea&&a>Zb&&(a=I,I=x,N=!1,y({async:la,CtxtEvent:"TRAFFIC",dataSize:x}),I=a,ea=!1);1==cb&&x>=I&&(0==wb&&(y({async:la,CtxtEvent:"RUNTIME",dataSize:I}),db=(new Date).getTime()),P-db>=M&&(y({async:la,CtxtEvent:"RUNTIME",dataSize:I}),db=P),wb+=1,x=0,cb=!1)}function Ja(a,b,c){a=Math.round(a*b);if(void 0===c||c){c=1;if(!a||a&a-1)for(;c>=1;)f<<=1;b=f}a=c-aC&&(a=C);return a}function xb(a){a=void 0=== a?"FIRST":a;A.sampling=!0;if("undefined"!=typeof D)if(D.setReceptivity()){if("legacy"===X||t())ea=!1}else W()||yb(),t()&&(na=1);"undefined"!==typeof screen&&(K.w=screen.width,K.y=screen.height,K.z=window.devicePixelRatio);Qb(a);x=0;"DeviceMotionEvent"in window?(window.addEventListener("devicemotion",$a,!1),ab&&Ya(),setTimeout(window.removeEventListener,18E5,"devicemotion",$a)):Ya();1==ha&&(a=Ja(Qa/1E3,zb,!1),Ca.SetLength(a),Da.SetLength(a),Ea.SetLength(a),Fa.SetLength(a),a=Ja(Ra/1E3,Ab,!1),Ga.SetLength(a), Ha.SetLength(a),document.addEventListener("mousemove",Bb,!1),document.addEventListener("touchmove",Cb,!1),document.addEventListener("mousedown",Db),document.addEventListener("mouseup",Eb),document.addEventListener("touchstart",Fb),document.addEventListener("touchend",Gb),Hb=setInterval($b,1E3/zb),Ib=setInterval(ac,1E3/Ab))}function va(){A.sampling&&(A.sampling=!1,y({noRawData:!0,async:!0,CtxtEvent:"STOP"}),window.removeEventListener("devicemotion",$a),1==ha&&(document.removeEventListener("mousemove", Bb,!1),document.removeEventListener("touchmove",Cb,!1),document.removeEventListener("mouseup",Eb),document.removeEventListener("mousedown",Db),document.removeEventListener("touchend",Gb),document.removeEventListener("touchstart",Fb),clearInterval(Hb),clearInterval(Ib)),null!=aa&&(clearInterval(aa),aa=null),null!=ba&&(clearInterval(ba),N=!1))}function yb(){if("undefined"!=typeof D)try{D.callbackInjection("-1",D.getLookAlike())?r()||(Oa(),G(JSON.stringify(D.getLookAlike()))):Jb()}catch(a){Jb()}}function Jb(){Kb++; 2>=Kb&&setTimeout(function(){yb()},500)}function vb(){ia=[];Y=[];ja=[];R=[];ka=[]}function Bb(a){eb=Math.round(a.clientX);fb=Math.round(a.clientY)}function Cb(a){eb=Math.round(a.touches[0].clientX);fb=Math.round(a.touches[0].clientY)}function ac(){Ga.push(eb);Ha.push(fb)}function Eb(a){Y.push(Math.round(a.clientX));ja.push(Math.round(a.clientY));ka.push(a.button);R.push((new Date).getTime());ia.push(Ka.MouseUp)}function Db(a){Y.push(Math.round(a.clientX));ja.push(Math.round(a.clientY));ka.push(a.button); R.push((new Date).getTime());ia.push(Ka.MouseDown)}function Gb(a){Y.push(Math.round(a.changedTouches[a.changedTouches.length-1].clientX));ja.push(Math.round(a.changedTouches[a.changedTouches.length-1].clientY));ka.push(a.changedTouches[a.changedTouches.length-1].identifier);R.push((new Date).getTime());ia.push(Ka.TouchUp)}function Fb(a){Y.push(Math.round(a.touches[a.touches.length-1].clientX));ja.push(Math.round(a.touches[a.touches.length-1].clientY));ka.push(a.touches[a.touches.length-1].identifier); R.push((new Date).getTime());ia.push(Ka.TouchDown)}function $b(){var a=window,b="inner";"innerWidth"in window||(b="client",a=document.documentElement||document.body);var c=a[b+"Width"];a=a[b+"Height"];Ca.push(Math.round(window.pageXOffset));Da.push(Math.round(window.pageYOffset));Ea.push(Math.round(bc+c));Fa.push(Math.round(cc+a))}var A={cicalls:[],ptim:[],clc:0,sicalls:[]},T=document.currentScript.getAttribute("src"),L=1E3,I=Ja(32*L/1E3,2),O=function(a){this.SetLength(a)};O.prototype.SetLength=function(a){this.array= new Float32Array(a);this.length=a;this.cursize=this.idx=0};O.prototype.push=function(a){this.array[this.idx]=a;this.idx=(this.idx+1)%this.length;this.cursize<=this.length&&this.cursize++};O.prototype.resetBuffers=function(){this.cursize=this.idx=0};O.prototype.read=function(){if(this.cursizeb;b++){var f=c[b].charCodeAt();if(f<"0".charCodeAt()||f>"9".charCodeAt()&&f<"A".charCodeAt()||f>"Z".charCodeAt()&&f<"a".charCodeAt()||f>"z".charCodeAt()){b=!1;break b}}b=!0}if(b){b="";for(f=0;f4*f-3?f=0:(f=Math.floor(4*f-3),100=M?1E3:5E3<=M?5E3:8E3;void 0==oa||isNaN(oa)||(M=oa);var da=new Float32Array(C),ra=new Float32Array(C),sa=new Float32Array(C),Sa=new Float32Array(C),Ta=new Float32Array(C),Ua=new Float32Array(C),ya=new Float32Array(C),za=new Float32Array(C),Aa=new Float32Array(C),x= 0;q.uaStr="NaN";q.screenW="NaN";q.screenH="NaN";q.color="NaN";q.dpi="NaN";q.ctxtReq=pa(tb);q.lang="NaN";var ab=null,aa=null,bc=null,cc=null,eb=null,fb=null,Ca=new O(C),Da=new O(C),Ea=new O(C),Fa=new O(C),Ga=new O(C),Ha=new O(C),Qa=m("WindowSize_fov",1E3),Ra=m("WindowSize_pointer",1E3),zb=m("Freqency_fov",16),Ab=m("Freqency_pointer",16),Y=[],ja=[],R=[],ka=[],ia=[],Hb=null,Ib=null,Ka={MouseDown:0,MouseUp:1,TouchDown:2,TouchUp:3},ca=new function(){function a(c,f){var l="Other";/Linux/.test(c)&&(l="Linux"); /Windows/.test(c)&&(l="Windows");/Macintosh/.test(c)&&(l="Mac OS X");/iPad/.test(c)&&!/HiPad/.test(c)&&(l="iOS");/iPhone/.test(c)&&(l="iOS");/Android/.test(c)&&(l="Android");/CrOS/.test(c)&&(l="Chrome OS");f&&(/Windows Phone/.test(c)&&(l="Windows Phone"),/Ubuntu/.test(c)&&(l="Ubuntu"),/Fedora/.test(c)&&(l="Fedora"),/Tizen/.test(c)&&(l="Tizen"),/CrKey/.test(c)&&(l="Chromecast"),/FreeBSD/.test(c)&&(l="FreeBSD"),/OpenBSD/.test(c)&&(l="OpenBSD"),/\(BB10;/.test(c)&&(l="BlackBerry OS"),/Web0S/.test(c)&& (l="Web0S"));return l}function b(c,f){var l=a(c,f);l=/Mac OS X|Linux|Windows|Chrome OS|Ubuntu|Fedora|Chromecast|OpenBSD/.test(l);f&&/NetCast|Fuchsia|Andr0id|Android/.test(c)&&(l=!1);return l}return{isMobile:function(c){c=void 0===c?!0:c;var f=navigator.userAgent,l;if(!(l=b(f,c))){l=/Other|Tizen|OpenBSD|FreeBSD|Web0S/;var e=!0;if(/Mobile /.test(f)||l.test(a(f,c))||b(c))e=!1;/iPhone/.test(f)&&(e=!1);/iPad/.test(f)&&(e=!0);c&&(/Mobile Midori|Mobile DuckDuckGo|Mobile Iron/.test(f)&&(e=!0),/NetCast|Fuchsia|Andr0id|; rv:/.test(f)&& (e=!1),/Silk|ARM/.test(f)&&(e=!0),/Quest/.test(f)&&/Mobile/.test(f)&&(e=!0),/\(Linux; Android\)/.test(f)&&(e=!1),/ zh-cn;/.test(f)&&(e=!0));l=e}return l||/http/.test(f)?!1:!0},isApple:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh|Mac OS/.test(navigator.userAgent)}}};A.isMobile=ca.isMobile();var D=new function(){function a(e,k){k=void 0===k?{}:k;var h=!1,n,d=!1;try{var v=parseInt(e)}catch(z){p("[CONTXTFUL] ERROR: "+z+". Receptivity not an numerical value."),v=-1}-1!=v&& "number"==typeof v&&N&&(N=!1);if("undefined"!==typeof k.M){var w=n="";if("undefined"!==typeof ca&&"object"==typeof ca)if(ca.isMobile())var u=k.M;else u=k.D,d=!0;else u=k.D;"N"==u?(u="No",w="NonReceptive"):(u="Yes",w="Receptive")}else 0>v?(n="",w="NonReceptive",u="No"):33>=v?(n="low",w="NonReceptive",u="No"):(n=66>=v?"average":"premium",w="Receptive",u="Yes");if("undefined"!=typeof contxtful_config){v=contxtful_config.callback||"";var B=contxtful_config.SSP||"GAM"}else v=S(T).callback||"",B=S(T).SSP|| "GAM";d&&!gb&&(w="NonReceptive");var H={receptivity:e,ReceptivityState:w,receptivity_range:n,ReceptivityLookalike:u};if("undefined"!==typeof k.RETURN&&!0===k.RETURN)return H;if(""!=v)if(e=v.split("."),5>=e.length)try{if(1==e.length)window[e[0]](H);else if(2==e.length)window[e[0]][e[1]](H);else if(3==e.length)window[e[0]][e[1]][e[2]](H);else if(4==e.length)window[e[0]][e[1]][e[2]][e[3]](H);else if(5==e.length)window[e[0]][e[1]][e[2]][e[3]][e[4]](H);h=!0;A.cicalls.push(["CC",performance.now().toFixed(0)]); A.callbackSetup=!0}catch(z){p("[CONTXTFUL INJECTION] ERROR caught: "+z+" for input : "+v)}else A.callbackSetup=!1,p("[CONTXTFUL INJECTION] ERROR: window."+v+"(str) is undefined"),p("[CONTXTFUL INJECTION] HINT: Make sure to add the callback=domain.function to the