!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},s=new WeakMap;function o(t,e){return s.get(t)||s.set(t,new e),s.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,s;return o=>{e.value>=0&&(o||i)&&(s=e.value-(r??0),(s||void 0===r)&&(r=e.value,e.delta=s,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)}}},b=t=>{document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},C=[1800,3e3],M=(t,e={})=>{b(()=>{const n=L();let i,r=f("FCP");const s=p("paint",t=>{for(const e of t)"first-contentful-paint"===e.name&&(s.disconnect(),e.startTime{r=f("FCP"),i=h(t,r,C,e.reportAllChanges),l(()=>{r.value=performance.now()-n.timeStamp,i(!0)})}))})},B=[.1,.25],z=t=>t.find(t=>1===t.node?.nodeType)||t[0];let x=0,T=1/0,S=0;const D=t=>{for(const e of t)e.interactionId&&(T=Math.min(T,e.interactionId),S=Math.max(S,e.interactionId),x=S?(S-T)/7+1:0)};let _;const A=()=>_?x: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 k=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})}))},H=[200,500];class q{m;u(t){this.m?.(t)}}const N=[2500,4e3],j=[800,1800],E=t=>{document.prerendering?b(()=>E(t)):"complete"!==document.readyState?addEventListener("load",()=>E(t),!0):setTimeout(t)},U="",O="1",V="0",Z="p",K="a",R="m",W="t",G="m",Y="a",X="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,s,o]=e;let a,c;try{a=e[5]?JSON.parse(e.slice(5).join("_")):void 0}catch{}if(o){const t=o.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),[X]:u(X),[G]:u(G),[J]:u(J)}},region:i||"",cus:a,purposes:{[K]:h(K),[Z]:h(Z),[R]:h(R),[W]:h(W)},sale_of_data_region:"t"==s,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}(K)}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 st(t){return Object.entries(t).map(([t,e])=>({key:t,value:{stringValue:String(e)}}))}function ot(t){if(Array.isArray(t))return{arrayValue:{values:t.map(t=>ot(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:s,timeUnixNano:o,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:s||"1",histogram:{aggregationTemporality:1,dataPoints:[]}};for(let t=0;t0?l:0,bucketCounts:i>0?[1]:[]};t[n].exponentialHistogram.dataPoints.push({attributes:st(null!=o?o:{}),startTimeUnixNano:s,timeUnixNano:s,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:s,attributes:o}=e;t[n]||={name:n,unit:r||"1",sum:{aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}},t[n].sum.dataPoints.push({startTimeUnixNano:s,timeUnixNano:s,asDouble:i,attributes:st(null!=o?o:{})})}(t,e);break;case"gauge":!function(t,e){const{name:n,value:i,unit:r,timeUnixNano:s,attributes:o}=e;t[n]||={name:n,unit:r||"1",gauge:{dataPoints:[]}},t[n].gauge.dataPoints.push({startTimeUnixNano:s,timeUnixNano:s,asDouble:i,attributes:st(null!=o?o:{})})}(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:ot(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 s=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:s.status}),!s.ok){if(400===s.status){const t=await s.text();throw new yt(`Invalid OpenTelemetry Data: ${t}`)}if(429===s.status||503===s.status){const e=await s.text(),n=s.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 ${s.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.5",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",prepack:"pnpm bundle"},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/opentelemetry-mini-client-private":"^1.6.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"},peerDependencies:{"@shopify/opentelemetry-mini-client-private":"^1.6.0"},prettier:"@shopify/prettier-config"};!function(t){var e=211,n=203,i=208,r=211,s=200,o=210,a=188,c=194;function u(t,e){return zt(e- -423,t)}for(var h=t();;)try{if(157346===parseInt(u(-209,-e))/1+parseInt(u(-n,-193))/2*(parseInt(u(-212,-i))/3)+parseInt(u(-r,-204))/4*(parseInt(u(-200,-207))/5)+parseInt(u(-s,-209))/6+parseInt(u(-202,-n))/7*(parseInt(u(-o,-205))/8)+parseInt(u(-200,-210))/9+-parseInt(u(-a,-198))/10*(parseInt(u(-190,-c))/11))break;h.push(h.shift())}catch(t){h.push(h.shift())}}(xt);var bt,Ct,Mt=(bt=1121,Ct=!0,function(t,e){var n=Ct?function(){var n,i,r=914;if(e){var s=e[(n=bt,i=1131,zt(i-r,n))](t,arguments);return e=null,s}}:function(){};return Ct=!1,n}),Bt=Mt(this,function(){function t(t,e){return zt(t- -513,e)}return Bt[t(-285,-287)]()[t(-302,-297)](t(-292,-297))[t(-285,-277)]()[t(-291,-284)](Bt)[t(-302,-309)](t(-292,-289))});function zt(t,e){var n=xt();return zt=function(e,i){var r=n[e-=211];if(void 0===zt.VYDpxR){var s=function(t){for(var e,n,i="",r="",o=i+s,a=0,c=0;n=t.charAt(c++);~n&&(e=a%4?64*e+n:n,a++%4)?i+=o.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=530,n=591,i=705,r=776,s=732,o=599,a=771,c=580,u=580,h=489,l=676,d=752,f=704,p=t();function g(t,e){return At(t-224,e)}for(;;)try{if(718345===parseInt(g(e,447))/1*(parseInt(g(509,n))/2)+-parseInt(g(523,512))/3*(-parseInt(g(i,r))/4)+parseInt(g(s,617))/5*(-parseInt(g(572,646))/6)+parseInt(g(708,o))/7+parseInt(g(652,a))/8*(-parseInt(g(c,u))/9)+-parseInt(g(h,549))/10*(parseInt(g(644,l))/11)+parseInt(g(628,d))/12*(-parseInt(g(566,f))/13))break;p.push(p.shift())}catch(t){p.push(p.shift())}}(_t);const St=function(){let t=!0;return function(e,n){const i=397,r=t?function(){if(n){const s=n[(t=i,r=303,At(t- -37,r))](e,arguments);return n=null,s}var t,r}:function(){};return t=!1,r}}(),Dt=St(this,function(){const t=238,e=207,n=520,i=127;function r(t,e){return At(e- -54,t)}return Dt[r(201,223)]()[r(204,t)](r(312,226))[r(e,223)]()[r(n,477)](Dt)[r(106,238)](r(i,226))});function _t(){const t=["C2vUzejLywnVBIbLCNjVCJOG","Aw5PDa","C2fTzvnPDgu","Bg9HzgLUzW","y29VA2LL","Dg91y2HFywn0AxzPDhK","CMvXDwvZDeLKBgvdywXSyMfJAW","Bwf4u2LSzw5Jzu1Z","z2v0tgvNywn5","BgvUz3rO","Cgf0Aa","zxHLyW","C3rHCNruAw1L","oYbTyxGTywDLpq","BgfUz3vHz2vZ","zM9YrwfJAa","Bg9NtwvZC2fNzq","CMvXDwvZDeLKBgvdywXSyMfJA0LK","y29VA2LLtMfTzq","ywrKq29SB3jtDg9W","CNvUq2fUDMfZvgvZDa","ChvZAa","BwLU","y2XPy2TqB3nPDgLVBNm","BM93","z2v0qwjZB2X1DgvvCMW","xZb4ngzHmMu3","CYbZAw5JzsbSyxn0ihn1y2nLC3nMDwWGC2vUza","z2v0qM91BMrPBMDdBgLLBNrszwn0","CgfNzunVDw50","BMf0DxjHBf9JBgLJA19Wyxr0zxjUCW","Dg91y2Hby3rPDML0Eq","re9nq29UDgvUDeXVywrLza","C2v0vgLTzw91Da","C2nYB2XSwq","y2HLy2TwAwv3Cg9YDfjHDgLV","Dg91y2HfDMvUDhm","Bw91C2vby3rPDML0Eq","Dg91y2HZDgfYDa","qMvHy29UihnLBNqGC3vJy2vZC2z1BgX5ihzPysbMzxrJAa","y3jLyxrLtgLUzwfYr3jHzgLLBNq","ChjLCgfYzvbHEwXVywreyxrH","Dg91y2HLCW","q29VA2LLihnLDcb1C2LUzYbSzwDHy3KGBwv0Ag9K","ndq3oduYsvHKCw9q","Bw9UAxrVCKjLAgf2Aw9Y","zxzLBNriyw5KBgvYCW","y2HLy2TcCM93C2vYq29UC2LZDgvUy3K","tM8GC2LNBMfSignOyw5NzxmGzgv0zwn0zwqGyw5Kig1HEcbZAwXLBMnLihrPBwuGBM90ihjLywnOzwqSigjLywnVBIbUB3qGC2vUDa","icbnB3vZzsbHy3rPDML0EtOG","ChjL","C2vZC2LVBLn0B3jHz2u","u2vUzgLUzYbWzxjPB2rPyYbIzwfJB24Glsa","CgX1z2LUCW","CM91BMq","u2vUzgLUzYbIzwfJB24GzhvLihrVihnPz25HBcbJAgfUz2vZ","zgv2AwnLugL4zwXsyxrPBW","BgfZDfn1y2nLC3nMDwXtzw5KvgLTzq","DgvZDa","tg9HzgvKihnLC3nPB24GC2LNBMfSCYbPBIbqCM9JzxnZzwrtAwDUywXZigzVCM1HDa","mJjSyNDpsxy","C2LNBMLMAwnHBNrFCgfNzv90Aw1L","u3rYAwn0","C2vZC2LVBKrHDge","Bw92zq","Dg91y2HLBMq","Aw50","A2v5zg93BG","mtzMtLvmCei","zgvZDhjVEq","mtzWEcbbCMLHBa","y2HLy2TbBMrtzw5Ku2LNBMfSCW","zMLSBfn0EwXL","zxHWB3j0v2L0AezLDgnO","yxbWBhK","yNjVD3nLCKfqsq","z2v0rgLZDgfUy2u","q29VA2LLu3rVCMuGC2v0igzHAwXLzcWGzMfSBgLUzYbIywnRoIa","y3jLyxrLrwXLBwvUDa","A2v5yM9HCMrFywn0AxzPDhK","A2v5yM9HCMrcDxjZDefJDgL2Axr5","C2vUzejLywnVBIbYzxr1CM5LzcbMywXZzsWGzMfSBgLUzYbIywnRihrVigzLDgnO","Aw5JBhvKzxm","zMXVB3i","B250B3vJAhn0yxj0","yMvHy29Uu3rHDgu","oYbtyw1Lu2L0zt0","Bwf4","w1niu10G","C2nYB2XSrxzLBNrZ","qMvHy29UihjLDhj5ihnJAgvKDwXLzcbPBIa","qMvHy29UihnLBMqGzgvIB3vUy2vKicH0B28GC29VBIbZAw5JzsbSyxn0ihnLBMqP","DMvYC2LVBG","C3rHDhvZ","A2v5qwn0AxzPDhK","y29VA2LLu3rVCMu","C3fYDa","y29VA2LLrxHWAxj5","u2LNBMfSignOyw5NzxmGzgv0zwn0zwq6","yxrHBJi","y2XPzw50wa","z2v0","C2vZC2LVBL9KDxjHDgLVBL9YzwfZB25HyMXL","i2zMzG","tw9IAwXL","yMLUza","Ahr0CdOVlW","yMfZzvvssq","y2XPzw50v2LKDgG","zw52AxjVBM1LBNq","qxqGBgvHC3qGB25LihnPz25HBcbJB2XSzwn0Aw9Uig1LDgHVzcbTDxn0igjLigvUywjSzwqGkgnVB2TPzsbVCIbIzwfJB24P","BgvMDa","y2XPy2Tby3rPDML0Eq","ChjVDg9JB2W","CMvTB3zLrxzLBNrmAxn0zw5LCG","q29VA2LLu3rVCMuGz2v0igzHAwXLzcWGzMfSBgLUzYbIywnRoIa","vxbKyxrPBMCGy29VA2LLihDPDgGGCgf5Bg9HzdOG","CMvK","CMvHzhLtDgf0zq","C2L6zq","y2f0y2G","mJyXnJqYmhzyuw54sq","C2nOzwr1BgvczwfJB25szxrYEq","ywjZ","odaXnZuWnMLKzMHyAa","sw5PDgLHBgL6Aw5NigH1BwfUigrLDgvJDgLVBG","yMvHy29UuMv0CNLmAw1PDa","qMvHy29UihnLBNqGC3vJy2vZC2z1BgX5ihzPysbZzw5KqMvHy29Uiefqsq","zMLSBfrLEhq","q29UDhjVBa","C2HVCeLK","Bw91C2vTB3zL","D2vIzhjPDMvYx2rLDgvJDgvK","DxbKyxrLu2vZC2LVBKrHDge","DgfYz2v0","icblzxLIB2fYzcbHy3rPDML0EtOG","u2vZC2LVBIbKyxrHigXVywrLzdOG","DxbKyxrLsw50zxj2ywW","D2LUzg93","Bw91C2vqB3nPDgLVBNm","AgvPz2H0","C2vZC2LVBLn0yxj0","u2HPzNq","Dw5KzwzPBMvK","BgfZDfnPz25HBhm","y2XPy2S","C2nYB2XSx2fJDgL2Axr5","BMf2AwDHDg9Y","mZm1nduWD1vOqu1I","Bg9NC1nHBxbSzvjHDgu","y2XPzw50wq","B3b0Aw9UCW","C2nYB2XS","tM8GC2vZC2LVBIbKyxrHigzVDw5KoIa","CMvKDwnL","Bg9HzfnLC3nPB25eyxrH","Aw5JBhvKzq","C3rHCNrZv2L0Aa","Aw5UzxjxAwr0Aa","y2fUDMfZx2zPBMDLCNbYAw50x25VCM1HBa","CMv0CNLdB3vUDa","yM90x3vZzxjFywDLBNq","C2v0tgvNywn5","q29VA2LLigXVywrPBMCGC2TPChbLzcaTignVB2TPzxmGzgLZywjSzwq","y2fSy3vSyxrLq2XPy2TqCMvJAxnPB24","AhjLzG","zhvYyxrPB24","C2HPzNq","CgfYC2u","C2v0","C2f2zvnLC3nPB25tAwDUywXZ","y29UC3rYDwn0B3i","C2vUzejLywnVBG","BgfZDfbYB2nLC3nuAw1L","A2v5CW","icbdBgLJAYbHy3rPDML0EtOG","z2v0q29UDgv4Da","BxvSDgLWBgvFCgfNzxnFDMLZAxrLza","BgfZDfrVDwnOrxzLBNq","zgLY","zw52AxjVBM1LBNrdAgvJA2vK","qMvHy29UigvYCM9YoIa","DxbKyxrLsw50zxj2ywXjza","A2v5","C3rYAw5NAwz5","q29VA2LLu3rVCMuGC2v0ihbYB21PC2uGCMvQzwn0zwq6ia","Ahr0Chm6lY8","DMfSDwu","mZa2mte1mgTID3buAa","zg93BG","psHBxJTDkYK","zw5HyMXLq29VA2LL","twv0yq","DxbKyxrLq29VA2LL","Bg9JyxrPB24","Ag9ZDg5HBwu","y2fUDMfZ","zgvIDwC","DxnLCKfNzw50","icboyxr1CMfSig1VDMvTzw50oIa","Dg9tDhjPBMC","BMf0DxjHBf9TB3vZzv9Hy3rPDML0Eq","CgvYAw9KAwm","kcGOlISPkYKRksSK","ue9tva","y2XPzw50sgvPz2H0","zM9UDa","y2HHBMDL","ntq5ody0BgnLz3Dq","tg9HzgvKihnLC3nPB24GC2LNBMfSCYbMCM9TifnPz25HBhnqyxLSB2fKigzVCM1HDa","yxbWBgLJyxrPB24VANnVBG","z2v0sxrLBq","qwX0","A2v5rxzLBNrZ","q29VA2LLihnLDcb1C2LUzYbdB29RAwvtDg9YzsbbueK","C2vHCMnO","yMX1zq","zg9JDw1LBNrfBgvTzw50","Dg9mB3DLCKnHC2u","Ahr0Chm6lY9VDgXWlwH0DhaTChjVzhvJDgLVBI5ZAg9WAwz5C3zJlMnVBq","ywrKrxzLBNrmAxn0zw5LCG","kf58icK","m05dBNDlsa","icbwyxjPzwqGy2XPy2TZoIa","CMvMzxjYzxi","Dg91y2HTB3zL","yNjVD3nLCL9LBNzPCM9UBwvUDf9UB3jTywW","y2HLy2TfBNzPCM9UBwvUDa","Aw5UzxjizwLNAhq","m25OwejwBG","zg9JDw1LBNq","rMfPBgvKihrVigXVywqGC2vZC2LVBIbZAwDUywXZoIa","A2v5yM9HCMrcDxjZDhm","Bg9HzfnLC3nPB25tAwDUywXZ","ihbHz2vZ","zMLSBfjLy3q","lcbMywXSAw5NigjHy2SGDg8GzMv0y2G","qMvHy29UigzHAwXLzdOG","C3rHCNq","w0nVB2TPzuPHCL0G","iokgKIa","zMX1C2HpDgvStg9NCW","C2v0sxrLBq","Dg9W","icbtzxnZAw9Uigr1CMf0Aw9UoIa","C2vZ","xZb4mZC3mZvM","u2vZC2LVBIbZAwDUywXZihnHDMvK","A2vLCf9HBgL2zq","B3jPz2LU","icaOsw5PDgLHBcbZAwDUywWGC2v0kq","uMf3igjLAgf2Aw9YywWGzgf0ytO","u2HVCgLMEsbtDg9YzwzYB250","zw5HyMXLqMvHy29U","rMfPBgvKihrVihnHDMuGC2vZC2LVBIbZAwDUywXZoIa","BgfZDfvWzgf0zvrPBwu","yMvHy29Urw5KCg9PBNq","z2v0vgLTzxPVBMvpzMzZzxq","C2nYB2XSqwn0AxzPDhK","Ag9ZDa","DgLTzvn0yw1W","y2XLyxjuAw1LB3v0","Dg9eyxrHvvjm","x3nOC19ZDgf0zq","icbuAw1Lig9UihbHz2u6ia","mtmWt0fdEvHx","CMv0CNLuAw1LB3v0swq","Bg9N","D2LKDgG","l2fWAs9JB2XSzwn0","oYbWyxrOpq","nJbgtunruxK","icbqywDLignVDw50oIa","qMvHy29UihjLDhj5igXPBwL0ihjLywnOzwq","DgHLBG","CgvYzI1RAxqTAhvTyw4TC2LNBMfSCW","C3rHDgu","y29VA2LLsMfY","y2fUy2vSswrSzunHBgXIywnR","mteYmZa4m1nJtLfhBW","icbty3jVBgWGywn0AxzPDhK6ia","BwfW","D2vIzhjPDMvY"];return(_t=function(){return t})()}function At(t,e){const n=_t();return At=function(e,i){let r=n[e-=263];if(void 0===At.VenHjW){var s=function(t){let e="",n="",i=e+s;for(let n,r,s=0,o=0;r=t.charAt(o++);~r&&(n=s%4?64*n+r:r,s++%4)?e+=i.charCodeAt(o+10)-10!=0?String.fromCharCode(255&n>>(-2*s&6)):s:0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,i=e.length;t{function n(t,e){return b(t- -123,e)}this[n(v,1125)](n(y,w)+e),this[n(1303,1205)](t)}),this[b(1280,1414)](b(f,1170))}catch(e){this[b(p,1380)](b(1341,1447)+e),this[b(g,m)](t)}else this[b(g,1551)](t)}[Gt(1172,1114)](){const t=1164,e=1011,n=1009,i=1135,r=1148,s=1149,o=1020,a=this[c(1224,1187)][c(1091,t)];function c(t,e){return Gt(e,t- -33)}const u=new RegExp(c(e,1088)+a+c(980,n))[c(1084,i)](this[c(r,s)][c(o,1033)][c(1077,956)]);return u?u[2]:null}[Gt(1301,1268)](t){const e=944,n=1008,i=1017,r=1129,s=1155,o=913,a=904,c=1155,u=1101,h=954,l=1006,d=1047;function f(t,e){return Gt(t,e- -102)}this[f(1133,1079)][f(e,951)][f(1127,n)]=this[f(i,1155)][f(r,1022)]+"="+t+f(1002,991)+this[f(1071,s)][f(o,1014)]+f(a,i)+this[f(1075,c)][f(1226,u)]+f(h,1090)+this[f(1214,1155)][f(1092,l)],this[f(1079,1020)](f(1122,d))}[Gt(991,1122)](t){const e=141,n=184,i=113,r=37;function s(t,e){return Gt(e,t- -949)}this[s(183,105)][s(e,n)](s(i,r)+t)}}function Nt(){const t=748,e=774,n=798,i=671,r=679,s=719,o=550,a=543;function c(t,e){return Gt(t,e- -530)}return{document:document,navigator:typeof navigator!==c(790,719)?{get webdriver(){return navigator[(t=o,e=a,c(e,t- -25))];var t,e},get userAgent(){return navigator[(t=-224,e=-173,c(t,e- -664))];var t,e},get languages(){return navigator[(t=-669,e=-620,c(t,e- -1210))];var t,e},get plugins(){return navigator[(t=49,e=-39,c(t,e- -668))];var t,e},sendBeacon:navigator[c(731,t)]?.[c(723,681)](navigator)}:{webdriver:void 0,userAgent:"",languages:[],plugins:[],sendBeacon:void 0},window:window,screen:screen,cookieStore:typeof window!==c(e,719)&&c(n,i)in window?window[c(540,i)]:void 0,performance:typeof performance!==c(r,s)?performance:void 0}}function jt(t){if(t[i(-612,-557)]<2)return{speed:0,jitter:0};const e=t[i(-491,-412)]((t,e)=>t+e.s,0)/t[i(-428,-557)],n=t[i(-426,-412)]((t,n)=>t+(n.s-e)**2,0)/(t[i(-651,-557)]-1);function i(t,e){return Gt(t,e- -1672)}const r=Math[i(-441,-470)](n);return{speed:e,jitter:r}}function Et(t,e,n,i,r,s,o,a,c,u,h,l,d){const f=10,p=24,g=0,m=28,v=124,y=1285,w=1374,L=Math[C(-23,-104)](1e3,t),b=Math[C(-19,-104)](1e3,n);function C(t,e){return Gt(t,e- -1232)}const M=Math[C(-156,-104)](1e3,s),B=Math[C(-169,-104)](1e3,a),z=Math[C(-165,-104)](1e3,o),x=Math[C(f,-104)](1e3,c),T=[];if(e[C(-197,-117)]>=3)for(let t=1;t5e-4){e=!0;break}n=r.s}else n=r.s;return e}(T),D=function(t){const e=1075,n=1165,i=1165,r=1144,s=1157;if(t[o(e,1078)]<3)return 0;function o(t,e){return Gt(e,t- -40)}let a=0,c=0;for(let u=1;u2*Math.PI-Math.PI/12)&&a++,c++}return c>0?a/c:0}(e),{speed:_,jitter:A}=jt(T);let P=0,I=0;if(i[C(-77,-117)]>1){const t=new Set(i[C(g,-128)](t=>Math[C(-31,-43)](t.x/20)+","+Math[C(-62,-43)](t.y/20)))[C(-139,-7)];P=t>1?1:0,I=i[C(-36,28)]((t,e)=>t+e[C(32,-76)],0)/i[C(2,-117)]}const k=r[C(145,m)]((t,e)=>{function n(t,e){return C(e,t-1345)}return null===e[n(y,1408)]||t[n(1240,1237)](e[n(1285,w)]),t},[]),{rhythmConsistency:H,jitter:q}=function(t){const e=816,n=961,i=1074,r=968;if(t[a(e,875)]<2)return{rhythmConsistency:0,jitter:0};const s=t[a(n,963)]((t,e)=>t+e,0)/t[a(816,731)],o=t[a(n,i)]((t,e)=>(t??0)+((e??0)-s)**2,0)/t[a(e,931)];function a(t,e){return Gt(e,t- -299)}const c=Math[a(903,r)](o);return{rhythmConsistency:0===c?1:Math[a(894,1009)](0,1-c/s),jitter:c/s}}(k),N=k[C(-37,-117)]>0?k[C(v,28)]((t,e)=>t+e,0)/k[C(-164,-117)]:0,j=[];if(u[C(-73,-117)]>=3)for(let t=1;tu[t-1].p?C(-91,-220):"up";j[C(-133,-105)]({s:i,dir:r,t:u[t].t})}const{speed:E,jitter:U}=jt(j),O=function(t){if(t[n(-591,-473)]<2)return 0;let e=0;for(let i=1;i=500&&t[r].t-i>=500&&(e++,i=t[r].t);return e}(j)),{speed:Z,jitter:K}=jt(h),R=function(t){if(t[n(-433,-406)]<2)return 0;let e=0;function n(t,e){return Gt(e,t- -1548)}for(let i=1;i=500&&e++;return e}(h)),G=Math[C(-178,-43)]((d-l)/1e3);return{ma:L,ca:b,ka:M,sa:B,ta:x,kba:z,t:Math[C(-187,-104)](3600,G),nm:S?1:0,ms:Ot(D),mj:Ot(A),msp:Ot(_),vc:P,cp:Ot(I),rc:Ot(H),kj:Ot(q),ki:Ot(N),ss:Ot(E),sj:Ot(U),ssm:Ot(O),sp:V,ts:Ot(Z),tj:Ot(K),tp:W,tsm:Ot(R)}}function Ut(t,e){const n=746,i=636,r=588,s=636;let o=0;return(...a)=>{function c(t,e){return At(e-252,t)}const u=typeof performance!==c(n,755)?performance[c(773,i)]():Date[c(r,s)]();u-o>=e&&(o=u,t(...a))}}function Ot(t){return Math[(e=1321,n=1329,Gt(e,n-169))](100*t)/100;var e,n}function Vt(t){const e=1041,n=871,i=852,r=1015,s=948,o=997,a=1125,c=979,u=1056,h=1107,l=1020;function d(t,e){return Gt(t,e- -188)}return{wd:t[d(1127,1050)],ua:t[d(990,1079)],cf:t[d(e,1077)],be:t[d(n,861)],nm:t[d(i,836)],nc:t[d(r,s)],ka:t[d(1106,o)],sa:t[d(a,1064)],ta:t[d(1044,923)],pt:t[d(868,c)],mp:t[d(u,1095)],sd:t[d(h,l)]}}class Zt{[Gt(990,1069)];[Gt(1032,1099)];[Gt(1308,1181)];[Gt(1097,1100)];[Gt(1095,1132)];constructor(t,e,n=Nt()){const i=573,r=685,s=636,o=596,a=486,c=527,u=580,h=541,l=720,d=694,f=604,p=628,g=675,m=707,v=636,y=550,w=603,L=520,b=458,C=508,M=695,B={shopId:0,cookieName:z(575,627),cookieExpiry:1800,updateInterval:5e3,debug:!1,enableBeacon:!1,beaconEndpoint:kt,beaconRetryLimit:3,enableCookie:!0,maxSilenceMs:18e5,exportWithFetch:!1,logsSampleRate:1};function z(t,e){return Gt(e,t- -496)}if(this[z(i,672)]={...B,...e},this[z(r,619)]=n,this[z(s,o)]=t,!this[z(573,a)][z(518,623)]&&!this[z(i,c)][z(u,h)])throw new Error(z(l,d));if(this[z(f,673)]=new qt(this[z(685,583)],{cookieName:this[z(i,692)][z(p,g)],cookieExpiry:this[z(i,f)][z(m,780)]},this[z(v,y)]),this[z(w,L)]={startTime:Date[z(634,615)](),lastUpdateTime:null,environmentChecked:!1,sessionData:null,mouseActivity:0,clickActivity:0,keyActivity:0,keyboardBurstActivity:0,scrollActivity:0,touchActivity:0,mousePositions:[],clickPositions:[],keyEvents:[],scrollEvents:[],keyboardBursts:[],touchEvents:[],lastTouchEvent:null},this[z(i,664)][z(580,444)]){const t=this[z(560,b)]();this[z(603,C)][z(M,626)]={lastSignals:t,lastProcessTime:0,lastSuccessfulSendTime:0,retryCount:0}}}[Gt(1201,1107)](){const t=1269,e=973,n=1189,i=1125,r=1252,s=1228,o=1147,a=514,c=810,u=781,h=985,l=955,d=850,f=784;function p(t,e){return Gt(t,e- -506)}this[p(518,616)](p(759,725),!0),(async()=>{await this[m(t,1300)](),await this[m(1058,1069)](),await this[m(1024,e)](!0),this[m(n,i)][m(r,s)][m(o,1184)](()=>{var t,e;this[(t=643,e=595,m(t- -516,e))]()},100);const g=()=>{const t=Date[r(841,733)](),e=t-(this[r(c,767)][r(789,673)]||t),n=Math[r(904,u)](0,this[r(780,646)][r(954,950)]-e),i=()=>{const t=273,e=315;function n(t,e){return r(t- -1407,e)}this[n(-515,-381)][n(-452,-525)][n(-584,-535)]?this[n(-597,-532)][n(-573,-560)]=this[n(-515,-618)][n(-452,-574)][n(-584,-676)](()=>{const i=953;function r(t,e){return n(e-i,t)}this[r(159,t)]()[r(437,354)](()=>this[r(477,389)][r(282,321)]())[r(e,354)](()=>{g()})},{timeout:2e3}):this[n(-680,-801)]()[n(-599,-693)](()=>this[n(-564,-656)][n(-632,-708)]())[n(-599,-719)](()=>{g()})};function r(t,e){return m(t- -297,e)}n>0?this[r(892,h)][r(l,937)][r(d,f)](i,n):i()};function m(t,e){return p(e,t-a)}g()})()}[Gt(1117,1175)](){function t(t,e){return Gt(t,e- -1536)}this[t(-376,-437)][t(-169,-248)]&&this[t(-245,-355)][t(-379,-292)][t(-455,-452)](this[t(-521,-437)][t(-174,-248)]),this[t(-324,-437)][t(-331,-413)]&&this[t(-482,-355)][t(-198,-292)][t(-373,-435)]&&this[t(-490,-355)][t(-169,-292)][t(-455,-435)](this[t(-475,-437)][t(-471,-413)]),this[t(-299,-437)][t(-440,-384)]&&(this[t(-412,-355)][t(-390,-483)][t(-374,-316)](t(-282,-299),this[t(-371,-437)][t(-321,-384)][t(-325,-299)]),this[t(-470,-355)][t(-603,-483)][t(-197,-316)](t(-290,-285),this[t(-312,-437)][t(-455,-384)][t(-243,-285)]),this[t(-341,-355)][t(-410,-483)][t(-392,-316)](t(-375,-363),this[t(-345,-437)][t(-269,-384)][t(-413,-363)]),this[t(-226,-355)][t(-461,-483)][t(-353,-316)](t(-379,-278),this[t(-392,-437)][t(-471,-384)][t(-397,-278)]),t(-386,-346)in window&&this[t(-491,-437)][t(-352,-384)][t(-531,-392)]&&this[t(-532,-437)][t(-507,-384)][t(-455,-488)]&&this[t(-537,-437)][t(-250,-384)][t(-402,-365)]&&(this[t(-234,-355)][t(-570,-483)][t(-396,-316)](t(-450,-392),this[t(-441,-437)][t(-525,-384)][t(-359,-392)]),this[t(-261,-355)][t(-517,-483)][t(-374,-316)](t(-385,-488),this[t(-381,-437)][t(-443,-384)][t(-583,-488)]),this[t(-272,-355)][t(-593,-483)][t(-216,-316)](t(-490,-365),this[t(-400,-437)][t(-378,-384)][t(-407,-365)]))),this[t(-433,-437)][t(-427,-345)]?.[t(-334,-447)]&&this[t(-220,-355)][t(-215,-292)][t(-345,-452)](this[t(-456,-437)][t(-261,-345)][t(-543,-447)]),this[t(-565,-437)][t(-338,-345)]=void 0}async[Gt(1402,1261)](){const t=851,e=752,n=730,i=948,r=837,s=708,o=729,a=675,c=799,u=698,h=698,l=763,d=872,f=799,p=765;if(!this[g(685,699)][g(527,644)])return void this[g(t,e)](g(850,899));function g(t,e){return Gt(t,e- -370)}const m=await this[g(760,n)][g(i,r)](),v=function(t){const e=877;if(!t)return null;try{const r=JSON[(n=e,i=742,Gt(n,i- -532))](atob(decodeURIComponent(t)));return r.v&&r.ts?r:null}catch(t){return null}var n,i}(m);v?(this[g(s,o)][g(a,708)]=v.ts,v[g(806,698)]&&(this[g(797,729)][g(690,c)]={pageCount:v[g(803,u)].p||1,sessionStart:v[g(676,h)].s||Date[g(716,760)](),duration:v[g(701,698)].d||0},this[g(l,752)](g(915,d)+this[g(726,729)][g(874,f)][g(758,p)]+g(612,687)))):this[g(786,752)](g(827,889)+m)}[Gt(990,1050)](){const t=348,e=89,n=268,i=36,r=168,s=114,o=230,a=197,c={wd:this[u(196,195)][u(268,t)][u(120,260)]?1:0,ua:/bot|crawler|spider|scraper/i[u(179,238)](this[u(196,e)][u(n,404)][u(i,38)])?0:1,cv:this[u(141,125)]()?1:0,br:this[u(r,144)]()?1:0};function u(t,e){return Gt(e,t- -985)}return this[u(s,-9)][u(o,a)]=c,this[u(114,126)][u(301,367)]=!0,c}[Gt(1140,1126)](){const t=1027,e=822,n=852,i=818,r=890,s=1065,o=1045,a=960,c=888,u=924,h=789,l=859,d=845,f=857,p=977,g=1008,m=828,v=977,y=975,w=874,L=884;function b(t,e){return Gt(t,e- -201)}try{const C=this[b(t,980)][b(e,n)][b(859,983)](b(807,i));C[b(769,r)]=200,C[b(s,o)]=50;const M=C[b(a,1081)]("2d");if(null===M)return!1;const B=M[b(920,945)](0,0,200,0);B[b(c,u)](0,b(979,1022)),B[b(h,u)](1,b(l,838)),M[b(1075,977)]=B,M[b(d,f)](0,0,200,50),M[b(986,p)]=b(955,g),M[b(832,m)]=b(v,y),M[b(1016,1033)](b(836,w),33,30);const z=C[b(834,L)]();return Boolean(z&&z[b(816,914)]>50)}catch(t){return!1}}[Gt(1276,1153)](){const t=212,e=179,n=284,i=123,r=151,s=174,o=151,a=50,c=146,u=264,h=212,l=368,d=317,f=190,p=193,g=212,m=284,v=190,y=220,w=180,L=284,b=158,C=106,M=275,B=187,z=402,x=21,T=111;let S=0;function D(t,e){return Gt(t,e- -969)}this[D(176,t)][D(e,n)][D(i,r)]&&this[D(s,212)][D(286,n)][D(257,o)][D(a,c)]>0&&S++,(this[D(u,h)][D(l,284)][D(d,f)]&&this[D(p,g)][D(277,m)][D(310,v)][D(y,146)]>0||this[D(329,t)][D(w,L)][D(-78,52)][D(193,219)](D(b,241)))&&S++,this[D(256,172)]()&&S++,typeof this[D(C,212)][D(205,M)][D(B,193)]!==D(z,280)&&S++;try{const t=(new Date)[D(x,T)]();t>-840&&t<840&&S++}catch(t){}return S>=3}[Gt(1098,1141)](){const t=this[n(-232,-148)][n(-169,-268)][n(-149,-98)]||this[n(-232,-110)][n(-360,-229)][n(-373,-316)][n(-199,-213)],e=this[n(-232,-315)][n(-169,-213)][n(-362,-394)]||this[n(-232,-215)][n(-360,-270)][n(-373,-513)][n(-385,-302)];if(!t||!e)return!1;if(t<=2||e<=2)return!1;function n(t,e){return Gt(e,t- -1413)}const i=t/e;return i>=.2&&i<=5}[Gt(1253,1151)](){const t=922,e=1220,n=457,i=411,r=423,s=504,o=508,a=304,c=378,u=489,h=619,l=304,d=402,f=347,p=334,g=290,m=438,v=353,y=394,w=411,L=353,b=461,C=288,M=375,B=304,z=327,x=342,T=280,S=489,D=462,_=470,A=428,P=445,I=306,k=375,H=181,q=162,N=36,j=9,E=100,U=167,O=178,V=100,Z=107,K=42,R=138,W=28,G=1073,Y=1156,X=1057,J=992,F=1284,$=1089,Q=1169,tt=1183,et=1247,nt=1288,it=1206,rt=720,st=846,ot=707,at=947,ct=1044,ut=1015,ht=995,lt=982,dt=895,ft=830,pt=909,gt=783,mt=643,vt=862,yt=726,wt=787,Lt=1020,bt=943,Ct=846,Mt=863,Bt=783,zt=874,xt=968,Tt=802,St=778,Dt=838,_t=903,Pt=933,It=1003,kt=860,Ht=1040,qt=1148,Nt=74,jt=102,Et=Ut(t=>{function e(t,e){return At(t- -425,e)}this[e(-72,-87)][e(-28,-38)]++,this[e(-72,-194)][e(74,204)][e(-56,-122)]>=10&&this[e(-72,-153)][e(Nt,107)][e(jt,-27)](),this[e(-72,-114)][e(74,33)][e(-44,82)]({x:t[e(35,174)],y:t[e(85,-35)],t:t[e(-88,3)]})},100),Ot=t=>{function e(t,e){return At(t-568,e)}this[e(921,989)][e(Ht,qt)]++,requestAnimationFrame(()=>setTimeout(()=>{function n(t,n){return e(t- -1359,n)}this[n(-438,-436)][n(-408,-346)][n(-422,-539)]>=5&&this[n(-438,-545)][n(-408,-438)][n(-264,-235)](),this[n(-438,-396)][n(-408,-375)][n(-410,-499)]({x:t[n(-331,-437)],y:t[n(-281,-204)],t:t[n(-454,-488)],pre:this[n(-267,-315)](t)})},0))},Vt=t=>{this[s(st,ot)][s(at,ct)]++;const e=t[s(1036,ut)];if([s(ht,917),s(lt,998),s(782,778),s(762,759)][s(935,1022)](e))return;const n=this[s(846,dt)][s(783,813)][this[s(846,939)][s(783,786)][s(862,731)]-1],i=t[s(ft,pt)],r=n?i-n.t:null;function s(t,e){return At(t-493,e)}this[s(846,805)][s(gt,mt)][s(vt,1004)]>=10&&this[s(846,yt)][s(gt,wt)][s(Lt,bt)](),this[s(Ct,Mt)][s(Bt,701)][s(zt,xt)]({_0x3a2316:e,t:i,int:r}),null!==r&&r<100?(this[s(846,794)][s(Tt,790)][s(874,St)](r),this[s(846,953)][s(802,943)][s(862,Dt)]>=5&&(this[s(846,_t)][s(Pt,It)]++,this[s(846,770)][s(802,844)]=[])):this[s(846,kt)][s(802,_t)]=[]},Zt=Ut(t=>{this[i(G,1149)][i(1055,Y)]++;const e=t[i(X,J)],n=window[i(1114,1016)];function i(t,e){return At(t-rt,e)}this[i(G,954)][i(1169,F)][i($,952)]>=10&&this[i(1073,1207)][i(Q,tt)][i(et,1255)](),this[i(1073,972)][i(Q,nt)][i(1101,it)]({p:n,t:e})},200),Kt=t=>{function e(t,e){return At(t- -360,e)}this[e(-7,72)][e(31,q)]++,this[e(-7,106)][e(N,0)][e(j,-40)]>=10&&this[e(-7,-132)][e(36,E)][e(U,101)](),this[e(-7,95)][e(O,217)]={x:t[e(42,-22)][0][e(V,Z)],y:t[e(K,-80)][0][e(150,R)],t:t[e(-23,100)],typ:e(-45,W),s:0,d:0}},Rt=Ut(t=>{function e(t,e){return At(t- -49,e)}const q={x:t[e(353,n)][0][e(i,396)],y:t[e(353,r)][0][e(461,s)]};if(this[e(304,186)][e(489,o)]){const n=this[e(387,310)](this[e(a,c)][e(u,h)],q);this[e(l,d)][e(f,p)][e(320,g)]>=10&&this[e(304,m)][e(347,424)][e(478,410)]();const i={x:t[e(v,y)][0][e(w,d)],y:t[e(L,358)][0][e(b,343)],t:t[e(C,418)],typ:e(M,327),d:n,s:n/(t[e(C,182)]-this[e(B,z)][e(u,622)].t)};this[e(B,C)][e(347,x)][e(332,379)](i),this[e(a,T)][e(489,S)]=i}else{const n={x:t[e(L,D)][0][e(411,_)],y:t[e(353,A)][0][e(461,P)],t:t[e(288,I)],typ:e(k,301),s:0,d:0};this[e(304,H)][e(489,522)]=n}},200),Wt=n=>{function i(t,e){return At(e-682,t)}this[i(t,1035)][i(1182,e)]=null};function Yt(t,e){return Gt(e,t- -1671)}this[Yt(-490,-500)][Yt(-618,-672)][Yt(-628,-709)](Yt(-434,-362),Et,{passive:!0}),this[Yt(-490,-502)][Yt(-618,-635)][Yt(-628,-745)](Yt(-420,-482),Ot,{passive:!0}),this[Yt(-490,-365)][Yt(-618,-707)][Yt(-628,-698)](Yt(-498,-371),Vt,{passive:!0}),this[Yt(-490,-397)][Yt(-618,-617)][Yt(-628,-487)](Yt(-413,-437),Zt,{passive:!0}),Yt(-481,-439)in window&&(this[Yt(-490,-613)][Yt(-618,-632)][Yt(-628,-503)](Yt(-527,-406),Kt,{passive:!0}),this[Yt(-490,-476)][Yt(-618,-689)][Yt(-628,-571)](Yt(-623,-752),Rt,{passive:!0}),this[Yt(-490,-556)][Yt(-618,-556)][Yt(-628,-614)](Yt(-500,-640),Wt,{passive:!0})),this[Yt(-572,-448)][Yt(-519,-604)]={mousemove:Et,click:Ot,keydown:Vt,scroll:Zt,touchstart:Kt,touchmove:Rt,touchend:Wt}}async[Gt(1e3,1016)](t=!1){function e(t,e){return Gt(e,t- -1736)}if(this[e(-497,-444)](t),this[e(-667,-691)][e(-660,-598)]&&await this[e(-559,-608)](),!this[e(-667,-777)][e(-722,-630)])return;const n=this[e(-589,-520)]();n&&(await this[e(-636,-673)][e(-461,-473)](n),this[e(-637,-738)][e(-658,-634)]=Date[e(-606,-546)]())}[Gt(1133,1239)](t=!1){const e=Date[i(-512,-577)]();let n=Math[i(-453,-497)]((e-this[i(-543,-674)][i(-524,-554)])/1e3);function i(t,e){return Gt(e,t- -1642)}null!==this[i(-543,-424)][i(-564,-506)]&&(n=Math[i(-453,-481)]((e-this[i(-543,-511)][i(-564,-585)])/1e3)),this[i(-543,-409)][i(-473,-354)]?(this[i(-543,-649)][i(-473,-400)][i(-507,-396)]+=t?1:0,this[i(-543,-652)][i(-473,-341)][i(-370,-468)]+=n):this[i(-543,-671)][i(-473,-413)]={pageCount:1,sessionStart:this[i(-543,-406)][i(-524,-452)],duration:0}}[Gt(1078,1147)](){const t=608,e=470,n=540,i=342,r=465,s=345,o=421,a=567,c=421,u=364,h=451,l=358,d=436,f=522,p=620,g=508,m=387,v=338,y=517,w=421,L=544,b=464,C=491,M=452,B=491,z=415,x=596,T=709,S=421,D=432,_=594,A=701,P=444,I=497,k=544,H=663,q=661;if(!this[O(421,401)][O(t,e)]&&0===this[O(421,444)][O(465,340)]&&0===this[O(421,405)][O(n,523)])return null;const N=this[O(421,361)][O(537,e)]??{wd:0,ua:1,cv:0,br:0},j=Et(this[O(421,i)][O(r,s)],this[O(o,410)][O(a,540)],this[O(421,449)][O(n,639)],this[O(c,u)][O(h,351)],this[O(o,443)][O(l,d)],this[O(421,427)][O(f,p)],this[O(421,433)][O(g,445)],this[O(c,341)][O(403,m)],this[O(421,v)][O(459,391)],this[O(o,496)][O(y,606)],this[O(w,L)][O(b,578)],this[O(w,429)][O(440,C)],Date[O(M,440)]()),E={p:this[O(421,559)][O(B,z)]?.[O(457,392)]??1,s:this[O(421,340)][O(491,x)]?.[O(569,T)]??this[O(S,559)][O(440,382)],d:this[O(421,D)][O(B,519)]?.[O(_,A)]??0},U=function(t,e,n,i,r){var s=555,o=550,a=552;function c(t,e){return zt(e-326,t)}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[c(s,553)],ta:i.ta,t:i.t,nm:i.nm,ms:i.ms,mj:i.mj,msp:i[c(559,o)],vc:i.vc,cp:i.cp,rc:i.rc,kj:i.kj,ki:i.ki,ss:i.ss,sj:i.sj,ssm:i[c(554,549)],sp:i.sp,ts:i.ts,tj:i.tj,tp:i.tp,tsm:i[c(554,a)]},ses:{p:r.p,s:r.s,d:r.d}}}(2,Date[O(452,443)](),N,j,E);function O(t,e){return Gt(e,t- -678)}return this[O(P,I)](O(k,509)+JSON[O(612,H)](U)),encodeURIComponent(btoa(JSON[O(612,q)](U)))}[Gt(1120,1122)](t,e=!1){const n=126,i=83,r=198;function s(t,e){return Gt(t,e- -996)}this[s(108,136)][s(n,94)](s(i,r)+t,e)}[Gt(1086,1056)](){const t=1344,e=1402,n=1407,i=1255,r=1460,s=1401,o=1324,a=1285,c=1328,u=1220,h=1093,l=1285,d=163;function f(t,e){return Gt(e,t-d)}try{if(this[f(t,e)][f(n,1489)][f(1320,i)]){const t=this[f(1344,r)][f(1407,1504)][f(1320,1247)][f(1197,1094)](Ht);if(t){const e=JSON[f(1437,1400)](t);let n;return f(s,o)in e?(n=e,this[f(a,1194)](f(c,u),!0)):(n={webdriver_detected:(p=e).wd,bot_user_agent:p.ua,canvas_fingerprint_normal:p.cf,browser_environment_normal:p.be,natural_mouse_activity:p.nm,natural_click_patterns:p.nc,keyboard_activity:p.ka,scroll_activity:p.sa,touch_activity:p.ta,significant_page_time:p.pt,multiple_pages_visited:p.mp,session_duration_reasonable:p.sd},this[f(1285,1272)](f(1195,h),!0)),n}}}catch(t){this[f(l,1302)](f(1217,1203)+t,!0)}var p;return null}[Gt(1416,1276)](t){const e=87,n=150,i=174,r=266,s=115,o=41,a=154,c=261;function u(t,e){return Gt(t,e- -1331)}try{this[u(-288,-150)][u(-151,-e)][u(-62,-174)]&&(this[u(-243,-n)][u(-9,-e)][u(-146,-i)][u(-268,-r)](Ht,JSON[u(-s,-o)](Vt(t))),this[u(-97,-209)](u(-a,-c),!0))}catch(t){this[u(-210,-209)](u(-267,-254)+t,!0)}}[Gt(1329,1270)](t){const e=1027,n=923,i=848,r=963,s=1035,o=1113,a=1006,c=998,u=880,h=896,l=971,d=863,f=995,p=1045,g=752,m=880,v=974,y=982,w=t[M(911,1029)];if(!(w&&w instanceof Element&&w[M(e,923)]))return 0;const L=w[M(976,n)]();if(!L[M(i,880)]||!L[M(r,s)])return 0;const b=L[M(o,a)]+L[M(c,u)]/2,C=L[M(967,855)]+L[M(974,1035)]/2;function M(t,e){return Gt(t,e- -211)}const B=this[M(h,l)]({x:t[M(d,f)],y:t[M(957,p)]},{x:b,y:C}),z=Math[M(918,991)](L[M(g,m)]**2+L[M(v,1035)]**2)/2;return z>0?Math[M(982,y)](0,1-B/z):0}[Gt(1062,1182)](t,e){return Math[(n=1214,i=1204,Gt(n,i-2))]((e.x-t.x)**2+(e.y-t.y)**2);var n,i}[Gt(1233,1131)](t){const e=467,n=518,i=264,r=436,s=400,o=272,a=430,c=387,u=499,h=432,l=474,d=569,f=218;if(t[p(402,518)](p(564,e))||t[p(622,n)](p(314,i)))return t;function p(t,e){return Gt(t,e- -745)}return""+(this[p(534,r)][p(503,499)][p(s,o)][p(o,327)]||this[p(a,436)][p(c,u)][p(146,o)][p(h,l)]+"//"+this[p(d,r)][p(483,499)][p(f,272)][p(339,337)])+t}async[Gt(1217,1278)](t,e){const n=415,i=575,r=481,s=446,o=236,a=517,c=217,u=248,h=343,l=216,d=323,f=261,p=351,g=348,m=292,v=281,y=411,w=392,L=327,b=619,C=361,M=252,B=376,z=454,x=184,T=315,S=385,D=123,_=248,A=542,P=415,I=422,k=351,H=273,q=392;if(!this[E(-323,-445)][E(-536,-438)]||!this[E(-320,-415)][E(-295,-323)])return;const N=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,Vt(t),e),j=JSON[E(-205,-224)](N);function E(t,e){return Gt(t,e- -1514)}const U=this[E(-289,-383)](this[E(-376,-445)][E(-450,-435)]);if(this[E(-293,-333)][E(-175,-261)][E(-166,-236)]&&!this[E(-305,-445)][E(-423,-335)])try{const t=new Blob([j],{type:E(-i,-r)});if(this[E(-s,-333)][E(-144,-261)][E(-200,-o)](U,t))return this[E(-a,-n)][E(-c,-323)][E(-381,-u)]=0,this[E(-h,-415)][E(-l,-d)][E(-f,-p)]=Date[E(-256,-384)](),void this[E(-g,-392)](E(-m,-v),!0);this[E(-y,-w)](E(-387,-L),!0)}catch(t){this[E(-377,-392)](E(-396,-408)+t+E(-442,-455),!0)}try{const t=await fetch(U,{method:E(-b,-487),headers:{"Content-Type":E(-565,-r)},body:j,credentials:E(-C,-M),keepalive:!0});if(!t.ok)throw new Error(E(-B,-z)+t[E(-x,-T)]);this[E(-S,-415)][E(-430,-323)][E(-D,-_)]=0,this[E(-A,-P)][E(-340,-323)][E(-I,-k)]=Date[E(-H,-384)](),this[E(-516,-q)](E(-321,-369),!0)}catch(n){this[E(-527,-392)](E(-116,-227)+n,!0),this[E(-424,-286)](t,e)}}[Gt(1234,1228)](t,e){const n=1045,i=851,r=905,s=821,o=874,a=984,c=909,u=775,h=848,l=790,d=927,f=943,p=1018,g=988,m=943,v=841,y=996,w=1025,L=891,b=874,C=929,M=948,B=333,z=401,x=303,T=251,S=310,D=512,_=531;if(!this[P(851,973)][P(943,n)]||this[P(i,r)][P(943,1072)][P(1018,998)]>=this[P(s,o)][P(a,c)])return void this[P(874,u)](P(h,941),!0);const A=Math[P(880,804)](1e3*2**this[P(851,l)][P(943,d)][P(1018,915)],3e4);function P(t,e){return Gt(e,t- -248)}this[P(851,939)][P(f,814)][P(p,g)]++,this[P(851,858)][P(m,892)][P(v,757)]=this[P(933,975)][P(y,w)][P(L,892)](()=>{function n(t,e){return P(t- -518,e)}this[n(B,357)][n(425,z)]&&this[n(x,T)][n(S,260)]&&this[n(D,_)](t,e)},A),this[P(b,C)](P(M,867)+A+"ms",!0)}async[Gt(1182,1177)](){const t=17,e=22,n=24,i=57,r=51,s=52,o=13,a=70,c=44,u=82,h=22,l=51,d=48,f=75,p=188,g=926,m=836,v=894,y=767,w=660,L=708,b=873;if(!this[x(-159,-239)][x(-152,-168)]||!this[x(-129,-162)][x(-37,98)])return;const C=Et(this[x(-129,-195)][x(-85,-149)],this[x(-129,-45)][x(t,-60)],this[x(-129,-224)][x(-10,-36)],this[x(-129,-260)][x(-99,-166)],this[x(-129,-72)][x(-192,-152)],this[x(-129,-246)][x(-28,-145)],this[x(-129,-271)][x(-42,-7)],this[x(-129,-254)][x(-147,-120)],this[x(-129,-167)][x(-91,-228)],this[x(-129,-30)][x(-33,-171)],this[x(-129,-87)][x(-86,-87)],this[x(-129,-168)][x(-110,-51)],Date[x(-98,-181)]()),M=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 s(t,e){return Gt(e,t- -1558)}if(e.ma>0&&1===e.nm&&(r[s(-534,-461)]=!0),e.ca>0&&1===e.vc&&(r[s(-422,-444)]=!0),e.ka>0&&(r[s(-373,-479)]=!0),e.sa>0&&(r[s(-306,-190)]=!0),e.ta>0&&(r[s(-447,-399)]=!0),e.t>30&&(r[s(-391,-364)]=!0),n&&(n[s(-423,-343)]>1&&(r[s(-275,-165)]=!0),n[s(-286,-357)]>60&&(r[s(-350,-221)]=!0)),i){const t=Object[s(-278,-345)](r);for(const e of t)r[e]=r[e]||i[e]}return r}(this[x(-129,-36)][x(-13,15)],C,this[x(-129,-226)][x(-59,-181)],this[x(-129,-169)][x(-37,14)][x(e,139)]),B=function(t,e){if(!e)return!0;const n=Object[(i=410,r=339,Gt(i,r- -941))](t);var i,r;for(const i of n)if(t[i]!==e[i])return!0;return!1}(M,this[x(-129,-66)][x(-37,24)][x(e,n)]),z=Date[x(-98,-159)]()-this[x(-129,-254)][x(-37,36)][x(-65,i)];function x(t,e){return Gt(e,t- -1228)}const T=z>=this[x(-159,-99)][x(-115,-233)];if(B||T){if(Date[x(-98,-191)]()-this[x(-129,-135)][x(-37,-71)][x(r,49)]<100)return void this[x(-106,-134)](x(-31,-170),!0);if(T&&!B&&this[x(-106,-135)](x(-70,-117)+Math[x(-68,-56)](z/1e3)+x(-95,-100),!0),B){if(this[x(-159,-122)][x(-208,-69)]){if(this[x(-106,-105)](x(-24,-20)),this[x(-129,-67)][x(-37,-68)][x(22,-69)]){Object[x(s,57)](M)[x(-107,-137)](t=>{function e(t,e){return x(e-b,t)}const n=this[e(750,744)][e(g,m)][e(981,895)][t],i=M[t];n!==i&&this[e(v,y)](" "+t+": "+n+e(w,L)+i)})}else this[x(-106,31)](x(-155,-259));this[x(-106,13)](x(-154,-244)),this[x(-106,-148)](x(-73,-176)+C.ma),this[x(-106,-85)](x(53,-72)+C.ca),this[x(-106,-2)](x(o,29)+C.ka),this[x(-106,-205)](x(-125,-154)+C.sa),this[x(-106,-192)](x(-141,-69)+C.t+"s"),this[x(-106,-239)](x(-206,-206)+C.nm),this[x(-106,-207)](x(-182,-44)+C.vc),this[x(-129,6)][x(-59,-135)]&&(this[x(-106,-176)](x(-133,-224)+this[x(-129,-140)][x(-59,-72)][x(-93,-218)]),this[x(-106,-86)](x(-161,-98)+this[x(-129,-128)][x(-59,a)][x(c,u)]+"s"))}this[x(-106,-105)](x(-67,-51),!0)}this[x(-129,-46)][x(-37,-151)][x(h,-29)]=(S=M,{...S}),this[x(-129,-152)][x(-37,-123)][x(l,-50)]=Date[x(-98,-74)](),this[x(d,f)](M);const t=B?x(-198,-307):x(-203,-77);await this[x(50,p)](M,t)}else this[x(-159,-176)][x(-208,-242)]&&this[x(-106,-83)](x(-74,68),!0);var S}}const Kt=t=>{function e(t,e){return Gt(e,t- -1560)}const n=/_shopify_s=([^;]*)/[e(-443,-529)](t[e(-507,-530)][e(-450,-580)]);return n?n[1]:void 0},Rt=(t,e)=>{const n=151,i=279,r=321,s=367,o=186,a=89,c=507,u=413,h=186,l=435,d=440,f=222,p=282,g=382;function m(t,e){return Gt(t,e- -831)}const v=Kt(t),y=/_shopify_y=([^;]*)/[m(341,286)](t[m(n,222)][m(389,i)]),w=y?y[1]:void 0;return{libVersion:Lt[m(r,s)],shopId:e||"",hostname:t[m(354,413)]?.[m(321,o)]?.[m(a,187)]||"",url:t[m(c,u)]?.[m(293,h)]?.[m(l,d)]||"",referrer:t[m(341,f)]?.[m(133,216)]||"",baseURI:t[m(p,f)]?.[m(337,g)]||"",sessionToken:v||"",uniqueToken:w||""}},Wt=(t,e=Nt(),n=new vt(Pt,It))=>{const i=315,r=233,s=252,o=208,a=221,c=106,u=50,h=223,l=41,d=104,f=new dt({exporter:n,attributes:Rt(e,t?.[p(i,r)])});function p(t,e){return Gt(t,e- -1003)}const g=Kt(e),m=g?function(t){let e=0;for(let n=0,i=t.length;ny[p(161,104)]()):y[p(l,d)](),y};function Gt(t,e){return At(e-746,t)}var Yt="2.1.0";class Xt{quietWindowStartCandidates=[];longTaskObserver=null;longTasks=[];constructor(){this.initializeLongTaskObserver()}getQuietWindowStartCandidates(){return[...this.quietWindowStartCandidates].sort((t,e)=>t.startTime-e.startTime)}getLongTasks(){return[...this.longTasks].sort((t,e)=>t.startTime-e.startTime)}destroy(){this.cleanup(),this.quietWindowStartCandidates=[],this.longTasks=[]}initializeLongTaskObserver(){if(PerformanceObserver.supportedEntryTypes.includes("longtask"))try{this.longTaskObserver=new PerformanceObserver(t=>{const e=t.getEntries();for(const t of e){const e=t.startTime+t.duration;if(this.longTasks.push({startTime:t.startTime}),this.quietWindowStartCandidates.length>0){const e=this.quietWindowStartCandidates[this.quietWindowStartCandidates.length-1];t.startTime-e.startTime<250&&this.quietWindowStartCandidates.pop()}this.quietWindowStartCandidates.push({startTime:e})}}),this.longTaskObserver.observe({type:"longtask",buffered:!0})}catch(t){}}cleanup(){this.longTaskObserver&&(this.longTaskObserver.disconnect(),this.longTaskObserver=null)}}let Jt=null;function Ft(t){if(null===t)return $t(),null;const e=Jt?Jt.getLongTasks():[];let n=null;for(const i of e)i.startTime>=t&&(!n||i.startTime=250)return $t(),t;const i=Jt?Jt.getQuietWindowStartCandidates():[];let r=t;if(i.length>0){const e=[...i].sort((t,e)=>t.startTime-e.startTime);for(const n of e)if(n.startTime>=t){r=n.startTime;break}}return $t(),r}function $t(){Jt&&(Jt.destroy(),Jt=null)}const Qt=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"}),te=new RegExp(`^${window.location.origin}/((?:(?:[a-z]{2,3}|zh-hans|zh-hant)(?:-[a-zA-Z0-9]+)/)?cart/(add|change|update|clear))`),ee=new RegExp("cart-performance:|add:|change:|clear:|note_update:");var ne;function ie({monorailRegion:t,schema:e,rawData:n}){const i=Date.now(),r={schema_id:e,payload:e===ne.OnUnload?re(n):se(n),metadata:{event_created_at_ms:i,event_sent_at_ms:i}},s=Qt[t||""],o=JSON.stringify(r);if(!s)return void console.debug("📡 Monorail: ",JSON.stringify(r,null,2));try{const t=new window.Blob([o],{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(s,t))return}catch(t){}const a=new XMLHttpRequest;a.open("POST",s),a.setRequestHeader("Content-type","text/plain"),a.send(o)}function re(t){const e=oe(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,quiet_window_start:t.quietWindowStart,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 se(t){const e=oe(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 oe(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"}(ne||(ne={}));const ae="xxxx-4xxx-xxxx-xxxxxxxxxxxx";function ce(){let t="";try{const e=window.crypto,n=new Uint16Array(31);e.getRandomValues(n);let i=0;t=ae.replace(/[x]/g,t=>{const e=n[i]%16;return i++,("x"===t?e:3&e|8).toString(16)}).toUpperCase()}catch(e){t=ae.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 ue=!0,he=!1,le=null,de=null,fe=!1;class pe{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:Yt,url:window.location.href,referrer:document.referrer||void 0,microSessionId:ce(),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)}}function ge(t){le=new pe(t),Jt||(Jt=new Xt),t.spaMode&&(window.PerfKit={navigate:()=>{ue?ue=!1:he||(ve(),le=new pe(t),he=!0)},setPageType:e=>{t.storefrontData.pageType=e},setConsent:t=>{de=t}}),t.shs&&!t.spaMode&&Wt({debug:!1,shopId:t.storefrontData.shopId,enableBeacon:t.shsBeacon||!1,enableCookie:t.shsCookie||!0,exportWithFetch:t.shsExportWithFetch||!0,logsSampleRate:t.shsLogsSampleRate,...t.shsBeaconEndpoint&&{beaconEndpoint:t.shsBeaconEndpoint}})}const me=new Set;function ve(){if(null!==le){if(ye()&&me.size>0){let t={};for(const e of me)t={...t,...e};const e=t.firstContentfulPaint??null,n=Ft(e);null!==e&&null!==n&&(t.quietWindowStart=Math.round(n)),me.clear(),le.info.microSessionCount+=1;const i=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))})}(le.config.resourceTimingSamplingRate),r=performance.getEntriesByType("resource").filter(t=>te.test(t.name)),s=performance.getEntriesByType("measure").filter(t=>ee.test(t.name)).map(t=>{const e=t.toJSON();return e.name.startsWith("cart-performance:")||(e.name=`cart-performance:${e.name}`),e});ie({monorailRegion:le.config.monorailRegion,schema:ne.OnUnload,rawData:{...le.info,...le.config.storefrontData,...le.performanceMetrics,...t,resourceTiming:i,cartAjaxResourceTimings:r,cartPerformanceMetrics:s,paintTimingHidden:fe}})}}else console.debug("⛔️ Shopify/perf-kit is not initialized")}function ye(){return null!==de?de:et()}((e,i={})=>{const s=o(i=Object.assign({},i),t),a=new WeakMap;s.t=t=>{if(t?.sources?.length){const e=z(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,s=f("CLS",0);const a=o(n,t),c=t=>{for(const e of t)a.u(e);a.o>s.value&&(s.value=a.o,s.entries=a.i,r())},d=p("layout-shift",c);d&&(r=h(e,s,B,n.reportAllChanges),i.onHidden(()=>{c(d.takeRecords()),r(!0)}),u(()=>{a.o=0,s=f("CLS",0),r=h(e,s,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=z(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;me.add({cumulativeLayoutShift:n,cumulativeLayoutShiftTarget:e.largestShiftTarget})}),((t,n={})=>{const i=o(n=Object.assign({},n),q),s=new WeakMap;i.m=t=>{const e=t.element;if(e){const i=n.generateTarget?.(e)??r(e);s.set(t,i)}},((t,e={})=>{b(()=>{const n=L();let i,r=f("LCP");const s=o(e,q),a=t=>{e.reportAllChanges||(t=t.slice(-1));for(const e of t)s.u(e),e.startTime{a(c.takeRecords()),c.disconnect(),i(!0)}),s=t=>{t.isTrusted&&(k(n),removeEventListener(t.type,s,{capture:!0}))};for(const t of["keydown","click","visibilitychange"])addEventListener(t,s,{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),o=r.url&&performance.getEntriesByType("resource").filter(t=>t.name===r.url)[0],a=Math.max(0,i.responseStart-e),c=Math.max(a,o?(o.requestStart||o.startTime)-e:0),u=Math.min(t.value,Math.max(c,o?o.responseEnd-e:0));n={target:s.get(r),timeToFirstByte:a,resourceLoadDelay:c-a,resourceLoadDuration:u-c,elementRenderDelay:t.value-u,navigationEntry:i,lcpEntry:r},r.url&&(n.url=r.url),o&&(n.lcpResourceEntry=o)}}return Object.assign(t,{attribution:n})})(n);t(i)},n)})(function(t){const{attribution:e,value:n}=t;me.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(),s=t.entries.at(-1);if(r){const e=r.activationStart||0,o=Math.max(0,r.responseStart-e);i={timeToFirstByte:o,firstByteToFCP:t.value-o,loadState:n(t.entries[0].startTime),navigationEntry:r,fcpEntry:s}}}return Object.assign(t,{attribution:i})})(i);t(r)},i)})(function(t){const{value:e}=t;me.add({firstContentfulPaint:Math.round(e)})}),((t,e={})=>{const i=o(e=Object.assign({},e),I);let s=[],a=[],c=0;const l=new WeakMap,d=new WeakMap;let g=!1;const m=()=>{g||(k(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=s.length-1-50;s=s.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 s)if(!(i.startTime+i.duratione)break;n.push(i)}return n},w=t=>{const e=t.entries[0],r=l.get(e),s=e.processingStart,o=Math.max(e.startTime+e.duration,s),a=Math.min(r.processingEnd,o),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:o,processedEventEntries:c,longAnimationFrameEntries:u,inputDelay:s-e.startTime,processingDuration:a-s,presentationDelay:o-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,s,o=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&&(s=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&&s&&(t.longestScript={entry:r,subpart:s,intersectingDuration:u}),t.totalScriptDuration=o,t.totalStyleAndLayoutDuration=a,t.totalPaintDuration=c,t.totalUnattributedDuration=t.nextPaintTime-e-o-a-c})(f),Object.assign(t,{attribution:f})};p("long-animation-frame",t=>{s=s.concat(t),m()}),((t,e={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=L();b(()=>{"interactionCount"in performance||_||(_=p("event",D,{type:"event",buffered:!0,durationThreshold:0}));let i,r=f("INP");const s=o(e,I),a=t=>{k(()=>{for(const e of t)s.u(e);const e=s.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,H,e.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{a(c.takeRecords()),i(!0)}),u(()=>{s.v(),r=f("INP"),i=h(t,r,H,e.reportAllChanges)}))})})(e=>{const n=w(e);t(n)},e)})(function(t){const{attribution:e,value:n}=t;if(null===le)return void console.debug("⛔️ Shopify/perf-kit is not initialized");if(!ye())return;le.info.microSessionCount+=1;const{inputDelay:i,processingDuration:r,presentationDelay:s,longestScript:o,interactionTarget:a}=e,c=o?.entry?{slowest_script:o.entry.sourceURL,slowest_script_duration:Math.round(o.entry.duration)}:{};ie({monorailRegion:le.config.monorailRegion,schema:ne.OnInteraction,rawData:{...le.info,...le.config.storefrontData,...le.performanceMetrics,interactionToNextPaint:Math.round(n),interactionToNextPaintTarget:a,longAnimationFrame:{input_delay:Math.round(i),processing_duration:Math.round(r),presentation_delay:Math.round(s),...c}}})},{reportAllChanges:!0}),((t,n={})=>{((t,n={})=>{let i=f("TTFB"),r=h(t,i,j,n.reportAllChanges);E(()=>{const s=e();s&&(i.value=Math.max(s.responseStart-d(),0),i.entries=[s],r(!0),u(()=>{i=f("TTFB",0),r=h(t,i,j,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),s=Math.max(n.domainLookupStart-i,0),o=Math.max(n.connectStart-i,0),a=Math.max(n.connectEnd-i,0);e={waitingDuration:r,cacheDuration:s-r,dnsDuration:o-s,connectionDuration:a-o,requestDuration:t.value-a,navigationEntry:n}}return Object.assign(t,{attribution:e})})(e);t(n)},n)})(function(t){const{value:e}=t;me.add({timeToFirstByte:Math.round(e)})}),addEventListener("DOMContentLoaded",()=>{fe="hidden"===document.visibilityState}),addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&ve()}),function(){const{dataset:t}=document.currentScript;try{ge(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))}catch(t){console.error("🚫 Error initializing PerfKit:",t.message)}}()}();