/* 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(f){var n=0;return function(){return nl;l++){var u=c&255;d[k++]=u;c= (c-u)/256}}function g(c){if("undefined"!==typeof c&&c.length)for(var l=0;l=S)return;1==sa&&("FIRST"==b||"STOP"==b||"TRIGGER"==b||5>y.counter||1==ta?Ba():H={});H.ctxtpc=y.counter;m.postCount=y.counter;1==e&&setTimeout(function(){y({autopost:e,noRawData:h,async:g})},250);m.tBrowser=f();m.other=O(H);m.uField=O(U);m.cParam=O(V);a=1E3*((new Date).getTime()-P);if(a<2E3*W||1==h){var d=0;m.ctxtReq=O(ua);m.eDesc="WEB_"+b+"_POST";0==y.counter?m.key=X+"_STATS":"RUNTIME"===b?m.eDesc="WEB_RUNTIME":"RUNTIME"!==b&&"FIRST_POST"!==b&&"TRAFFIC"!==b&&q!=v&&(a= a*v/q);m.url="";m.originUrl="";m.uaStr="";if("FIRST"==b||"STOP"==b||5>y.counter||1==ta)m.url=window.location.href,m.originUrl=document.referrer,m.uaStr="NaN";for(var k in m)m[k]=encodeURIComponent(m[k]);if(0==h){m.key="TRAFFIC"==b?X+"_"+b:X+"_STATS";k=function(l){return 0!=l};d=0;L.some(k)||Q.some(k)||R.some(k)?(w.sensorsWorking=!0,b=1):(w.sensorsWorking=!1,b=0);k=Y.some(k)||Z.some(k)||aa.some(k)?1:0;for(var c=d=0;c Ea?!0:!1:d>Fa?!0:!1;d=3*(b+k+k);c=v;1==M&&(v=va,0==sa&&T());d="undefined"!==typeof G&&0e;e++)h=a&255,a>>=8,b[e]=h;a=qa(b,g);"undefined"!==typeof a&&I(a);return a}}function D(a,b,e){b!=v&&e.AddFloat32Array(a.slice(b,v));0!=b&&e.AddFloat32Array(a.slice(0,b))}function ha(a){0==q&&(P=(new Date).getTime(),f());var b=Ia?-1:1;null!=a.accelerationIncludingGravity?(L[q]=b*a.accelerationIncludingGravity.x,Q[q]= b*a.accelerationIncludingGravity.y,R[q]=b*a.accelerationIncludingGravity.z):(L[q]=0,Q[q]=0,R[q]=0);null!=a.acceleration?(da[q]=b*a.acceleration.x,ea[q]=b*a.acceleration.y,fa[q]=b*a.acceleration.z):(da[q]=0,ea[q]=0,fa[q]=0);null!=a.rotationRate?(Y[q]=a.rotationRate.alpha*ia,Z[q]=a.rotationRate.beta*ia,aa[q]=a.rotationRate.gamma*ia):(Y[q]=0,Z[q]=0,aa[q]=0);a=(new Date).getTime()-P;"undefined"!==typeof ja&&(W=1E3*ja);if(a>W/2){v=Math.round(q*W/a);ka=!0;b=1;if(!v||v&v-1)for(;b>=1;)g<<=1;e=g}v=b-vJa&&(va=q,y({async:ba,CtxtEvent:"TRAFFIC"}),M=!1);1==ka&&q>=v&&(0==za&&(y({async:ba,CtxtEvent:"RUNTIME"}),la=(new Date).getTime()),P-la>=J&&(y({async:ba,CtxtEvent:"RUNTIME"}),la=P),za+=1,q=0,ka=!1)}function Aa(a){a=void 0===a?"FIRST":a;w.sampling=!0;"undefined"!=typeof N&&N.setReceptivity()&&(M=!1);y({noRawData:!0,async:!0,CtxtEvent:void 0===a?"FIRST":a});q=0;"DeviceMotionEvent"in window&&(window.addEventListener("devicemotion", ha,!1),setTimeout(window.removeEventListener,18E5,"devicemotion",ha))}function T(){w.sampling&&(w.sampling=!1,y({noRawData:!0,async:!0,CtxtEvent:"STOP"}),window.removeEventListener("devicemotion",ha))}var w={cicalls:[],ptim:[],clc:0},F=document.currentScript.getAttribute("src"),W=1E3,v=void 0,va=void 0,q=0,m={},ua={},U={},H={},V={},P=0,Ha=-1,ma,ja,na,Ga="cracq",xa="ctxtfl.com/",ya="ctxtfl.com/",Da=!1,S=40,ba=!0,M=!0,sa=!0,Fa=16,Ea=4,X=function(){var a=p(F).id;if(20b;b++){var g=e[b].charCodeAt();if(g<"0".charCodeAt()||g>"9".charCodeAt()&&g<"A".charCodeAt()||g>"Z".charCodeAt()&&g<"a".charCodeAt()||g>"z".charCodeAt()){b=!1;break b}}b=!0}if(b){b="";for(g=0;g4*h-3?h=0:(h=Math.floor(4*h-3),100pa?!t(pa):!1;w.sampling=!1;J=void 0===J||isNaN(J)?8E3:1E3>=J?1E3:5E3<=J?5E3:8E3;void 0!=ma&&(J=ma);var L=new Float32Array(200),Q=new Float32Array(200),R=new Float32Array(200),da=new Float32Array(200),ea=new Float32Array(200),fa=new Float32Array(200),Y=new Float32Array(200),Z=new Float32Array(200),aa=new Float32Array(200); m.uaStr="NaN";m.screenW="NaN";m.screenH="NaN";m.color="NaN";m.dpi="NaN";var Ia=~navigator.userAgent.indexOf("iPhone")||~navigator.userAgent.indexOf("iPad");m.ctxtReq=O(ua);m.lang="NaN";var N=new function(){function a(e){var g=!1;var h=parseInt(e);if(33>=h){var d="low";var k="NonReceptive"}else d=66>=h?"average":"premium",k="Receptive";h=p(F).callback||"";var c=p(F).SSP||"GAM",l={receptivity:e,ReceptivityState:k,receptivity_range:d};if(""!=h)if(c=h.split("."),5>=c.length)try{if(1==c.length)window[c[0]](l); else if(2==c.length)window[c[0]][c[1]](l);else if(3==c.length)window[c[0]][c[1]][c[2]](l);else if(4==c.length)window[c[0]][c[1]][c[2]][c[3]](l);else if(5==c.length)window[c[0]][c[1]][c[2]][c[3]][c[4]](l);g=!0;w.cicalls.push(["CC",performance.now().toFixed(0)]);w.callbackSetup=!0}catch(u){n("[CONTXTFUL INJECTION] ERROR caught: "+u+" for input : "+h)}else w.callbackSetup=!1,n("[CONTXTFUL INJECTION] ERROR: window."+h+"(str) is undefined"),n("[CONTXTFUL INJECTION] HINT: Make sure to add the callback=domain.function to the