!function(){"use strict";class t{t;o=0;i=[];u(t){if(t.hadRecentInput)return;const e=this.i[0],n=this.i.at(-1);this.o&&e&&n&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(this.o+=t.value,this.i.push(t)):(this.o=t.value,this.i=[t]),this.t?.(t)}}const e=()=>{const t=performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart{if("loading"===document.readyState)return"loading";{const n=e();if(n){if(t{const e=t.nodeName;return 1===t.nodeType?e.toLowerCase():e.toUpperCase().replace(/^#/,"")},r=t=>{let e="";try{for(;9!==t?.nodeType;){const n=t,r=n.id?"#"+n.id:[i(n),...Array.from(n.classList).sort()].join(".");if(e.length+r.length>99)return e||r;if(e=e?r+">"+e:r,n.id)break;t=n.parentNode}}catch{}return e},o=new WeakMap;function s(t,e){return o.get(t)||o.set(t,new e),o.get(t)}let a=-1;const c=()=>a,u=t=>{addEventListener("pageshow",e=>{e.persisted&&(a=e.timeStamp,t(e))},!0)},h=(t,e,n,i)=>{let r,o;return s=>{e.value>=0&&(s||i)&&(o=e.value-(r??0),(o||void 0===r)&&(r=e.value,e.delta=o,e.rating=((t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good")(e.value,n),t(e)))}},l=t=>{requestAnimationFrame(()=>requestAnimationFrame(()=>t()))},d=()=>{const t=e();return t?.activationStart??0},f=(t,n=-1)=>{const i=e();let r="navigate";return c()>=0?r="back-forward-cache":i&&(document.prerendering||d()>0?r="prerender":document.wasDiscarded?r="restore":i.type&&(r=i.type.replace(/_/g,"-"))),{name:t,value:n,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},p=(t,e,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const i=new PerformanceObserver(t=>{Promise.resolve().then(()=>{e(t.getEntries())})});return i.observe({type:t,buffered:!0,...n}),i}}catch{}},g=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let m=-1;const v=new Set,y=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,w=t=>{if("hidden"===document.visibilityState){if("visibilitychange"===t.type)for(const t of v)t();isFinite(m)||(m="visibilitychange"===t.type?t.timeStamp:0,removeEventListener("prerenderingchange",w,!0))}},L=()=>{if(m<0){const t=d(),e=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(e=>"hidden"===e.name&&e.startTime>t)[0]?.startTime;m=e??y(),addEventListener("visibilitychange",w,!0),addEventListener("prerenderingchange",w,!0),u(()=>{setTimeout(()=>{m=y()})})}return{get firstHiddenTime(){return m},onHidden(t){v.add(t)}}},C=t=>{document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},b=[1800,3e3],M=(t,e={})=>{C(()=>{const n=L();let i,r=f("FCP");const o=p("paint",t=>{for(const e of t)"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime{r=f("FCP"),i=h(t,r,b,e.reportAllChanges),l(()=>{r.value=performance.now()-n.timeStamp,i(!0)})}))})},B=[.1,.25],x=t=>t.find(t=>1===t.node?.nodeType)||t[0];let z=0,D=1/0,S=0;const T=t=>{for(const e of t)e.interactionId&&(D=Math.min(D,e.interactionId),S=Math.max(S,e.interactionId),z=S?(S-D)/7+1:0)};let _;const A=()=>_?z:performance.interactionCount??0;let P=0;class I{l=[];h=new Map;m;p;v(){P=A(),this.l.length=0,this.h.clear()}M(){const t=Math.min(this.l.length-1,Math.floor((A()-P)/50));return this.l[t]}u(t){if(this.m?.(t),!t.interactionId&&"first-input"!==t.entryType)return;const e=this.l.at(-1);let n=this.h.get(t.interactionId);if(n||this.l.length<10||t.duration>e.T){if(n?t.duration>n.T?(n.entries=[t],n.T=t.duration):t.duration===n.T&&t.startTime===n.entries[0].startTime&&n.entries.push(t):(n={id:t.interactionId,entries:[t],T:t.duration},this.h.set(n.id,n),this.l.push(n)),this.l.sort((t,e)=>e.T-t.T),this.l.length>10){const t=this.l.splice(10);for(const e of t)this.h.delete(e.id)}this.p?.(n)}}}const j=t=>{const e=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?t():(t=g(t),addEventListener("visibilitychange",t,{once:!0,capture:!0}),e(()=>{t(),removeEventListener("visibilitychange",t,{capture:!0})}))},q=[200,500];class H{m;u(t){this.m?.(t)}}const N=[2500,4e3],E=[800,1800],k=t=>{document.prerendering?C(()=>k(t)):"complete"!==document.readyState?addEventListener("load",()=>k(t),!0):setTimeout(t)},U="",O="1",V="0",K="p",Z="a",X="m",R="t",G="m",Y="a",W="p",J="s";function F(t){try{return decodeURIComponent(t)}catch(t){return""}}function $(t,e=!1){const n=function(){try{return document.cookie}catch{return!1}}()?document.cookie.split("; "):[];for(let e=0;e"_cmp"===t.name);let i=null==n?void 0:n.description;if(!i)return;try{i=decodeURIComponent(i)}catch{}return i}catch{return}}();if(void 0!==t)return function(t){if("%"==t.slice(0,1))try{t=decodeURIComponent(t)}catch{}const e=t.slice(0,1);if("{"==e)return function(t){var e;let n;try{n=JSON.parse(t)}catch{return}if("2.1"!==n.v)return;if(null===(e=n.con)||void 0===e||!e.CMP)return;return n}(t);if("3"==e)return function(t){const e=t.slice(1).split("_"),[n,i,r,o,s]=e;let a,c;try{a=e[5]?JSON.parse(e.slice(5).join("_")):void 0}catch{}if(s){const t=s.replace(/\*/g,"/").replace(/-/g,"+"),e=Array.from(atob(t)).map(t=>t.charCodeAt(0).toString(16).padStart(2,"0")).join("");c=[8,13,18,23].reduce((t,e)=>t.slice(0,e)+"-"+t.slice(e),e)}function u(t){const e=n.split(".")[0];return e.includes(t.toLowerCase())?V:e.includes(t.toUpperCase())?O:U}function h(t){return n.includes(t.replace("t","s").toUpperCase())}return{v:"3",con:{CMP:{[Y]:u(Y),[W]:u(W),[G]:u(G),[J]:u(J)}},region:i||"",cus:a,purposes:{[Z]:h(Z),[K]:h(K),[X]:h(X),[R]:h(R)},sale_of_data_region:"t"==o,display_banner:"t"==r,consent_id:c}}(t);return}(t)}function tt(){return function(t){const e=Q();if(!e||!e.purposes)return!0;const n=e.purposes[t];return"boolean"!=typeof n||n}(Z)}function et(){return tt()}function nt(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var it=0;function rt(t){return"__private_"+it+++"_"+t}function ot(t){return Object.entries(t).map(([t,e])=>({key:t,value:{stringValue:String(e)}}))}function st(t){if(Array.isArray(t))return{arrayValue:{values:t.map(t=>st(t))}};switch(typeof t){case"boolean":return{boolValue:Boolean(t)};case"number":return{doubleValue:Number(t)};default:return{stringValue:String(t)}}}const at=function(t,e,n){const i=[0];for(let r=0;r{switch(e.attributes={...nt(this,ut)[ut],...e.attributes},e.type){case"histogram":!function(t,e){var n;const{name:i,value:r,unit:o,timeUnixNano:s,attributes:a}=e,c=null!==(n=e.bounds)&&void 0!==n?n:at,u=new Array(c.length+1).fill(0);t[i]||={name:i,unit:o||"1",histogram:{aggregationTemporality:1,dataPoints:[]}};for(let t=0;t0?l:0,bucketCounts:i>0?[1]:[]};t[n].exponentialHistogram.dataPoints.push({attributes:ot(null!=s?s:{}),startTimeUnixNano:o,timeUnixNano:o,count:1,sum:c,scale:u,zeroCount:d,positive:p,negative:f,min:c,max:c,zeroThreshold:0})}(t,e);break;case"counter":!function(t,e){const{name:n,value:i,unit:r,timeUnixNano:o,attributes:s}=e;t[n]||={name:n,unit:r||"1",sum:{aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}},t[n].sum.dataPoints.push({startTimeUnixNano:o,timeUnixNano:o,asDouble:i,attributes:ot(null!=s?s:{})})}(t,e);break;case"gauge":!function(t,e){const{name:n,value:i,unit:r,timeUnixNano:o,attributes:s}=e;t[n]||={name:n,unit:r||"1",gauge:{dataPoints:[]}},t[n].gauge.dataPoints.push({startTimeUnixNano:o,timeUnixNano:o,asDouble:i,attributes:ot(null!=s?s:{})})}(t,e)}});const e=Object.values(t);0!==e.length&&(nt(this,ht)[ht]=[],await nt(this,ct)[ct].exportMetrics(e))}async exportLogs(){const t=nt(this,lt)[lt].map(t=>{const e={timeUnixNano:t.timeUnixNano,observedTimeUnixNano:t.timeUnixNano,attributes:(n={...nt(this,ut)[ut],...t.attributes},Object.entries(n).map(([t,e])=>({key:t,value:st(e)})))};var n;return t.body&&(e.body={stringValue:t.body}),e});0!==t.length&&(nt(this,lt)[lt]=[],await nt(this,ct)[ct].exportLogs(t))}}var ft=rt("url"),pt=rt("serviceName"),gt=rt("logger"),mt=rt("fetchFn");class vt{constructor(t,e,n){Object.defineProperty(this,ft,{writable:!0,value:void 0}),Object.defineProperty(this,pt,{writable:!0,value:void 0}),Object.defineProperty(this,gt,{writable:!0,value:void 0}),Object.defineProperty(this,mt,{writable:!0,value:void 0}),nt(this,ft)[ft]=t.replace(/\/v1\/(logs|metrics|traces)\/?$/,""),nt(this,pt)[pt]=e,nt(this,gt)[gt]=null==n?void 0:n.logger,nt(this,mt)[mt]=null==n?void 0:n.fetchFn}async exportMetrics(t){await this.exportBatches("/v1/metrics",[...t],t=>({resourceMetrics:[{resource:{attributes:[{key:"service.name",value:{stringValue:nt(this,pt)[pt]}}]},scopeMetrics:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},metrics:t}]}]}))}async exportLogs(t){await this.exportBatches("/v1/logs",[...t],t=>({resourceLogs:[{resource:{attributes:[{key:"service.name",value:{stringValue:nt(this,pt)[pt]}}]},scopeLogs:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},logRecords:t}]}]}))}async exportTo(t,e){var n;const i=JSON.stringify(t),r=(new TextEncoder).encode(i).length;if(r>65536)throw new wt(`Payload size ${r} exceeds 65536 bytes`);const o=await this.exporterFetch()(`${nt(this,ft)[ft]}${e}`,{method:"POST",keepalive:!0,headers:{"Content-Type":"application/json"},body:i});if(null===(n=nt(this,gt)[gt])||void 0===n||n.log({status:o.status}),!o.ok){if(400===o.status){const t=await o.text();throw new yt(`Invalid OpenTelemetry Data: ${t}`)}if(429===o.status||503===o.status){const e=await o.text(),n=o.headers.get("Retry-After"),i=n?{seconds:Number(n)}:void 0;throw new yt("Server did not accept data",{errorData:e,retryAfter:i,body:t})}throw new yt(`Server responded with ${o.status}`)}}exporterFetch(){return nt(this,mt)[mt]||fetch}async exportBatches(t,e,n){let i=e.length;for(;e.length>0;)try{const r=e.slice(0,i);await this.exportTo(n(r),t),e.splice(0,i)}catch(t){if(!(t instanceof wt&&i>1))throw t;i=Math.ceil(i/2)}}}class yt extends Error{constructor(t,e){super(t),this.metadata=void 0,this.name="OpenTelemetryClientError",this.metadata=e}}class wt extends Error{constructor(...t){super(...t),this.name="PayloadTooLargeError"}}var Lt={name:"@shopify/human-signals",version:"1.4.3",description:"Human signal detection for bot vs human traffic analysis",type:"module",main:"dist/index.js",types:"dist/index.d.ts",source:"src/index.ts",files:["dist"],scripts:{build:"npx tsc",bundle:"pnpm build && rollup -c",test:"vitest run","test:watch":"vitest",lint:"eslint ./src",format:"prettier ./src --write","format:check":"prettier --check ./src"},author:"Shopify Inc.",license:"MIT",devDependencies:{"@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^16.0.1","@rollup/plugin-replace":"^6.0.2","@rollup/plugin-terser":"^0.4.4","@rollup/plugin-typescript":"^12.1.4","@shopify/eslint-plugin":"^50.0.0","@shopify/prettier-config":"^1.1.4","@types/node":"^24.1.0",eslint:"^9.31.0","javascript-obfuscator":"^4.1.1",jsdom:"^26.1.0",prettier:"^3.6.2",rollup:"^4.45.1","rollup-plugin-obfuscator":"^1.1.0",typescript:"^5.8.3",vitest:"^3.2.4"},dependencies:{"@shopify/opentelemetry-mini-client-private":"^1.6.0"},prettier:"@shopify/prettier-config"};function Ct(){var t=["mtyWv0H4tLLf","C3nT","ndyYmfjVEwPftG","mZvSqNv3re4","kcGOlISPkYKRksSK","DhnT","mZq4mZG3yNnLyLHT","mtC5ntu4me52rK9vBq","Dg9tDhjPBMC","mtznwNvgCfu","odqWodrSqwzisxi","yxbWBhK","A2jH","ndeXndyYDurOzu9M","mtaYnteXndrPDKrUq3e","y29UC3rYDwn0B3i","odiXnta3q1rWAuvb","BxnW","C2vHCMnO"];return(Ct=function(){return t})()}!function(t){var e=149,n=149,i=138,r=140,o=144,s=154,a=157,c=155,u=137,h=146,l=152,d=25;function f(t,e){return xt(t-d,e)}for(var p=t();;)try{if(858689===parseInt(f(e,n))/1+parseInt(f(142,141))/2*(parseInt(f(139,129))/3)+parseInt(f(143,i))/4+-parseInt(f(r,o))/5+-parseInt(f(s,a))/6*(parseInt(f(c,146))/7)+-parseInt(f(147,u))/8+parseInt(f(h,142))/9*(parseInt(f(l,159))/10))break;p.push(p.shift())}catch(t){p.push(p.shift())}}(Ct);var bt,Mt=(bt=!0,function(t,e){var n=bt?function(){if(e){var n=e[(i=-316,r=-308,xt(r- -427,i))](t,arguments);return e=null,n}var i,r}:function(){};return bt=!1,n}),Bt=Mt(this,function(){var t=441,e=448,n=315;function i(t,e){return xt(e-n,t)}return Bt[i(427,431)]()[i(434,t)](i(438,446))[i(429,431)]()[i(428,438)](Bt)[i(446,441)](i(e,446))});function xt(t,e){var n=Ct();return xt=function(e,i){var r=n[e-=113];if(void 0===xt.WTmLgI){var o=function(t){for(var e,n,i="",r="",s=i+o,a=0,c=0;n=t.charAt(c++);~n&&(e=a%4?64*e+n:n,a++%4)?i+=s.charCodeAt(c+10)-10!=0?String.fromCharCode(255&e>>(-2*a&6)):a:0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);for(var u=0,h=i.length;u=this.sampleRate))try{await this.otelClient.exportLogs()}catch(t){this.stdout&&console.log(`[SHS] Otel export logs failure: ${t}`)}}}!function(t){const e=187,n=201,i=153,r=39,o=135,s=247,a=291,c=281,u=221,h=86,l=110,d=172,f=266,p=60;function g(t,e){return kt(t- -676,e)}const m=t();for(;;)try{if(503753===-parseInt(g(-e,-n))/1+parseInt(g(-i,-r))/2+-parseInt(g(-o,-s))/3*(parseInt(g(-a,-c))/4)+parseInt(g(-u,-h))/5+-parseInt(g(-l,-200))/6*(-parseInt(g(-170,-255))/7)+-parseInt(g(-d,-f))/8+parseInt(g(-122,-p))/9)break;m.push(m.shift())}catch(t){m.push(m.shift())}}(qt);const Dt=function(){let t=!0;return function(e,n){const i=1052,r=715,o=t?function(){if(n){const s=n[(t=i,o=1107,kt(t-r,o))](e,arguments);return n=null,s}var t,o}:function(){};return t=!1,o}}(),St=Dt(this,function(){function t(t,e){return kt(e- -647,t)}return St[t(-274,-328)]()[t(-282,-282)](t(8,-122))[t(-397,-328)]()[t(-398,-270)](St)[t(-333,-282)](t(-160,-122))});St();const Tt=Xt(-481,-382),_t=Xt(-411,-336),At=Xt(-189,-227),Pt=Xt(-376,-254);class It{[Xt(-383,-414)];[Xt(-304,-375)];[Xt(-87,-197)];constructor(t,e,n){const i=689,r=531,o=744;function s(t,e){return Xt(e,t-941)}this[s(527,508)]=t,this[s(566,i)]={path:"/",sameSite:s(r,594),...e},this[s(o,713)]=n}async[Xt(-181,-209)](){const t=1011,e=1059,n=918,i=796,r=1053,o=1073,s=975,a=1053,c=1123,u=1185,h=1105,l=1017,d=1019,f=894,p=882,g=787,m=912,v=this[y(957,920)][y(t,e)];function y(t,e){return Xt(e,t-1332)}if(this[y(n,i)][y(r,o)])try{const t=await this[y(918,s)][y(a,1130)][y(c,u)]({name:v});return t?t[y(1001,h)]:null}catch(t){return this[y(l,d)](y(f,799)+t),this[y(p,g)]()}return this[y(882,m)]()}async[Xt(-400,-391)](t){const e=535,n=430,i=310,r=318,o=255,s=334,a=215,c=488,u=461,h=344,l=418,d=408,f=404,p=346,g=394,m=527,v=266,y=390,w=367,L=1463,C=1554,b=1373,M=709;function B(t,e){return Xt(t,e-M)}if(this[B(173,295)][B(e,430)])try{await this[B(226,295)][B(436,n)][B(i,r)]({name:this[B(o,s)][B(354,388)],value:t,path:this[B(a,s)][B(c,u)],maxAge:this[B(316,334)][B(648,516)],sameSite:this[B(h,334)][B(250,312)]?.[B(151,267)]()})[B(427,l)](e=>{function n(t,e){return B(e,t-940)}this[n(1334,1409)](n(L,C)+e),this[n(1330,b)](t)}),this[B(d,394)](B(f,p))}catch(e){this[B(431,g)](B(m,494)+e),this[B(v,y)](t)}else this[B(w,390)](t)}[Xt(-455,-450)](){function t(t,e){return Xt(t,e- -35)}const e=this[t(-400,-410)][t(-408,-356)],n=new RegExp(t(-314,-223)+e+t(-454,-393))[t(-320,-333)](this[t(-569,-449)][t(-410,-355)][t(-356,-276)]);return n?n[2]:null}[Xt(-202,-319)](t){const e=796,n=895,i=741,r=795,o=889,s=794,a=639,c=868,u=904,h=657,l=741,d=871,f=936,p=764,g=741,m=760,v=729,y=607;function w(t,e){return Xt(e,t-1116)}this[w(702,736)][w(e,665)][w(875,n)]=this[w(i,708)][w(r,o)]+"="+t+w(828,s)+this[w(741,a)][w(c,u)]+w(738,h)+this[w(l,d)][w(923,f)]+w(658,p)+this[w(g,m)][w(719,841)],this[w(801,796)](w(v,y))}[Xt(-185,-315)](t){const e=1243,n=1497;function i(t,e){return Xt(e,t-n)}this[i(1300,1431)][i(1207,e)](i(1305,1315)+t)}}const jt={document:document,navigator:typeof navigator!==Xt(-257,-379)?{get webdriver(){return navigator[(t=380,e=457,Xt(t,e-888))];var t,e},get userAgent(){return navigator[(t=503,e=577,Xt(e,t-833))];var t,e},get languages(){return navigator[(t=956,e=848,Xt(e,t-1297))];var t,e},get plugins(){return navigator[(t=291,e=317,Xt(e,t-626))];var t,e},sendBeacon:navigator[Xt(-277,-324)]?.[Xt(-243,-312)](navigator)}:{webdriver:void 0,userAgent:"",languages:[],plugins:[],sendBeacon:void 0},window:window,screen:screen,cookieStore:typeof window!==Xt(-394,-379)&&Xt(-287,-279)in window?window[Xt(-152,-279)]:void 0,performance:typeof performance!==Xt(-274,-379)?performance:void 0};function qt(){const t=["C2nYB2XSx2fJDgL2Axr5","B3jPz2LU","icbdBgLJAYbHy3rPDML0EtOG","Aw5UzxjizwLNAhq","Ahr0Chm6lY9VDgXWlwH0DhaTChjVzhvJDgLVBI5ZAg9WAwz5C3zJlMnVBq","DgvZDa","u2vZC2LVBIbZAwDUywXZihnHDMvK","Dw5KzwzPBMvK","oYbTyxGTywDLpq","Aw5PDa","ue9tva","B3b0Aw9UCW","Bw92zq","yMvHy29Urw5KCg9PBNq","re9nq29UDgvUDeXVywrLza","tM8GC2LNBMfSignOyw5NzxmGzgv0zwn0zwqGyw5Kig1HEcbZAwXLBMnLihrPBwuGBM90ihjLywnOzwqSigjLywnVBIbUB3qGC2vUDa","C2nYB2XS","C3rHDhvZ","C2vUzejLywnVBIbYzxr1CM5LzcbMywXZzsWGzMfSBgLUzYbIywnRihrVigzLDgnO","C2vZC2LVBKrHDge","zMXVB3i","C3rHCNq","DgHLBG","q29VA2LLihnLDcb1C2LUzYbdB29RAwvtDg9YzsbbueK","qxqGBgvHC3qGB25LihnPz25HBcbJB2XSzwn0Aw9Uig1LDgHVzcbTDxn0igjLigvUywjSzwqGkgnVB2TPzsbVCIbIzwfJB24P","ChjLCgfYzvbHEwXVywreyxrH","C2HVCeLK","y2XLyxjuAw1LB3v0","psHBxJTDkYK","Dg91y2HLCW","yxrHBJi","Bg9NC1nHBxbSzvjHDgu","y2fUy2vSswrSzunHBgXIywnR","icbuAw1Lig9UihbHz2u6ia","Aw5JBhvKzq","Bw9UAxrVCKjLAgf2Aw9Y","C3rHCNrZv2L0Aa","rMfPBgvKihrVihnHDMuGC2vZC2LVBIbZAwDUywXZoIa","qMvHy29UihjLDhj5ihnJAgvKDwXLzcbPBIa","BgvMDa","yMvHy29Uu3rHDgu","Bg9HzfnLC3nPB25eyxrH","w1niu10G","BMf0DxjHBf9JBgLJA19Wyxr0zxjUCW","mtzWEcbbCMLHBa","BgfUz3vHz2vZ","zgv2AwnLugL4zwXsyxrPBW","u2vUzgLUzYbWzxjPB2rPyYbIzwfJB24Glsa","A2v5CW","tg9HzgvKihnLC3nPB24GC2LNBMfSCYbMCM9TifnPz25HBhnqyxLSB2fKigzVCM1HDa","CgvYzI1RAxqTAhvTyw4TC2LNBMfSCW","CgX1z2LUCW","vxbKyxrPBMCGy29VA2LLihDPDgGGCgf5Bg9HzdOG","AgvPz2H0","yMX1zq","DMfSDwu","DxnLCKfNzw50","zgLY","CgvYAw9KAwm","Aw50","Dg91y2HfDMvUDhm","C2v0vgLTzw91Da","C2vUzejLywnVBG","odyXotCWENHOr2fQ","C2vZC2LVBL9KDxjHDgLVBL9YzwfZB25HyMXL","y29VA2LLtMfTzq","zg9JDw1LBNq","C2v0tgvNywn5","CgfNzunVDw50","C2v0sxrLBq","Bwf4u2LSzw5Jzu1Z","Bg9NtwvZC2fNzq","DgfYz2v0","xZb4mtqZytDH","yMLUza","D2LUzg93","u2HVCgLMEsbtDg9YzwzYB250","CYbZAw5JzsbSyxn0ihn1y2nLC3nMDwWGC2vUza","C2nYB2XSqwn0AxzPDhK","CMvXDwvZDeLKBgvdywXSyMfJA0LK","Bw91C2vTB3zL","u2vZC2LVBIbKyxrHigXVywrLzdOG","qMvHy29UigvYCM9YoIa","zMX1C2HpDgvStg9NCW","BgfZDfvWzgf0zvrPBwu","zM9YrwfJAa","u2vUzgLUzYbIzwfJB24GzhvLihrVihnPz25HBcbJAgfUz2vZ","zw52AxjVBM1LBNq","zxHLyW","zw5HyMXLq29VA2LL","zM9UDa","icbqywDLignVDw50oIa","ywrKq29SB3jtDg9W","qMvHy29UigzHAwXLzdOG","zMLSBfjLy3q","y2f0y2G","Bg9N","ntKWmZK5t2vzrwT5","oYbWyxrOpq","y2XPzw50wq","CMvK","CMvHzhLtDgf0zq","DxbKyxrLsw50zxj2ywW","C2LNBMLMAwnHBNrFCgfNzv90Aw1L","CgfYC2u","icblzxLIB2fYzcbHy3rPDML0EtOG","y2XPzw50v2LKDgG","y29VA2LLu3rVCMu","y2XPy2Tby3rPDML0Eq","zw52AxjVBM1LBNrdAgvJA2vK","BM93","icbty3jVBgWGywn0AxzPDhK6ia","ntCZntu1mLvID3bgDG","Dg9eyxrHvvjm","ntq3odK3n0Dzuezcua","qMvHy29UihnLBNqGC3vJy2vZC2z1BgX5ihzPysbMzxrJAa","y3jLyxrLrwXLBwvUDa","qwX0","y2XPzw50wa","z2v0q29UDgv4Da","C3rYAw5NAwz5","Dg91y2HLBMq","y2fUDMfZ","zxHWB3j0v2L0AezLDgnO","DMvYC2LVBG","sw5PDgLHBgL6Aw5NigH1BwfUigrLDgvJDgLVBG","A2v5yM9HCMrcDxjZDhm","y2fUDMfZx2zPBMDLCNbYAw50x25VCM1HBa","y3jLyxrLtgLUzwfYr3jHzgLLBNq","tw9IAwXL","y2HHBMDL","mtm1mdi2nfDXAhjMBW","x3nOC19ZDgf0zq","kcGOlISPkYKRksSK","ChvZAa","Ag9ZDg5HBwu","CNvUq2fUDMfZvgvZDa","qMvHy29UihnLBMqGzgvIB3vUy2vKicH0B28GC29VBIbZAw5JzsbSyxn0ihnLBMqP","Cgf0Aa","qMvHy29UihjLDhj5igXPBwL0ihjLywnOzwq","C2vZC2LVBLn0B3jHz2u","CMvXDwvZDeLKBgvdywXSyMfJAW","Dg91y2HTB3zL","z2v0qwjZB2X1DgvvCMW","BwLU","y29VA2LL","ChjL","icbnB3vZzsbHy3rPDML0EtOG","C2vUzejLywnVBIbLCNjVCJOG","nte0mJuXzvDjuK5i","A2v5","Aw5UzxjxAwr0Aa","C2nYB2XSrxzLBNrZ","DgLTzvn0yw1W","yNjVD3nLCL9LBNzPCM9UBwvUDf9UB3jTywW","BxvSDgLWBgvFCgfNzxnFDMLZAxrLza","C3rHDgu","BgfZDfbYB2nLC3nuAw1L","Dg91y2HZDgfYDa","l2fWAs9JB2XSzwn0","zg93BG","ihbHz2vZ","mZe3mdq4ngzgBhjVuW","C2nYB2XSwq","zhvYyxrPB24","qMvHy29UihnLBNqGC3vJy2vZC2z1BgX5ihzPysbZzw5KqMvHy29Uiefqsq","D2vIzhjPDMvYx2rLDgvJDgvK","uMf3igjLAgf2Aw9YywWGzgf0ytO","Bw91C2vqB3nPDgLVBNm","z2v0sxrLBq","iokgKIa","q29VA2LLu3rVCMuGC2v0igzHAwXLzcWGzMfSBgLUzYbIywnRoIa","A2vLCf9HBgL2zq","A2v5yM9HCMrFywn0AxzPDhK","nKj4DhDwwa","Aw5JBhvKzxm","rMfPBgvKihrVigXVywqGC2vZC2LVBIbZAwDUywXZoIa","z2v0","C2vZ","y2XPzw50sgvPz2H0","Bg9JyxrPB24","z2v0rgLZDgfUy2u","AhjLzG","CMv0CNLuAw1LB3v0swq","zgvIDwC","CMvMzxjYzxi","y2HLy2TbBMrtzw5Ku2LNBMfSCW","C2HPzNq","BgfZDfn1y2nLC3nMDwXtzw5KvgLTzq","xZb4ytq2nty0","icaOsw5PDgLHBcbZAwDUywWGC2v0kq","yxbWBgLJyxrPB24VANnVBG","ChjVDg9JB2W","y29VA2LLrxHWAxj5","w0nVB2TPzuPHCL0G","y2HLy2TwAwv3Cg9YDfjHDgLV","ywrKrxzLBNrmAxn0zw5LCG","twv0yq","kf58icK","y2HLy2TfBNzPCM9UBwvUDa","q29VA2LLu3rVCMuGC2v0ihbYB21PC2uGCMvQzwn0zwq6ia","y2XPy2TqB3nPDgLVBNm","A2v5rxzLBNrZ","BgfZDfrVDwnOrxzLBNq","DxbKyxrLq29VA2LL","C2nOzwr1BgvczwfJB25szxrYEq","Dg9tDhjPBMC","oYbtyw1Lu2L0zt0","CMv0CNLdB3vUDa","C2vZC2LVBLn0yxj0","q29UDhjVBa","yM90x3vZzxjFywDLBNq","Ag9ZDa","zxzLBNriyw5KBgvYCW","z2v0qM91BMrPBMDdBgLLBNrszwn0","z2v0tgvNywn5","CMvKDwnL","A2v5zg93BG","C2L6zq","zMLSBfn0EwXL","icbwyxjPzwqGy2XPy2TZoIa","C2f2zvnLC3nPB25tAwDUywXZ","tM8GC2vZC2LVBIbKyxrHigzVDw5KoIa","Dg9mB3DLCKnHC2u","yxbWBhK","C3rHCNruAw1L","y2HLy2TcCM93C2vYq29UC2LZDgvUy3K","q29VA2LLu3rVCMuGz2v0igzHAwXLzcWGzMfSBgLUzYbIywnRoIa","icboyxr1CMfSig1VDMvTzw50oIa","B250B3vJAhn0yxj0","DxbKyxrLsw50zxj2ywXjza","Bg9HzfnLC3nPB25tAwDUywXZ","CM91BMq","BgfZDfnPz25HBhm","D2vIzhjPDMvY","Ahr0CdOVlW","Bwf4","A2v5qwn0AxzPDhK","y2XPy2S","A2v5yM9HCMrcDxjZDefJDgL2Axr5","D2LKDgG","Ahr0Chm6lY8","BgvUz3rO","ywjZ","BwfW","DxbKyxrLu2vZC2LVBKrHDge","CMvTB3zLrxzLBNrmAxn0zw5LCG","zgvZDhjVEq","lcbMywXSAw5NigjHy2SGDg8GzMv0y2G","Bw91C2vby3rPDML0Eq","zw5HyMXLqMvHy29U","yNjVD3nLCKfqsq","C2vHCMnO","q29VA2LLigXVywrPBMCGC2TPChbLzcaTignVB2TPzxmGzgLZywjSzwq","yMvHy29UuMv0CNLmAw1PDa","u3rYAwn0","zMLSBfrLEhq","C3fYDa","zg9JDw1LBNrfBgvTzw50","Bg9HzgLUzW","y29VA2LLsMfY","u2HPzNq","i2zMzG","Dg91y2HFywn0AxzPDhK","y29UC3rYDwn0B3i","Dg9W","Dg91y2Hby3rPDML0Eq","BMf2AwDHDg9Y","C2fTzvnPDgu","z2v0vgLTzxPVBMvpzMzZzxq","yMfZzvvssq","icbtzxnZAw9Uigr1CMf0Aw9UoIa","nerlBfPTra","y2fSy3vSyxrLq2XPy2TqCMvJAxnPB24","C2v0","BMf0DxjHBf9TB3vZzv9Hy3rPDML0Eq","tg9HzgvKihnLC3nPB24GC2LNBMfSCYbPBIbqCM9JzxnZzwrtAwDUywXZigzVCM1HDa","u2LNBMfSignOyw5NzxmGzgv0zwn0zwq6","q29VA2LLihnLDcb1C2LUzYbSzwDHy3KGBwv0Ag9K"];return(qt=function(){return t})()}function Ht(t){const e=1234,n=1244,i=1077,r=1208,o=1234,s=1159,a=1657;function c(t,e){return Xt(t,e-a)}if(t[c(1306,e)]<2)return{speed:0,jitter:0};const u=t[c(1295,1208)]((t,e)=>t+e.s,0)/t[c(n,e)],h=t[c(i,r)]((t,e)=>t+(e.s-u)**2,0)/(t[c(o,o)]-1),l=Math[c(s,1249)](h);return{speed:u,jitter:l}}function Nt(t,e,n,i,r,o,s,a,c,u,h,l,d){const f=257,p=380,g=440,m=380,v=380,y=199,w=167,L=370,C=463,b=311,M=201,B=129,x=175,z=102,D=243,S=141,T=248,_=199,A=120,P=193,I=240,j=380,q=463,H=491,N=256,E=258,k=380,U=460,O=946,V=1019,K=622;function Z(t,e){return Xt(e,t-K)}const X=Math[Z(380,f)](1e3,t),R=Math[Z(380,434)](1e3,n),G=Math[Z(p,389)](1e3,o),Y=Math[Z(380,g)](1e3,a),W=Math[Z(m,445)](1e3,s),J=Math[Z(v,287)](1e3,c),F=[];if(e[Z(y,272)]>=3)for(let t=1;t5e-4){e=!0;break}n=r.s}else n=r.s;function i(t,e){return Xt(t,e-1334)}return e}(F),Q=function(t){const e=959,n=918,i=1049,r=1029,o=950,s=919;if(t[u(895,918)]<3)return 0;let a=0,c=0;for(let h=1;h2*Math.PI-Math.PI/12)&&a++,c++}function u(t,e){return Xt(t,e-1341)}return c>0?a/c:0}(e),{speed:tt,jitter:et}=Ht(F);let nt=0,it=0;if(i[Z(199,b)]>1){const t=new Set(i[Z(M,B)](t=>Math[Z(256,219)](t.x/20)+","+Math[Z(256,173)](t.y/20)))[Z(x,z)];nt=t>1?1:0,it=i[Z(173,D)]((t,e)=>t+e[Z(382,371)],0)/i[Z(y,299)]}const rt=r[Z(173,S)]((t,e)=>{if(null===e[n(848,O)])return t;function n(t,e){return Z(e-651,t)}return t[n(V,1021)](e[n(1072,946)]),t},[]),{rhythmConsistency:ot,jitter:st}=function(t){const e=1011,n=926,i=897,r=891,o=810,s=1320;function a(t,e){return Xt(t,e-s)}if(t[a(1037,897)]<2)return{rhythmConsistency:0,jitter:0};const c=t[a(815,871)]((t,e)=>t+e,0)/t[a(1e3,897)],u=t[a(e,871)]((t,e)=>(t??0)+((e??0)-c)**2,0)/t[a(n,i)],h=Math[a(r,912)](u);return{rhythmConsistency:0===h?1:Math[a(o,891)](0,1-h/c),jitter:h/c}}(rt),at=rt[Z(199,224)]>0?rt[Z(173,T)]((t,e)=>t+e,0)/rt[Z(199,259)]:0,ct=[];if(u[Z(_,f)]>=3)for(let t=1;tu[t-1].p?Z(396,261):"up";ct[Z(370,I)]({s:i,dir:r,t:u[t].t})}const{speed:ut,jitter:ht}=Ht(ct),lt=function(t){if(t[n(-571,-613)]<2)return 0;let e=0;for(let i=1;i=500&&t[o].t-r>=500&&(i++,r=t[o].t);return i}(ct)),{speed:ft,jitter:pt}=Ht(h),gt=function(t){if(t[n(1055,1064)]<2)return 0;let e=0;for(let i=1;i=500&&o++;return o}(h)),vt=Math[Z(N,E)]((d-l)/1e3);return{ma:X,ca:R,ka:G,sa:Y,ta:J,kba:W,t:Math[Z(k,U)](3600,vt),nm:$?1:0,ms:Ut(Q),mj:Ut(et),msp:Ut(tt),vc:nt,cp:Ut(it),rc:Ut(ot),kj:Ut(st),ki:Ut(at),ss:Ut(ut),sj:Ut(ht),ssm:Ut(lt),sp:dt,ts:Ut(ft),tj:Ut(pt),tp:mt,tsm:Ut(gt)}}function Et(t,e){let n=0;return(...i)=>{function r(t,e){return kt(t- -676,e)}const o=typeof performance!==r(-277,-309)?performance[r(-174,-198)]():Date[r(-174,-39)]();o-n>=e&&(n=o,t(...i))}}function kt(t,e){const n=qt();return kt=function(e,i){let r=n[e-=315];if(void 0===kt.qqSyux){var o=function(t){let e="",n="",i=e+o;for(let n,r,o=0,s=0;r=t.charAt(s++);~r&&(n=o%4?64*n+r:r,o++%4)?e+=i.charCodeAt(s+10)-10!=0?String.fromCharCode(255&n>>(-2*o&6)):o:0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,i=e.length;t{const t=780,e=745,i=663,r=596,o=546,s=511,a=691,c=561,u=664,h=705,l=650,d=708,f=810,p=1011;function g(t,e){return n(e- -230,t)}await this[g(-182,-180)](),await this[g(-89,-22)](),await this[g(-199,-296)](!0),this[g(-171,-249)][g(-53,-146)][g(-132,-160)](()=>{var t,e;this[(t=994,e=p,g(t,e-1197))]()},100);const m=()=>{const n=595,p=764,v=701,y=Date[b(699,t)](),w=y-(this[b(e,i)][b(673,r)]||y),L=Math[b(o,s)](0,this[b(662,561)][b(a,771)]-w),C=()=>{function t(t,e){return b(t- -865,e)}this[t(-304,-183)][t(-201,-114)][t(-135,-191)]?this[t(-120,-70)][t(-197,-251)]=this[t(-304,-299)][t(-201,-170)][t(-135,-187)](()=>{function e(e,n){return t(e-1018,n)}this[e(667,n)]()[e(p,v)](()=>this[e(931,926)][e(825,911)]())[e(764,767)](()=>{m()})},{timeout:2e3}):this[t(-351,-242)]()[t(-254,-282)](()=>this[t(-87,-187)][t(-193,-325)]())[t(-254,-135)](()=>{m()})};function b(t,e){return g(e,t-f)}L>0?this[b(c,424)][b(u,h)][b(l,d)](C,L):C()};m()})()}[Xt(-523,-418)](){const t=75,e=0,n=61;function i(t,e){return Xt(e,t-166)}this[i(-64,-140)][i(-269,-258)]&&this[i(-248,-276)][i(-145,-14)][i(-193,-240)](this[i(-64,-121)][i(-269,-324)]),this[i(-64,-133)][i(-141,-268)]&&this[i(-248,-140)][i(-145,-157)][i(-188,-54)]&&this[i(-248,-156)][i(-145,-179)][i(-188,-147)](this[i(-64,-165)][i(-141,-82)]),this[i(-64,-179)][i(-286,-176)]&&(this[i(-248,-294)][i(-154,-43)][i(-253,-283)](i(-140,-185),this[i(-64,-116)][i(-286,-422)][i(-140,-96)]),this[i(-248,-139)][i(-154,-64)][i(-253,-266)](i(-261,-241),this[i(-64,t)][i(-286,-197)][i(-261,-387)]),this[i(-248,-201)][i(-154,-167)][i(-253,-260)](i(-282,-312),this[i(-64,-50)][i(-286,-247)][i(-282,-373)]),this[i(-248,-164)][i(-154,-291)][i(-253,-232)](i(-204,-173),this[i(-64,-200)][i(-286,-321)][i(-204,-278)]),i(-270,-405)in window&&this[i(-64,-72)][i(-286,-396)][i(-62,-80)]&&this[i(-64,-176)][i(-286,-336)][i(-78,-20)]&&this[i(-64,-186)][i(-286,-325)][i(-99,37)]&&(this[i(-248,-201)][i(-154,-192)][i(-253,-251)](i(-62,-175),this[i(-64,32)][i(-286,-151)][i(-62,-78)]),this[i(-248,-370)][i(-154,-74)][i(-253,-234)](i(-78,-124),this[i(-64,-130)][i(-286,-410)][i(-78,-96)]),this[i(-248,-318)][i(-154,-90)][i(-253,-278)](i(-99,-183),this[i(-64,-24)][i(-286,-208)][i(-99,-44)]))),this[i(-64,-28)][i(-180,-103)]?.[i(-37,e)]&&this[i(-248,-357)][i(-145,-100)][i(-193,-293)](this[i(-64,-192)][i(-180,-215)][i(-37,-107)]),this[i(-64,n)][i(-180,-117)]=void 0}async[Xt(-263,-345)](){const t=1225,e=1321,n=1110,i=1117,r=1138,o=1409,s=1207,a=1271,c=1079,u=1382,h=1220,l=1332,d=1292,f=1419,p=1155,g=1141,m=1314,v=1246,y=1241,w=1292,L=1155,C=1204,b=1297,M=1522;function B(t,e){return Xt(e,t-M)}if(!this[B(1209,1187)][B(t,1237)])return void this[B(1207,e)](B(n,1176));const x=await this[B(i,r)][B(1313,o)](),z=function(t){const e=1024;if(!t)return null;try{const r=JSON[(n=e,i=1004,Xt(n,i-1286))](atob(decodeURIComponent(t)));return r.v&&r.ts?r:null}catch(t){return null}var n,i}(x);z?(this[B(1292,u)][B(h,1229)]=z.ts,z[B(1314,l)]&&(this[B(d,f)][B(p,g)]={pageCount:z[B(m,1324)].p||1,sessionStart:z[B(1314,1429)].s||Date[B(v,1203)](),duration:z[B(m,1221)].d||0},this[B(1207,y)](B(1217,1261)+this[B(w,1299)][B(L,1181)][B(C,1230)]+B(b,1400)))):this[B(s,a)](B(c,973)+x)}[Xt(-155,-187)](){const t=677,e=527,n=474,i=568,r=662,o=551,s=641,a=699,c=526,u=584,h=650,l=719,d=770,f=672,p={wd:this[g(654,535)][g(t,551)][g(e,518)]?1:0,ua:/bot|crawler|spider|scraper/i[g(n,i)](this[g(r,535)][g(484,o)][g(722,619)])?0:1,cv:this[g(s,a)]()?1:0,br:this[g(c,510)]()?1:0};function g(t,e){return Xt(t,e-949)}return this[g(693,719)][g(u,h)]=p,this[g(659,l)][g(d,f)]=!0,p}[Xt(-294,-250)](){const t=867,e=771,n=741,i=865,r=915,o=651,s=852,a=808,c=891,u=899,h=853,l=653,d=943,f=734,p=730,g=776,m=996,v=875,y=872,w=912,L=889,C=762;function b(t,e){return Xt(t,e-1185)}try{const M=this[b(t,e)][b(n,i)][b(780,r)](b(943,921));M[b(o,760)]=200,M[b(970,s)]=50;const B=M[b(900,918)]("2d");if(null===B)return!1;const x=B[b(a,927)](0,0,200,0);x[b(836,c)](0,b(893,u)),x[b(952,c)](1,b(770,h)),B[b(l,739)]=x,B[b(d,893)](0,0,200,50),B[b(637,739)]=b(f,782),B[b(770,889)]=b(784,843),B[b(p,g)](b(m,v),33,30);const z=M[b(y,w)]();return Boolean(z&&z[b(L,C)]>50)}catch(t){return!1}}[Xt(-512,-439)](){const t=1034,e=1140,n=1273,i=1197,r=1057,o=1251,s=1115,a=1264,c=1124,u=1181,h=1226,l=1212,d=1173,f=1254,p=1140,g=1208,m=1281,v=1432,y=1124,w=1120,L=1227,C=1076,b=1198,M=1268,B=1194;let x=0;function z(t,e){return Xt(t,e-1538)}this[z(1234,1124)][z(t,e)][z(n,i)]&&this[z(r,1124)][z(1222,e)][z(o,i)][z(1094,s)]>0&&x++,(this[z(a,c)][z(u,1140)][z(1251,1203)]&&this[z(h,c)][z(l,1140)][z(d,1203)][z(1062,1115)]>0||this[z(1046,1124)][z(f,p)][z(1203,g)][z(1430,1327)](z(1332,m)))&&x++,this[z(v,1347)]()&&x++,typeof this[z(1067,y)][z(w,L)][z(C,b)]!==z(M,1159)&&x++;try{const t=(new Date)[z(B,1142)]();t>-840&&t<840&&x++}catch(t){}return x>=3}[Xt(-76,-191)](){const t=823,e=720,n=814,i=726,r=854,o=770,s=850,a=751,c=878,u=805,h=727,l=905,d=927,f=this[g(585,720)][g(743,t)][g(793,899)]||this[g(808,e)][g(767,n)][g(733,727)][g(i,r)],p=this[g(o,e)][g(734,823)][g(s,a)]||this[g(a,720)][g(c,814)][g(u,h)][g(l,d)];if(!f||!p)return!1;function g(t,e){return Xt(t,e-1134)}if(f<=2||p<=2)return!1;const m=f/p;return m>=.2&&m<=5}[Xt(-308,-351)](){const t=612,e=577,n=716,i=483,r=447,o=606,s=470,a=483,c=497,u=707,h=374,l=676,d=527,f=552,p=483,g=514,m=641,v=707,y=669,w=483,L=781,C=653,b=649,M=536,B=546,x=897,z=1346,D=1327,S=1384,T=1409,_=1405,A=1152,P=1272,I=1288,j=1295,q=1304,H=1384,N=1447,E=1415,k=1257,U=1310,O=1209,V=1381,K=1311,Z=1240,X=1342,R=1384,G=1426,Y=1116,W=1384,J=1294,F=1273,$=1141,Q=1240,tt=1384,et=1152,nt=1242,it=112,rt=83,ot=10,st=146,at=83,ct=176,ut=83,ht=333,lt=226,dt=57,ft=52,pt=141,gt=41,mt=122,vt=233,yt=176,wt=870,Lt=867,Ct=771,bt=690,Mt=677,Bt=953,xt=901,zt=803,Dt=890,St=848,Tt=1314,_t=1120,At=1110,Pt=1401,It=1302,jt=1224,qt=1134,Ht=1083,Nt=1293,Ut=1024,Ot=1269,Vt=1234,Kt=1115,Zt=1292,Rt=1305,Gt=1150,Yt=1025,Wt=1115,Jt=1308,Ft=1220,$t=1339,Qt=1078,te=1075,ee=1286,ne=1279,ie=1371,re=1278,oe=1363,se=1032,ae=1211,ce=Et(t=>{function e(t,e){return kt(t- -856,e)}this[e(-308,-275)][e(-494,-383)]++,this[e(-308,-368)][e(-296,-302)][e(-501,-475)]>=10&&this[e(-308,-420)][e(-296,-229)][e(-277,-251)](),this[e(-308,-362)][e(-296,-266)][e(-330,-312)]({x:t[e(-346,-426)],y:t[e(-365,-327)],t:t[e(-311,-202)]})},100),ue=t=>{const e=822,n=637,i=830,r=818,o=715,s=814,a=753,c=304;function u(t,e){return kt(e- -22,t)}this[u(447,526)][u(473,478)]++,requestAnimationFrame(()=>setTimeout(()=>{function h(t,e){return u(e,t-c)}this[h(830,827)][h(875,e)][h(n,768)]>=5&&this[h(i,830)][h(875,861)][h(861,r)](),this[h(830,811)][h(875,766)][h(808,o)]({x:t[h(792,885)],y:t[h(773,860)],t:t[h(827,s)],pre:this[h(668,a)](t)})},0))},he=t=>{const e=760;this[i(Tt,1308)][i(_t,At)]++;const n=t[i(Pt,It)];function i(t,n){return kt(n-e,t)}if([i(jt,qt),i(1199,Ht),i(1263,1269),i(Nt,1349)][i(1195,1327)](n))return;const r=this[i(1173,1308)][i(Ut,1075)][this[i(Ot,1308)][i(1109,1075)][i(Vt,Kt)]-1],o=t[i(Zt,Rt)],s=r?o-r.t:null;this[i(1384,1308)][i(Gt,1075)][i(Yt,Wt)]>=10&&this[i(1334,Jt)][i(1018,1075)][i(Ft,$t)](),this[i(1333,Jt)][i(Qt,te)][i(1369,ee)]({_0x39a557:n,t:o,int:s}),null!==s&&s<100?(this[i(1287,1308)][i(1274,1278)][i(ne,ee)](s),this[i(ie,1308)][i(1169,re)][i(1215,1115)]>=5&&(this[i(oe,1308)][i(se,1112)]++,this[i(ae,Jt)][i(1374,1278)]=[])):this[i(1228,Jt)][i(1146,re)]=[]},le=Et(t=>{function e(t,e){return kt(e-322,t)}this[e(775,wt)][e(772,792)]++;const n=t[e(915,Lt)],i=window[e(750,877)];this[e(870,870)][e(Ct,866)][e(bt,Mt)]>=10&&this[e(795,wt)][e(861,866)][e(Bt,xt)](),this[e(zt,wt)][e(Dt,866)][e(948,St)]({p:i,t:n})},200),de=t=>{function e(t,e){return kt(e- -369,t)}this[e(it,179)][e(rt,ot)]++,this[e(st,179)][e(-18,at)][e(-66,-14)]>=10&&this[e(ct,179)][e(-31,ut)][e(ht,210)](),this[e(lt,179)][e(-55,-53)]={x:t[e(dt,ft)][0][e(124,pt)],y:t[e(gt,ft)][0][e(173,mt)],t:t[e(vt,yt)],typ:e(50,44),s:0,d:0}},fe=Et(t=>{const e={x:t[n(1257,z)][0][n(1346,1359)],y:t[n(1257,1308)][0][n(D,1210)]};function n(t,e){return kt(t-836,e)}if(this[n(S,1446)][n(1152,1260)]){const i=this[n(T,_)](this[n(S,1517)][n(A,1130)],e);this[n(S,P)][n(I,j)][n(1191,q)]>=10&&this[n(H,N)][n(I,1269)][n(E,1391)]();const r={x:t[n(k,U)][0][n(1346,O)],y:t[n(k,1383)][0][n(1327,1347)],t:t[n(V,K)],typ:n(Z,1257),d:i,s:i/(t[n(1381,X)]-this[n(R,G)][n(1152,Y)].t)};this[n(S,1422)][n(I,1212)][n(1362,1454)](r),this[n(W,J)][n(A,F)]=r}else{const e={x:t[n(k,$)][0][n(1346,1415)],y:t[n(k,1203)][0][n(1327,1385)],t:t[n(V,1411)],typ:n(Q,1136),s:0,d:0};this[n(tt,1347)][n(et,nt)]=e}},200),pe=t=>{function e(t,e){return kt(t- -674,e)}this[e(-126,-163)][e(-358,-438)]=null};function ge(t,e){return Xt(e,t-x)}this[ge(483,t)][ge(e,468)][ge(707,717)](ge(591,n),ce,{passive:!0}),this[ge(i,r)][ge(577,o)][ge(707,777)](ge(s,456),ue,{passive:!0}),this[ge(a,c)][ge(577,600)][ge(u,831)](ge(449,h),he,{passive:!0}),this[ge(483,428)][ge(577,603)][ge(u,l)](ge(d,f),le,{passive:!0}),ge(461,379)in window&&(this[ge(p,g)][ge(e,m)][ge(v,579)](ge(y,582),de,{passive:!0}),this[ge(w,563)][ge(e,677)][ge(707,L)](ge(C,638),fe,{passive:!0}),this[ge(483,582)][ge(577,b)][ge(u,761)](ge(632,591),pe,{passive:!0})),this[ge(667,M)][ge(445,B)]={mousemove:ce,click:ue,keydown:he,scroll:le,touchstart:de,touchmove:fe,touchend:pe}}async[Xt(-479,-461)](t=!1){const e=1444,n=1459,i=1557,r=1323,o=1460,s=1396,a=1525,c=1757;if(this[u(1337,1472)](t),this[u(e,1406)][u(1342,n)]&&await this[u(i,1552)](),!this[u(1444,r)][u(o,1366)])return;function u(t,e){return Xt(e,t-c)}const h=this[u(s,1376)]();h&&(await this[u(1352,1302)][u(1366,1299)](h),this[u(1527,a)][u(1455,1529)]=Date[u(1481,1446)]())}[Xt(-496,-420)](t=!1){const e=245,n=33,i=143,r=243,o=247,s=42,a=138,c=377,u=261,h=243,l=152,d=148,f=106,p=243,g=473,m=Date[y(91,197)]();let v=Math[y(105,107)]((m-this[y(e,243)][y(-48,n)])/1e3);function y(t,e){return Xt(t,e-g)}null!==this[y(i,r)][y(o,171)]&&(v=Math[y(s,107)]((m-this[y(a,243)][y(211,171)])/1e3)),this[y(c,r)][y(-31,106)]?(this[y(d,r)][y(67,f)][y(73,155)]+=t?1:0,this[y(201,p)][y(43,f)][y(303,251)]+=v):this[y(u,h)][y(217,106)]={pageCount:1,sessionStart:this[y(l,243)][y(-11,33)],duration:0}}[Xt(-303,-361)](){if(!this[r(-373,-327)][r(-420,-482)]&&0===this[r(-373,-282)][r(-559,-607)]&&0===this[r(-373,-449)][r(-421,-486)])return null;const t=this[r(-373,-450)][r(-442,-320)]??{wd:0,ua:1,cv:0,br:0},e=Nt(this[r(-373,-299)][r(-559,-612)],this[r(-373,-332)][r(-361,-467)],this[r(-373,-379)][r(-421,-347)],this[r(-373,-473)][r(-328,-392)],this[r(-373,-324)][r(-606,-509)],this[r(-373,-416)][r(-571,-650)],this[r(-373,-420)][r(-569,-656)],this[r(-373,-468)][r(-451,-532)],this[r(-373,-408)][r(-542,-566)],this[r(-373,-410)][r(-377,-254)],this[r(-373,-295)][r(-469,-576)],this[r(-373,-290)][r(-583,-538)],Date[r(-419,-431)]()),n={p:this[r(-373,-389)][r(-510,-379)]?.[r(-461,-375)]??1,s:this[r(-373,-481)][r(-510,-484)]?.[r(-599,-580)]??this[r(-373,-325)][r(-583,-672)],d:this[r(-373,-506)][r(-510,-422)]?.[r(-365,-380)]??0},i=function(t,e,n,i,r){function o(t,e){return xt(t- -593,e)}return{v:t,ts:e,env:{wd:n.wd,ua:n.ua,cv:n.cv,br:n.br},bhv:{ma:i.ma,ca:i.ca,ka:i.ka,sa:i.sa,kba:i[o(-473,-480)],ta:i.ta,t:i.t,nm:i.nm,ms:i.ms,mj:i.mj,msp:i[o(-468,-465)],vc:i.vc,cp:i.cp,rc:i.rc,kj:i.kj,ki:i.ki,ss:i.ss,sj:i.sj,ssm:i[o(-465,-474)],sp:i.sp,ts:i.ts,tj:i.tj,tp:i.tp,tsm:i[o(-480,-483)]},ses:{p:r.p,s:r.s,d:r.d}}}(2,Date[r(-419,-307)](),t,e,n);function r(t,e){return Xt(e,t- -143)}return this[r(-458,-385)](r(-477,-440)+JSON[r(-409,-355)](i)),encodeURIComponent(btoa(JSON[r(-409,-347)](i)))}[Xt(-251,-315)](t,e=!1){function n(t,e){return Xt(t,e- -101)}this[n(-238,-298)][n(-258,-391)](n(-480,-445)+t,e)}[Xt(-506,-434)](){const t=1208,e=1191,n=1250,i=1294,r=1467,o=1388,s=1355,a=1444,c=1385,u=1120,h=1237,l=1261,d=1517,f=1605;function p(t,e){return Xt(t,e-f)}try{if(this[p(t,e)][p(n,1294)][p(1398,1359)]){const t=this[p(1107,1191)][p(1159,i)][p(r,1359)][p(1254,o)](Pt);if(t){const e=JSON[p(s,1323)](t);let n;return p(a,c)in e?(n=e,this[p(1274,1290)](p(u,1216),!0)):(n={webdriver_detected:(g=e).wd,bot_user_agent:g.ua,canvas_fingerprint_normal:g.cf,browser_environment_normal:g.be,natural_mouse_activity:g.nm,natural_click_patterns:g.nc,keyboard_activity:g.ka,scroll_activity:g.sa,touch_activity:g.ta,significant_page_time:g.pt,multiple_pages_visited:g.mp,session_duration_reasonable:g.sd},this[p(h,1290)](p(1377,1268),!0)),n}}}catch(t){this[p(l,1290)](p(d,1395)+t,!0)}var g;return null}[Xt(-445,-444)](t){const e=170,n=273,i=338,r=354,o=273,s=316,a=331,c=267,u=151,h=318,l=337,d=269,f=204,p=281,g=269,m=404,v=235,y=584;function w(t,e){return Xt(e,t-y)}try{this[w(e,264)][w(n,192)][w(i,r)]&&(this[w(170,248)][w(o,s)][w(i,a)][w(c,u)](Pt,JSON[w(h,l)](Ot(t))),this[w(d,196)](w(f,p),!0))}catch(t){this[w(g,m)](w(v,225)+t,!0)}}[Xt(-298,-392)](t){const e=t[s(-362,-379)];if(!(e&&e instanceof Element&&e[s(-583,-516)]))return 0;const n=e[s(-478,-516)]();if(!n[s(-557,-490)]||!n[s(-443,-398)])return 0;const i=n[s(-300,-412)]+n[s(-417,-490)]/2,r=n[s(-405,-465)]+n[s(-529,-398)]/2,o=this[s(-390,-270)]({x:t[s(-281,-333)],y:t[s(-464,-352)]},{x:i,y:r});function s(t,e){return Xt(t,e- -65)}const a=Math[s(-475,-473)](n[s(-451,-490)]**2+n[s(-266,-398)]**2)/2;return a>0?Math[s(-443,-494)](0,1-o/a):0}[Xt(-103,-205)](t,e){return Math[(n=-597,i=-498,Xt(i,n- -189))]((e.x-t.x)**2+(e.y-t.y)**2);var n,i}[Xt(-308,-243)](t){const e=238,n=428,i=318,r=239,o=244,s=123,a=357,c=283,u=254,h=578,l=462,d=510,f=474,p=346,g=473,m=462,v=145;function y(t,e){return Xt(t,e-668)}if(t[y(353,318)](y(323,e))||t[y(n,i)](y(r,o)))return t;return""+(this[y(s,254)][y(492,a)][y(450,462)][y(356,c)]||this[y(170,u)][y(256,357)][y(h,l)][y(d,f)]+"//"+this[y(p,u)][y(306,357)][y(g,m)][y(v,215)])+t}async[Xt(-346,-324)](t,e){const n=757,i=836,r=645,o=840,s=724,a=890,c=697,u=693,h=694,l=586,d=746,f=868,p=875,g=656,m=530,v=672,y=698,w=724,L=622,C=613,b=840,M=747,B=872,x=917,z=794,D=871,S=847,T=755,_=588,A=865,P=832,I=694,j=775,q=718,H=699,N=840,E=482,k=672,U=777,O=755,V=812,K=610,Z=1070;if(!this[R(n,i)][R(655,r)]||!this[R(o,808)][R(s,829)])return;const X=function(t,e,n){return{v:t,s:{wd:e.wd,ua:e.ua,cf:e.cf,be:e.be,nm:e.nm,nc:e.nc,ka:e.ka,sa:e.sa,ta:e.ta,pt:e.pt,mp:e.mp,sd:e.sd},r:n}}(1,Ot(t),e);function R(t,e){return Xt(e,t-Z)}const G=JSON[R(804,a)](X),Y=this[R(827,819)](this[R(n,680)][R(c,u)]);if(this[R(656,h)][R(672,l)][R(d,779)]&&!this[R(n,f)][R(807,736)])try{const t=new Blob([G],{type:R(p,797)});if(this[R(g,m)][R(v,y)][R(746,675)](Y,t))return this[R(840,782)][R(w,L)][R(C,544)]=0,this[R(b,957)][R(724,M)][R(B,x)]=Date[R(z,690)](),void this[R(755,D)](R(849,S),!0);this[R(T,i)](R(702,_),!0)}catch(t){this[R(755,A)](R(P,747)+t+R(653,708),!0)}try{const t=await fetch(Y,{method:R(I,j),headers:{"Content-Type":R(875,964)},body:G,credentials:R(q,652),keepalive:!0});if(!t.ok)throw new Error(R(777,H)+t[R(701,786)]);this[R(N,970)][R(724,708)][R(C,E)]=0,this[R(N,855)][R(724,k)][R(872,U)]=Date[R(794,862)](),this[R(O,844)](R(799,V),!0)}catch(n){this[R(T,893)](R(766,682)+n,!0),this[R(K,504)](t,e)}}[Xt(-574,-460)](t,e){const n=1144,i=1028,r=1055,o=871,s=1061,a=1016,c=1059,u=1094,h=1132,l=1119,d=1144,f=917,p=889,g=983,m=917,v=1077,y=960,w=1063,L=978,C=1149,b=922,M=846,B=884;function x(t,e){return Xt(e,t-1374)}if(!this[x(n,1157)][x(i,965)]||this[x(1144,r)][x(i,1050)][x(917,o)]>=this[x(s,a)][x(963,830)])return void this[x(c,1151)](x(1127,u),!0);const z=Math[x(h,l)](1e3*2**this[x(d,1118)][x(1028,968)][x(f,p)],3e4);this[x(1144,1256)][x(1028,g)][x(m,910)]++,this[x(n,1045)][x(1028,v)][x(1171,1171)]=this[x(y,s)][x(w,L)][x(1049,1158)](()=>{function n(t,e){return x(e- -166,t)}this[n(b,978)][n(890,862)]&&this[n(797,895)][n(775,793)]&&this[n(M,B)](t,e)},z),this[x(1059,C)](x(1026,976)+z+"ms",!0)}async[Xt(-258,-200)](){const t=268,e=562;if(!this[i(-511,-451)][i(-613,-638)]||!this[i(-428,-511)][i(-544,-437)])return;const n=Nt(this[i(-428,-413)][i(-614,-694)],this[i(-428,-475)][i(-416,-530)],this[i(-428,-293)][i(-476,-391)],this[i(-428,-485)][i(-383,-283)],this[i(-428,-358)][i(-661,-766)],this[i(-428,-503)][i(-626,-558)],this[i(-428,-343)][i(-624,-536)],this[i(-428,-538)][i(-506,-553)],this[i(-428,-355)][i(-597,-523)],this[i(-428,-294)][i(-432,-307)],this[i(-428,-536)][i(-524,-609)],this[i(-428,-547)][i(-638,-654)],Date[i(-474,-581)]());function i(t,e){return Xt(e,t- -198)}const r=function(t,e,n,i){const r={webdriver_detected:1===t?.wd||!1,bot_user_agent:0===t?.ua||!1,browser_environment_normal:1===t?.br||!1,canvas_fingerprint_normal:1===t?.cv||!1,natural_mouse_activity:!1,natural_click_patterns:!1,keyboard_activity:!1,scroll_activity:!1,touch_activity:!1,significant_page_time:!1,multiple_pages_visited:!1,session_duration_reasonable:!1};function o(t,e){return Xt(t,e- -57)}if(e.ma>0&&1===e.nm&&(r[o(-396,-447)]=!0),e.ca>0&&1===e.vc&&(r[o(-263,-400)]=!0),e.ka>0&&(r[o(-325,-270)]=!0),e.sa>0&&(r[o(-566,-443)]=!0),e.ta>0&&(r[o(-591,-459)]=!0),e.t>30&&(r[o(-470,-340)]=!0),n&&(n[o(-468,-375)]>1&&(r[o(-264,-288)]=!0),n[o(-177,-279)]>60&&(r[o(-391,-379)]=!0)),i){const t=Object[o(-376,-395)](r);for(const e of t)r[e]=r[e]||i[e]}return r}(this[i(-428,-540)][i(-497,-423)],n,this[i(-428,-481)][i(-565,-568)],this[i(-428,-560)][i(-544,-552)][i(-630,-635)]),o=function(t,e){const n=1759;if(!e)return!0;const i=Object[(r=1312,o=1421,Xt(r,o-n))](t);var r,o;for(const n of i)if(t[n]!==e[n])return!0;return!1}(r,this[i(-428,-306)][i(-544,-443)][i(-630,-545)]),s=Date[i(-474,-518)]()-this[i(-428,-537)][i(-544,-562)][i(-396,-266)],a=s>=this[i(-511,-435)][i(-514,-432)];if(o||a){if(Date[i(-474,-353)]()-this[i(-428,-306)][i(-544,-602)][i(-427,-412)]<100)return void this[i(-513,-442)](i(-447,-502),!0);if(a&&!o&&this[i(-513,-571)](i(-537,-520)+Math[i(-631,-728)](s/1e3)+i(-507,-624),!0),o){if(this[i(-511,-451)][i(-400,-297)]){if(this[i(-513,-510)](i(-586,-520)),this[i(-428,-403)][i(-544,-482)][i(-630,-637)]){Object[i(-536,-460)](r)[i(-499,-531)](n=>{const o=this[a(470,368)][a(354,410)][a(t,303)][n],s=r[n];function a(t,e){return i(t-898,e)}o!==s&&this[a(385,298)](" "+n+": "+o+a(484,e)+s)})}else this[i(-513,-539)](i(-394,-261));this[i(-513,-385)](i(-417,-413)),this[i(-513,-580)](i(-437,-353)+n.ma),this[i(-513,-463)](i(-582,-489)+n.ca),this[i(-513,-441)](i(-479,-606)+n.ka),this[i(-513,-650)](i(-473,-439)+n.sa),this[i(-513,-525)](i(-551,-637)+n.t+"s"),this[i(-513,-517)](i(-635,-616)+n.nm),this[i(-513,-537)](i(-643,-560)+n.vc),this[i(-428,-358)][i(-565,-485)]&&(this[i(-513,-505)](i(-493,-358)+this[i(-428,-549)][i(-565,-493)][i(-516,-439)]),this[i(-513,-606)](i(-592,-679)+this[i(-428,-309)][i(-565,-442)][i(-420,-369)]+"s"))}this[i(-513,-618)](i(-498,-364),!0)}this[i(-428,-497)][i(-544,-656)][i(-630,-616)]=(c=r,{...c}),this[i(-428,-441)][i(-544,-612)][i(-427,-424)]=Date[i(-474,-509)](),this[i(-642,-753)](r);const u=o?i(-454,-451):i(-526,-664);await this[i(-522,-477)](r,u)}else this[i(-511,-581)][i(-400,-420)]&&this[i(-513,-522)](i(-569,-430),!0);var c}}const Kt=t=>{const e=4,n=127,i=/_shopify_s=([^;]*)/[r(26,23)](t[r(e,n)][r(83,-57)]);function r(t,e){return Xt(e,t-324)}return i?i[1]:void 0},Zt=(t,e)=>{const n=592,i=638,r=737,o=781,s=647,a=762,c=752,u=776,h=732,l=754,d=638,f=757,p=563,g=958;function m(t,e){return Xt(e,t-g)}const v=Kt(t),y=/_shopify_y=([^;]*)/[m(660,n)](t[m(i,r)][m(717,o)]),w=y?y[1]:void 0;return{libVersion:Lt[m(696,748)],shopId:e||"",hostname:t[m(s,a)]?.[m(c,u)]?.[m(707,h)]||"",url:t[m(s,719)]?.[m(c,696)]?.[m(l,i)]||"",referrer:t[m(d,664)]?.[m(f,703)]||"",baseURI:t[m(i,511)]?.[m(p,623)]||"",sessionToken:v||"",uniqueToken:w||""}};function Xt(t,e){return kt(e- -778,t)}const Rt=(t,e=jt,n=new vt(Tt,_t))=>{const i=new dt({exporter:n,attributes:Zt(e,t?.[c(-523,-443)])}),r=Kt(e),o=r?function(t){let e=0;for(let n=0,i=t.length;na[c(-540,-434)]()):a[c(-540,-507)](),a};var Gt="2.0.17";const Yt=Object.freeze({shop_domain:`${window.location.origin}/.well-known/shopify/monorail/v1/produce`,global:"https://monorail-edge.shopifysvc.com/v1/produce",canada:"https://monorail-edge-ca.shopifycloud.com/v1/produce",staging:"https://monorail-edge-staging.shopifycloud.com/v1/produce"}),Wt=new RegExp(`^${window.location.origin}/((?:(?:[a-z]{2,3}|zh-hans|zh-hant)(?:-[a-zA-Z0-9]+)/)?cart/(add|change|update|clear))`),Jt=new RegExp("cart-performance:|add:|change:|clear:|note_update:");var Ft;function $t({monorailRegion:t,schema:e,rawData:n}){const i=Date.now(),r={schema_id:e,payload:e===Ft.OnUnload?Qt(n):te(n),metadata:{event_created_at_ms:i,event_sent_at_ms:i}},o=Yt[t||""],s=JSON.stringify(r);if(!o)return void console.debug("📡 Monorail: ",JSON.stringify(r,null,2));try{const t=new window.Blob([s],{type:"text/plain"});if("function"==typeof window.navigator.sendBeacon&&"function"==typeof window.Blob&&!function(){const{userAgent:t}=window.navigator;return-1!==t.lastIndexOf("iPhone; CPU iPhone OS 12_")||-1!==t.lastIndexOf("iPad; CPU OS 12_")}()&&window.navigator.sendBeacon(o,t))return}catch(t){}const a=new XMLHttpRequest;a.open("POST",o),a.setRequestHeader("Content-type","text/plain"),a.send(s)}function Qt(t){const e=ee(t,["domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","firstPaint","visuallyReady","initiatorType","redirectCount","cartAjaxResourceTimings","cartPerformanceMetrics"]);return{perf_kit_init:t.perfKitInit,perf_kit_version:t.perfKitVersion,url:t.url,page_type:t.pageType,shop_id:t.shopId,application:t.application,storefront_id:t.storefrontId,theme_instance_id:t.themeInstanceId,theme_name:t.themeName,theme_version:t.themeVersion,session_token:t.sessionToken,unique_token:t.uniqueToken,micro_session_id:t.microSessionId,micro_session_count:t.microSessionCount,cumulative_layout_shift:t.cumulativeLayoutShift,cumulative_layout_shift_target:t.cumulativeLayoutShiftTarget,first_contentful_paint:t.firstContentfulPaint,largest_contentful_paint:t.largestContentfulPaint,largest_contentful_paint_target:t.largestContentfulPaintTarget,time_to_first_byte:t.timeToFirstByte,seo_bot:t.seoBot,humanness_score:t.humannessScore,ja3_fingerprint:t.ja3Fingerprint,navigation_start:t.navigationStart,navigation_type:t.navigationType,navigation_bad:t.navigationBad,encoded_body_size:t.encodedBodySize,decoded_body_size:t.decodedBodySize,transfer_size:t.transferSize,first_interim_response_start:t.firstInterimResponseStart,final_response_headers_start:t.finalResponseHeadersStart,response_start:t.responseStart,response_end:t.responseEnd,worker_start:t.workerStart,connect_start:t.connectStart,connect_end:t.connectEnd,domain_lookup_start:t.domainLookupStart,domain_lookup_end:t.domainLookupEnd,fetch_start:t.fetchStart,redirect_start:t.redirectStart,redirect_end:t.redirectEnd,request_start:t.requestStart,secure_connection_start:t.secureConnectionStart,next_hop_protocol:t.nextHopProtocol,server_timing:t.serverTiming,paint_timing_hidden:t.paintTimingHidden,referrer:t.referrer,render_region:t.renderRegion,resource_timing:t.resourceTiming,other_metrics:JSON.stringify(e)}}function te(t){const e=ee(t,["longAnimationFrame"]);return{url:t.url,page_type:t.pageType,shop_id:t.shopId,application:t.application,storefront_id:t.storefrontId,theme_instance_id:t.themeInstanceId,session_token:t.sessionToken,unique_token:t.uniqueToken,micro_session_id:t.microSessionId,micro_session_count:t.microSessionCount,interaction_to_next_paint:t.interactionToNextPaint,interaction_to_next_paint_target:t.interactionToNextPaintTarget,seo_bot:t.seoBot,humanness_score:t.humannessScore,ja3_fingerprint:t.ja3Fingerprint,referrer:t.referrer,worker_start:t.workerStart,next_hop_protocol:t.nextHopProtocol,navigation_bad:t.navigationBad,other_interaction_metrics:JSON.stringify(e)}}function ee(t,e){return e.reduce((e,n)=>{var i;return t[n]&&(e[(i=n,i.replace(/[A-Z]/g,t=>`_${t.toLowerCase()}`))]=t[n]||null),e},{})}!function(t){t.OnInteraction="perf_kit_on_interaction/3.1",t.OnUnload="perf_kit_on_unload/3.3"}(Ft||(Ft={}));const ne="xxxx-4xxx-xxxx-xxxxxxxxxxxx";function ie(){let t="";try{const e=window.crypto,n=new Uint16Array(31);e.getRandomValues(n);let i=0;t=ne.replace(/[x]/g,t=>{const e=n[i]%16;return i++,("x"===t?e:3&e|8).toString(16)}).toUpperCase()}catch(e){t=ne.replace(/[x]/g,t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}).toUpperCase()}return`${function(){let t=0,e=0;t=(new Date).getTime()>>>0;try{e=performance.now()>>>0}catch(t){e=0}return Math.abs(t+e).toString(16).toLowerCase().padStart(8,"0")}()}-${t}`}let re=!0,oe=!1,se=null,ae=null,ce=!1;class ue{info;config;performanceMetrics;constructor(t){const e=/_shopify_s=([^;]*)/.exec(document.cookie),n=e?e[1]:void 0,i=/_shopify_y=([^;]*)/.exec(document.cookie),r=i?i[1]:void 0;this.config=t,this.info={perfKitInit:Date.now(),perfKitVersion:Gt,url:window.location.href,referrer:document.referrer||void 0,microSessionId:ie(),microSessionCount:0,sessionToken:n,uniqueToken:r},performance.setResourceTimingBufferSize(1e3),this.performanceMetrics=function(t){const e=performance.getEntriesByType("navigation");if(0===e.length)return{};const n=e[0];let i=!1;return(n.requestStart&&n.startTime&&n.requestStartt+864e5)&&(i=!0),{encodedBodySize:n.encodedBodySize,decodedBodySize:n.decodedBodySize,navigationStart:Math.round(n.startTime),navigationType:n.type,navigationBad:i,firstInterimResponseStart:Math.round(n.firstInterimResponseStart),finalResponseHeadersStart:Math.round(n.finalResponseHeadersStart),responseStart:Math.round(n.responseStart),responseEnd:Math.round(n.responseEnd),workerStart:Math.round(n.workerStart),connectStart:Math.round(n.connectStart),connectEnd:Math.round(n.connectEnd),domainLookupStart:Math.round(n.domainLookupStart),domainLookupEnd:Math.round(n.domainLookupEnd),fetchStart:Math.round(n.fetchStart),redirectStart:Math.round(n.redirectStart),redirectEnd:Math.round(n.redirectEnd),requestStart:Math.round(n.requestStart),secureConnectionStart:Math.round(n.secureConnectionStart),nextHopProtocol:n.nextHopProtocol,serverTiming:JSON.stringify(n.serverTiming),domInteractive:Math.round(n.domInteractive),domComplete:Math.round(n.domComplete),domContentLoadedEventStart:Math.round(n.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(n.domContentLoadedEventEnd),redirectCount:n.redirectCount,initiatorType:n.initiatorType,transferSize:n.transferSize}}(this.info.perfKitInit)}}const he=new Set;function le(){if(null!==se){if(de()&&he.size>0){let t={};for(const e of he)t={...t,...e};he.clear(),se.info.microSessionCount+=1;const e=function(t){if(!(100*Math.random()>(t||10)))return performance.getEntriesByType("resource").map(t=>{const e=Object.entries(t.toJSON()).map(([t,e])=>"number"==typeof e?[t,Math.round(e)]:[t,e]);return JSON.stringify(Object.fromEntries(e))})}(se.config.resourceTimingSamplingRate),n=performance.getEntriesByType("resource").filter(t=>Wt.test(t.name)),i=performance.getEntriesByType("measure").filter(t=>Jt.test(t.name)).map(t=>{const e=t.toJSON();return e.name.startsWith("cart-performance:")||(e.name=`cart-performance:${e.name}`),e});$t({monorailRegion:se.config.monorailRegion,schema:Ft.OnUnload,rawData:{...se.info,...se.config.storefrontData,...se.performanceMetrics,...t,resourceTiming:e,cartAjaxResourceTimings:n,cartPerformanceMetrics:i,paintTimingHidden:ce}})}}else console.debug("⛔️ Shopify/perf-kit is not initialized")}function de(){return null!==ae?ae:et()}((e,i={})=>{const o=s(i=Object.assign({},i),t),a=new WeakMap;o.t=t=>{if(t?.sources?.length){const e=x(t.sources),n=e?.node;if(n){const t=i.generateTarget?.(n)??r(n);a.set(e,t)}}},((e,n={})=>{const i=L();M(g(()=>{let r,o=f("CLS",0);const a=s(n,t),c=t=>{for(const e of t)a.u(e);a.o>o.value&&(o.value=a.o,o.entries=a.i,r())},d=p("layout-shift",c);d&&(r=h(e,o,B,n.reportAllChanges),i.onHidden(()=>{c(d.takeRecords()),r(!0)}),u(()=>{a.o=0,o=f("CLS",0),r=h(e,o,B,n.reportAllChanges),l(()=>r())}),setTimeout(r))}))})(t=>{const i=(t=>{let e={};if(t.entries.length){const i=t.entries.reduce((t,e)=>t.value>e.value?t:e);if(i?.sources?.length){const t=x(i.sources);t&&(e={largestShiftTarget:a.get(t),largestShiftTime:i.startTime,largestShiftValue:i.value,largestShiftSource:t,largestShiftEntry:i,loadState:n(i.startTime)})}}return Object.assign(t,{attribution:e})})(t);e(i)},i)})(function(t){const{attribution:e,value:n}=t;he.add({cumulativeLayoutShift:n,cumulativeLayoutShiftTarget:e.largestShiftTarget})}),((t,n={})=>{const i=s(n=Object.assign({},n),H),o=new WeakMap;i.m=t=>{const e=t.element;if(e){const i=n.generateTarget?.(e)??r(e);o.set(t,i)}},((t,e={})=>{C(()=>{const n=L();let i,r=f("LCP");const o=s(e,H),a=t=>{e.reportAllChanges||(t=t.slice(-1));for(const e of t)o.u(e),e.startTime{a(c.takeRecords()),c.disconnect(),i(!0)}),o=t=>{t.isTrusted&&(j(n),removeEventListener(t.type,o,{capture:!0}))};for(const t of["keydown","click","visibilitychange"])addEventListener(t,o,{capture:!0});u(n=>{r=f("LCP"),i=h(t,r,N,e.reportAllChanges),l(()=>{r.value=performance.now()-n.timeStamp,i(!0)})})}})})(n=>{const i=(t=>{let n={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:t.value};if(t.entries.length){const i=e();if(i){const e=i.activationStart||0,r=t.entries.at(-1),s=r.url&&performance.getEntriesByType("resource").filter(t=>t.name===r.url)[0],a=Math.max(0,i.responseStart-e),c=Math.max(a,s?(s.requestStart||s.startTime)-e:0),u=Math.min(t.value,Math.max(c,s?s.responseEnd-e:0));n={target:o.get(r),timeToFirstByte:a,resourceLoadDelay:c-a,resourceLoadDuration:u-c,elementRenderDelay:t.value-u,navigationEntry:i,lcpEntry:r},r.url&&(n.url=r.url),s&&(n.lcpResourceEntry=s)}}return Object.assign(t,{attribution:n})})(n);t(i)},n)})(function(t){const{attribution:e,value:n}=t;he.add({largestContentfulPaint:Math.round(n),largestContentfulPaintTarget:e.target})}),((t,i={})=>{M(i=>{const r=(t=>{let i={timeToFirstByte:0,firstByteToFCP:t.value,loadState:n(c())};if(t.entries.length){const r=e(),o=t.entries.at(-1);if(r){const e=r.activationStart||0,s=Math.max(0,r.responseStart-e);i={timeToFirstByte:s,firstByteToFCP:t.value-s,loadState:n(t.entries[0].startTime),navigationEntry:r,fcpEntry:o}}}return Object.assign(t,{attribution:i})})(i);t(r)},i)})(function(t){const{value:e}=t;he.add({firstContentfulPaint:Math.round(e)})}),((t,e={})=>{const i=s(e=Object.assign({},e),I);let o=[],a=[],c=0;const l=new WeakMap,d=new WeakMap;let g=!1;const m=()=>{g||(j(v),g=!0)},v=()=>{const t=i.l.map(t=>l.get(t.entries[0])),e=a.length-50;a=a.filter((n,i)=>i>=e||t.includes(n));const n=new Set;for(const t of a){const e=y(t.startTime,t.processingEnd);for(const t of e)n.add(t)}const r=o.length-1-50;o=o.filter((t,e)=>t.startTime>c&&e>r||n.has(t)),g=!1};i.m=t=>{const e=t.startTime+t.duration;let n;c=Math.max(c,t.processingEnd);for(let i=a.length-1;i>=0;i--){const r=a[i];if(Math.abs(e-r.renderTime)<=8){n=r,n.startTime=Math.min(t.startTime,n.startTime),n.processingStart=Math.min(t.processingStart,n.processingStart),n.processingEnd=Math.max(t.processingEnd,n.processingEnd),n.entries.push(t);break}}n||(n={startTime:t.startTime,processingStart:t.processingStart,processingEnd:t.processingEnd,renderTime:e,entries:[t]},a.push(n)),(t.interactionId||"first-input"===t.entryType)&&l.set(t,n),m()},i.p=t=>{if(!d.get(t)){const n=t.entries[0].target;if(n){const i=e.generateTarget?.(n)??r(n);d.set(t,i)}}};const y=(t,e)=>{const n=[];for(const i of o)if(!(i.startTime+i.duratione)break;n.push(i)}return n},w=t=>{const e=t.entries[0],r=l.get(e),o=e.processingStart,s=Math.max(e.startTime+e.duration,o),a=Math.min(r.processingEnd,s),c=r.entries.sort((t,e)=>t.processingStart-e.processingStart),u=y(e.startTime,a),h=i.h.get(e.interactionId),f={interactionTarget:d.get(h),interactionType:e.name.startsWith("key")?"keyboard":"pointer",interactionTime:e.startTime,nextPaintTime:s,processedEventEntries:c,longAnimationFrameEntries:u,inputDelay:o-e.startTime,processingDuration:a-o,presentationDelay:s-a,loadState:n(e.startTime),longestScript:void 0,totalScriptDuration:void 0,totalStyleAndLayoutDuration:void 0,totalPaintDuration:void 0,totalUnattributedDuration:void 0};return(t=>{if(!t.longAnimationFrameEntries?.length)return;const e=t.interactionTime,n=t.inputDelay,i=t.processingDuration;let r,o,s=0,a=0,c=0,u=0;for(const c of t.longAnimationFrameEntries){a=a+c.startTime+c.duration-c.styleAndLayoutStart;for(const t of c.scripts){const c=t.startTime+t.duration;if(cu&&(o=t.startTime=e+n+i?"presentation-delay":"processing-duration",r=t,u=h)}}const h=t.longAnimationFrameEntries.at(-1),l=h?h.startTime+h.duration:0;l>=e+n+i&&(c=t.nextPaintTime-l),r&&o&&(t.longestScript={entry:r,subpart:o,intersectingDuration:u}),t.totalScriptDuration=s,t.totalStyleAndLayoutDuration=a,t.totalPaintDuration=c,t.totalUnattributedDuration=t.nextPaintTime-e-s-a-c})(f),Object.assign(t,{attribution:f})};p("long-animation-frame",t=>{o=o.concat(t),m()}),((t,e={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=L();C(()=>{"interactionCount"in performance||_||(_=p("event",T,{type:"event",buffered:!0,durationThreshold:0}));let i,r=f("INP");const o=s(e,I),a=t=>{j(()=>{for(const e of t)o.u(e);const e=o.M();e&&e.T!==r.value&&(r.value=e.T,r.entries=e.entries,i())})},c=p("event",a,{durationThreshold:e.durationThreshold??40});i=h(t,r,q,e.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{a(c.takeRecords()),i(!0)}),u(()=>{o.v(),r=f("INP"),i=h(t,r,q,e.reportAllChanges)}))})})(e=>{const n=w(e);t(n)},e)})(function(t){const{attribution:e,value:n}=t;if(null===se)return void console.debug("⛔️ Shopify/perf-kit is not initialized");if(!de())return;se.info.microSessionCount+=1;const{inputDelay:i,processingDuration:r,presentationDelay:o,longestScript:s,interactionTarget:a}=e,c=s?.entry?{slowest_script:s.entry.sourceURL,slowest_script_duration:Math.round(s.entry.duration)}:{};$t({monorailRegion:se.config.monorailRegion,schema:Ft.OnInteraction,rawData:{...se.info,...se.config.storefrontData,...se.performanceMetrics,interactionToNextPaint:Math.round(n),interactionToNextPaintTarget:a,longAnimationFrame:{input_delay:Math.round(i),processing_duration:Math.round(r),presentation_delay:Math.round(o),...c}}})},{reportAllChanges:!0}),((t,n={})=>{((t,n={})=>{let i=f("TTFB"),r=h(t,i,E,n.reportAllChanges);k(()=>{const o=e();o&&(i.value=Math.max(o.responseStart-d(),0),i.entries=[o],r(!0),u(()=>{i=f("TTFB",0),r=h(t,i,E,n.reportAllChanges),r(!0)}))})})(e=>{const n=(t=>{let e={waitingDuration:0,cacheDuration:0,dnsDuration:0,connectionDuration:0,requestDuration:0};if(t.entries.length){const n=t.entries[0],i=n.activationStart||0,r=Math.max((n.workerStart||n.fetchStart)-i,0),o=Math.max(n.domainLookupStart-i,0),s=Math.max(n.connectStart-i,0),a=Math.max(n.connectEnd-i,0);e={waitingDuration:r,cacheDuration:o-r,dnsDuration:s-o,connectionDuration:a-s,requestDuration:t.value-a,navigationEntry:n}}return Object.assign(t,{attribution:e})})(e);t(n)},n)})(function(t){const{value:e}=t;he.add({timeToFirstByte:Math.round(e)})}),addEventListener("DOMContentLoaded",()=>{ce="hidden"===document.visibilityState}),addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&le()}),function(){const{dataset:t}=document.currentScript;try{e=function(t){if(!t.application)throw new Error("Application is missing");if(!["storefront-renderer","hydrogen","shop-web"].includes(t.application.toLowerCase()))throw new Error("Invalid application type");if("shop-web"!==t.application.toLowerCase()){if(!t.shopId)throw new Error("shopId is missing");if(!t.themeInstanceId&&!t.storefrontId)throw new Error("Either `themeInstanceId` or `storefrontId` must be defined");for(const e of["shopId","themeInstanceId","storefrontId"])if(t[e]&&isNaN(Number(t[e])))throw new Error(`Invalid ${e}`)}if(t.humannessScore&&isNaN(Number(t.humannessScore)))throw new Error("Invalid humannessScore");if(t.monorailRegion&&!["shop_domain","global","staging","canada"].includes(t.monorailRegion.toLowerCase()))throw new Error("Invalid monorail region");if(t.resourceTimingSamplingRate&&(isNaN(Number(t.resourceTimingSamplingRate))||Number(t.resourceTimingSamplingRate)<10||Number(t.resourceTimingSamplingRate)>100))throw new Error("Invalid resource timing sampling rate");return{storefrontData:{application:t.application.toLowerCase(),shopId:Number(t.shopId)||0,renderRegion:t.renderRegion,pageType:t.pageType,seoBot:"true"===t.seoBot,humannessScore:Number(t.humannessScore)||void 0,ja3Fingerprint:t.ja3Fingerprint,themeInstanceId:Number(t.themeInstanceId)||void 0,storefrontId:Number(t.storefrontId)||void 0,themeName:t.themeName||void 0,themeVersion:t.themeVersion||void 0},monorailRegion:t.monorailRegion,resourceTimingSamplingRate:Number(t.resourceTimingSamplingRate)||void 0,spaMode:"true"===t.spaMode,shs:"true"===t.shs,shsBeacon:"true"===t.shsBeacon,shsBeaconEndpoint:t.shsBeaconEndpoint||void 0,shsCookie:"true"===t.shsCookie,shsExportWithFetch:"true"===t.shsExportWithFetch,shsLogsSampleRate:Number(t.shsLogsSampleRate)||1}}(t),se=new ue(e),e.spaMode&&(window.PerfKit={navigate:()=>{re?re=!1:oe||(le(),se=new ue(e),oe=!0)},setPageType:t=>{e.storefrontData.pageType=t},setConsent:t=>{ae=t}}),e.shs&&Rt({debug:!1,shopId:e.storefrontData.shopId,enableBeacon:e.shsBeacon||!1,enableCookie:e.shsCookie||!0,exportWithFetch:e.shsExportWithFetch||!0,logsSampleRate:e.shsLogsSampleRate,...e.shsBeaconEndpoint&&{beaconEndpoint:e.shsBeaconEndpoint}})}catch(t){console.error("🚫 Error initializing PerfKit:",t.message)}var e}()}();