(()=>{"use strict";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e].call(i.exports,i,i.exports,o),i.exports}o.m=r,e=[],o.O=(r,t,n,i)=>{if(!t){var l=1/0;for(s=0;s=i)&&Object.keys(o.O).every((e=>o.O[e](t[u])))?t.splice(u--,1):(a=!1,i0&&e[s-1][2]>i;s--)e[s]=e[s-1];e[s]=[t,n,i]},o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={121:0};o.O.j=r=>0===e[r];var r=(r,t)=>{var n,i,[l,a,u]=t,f=0;if(l.some((r=>0!==e[r]))){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);if(u)var s=u(o)}for(r&&r(t);f{"use strict";var r,i=n(1978),s=n(9637),o=n(8160),a=n(6055),c=n(7589),l="http://www.w3.org/1999/xhtml";function d(e,t){return 3===e.nodeType?function(e,t){return new s(e.nodeValue)}(e):1===e.nodeType||9===e.nodeType?function(e,t){var n=e.namespaceURI!==l?e.namespaceURI:null,r=t.key&&e.getAttribute(t.key)?e.getAttribute(t.key):null;return new i(e.tagName,function(e){var t,n,r={};if(!e.hasAttributes())return r;e.namespaceURI&&e.namespaceURI!==l&&(t=e.namespaceURI);for(var i=0;i-1&&(n[i]=n[i].replace(/\"/g,""))}return{name:"style",value:n}}function g(e,t){var n,r;r=e.cssText.split(";");for(var i=0;i-1){n=r[i].replace(t+":","").trim();break}return n}e.exports=function(e,t){if(t=t||{},!e)return d(document.createTextNode(""));if("string"==typeof e){if(!("DOMParser"in window))throw new Error("DOMParser is not available, so parsing string to DOM node is not possible.");var n=(r=r||new DOMParser).parseFromString(e,"text/html");e=n.body.firstChild?n.getElementsByTagName("body")[0].firstChild:n.head.firstChild&&("TITLE"!==n.head.firstChild.tagName||n.title)?n.head.firstChild:n.firstChild&&"HTML"!==n.firstChild.tagName?n.firstChild:document.createTextNode("")}if("object"!=typeof e||!e||!e.nodeType)throw new Error("invalid dom node",e);return d(e,t)}},7589:e=>{"use strict";var t=null,n="http://www.w3.org/1999/xlink",r="http://www.w3.org/XML/1998/namespace",i={about:t,"accent-height":t,accumulate:t,additive:t,"alignment-baseline":t,alphabetic:t,amplitude:t,"arabic-form":t,ascent:t,attributeName:t,attributeType:t,azimuth:t,bandwidth:t,baseFrequency:t,baseProfile:t,"baseline-shift":t,bbox:t,begin:t,bias:t,by:t,calcMode:t,"cap-height":t,class:t,clip:t,"clip-path":t,"clip-rule":t,clipPathUnits:t,color:t,"color-interpolation":t,"color-interpolation-filters":t,"color-profile":t,"color-rendering":t,content:t,contentScriptType:t,contentStyleType:t,cursor:t,cx:t,cy:t,d:t,datatype:t,defaultAction:t,descent:t,diffuseConstant:t,direction:t,display:t,divisor:t,"dominant-baseline":t,dur:t,dx:t,dy:t,edgeMode:t,editable:t,elevation:t,"enable-background":t,end:t,"ev:event":"http://www.w3.org/2001/xml-events",event:t,exponent:t,externalResourcesRequired:t,fill:t,"fill-opacity":t,"fill-rule":t,filter:t,filterRes:t,filterUnits:t,"flood-color":t,"flood-opacity":t,focusHighlight:t,focusable:t,"font-family":t,"font-size":t,"font-size-adjust":t,"font-stretch":t,"font-style":t,"font-variant":t,"font-weight":t,format:t,from:t,fx:t,fy:t,g1:t,g2:t,"glyph-name":t,"glyph-orientation-horizontal":t,"glyph-orientation-vertical":t,glyphRef:t,gradientTransform:t,gradientUnits:t,handler:t,hanging:t,height:t,"horiz-adv-x":t,"horiz-origin-x":t,"horiz-origin-y":t,id:t,ideographic:t,"image-rendering":t,in:t,in2:t,initialVisibility:t,intercept:t,k:t,k1:t,k2:t,k3:t,k4:t,kernelMatrix:t,kernelUnitLength:t,kerning:t,keyPoints:t,keySplines:t,keyTimes:t,lang:t,lengthAdjust:t,"letter-spacing":t,"lighting-color":t,limitingConeAngle:t,local:t,"marker-end":t,"marker-mid":t,"marker-start":t,markerHeight:t,markerUnits:t,markerWidth:t,mask:t,maskContentUnits:t,maskUnits:t,mathematical:t,max:t,media:t,mediaCharacterEncoding:t,mediaContentEncodings:t,mediaSize:t,mediaTime:t,method:t,min:t,mode:t,name:t,"nav-down":t,"nav-down-left":t,"nav-down-right":t,"nav-left":t,"nav-next":t,"nav-prev":t,"nav-right":t,"nav-up":t,"nav-up-left":t,"nav-up-right":t,numOctaves:t,observer:t,offset:t,opacity:t,operator:t,order:t,orient:t,orientation:t,origin:t,overflow:t,overlay:t,"overline-position":t,"overline-thickness":t,"panose-1":t,path:t,pathLength:t,patternContentUnits:t,patternTransform:t,patternUnits:t,phase:t,playbackOrder:t,"pointer-events":t,points:t,pointsAtX:t,pointsAtY:t,pointsAtZ:t,preserveAlpha:t,preserveAspectRatio:t,primitiveUnits:t,propagate:t,property:t,r:t,radius:t,refX:t,refY:t,rel:t,"rendering-intent":t,repeatCount:t,repeatDur:t,requiredExtensions:t,requiredFeatures:t,requiredFonts:t,requiredFormats:t,resource:t,restart:t,result:t,rev:t,role:t,rotate:t,rx:t,ry:t,scale:t,seed:t,"shape-rendering":t,slope:t,snapshotTime:t,spacing:t,specularConstant:t,specularExponent:t,spreadMethod:t,startOffset:t,stdDeviation:t,stemh:t,stemv:t,stitchTiles:t,"stop-color":t,"stop-opacity":t,"strikethrough-position":t,"strikethrough-thickness":t,string:t,stroke:t,"stroke-dasharray":t,"stroke-dashoffset":t,"stroke-linecap":t,"stroke-linejoin":t,"stroke-miterlimit":t,"stroke-opacity":t,"stroke-width":t,surfaceScale:t,syncBehavior:t,syncBehaviorDefault:t,syncMaster:t,syncTolerance:t,syncToleranceDefault:t,systemLanguage:t,tableValues:t,target:t,targetX:t,targetY:t,"text-anchor":t,"text-decoration":t,"text-rendering":t,textLength:t,timelineBegin:t,title:t,to:t,transform:t,transformBehavior:t,type:t,typeof:t,u1:t,u2:t,"underline-position":t,"underline-thickness":t,unicode:t,"unicode-bidi":t,"unicode-range":t,"units-per-em":t,"v-alphabetic":t,"v-hanging":t,"v-ideographic":t,"v-mathematical":t,values:t,version:t,"vert-adv-y":t,"vert-origin-x":t,"vert-origin-y":t,viewBox:t,viewTarget:t,visibility:t,width:t,widths:t,"word-spacing":t,"writing-mode":t,x:t,"x-height":t,x1:t,x2:t,xChannelSelector:t,"xlink:actuate":n,"xlink:arcrole":n,"xlink:href":n,"xlink:role":n,"xlink:show":n,"xlink:title":n,"xlink:type":n,"xml:base":r,"xml:id":r,"xml:lang":r,"xml:space":r,y:t,y1:t,y2:t,yChannelSelector:t,z:t,zoomAndPan:t};e.exports=i},6055:e=>{"use strict";e.exports={abbr:"abbr",accept:"accept","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",alt:"alt",async:"async",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoplay",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charset",checked:"checked",cite:"cite",class:"className",cols:"cols",colspan:"colSpan",command:"command",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",coords:"coords",crossorigin:"crossOrigin",data:"data",datetime:"dateTime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",dropzone:"dropzone",enctype:"encType",for:"htmlFor",form:"form",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameBorder:"frameBorder",headers:"headers",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang","http-equiv":"httpEquiv",icon:"icon",id:"id",inputmode:"inputMode",ismap:"isMap",itemid:"itemId",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",manifest:"manifest",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",ping:"ping",placeholder:"placeholder",poster:"poster",preload:"preload",radiogroup:"radioGroup",readonly:"readOnly",rel:"rel",required:"required",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",sortable:"sortable",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srcset:"srcset",start:"start",step:"step",style:"style",tabindex:"tabIndex",target:"target",title:"title",translate:"translate",type:"type",typemustmatch:"typeMustMatch",usemap:"useMap",value:"value",wmode:"wmode",wrap:"wrap",valign:"vAlign",integrity:"integrity"}},6119:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ABTest:()=>h.Ay,ADDON_SCRIPT_VERSION:()=>m,CE_API:()=>$t,CommonEventHandlers:()=>mn,Emitter:()=>le.v,ExitIntent:()=>Pt,FormData:()=>Ce.f,Goal:()=>u.A,IndexedDB:()=>a.mc,JSON:()=>fn,NativeURL:()=>gn,Preview:()=>ne,READY_STATE_PATTERN:()=>xe,Tracker:()=>pn,URL:()=>ye.j,addListener:()=>s.ch,addTag:()=>s.Ap,addToCart:()=>sn,benchmark:()=>o.aE,benchmarkEnabled:()=>o.$J,botDetector:()=>Ae,checkoutCompleted:()=>an,clearIdentity:()=>Te.SY,click:()=>s.jM,consent:()=>a.vJ,converted:()=>tn.H$,cookieStorage:()=>S.i,customEvent:()=>s.ex,debug:()=>o.Yz,debug2:()=>o.cC,debug2Enabled:()=>o.$Q,debugEnabled:()=>o.dK,debugError:()=>ue.A,decreaseSessionWorth:()=>Te.LV,deleteCookie:()=>s.Yj,domReadySetup:()=>Le,each:()=>s.__,errorTracking:()=>ue.o,get:()=>f.get,getCensoredElements:()=>Ee,getCookie:()=>s.Ri,getCookieMode:()=>a.mr,getCookies:()=>s.OR,getLastFlow:()=>nn.lD,getSegmentTracker:()=>Q.MH,getSession:()=>Qt,getSessionId:()=>en,goalConversion:()=>tn.og,goalIdString:()=>tn.CT,hasFeature:()=>s.jI,http:()=>f,hudMain:()=>Ie,identify:()=>Te.ls,ignore:()=>s.Xe,increaseSessionWorth:()=>Te.vn,isBot:()=>Oe,isConsent:()=>a.VK,listen:()=>s.KT,loadAddonScript:()=>T,loadAddonThirdpartyScript:()=>N,loadHUD:()=>Se,matchURL:()=>ve.$,matchesAddon:()=>re,matchesLegacyOrSegments:()=>Q.mF,matchesSelector:()=>s.B5,matchesTrigger:()=>Z._9,nextGoalConversionValue:()=>tn.uw,notifyError:()=>xt,onDOMReady:()=>$e,pagesTracker:()=>ht,parseNumberString:()=>rn.s,promisePool:()=>he,remoteLog:()=>fe,removeListener:()=>s.pQ,resetSession:()=>Zt,set:()=>s.hZ,setCurrency:()=>tn.MN,setRecordingsSamplingRate:()=>Xe,setSessionWorth:()=>Te.LG,showCTA:()=>J,showFeedbackSurvey:()=>B,showSurvey:()=>F,startCheckout:()=>on,startRecording:()=>Qe,stopRecording:()=>Ze,testModeCheck:()=>s.ou,traceLog:()=>o.aQ,trackSurveyResponse:()=>ce,triggerAddons:()=>te,userDataMain:()=>Ot,userMainTestMode:()=>Dt,uuid_v1:()=>de.O,writeCookie:()=>s.o});var r={};n.r(r),n.d(r,{previewHandler:()=>U,showFeedbackSurvey:()=>B,showSurvey:()=>F,trigger:()=>Y});var i={};n.r(i),n.d(i,{previewHandler:()=>G,showCTA:()=>J,trigger:()=>X});n(7022);var s=n(2886),o=n(3380),a=n(4451);"undefined"==typeof CE2&&(globalThis.CE2={}),CE2.userDataToJs=function(){const e=[["uid","uid"],["snapshots","snapshots"],["status","status"],["flows","flows"],["sites","sites"],["USER_SCRIPT_VERSION","updated_at"],["__CE_HOST__","ce_app_url"],["COMMON_SCRIPT","common_script_url"],["COMMON_SCRIPT_SECURE","common_script_url"],["TRACKING_SCRIPT","tracking_script_url"],["TRACKING_SCRIPT_SECURE","tracking_script_url"],["AUTH_KEY","hud_auth_key"],["HUD","hud"],["GLOBAL_IP_BLOCK_LIST","global_ip_block_list"],["IS_USING_IP_BLOCKING","is_using_ip_blocking"],["TRACKING_DEST_NEW","v6_tracking_dest"],["TRACKING_DEST_NEW_SECURE","v6_secure_tracking_dest"],["DEST_V11","v11_tracking_dest"],["FT_DEST","flow_tracking_dest"],["PAGE_VIEWS_LIMIT_REACHED","page_views_limit_reached"],["NUMBER_OF_RECORDINGS","recordings_number"],["RECORDINGS_ACTIVATION","recordings_activation"],["ERROR_TRACKING","error_tracking"],["DEST_ERRORS_API","error_tracking_dest"],["DEST_ERRORS_API_DOMAIN","error_tracking_script_url"]];for(let t=0;tl(n)})}CE2.getNativeXMLHttpRequest=function(){return new CE2.Native.XMLHttpRequest},"undefined"!=typeof Prototype&&(0,o.Yz)("[Loading] WARNING: Prototype.js library detected, it can cause tracking issues"),(0,o.Yz)(`[Loading] Cookie mode=${(0,a.mr)()}`),CE2.sessionTags=[],CE2.p={},CE2.state.ignoredElements=[],CE2.state.clickCaptors=[],CE2.state.logHistory=[],CE2.state.logHistoryEnabled=!1,CE2.state.userData=[],CE2.getBox||(CE2.getBox=()=>{}),CE2.getUserDataTime||(CE2.getUserDataTime=function(){if(window.performance&&performance.getEntriesByType){var e=performance.getEntriesByType("navigation");if(e&&e[0])return"back_forward"===e[0].type?parseInt(+new Date/3e5,10):1}return parseInt(+new Date/36e5,10)}),CE2.loadScript||(CE2.loadScript=function(e,t){const n=document.createElement("script");n.src=e,n.type="text/javascript",n.async=!0,n.onload=()=>{t&&t()},document.head.append(n)}),CE2.loadTrackingScript||(CE2.loadTrackingScript=function(e){return e()}),CE2.loadSessionTrackingScript||(CE2.loadSessionTrackingScript=function(e){return e()}),CE2.w&&!CE2.w.CE_URL_FINGERPRINT&&(CE2.w.CE_URL_FINGERPRINT=function(){const{host:e}=CE2.w.location;let{pathname:t}=CE2.w.location;return t=t.split("/").map((e=>e.replace(/^([\d]+|(.*(\d.*){2}))$/,"*"))).join("/"),`${e.replace(/^(www|m)\./i,"")}${t}`.toLowerCase().replace(/\/$/,"")}),CE2.autoStart=CE2.w&&("undefined"==typeof CE_MANUAL_START||!CE_MANUAL_START),CE2.loadTrackingScript||(CE2.loadTrackingScript=function(e){return e()}),CE2.loadSessionTrackingScript||(CE2.loadSessionTrackingScript=function(e){return e()}),CE2.w&&(CE2.loadCEAPI=function(){CE2.w.CE_API=CE2.CE_API(CE2.w.CE_API)});var u=n(8856),h=n(2484);class p{constructor(e){this.site=e,this.clock=CE2.clock,this.ratio=e.recording_ratio}validRatio(){return!Number.isNaN(Number(this.ratio))&&null!=this.ratio}canRecord(){const e=CE2.w.innerWidth||CE2.d.documentElement.clientWidth;if((CE2.w.innerHeight||CE2.d.documentElement.clientHeight)<10||e<10)return this.debug("Sampling rejected: too small screen size"),!1;let t="undefined"!=typeof CE_ENFORCE_RECORDING&&CE_ENFORCE_RECORDING;const n=CE2.data&&CE2.data.dkey;if(!t&&n&&CE2.w&&CE2.w.location.href.indexOf(`ced=${n}`)&&CE2.w.location.href.indexOf("ceer=1")>-1&&(t=!0),t)return this.debug("CE_ENFORCE_RECORDING applied"),this._setAppliedStrategy("enforced"),!0;const r=CE2.state.overridenRecordingSamplingRate;if(r){this.debug(`Sampling Ratio: enforced to ${r}`);const e=100*Math.random()e)}customSamplingApplies(){if(!this.clock)return!1;const e=CE2.clock.getDate();if(!e)return!1;const t=new Date(1e3*parseInt(this.site.recordingSettings.samplingStartDateUnix,10)),n=new Date(1e3*parseInt(this.site.recordingSettings.samplingEndDateUnix,10)),r=new Date(1e3*parseInt(this.site.recordingSettings.samplingUpdatedAt,10)),i=new Date(1e3*parseInt(this.site.recordingSettings.samplingCompletedAt,10));return!(r&&i&&i>r)&&(t<=e&&e<=n)}customPeriodEnded(){if(!this.clock)return!1;return CE2.clock.getDate()>new Date(1e3*parseInt(this.site.recordingSettings.samplingEndDateUnix,10))}debug(e,t){(0,o.Yz)(`[Sessions] ${e}`,t)}_strategy(){return"custom"===this.site.recordingSettings.samplingStrategy?"custom":"consecutive"===this.site.recordingSettings.samplingStrategy?"consecutive":"no_sampling"===this.site.recordingSettings.samplingStrategy?"no_sampling":"uniform"}_key(){return"custom"===this._strategy()||"consecutive"===this._strategy()?btoa(`${this.site.id}|${this.site.recordingSettings.samplingUpdatedAt}`):"all"}}class g{constructor(e){this.site=e,this.clock=CE2.clock,this.ratio=e.web_analytics_ratio}validRatio(){return!Number.isNaN(Number(this.ratio))&&null!=this.ratio}debug(e,t){(0,o.Yz)(`[WebAnalytics] ${e}`,t)}canRecord(){const e=Math.random()*this.ratio;return this.debug("Sampling Ratio",{random:e,ratio:this.ratio,accepted:e<1}),e<1}}var f=n(1509);const m=CE2.w?.CE_ADDON_VERSION||"1.0.142",E="preview",v="testMode",C="pageChange",y="survey",w="cta",_=2;var S=n(8e3);const b={},k={survey:"Survey",cta:"CTA"},I=()=>new Promise((e=>{CE2.loadTrackingScript((()=>{e()}))})),T=(e="index.js")=>b[e]?Promise.resolve():new Promise((t=>{const n=((e="index.js")=>{const{data:t}=CE2,n=`/scripts/addons/${m}/${e}`;return CE2.w.CE_ADDON_HOST?[CE2.w.CE_ADDON_HOST,n].join(""):new CE2.Native.URL(n,t.common_script_url).toString()})(e);CE2.loadScript(n,(()=>{b[e]=!0,t()}))})),N=e=>b[e]?Promise.resolve():new Promise((t=>{const n=(e=>{const{data:t}=CE2,n=`/scripts/addons/thirdparty/${e}`;return CE2.w.CE_ADDON_HOST?[CE2.w.CE_ADDON_HOST,n].join(""):new CE2.Native.URL(n,t.common_script_url).toString()})(e);CE2.loadScript(n,(()=>{b[e]=!0,t()}))})),A=async e=>{CE2[k[e]]||(await T(),CE2.loadAddon?await CE2.loadAddon(e):(0,o.Yz)("[Addons] CE2.loadAddon not defined after loading addont script"))},R=async e=>{const t=(e=>{const t=document.getElementsByTagName(e)[0];return t?[...t.shadowRoot.querySelectorAll("link[rel=stylesheet]")]:[]})(e).filter((e=>!e.sheet));if(0===t.length)return!0;(0,o.Yz)(`[Addons] not loaded files: ${t.length}`);const n=t.map((e=>((0,o.Yz)(`[Addons] ${e.href}: schedule waiting`),new Promise((t=>{let n,r=!1;e.addEventListener("load",(()=>{r=!0,(0,o.Yz)(`[Addons] ${e.href}: loaded`),n&&clearTimeout(n),t("ok")})),n=setTimeout((()=>{!1===r&&((0,o.Yz)(`[Addons] ${e.href}: timed out`),t("timed out"))}),5e3)})))));return 0===(await Promise.all(n)).filter((e=>"string"==typeof e&&"timed out"===e)).length},D=e=>{const{sampling:t,external:n}=e?.config||{};if(!e||"number"!=typeof t||!0===n)return!1;let r=S.i.get("as");if("boolean"!=typeof r){const e=100*Math.random();r=e>t,(0,o.Yz)("[Addons] Sampling",{seed:e,sampling:t}),S.i.set("as",r)}return r},O="initiated",x="dataLoaded",P="scriptLoaded",V="dataMissing",$="https://core.crazyegg.com";class L{constructor(e,t){this.type=e,this.key=`ce_${e}_preview`,this.isLoadedByHash=!1,this.currentAddon=null,this.onDisplay=t}isPreview(){const e=!!this.getHash()||this.isLoadedByHash;return e&&(CE2.surveyPreviewMode=!0),e}isOpenedWindow(){return window.opener}isPlatformOrigin(e){const{data:t}=CE2,n=t.survey_launch_origins||t.addon_launch_origins||[];return[t.ce_app_url,...n].includes(e)}isValidHash(e){if(!e||"string"!=typeof e)return!1;const t=e.split(".");if(!/^[a-zA-Z0-9_-]{43}$/.test(t[0]))return!1;if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(t[1]))return!1;const n=t.slice(2).join(".");return!(n&&n!==CE2.w.location.hostname&&!CE2.w.location.hostname.endsWith(`.${n}`))}getHash(){const e=CE2.w.location.hash.match(new RegExp(`#ce-${this.type}-(.+)`));if(e&&e[1]){const t=e[1];return this.isValidHash(t)?(CE2.Native.sessionStorage&&CE2.Native.sessionStorageWrapper.write(this.key,t),t):null}if(!CE2.Native.sessionStorage)return null;const t=CE2.Native.sessionStorageWrapper.read(this.key);return this.isValidHash(t)?t:null}load(){const e=this.getHash();if(e)this.loadData(e).catch(console.error).then((e=>{e&&(this.currentAddon=e,this.onDisplay(e))}));else{window.opener&&window.opener.postMessage({status:O},$);const e=t=>{t.source===window.opener&&this.isPlatformOrigin(t.origin)&&t.data&&"object"==typeof t.data&&t.data.token&&(this.isLoadedByHash=!0,this.loadData(t.data.token).then((e=>{e&&e.type!==this.type||(CE2.Native.sessionStorage&&CE2.Native.sessionStorageWrapper.write(this.key,t.data.token),t.source.postMessage({status:e?x:V},$),e&&((0,s.ch)(window,`${this.type}Loaded`,(()=>{t.source.postMessage({status:P},$)})),this.currentAddon=e,this.onDisplay(e)))})),window.removeEventListener("message",e))};window.addEventListener("message",e)}CE2.loaded=!0}loadData(e){return new Promise(((t,n)=>{const{data:r}=CE2,i=new CE2.Native.URL(r.survey_preview_dest||r.addon_preview_dest);i.searchParams.set("token",e),i.searchParams.set("user",r.uid),i.searchParams.set("host",CE2.w.location.hostname),(0,f.get)(i.href,(e=>{e&&200===e.status&&e.responseText?t(CE2.Native.JSON.parse(e.responseText.trim())):n(new Error("Preview addon not found"))}))}))}}const U=new L("survey",(async e=>(await A(y),CE2.launchAddon(y,{mode:E,addon:e}))));let M=[];const H=(e,t)=>{const n=[e.id,t],r=CE2.tracker.newEvent(CE2.eventTypes.SURVEY_COMPLETE,{attributes:n});CE2.tracker.send(r)},z=()=>{const{Survey:e}=CE2;for(let e=0,t=M;e{})),e.on("notTrigger",(()=>{})),e.on("surveyComplete",H),e.on("surveyClose",H),e.on("surveyDisplay",(({id:e})=>{(0,f.sendCounter)("survey:view",e)})),e.on("questionDisplay",((e,t)=>{const n=e.questions[t]?.id;n&&(0,f.sendCounter)("question:view",`${e.id}_${n}`)}))]},F=async e=>{if("string"!=typeof e)throw new Error("Survey ID must be a string");const t=(CE2.data.addons||[]).find((t=>t.id===e));t?D(t)?(0,o.Yz)(`Addon ${e} is sampled`):(await I(),await A(y),z((CE2.site,CE2.getSession(CE2.site?.id))),CE2.Survey.showSurvey(e)):(0,o.Yz)(`Addon ${e} is not found`)},B=async e=>{if("string"!=typeof e)throw new Error("Survey ID must be a string");await I(),await A(y),z((CE2.site,CE2.getSession(CE2.site?.id))),CE2.Survey.showFeedbackSurvey(e)},Y=async(e,t)=>{const{addons:n}=CE2.data;return CE2.w.CE_EXTERNAL_SURVEY?(async e=>{if(CE2.w.CE_EXTERNAL_SURVEY_PREVIEW&&"preview"===e)return await A("survey"),U.load();if("preview"!==e){await I();const{addons:e}=CE2.data;e.length&&(CE2.state.survey=e[0],await F(e[0].id))}})(e):e===E?(U.isPreview()&&await A(y),U.load()):void(n&&0!==n.filter((({type:e})=>e===y)).length?U.isPreview()||await(async e=>{await I(),await A(y),z(),await CE2.launchAddon(y)})():(0,o.Yz)("[Addons] Disabled"))},j="cta_converted",W=e=>{const t=(0,s.IS)("sessionId");if(!e||!t)return;(e=>{const t=CE2.data.addons.find((({id:t})=>t===e.id));if(t?.goal_id){const e=CE2.Native.JSON.parse(CE2.Native.sessionStorageWrapper.read(j)||"{}");e[t.goal_id]={id:t.id,goalId:t.goal_id,timestamp:Date.now()},CE2.Native.sessionStorageWrapper.write(j,CE2.Native.JSON.stringify(e))}})(e);const n={addonType:_,addonId:e.id};(0,f.sendCounter)("cta:click",e.id),CE2.tracker?.sendCtaClick(n)},G=new L("cta",(async e=>(await A(w),CE2.launchAddon(w,{mode:E,addon:e}))));let K=[];const q=e=>{const{CTA:t}=CE2;for(let e=0,t=K;e{})),t.on("notTrigger",(()=>{})),t.on("display",(e=>{e&&(async({id:e})=>{await R("crazyegg-cta")&&(0,f.sendCounter)("cta:view",e)})(e)})),t.on("click",(t=>{t&&W(t,e.site)}))]},J=async e=>{if("string"!=typeof e)throw new Error("CTA ID must be a string");const t=(CE2.data.addons||[]).find((t=>t.id===e));t?D(t)?(0,o.Yz)(`Addon ${e} is sampled`):(await I(),await A(w),q({site:CE2.site,session:CE2.getSession(CE2.site?.id)}),CE2.CTA.showCTA(e)):(0,o.Yz)(`Addon ${e} is not found`)},X=async(e,t)=>{if(e===E)return G.isPreview()&&await A(w),G.load();const{addons:n}=CE2.data;n&&0!==n.filter((({type:e})=>e===w)).length&&(G.isPreview()||await(async e=>{await I(),await A(w),q(e),await CE2.launchAddon(w)})(t))};var Q=n(474),Z=n(7471);const ee=[r,i],te=(e,t={})=>{CE2.data.addons=(CE2.data.addons||[]).filter((e=>!1===D(e)));for(let n=0;n(0,Q.mF)({resourceType:e.type,resourceId:e.id},(()=>(0,Z._9)(e.config.audience?.conditions,t))),ie="text-entry/email",se=["multi-choice/single","multi-choice/multi","text-entry/short","text-entry/long",ie,"rating/stars","rating/numerical","rating/smiley","rating/NPS"],oe=e=>!e.some((e=>0!==e&&!e)),ae=e=>[e.questionType,e.questionId,e.questionText,e.response,e.questionPosition,e.otherResponse],ce=(e,t,n=null)=>{if(!e||!t.length)return(0,o.Yz)("Survey: invalid arguments");if(!((e,t)=>{const n=!e||oe(Object.values(e)),r=!t.map((e=>oe(Object.values(e))&&se.includes(e.questionType))).some((e=>!e));return n&&r})(n,t))return(0,o.Yz)("Survey: Invalid survey or response structure");if(CE2.surveyPreviewMode)return(0,o.Yz)("Survey: do not send responses in preview mode");const r=t.map(ae),i={surveyId:n?.id||"",surveyFormatVersion:n?.formatVersion||"",groupResponseId:e,whitelistedResponsesKeys:r},s=t.find((e=>e.questionType===ie&&e.response));CE2.tracker?.sendSurveyResponse(i,s?.response)};var le=n(3201),de=n(2759),ue=n(4808);const he=function(e,t,n){return new Promise(((r,i)=>{const s=[],o=[];let a,c=0,l=0;const d=()=>{if(l>=e.length&&!a)return void(a=Promise.all(o).then((()=>{r(s)})).catch((e=>{i(e)})));if(l>=e.length)return;const u=e[l];l+=1;const h=n(u);o.push(h),h.then((e=>{s.push(e),c-=1,d()})).catch((e=>{i(e)})),c+=1,c{t.status<200||t.status>=300?we(`Error loading latest HUD version: ${t.status} ${t.statusText}`):e(t.responseText.trim())}))}(),CE2.state.loadedHUD=!0,CE2.Native.localStorage.setItem("powerup","true"),!0)}catch(e){return we(e),!1}},be=function(){try{if(_e())return Se(),!0}catch(e){we(e)}return!1},ke={startListener(){CE2.w.opener&&CE2.w.addEventListener("message",ke.onMessage)},stopListener(e,t){CE2.w.removeEventListener("message",ke.onMessage),e.postMessage({hudLaunched:!0},t)},onMessage(e){try{if(we("Received message"),e.source!==CE2.w.opener)return void we("Unexpected source");if(![CE2.data.ce_app_url,...CE2.data.hud.launch_origins].includes(e.origin))return void we("Unexpected source url");const t=e.data;if(!t||"object"!=typeof t)return void we("Unexpected message");if("number"!=typeof t.launcherId)return void we("Unexpected launcherId");CE2.Native.sessionStorage.setItem("ce-hud-launch-params",CE2.Native.JSON.stringify(t)),ke.stopListener(e.source,e.origin),Se()}catch(e){we(e)}}},Ie=function(){if(CE2.data&&CE2.data.hud)try{!function(){try{if(void 0===CE2.Native.localStorage)return!1;if(void 0===CE2.Native.localStorage.getItem)return!1;const e=Boolean(CE2.Native.sessionStorage&&"function"==typeof CE2.Native.sessionStorage.getItem&&CE2.Native.sessionStorage.getItem("ce-hud-launch-params"));return!(CE2.w.opener&&!_e()&&!e||!CE2.Native.localStorage.getItem("powerup")||(Se(),0))}catch(e){return we(e),!1}}(),CE2.w.addEventListener("hashchange",be),be(),ke.startListener()}catch(e){we(e)}};var Te=n(715);const Ne="ce_bot_detector";const Ae=new class{constructor(){CE2BH.defineProperty(this,"_onPopState",(()=>{this._incrementVisitIfNeeded()})),"undefined"==typeof window||(0,s.jI)("v11_disable_bot_detection")||window.__CE_SCRIPT_CHECK||(this.lastPathname=window.location.pathname,this._init())}_init(){this._loadState().detected||(this._incrementVisitIfNeeded(),this._pathCheckInterval=setInterval((()=>{this._incrementVisitIfNeeded()}),500),window.addEventListener("popstate",this._onPopState),this._mouseDownHandler=()=>{const e=this._loadState();e.detected||(e.clicks+=1,this._checkForBot(e),this._saveState(e))},window.addEventListener("mousedown",this._mouseDownHandler,!0))}_loadState(){try{const e=CE2.Native.localStorageWrapper.read(Ne),t={visits:0,clicks:0,firstVisitTime:Date.now(),detected:!1};if(!e)return t;const n=CE2.Native.JSON.parse(e);if(!n.detected&&n.firstVisitTime){const e=6048e5;if(Date.now()-n.firstVisitTime>e)return t}return n}catch(e){return console.error("Error loading bot detector state",e),{visits:0,clicks:0,firstVisitTime:Date.now(),detected:!1}}}_saveState(e){CE2.Native.localStorageWrapper.write(Ne,CE2.Native.JSON.stringify(e))}_incrementVisitIfNeeded(){const e=window.location.pathname;if(e===this.lastPathname)return;const t=this._loadState();t.detected||(this.lastPathname=e,t.visits+=1,this._checkForBot(t),this._saveState(t))}_checkForBot(e){const{visits:t,clicks:n}=e;t>0&&n/t>1e3&&this._markAsBot(e,"High click-to-visit ratio"),t>10&&0===n&&this._markAsBot(e,"Many visits without clicks")}_markAsBot(e,t){console.warn("Bot detected:",t),e.detected=!0,window.removeEventListener("mousedown",this._mouseDownHandler,!0),window.removeEventListener("popstate",this._onPopState,!0),clearInterval(this._pathCheckInterval),this._saveState(e)}isBot(){return!window.__CE_SCRIPT_CHECK&&this._loadState().detected}};function Re(){try{if(function(e){return!window.__CE_SCRIPT_CHECK&&(!!/bingpreview|prerender|jorgee|Mediapartners-Google|APIs-Google|phpcrawl|GoogleAdSenseInfeed|Google Page Speed Insights|Google-Ads-Overview|Google-Read-Aloud|Google-Structured-Data-Testing-Tool|Data Theorem|alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo|yandex|phantom|headless|BrandVerity|ruxitsynthetic|Chrome-Lighthouse/i.test(e)||void 0)}(navigator.userAgent))return"userAgent";if(Ae.isBot())return"clicksToVisitsRatio";if(!1===navigator.onLine)return"navigator.onLine";const t=((e=window).innerHeight>=16384||e.innerWidth>=16384)&&"viewport-inner";if(t)return t;if(!navigator.language||!navigator.languages||navigator.languages&&0===navigator.languages.length)return"language";if(navigator.webdriver)return"webdriver";if(window.jasmine)return"jasmine";const n=["__webdriver_evaluate","__selenium_evaluate","__webdriver_script_function","__webdriver_script_func","__webdriver_script_fn","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__driver_evaluate","__selenium_unwrapped","__fxdriver_unwrapped"],r=["webdriver","_phantom","__nightmare","_selenium","callPhantom","callSelenium","_Selenium_IDE_Recorder"];for(let e=0;e0;)e.pop().call();Ve=!0};if(Ve&&e(),(0,s.KT)(window,"load",e),CE2.d.addEventListener&&(0,s.KT)(CE2.d,"DOMContentLoaded",e),CE2.d.readyState){const t=xe;!function n(){t.test(CE2.d.readyState)?e():setTimeout(n,10)}()}},Ue="ce_successful_csp_check";class Me{load(){return this.loadPromise||(this.loadPromise=new Promise((e=>{if(CE2.benchmark.start("navigation|crazyegg|common|userdatamain|load-csp"),void 0===this.isSuccessful&&(this.isSuccessful=Me.get()),void 0!==this.isSuccessful)return CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-csp"),void e();const t=[CE2.data.page_states_tracking_url,CE2.data.assets_tracking_url].map((e=>e?new Promise((t=>{(0,f.get)(`${e}/healthcheck`,(e=>{e&&200===e.status&&e.responseText?(e=CE2.Native.JSON.parse(e.responseText.trim()),t("ok"===e.status)):t(!1)}))})):Promise.resolve(!0)));t.push(Me.getInlineWorkerPromise()),Promise.all(t).then((t=>{this.isSuccessful=-1===t.findIndex((e=>!1===e)),this.isSuccessful&&Me.store(),CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-csp"),e()}))}))),this.loadPromise}hasIssues(){return!this.isSuccessful}static getInlineWorkerPromise(){return new Promise((e=>{try{const t=(0,s.I3)("crazyegg-csp-check",(e=>{self.postMessage(e.data)}),!1);if(t){const n=setTimeout((()=>{t.terminate(),e(!1)}),500);t.onmessage=r=>{clearTimeout(n),t.terminate(),e("hello"===r.data)},t.postMessage("hello")}else e(!1)}catch(t){e(!1)}}))}static store(){CE2.Native.localStorageWrapper.write(Ue,+new Date+864e5)}static get(){let e=CE2.Native.localStorageWrapper.read(Ue);if(e){if(e=parseInt(e,10),e>+new Date)return!0;CE2.Native.localStorageWrapper.remove(Ue)}}}const He=new Me,ze=function(){const e="!$%&()*+,-.0123456789;<=>?@[]^_`{|}~",t={};let n;for(n=0;n<36;n++)t[e.charAt(n)]=n.toString(36);return t}(),Fe=function(e){return parseInt(e.replace(/./g,(e=>ze[e])),36)},Be=function(e){let t="";const n=/(![^:\/a-z])|([^:\/a-z]{2})|(:[^:\/a-z]{3})|(\/[^:\/a-z]{4})/gi,r=String.fromCharCode;let i;for(;null!=(i=n.exec(e));)i[1]||i[2]?t+=r(Fe(i[0])):i[3]?t+=r(Fe(i[3].substr(1))):i[4]&&(t+=r(Fe(i[4].substr(1))));return t},Ye=function(e,t,n){const r={};CE2.visitorTracker&&(r.visitor=CE2.visitorTracker.getId()),n&&(r.goals=n.map((e=>e.id))),t&&(r.session={id:t.id,full:t.isFull()});const i=new CE2.Tracker({version:CE2.VERSION,visitId:CE2.getVisitId(),censoredElements:CE2.getCensoredElements(e),site:e,session:t,goals:n});return(0,o.Yz)("[Tracker] Starting",r),i},je=function(e,t,n,r){const i={},a=(t||[]).filter((e=>(0,s._3)(e)));a.length&&(CE2.testID=a.map((e=>e.id)),CE2.testVersion=a.map((e=>e.v))),t&&t.length&&(i.snapshots=t.map((e=>({id:e.id,version:e.v})))),n&&(i.session={id:n.id,new:n.isNew(),full:n.isFull()}),r&&(i.urlChanged=r),(0,o.Yz)("[Tracker] Updating",i),e.update({session:n,snapshots:a,urlChanged:r})},We=function(){const e="v11slnt";function t(){S.i.set(e,+new Date)}function n(){const t=function(){const t=S.i.get(e);if(t)return parseInt(t,10)}();return!!t&&+new Date-t<6e5}return{slow:()=>{if((0,s.jI)("v11_record_slow_network"))return!1;try{return function(){if(navigator&&navigator.connection&&navigator.connection.downlink){const{downlink:e}=navigator.connection;e<.5&&t()}}(),function(){if(performance&&performance.getEntriesByType){const e=performance.getEntriesByType("resource");if(void 0===e||e.length<=0)return!1;let n,r;for(let t=0;t1e3&&t()}}}(),n()}catch(e){return(0,ue.A)(e),!1}}}};function Ge(e){if(""!==e&&!/^\s*#.*$/.test(e))return e.replace(/\s*#.*$/,"")}function Ke(e,t){return t.indexOf("-")>-1?function(e,t){if(-1===e.indexOf("."))return!1;const n=e.split("."),r=Ge(t);if(!r)return!1;const i=r.split("-");if(!i[0]||!i[1])return!1;const s=i[0].split("."),o=i[1].split(".");for(let e=0;e<4;e++){if(!s[e]||!o[e])return!1;if("*"===s[e]||"*"===o[e])continue;const t=parseInt(n[e],10);if(tparseInt(o[e],10))return!1}return!0}(e,t):t.indexOf(":")>-1?function(e,t){if(-1===e.indexOf(":"))return!1;const n=e.split(":"),r=Ge(t);if(!r)return!1;const i=r.split(":");for(let e=0;e{rt(e,t,n)}},st=function(e,t,n=!1){const r=n?"matched":"rejected";tt.push({id:e.id,result:r,message:t})},ot=function(e){return(t,n=!1)=>{st(e,t,n)}},at=function(e){let t,n;const{rules:r}=e;if(CE2.data.disable_recordings_mobile&&1!==CE2.clock.getDeviceType())return rt({disable_recordings_mobile:CE2.data.disable_recordings_mobile,device:CE2.clock.getDeviceType()},"disabled mobile",!1),!1;if(e.pageTargetingEnabled){if(1===Je)return!0;if(r&&r.length)for(t=0;n=r[t++];)if((0,ve.$)(n.u,CE2.w.location.href,n.o,null,null,it(n)))return!0;return!1}return rt({},"All pages",!0),!0};const ct=function(e,t,n){if(!e||!t||!n)throw new Error("Missing site/session/visitor");if(!e.sessionRecording)return(0,o.Yz)("[Sessions] Disabled"),{record:!1};if(!(e.recordingSettings&&e.recordingSettings.recordIframes)&&CE2.w.parent!==CE2.w){const e=(0,s.Ep)(),t=(0,s.R2)().substr(1);if(e&&e.indexOf(t)>-1)return(0,o.Yz)("[Sessions] Recordings prevented from iframe"),{record:!1}}const r=at(e.recordingSettings),i=e.recordingSettings&&function(e){const{blockedRules:t}=e;return et()||(0,ve.e)(t)}(e.recordingSettings),a=(new We).slow()?"slow network":(0,s.Qb)()?He.hasIssues()?"site has csp issue":void 0:"inline-workers not supported";if(t&&t.isFull())return a?(t.reset(a),(0,s.GO)(`[Sessions] Stopped: ${a}`),{record:!1,reset:!0}):i&&e.recordingSettings.endSessionOnBlockedUrl?(t.reset("page-blocked"),(0,s.GO)("[Sessions] Page blocked and marked to end"),{record:!1,reset:!0}):et()?(t.reset("recording-stopped"),(0,s.GO)("[Sessions] Recording Stopped"),{record:!1,reset:!0}):i?((0,s.GO)("[Sessions] Page blocked"),{record:!1}):((0,o.Yz)("[Sessions] Continued"),{record:!0});if((0,o.Yz)("[Sessions] Matching parameters",CE2.w.location.href),(0,o.Yz)("[Sessions] Matching target",nt),nt=[],!r)return(0,o.Yz)("[Sessions] No matches"),{record:!1};if((0,o.Yz)("[Sessions] Matched",{url:CE2.w.location.href}),i)return(0,o.Yz)("[Sessions] Page blocked"),{record:!1};if(a)return(0,o.Yz)(`[Sessions] Won't start: ${a}`),{record:!1};if(t.isSampled())return(0,o.Yz)("[Sessions] Sampling standby"),{record:!1};const c=new p(e);return c.validRatio()&&c.canRecord()?((0,o.Yz)("[Sessions] Sampling accepted, starting new"),{record:!0,ratio:c}):((0,o.Yz)("[Sessions] Sampling rejected"),{record:!1,sampled:!0})},lt=function(e,t){if(!e||!t)throw new Error("Missing site/session");if(!e.webAnalytics)return(0,o.Yz)("[WebAnalytics] Disabled"),{record:!1};if(t.hasWebAnalytics())return(0,o.Yz)("[WebAnalytics] Continued"),{record:!0};if(!e.web_analytics_ratio)return(0,o.Yz)("[WebAnalytics] Disabled"),{record:!1,sampled:!0};if(t.isWebAnalyticsSampled())return(0,o.Yz)("[WebAnalytics] Sampling standby"),{record:!1};const n=new g(e);return n.validRatio()&&n.canRecord()&&!t.isDeleted()?((0,o.Yz)("[WebAnalytics] Sampling accepted, starting new"),{record:!0,ratio:n}):((0,o.Yz)("[WebAnalytics] Sampling rejected"),{record:!1,sampled:!0})},dt=function(e,t,n,r,i,s){if(void 0===e.isBlocked&&(e.isBlocked=new qe(e.ip).blocked(s)),e.isBlocked)return st(e,"IP blocked"),!1;if(Oe())return st(e,"bot blocked"),!1;if(e.vid){const t=r.includes(e.vid)&&(!CE2.Native.Array.isArray(e.d)||e.d.indexOf(CE2.clock.getDeviceType())>=0);return st(e,`variantid=${r.join(",")} allowed=${e.vid}`,t),t}return i&&Object.values(i).length&&e.o&&/go/.test(e.o)?(0,ve.$)(e.u,i,e.o,e.d,CE2.n.userAgent,ot(e)):n&&e.o&&/n/.test(e.o)?(0,ve.$)(e.u,n,e.o,e.d,CE2.n.userAgent,ot(e)):(0,ve.$)(e.u,t,e.o,e.d,CE2.n.userAgent,ot(e))},ut="cebsp_";const ht=new class{constructor(){this.numPages=0}load(){this.numPages=(0,s.Ri)(ut),this.numPages=this.numPages?parseInt(this.numPages,10):0}pageChanged(){this.numPages++,(0,s.o)(ut,this.numPages)}getPages(){return this.numPages}};class pt{constructor(){CE2BH.defineProperty(this,"CURRENT_RETURNING_WINDOW_MSEC",18e5),CE2BH.defineProperty(this,"RETURNING_WINDOW_MSEC",2592e6),CE2BH.defineProperty(this,"visitorV6Key","_cer.v"),CE2BH.defineProperty(this,"visitorKey","v"),CE2BH.defineProperty(this,"visitorIdentificationKey","vi"),CE2BH.defineProperty(this,"visitorIsReturningKey","vir"),CE2BH.defineProperty(this,"visitorLastVisitAtKey","lva"),CE2BH.defineProperty(this,"visitorVisitsKeyLegacy","vv"),CE2BH.defineProperty(this,"visitorVisitsKey","vpv"),CE2BH.defineProperty(this,"visitorDailyVisitAt","vdva"),CE2BH.defineProperty(this,"browserSessionCookie","cebs"),CE2BH.defineProperty(this,"firstVisitDataKey","ce_fvd"),this.id=null,this.identification=void 0,this.storedId=null,this.numVisits=null,this.visitorV6Parts=null,this.firstVisitData=null,(0,s.Ri)(this.visitorV6Key)&&(this.visitorV6Parts=(0,s.Ri)(this.visitorV6Key).split("."))}load(){this.loadVisitorId(),this.loadVisitorIdentification(),this.loadVisitorVisits(),this.loadFirstVisitData()}identify(e){e&&(CE2.IDENTIFIER=this.identification=e,S.i.set(this.visitorIdentificationKey,this.identification))}clearIdentity(){CE2.IDENTIFIER=null,S.i.del(this.visitorIdentificationKey)}del(e){S.i.del(e)}reset(){this.del(this.visitorKey),this.del(this.visitorVisitsKey)}loadVisitorId(){if(this.storedId=S.i.get(this.visitorKey),window.CE_VISITOR_ID)this.id=window.CE_VISITOR_ID,this.storedId&&window.CE_VISITOR_ID!==this.storedId&&this.reset();else if(this.storedId)this.id=this.storedId;else if(this.visitorV6Parts){const[e]=this.visitorV6Parts;this.id=e,S.i.set(this.visitorKey,e)}else this.id=(0,pe.M4)(),S.i.set(this.visitorKey,this.id)}loadVisitorIdentification(){const e=S.i.get(this.visitorIdentificationKey);CE2.IDENTIFIER?this.identification=CE2.IDENTIFIER:e&&(this.identification=e,CE2.IDENTIFIER=this.identification)}loadVisitorVisits(){const e=!(0,s.Ri)(this.browserSessionCookie);e&&(this.isReturning(),CE2.Native.localStorage.removeItem(this.firstVisitDataKey)),(0,s.o)(this.browserSessionCookie,"1"),S.i.get(this.visitorVisitsKey)?this.numVisits=parseInt(S.i.get(this.visitorVisitsKey),10):S.i.get(this.visitorVisitsKeyLegacy)?this.numVisits=1:this.visitorV6Parts&&this.visitorV6Parts[2]&&(this.numVisits=parseInt(this.visitorV6Parts[2],36)),null===this.numVisits?(this.numVisits=0,S.i.set(this.visitorVisitsKey,this.numVisits)):e&&(this.numVisits+=1,S.i.set(this.visitorVisitsKey,this.numVisits))}loadFirstVisitData(){let e=CE2.Native.localStorageWrapper.read(this.firstVisitDataKey);if(e)this.firstVisitData=CE2.Native.JSON.parse(e);else{const{userData:t}=CE2.state;e={landingUrl:CE2.w.location.href,referrer:CE2.d.referrer,time:Date.now(),utm:(0,s.ne)(),dailyVisitTime:Date.now(),userData:Object.values(t).length>0?[t[1],t[2],t[3],t[4],t[5]]:[]},this.firstVisitData=e,CE2.Native.localStorageWrapper.write(this.firstVisitDataKey,CE2.Native.JSON.stringify(e))}}isReturning(){return this.returningState().state===pt.RETURNING_STATE.RETURNING}isNewDailyVisitor(){const e=S.i.get(this.visitorDailyVisitAt),t=CE2.clock.getDate();return(!e||t>e)&&(t.setUTCHours(23,59,59,999),S.i.set(this.visitorDailyVisitAt,+t),!0)}returningState(){if(void 0!==this.isReturningCache)return this.isReturningCache;let e=S.i.get(this.visitorIsReturningKey),t=S.i.get(this.visitorLastVisitAtKey),n=!1;e||(e=pt.RETURNING_STATE.NEW,t=Date.now(),CE2.Native.localStorage.removeItem(this.firstVisitDataKey));const r=Date.now()-t;return r>this.CURRENT_RETURNING_WINDOW_MSEC&&(e=pt.RETURNING_STATE.RETURNING,CE2.Native.localStorage.removeItem(this.firstVisitDataKey)),r>this.RETURNING_WINDOW_MSEC&&(e=pt.RETURNING_STATE.NEW,n=!0,CE2.Native.localStorage.removeItem(this.firstVisitDataKey)),(0,o.Yz)(`[Visitor] IsReturning id=${this.id} state=${e} lastVisit=${t} reset=${n}`),t=Date.now(),S.i.set(this.visitorIsReturningKey,e),S.i.set(this.visitorLastVisitAtKey,t),this.isReturningCache={state:e,reset:n},this.isReturningCache}setIdentityFromUrl(){const e=CE2.site?.autoIdQueryParam||"CE_ID",t=new CE2.Native.URL(CE2.w.location.href).searchParams.get(e);"string"==typeof t&&0!==t.trim().length&&this.identify(t)}}CE2BH.defineProperty(pt,"RETURNING_STATE",{NEW:"new",RETURNING:"returning"});const gt=new pt,ft=function(){return{isReturning:()=>gt.isReturning(),returningState:()=>gt.returningState(),getId:()=>gt.id,getIdentification:()=>gt.identification,getStoredId:()=>gt.storedId,getNumVisits:()=>gt.numVisits,getFirstVisitData:()=>gt.firstVisitData,setIdentityFromUrl:()=>gt.setIdentityFromUrl(),isNewDailyVisitor:()=>gt.isNewDailyVisitor(),load(){gt.load()},identify:e=>gt.identify(e),clearIdentity(){gt.clearIdentity()}}};var mt=n(401);const Et="_ce.clock_data",vt=",",Ct=/^[123]$/;const yt=new class{getData(){return(0,s.Ri)(Et)}load(){if(this.loadPromise)return this.loadPromise;const e=this;return this.loadPromise=new Promise(((t,n)=>{CE2.benchmark.start("navigation|crazyegg|common|userdatamain|load-clock");const r=(0,s.Ri)(Et);if(r){const[n,i,s,o,a,c]=r.split(vt);if(!o||o===(0,mt.F)(CE2.n.userAgent))return n&&i&&(e.diff=parseInt(n,10),e.ip=i,e.device=s&&Ct.test(s)?parseInt(s,10):void 0,e.userAgentMd5=o,e.browser=a,e.country=c,e.valid=!0),CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-clock"),CE2.debug("[Clock] Loaded from cookie",r),void t();CE2.debug("[Clock] User agent changed, reloading")}const i=r=>{const[i,a,c,l,d]=r.responseText.split(vt),u=parseInt(i,10);if(u>0){const n=+new Date-u;e.diff=n,e.ip=a,e.device=c&&Ct.test(c)?parseInt(c,10):void 0,e.browser=l,e.country=d,e.userAgentMd5=(0,mt.F)(CE2.n.userAgent),e.valid=!0;const r=[n,a,e.device,e.userAgentMd5,e.browser,e.country].join(vt);(0,s.o)(Et,r,{expiresInDays:1}),(0,o.Yz)("[Clock] Fetch from api",r),CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-clock"),t()}else(0,o.Yz)("[Clock] Error, stopping"),n()};let a,c,l;if(CE2.site?.id&&!CE2.w.CE_SITE_ID){c=CE2.data.uid,l=CE2.site.id;const e=[(0,pe.M4)(0,1),CE2.visitorTracker.getId(),36,CE2.VERSION,+new Date,CE2.tabId],t=CE2.visitorTracker.getFirstVisitData();a=[e,[CE2.getVisitId(),t.landingUrl,t.referrer,(0,s.ne)(t.landingUrl),CE2.w.CE_URL_FINGERPRINT(),CE2.visitorTracker.isReturning()?1:0,CE2.visitorTracker.getNumVisits()]]}(0,s.ou)()?i({responseText:[+new Date,"99.99.99.99",1,"chrome","US"].join(vt)}):(0,f.sendEvents)({userId:c,siteId:l,context:"Clock",t:+new Date,endpoint:CE2.data.clock_url,callback:i},a?[a]:[])})),this.loadPromise}getIP(){return this.ip}getDiff(){return this.diff}getBrowser(){return this.browser}getCountry(){return this.country}getDate(){if(this.valid)return new Date(+new Date-this.diff)}getDateUnix(){const e=this.getDate();if(e)return Math.floor(e/1e3)}getDeviceType(){return this.device?this.device:((0,o.Yz)("[Clock] Clock didn't know device. Using deviceType() instead."),function(e){const t=e.toLowerCase();let n,r,i=0;if(n=e.indexOf("("),-1==n)return 1;if(n++,-1!=(r=e.indexOf("Android",n))){if(r+=8,e.length>r&&(i=e.charAt(r)))switch(i){case"2":if(-1!=e.indexOf("BNTV",r))return 3;if(-1!=t.indexOf("nook",r))return 3;if(-1!=e.indexOf("Kindle",r))return 3;if(-1!=e.indexOf("Touchpad",r))return 3;break;case"3":return 3;case"4":if(-1!=e.indexOf("Silk",r))return 3}return-1!=t.indexOf("tablet",r)?3:-1!=e.indexOf("Mobi",r)?2:3}if(-1!=(r=e.indexOf("iP",n)))switch(i=e.charAt(r+2),i){case"a":return 3;case"h":case"o":return 2}return-1!=(r=e.indexOf("BlackBerry",n))?-1!=e.indexOf("Tablet",r+10)?3:2:-1!=e.indexOf("Windows Phone",n)||-1!=e.indexOf("BB10",n)||"M"!=e.charAt(0)&&-1!=e.indexOf("Opera Mini",n)?2:1}(CE2.n.userAgent))}},wt=["editor","ab_tests"];function _t(e){if(!wt.includes(e))throw new Error(`unsupported feature name: ${e}`);const t=CE2.w.CE_FEATURES?.[e];return!t||!1!==t.enabled}let St,bt;CE2.clock=yt,CE2.csp=He,CE2.eventTypes={VISIT:1,CLICK:2,SCROLL:3,MOUSE_MOVEMENT:4,PAGE_STATE:5,RESIZE:6,SESSION_SCROLL:7,ERROR:8,PAGE_LOAD:9,INACTIVE:10,TYPING:11,CUSTOM:12,PAGE_VISIBILITY:13,DOM_CONTENT_LOADED:14,FIRST_CONTENTFUL_PAINT:15,DOM_INTERACTIVE:16,IDENTIFY:17,CUSTOM_USER_DATA:18,TAG:19,SESSION_RATIO:20,VALID_SESSION:21,END_SESSION:22,ECOMMERCE:23,FORM:24,CUSTOM_PERFORMANCE:25,GOAL_CONVERSION:26,ASSETS:27,SURVEY_RESPONSE:28,EXCESSIVE_SCROLL:29,LONG_TASK:30,FIRST_INPUT_DELAY:31,CUMULATIVE_LAYOUT_SHIFT:32,LARGEST_PAINT:33,QUICKBACK:34,SESSION_WORTH:35,DAILY_VISIT:36,DAILY_VISIT_COUNTER:37,ADDON_CLICK:38,PAGE_VIEW:39,AB_TEST_VIEW:40,AB_TEST_CONVERSION:41,PAGE_UNLOAD:42,SURVEY_COMPLETE:43},CE2.clickTypes={RAGE:"r",AUTH_BUTTON:"a",NOT_CLICKABLE:"d"},CE2.getVisitId=()=>CE2.visitId,CE2.getSessionId=()=>CE2.getSessionId();const kt=function(){(0,o.Yz)("[Loading] Stopping Monitor"),clearInterval(bt),bt=null,St=null};const It=function(){CE2.bh&&(CE2.bh.parentElement.removeChild(CE2.bh),CE2.bh=null)},Tt=function(e=!0){return Promise.all([CE2.clock.load(),e?CE2.csp.load():Promise.resolve()])},Nt=function(e){try{(0,o.Yz)(`[Loading] ${e}`),"function"==typeof CE_NOT_TRACKING&&window.CE_NOT_TRACKING(e)}catch(e){(0,o.Yz)("[Loading] Not tracking callback failure",e)}CE2.loaded=!0};const At=function(e){if(CE2.benchmark.start("navigation|crazyegg|common|userdatamain|load-samplingdata"),CE2.data&&CE2.data.samplingData)return e();const t=CE2.getNativeXMLHttpRequest();t.onreadystatechange=function(){if(4==t.readyState)try{200==t.status&&t.responseText&&(CE2.data.samplingData=CE2.Native.JSON.parse(t.responseText),CE2.benchmark.stop("navigation|crazyegg|common|userdatamain|load-samplingdata"),e())}catch(e){(0,o.Yz)("[Loading] Error loading sampling data",e.message)}},t.onerror=function(e){(0,o.Yz)("[Loading] Error loading sampling data",e.message)},(0,o.Yz)("[Loading] Sampling user data",CE2.data.sampling_data_url),t.open("GET",`${CE2.data.sampling_data_url}?t=${CE2.getUserDataTime()}`,!0),t.send()},Rt=async function(){CE2.benchmark.start("navigation|crazyegg|common|usermain");try{CE2.VERSION=CE2.data.version;let e=`[Loading] Starting version=${CE2.VERSION}`;window.parent!==window&&(e+=" from within an iframe"),(0,o.Yz)(e);let t,{snapshots:n,sites:r,goals:i}=CE2.data,a=CE2.data.global_ip_block_list,c=!0;"string"==typeof n&&(n=CE2.Native.JSON.parse(Be(n))),"string"==typeof r&&(r=CE2.Native.JSON.parse(Be(r))),"string"==typeof i&&(i=CE2.Native.JSON.parse(Be(i))),a=Be(a),r&&CE2.w.CE_SITE_ID?(CE2.sites=r,CE2.site=t=r.find((e=>e.id===CE2.w.CE_SITE_ID))):r&&(CE2.sites=r,CE2.site=t=(0,s.Wb)(r));const l=await new Promise((e=>{const t=CE2.w.CE_MAX_RETRIES||30;let n=0;const r=()=>{n++;try{CE2.Native.localStorage.setItem("ce_localstorage_test",""),CE2.Native.localStorage.removeItem("ce_localstorage_test")}catch(i){return CE2.debug(`[Checks] localStorage not available, trying again... attempt ${n}`),n>=t?void e("localStorage not available"):void setTimeout(r,1e3)}if(CE2.debug("[Checks] localStorage available"),!(0,s.uh)("_ce.cch"))return CE2.debug(`[Checks] cookies not available, trying again... attempt ${n}`),n>=t?void e("cookies not available"):void setTimeout(r,1e3);CE2.debug("[Checks] cookies available"),e(!0)};r()}));if(!0!==l)return void Nt(`Not tracking: can't run - ${l}`);if(CE2.hudMain&&CE2.hudMain(),CE2.bot)return void Nt(`Not tracking: bot detected - ${CE2.bot}`);if((0,s.LB)(CE2.w,CE2.d,CE2.n,CE2.ie))return void Nt("Not tracking: doNotTrack detected.");if((0,s.jI)("disable-tracking"))return void Nt("Not tracking: disabled.");if(It(),t){(0,s.ch)(CE2.w,"pageshow",(e=>{e.persisted&&(delete CE2.monitorPagePath,delete CE2.monitorPageUrl)})),!CE2.data.sites_sampling&&CE2.data.samplingData&&CE2.data.samplingData.sites_sampling&&(CE2.data.sites_sampling=CE2.Native.JSON.parse(Be(CE2.data.samplingData.sites_sampling)));const e=new Map((n||[]).map((e=>[e.id,e])));if(CE2.testID=CE2.testVersion=null,CE2.tabId=(0,pe.vU)(),CE2.visitorTracker=ft(),CE2.visitorTracker.load(),CE2.visitorTracker.setIdentityFromUrl(),ht.load(),await Tt(!!t.sessionRecording),CE2.benchmark.stop("navigation|crazyegg|common|usermain"),te(E,{site:t}),new qe(a).blocked(CE2.clock.getIP()))return(0,o.Yz)("[Loading] IP Blocked",CE2.clock.getIP()),void(CE2.ipBlocked=!0);CE2.ipBlocked=!1,_t("ab_tests")&&("function"==typeof CE2.initFlowTracking?CE2.flowsMatching=await CE2.initFlowTracking():(0,h.bU)()&&(0,h.UE)()),St=async function(){try{if(Ae.isBot())return CE2.tracker&&(CE2.tracker.addTag("bot",{virtual:!0}),CE2.tracker.session?.reset("bot detected"),CE2.tracker.cleanup(),delete CE2.tracker),kt(),void Nt("Not tracking: bot detected - 'clicks to visits ratio'");CE2.benchmark.start("navigation|crazyegg|common|monitor");const r=CE2.w.location.href,a=CE2.w.location.pathname,l=CE2.flowsMatching&&CE2.flowsMatching.map((e=>e.flow?.trackByVariant&&e.variant.variantId))||[],d="string"==typeof CE_SNAPSHOT_NAME&&CE_SNAPSHOT_NAME.trim(),u=function(e){const t={};if(e&&e.length){const{gaData:n,google_optimize:r}=CE2.w;e.forEach((e=>{if(e&&"go"==e.o){const i=(e.u||"").split(".");if(i[1]){const e=n?.[i[0]]?.experiments?.[i[1]]||r?.get?.(i[1]);e&&(t[i[1]]=e)}}}))}return t}(n),p=CE2.clock.getDateUnix();let g=!1,f=!1,m=!1,E=CE2.getSession(CE2.site?.id);if(!E)return void kt();E!==CE2.monitorSession&&((0,o.Yz)("[Sessions] Set",{oldSessionId:CE2.monitorSession?.id,sessionId:E.id}),m=!0);let v=(CE2.monitorSnapshotIds?CE2.monitorSnapshotIds.split(","):[]).map((t=>e.get(parseInt(t,10))));const y=v.filter((e=>e&&e.e&&p>=e.e)).sort().map((e=>e.id)).join(",");if(CE2.monitorPageUrl==r&&CE2.monitorVariantIds==CE2.Native.JSON.stringify(l)&&CE2.monitorGaData==CE2.Native.JSON.stringify(u)&&CE2.monitorCESnapshotName==d&&CE2.monitorExpiredSnapshotIds==y&&!CE2.recordingSettingChanged&&!m)return;if((0,s.Rc)(),CE2.monitorPagePath&&CE2.monitorPagePath===a||(g=!0),CE2.monitorPageUrl&&CE2.monitorPageUrl===r||(f=!0),g&&((0,Q.$K)(),ht.pageChanged(),te(C,{site:t,session:E}),_t("editor")&&CE2.applyVersion?.()),!f||c||CE2.flowPatchApplied||("function"==typeof CE2.initFlowTracking?CE2.flowsMatching=await CE2.initFlowTracking():(0,h.bU)()&&(0,h.UE)()),CE2.monitorPagePath=a,CE2.monitorPageUrl=r,CE2.monitorVariantIds=CE2.Native.JSON.stringify(l),CE2.monitorGaData=CE2.Native.JSON.stringify(u),CE2.monitorCESnapshotName=d,CE2.monitorExpiredSnapshotIds=y,CE2.logHistoryEnabled=!0,g&&E&&E.isExpired()&&(E.reset("expired"),E=CE2.getSession(CE2.site?.id),m=!0),g||m){let e=lt(t,E);e.reset&&e.retry&&(E=CE2.getSession(CE2.site?.id),e=lt(t,E),m=!0),e.reset&&(E=CE2.getSession(CE2.site?.id),m=!0),!e.record&&e.sampled&&(E.setWebAnalyticsSampled(),m=!0),e.record&&e.ratio&&(E.startWebAnalytics(e.ratio.ratio),m=!0)}if(g||CE2.recordingSettingChanged||m){let e=ct(t,E,CE2.visitorTracker);e.reset&&e.retry&&(E=CE2.getSession(CE2.site?.id),e=ct(t,E,CE2.visitorTracker),m=!0),e.reset&&(E=CE2.getSession(CE2.site?.id),m=!0),!e.record&&e.sampled&&(E.setSampled(),m=!0),e.record&&e.ratio&&(E.startRecording(e.ratio.ratio,e.ratio.getAppliedStrategy()),m=!0)}CE2.recordingSettingChanged=!1,n&&n.length?v=function(e,t,n,r,i){(0,o.Yz)("[Snapshots] Matching parameters",{pageUrl:t,ceSnapshotName:n,variantIds:r,gaData:i});const s=[],a=new Set(CE2.scriptCheckMatchingSnapshots),c=CE2.clock.getIP();if(!e||!e.length)return;const l=CE2.clock.getDateUnix();let d=null;for(let o=0;ol)?(st(u,"pending"),CE2.p[u.id]=u):dt(u,t,n,r,i,c)&&(null===d&&(d=u.v),u.v===d?s.push(u):st(u,`incompatible format version (snapshot: ${u.v}, target:${d})`),a.add(u.id))}return a.size>0&&(CE2.scriptCheckMatchingSnapshots=CE2.Native.Array.from(a)),(0,o.Yz)("[Snapshots] Matching targets",tt),tt=[],s}(n,r,d,l,u):(0,o.Yz)("[Snapshots] Disabled"),v.length>0?((0,o.Yz)("[Snapshots] Matched",v),CE2.scriptCheckSelectedSnapshot=v[0].id,CE2.scriptCheckSelectedSnapshots=v.map((e=>e.id))):n&&n.length&&(0,o.Yz)("[Snapshots] No matches");const w=function(e,t){return e&&t?e.filter((e=>e.site_id===t.id)):((0,o.Yz)("[Goals] Disabled"),[])}(i,t)||[];w.length&&(0,o.Yz)("[Goals] Matched",w),CE2.tracker||(CE2.tracker=await function(e,t,n){return new Promise((r=>{t.isFull()?CE2.loadSessionTrackingScript((()=>{r(Ye(e,t,n))})):n.length>0?CE2.loadTrackingScript((()=>{r(Ye(e,t,n))})):r(Ye(e,t,n))}))}(t,E,w)),CE2.state&&(CE2.state.logHistoryEnabled=!1,CE2.state.logHistory=[]),c=!1;const _=v.map((e=>e.id)).sort().join(","),S=_!==CE2.monitorSnapshotIds,b=CE2.state?.survey===CE2.monitorSurvey;if(!(g||m||S||b))return;S&&0===v.length&&CE2.tracker.snapshots.length>0&&CE2.tracker.stopTracker("No snapshots"),CE2.monitorSession=E,CE2.monitorSnapshotIds=_,CE2.monitorSurvey=CE2.state?.survey,await function(e,t,n,r){return new Promise((i=>{n.isFull()?CE2.loadSessionTrackingScript((()=>{i(je(e,t,n,r))})):t.length>0?CE2.loadTrackingScript((()=>{i(je(e,t,n,r))})):i(je(e,t,n,r))}))}(CE2.tracker,v,E,g),E.isNew()&&E.setIsNew(!1),CE2.benchmark.stop("navigation|crazyegg|common|monitor"),CE2.benchmark.stop("navigation|crazyegg|common"),CE2.benchmark.stop("navigation|crazyegg"),CE2.benchmark.stop("navigation"),CE2.loaded=!0,CE2.benchmark.autoReport()&&setTimeout((()=>CE2.benchmark.report()),5e3)}catch(e){(0,o.Yz)(e)}},await async function(){(0,o.Yz)("[Loading] Starting Monitor"),St&&!Oe()&&(await St(),bt=setInterval(St,1e3))}()}else Nt("No site match."),CE2.loaded=!0}catch(e){(0,o.Yz)(e)}finally{It()}},Dt=async function(){CE2.visitorTracker=ft(),CE2.visitorTracker.load(),ht.load(),It(),CE2.site={id:1,name:(0,s.R2)()},await Tt(),CE2.loadSessionTrackingScript((()=>{CE2.tracker=function(){(0,o.Yz)("[Tracker] Starting Test Mode");const e=CE2.getSession(CE2.site?.id);e.startRecording(1,"uniform");const t=new CE2.Tracker({version:CE2.VERSION,visitId:CE2.getVisitId(),session:e,censoredElements:[]});return t.update({snapshots:[{id:"testsnapshot"}]}),t.testMode=!0,t}(),te(v,{site:CE2.site,session:CE2.tracker.session})}))},Ot=async function(){CE2.benchmark.start("navigation|crazyegg|common|userdatamain"),CE2.visitId=(0,pe.M4)(0,1),CE2.bot=Oe(),(0,s.ou)()?Dt():CE2.commonScriptForceLoaded?(Ie(),await Tt(),te(E)):CE2.data?At((()=>{CE2.benchmark.stop("navigation|crazyegg|common|userdatamain"),Rt()})):CE2.data||"string"!=typeof CE_USER_DATA_URL?(0,o.Yz)("No CE2.data nor CE_USER_DATA_URL found, stopping."):((0,o.Yz)(`No CE2.data, loading user data for CE_USER_DATA_URL=${CE_USER_DATA_URL}.`),(0,f.get)(CE_USER_DATA_URL,(e=>{CE2.data=CE2.Native.JSON.parse(e.responseText),CE2.userDataToJs&&CE2.userDataToJs(CE2.data),At((()=>{CE2.benchmark.stop("navigation|crazyegg|common|userdatamain"),Rt()}))})))},xt=function(e,t=null){e&&(t&&(e.fingerprint=t),CE2.tracker&&CE2.tracker.notifyError(e))};class Pt{constructor(e){this.callback=e||(()=>{}),this.onMouseMove=this.mouseMove.bind(this),this.onScroll=this.scroll.bind(this),this.exited=!1;const t=CE2.clock.getDeviceType();t===ge.p.typeMap.desktop?(0,s.ch)(CE2.w,"mousemove",this.onMouseMove):t===ge.p.typeMap.phone&&(this.prevScroll=CE2.w.scrollY||CE2.d.documentElement.scrollTop||CE2.d.body.scrollTop,(0,s.ch)(CE2.w,"scroll",this.onScroll))}mouseMove(e){e.clientY<=20&&this.onExit(),this.hoveredElement!==e.target&&clearTimeout(this.hoverTimout),this.hoveredElement=e.target;const t=e.target.closest("a");if(t&&t.href){const e=new URL(t.href,CE2.d.baseURI),n=(0,s.R2)().substr(1);new RegExp(`${n}$`,"i").test(e.hostname)||(this.hoverTimout=setTimeout((()=>{this.onExit()}),100))}}scroll(){const e=CE2.w.scrollY||CE2.d.documentElement.scrollTop||CE2.d.body.scrollTop;this.prevScroll-e>100&&this.onExit(),this.prevScroll=e}onExit(){this.destroy(),this.exited||(this.exited=!0,this.callback())}destroy(){(0,s.pQ)(CE2.w,"mousemove",this.onMouseMove),(0,s.pQ)(CE2.w,"scroll",this.onScroll),clearTimeout(this.hoverTimout)}}function Vt(e){if("function"==typeof e)try{e()}catch(e){(0,o.Yz)("CE_API error:"),(0,ue.A)(e)}}function $t(e){let t;for(CE2.Native.Array.isArray(e)||(e=[]),e.push=function(e){Vt(e)};t=e.shift();)Vt(t);return e}const Lt="v11.s",Ut="v11.vs",Mt="v11.fs",Ht="v11.sla",zt="v11.send",Ft="v11.ss",Bt="v11.ws",Yt="v11.wss",jt="v11.wr",Wt="v11.cs",Gt="v11.fsvd",Kt="v11nv",qt="v11r",Jt="v11e";class Xt{constructor({siteId:e,id:t,visitorId:n,isNew:r,full:i,webAnalytics:o,webAnalyticsRatio:a,ratio:c,strategy:l}){if(!e||!t)throw new Error("Invalid params");if(this.id=t,this.siteId=e,this.visitorId=n,this.new=r||!1,this.full=i||!1,this.webAnalytics=o||!1,this.webAnalyticsRatio=a,this.ratio=c,this.strategy=l,r)this.firstVisitData=function(){let e=CE2.w.CE_URL_FINGERPRINT(),t=CE2.w.CE_REFERER||CE2.d.referrer;return e&&(e=e.substr(0,200)),t&&(t=t.substr(0,200)),{url:e,ref:t,utm:(0,s.ne)()}}();else{const e=S.i.get(Gt);this.firstVisitData=e?JSON.parse(atob(decodeURIComponent(e))):{}}}static instance(e){if(!e)throw new Error("Missing required site id");const t=parseInt(Xt.currentSiteId(),10)||e;if(t&&t!==e)return Xt.reset("site-changed"),Xt.instance(e);if(this.session&&this.session.visitorId!==CE2.visitorTracker.getId())return this.session.reset("visitor-changed"),Xt.instance(e);if(this.session&&Number.isNaN(this.session.getLastActivity()))return Xt.reset("last-activity-invalid"),Xt.instance(e);if(this.session)return this.session;const n=!Xt.currentSessionId(),r=Xt.currentSessionId()||(0,s.Jl)(),i=Xt.currentVisitorId()||CE2.visitorTracker.getId(),a=!!Xt.isFull(),c=!!Xt.hasWebAnalytics(),l=Xt.getWebAnalyticsRatio(),d=Xt.getRatio(),u=Xt.getStrategy();if(this.session=new Xt({siteId:t,id:r,visitorId:i,isNew:n,full:a,webAnalytics:c,webAnalyticsRatio:l,ratio:d,strategy:u}),this.session.store(),Xt.currentSessionId())return n&&this.session.alive(),Xt.instance(e);(0,o.Yz)("[Sessions] Failed to store session cookies")}static reset(e){S.i.del(Lt),S.i.del(Ut),S.i.del(Ht),S.i.del(zt),S.i.del(Ft),S.i.del(Kt),S.i.del(Mt),S.i.del(Bt),S.i.del(Yt),S.i.del(jt),S.i.del(Wt),S.i.del(qt),S.i.del(Jt),S.i.del(Gt),delete this.session,(0,o.Yz)("[Sessions] Resetting",{reason:e})}static currentSiteId(){return S.i.get(Wt)}static currentSessionId(){return S.i.get(Lt)}static currentVisitorId(){return S.i.get(Ut)}static isFull(){return S.i.get(Mt)}static hasWebAnalytics(){return S.i.get(Bt)}static getWebAnalyticsRatio(){const e=S.i.get(jt);return e&&parseInt(e,10)}static getRatio(){const e=S.i.get(qt);return e&&parseInt(e.split(",")[0],10)}static getStrategy(){const e=S.i.get(qt);return e&&e.split(",")[1]}static getLastActivity(){return parseInt(S.i.get(Ht),10)}get(e){return S.i.get(e)}set(e,t){return S.i.set(e,t)}del(e){return S.i.del(e)}store(){this.set(Wt,this.siteId),this.set(Lt,this.id),this.set(Ut,this.visitorId),this.full&&this.set(Mt,1),this.webAnalytics&&this.set(Bt,1),this.set(Gt,btoa(CE2.Native.JSON.stringify(this.firstVisitData))),this.ratio&&this.set(qt,[this.ratio,this.strategy].join(",")),this.webAnalyticsRatio&&this.set(jt,this.webAnalyticsRatio)}reset(e){Xt.reset(e),this.id=null}alive(){this.isInactive()||this.set(Ht,+new Date)}isExpired(){return this.isDeleted()?"isDeleted":this.isEnded()?"isEnded":!!this.isInactive()&&"isInactive"}isInactive(){const e=this.getLastActivity();if(this.id&&e){if(+new Date-e>18e5)return!0}return!1}getLastActivity(){return Xt.getLastActivity()}isEnded(){const e=parseInt(this.get(zt),10);if(!Number.isNaN(Number(e)))return!!(this.id&&e&&+new Date-e>3e5)||(this.del(zt),!1)}isDeleted(){return!this.get(Lt)}isNew(){return this.new}setIsNew(e){this.new=e}isFull(){return!!this.full}hasWebAnalytics(){return!!this.webAnalytics}startWebAnalytics(e){this.webAnalytics=!0,this.webAnalyticsRatio=e,this.store()}isSampled(){return!!this.get(Ft)}setSampled(){this.set(Ft,+new Date),this.store()}isWebAnalyticsSampled(){return!!this.get(Yt)}setWebAnalyticsSampled(){this.set(Yt,+new Date),this.store()}getWebAnalyticsRatio(){return this.webAnalyticsRatio}isEngaged(){return this.get(Jt)}setAsEngaged(){return this.set(Jt,1)}getRatio(){return this.ratio}getStrategy(){return this.strategy}getFirstVisitData(){return this.firstVisitData}startRecording(e,t){this.new=!0,this.full=!0,this.ratio=e,this.strategy=t,this.store()}numberVisits(){return parseInt(this.get(Kt),10)||0}setNumberVisits(e){return this.set(Kt,e)}end(e=!1){const t=parseInt(this.get(zt),10);!t&&e?this.set(zt,1):t||this.set(zt,+new Date)}}function Qt(e){return Xt.instance(e)}function Zt(){return Xt.reset()}function en(){return Xt.currentSessionId()}var tn=n(3487),nn=n(1807),rn=n(2080);function sn(e){CE2.tracker.addToCart(e)}function on(){CE2.tracker.startCheckout()}function an(e){CE2.tracker.checkoutCompleted(e)}var cn=n(9329),ln=n(1789);function dn(){const e=S.i.get("swk");if(e){const[t]=e.split("|");return parseFloat(t)||0}return 0}const un=(e,t)=>(S.i.set("swk",[e,t].join("|")),e);var hn=n(9910);class pn extends hn.A{constructor(e){super(e),CE2BH.defineProperty(this,"DIFF_INTERVAL",750),CE2BH.defineProperty(this,"SAMPLE_INTERVAL",100);const{visitId:t,version:n,censoredElements:r,site:i,session:s,goals:a}=e;this.eventHandlers={},this.commonEventHandlers={},this.censoredElements=r,this.hideIframes=i&&i.recordingSettings&&i.recordingSettings.hideIframes,this.version=n,this.clickCaptors=CE2.state.clickCaptors.concat([...CE2.d.body.getElementsByClassName("-ce-capture")]),this.site=i||{},this.session=s,this.sessionId=s.id,this.goals=a||[],this.snapshots=[],this.snapshotIds=[],this.blocked=!1,this.sampleCallbacks=[],this.diffCallbacks=[],this.isVisible=!0,this.setVisitorIDs(),this.setVisitIDs(t),this.cookies={lastSession:"v11ls"},this.site.recordingSettings&&(0,ve.e)(this.site.recordingSettings.blockedRules)&&((0,o.Yz)("[Tracker] Session page blocked"),this.blocked=!0),this.isDocumentHiddenOnce=document.hidden,this.setupCommonEventHandlers(),this.setupVisibilityChangeHandlers(),this.setupGoalEventHandlers(),this.setupEngagementEventHandlers(),this.processBuffer({scheduleTimeout:!0}),CE2.loadCEAPI(),setTimeout((()=>(0,tn.ur)(this)))}update({session:e,snapshots:t,urlChanged:n}){this.eventHandlers.error&&this.eventHandlers.error.flush(),this.processBuffer();let r=!1;this.snapshotIds&&this.snapshotIds.sort().join(",")!==(t||[]).map((e=>e.id)).sort().join(",")&&(r=!0);const i=e&&(e.isNew()||this.session?.id!==e.id);if(e){this.session=e,this.sessionId=e.id,e.isFull()&&!this.assetsTracker&&(this.assetsTracker=new CE2.AssetTracker(this),this.assetsTracker.setup());CE2.cookieStorage.get(this.cookies.lastSession)!==(this.session&&this.session.id)&&this.resetSessionTracking()}if(this.snapshots=t||[],this.snapshotIds=this.snapshots.map((e=>e.id)),this.formatVersion=this.snapshots[0]&&this.snapshots[0].v,this.setupSnapshotAndSessionEventHandlers(),n||i){(0,cn.R)(),!i&&this.url&&this.hasWebAnalytics()&&this.commonEventHandlers.visit?.trigger(),this.url=window.location.href,this.session.hasWebAnalytics()&&(this.isNewDailyVisitor=this.visitor.isNewDailyVisitor(),this.isNewDailyReturningVisitor=this.isNewDailyVisitor&&this.visitor.isReturning()),this.setVisitIDs(),this.setupPageFingerprint();for(const e in this.commonEventHandlers)if(Object.prototype.hasOwnProperty.call(this.commonEventHandlers,e)){const t=this.commonEventHandlers[e];t.update&&t.update(i,n)}for(const e in this.eventHandlers)if(Object.prototype.hasOwnProperty.call(this.eventHandlers,e)){const t=this.eventHandlers[e];t.update&&t.update(i,n)}(this.snapshots.length||this.session?.isFull()&&!this.blocked)&&this.commonEventHandlers.visit?.trigger(),this.eventHandlers.goals?.onUrlVisit()}else r&&t?.length&&this.commonEventHandlers.visit?.trigger({snapshotOnly:!0});(i||r&&t?.length)&&this.sendCustomUserData(),i&&this.commonEventHandlers.sessionmetadata?.trigger(),i&&"function"==typeof CE_SESSION_READY&&CE_SESSION_READY(this.session),this.updated=!0}cleanup(){if(this.eventHandlers.error&&this.eventHandlers.error.flush(),this.processBuffer(),clearTimeout(this.sampleTimeout),clearTimeout(this.diffTimeout),delete this.sampleTimeout,delete this.diffTimeout,this.assetsTracker&&(this.assetsTracker.cleanup(),delete this.assetsTracker),this.eventsTargets)for(let e=0,t=Array.from(this.eventsTargets.keys());e{this.pageUnloading=!1}),1e3)}onEngagement(){this.commonEventHandlers.visit.setEngagement()}rageClick(){this.eventHandlers.error&&this.eventHandlers.error.assignAttribute("rageClicked")}notifyError(e){this.session&&this.eventHandlers.error&&this.eventHandlers.error.onError(e)}setupCommonEventHandlers(){this.commonEventHandlers.visit||=new CE2.CommonEventHandlers.Visit(this),this.commonEventHandlers.sessionmetadata||=new CE2.CommonEventHandlers.SessionMetadata(this),this.commonEventHandlers.tag||=new CE2.CommonEventHandlers.Tag(this),this.commonEventHandlers.identify||=new CE2.CommonEventHandlers.Identify(this),this.commonEventHandlers.customUserData||=new CE2.CommonEventHandlers.CustomUserData(this)}setupGoalEventHandlers(){this.goals.length&&(this.eventHandlers.goals||=new CE2.EventHandlers.GoalConversion(this))}setupVisibilityChangeHandlers(){this.visibilitychangeHandlerSet||(this.addEventListener("visibilitychange",(0,s.oI)(this,"onVisibilityChange")),this.addEventListener("focus",(0,s.oI)(this,"onBlurFocus")),this.addEventListener("blur",(0,s.oI)(this,"onBlurFocus")),this.visibilitychangeHandlerSet=!0)}setupSnapshotAndSessionEventHandlers(){(this.snapshots?.length||this.session?.isFull())&&(this.eventHandlers.click||=new CE2.EventHandlers.Click(this),this.eventHandlers.excessiveScrolls||=new CE2.EventHandlers.ExcessiveScroll(this),this.eventHandlers.scroll||=new CE2.EventHandlers.Scroll(this),this.eventHandlers.metric||=new CE2.EventHandlers.Metric(this)),this.session?.isFull()&&!this.blocked&&(this.eventHandlers.sessionscroll||=new CE2.EventHandlers.SessionScroll(this),this.eventHandlers.mousemovement||=new CE2.EventHandlers.MouseMovement(this),this.eventHandlers.resize||=new CE2.EventHandlers.Resize(this),this.eventHandlers.activity||=new CE2.EventHandlers.Activity(this),(0,s.jI)("hide-errors")||(this.eventHandlers.error||=new CE2.EventHandlers.Error(this)),this.eventHandlers.quickback||=new CE2.EventHandlers.QuickBack(this),this.eventHandlers.form||=new CE2.EventHandlers.Form(this),this.eventHandlers.pageState||=new CE2.EventHandlers.PageState(this),this.eventHandlers.typing||=new CE2.EventHandlers.Typing(this),this.eventHandlers.visibility||=new CE2.EventHandlers.Visibility(this),this.runSampleCallbacks(),this.runDiffCallbacks()),this.beforeUnloadHandlerSet||(this.addEventListener(CE2.opera?"unload":"beforeunload",(0,s.oI)(this,"onUnload")),this.beforeUnloadHandlerSet=!0),CE2.EventHandlers?.Ecommerce&&(this.session?.isFull()||this.goals)&&(this.eventHandlers.ecommerce||=new CE2.EventHandlers.Ecommerce(this))}setupEngagementEventHandlers(){this.hasWebAnalytics()&&(this.engagementEventHandlerSet||(this.addEventListener("click",(()=>this.onEngagement())),this.addEventListener("scroll",(()=>this.onEngagement())),this.engagementEventHandlerSet=!0))}setupPageFingerprint(){delete this.pageFingerprint,delete this.pageFingerprintMd5,CE2.w.CE_URL_FINGERPRINT&&(this.pageFingerprint=CE2.w.CE_URL_FINGERPRINT()),this.session?.isFull()&&this.pageFingerprint&&(this.pageFingerprintMd5=(0,mt.F)(this.pageFingerprint))}addSampleCallback(e){this.sampleCallbacks.push(e)}addDiffCallback(e){this.diffCallbacks.push(e)}runSampleCallbacks(e=!0){if(this.runSampleCallbacksBind)for(let e=0,t=this.sampleCallbacks;e(t||[]).includes(n)?"":e[n]))}addToCart({productId:e,name:t,quantity:n,price:r,currency:i}){this.eventHandlers.ecommerce&&this.eventHandlers.ecommerce.addToCart([e,t,n,this.eventHandlers.ecommerce.amountInCents(r),i])}startCheckout(){this.eventHandlers.ecommerce&&this.eventHandlers.ecommerce.startCheckout()}checkoutCompleted({orderId:e,total:t,currency:n}){this.eventHandlers.ecommerce&&this.eventHandlers.ecommerce.checkoutCompleted([e,this.eventHandlers.ecommerce.amountInCents(t),n])}setVisitIDs(e){CE2.visitId=this.visitID=e||this.makeId()}setVisitorIDs(){this.visitorID=this.visitor.getId()}resetSessionTracking(){this.session?.id&&CE2.cookieStorage.set(this.cookies.lastSession,this.session.id)}identify(e,t={}){this.session&&e&&this.commonEventHandlers.identify?.trigger(e,t)}clearIdentity(){this.visitor.clearIdentity()}amountInCents(e){return e&&!Number.isNaN(Number(e))&&Math.round(1e4*parseFloat(e))}increaseSessionWorth(e,t){if(Number.isNaN(Number(e)))return!1;const n=((e,t)=>{const n=dn();return un(n+e,t)})(this.amountInCents(e),t);return(0,o.Yz)("[Tracker] Increase session worth",{amount:e,currency:t,finalAmount:n}),this.sendSessionWorth(n,t)}decreaseSessionWorth(e,t){if(Number.isNaN(Number(e)))return!1;const n=((e,t)=>{let n=dn()-e;return n<0&&(n=0),un(n,t)})(this.amountInCents(e),t);return(0,o.Yz)("[Tracker] Decrease session worth",{amount:e,currency:t,finalAmount:n}),this.sendSessionWorth(n,t)}setSessionWorth(e,t){if(Number.isNaN(Number(e)))return!1;const n=un(this.amountInCents(e),t);return(0,o.Yz)("[Tracker] Set session worth",{amount:e,currency:t}),this.sendSessionWorth(n,t)}sendSessionWorth(e,t){const n=[this.visitID,e,t&&3===t.length?t.toUpperCase():null,"new"],r=this.newEvent(35,{attributes:n});this.send(r)}getUserData(){const e=[],{userData:t}=CE2.state;return(0,s.__)([1,2,3,4,5],(n=>{const r=t[n];void 0!==r&&e.push(String(n),r)})),e}goalConversion({goalId:e,value:t,triggerId:n,goalName:r,isDynamic:i=!1,skipSessionWorth:s=!1}={}){const a=i&&r?`dyn-${(0,mt.F)(r)}`:null,c=!ln.r.alreadyConverted(a||e),l=i?null:(e=>CE2.Native.JSON.parse(CE2.Native.sessionStorageWrapper.read(j)||"{}")[e.toString()])(e),d=this.visitor.getFirstVisitData(),u=i?null:this.goals.find((({id:t})=>t===e));let h,p;if(t||i||(t=ln.r.getNextGoalConversionValue(e,n))&&(0,o.Yz)("[Goal] Using stored value",{goal:u,triggerId:n,value:t}),!t&&u&&u.triggers){const e=u.triggers.find((e=>e.id==n));e&&e.fixed_value&&(t=e.fixed_value,(0,o.Yz)("[Goal] Using fixed value",{goal:u,trigger:e,value:t}))}t&&"object"==typeof t&&t.worth&&!Number.isNaN(t.worth)&&(h=t.currency,p=t.worth,s||this.increaseSessionWorth(p,h));const g=[CE2.w.location.href,i||l?.goalId!==e?void 0:l.id,i||l?.goalId!==e?void 0:CE2.data.addons.find((({id:e})=>e===l.id))?.name,i?r:u?.name,this.visitor.getIdentification(),e||"",d.landingUrl,d.referrer,d.time?Date.now()-d.time:null,d.utm,d.userData,CE2.clock.getIP(),CE2.clock.getDeviceType(),this.visitor.isReturning(),p?Math.round(1e4*parseFloat(p)):void 0,h];i||l?.goalId!==e||((0,f.sendCounter)("cta:conversion",l.id),(e=>{const t=CE2.Native.JSON.parse(CE2.Native.sessionStorageWrapper.read(j)||"{}");delete t[e],CE2.Native.sessionStorageWrapper.write(j,CE2.Native.JSON.stringify(t))})(e));const m=(0,nn.lD)(),E=m&&CE2.data.flows?.[m.id],v=E?.variants?.[m.variantId],C=[m?.id,m?.name,m?.variantId,"",E?.realId,v?.realId,this.pageFingerprint],y=[this.visitID,n||"",c,this.session?this.session.numberVisits():"",...g,...C],w=this.newEvent(26,{attributes:y});this.sendImmediatelly(w,{goalId:a||e}),c&&ln.r.recordConversion({goalId:e,dynamicId:a}),i||"function"!=typeof CE2.convertedFromFlow||CE2.convertedFromFlow(e,t),(0,o.Yz)("[Goals] Converted",{goalId:e,value:t,triggerId:n,goalName:r,isDynamic:i})}codeConversion(e,t){this.goals.forEach((n=>{n.triggers.forEach((r=>{const i=r.filter.conditions.filter((e=>"code"===e.criteria));if(0!==i.length)for(let s=0;s255)throw new Error("Goal name is too long:",e);this.goalConversion({isDynamic:!0,goalName:e,value:t})}}sendCustomUserData(){this.commonEventHandlers.customUserData?.trigger()}addTag(e,t={}){if(!this.session.isFull()&&!t.virtual)return;const n=CE2.Native.Array.isArray(e)?e:[e];for(let e=0;e{for(let t=0,n=i.hooks;t0?CE2.eventTypes.PAGE_UNLOAD:CE2.eventTypes.VISIT,d=this.tracker.newEvent(l,{eventID:l===CE2.eventTypes.VISIT?this.tracker.visitID:void 0,attributes:c});this.tracker.session&&this.tracker.session.setNumberVisits(a),t?this.tracker.sendImmediatelly(d,{flow:"s"}):n?this.tracker.sendImmediatelly(d,{flow:"ss",virtual:!0}):this.tracker.send(d),n||!this.tracker.snapshots?.length&&!this.tracker.session.isFull()||this.triggerPerformance(e)}triggerPerformance(e={}){const{snapshotOnly:t}=e,n=CE2.w;this.performanceObserver&&(this.performanceObserver.disconnect(),delete this.performanceObserver),n.performance&&n.performance.getEntriesByType&&(this.handlePerformanceEntries(n.performance.getEntriesByType("navigation"),t),this.handlePerformanceEntries(n.performance.getEntriesByType("paint"),t),"undefined"!=typeof PerformanceObserver&&(this.performanceObserver=new PerformanceObserver((e=>{this.handlePerformanceEntries(e.getEntries(),t)})),this.performanceObserver.observe({entryTypes:["navigation","paint"]})))}handlePerformanceEntries(e=[],t=!1){this.tracker.isDocumentHiddenOnce||e.forEach((e=>{"navigation"===e.entryType?(e.domContentLoadedEventStart&&this.sendPerformance(CE2.eventTypes.DOM_CONTENT_LOADED,e.domContentLoadedEventStart,t),e.domInteractive&&this.sendPerformance(CE2.eventTypes.DOM_INTERACTIVE,e.domInteractive,t),e.loadEventStart&&this.sendPerformance(CE2.eventTypes.PAGE_LOAD,e.loadEventStart,t)):"first-contentful-paint"===e.name&&this.sendPerformance(CE2.eventTypes.FIRST_CONTENTFUL_PAINT,e.startTime,t)}))}sendPerformance(e,t,n=!1){if(!this.performanceEvents[e]||n){const r=[this.tracker.visitID,t],i=this.tracker.newEvent(e,{attributes:r});n?this.tracker.sendImmediatelly(i,{flow:"s"}):this.tracker.send(i),this.performanceEvents[e]=!0}}analyticsData(){if(!this.tracker.hasWebAnalytics())return null;const{isNewDailyVisitor:e,isNewDailyReturningVisitor:t}=this.tracker;this.engagementTime||=0;let n=0;this.engagementStartedAt&&(n=Date.now()-(this.lastEngagementAt||this.engagementStartedAt),this.engagementTime+=n,this.lastEngagementAt=Date.now());const r=[this.tracker.visitID,this.sequence,e,t,this.isNewSession,this.isNewSessionEngagement,this.isNewSessionEngagementTrigger,this.isNewEngagement,this.isNewEngagementTrigger,this.engagementTime,n,this.tracker.session.getWebAnalyticsRatio(),this.tracker.session.getFirstVisitData()?.url];return this.isNewEngagementTrigger=!1,this.isNewSessionEngagementTrigger=!1,r}getLanguage(){return(CE2.n.language||CE2.n.userLanguage).split("-")[0]}setEngagement(){this.tracker.hasWebAnalytics()&&!this.engaged&&(this.engagementStartedAt=Date.now(),this.isNewEngagement=!0,this.isNewEngagementTrigger=!0,this.tracker.session.isEngaged()||(this.tracker.session.setAsEngaged(),this.isNewSessionEngagement=!0,this.isNewSessionEngagementTrigger=!0)),this.engaged=!0}updateLastEngagementAt(){this.lastEngagementAt=Date.now()}},SessionMetadata:class{constructor(e){this.tracker=e}trigger(e={}){const{virtual:t}=e,n=CE2.isBot(!0);if((0,s.jI)("v11_disable_bot_detection")&&n&&(this.tracker.addTag("bot",{virtual:t}),CE2.w.serverLog&&this.tracker.visitor&&this.tracker.session))try{CE2.w.serverLog({id:this.tracker.visitor.getId(),value:`sessionid:${this.tracker.session.id}, bot:${n}`})}catch(e){(0,o.Yz)(`error logging bot reason: ${e.message}`)}const r=CE2.state.overridenRecordingSamplingRate?parseInt(100/CE2.state.overridenRecordingSamplingRate,10):function(e){if(CE2.data.sites_sampling)for(let t=0,n=CE2.data.sites_sampling;t0&&(this.tracker.addTag(CE2.sessionTags,{virtual:t}),CE2.sessionTags=[]),CE2.appliedStrategy&&this.sendSessionRatio()}sendSessionRatio(){const e=[this.siteRatio,CE2.appliedStrategy],t=this.tracker.newEvent(CE2.eventTypes.SESSION_RATIO,{attributes:e});this.tracker.send(t)}},Tag:class{constructor(e){this.tracker=e}trigger(e,t={}){const{virtual:n}=t;if(e){const t=[e],r=this.tracker.newEvent(19,{attributes:t});n?this.tracker.sendImmediatelly(r,{flow:"ss",virtual:!0}):this.tracker.send(r)}}},Identify:class{constructor(e){this.tracker=e}trigger(e,t={}){const{virtual:n}=t;if(e){const t=[e];this.tracker.visitor.identify(e);const r=this.tracker.newEvent(17,{attributes:t});n?this.tracker.sendImmediatelly(r,{flow:"ss",virtual:!0}):this.tracker.send(r)}}},CustomUserData:class{constructor(e){this.tracker=e}trigger(){const{userData:e}=CE2.state;if(e.length>0&&e.find((e=>!!e))){const t=[e[1],e[2],e[3],e[4],e[5]],n=this.tracker.newEvent(18,{attributes:t});this.tracker.send(n)}}}}},7022:()=>{!function(e){var t=e.CE2BH={};function n(){return t.extends=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}}("undefined"==typeof window?self:window)},401:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var r=n(8922);const i=n.n(r)()},2759:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});const r=function(){let e;const t=void 0!==n.g&&(n.g.crypto||n.g.msCrypto);if(t&&t.getRandomValues){const n=new Uint8Array(16);e=function(){return t.getRandomValues(n),n}}if(!e){const t=new CE2.Native.Array(16);e=function(){for(let e,n=0;n<16;n++)3&n||(e=4294967296*Math.random()),t[n]=e>>>((3&n)<<3)&255;return t}}return e}(),i=function(){const e=[];for(let t=0;t<256;++t)e[t]=(t+256).toString(16).substr(1);return function(t,n){let r=n||0;const i=e;return i[t[r++]]+i[t[r++]]+i[t[r++]]+i[t[r++]]+"-"+i[t[r++]]+i[t[r++]]+"-"+i[t[r++]]+i[t[r++]]+"-"+i[t[r++]]+i[t[r++]]+"-"+i[t[r++]]+i[t[r++]]+i[t[r++]]+i[t[r++]]+i[t[r++]]+i[t[r++]]}}(),s=(o=r(),a=[1|o[0],o[1],o[2],o[3],o[4],o[5]],c=16383&(o[6]<<8|o[7]),l=0,d=0,function(e,t,n){var r=t&&n||0,s=t||[],o=void 0!==(e=e||{}).clockseq?e.clockseq:c,u=void 0!==e.msecs?e.msecs:(new Date).getTime(),h=void 0!==e.nsecs?e.nsecs:d+1,p=u-l+(h-d)/1e4;if(p<0&&void 0===e.clockseq&&(o=o+1&16383),(p<0||u>l)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=u,d=h,c=o;var g=(1e4*(268435455&(u+=122192928e5))+h)%4294967296;s[r++]=g>>>24&255,s[r++]=g>>>16&255,s[r++]=g>>>8&255,s[r++]=255&g;var f=u/4294967296*1e4&268435455;s[r++]=f>>>8&255,s[r++]=255&f,s[r++]=f>>>24&15|16,s[r++]=f>>>16&255,s[r++]=o>>>8|128,s[r++]=255&o;for(var m=e.node||a,E=0;E<6;++E)s[r+E]=m[E];return t||i(s)});var o,a,c,l,d},2484:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>o,Fi:()=>a,UE:()=>l,bU:()=>c});var r=n(3201),i=n(3380);class s extends r.v{}const o=new s,a=()=>{const e=document.location.hash.match(/#ce-abtest-(.+)/);if(!e||!e[1])return;const t=e[1].split("."),[n,r,i]=t;return[n,r,i,t.slice(3).join(".")||null]},c=()=>!!a(),l=()=>{CE2.loadScript(CE2.data.transformations_script_url,(()=>{(0,i.Yz)("[Flows] [Preview] transformations.js chunk is loaded. Run AB test preview"),CE2.initAbTestPreview()}))}},8e3:(e,t,n)=>{"use strict";n.d(t,{i:()=>i});var r=n(2886);const i={CK:"_ce.s",LAST_COOKIE_WRITE_KEY:"lcw",LAST_COOKIE_WRITE_THRESHOLD:3e5,saveTimeout:null,canSave:"undefined"==typeof CE_NO_COOKIES||!CE_NO_COOKIES,expiresIn:"number"==typeof CE_COOKIE_EXPIRE_DAYS?CE_COOKIE_EXPIRE_DAYS:365,values:{},load(){if(!this.canSave)return this.values;let e,t,n=CE2.getCookie(this.CK);const r={};if(!n)return r;for(n=n.replace(/\\~/g,"\0").split("~"),e=0;t=n[e];e+=2)r[t.replace(/\x00/g,"~")]=n[e+1].replace(/\x00/g,"~");return r},getCookieRawValue(e){const t=[];return(0,r.__)(e,((e,n)=>{t.push(n.replace("~","\\~")),t.push(e.replace("~","\\~"))})),t.push(`${this.LAST_COOKIE_WRITE_KEY}~${+new Date}`),t.join("~")},save(e){this.canSave?(0,r.o)(this.CK,this.getCookieRawValue(e),{expiresInDays:this.expiresIn}):this.values=e},get(e){return this.load()[e]},set(e,t){const n=this.load(),r=`${t}`;let i=!1;const s=parseInt(n[this.LAST_COOKIE_WRITE_KEY],10);s&&+new Date-s>this.LAST_COOKIE_WRITE_THRESHOLD&&(i=!0),(n[e]!==r||i)&&(n[e]=r,this.save(n))},del(e){const t=this.load();delete t[e],this.save(t)}}},3380:(e,t,n)=>{"use strict";n.d(t,{$J:()=>d,$Q:()=>s,Yz:()=>c,aE:()=>u,aQ:()=>o,cC:()=>l,dK:()=>i});const r=function(e){if(!CE2.data||!CE2.data.features)return!1;for(let t=0,n=CE2.data.features;t{const e=CE2.data&&CE2.data.dkey;return!!(e&&CE2.w&&CE2.w.location.href.indexOf(`ced=${e}`)>-1)||(!!r("remote-logs")||"undefined"!=typeof CE_DEBUG&&CE_DEBUG)},s=()=>"undefined"!=typeof CE_DEBUG&&CE_DEBUG>=2,o=(e,t)=>{CE2.n.sendBeacon&&CE2.n.sendBeacon(CE2.data.v11_tracking_dest.replace("v11","debug"),CE2.Native.JSON.stringify({siteId:CE2.site?.id,userId:CE2.data.uid,type:e,data:CE2BH.extends({version:CE2.VERSION,ts:+new Date},t)}))},a=e=>"object"==typeof e&&e instanceof Error?e:CE2.Native.JSON.stringify(e),c=(e,t)=>{if(CE2.state.logHistoryEnabled&&CE2.state.logHistory.push(e),r("remote-logs")){const n=t?CE2.Native.JSON.stringify(t).substring(0,120):"";o("logs",{visitorId:CE2.visitorTracker?.getId(),visitId:CE2.getVisitId&&CE2.getVisitId(),sessionId:CE2.getSessionId&&CE2.getSessionId(),msg:e,obj:n})}if(!i())return!1;let n;n="string"==typeof e?`CE: ${e}`:e;const s=[n];if(t&&s.push(t),"undefined"!=typeof window){const{console:e}=CE2.Native;e&&e.log&&e.log(...s.map(a))}},l=(e,t)=>{if(!s())return!1;c(e,t)},d=function(){return void 0!==CE2.w.CE_BENCHMARK&&CE2.w.CE_BENCHMARK||(CE2&&CE2.w&&CE2.w.location.href.indexOf("ceb=#{data[:dkey]}"))>-1},u={autoReport:()=>void 0!==CE2.w.CE_BENCHMARK&&CE2.w.CE_BENCHMARK||window.location.href.indexOf("ceb=#{data[:dkey]}")>-1,start:(e,t=[])=>{if(CE2.benchmark.stopped)return;CE2.benchmarks.find((t=>t.name===e))||CE2.benchmarks.push({name:e,tags:t,startedAt:new Date})},stop:e=>{if(CE2.benchmark.stopped)return;const t=CE2.benchmarks.find((t=>t.name===e));t&&!t.diff&&(t.diff=+new Date-+t.startedAt)},report:()=>{const e=["CE: [Benchmark]",""];for(let t=0,n=CE2.benchmarks;t{"use strict";n.d(t,{D:()=>i,p:()=>r});const r={types:{desktop:{name:"desktop",fullName:"Desktop",code:1,display:{width:1280,height:800},viewport:{width:1280,height:800},userAgent:null},phone:{name:"phone",fullName:"Phone",code:2,display:{width:320,height:480},viewport:{width:980,height:1091},userAgent:"Mozilla/5.0 (Android 7.0; Mobile; rv:60.0) Gecko/60.0 Firefox/60.0"},tablet:{name:"tablet",fullName:"Tablet",code:3,display:{width:800,height:1280},viewport:{width:980,height:1568},userAgent:"Mozilla/5.0 (Android 7.0; Tablet; rv:60.0) Gecko/60.0 Firefox/60.0"}},codeMap:{1:"desktop",2:"phone",3:"tablet"},typeMap:{desktop:1,phone:2,tablet:3}},i=function(e){return(CE2.Native.Array.isArray(e)?e:[e]).map((e=>r.typeMap[e])).includes(CE2.clock.getDeviceType())}},7866:(e,t,n)=>{"use strict";n.d(t,{M4:()=>i,T:()=>r,vU:()=>o});const r=function(){const e=navigator.userAgent;CE2.opera=CE2.ie=CE2.chrome=CE2.safari=CE2.firefox=!1;let t="unknown";return CE2.w&&CE2.w.opera&&"function"==typeof CE2.w.opera.version?(t="opera",CE2.opera=!0,CE2.operaVersion=parseInt(CE2.w.opera.version(),10)):/\bMSIE\b/.test(e)?(t="ie",CE2.ie=!0,CE2.ieVersion=parseInt(/MSIE (\d+)\.\d+/.exec(navigator.userAgent)[1],10),CE2.ieQuirksMode="BackCompat"==document.compatMode):/\b(iPhone|iP[ao]d)\b/.test(e)?(t="iphone",CE2.iphone=!0,CE2.webkit=!0,/AppleWebKit/.test(navigator.appVersion)&&(t="safari",CE2.safari=!0)):/\bChrome\b/.test(e)?(t="chrome",CE2.chrome=!0,CE2.webkit=!0):/AppleWebKit/.test(navigator.appVersion)?(t="safari",CE2.safari=!0,CE2.webkit=!0):/Mozilla/i.test(e)&&!/compatible|webkit/i.test(e)&&(t="firefox",CE2.firefox=!0),CE2.webkit&&(CE2.webkitVersion=parseInt(/AppleWebKit\/(\d+)/.exec(e)[1],10)),t}(),i=function(e,t){const{crypto:n}=CE2.w,r="function"==typeof CE2.w.btoa&&CE2.w.btoa;let i,s,o,a="";if(e=e||20,n&&n.getRandomValues){const t=new Uint8Array(e);n.getRandomValues(t),i=CE2.Native.Array.from(t)}else for(i=new CE2.Native.Array(e),s=0;sString.fromCharCode(e))).join(""),r(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"");for(s=0;s{"use strict";n.d(t,{O:()=>s,R:()=>i});const r=new Set;function i(){r.clear()}function s(e,t){return t.filter((t=>!function(e,t){const n=function(e,t){const n=t?.[0]?.[0];if(!n)return;const r=[];return!e.snapshotIds||e.flow&&"s"!==e.flow||r.push(`s-${e.snapshotIds.join(",")}`),!e.sessionId||e.flow&&"ss"!==e.flow||r.push(`ss-${e.sessionId}`),!e.goalId||e.flow&&"g"!==e.flow||r.push(`g-${e.goalId}`),!e.abTestId||e.flow&&"ab"!==e.flow||r.push(`ab-${e.abTestId}`),r.push(n),r.join(":")}(e,t);return!(!n||!r.has(n)&&(r.add(n),1))}(e,t)))}CE2.state&&(CE2.state.knownEventIds=r)},3201:(e,t,n)=>{"use strict";n.d(t,{v:()=>i});const r=()=>({events:{},emit(e,...t){const n=this.events[e]||[];for(let e=0,{length:r}=n;e{this.events[e]=this.events[e]?.filter((e=>t!==e))}},exists(e,t){return this.events[e]&&1===this.events[e].filter((e=>e===t)).length}});class i{constructor(){this.emitter=r()}on(e,t,n){if(!n||!this.emitter.exists(e,t))return this.emitter.on(e,t)}once(e,t,n=!1){if(n&&this.emitter.exists(e,t))return;const r=this.on(e,(async(...e)=>(r(),t(...e))))}emit(...e){return this.emitter.emit(...e)}}},4808:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,o:()=>s});var r=n(3380),i=n(1509);const s=function(){const e={};return e.sendError=function(e){try{if(CE2.data&&CE2.data.error_tracking){const t={url:window.location.href,error:e.type,error_name:e.name,filename:e.filename};e.message&&(t.error_description=e.message.toString()),e.error&&e.error.stack&&(t.stack=e.error.stack.toString()),(0,i.send)(`${CE2.data.error_tracking_dest}?u=${encodeURIComponent(CE2.data.uid)}`,CE2.Native.JSON.stringify(t),{sendBeacon:!0})}}catch(e){}},e.listen=function(){if(!CE2.data.error_tracking_dest||!CE2.data||!CE2.data.uid)return;const e=CE2.data.error_tracking_script_url;window.addEventListener("error",(t=>{try{if((0,r.Yz)(`Error Tacking: Error Event '${t}'`),!t.filename)return;(0,r.Yz)(`Error Tacking: Error filename '${t.filename}'`),t.filename.includes(e)&&this.sendError(t)}catch(e){}}))},e}(),o=e=>{(e instanceof Error||e instanceof TypeError)&&((0,r.Yz)(e),s&&s.sendError&&s.sendError(e))}},1807:(e,t,n)=>{"use strict";n.d(t,{D8:()=>o,W2:()=>s,lD:()=>a});var r=n(8e3);const i="flvl",s=(e,t)=>{const n=r.i.get(i)||"";n.includes(e)||r.i.set(i,`${n},${e}:${t}`)},o=()=>{r.i.del(i)},a=()=>{const e=(r.i.get(i)||"").split(",").flatMap((e=>{const[t,n]=e.split(":");return t&&CE2.data.flows?.[t]?{id:t,name:CE2.data.flows?.[t]?.name,variantId:n}:[]}));return e.length?e[e.length-1]:null}},7777:(e,t,n)=>{"use strict";n.d(t,{f:()=>i});const r={};!function(e){function t(){if(!(this instanceof t))return new t;this.boundary=`------RWWorkerFormDataBoundary${Math.random().toString(36)}`;const e=this.data=[];this.__append=function(t){let n,r=0;if("string"==typeof t)for(n=t.length;r{"use strict";n.d(t,{A:()=>s});var r=n(3201);class i extends r.v{}const s=new i},1509:(e,t,n)=>{"use strict";n.r(t),n.d(t,{descriptiveEventType:()=>h,get:()=>p,send:()=>g,sendCounter:()=>m,sendEvents:()=>E,sendForm:()=>f});var r=n(7777),i=n(3380),s=n(2886),o=n(2559),a=n(4451),c=n(9329);"undefined"==typeof CE2&&(self.CE2={}),void 0===CE2.state&&(CE2.state={});const{state:l}=CE2;let d,u;l.testModeRequests=[];const h=e=>{if(!CE2.eventTypes)return`event_type=${e}`;if(!d){d={},u=null;for(let e=0,t=Object.keys(CE2.eventTypes);eu.length)&&(u=n)}}let t=d[e];const n=u.length-t.length;for(let e=0;e{const r=CE2.getNativeXMLHttpRequest();r.onreadystatechange=function(){4==r.readyState&&t(r)},r.open("GET",e,!0),n&&(r.responseType=n),r.send()},g=(0,a.fY)((e=>e.includes("clock")),((e,t,n={})=>{if((0,s.ou)())return l.testModeRequests.push({url:e,data:t,options:n}),void(n.callback&&n.callback({responseText:""}));const o=n.sendBeacon&&CE2.n&&CE2.n.sendBeacon;let a=n.contentType||"text/plain";if(o&&CE2.n&&CE2.n.sendBeacon)CE2.n.sendBeacon(e,t),n.callback&&n.callback();else{if("undefined"==typeof XMLHttpRequest)return void(0,i.Yz)("XMLHttpRequest not supported");n.retries||(n.retries=0);const s=CE2.getNativeXMLHttpRequest();s.onreadystatechange=function(){if(n.callback&&4==s.readyState){if((!s.status||429===s.status||s.status>=500&&s.status<600)&&n.retry&&n.retries{g(e,t,n)}),1e3);n.callback(s)}},s.open(n.method||"POST",e),t instanceof r.f&&(t.__endedMultipart||t.__append(`--${t.boundary}--\r\n`),t.__endedMultipart=!0,a=`multipart/form-data; boundary=${t.boundary}`,t=new Uint8Array(t.data)),s.setRequestHeader("Content-type",a),s.send(t)}})),f=(e,t,n={})=>{g(e,(e=>{let t="";const n=encodeURIComponent;return(0,s.__)(e,((e,r)=>{null!=e&&(0,o.b)(`${e}`)&&(t.length&&(t+="&"),t+=`${n(r)}=${n(e)}`)})),t})(t),CE2BH.extends(n,{contentType:"application/x-www-form-urlencoded"}))},m=(e,t)=>{if(!e||!t)return;const n={metric:e,id:t},r=CE2.data.counters_dest;g(r,CE2.Native.JSON.stringify(n),{contentType:"application/json"})},E=(e,t)=>{let n;try{n=(0,c.O)(e,t);const r=[];r.push(`u=${encodeURIComponent(e.userId)}`),r.push(`st=${encodeURIComponent(e.siteId)}`),e.snapshotIds?.length&&r.push(`s=${encodeURIComponent(e.snapshotIds.join(","))}`),e.flow&&r.push(`f=${encodeURIComponent(e.flow)}`),e.sessionId&&r.push(`ss=${encodeURIComponent(e.sessionId)}`),e.pageFingerprintMd5&&r.push(`p=${encodeURIComponent(e.pageFingerprintMd5)}`),e.goalId&&r.push(`g=${encodeURIComponent(e.goalId)}`),e.abTestId&&r.push(`ab=${encodeURIComponent(e.abTestId)}`),e.pv&&r.push("pv=1"),e.t&&r.push(`t=${e.t}`),CE2.data.tracking_key&&r.push(`tk=${encodeURIComponent(CE2.data.tracking_key)}`);const s=[];for(let t=0,r=n;t{"use strict";n.d(t,{MH:()=>oe,mF:()=>ce,$K:()=>ie});const r="all",i="any",s="greater_than",o="less_than",a="equals",c="at_least",l="at_most",d="and",u={matchUrl:"matchUrl",matcher:"matcher",debug:"debug",browserAPI:"browserAPI"},h="new_or_returning",p="referrer",g="landing_page",f="visited_page",m="browser",E="device",v="country",C="os",y="screen_width",w="screen_height",_="pages_viewed",S="duration",b="var1",k="var2",I="var3",T="var4",N="var5",A="profile",R="tags",D="day_of_week",O="utm_source",x="utm_medium",P="utm_campaign",V="utm_term",$="utm_content",L="goal_code",U="click",M="form_submission",H="pixel_event",z="query_param",F={desktop:"desktop",tablet:"tablet",phone:"phone"},B="minutes";function Y(e,t){return new RegExp(`^${e.split("*").map((e=>e.split("?").map((e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"))).join("."))).join(".*")}$`).test(t)}const j=[U,M,H];class W{constructor({state:e,providers:t}){this.providers=t,this.state={},this.reset(e),this.matcher=t.matcher(this.state,t)}reset(e={}){CE2BH.extends(this.state,CE2BH.extends({},{[h]:null,[p]:null,[g]:null,[f]:null,[m]:null,[E]:null,[v]:null,[y]:0,[w]:0,[_]:0,[S]:0,[b]:null,[k]:null,[I]:null,[T]:null,[N]:null,[A]:{},[R]:[],[D]:(new Date).getDay(),[O]:null,[x]:null,[P]:null,[V]:null,[$]:null,[L]:null,[U]:[],[M]:[],[H]:[],[z]:{}},W.cleanup(e))),this.debug("reset state",this.state)}static cleanup(e){const t={};if(!e)return t;for(let n=0,r=Object.keys(e);n{e.conditions.forEach(((o,a)=>{if(o.criteria!==t)return!1;const c=function(e,t){const n=e?t.find((t=>t.sync_selectors||t[`selector_for_${e}`])):null;if(!n)return null;if(t.sync_selectors)return Object.values(F).map((e=>t[`selector_for_${e}`])).find((e=>!!e))||null;return n[`selector_for_${e}`]||null}(this.state[E],o.value);if(!c)return!1;const l=n.target||n.srcElement;if(r.matchesSelector(l,c,!0)){if(!function(e,t,n){const r=e.target||e.srcElement;if(t.criteria!==M||"FORM"!==e.type)return!0;for(let e=0,i=t.value;e{e.conditions.forEach(((t,r)=>{t.value.find((e=>e.api===n.api&&(("string"!=typeof e.id||e.id.replace(/^(G|AW)-/,"")===n.id)&&("string"!=typeof e.event||e.event.toLowerCase()===n.type.toLowerCase()))))&&(this.state[t.criteria][r]=!0,s=this.match(e),this.state[t.criteria][r]=!1)}))}};return a[t]?.call(this),s}update(e){for(let t=0,n=Object.entries(e);t{const i=this.evaluate(e,t);return i&&n.push(e),i||r.push(e),i}));return d===t?i.every((e=>!0===e)):i.some((e=>!0===e))}evaluate(e,t){if(e.operator&&Array.isArray(e.conditions))return this.isMatched(e.conditions,e.operator);if(!e.value)return!1;const n=this.providers[u.matchUrl];switch(e.criteria){case h:case m:case E:case v:case C:case D:case R:case b:case k:case I:case T:case N:case L:{const t=Array.isArray(e.value)?e.value:[e.value];if(e.comparison===r){const n=Array.isArray(this.state[e.criteria])?this.state[e.criteria]:[this.state[e.criteria]];return JSON.stringify(t.sort())===JSON.stringify(n.sort())}const n=t.includes(this.state[e.criteria]);return e.comparison===i?!0===n:!1===n}case O:case x:case P:case V:case $:{const t=Array.isArray(e.value)?e.value:[e.value],n=Array.isArray(this.state[e.criteria])?this.state[e.criteria]:[this.state[e.criteria]];if(e.comparison===r)return t.every((e=>n.some((t=>Y(e,t)))));const s=t.some((e=>n.some((t=>Y(e,t)))));return e.comparison===i?!0===s:!1===s}case S:{const{count:t,unit:n}=e.value;let r=t;return n===B&&(r=60*t),e.comparison===c?r<=this.state[e.criteria]:e.comparison===l?r>=this.state[e.criteria]:e.comparison===s?rthis.state[e.criteria]}case y:case w:case _:return e.comparison===a?e.value===this.state[e.criteria]:e.comparison===s?e.valuethis.state[e.criteria];case f:case g:case p:{const t=e.value.map((t=>n(t,this.state[e.criteria])));return e.comparison===i?t.includes(!0):t.every((e=>!1===e))}case U:case M:case H:return!!this.state[e.criteria]?.length&&!0===this.state[e.criteria][t];case z:{const t=this.state[e.criteria]?.[e.name];return void 0!==t&&e.value.some((t=>Y(t,this.state[e.criteria]?.[e.name])))}}}debug(...e){this.providers.debug(...e)}}function K(e){const t=e.filter((e=>"object"!=typeof e)),n=e.filter((e=>"object"==typeof e));console.log("CE: [SegmentTracker]",t.join(" "),...n,"\n")}function q(){return{[u.debug]:(...e)=>{window.CE_DEBUG&&K(e)},[u.matchUrl]:()=>!1,[u.matcher]:(...e)=>new G(...e),[u.browserAPI]:{matchesSelector(e,t,n){let r=t;return n&&(r+=`,${t} *`),e.matches(r)}}}}var J=n(2886),X=n(6149),Q=n(3380);const Z="segment",ee="segment-no-op",te="~";let ne;function re(){const{clock:e}=CE2,{visitorTracker:t}=CE2,n=new URL(window.location.href).searchParams,{landingUrl:r,userData:i,utm:s}=t.getFirstVisitData()||{},o=window.innerWidth||window.screen.availWidth,a=window.innerHeight||window.screen.availHeight;return{device:{1:"desktop",2:"phone",3:"tablet"}[e.getDeviceType()],visited_page:window.location.href,referrer:document.referrer,new_or_returning:t.returningState().state,landing_page:r,screen_width:o,screen_height:a,pages_viewed:0,duration:0,var1:i[0],var2:i[1],var3:i[2],var4:i[3],var5:i[4],profile:{},tags:CE2.sessionTags||[],day_of_week:(new Date).getDay(),utm_source:s[0],utm_medium:s[1],utm_term:s[2],utm_content:s[3],utm_campaign:s[4],goal_code:n.get("code"),browser:e.getBrowser(),country:e.getCountry(),query_param:(0,J.q5)(window.location.search.substring(1))||{}}}function ie(){ne&&ne.reset(re())}function se(){return function({state:e,segments:t,providers:n}){return new W({state:e,segments:t,providers:CE2BH.extends({},q(),n)})}({state:re(),providers:{matchUrl({url:e,flags:t},n){let r=t?t.join():"";return e[0]===te&&(e=e.substring(0),r+="r"),(0,X.$)(e.toLowerCase(),n,r)},debug(){}}})}function oe(){return ne||(ne=se())}function ae({resourceType:e,resourceId:t,eventName:n,event:r}){if(!e||!t)return!1;const i=(CE2.data.segments||[]).filter((n=>(n.resources||[]).find((n=>n.resource_type===e&&String(n.resource_id)===String(t))))),s=[];for(let e=0;e0}function ce({resourceType:e,resourceId:t,eventName:n,event:r},i){if(oe().update({visited_page:window.location.href}),(0,J.jI)(Z))return ae({resourceType:e,resourceId:t,eventName:n,event:r});if((0,J.jI)(ee)){const s=ae({resourceType:e,resourceId:t,eventName:n,event:r}),o=i();return s!==o&&(0,Q.aQ)(ee,{url:window.location.href,stateUrl:oe().state.visited_page,resourceType:e,resourceId:t,eventName:n,segmentMatched:`${s}`}),o}return i()}},2559:(e,t,n)=>{"use strict";n.d(t,{b:()=>i,re:()=>r});const r=function(){const e="[\\s\\u00a0\\u2028\\u2029]+";return{whitespace:new RegExp(e,"g"),strip:new RegExp(`^${e}|${e}$`,"g"),href:/\bhref="(.*?)"/i,ipHost:/^([\d\.]+|\[[a-f\d:]+\])$/i}}(),i=(e,t)=>{const n=e.replace(r.strip,"");return t?n.replace(r.whitespace," "):n}},8773:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(2886);const i=function(e){if(this.src=e,this.protocol=this.host=this.port=this.path=this.qs=this.hash=this.query=null,e){const t=typeof e;"string"==t?this.initWithString(e):"object"==t&&this.initWithURI(e)}};i.pattern=/^\s*([\S]+?:\/\/)?([^\s\/]+?@)?([^:\/\?\#]+)?(\:\d+)?(\/?[^#\?\s]*)?([\?][^#\s]*)?([#]\S+)?/i,i.prototype={initWithString(e){const t=i.pattern.exec(e),[n,s,o,a,c,l,d,u]=t;var h;s||"/"==e.charAt(0)||a&&!("string"!=typeof(h=a)||-1===h.indexOf(".")&&"localhost"!==h||(h=new URL(`http://${h}`).hostname,!/^[a-zA-Z0-9-.]{1,253}\.?$/g.test(h)||(h.endsWith(".")&&(h=h.slice(0,h.length-1)),h.length>253||!h.split(".").every((e=>/^([a-zA-Z0-9-]+)$/g.test(e)&&e.length<64&&!e.startsWith("-")&&!e.endsWith("-"))))))?(s&&(this.protocol=s.substr(0,s.indexOf(":"))),this.host=a||null,c&&(this.port=Number(c.substr(1))),l?this.path=(0,r.x4)(l):this.host&&(this.path="/")):this.path=(0,r.x4)((a||"")+(l||"")),d&&(this.qs=(0,r.q5)(d.substr(1)),this.query=d.substr(1)),u&&(this.hash=(0,r.x4)(u.substr(1)))},initWithURI(e){(0,r.__)(e,(function(e,t){this[t]=e}),this)},isAbsolute(){return this.isURL()||this.path&&"/"==this.path.charAt(0)},isURL(){return this.protocol&&this.host},getDomain(){return this.host&&this.host.replace(/^(www|m)\./,"")},getHost(){return this.host+(this.port?`:${this.port}`:"")},getOrigin(){return`${this.protocol}://${this.getHost()}`},getFullUrl(){const e=this.query?`?${this.query}`:"";return`${this.getOrigin()}${this.path}${e}`},join(e){const t=new i(this);let{path:n}=this;return"string"==typeof e&&(e=new i(e)),e.isURL()?new i(e):(e.isAbsolute()?n=e.path:n?(n=n.split("/"),n.pop(),n=e.path?n.concat(e.path.split("/")):n,n=n.join("/")):n=this.isURL()?`/${e.path}`:e.path,t.path=n,t.qs=e.qs,t.hash=e.hash,t)},normalize(){if(!this.path)return;let e;CE2.ie&&CE2.ieVersion<9?(e=[],"/"==this.path.charAt(0)&&e.push(""),e=e.concat(this.path.split(/\/+/g)),"/"==this.path.charAt(this.path.length-1)&&e.push("")):e=this.path.split(/\/+/g);let t,n=0;do{if(t=e.length-1,".."==e[n+1])""==e[n]&&0==n?e.splice(n+1,1):(e.splice(n,2),n-=1);else if("."==e[n]){if(0==t)break;e.splice(n,1)}else n++}while(n<=t);this.path=e.join("/")},simplify(e){let t;const n=[];if(t="file"==this.protocol?this:CE2.ie?e?e.join(this):this:(e=e||new i(CE2.d.baseURI)).join(this),t.normalize(),t.host&&n.push(t.host.replace(/^(www|m)\./,"")),null!=t.port&&n.push(`:${t.port}`),"/"==t.path||/^\/(default|home|index)\b[^\/]*$/i.test(t.path)?(t.qs||t.hash)&&n.push("/"):n.push(t.path),t.qs){const e=[];(0,r.__)(t.qs,((t,n)=>{t&&!/(^sess|^sid$|^phpsessid$|^jsessionid$|^__VIEWSTATE$)/i.test(n)&&e.push(`${encodeURIComponent(n)}=${encodeURIComponent(t)}`)})),e.length&&n.push(`?${e.join("&")}`)}return t.hash&&n.push(`#${t.hash}`),n.join("")},sameOrigin(e){return!!e&&("string"==typeof e&&(e=new i(e)),null==e.host||e.host==this.host&&e.port==this.port&&e.protocol==this.protocol)}}},6149:(e,t,n)=>{"use strict";n.d(t,{$:()=>l,e:()=>d});var r=n(2886),i=n(8773),s=n(4808);const o=function(e,t,n=!1){e&&e(t,n)},a=function(e,t){try{const n=e.includes("://")?"":"https?://(www.)?";let r=e.split("#"),i=r[0];const s=r.length>1?r[1]:"";r=i.split("?"),[i]=r;const o=r.length>1?r[1]:"",a=new RegExp(`^${n}${i.replace(/[.+^$?{}()|[\]\\]/g,"\\$&").replace(/\*/g,"(.*?)")}$`,"i"),c=new URL(t),l=a.test(c.origin+c.pathname);let d=!0,u=!0;if(s){d=new RegExp(`^#${s.replace(/[.+^$?{}()|[\]\\]/g,"\\$&").replace(/\*/g,"(.*?)")}$`,"i").test(c.hash||"")}if(o){const e=o.split("&"),t=new URLSearchParams(c.search);u=e.every((e=>{const[n,r]=e.split("="),i=r?new RegExp(`^${r.replace(/[.+^$?{}()|[\]\\]/g,"\\$&").replace(/\*/g,"(.*?)")}$`,"i"):null;return t.has(n)&&(!i||i.test(t.get(n)))}))}return l&&u&&d}catch(e){return(0,s.A)(e),!1}},c=function(e,t){try{let n=RegExp(e,"i").test(t);return n||(n=RegExp(e,"i").test(decodeURI(t))),n}catch(e){return(0,s.A)(e),!1}},l=function(e,t,n,l,d,u){const{stringify:h}=CE2.Native.JSON,p=/(default|index)($|\..*)/i;let g,f,m,E,v,C,y,w=!1;if(""===e&&""===t)return!0;if(!e||!t)return!1;if(l&&l.indexOf(CE2.clock.getDeviceType())<0)return o(u,`device=${CE2.clock.getDeviceType()} allowed=${h(l)}`,y),!1;if(/n/.test(n=n||""))return y=e.trim()===t.trim(),o(u,`name=${t} allowed=${e}`,y),y;if(/go/.test(n)){const n=e.split(".");return y=t&&t[n[1]]==n[2],o(u,`googleOptimize=${h(t)} allowed=${h(e)}`,y),y}const _=[t];try{const e=new URL(t),n=e.pathname,r=e.search,{hash:i}=e;if(n.endsWith("/")){const t=n.slice(0,-1);_.push(e.origin+t+r+i)}n.endsWith("/")||_.push(`${e.origin}${n}/${r}${i}`);const s=n.replace(p,"");if(s!==n&&(_.push(e.origin+s+r+i),s.endsWith("/"))){const t=s.slice(0,-1);_.push(e.origin+t+r+i)}const o=[..._];for(let e=0;e{if(D[t]!==e)return w=!0,!1})),w)return o(u,`querystring=${h(D)} allowed=${h(O)}`),!1;if(E&&((0,r.__)(D,((e,t)=>{if(e!=O[t])return w=!0})),w))return o(u,`querystring=${h(D)} allowed=strict|${h(O)}`),!1;const x=e.hash||"",P=S.hash||"";return E=/#/.test(n),(E||x)&&x!=P?(o(u,`hash=${P} allowed=${x}`),!1):(o(u,`url=${t}`,!0),!0)},d=e=>{let t,n;if(e&&e.length)for(t=0;n=e[t++];)if(l(n.u,CE2.w.location.href,n.o))return!0;return!1}},2886:(e,t,n)=>{"use strict";n.d(t,{Ap:()=>u,B5:()=>O,DQ:()=>W,Ep:()=>I,GE:()=>x,GO:()=>B,I3:()=>A,IS:()=>L,Jl:()=>s.O,KT:()=>g,LB:()=>C,OR:()=>y,Qb:()=>R,R2:()=>_,Rc:()=>M,Ri:()=>w,UO:()=>D,Wb:()=>N,Xe:()=>c,Yj:()=>b,_3:()=>v,__:()=>p,ch:()=>g,ex:()=>$,hZ:()=>m,ib:()=>V,jI:()=>Y,jM:()=>E,ne:()=>z,o:()=>S,oI:()=>F,ou:()=>l,pQ:()=>f,q5:()=>h,uh:()=>k,x4:()=>d});var r=n(2559),i=n(3380),s=n(2759),o=n(4451);let a;const c=e=>{if(!e)return;CE2.state.ignoredElements.push(e);const{tracker:t}=CE2;t&&t.ignoredElements.push(e)},l=function(){return"undefined"!=typeof CE_TEST_MODE&&CE_TEST_MODE},d=e=>{try{return decodeURIComponent(e)}catch(t){return CE2.w.unescape(e)}},u=e=>{if(CE2.Native.Array.isArray(e))for(let t=0;t{if(null==e||/^\s*$/.test(e))return null;const n={},r=e.replace(/\+/g," ").split(t||"&");let i,s,o=null,a=null,c=null;const l=Object.getOwnPropertyNames(Object.prototype);for(i=0,s=r.length;i{if(!e)return;let r;if("number"==typeof e.length&&"function"==typeof e.concat)for(let i=0,s=e.length;i{e.addEventListener(t,n,!0)},f=(e,t,n)=>{e.removeEventListener(t,n,!0)},m=(e,t)=>{(e=parseInt(e,10))>=1&&e<=5&&(CE2.state.userData[e]=String(t));const{tracker:n}=CE2;n&&n.sendCustomUserData&&n.sendCustomUserData()},E=(...e)=>{const{tracker:t}=CE2;if(t)return t.click(...e)},v=e=>null==e.r||(!1!==e.r&&!0!==e.r&&(Math.random()>=1/e.r?((0,i.Yz)(`Snapshot ${e.id} not selected due to snapshot sampling: ${e.r}`),e.r=!1):e.r=!0),e.r),C=(e,t,n,r)=>{if(!0===CE2.data.dnt)return!1;if(r&&void 0!==e.external)try{if(!0===e.external.InPrivateFilteringEnabled())return!0}catch(e){}const i=t.doNotTrack||n.doNotTrack||n.msDoNotTrack||e.doNotTrack;return"1"==i||"yes"==i},y=function(){try{return h(o.Ew.read(),/;\s*/g)||{}}catch(e){return{}}},w=function(e){return y()[e]},_=function(){const{w:e}=CE2;if(!CE2.state._tlDomain){const t=CE2.w.location.hostname;if(r.re.ipHost.test(t)||!/\./.test(t))CE2.state._tlDomain=t;else if(e.CE_COOKIE_DOMAIN&&new RegExp(`(^|\\.)${e.CE_COOKIE_DOMAIN.replace(/\./g,"\\.")}$`,"i").test(t))CE2.state._tlDomain=`.${e.CE_COOKIE_DOMAIN}`;else if(CE2.site?.cookieDomain)CE2.state._tlDomain=`.${CE2.site.cookieDomain}`;else{let e;const n=t.split(".");for(e=n.length-1;e>=0;e--){const t=`.${n.slice(e).join(".")}`;if(k("_ce.gtld",t)){CE2.state._tlDomain=t;break}}}}return CE2.state._tlDomain},S=function(e,t,n){n||(n={});const r=encodeURIComponent,i=n.path||"/",s=n.domain||_();let a=null;n.expires?a=n.expires:n.expiresIn?a=new Date((new Date).getTime()+1e3*n.expiresIn):n.expiresInDays&&(a=new Date((new Date).getTime()+86400*n.expiresInDays*1e3)),null==t&&(a=new Date(0),t="");const c=[`${r(e)}=${r(t)}`];c.push(`path=${i}`),CE2.w.parent!==CE2.w&&"https:"===CE2.w.location.protocol?(c.push("SameSite=None"),c.push("Secure")):(c.push("SameSite=Strict"),CE2.data&&CE2.data.use_secure_cookies&&c.push("Secure")),s&&c.push(`domain=${s}`),a&&c.push(`expires=${a.toUTCString()}`),o.Ew.write(c.join(";"),{key:e,value:`${r(e)}=${r(t)};`})},b=function(e,t){S(e,null,t)},k=(e,t)=>{S(e,"1",{domain:t});const n=o.Ew.read();return!!(n&&n.indexOf&&n.indexOf(e)>-1)&&(b(e,{domain:t}),!0)},I=()=>new CE2.URL((()=>{let{referrer:e}=CE2.d;try{!e&&CE2.d.location.ancestorOrigins&&([e]=CE2.d.location.ancestorOrigins)}catch(e){(0,i.Yz)("Referer error",e)}return e})()).getDomain(),T=e=>{const t=CE2.d.createElement("a");return t.href=`http://${e}/`,t.hostname},N=e=>{let t,n;for(n=0;t=e[n++];)if(i=T(t.name),s=CE2.w.location.hostname,r.re.ipHost.test(i)?i===s:s.toLowerCase().endsWith(i.toLowerCase())||s.toLowerCase().endsWith(`.${i.toLowerCase}`))return t;var i,s},A=function(e,t,n=!1){if("undefined"==typeof CE_USER_COMMON_SCRIPT_URL)return void(0,i.Yz)("Inline Worker is not supported: CE_USER_SCRIPT_URL not defined");if("undefined"==typeof CE_USER_THIRDPARTY_SCRIPT_URL)return void(0,i.Yz)("Inline Worker is not supported: CE_USER_THIRDPARTY_SCRIPT_URL not defined");const r=[],s=["CE_DEBUG","CE_TEST_MODE"];for(let e=0;e{}),!0);e?(e.terminate(),CE2.state._inws=!0):CE2.state._inws=!1}catch(e){CE2.state._inws=!1}return CE2.state._inws},D=function(e,t,n=!1){try{return A(e,t,n)}catch(e){(0,i.Yz)(`Inline Worker is not supported: ${e.message}`)}},O=(e,t,n)=>(n&&(t+=`,${t} *`),e.matches(t)),x=function(e){if("undefined"==typeof window)return CE2.s[e];try{const t="ce_proto_iframe";let n=document.getElementById(t);return n||(n=document.createElement("iframe"),n.id=t,n.title="CrazyEgg Tracking iframe",n.style.display="none",document.documentElement.appendChild(n)),n.contentWindow[e]}catch(t){return(0,i.Yz)("Clean Prototype error",t),window[e]}},P=function(e){return!!e&&(a||(a=x("Function")),/\{\s+\[native code\]/.test(a.prototype.toString.call(e)))},V=function(e){let t=Object.getOwnPropertyNames(e);for(let n=0,r=t;n{const{tracker:n}=CE2;n&&n.customEvent&&n.customEvent(e,t)},L=e=>CE2.tracker?.[e];let U;const M=(e=null)=>{U=e||performance.now()},H=["utm_source","utm_medium","utm_term","utm_content","utm_campaign"],z=e=>{let t,n=!1;const r=[];if(t=new CE2.URL(e||window.location.href).qs)for(let e=0;e{"use strict";n.d(t,{mc:()=>h,hh:()=>m,vJ:()=>f,Ew:()=>g,mr:()=>l,VK:()=>d,fY:()=>u});var r=n(3201),i=n(3380);class s{constructor(e){this.storeName=e,CE2.w&&CE2.w.indexedDB&&(this.dbPromise=this.openDB())}get isAvailable(){return!!CE2.w.indexedDB}async openDB(){return new Promise((e=>{const t=CE2.w.indexedDB.open(this.storeName,1);t.onupgradeneeded=e=>{const t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName,{keyPath:"id"})},t.onsuccess=t=>{const n=t.target.result;e(n)},t.onerror=t=>{(0,i.Yz)(`error opening database ${t.target?.errorCode}`),e()}}))}async readAll(){if(this.dbPromise)return this.dbPromise.then((e=>e?new Promise(((t,n)=>{let r=e.transaction([this.storeName],"readonly");const s=r.objectStore(this.storeName);r=s.getAll(),r.onsuccess=e=>{t(e.target.result)},r.onerror=function(e){(0,i.Yz)(`error opening database ${e.target.errorCode}`),n(e.target)}})):[]))}async store(e){if(this.dbPromise)return this.dbPromise.then((t=>{if(t)return new Promise(((n,r)=>{const s=t.transaction([this.storeName],"readwrite"),o=s.objectStore(this.storeName);s.onsuccess=e=>{n(e.target.result)},s.onerror=function(e){(0,i.Yz)(`error storing records ${e.target.errorCode}`),r(e.target)},e.forEach((e=>{o.put(e)}))}))}))}async clear(){if(this.dbPromise)return this.dbPromise.then((e=>{if(e)return new Promise(((t,n)=>{let r=e.transaction([this.storeName],"readwrite");const s=r.objectStore(this.storeName);r=s.clear(),r.onsuccess=e=>{t(e.target.result)},r.onerror=function(e){(0,i.Yz)(`error clearing store ${e.target.errorCode}`),n(e.target)}}))}))}}const o="cec",a={STANDARD:"standard",DELAYED:"delayed"},c=new r.v;function l(){return Object.values(a).includes(CE2.w?.CE_COOKIE_MODE)?CE2.w.CE_COOKIE_MODE:a.STANDARD}function d(){if(l()===a.STANDARD)return!0;const e=CE2.d.cookie.split("; ").map((e=>e.split("="))).find((e=>e[0]===o));return e&&"1"===e[1]}function u(...e){const t=2===e.length&&e[0],n=2===e.length?e[1]:e[0];return(...e)=>"function"==typeof t&&n&&t(...e)||d()?n(...e):void c.once("consent",(t=>{t&&n(...e)}))}class h{constructor(e){this.storeName=e,this.state=[],c.on("consent",(e=>{e&&this.sync()}))}async readAll(){return d()?this.instance().readAll():this.state}async store(e){return d()?this.instance().store(e):this.state=e}async clear(){d()?await this.instance().clear():this.state={}}async sync(){await this.instance().store(this.state)}instance(){return this.db?this.db:this.db=new s(this.storeName)}}class p{constructor(e){c.on("consent",(e=>{e&&this.sync()})),this.state={},this.prototype=e}write(e,t){d()?this.prototype.setItem(e,t):this.state[e]=t}read(e){return d()?this.prototype.getItem(e):this.state[e]}remove(e){d()?this.prototype.removeItem(e):delete this.state[e]}sync(){Object.keys(this.state).forEach((e=>{this.prototype.setItem(e,this.state[e])}))}clear(){this.state={}}}const g=new class{constructor(){CE2BH.defineProperty(this,"currentValue",{}),CE2BH.defineProperty(this,"currentFullValue",{})}write(e,{key:t,value:n}){return d()?CE2.d.cookie=e:n.endsWith("=;")?(delete this.currentFullValue[t],void delete this.currentValue[t]):(this.currentFullValue[t]=e,void(this.currentValue[t]=n))}read(){return d()?CE2.d.cookie:Object.values(this.currentValue).join(" ")}sync(){Object.values(this.currentFullValue).forEach((e=>{CE2.d.cookie=e})),this.currentFullValue={},this.currentValue={}}};function f(e){CE2.state.consent=!!e,c.emit("consent",!!e),CE2.state.consent?(g.write(`${o}=1;`,{key:o,value:"1"}),g.sync()):(g.write(`${o}=;max-age=31536000;`,{key:o,value:""}),g.sync()),(0,i.Yz)(`[Loading] Cookie consent=${CE2.state.consent}`)}function m(e){return new p(e)}},3487:(e,t,n)=>{"use strict";n.d(t,{CT:()=>o,Gw:()=>a,H$:()=>h,MN:()=>l,og:()=>p,ur:()=>u,uw:()=>c});var r=n(1789);const i={intToStr:{},strToInt:{}},s=[],o=e=>"string"==typeof e?e:i&&i.intToStr?i.intToStr[e]:void 0,a=e=>{"number"==typeof e.nid&&"string"==typeof e.id&&(e.nid in i.intToStr||(i.intToStr[e.nid]=e.id,i.strToInt[e.id]=e.nid))},c=(e,t,n)=>r.r.nextGoalConversionValue(e,t,n),l=e=>r.r.setCurrency(e),d=(e,t,n,r)=>{const s="number"==typeof(o=t)?o:i&&i.strToInt?i.strToInt[o]:void 0;var o;"number"==typeof s?e.goalConversion({goalId:s,value:n,triggerId:r||s}):e.codeConversion(t,n)},u=e=>{let t;for(;t=s.shift();)t.dynamic?(delete t.dynamic,e.dynamicGoalConversion(t)):d(e,...t)},h=(e,t,n)=>{CE2.tracker?d(CE2.tracker,e,t,n):s.push([e,t,n])},p=({name:e,value:t}={})=>{CE2.tracker?CE2.tracker.dynamicGoalConversion({name:e,value:t}):s.push({dynamic:!0,name:e,value:t})}},1789:(e,t,n)=>{"use strict";n.d(t,{r:()=>l});var r=n(8856),i=n(8e3);const s="gtrk.cnv",o="gtrk.la",a="gtrk.ngv",c="gtrk.c",l={get:e=>i.i.get(e),set:(e,t)=>i.i.set(e,t),del:e=>i.i.del(e),reset(){this.del(s),this.del(o)},alive(){this.isExpired()&&this.reset(),this.set(o,(+new Date).toString(36))},isExpired(){const e=parseInt(this.get(o),36);return!!e&&new Date-e>18e5},getConvertedIds(){if(this.isExpired())return[];const e=this.get(s);return e?e.split(",").map((e=>String(e).startsWith("dyn-")?e:parseInt(e,36))).filter((e=>String(e).startsWith("dyn-")||!Number.isNaN(Number(e)))):[]},recordConversion({goalId:e,dynamicId:t}){if(e&&("number"!=typeof e||Number.isNaN(Number(e))))return;if("string"==typeof t&&!t.startsWith("dyn-"))return;const n=this.getConvertedIds();n.includes(e)||n.includes(t)||(r.A.emit("complete",{goal:{id:e}}),n.push(e||t),this.set(s,n.map((e=>String(e).startsWith("dyn-")?e:e.toString(36))).join(",")))},alreadyConverted(e){return this.getConvertedIds().includes(e)},setCurrency(e){this.set(c,e)},getCurrency(){return this.get(c)},nextGoalConversionValue(e,t,n){let r=this.get(a);r=r?CE2.Native.JSON.parse(r):{};const i=r[e]&&r[e].findIndex((e=>e.triggerId==n));i&&!t?r[e][i].splice(i,1):Number.isInteger(i)&&t?r[e][i]={value:t,triggerId:n}:t&&(r[e]||(r[e]=[]),r[e].push({value:t,triggerId:n})),this.set(a,CE2.Native.JSON.stringify(r))},getNextGoalConversionValue(e,t=null){let n=this.get(a);n=n?CE2.Native.JSON.parse(n):{};let r=n[e]&&n[e].findIndex((e=>e.triggerId==t)),i=n[e]&&n[e][r];i||(r=n[e]&&n[e].findIndex((e=>!e.triggerId)),i=n[e]&&n[e][r]);const s=this.getCurrency();if(i&&!i.value.currency&&s&&(i.value.currency=s),n[e]&&(n[e].splice(r,1),0===n[e].length&&delete n[e]),this.set(a,CE2.Native.JSON.stringify(n)),i)return i.value}}},2080:(e,t,n)=>{"use strict";n.d(t,{O:()=>o,s:()=>s});var r=n(7471),i=n(3380);function s(e){if("string"!=typeof e)return NaN;const t=e.lastIndexOf(","),n=e.lastIndexOf(".");let r,i=e.replace(/[^0-9.,]/g,"");if(t>-1&&n>-1)r=t>n?",":".";else if(t>-1||n>-1){const e=t>-1?",":".",n=i.split(e);2===n.length&&n[1].length<3&&(r=e)}return r?(i=i.replace(new RegExp(`[^0-9\\${r}]`,"g"),""),i=i.replace(new RegExp(`\\${r}`),".")):i=i.replace(/[^0-9]/g,""),parseFloat(i)}class o{constructor(e,t=[]){this.goals=(e||[]).filter((e=>{if(!e.triggers)return!1;for(let t=0,n=e.triggers;t{const r=s(t.innerText);if("number"!=typeof r||Number.isNaN(r))return;const a={worth:r,currency:c};(0,i.Yz)("[Goals] Goal target value detected",{goal:n,trigger:o,original:t.innerText,value:a}),a&&e({type:"goalValue",value:a,goal:n,trigger:o})}))}}}}initMutationObserver(){this.mutationObserver||this.goals.length&&(this.mutationObserver=new MutationObserver(this.onMutation.bind(this)),this.mutationObserver.observe(CE2.d,{subtree:!0,childList:!0,characterData:!0}))}onMutation(e){for(let t=0;t{"use strict";function r(){return CE2.tracker}function i(e){if(!e)return;CE2.IDENTIFIER=e;const t=r();t?t?.identify(e):CE2.visitorTracker&&CE2.visitorTracker.identify(e)}function s(){CE2.IDENTIFIER=null;const e=r();e?e.clearIdentity():CE2.visitorTracker&&CE2.visitorTracker.clearIdentity()}function o(e,t){const n=r();n?.increaseSessionWorth(e,t)}function a(e,t){const n=r();n?.decreaseSessionWorth(e,t)}function c(e,t){const n=r();n?.setSessionWorth(e,t)}n.d(t,{LG:()=>c,LV:()=>a,SY:()=>s,ls:()=>i,vn:()=>o})},9910:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(7866),i=n(1509);class s{constructor(){this.trackURL=CE2.data.v11_tracking_dest,this.visitor=CE2.visitorTracker,this.visitorID=CE2.visitorTracker.getId(),this.bufferQueue=[],this.bufferQueueTimeout,this.bufferTimeoutInterval=CE2.data.buffer_timeout_interval||2e3}makeId(){return(0,r.M4)(0,1)}newEvent(e,t={}){const n=t.attributes||[];for(let e=0;e{this.processBuffer({scheduleTimeout:e.scheduleTimeout,sendBeacon:e.sendBeacon})}),this.bufferTimeoutInterval))}}},7471:(e,t,n)=>{"use strict";n.d(t,{DM:()=>o,V4:()=>s,_9:()=>c});var r=n(6677),i=n(6149);const s=(e,t,{debugCallback:n}={})=>{let r="";return e.indexOf("*")>-1&&(r="*"),(0,i.$)(e,t,r,null,null,n)},o={visited_page(e,{debugCallback:t}={}){const n=CE2.w.location.href;return s(e,n,{debugCallback:t})},device:e=>(0,r.D)(e),referrer(e,{debugCallback:t}={}){const n=CE2.d.referrer;return n===e&&""===n||s(e,n,{debugCallback:t})}},a=(e,{debugCallback:t,operand:n}={})=>{for(let r=0,i=e.values;r{"use strict";n.r(t),n.d(t,{ABTest:()=>r.ABTest,ADDON_SCRIPT_VERSION:()=>r.ADDON_SCRIPT_VERSION,CE_API:()=>r.CE_API,CommonEventHandlers:()=>r.CommonEventHandlers,Emitter:()=>r.Emitter,ExitIntent:()=>r.ExitIntent,FormData:()=>r.FormData,Goal:()=>r.Goal,IndexedDB:()=>r.IndexedDB,JSON:()=>r.JSON,NativeURL:()=>r.NativeURL,Preview:()=>r.Preview,READY_STATE_PATTERN:()=>r.READY_STATE_PATTERN,Tracker:()=>r.Tracker,URL:()=>r.URL,addListener:()=>r.addListener,addTag:()=>r.addTag,addToCart:()=>r.addToCart,applyVersion:()=>l,benchmark:()=>r.benchmark,benchmarkEnabled:()=>r.benchmarkEnabled,botDetector:()=>r.botDetector,buildRedirectUrl:()=>s.aQ,checkoutCompleted:()=>r.checkoutCompleted,clearIdentity:()=>r.clearIdentity,click:()=>r.click,consent:()=>r.consent,converted:()=>r.converted,convertedFromFlow:()=>o.Vg,cookieStorage:()=>r.cookieStorage,customEvent:()=>r.customEvent,debug:()=>r.debug,debug2:()=>r.debug2,debug2Enabled:()=>r.debug2Enabled,debugEnabled:()=>r.debugEnabled,debugError:()=>r.debugError,decreaseSessionWorth:()=>r.decreaseSessionWorth,deleteCookie:()=>r.deleteCookie,domReadySetup:()=>r.domReadySetup,each:()=>r.each,errorTracking:()=>r.errorTracking,fixTriggerSelector:()=>o.XJ,forceVariantID:()=>o.Y1,get:()=>r.get,getCensoredElements:()=>r.getCensoredElements,getCookie:()=>r.getCookie,getCookieMode:()=>r.getCookieMode,getCookies:()=>r.getCookies,getLastFlow:()=>r.getLastFlow,getSegmentTracker:()=>r.getSegmentTracker,getSession:()=>r.getSession,getSessionId:()=>r.getSessionId,getStoredVariant:()=>o.TV,getVariant:()=>o.IX,getVariantOverride:()=>o.aS,goalConversion:()=>r.goalConversion,goalIdString:()=>r.goalIdString,hasFeature:()=>r.hasFeature,http:()=>r.http,hudMain:()=>r.hudMain,identify:()=>r.identify,ignore:()=>r.ignore,increaseSessionWorth:()=>r.increaseSessionWorth,initFlowTracking:()=>o.ed,invoke:()=>s.lA,isBot:()=>r.isBot,isConsent:()=>r.isConsent,listen:()=>r.listen,loadAddonScript:()=>r.loadAddonScript,loadAddonThirdpartyScript:()=>r.loadAddonThirdpartyScript,loadHUD:()=>r.loadHUD,matchURL:()=>r.matchURL,matchURLSimple:()=>s.pm,matchesAddon:()=>r.matchesAddon,matchesLegacyOrSegments:()=>r.matchesLegacyOrSegments,matchesSelector:()=>r.matchesSelector,matchesTrigger:()=>r.matchesTrigger,nextGoalConversionValue:()=>r.nextGoalConversionValue,notifyError:()=>r.notifyError,onDOMReady:()=>r.onDOMReady,pagesTracker:()=>r.pagesTracker,parseNumberString:()=>r.parseNumberString,promisePool:()=>r.promisePool,remoteLog:()=>r.remoteLog,removeListener:()=>r.removeListener,resetSession:()=>r.resetSession,set:()=>r.set,setCurrency:()=>r.setCurrency,setRecordingsSamplingRate:()=>r.setRecordingsSamplingRate,setSessionWorth:()=>r.setSessionWorth,showCTA:()=>r.showCTA,showFeedbackSurvey:()=>r.showFeedbackSurvey,showSurvey:()=>r.showSurvey,startCheckout:()=>r.startCheckout,startRecording:()=>r.startRecording,stopRecording:()=>r.stopRecording,testModeCheck:()=>r.testModeCheck,traceLog:()=>r.traceLog,trackSurveyResponse:()=>r.trackSurveyResponse,transformation:()=>i.s,triggerAddons:()=>r.triggerAddons,userDataMain:()=>r.userDataMain,userMainTestMode:()=>r.userMainTestMode,uuid_v1:()=>r.uuid_v1,variant:()=>u,writeCookie:()=>r.writeCookie});var r=n(6119),i=n(862),s=n(5971),o=n(1782);class a extends Array{push(...e){return super.push(...e),this.sort(((...e)=>this.sortByPriorityAndDate(...e)))}getSegmentPriority(e){if(!e)return 4;try{const t=JSON.parse(e);return t.conditions?.some((e=>"query_param"===e.criteria))||t.conditions?.some((e=>["utm_source","utm_medium","utm_term","utm_content","utm_campaign"].includes(e.criteria)))?1:t.conditions?.some((e=>"referrer"===e.criteria))?2:t.conditions?.some((e=>"new_or_returning"===e.criteria))?3:4}catch(e){return 4}}sortByPriorityAndDate(e,t){if(!e.published_at&&!t.published_at)return new Date(t.created_at)-new Date(e.created_at);if(!e.published_at)return 1;if(!t.published_at)return-1;if(e.segment&&!t.segment)return-1;if(!e.segment&&t.segment)return 1;const n=this.getSegmentPriority(e.segment),r=this.getSegmentPriority(t.segment);return n!==r?n-r:new Date(t.published_at)-new Date(e.published_at)}}var c=n(474);function l(){if(CE2.data.page_versions){const e=(0,c.MH)(),t=CE2.data.page_versions.filter((t=>(0,s.pm)(t.url)&&(!t.segment||e.match(JSON.parse(t.segment))))),n=(new a).push(...t)[0];n&&(CE2.versionDetails=n,(0,o.kN)(n))}}var d=n(2886);const u={choose(e){const t=Math.random();let n,r=0;if((0,d.__)(e,(e=>(r+=e.weight,!(t"control"!==e.type||(t=e,!1))),t}}},1782:(e,t,n)=>{"use strict";n.d(t,{kN:()=>L,Vg:()=>O,XJ:()=>P,Y1:()=>T,TV:()=>R,IX:()=>x,aS:()=>D,ed:()=>U,P5:()=>$});var r=n(2886),i=n(3380);n(7866);const s=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",n={};var r={compressToBase64:function(e){if(null==e)return"";var n=r._compress(e,6,(function(e){return t.charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:r._decompress(e.length,32,(function(r){return function(e,t){if(!n[e]){n[e]={};for(var r=0;r>=1}else{for(i=1,r=0;r>=1}0==--u&&(u=Math.pow(2,p),p++),delete a[d]}else for(i=o[d],r=0;r>=1;0==--u&&(u=Math.pow(2,p),p++),o[l]=h++,d=String(c)}if(""!==d){if(Object.prototype.hasOwnProperty.call(a,d)){if(d.charCodeAt(0)<256){for(r=0;r>=1}else{for(i=1,r=0;r>=1}0==--u&&(u=Math.pow(2,p),p++),delete a[d]}else for(i=o[d],r=0;r>=1;0==--u&&(u=Math.pow(2,p),p++)}for(i=2,r=0;r>=1;for(;;){if(f<<=1,m==t-1){g.push(n(f));break}m++}return g.join("")},decompress:function(e){return null==e?"":""==e?null:r._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var i,s,o,a,c,l,d,u=[],h=4,p=4,g=3,f="",m=[],E={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)u[i]=i;for(o=0,c=Math.pow(2,2),l=1;l!=c;)a=E.val&E.position,E.position>>=1,0==E.position&&(E.position=n,E.val=r(E.index++)),o|=(a>0?1:0)*l,l<<=1;switch(o){case 0:for(o=0,c=Math.pow(2,8),l=1;l!=c;)a=E.val&E.position,E.position>>=1,0==E.position&&(E.position=n,E.val=r(E.index++)),o|=(a>0?1:0)*l,l<<=1;d=e(o);break;case 1:for(o=0,c=Math.pow(2,16),l=1;l!=c;)a=E.val&E.position,E.position>>=1,0==E.position&&(E.position=n,E.val=r(E.index++)),o|=(a>0?1:0)*l,l<<=1;d=e(o);break;case 2:return""}for(u[3]=d,s=d,m.push(d);;){if(E.index>t)return"";for(o=0,c=Math.pow(2,g),l=1;l!=c;)a=E.val&E.position,E.position>>=1,0==E.position&&(E.position=n,E.val=r(E.index++)),o|=(a>0?1:0)*l,l<<=1;switch(d=o){case 0:for(o=0,c=Math.pow(2,8),l=1;l!=c;)a=E.val&E.position,E.position>>=1,0==E.position&&(E.position=n,E.val=r(E.index++)),o|=(a>0?1:0)*l,l<<=1;u[p++]=e(o),d=p-1,h--;break;case 1:for(o=0,c=Math.pow(2,16),l=1;l!=c;)a=E.val&E.position,E.position>>=1,0==E.position&&(E.position=n,E.val=r(E.index++)),o|=(a>0?1:0)*l,l<<=1;u[p++]=e(o),d=p-1,h--;break;case 2:return m.join("")}if(0==h&&(h=Math.pow(2,g),g++),u[d])f=u[d];else{if(d!==p)return null;f=s+s.charAt(0)}m.push(f),u[p++]=s+f.charAt(0),s=f,0==--h&&(h=Math.pow(2,g),g++)}}};return r}(),o={PACK_SIZE_LIMIT:65535,CK:"_CEFT",VARIANT_OVERRIDE_KEY:"ceft_variant_override",load(){if(this.values)return;const e={},t=this.decompress((0,r.Ri)(this.CK));let n,i;if(t){for(n=0;i=t[n];n+=2)e[i]=t[n+1];this.values=e,this.save()}else this.values={}},getCookieRawValue(){const e=this.values||{},t=[];return(0,r.__)(e,((e,n)=>{t.push(n),t.push(e)})),this.compress(t)},save(){(0,r.o)(this.CK,this.getCookieRawValue(),{expiresInDays:365})},get(e){return this.load(),this.values[e]},set(e,t,n){this.load(),this.values[e]=`${t}`,n||o.save()},del(e){let t,n,r;if(this.load(),e&&"function"==typeof e.test)for(t=[],this.each(((e,n)=>{t.push(n)}),e),n=0;r=t[n++];)delete this.values[r];else delete this.values[e];this.save()},each(e,t){this.load(),(0,r.__)(this.values,((n,r)=>{(null==t||t.test(r))&&e.call(null,n,r)}))},packStrings(e){let t="";const n=this.PACK_SIZE_LIMIT;let r,i,s,o;for(r=0,i=e.length;rn&&(s=s.substr(0,n)),t+=String.fromCharCode(o),t+=s;return t},unpackStrings(e){const t=[];let n=0;const r=e.length;let i;for(;n{t.callback=n,t.flow="ab",(0,c.sendEvents)(this.buildTrackerOptions(t),[e])}))}}let d;function u(){return d||(d=new l(CE2.site)),d}const h={view:(e,t)=>u().abTestView(e,t),conversion:(e,t,n,r)=>u().abTestConversion(e,t,n,r)};var p=n(6677),g=n(2484),f=n(3487),m=n(1807),E=n(474),v=n(4808);async function C(e){if(CE2.w.dataLayer||(CE2.w.dataLayer=[]),(CE2.w.CE_GTM_CONFIG?.version||1)>=2){const t=await async function(){if(CE2.Native.Array.isArray(CE2.w.CE_GTM_CONFIG?.gaPropertyIds))return CE2.w.CE_GTM_CONFIG.gaPropertyIds;"complete"!==CE2.d.readyState&&await new Promise((e=>{CE2.w.addEventListener("load",e)}));const e=[];for(let t=0,n=CE2.d.querySelectorAll('script[src*="/gtag/"]');t ${n.crazyegg_variant_name}`),n}(n,r);!function(e){if("function"!=typeof CE2.w.gtag)return!1;if(!CE2.Native.Array.isArray(CE2.w.dataLayer))return!1;const t=CE2.w.dataLayer.findIndex((e=>e&&"js"===e[0]));if(t<0)return!1;const n=CE2.w.dataLayer[t+1];!n||"config"!==n[0]||CE2.w.gtag("event","crazyegg_variant_view",e)}(i),await C(i)}catch(e){(0,v.A)(e)}}const w="initiated",_="loaded",S="transformed",b="https://core.crazyegg.com",k={},I=e=>{const t=CE2.w.location.search.replace(/^\?/,"").split("&");for(let n=0;nI("ce2ForceVariant"),N=()=>"1"===I("ce2SkipRedirectVariant"),A=()=>{(0,r.__)(CE2.data.flows,((e,t)=>{if(e.id)return!1;e.id=t,(0,r.__)(e.variants,((e,t)=>{e.id=t}))}))},R=e=>{const t=`viewed:${encodeURIComponent(e)}`,n=o.get(t);return n?CE2.visitorTracker.returningState().reset?((0,m.D8)(),o.del(t),null):CE2.data.flows[e].variants[n]:null},D=function(e){const t=(0,r.Ri)(o.VARIANT_OVERRIDE_KEY);return void 0===t?null:""==t?CE2.variant.getControlVariant(CE2.data.flows[e].variants):CE2.data.flows[e].variants[t]},O=(e,t)=>{const n=CE2.goalIdString(e)||e,r=encodeURIComponent,i=/^viewed:/;o.each(((s,a)=>{const c=decodeURIComponent(a.replace(i,"")),l=`converted:${r(c)}:${r(n)}`;!o.get(l)&&CE2.flows[c]&&CE2.flows[c].variants[s]&&(h.conversion(c,s,e,t),o.set(l,"1"))}),i)},x=function(e){A();let t=CE2.getVariantOverride(e);if(t)return{variant:t,recordView:!1};const n=CE2.data.flows[e];return"running"!==n.status?{variant:CE2.variant.getControlVariant(n.variants),recordView:!1}:(t=CE2.getStoredVariant(e),t?{variant:t,recordView:!1,stored:!0}:CE2.data.page_views_limit_reached?{variant:CE2.variant.getControlVariant(n.variants),recordView:!1}:{variant:CE2.variant.choose(n.variants),recordView:!0})},P=(e,t)=>{if(!k||!(e in k))return t;const{variant:n}=k[e];return((e,t)=>{let n=e;if(t.redirectUrl)return e;if(!t.transforms.default||t.transforms.default.length<1)return e;for(let e=0,r=t.transforms.default.length;e((0,i.Yz)("[Flows] Store view",{flowID:e,variantID:t}),o.set(`viewed:${encodeURIComponent(e)}`,t),(0,m.W2)(e,t),y(e,t),h.view(e,t)),$=async()=>{let e;const[t,n,r,s]=(0,g.Fi)();window.opener&&window.opener.postMessage({status:w},b);const o=CE2.w.location.hostname;if(s&&s!==o&&!o.endsWith(`.${s}`))return null;const{flow:a}=await((e,t)=>new Promise(((n,r)=>{const{data:i}=CE2,s=`${i.flow_preview_url}?token=${e}.${t}&user=${encodeURIComponent(i.uid)}&host=${encodeURIComponent(CE2.w.location.hostname)}`;(0,c.get)(s,(e=>{e&&200===e.status&&e.responseText?n(CE2.Native.JSON.parse(e.responseText.trim())):r(new Error("Preview flow not found"))}))})))(t,n);if(!a)return(0,i.Yz)("[Flows] [Preview] Flow not found",{flowId:n});window.opener&&window.opener.postMessage({status:_},b);for(let t=0,n=Object.keys(a.variants);t{CE2.benchmark.start(`navigation|crazyegg|common|flowtracking|${a}`),c&&function(e){(0,r.o)(o.VARIANT_OVERRIDE_KEY,e)}(c);const{variant:l,recordView:d,stored:u}=CE2.getVariant(a);CE2.benchmark.start(`navigation|crazyegg|common|flowtracking|${a}|${l.id}`);const h=((e,t,n)=>{let r;return t?(r=!!e.variants[t],r||n.push({flow:e,forcedVariantID:t,goal:e.goal,result:r,message:"no match forcedVariantID"}),r):(0,E.mF)({resourceType:"ab_test",resourceId:e.realId},(()=>(0,p.D)(e.deviceTypes)?(r=CE2.invoke(e.match),r||n.push({flow:e,forcedVariantID:t,goal:e.goal,result:r,message:"no match"}),r):(r=!1,n.push({flow:e,devices:e.deviceTypes,result:r,message:"wrong device"}),r)))})(s,c,t);if(s.goal&&l&&(u||h)&&((e,t)=>{(0,f.Gw)(e),k[e.nid]={goal:e,variant:t}})(s.goal,l),!h||!l)return;const m={id:a,deviceType:{1:"desktop",2:"phone",3:"tablet"}[CE2.clock.getDeviceType()]},v="patch"===l.type||"variant"===l.type?"variant":"control";if("variant"===v&&(CE2.flowPatchApplied=!0),g.Ay.emit("variant",{test:m,variant:{id:l.id,type:v}}),e={flow:s,variant:l},"control"!==v){if(l.redirectUrl){const e=CE2.buildRedirectUrl(l.redirectUrl,CE2.w.location.href,s.match&&s.match[1]);return e&&!CE2.matchURL(e,CE2.w.location.href)&&(t.push({flow:s,variant:l,goal:s.goal,result:!0,message:"redirecting"}),d?V(a,l.id).then((()=>{N()?(0,i.Yz)("[Flows] Skipping redirect due to ce2SkipRedirectVariant",e):CE2.w.location=e})):N()?(0,i.Yz)("[Flows] Skipping redirect due to ce2SkipRedirectVariant",e):CE2.w.location=e),!1}L(l,e)}d&&V(a,l.id),t.push({flow:s,variant:l,goal:s.goal,result:!0,message:"starting flow"}),CE2.benchmark.stop(`navigation|crazyegg|common|flowtracking|${a}|${l.id}`),CE2.benchmark.stop(`navigation|crazyegg|common|flowtracking|${a}`),n.push(e)})),(0,i.Yz)("[Flows] Matching target",t),CE2.data.data_url&&!0!==CE2.state.do_not_show_ab_test&&setTimeout((()=>{(0,i.Yz)("[Flows] show hidden variants");const{host:e}=new URL(CE2.data.data_url),t=`link[href*="${e}/pages/abtests"]`;document.querySelectorAll(t).forEach((e=>{(0,i.Yz)("[Flows] remove node",{href:e.href}),e.remove()}))}),10),CE2.benchmark.stop("navigation|crazyegg|common|flowtracking"),n}catch(e){(0,v.A)(e)}}},862:(e,t,n)=>{"use strict";n.d(t,{s:()=>f});var r=n(3380),i=n(2886),s=n(1509),o=n(8773),a=n(401),c=n(1305),l=n.n(c),d=n(8737);const u=function(e,t){const n=l()(e),r=(new DOMParser).parseFromString(t,"text/html");let i=r.body.firstChild;"HTML"===e.tagName?i=r.documentElement:"BODY"===e.tagName&&(i=r.body);const s=l()(i),o=(0,d.diff)(n,s);(0,d.patch)(e,o)};function h(e,t){const n=e.cloneNode();n.innerHTML=t;const r=l()(e),i=l()(n),s=(0,d.diff)(r,i);(0,d.patch)(e,s)}var p=n(5971);let g=0;const f={TIME_INTERVAL:250,LONG_TIME_INTERVAL:1e3,RETRY_LIMIT:3e4,render(e,t,n){if(!e)return;let r;(t=t||{}).id||(t.id=++g),t.urlListener||f.createURLListener(e,t,n),t.index||(t.index=0),t.totalApplied||(t.totalApplied=0);const i=n?.flow?.patchStrategy;if("async"===i&&t.index===e.length&&t.totalApplied!=e.length)return t.index=0,void f.reschedule(e,t,n);if("all-or-none"===i&&!t.allTargetsAvailable&&(t.allTargetsAvailable=f.checkAllTargetsAvailable(e),!t.allTargetsAvailable))return void f.reschedule(e,t,n);const s=e[t.index],o=!t.dynamicNode||document.body.contains(t.dynamicNode);let c;if(n?.flow&&n?.variant&&s?.target){let e;s?.type?e=s.type:s?.state?e="state":s?.hide?e="hide":s?.html?e="html":s?.style?e="style":s?.move&&(e="move"),c=[`navigation|crazyegg|common|flowtracking|${n.flow.id}|${n.variant.id}|${(0,a.F)(s.target).substring(0,6)}`,[`type=${e}`,`target=${s.target}`]],CE2.benchmark.start(...c)}if(s&&o){if(s.applied)return t.index++,void f.render(e,t,n);r=f.transform(s,n,t),s.applied=r,f.addUnloadEventListener(e,t,n),r?(t.index++,t.totalApplied++,delete t.startTime,t.totalApplied>=e.length?"function"==typeof t.onComplete&&t.onComplete(n):f.render(e,t,n)):"async"==i?(t.index++,f.render(e,t,n)):f.reschedule(e,t,n),c&&CE2.benchmark.stop(...c)}},getId:e=>`transformed_${e?.id}`,createURLListener(e,t,n){if("undefined"!=typeof window){const r=()=>window.location.pathname;t.location||(t.location=r());let i=r();const s=new MutationObserver((s=>{setTimeout((()=>{const o=t.totalApplied>=e.length,a=r();let c=!1;if(a===t.location&&s.forEach((n=>{n.addedNodes.forEach((n=>{n.nodeType===Node.ELEMENT_NODE&&e.forEach((e=>{if(e.target&&e.applied){const r=document.querySelectorAll(e.target);Array.from(r).some((e=>e===n||n.contains(e)))&&(e.applied=!1,c=!0,t.totalApplied=Math.max(0,t.totalApplied-1))}}))}))})),a!==t.location){const e=document.head.querySelector("style[ce-flow-state-style]"),n=document.head.querySelector("style[ce-flow-global-style]");e&&(t.stateStyle=e,e.remove()),n&&(t.globalStyle=n,n.remove())}else t.stateStyle&&document.head.appendChild(t.stateStyle),t.globalStyle&&document.head.appendChild(t.globalStyle);if(i!==a&&(i=a,a===t.location))for(let n=0;n!e[f.getId(t)])).length>0)&&(c=!0,r.applied=!1,t.totalApplied--)}c&&(t.index=0,delete t.startTime,o&&f.render(e,t,n))}),100)}));t.urlListener=s,f.observeUrlChanges(s)}},observeUrlChanges(e){e&&e.observe(document,{childList:!0,subtree:!0})},checkAllTargetsAvailable(e){return e.every((e=>e.target?!!CE2.d.querySelector(e.target):!!e.children&&this.checkAllTargetsAvailable(e.children)))},addUnloadEventListener(e,t,n){!t.addedUnloadListener&&n&&"undefined"!=typeof window&&(t.addedUnloadListener=!0,(0,i.KT)(window,"beforeunload",(()=>{if(e.length!==t.totalApplied&&t.startTime){const r=e.find((e=>!e.applied));if(r){const e=!!n.flow,i=e?"variants":"edits",a=e?n.variant.variantId:n.edit.id,c={selector:r.target};console.log("unable to apply all edits",n,t.index);const l=`//${new o.j(CE2.data.ce_app_url).getHost()}/user-script/${i}/${a}/failure`;(0,s.sendForm)(l,c,{sendBeacon:!0})}}})))},observeDynamicElements(e,t){let n;const r=[Node.TEXT_NODE,Node.COMMENT_NODE],s=Object.keys(e);new MutationObserver((o=>{o.forEach((o=>{let a;for(let c=0;a=o.addedNodes[c++];)if(document.body.contains(a))for(let o=0;n=s[o++];)"string"!=typeof e[n]&&!r.includes(a.nodeType)&&(0,i.B5)(a,n)&&f.render(e[n],{dynamicNode:a},t)}))})).observe(document,{childList:!0,subtree:!0})},transform(e,t,n){if(e.children){e.scheduled||(e.scheduled=!0,f.render(e.children,{},t));return e.children.every((e=>e.applied))}const s=CE2.d.querySelectorAll(e.target);if(0===s.length)return!1;(0,r.Yz)("[Transform] Applying",e);try{if(n?.urlListener&&n.urlListener.disconnect(),e.state)f.setStateStyle(e);else for(let t=0;t{"_"!=e.attr[t]?o.setAttribute(t,e.attr[t]):o.removeAttribute(t)}));else if(e.text)h(o,e.text);else if(e.hide)o.style.setProperty("display","none","important");else if(e.html)try{u(o,e.html)}catch(t){(0,r.Yz)("[Transform] Patch failed, using outer html"),o.outerHTML=e.html}else if(e.style)(0,i.__)(e.style,((e,t)=>{o.style.setProperty((0,p._k)(t),e)}));else if(e.move){const[t,n]=e.move;let r=n;t{f.render(e,t,n)}),i)},setStateStyle(e){let t=document.head.querySelector("style[ce-flow-state-style]"),n={};t&&(n=CE2.Native.JSON.parse(CE2.Native.JSON.stringify(t.elStates)),t.remove()),n[e.target]=CE2BH.extends(n[e.target]||{},e.state),t=document.createElement("style"),t.elStates=n,t.setAttribute("ce-flow-state-style",""),t.setAttribute("type","text/css"),document.head.appendChild(t);let r="";(0,i.__)(n,((e,t)=>{(0,i.__)(e,((e,n)=>{let s="";(0,i.__)(e,((e,t)=>{s+=`\n ${(0,p._k)(t)}: ${e} !important;\n `}));r+=`\n ${t}${"default"===n?"":`:${n}`} {\n ${s}\n }\n `}))})),t.innerText=r||""},applyStyle(e,t){let n;t&&(n=`navigation|crazyegg|common|flowtracking|applystyle-${t.flow.id}-${t.variant.id}`,CE2.benchmark.start(n));let r=document.head.querySelector("style[ce-flow-global-style]");r&&r.remove(),r=document.createElement("style"),r.setAttribute("ce-flow-global-style",""),r.setAttribute("type","text/css"),document.head.appendChild(r),r.innerText=e||"",n&&CE2.benchmark.stop(n)},executeScript(e,t){let n;t&&(n=`navigation|crazyegg|common|flowtracking|executescript-${t.flow.id}-${t.variant.id}`,CE2.benchmark.start(n));let r=document.head.querySelector("script[ce-flow-global-script]");r&&r.remove(),r=document.createElement("script"),r.setAttribute("ce-flow-global-script",""),r.setAttribute("type","text/javascript"),r.innerText=e||"",document.head.appendChild(r),n&&CE2.benchmark.stop(n)}}},5971:(e,t,n)=>{"use strict";n.d(t,{_k:()=>a,aQ:()=>s,lA:()=>i,pm:()=>o});var r=n(6149);const i=function(e){if(e){if("function"==typeof e)return e();if("number"==typeof e.length&&"function"==typeof CE2[e[0]])return CE2[e[0]](...e.slice(1))}},s=(e,t,n)=>{const r=new URL(t);let i=e;if(e.includes("*")){const r=!n||t.match(new RegExp(n.replace(/([\?])/g,"\\$1").replaceAll("*","([^?&]+)"))),s=r?r.slice(1):[];let o=0,a=!0;if(i=e.replace(/\*/g,(()=>{const e=s[o];if("string"==typeof e)return o+=1,e;a=!1})),!a)return!1}const s=new URL(i);for(let e=0,t=[...r.searchParams.entries()];e"string"==typeof e?e.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase().replace(/[ _]/g,"-"):e},8922:function(e,t,n){var r;!function(i){"use strict";function s(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,t,n,r,i,o){return s((a=s(s(t,e),s(r,o)))<<(c=i)|a>>>32-c,n);var a,c}function a(e,t,n,r,i,s,a){return o(t&n|~t&r,e,t,i,s,a)}function c(e,t,n,r,i,s,a){return o(t&r|n&~r,e,t,i,s,a)}function l(e,t,n,r,i,s,a){return o(t^n^r,e,t,i,s,a)}function d(e,t,n,r,i,s,a){return o(n^(t|~r),e,t,i,s,a)}function u(e,t){var n,r,i,o,u;e[t>>5]|=128<>>9<<4)]=t;var h=1732584193,p=-271733879,g=-1732584194,f=271733878;for(n=0;n>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+r.charAt(15&t);return i}function f(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return h(u(p(e),8*e.length))}(f(e))}function E(e,t){return function(e,t){var n,r,i=p(e),s=[],o=[];for(s[15]=o[15]=void 0,i.length>16&&(i=u(i,8*e.length)),n=0;n<16;n+=1)s[n]=909522486^i[n],o[n]=1549556828^i[n];return r=u(s.concat(p(t)),512+8*t.length),h(u(o.concat(r),640))}(f(e),f(t))}function v(e,t,n){return t?n?E(t,e):function(e,t){return g(E(e,t))}(t,e):n?m(e):g(m(e))}void 0===(r=function(){return v}.call(t,n,t,e))||(e.exports=r)}()},8274:e=>{e.exports=function(e){var t,n=String.prototype.split,r=/()??/.exec("")[1]===e;return t=function(t,i,s){if("[object RegExp]"!==Object.prototype.toString.call(i))return n.call(t,i,s);var o,a,c,l,d=[],u=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":""),h=0;i=new RegExp(i.source,u+"g");for(t+="",r||(o=new RegExp("^"+i.source+"$(?!\\s)",u)),s=s===e?-1>>>0:s>>>0;(a=i.exec(t))&&!((c=a.index+a[0].length)>h&&(d.push(t.slice(h,a.index)),!r&&a.length>1&&a[0].replace(o,(function(){for(var t=1;t1&&a.index=s));)i.lastIndex===a.index&&i.lastIndex++;return h===t.length?!l&&i.test("")||d.push(""):d.push(t.slice(h)),d.length>s?d.slice(0,s):d},t}()},914:(e,t,n)=>{"use strict";n(8015)("ev-store","7");var r="__EV_STORE_KEY@7";e.exports=function(e){var t=e[r];t||(t=e[r]={});return t}},9697:(e,t,n)=>{var r,i=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},s=n(542);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=s),e.exports=r},98:(e,t,n)=>{"use strict";var r="undefined"!=typeof window?window:void 0!==n.g?n.g:{};e.exports=function(e,t){if(e in r)return r[e];return r[e]=t,t}},8015:(e,t,n)=>{"use strict";var r=n(98);e.exports=function(e,t,n){var i="__INDIVIDUAL_ONE_VERSION_"+e,s=r(i+"_ENFORCE_SINGLETON",t);if(s!==t)throw new Error("Can only have one copy of "+e+".\nYou already have version "+s+" installed.\nThis means you cannot install version "+t);return r(i,n)}},7203:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&null!==e}},2208:(e,t,n)=>{var r=n(7247);e.exports=r},5098:(e,t,n)=>{var r=n(353);e.exports=r},9985:(e,t,n)=>{var r=n(8429);e.exports=r},8737:(e,t,n)=>{var r=n(5098),i=n(311),s=n(9985),o=n(2208),a=n(1978),c=n(9637);e.exports={diff:r,patch:i,h:s,create:o,VNode:a,VText:c}},311:(e,t,n)=>{var r=n(4434);e.exports=r},1676:(e,t,n)=>{var r=n(7203),i=n(758);function s(e,t,n,r){if(r){var s=r[t];if(i(s))s.unhook&&s.unhook(e,t,n);else if("attributes"===t)for(var o in s)e.removeAttribute(o);else if("style"===t)for(var a in s)e.style[a]="";else e[t]="string"==typeof s?"":null}}function o(e,t,n,i,s){var o=n?n[i]:void 0;if("attributes"!==i)if(o&&r(o)&&a(o)!==a(s))e[i]=s;else{r(e[i])||(e[i]={});var c="style"===i?"":void 0;for(var l in s){var d=s[l];e[i][l]=void 0===d?c:d}}else for(var u in s){var h=s[u];void 0===h?e.removeAttribute(u):e.setAttribute(u,h)}}function a(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}e.exports=function(e,t,n){for(var a in t){var c=t[a];void 0===c?s(e,a,c,n):i(c)?(s(e,a,c,n),c.hook&&c.hook(e,a,n?n[a]:void 0)):r(c)?o(e,t,n,a,c):e[a]=c}}},7247:(e,t,n)=>{var r=n(9697),i=n(1676),s=n(7649),o=n(5570),a=n(3507),c=n(4253);e.exports=function e(t,n){var l=n&&n.document||r,d=n?n.warn:null;if(t=c(t).a,a(t))return t.init();if(o(t))return l.createTextNode(t.text);if(!s(t))return d&&d("Item is not a valid virtual dom node",t),null;var u=null===t.namespace?l.createElement(t.tagName):l.createElementNS(t.namespace,t.tagName),h=t.properties;i(u,h);for(var p=t.children,g=0;g{var t={};function n(e,i,s,o,a){if(o=o||{},e){r(s,a,a)&&(o[a]=e);var c=i.children;if(c)for(var l=e.childNodes,d=0;d=t&&i<=n;if(in))return!0;o=r-1}}return!1}function i(e,t){return e>t?1:-1}e.exports=function(e,t,r,s){return r&&0!==r.length?(r.sort(i),n(e,t,r,s,0)):{}}},7512:(e,t,n)=>{var r=n(1676),i=n(3507),s=n(7646),o=n(2296);function a(e,t){"function"==typeof t.destroy&&i(t)&&t.destroy(e)}e.exports=function(e,t,n){var i=e.type,c=e.vNode,l=e.patch;switch(i){case s.REMOVE:return function(e,t){var n=e.parentNode;n&&n.removeChild(e);return a(e,t),null}(t,c);case s.INSERT:return function(e,t,n){var r=n.render(t,n);e&&e.appendChild(r);return e}(t,l,n);case s.VTEXT:return function(e,t,n,r){var i;if(3===e.nodeType)e.replaceData(0,e.length,n.text),i=e;else{var s=e.parentNode;i=r.render(n,r),s&&i!==e&&s.replaceChild(i,e)}return i}(t,0,l,n);case s.WIDGET:return function(e,t,n,r){var i,s=o(t,n);i=s?n.update(t,e)||e:r.render(n,r);var c=e.parentNode;c&&i!==e&&c.replaceChild(i,e);s||a(e,t);return i}(t,c,l,n);case s.VNODE:return function(e,t,n,r){var i=e.parentNode,s=r.render(n,r);i&&s!==e&&i.replaceChild(s,e);return s}(t,0,l,n);case s.ORDER:return function(e,t){for(var n,r,i,s=e.childNodes,o={},a=0;a=c++?null:s[i.to])}(t,l),t;case s.PROPS:return r(t,l,c.properties),t;case s.THUNK:return function(e,t){e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e);return t}(t,n.patch(t,l,n));default:return t}}},4434:(e,t,n)=>{var r=n(9697),i=n(1786),s=n(7247),o=n(5009),a=n(7512);function c(e,t,n){var i=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(t);if(0===i.length)return e;var s=o(e,t.a,i),a=e.ownerDocument;n.document||a===r||(n.document=a);for(var c=0;c{var r=n(3507);e.exports=function(e,t){if(r(e)&&r(t))return"name"in e&&"name"in t?e.id===t.id:e.init===t.init;return!1}},8160:e=>{"use strict";function t(e,n){if(!(this instanceof t))return new t(e,n);this.namespace=e,this.value=n}e.exports=t,t.prototype.hook=function(e,t,n){n&&"AttributeHook"===n.type&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS(this.namespace,t,this.value)},t.prototype.unhook=function(e,t,n){if(!n||"AttributeHook"!==n.type||n.namespace!==this.namespace){var r=t.indexOf(":"),i=r>-1?t.substr(r+1):t;e.removeAttributeNS(this.namespace,i)}},t.prototype.type="AttributeHook"},3827:(e,t,n)=>{"use strict";var r=n(914);function i(e){if(!(this instanceof i))return new i(e);this.value=e}e.exports=i,i.prototype.hook=function(e,t){r(e)[t.substr(3)]=this.value},i.prototype.unhook=function(e,t){r(e)[t.substr(3)]=void 0}},889:e=>{"use strict";function t(e){if(!(this instanceof t))return new t(e);this.value=e}e.exports=t,t.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)}},8429:(e,t,n)=>{"use strict";var r=n(1786),i=n(1978),s=n(9637),o=n(7649),a=n(5570),c=n(3507),l=n(758),d=n(6811),u=n(9027),h=n(889),p=n(3827);function g(e,t,n,i){if("string"==typeof e)t.push(new s(e));else if("number"==typeof e)t.push(new s(String(e)));else if(f(e))t.push(e);else{if(!r(e)){if(null==e)return;throw a={foreignObject:e,parentVnode:{tagName:n,properties:i}},(c=new Error).type="virtual-hyperscript.unexpected.virtual-element",c.message="Unexpected virtual child passed to h().\nExpected a VNode / Vthunk / VWidget / string but:\ngot:\n"+m(a.foreignObject)+".\nThe parent vnode is:\n"+m(a.parentVnode),c.foreignObject=a.foreignObject,c.parentVnode=a.parentVnode,c}for(var o=0;o{"use strict";var r=n(8274),i=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,s=/^\.|#/;e.exports=function(e,t){if(!e)return"DIV";var n,o,a,c,l=!t.hasOwnProperty("id"),d=r(e,i),u=null;s.test(d[1])&&(u="DIV");for(c=0;c{var r=n(7649),i=n(5570),s=n(3507),o=n(6811);function a(e,t){var n=e.vnode;if(n||(n=e.vnode=e.render(t)),!(r(n)||i(n)||s(n)))throw new Error("thunk did not return a valid node");return n}e.exports=function(e,t){var n=e,r=t;o(t)&&(r=a(t,e));o(e)&&(n=a(e,null));return{a:n,b:r}}},6811:e=>{e.exports=function(e){return e&&"Thunk"===e.type}},758:e=>{e.exports=function(e){return e&&("function"==typeof e.hook&&!e.hasOwnProperty("hook")||"function"==typeof e.unhook&&!e.hasOwnProperty("unhook"))}},7649:(e,t,n)=>{var r=n(3084);e.exports=function(e){return e&&"VirtualNode"===e.type&&e.version===r}},5570:(e,t,n)=>{var r=n(3084);e.exports=function(e){return e&&"VirtualText"===e.type&&e.version===r}},3507:e=>{e.exports=function(e){return e&&"Widget"===e.type}},3084:e=>{e.exports="2"},1978:(e,t,n)=>{var r=n(3084),i=n(7649),s=n(3507),o=n(6811),a=n(758);e.exports=d;var c={},l=[];function d(e,t,n,r,d){this.tagName=e,this.properties=t||c,this.children=n||l,this.key=null!=r?String(r):void 0,this.namespace="string"==typeof d?d:null;var u,h=n&&n.length||0,p=0,g=!1,f=!1,m=!1;for(var E in t)if(t.hasOwnProperty(E)){var v=t[E];a(v)&&v.unhook&&(u||(u={}),u[E]=v)}for(var C=0;C{var r=n(3084);function i(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}i.NONE=0,i.VTEXT=1,i.VNODE=2,i.WIDGET=3,i.PROPS=4,i.ORDER=5,i.INSERT=6,i.REMOVE=7,i.THUNK=8,e.exports=i,i.prototype.version=r,i.prototype.type="VirtualPatch"},9637:(e,t,n)=>{var r=n(3084);function i(e){this.text=String(e)}e.exports=i,i.prototype.version=r,i.prototype.type="VirtualText"},6142:(e,t,n)=>{var r=n(7203),i=n(758);function s(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}e.exports=function e(t,n){var o;for(var a in t){a in n||((o=o||{})[a]=void 0);var c=t[a],l=n[a];if(c!==l)if(r(c)&&r(l))if(s(l)!==s(c))(o=o||{})[a]=l;else if(i(l))(o=o||{})[a]=l;else{var d=e(c,l);d&&((o=o||{})[a]=d)}else(o=o||{})[a]=l}for(var u in n)u in t||((o=o||{})[u]=n[u]);return o}},353:(e,t,n)=>{var r=n(1786),i=n(7646),s=n(7649),o=n(5570),a=n(3507),c=n(6811),l=n(4253),d=n(6142);function u(e,t){var n={a:e};return h(e,t,n,0),n}function h(e,t,n,r){if(e!==t){var l=n[r],u=!1;if(c(e)||c(t))f(e,t,n,r);else if(null==t)a(e)||(p(e,n,r),l=n[r]),l=C(l,new i(i.REMOVE,e,t));else if(s(t))if(s(e))if(e.tagName===t.tagName&&e.namespace===t.namespace&&e.key===t.key){var g=d(e.properties,t.properties);g&&(l=C(l,new i(i.PROPS,e,g))),l=function(e,t,n,r,o){for(var a=e.children,c=function(e,t){var n=v(t),r=n.keys,i=n.free;if(i.length===t.length)return{children:t,moves:null};var s=v(e),o=s.keys;if(s.free.length===e.length)return{children:t,moves:null};for(var a=[],c=0,l=i.length,d=0,u=0;u=i.length?t.length:i[c],f=0;f=g&&a.push(m)}for(var C,y=a.slice(),w=0,_=[],S=[],b=0;bu?d:u,g=0;g{var t=Array.isArray,n=Object.prototype.toString;e.exports=t||function(e){return"[object Array]"===n.call(e)}},542:()=>{}},e=>{var t,n=(t=3626,e(e.s=t)),r=CE2="undefined"==typeof CE2?{}:CE2;for(var i in n)r[i]=n[i];n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})}]);if(CE2.benchmark.start("navigation|crazyegg|common"),CE2.benchmark.start("navigation|crazyegg|common|start"),CE2.start=function(){CE2.domReadySetup(),CE2.onDOMReady(()=>{CE2.benchmark.stop("navigation|crazyegg|common|start"),CE2.userDataMain()})},CE2.data&&CE2.data.error_tracking)try{CE2.debug("[Loading] Starting Error Tracking"),CE2.errorTracking.listen()}catch(a){CE2.debug(a)}CE2.autoStart?CE2.start():CE2.debug("[Loading] Autostart disabled"),"function"==typeof CE_READY?CE2.onDOMReady(CE_READY):"object"==typeof CE_READY&&CE2.onDOMReady(()=>{CE2.each(CE_READY,a=>{if("function"==typeof a)try{a()}catch(a){CE2.debug("[Loading] CE2.userMain error:"),CE2.debug(a)}})});