!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(/^#/,"")},i=t=>{let e="";try{for(;9!==t?.nodeType;){const n=t,i=n.id?"#"+n.id:[r(n),...Array.from(n.classList).sort()].join(".");if(e.length+i.length>99)return e||i;if(e=e?i+">"+e:i,n.id)break;t=n.parentNode}}catch{}return e},o=new WeakMap;function a(t,e){return o.get(t)||o.set(t,new e),o.get(t)}let s=-1;const c=()=>s,u=t=>{addEventListener("pageshow",e=>{e.persisted&&(s=e.timeStamp,t(e))},!0)},l=(t,e,n,r)=>{let i,o;return a=>{e.value>=0&&(a||r)&&(o=e.value-(i??0),(o||void 0===i)&&(i=e.value,e.delta=o,e.rating=((t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good")(e.value,n),t(e)))}},d=t=>{requestAnimationFrame(()=>requestAnimationFrame(()=>t()))},h=()=>{const t=e();return t?.activationStart??0},f=(t,n=-1)=>{const r=e();let i="navigate";return c()>=0?i="back-forward-cache":r&&(document.prerendering||h()>0?i="prerender":document.wasDiscarded?i="restore":r.type&&(i=r.type.replace(/_/g,"-"))),{name:t,value:n,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:i}},m=(t,e,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(t=>{Promise.resolve().then(()=>{e(t.getEntries())})});return r.observe({type:t,buffered:!0,...n}),r}}catch{}},p=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let g=-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(g)||(g="visibilitychange"===t.type?t.timeStamp:0,removeEventListener("prerenderingchange",w,!0))}},S=()=>{if(g<0){const t=h(),e=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(e=>"hidden"===e.name&&e.startTime>t)[0]?.startTime;g=e??y(),addEventListener("visibilitychange",w,!0),addEventListener("prerenderingchange",w,!0),u(()=>{setTimeout(()=>{g=y()})})}return{get firstHiddenTime(){return g},onHidden(t){v.add(t)}}},b=t=>{document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},C=[1800,3e3],T=(t,e={})=>{b(()=>{const n=S();let r,i=f("FCP");const o=m("paint",t=>{for(const e of t)"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime{i=f("FCP"),r=l(t,i,C,e.reportAllChanges),d(()=>{i.value=performance.now()-n.timeStamp,r(!0)})}))})},_=[.1,.25],D=t=>t.find(t=>1===t.node?.nodeType)||t[0];let L=0,B=1/0,x=0;const M=t=>{for(const e of t)e.interactionId&&(B=Math.min(B,e.interactionId),x=Math.max(x,e.interactionId),L=x?(x-B)/7+1:0)};let z;const A=()=>z?L:performance.interactionCount??0;let I=0;class P{l=[];h=new Map;m;p;v(){I=A(),this.l.length=0,this.h.clear()}M(){const t=Math.min(this.l.length-1,Math.floor((A()-I)/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 E=t=>{const e=globalThis.requestIdleCallback||setTimeout;"hidden"===document.visibilityState?t():(t=p(t),addEventListener("visibilitychange",t,{once:!0,capture:!0}),e(()=>{t(),removeEventListener("visibilitychange",t,{capture:!0})}))},N=[200,500];class q{m;u(t){this.m?.(t)}}const j=[2500,4e3],k=[800,1800],U=t=>{document.prerendering?b(()=>U(t)):"complete"!==document.readyState?addEventListener("load",()=>U(t),!0):setTimeout(t)},H="",O="1",K="0",W="p",Z="a",F="m",R="t",V="m",J="a",X="p",Y="s",G=()=>"undefined"==typeof window;function $(t){try{return decodeURIComponent(t)}catch(t){return""}}function Q(t,e=!1){const n=function(){try{return document.cookie}catch{return!1}}()?document.cookie.split("; "):[];for(let e=0;et);if(r)try{sessionStorage.setItem("consentHeader",r)}catch{}return r}let rt;function it(){var t,e;const n=null===(t=performance)||void 0===t||null===(e=t.getEntriesByType)||void 0===e?void 0:e.call(t,"resource");let r=rt;for(let t=n.length-1;t>=0;t--){let e=ot(n[t]);if(e){r=e;break}}return rt=r,r}function ot(t){var e,n;if(t)return null===(e=t.serverTiming)||void 0===e||null===(n=e.find(t=>"_cmp"==t.name))||void 0===n?void 0:n.description}function at(){return window}function st(){var t,e;const n=at();return!0===(null==n||null===(t=n.Shopify)||void 0===t||null===(e=t.customerPrivacy)||void 0===e?void 0:e.backendConsentEnabled)}function ct(){var t,e;const n=at();return null==n||null===(t=n.Shopify)||void 0===t||null===(e=t.customerPrivacy)||void 0===e?void 0:e.serverTimingSupportVerified}function ut(){if(!G()){var t,e;const n=null===(t=window.Shopify)||void 0===t||null===(e=t.customerPrivacy)||void 0===e?void 0:e.injectedConsent;return n?$(n):void 0}}function lt(){let t;if(t=G()?ut():function(){var t,e;const n=null===(t=window.Shopify)||void 0===t||null===(e=t.customerPrivacy)||void 0===e?void 0:e.cachedConsent;return n?$(n):void 0}()||ut()||new URLSearchParams(window.location.search).get("_cs")||void 0||Q("_tracking_consent")||function(){let t;if(t=st()&&et(it)||et(nt),!t){let t;try{t=sessionStorage.getItem("consentHeader")}catch{}return t||void 0}try{t=decodeURIComponent(t)}catch{}return t}(),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,r,i,o,a]=e;let s,c;try{s=e[5]?JSON.parse(e.slice(5).join("_")):void 0}catch{}if(a){const t=a.replace(/\*/g,"/").replace(/-/g,"+"),e=atob(t);let n="";for(let t=0;tt.slice(0,e)+"-"+t.slice(e),n)}function u(t){const e=n.split(".")[0];return e.includes(t.toLowerCase())?K:e.includes(t.toUpperCase())?O:H}function l(t){return n.includes(t.replace("t","s").toUpperCase())}return{v:"3",con:{CMP:{[J]:u(J),[X]:u(X),[V]:u(V),[Y]:u(Y)}},region:r||"",cus:s,purposes:{[Z]:l(Z),[W]:l(W),[F]:l(F),[R]:l(R)},sale_of_data_region:"t"==o,display_banner:"t"==i,consent_id:c}}(t);return}(t)}function dt(t){const e=function(){try{let t=lt();if(!t)return;return t}catch{return}}();if(!e||!e.purposes)return!0;const n=e.purposes[t];return"boolean"!=typeof n||n}function ht(){return dt(Z)}const ft={},mt=/^https?:\/\/([^/]+)(\/api\/(?:unstable|2\d{3}-\d{2})\/graphql\.json(?=$|\?))?/;function pt(t,e){if(st()){const t=function(t){try{var e,n;const o=null===(e=performance)||void 0===e||null===(n=e.getEntriesByType)||void 0===n?void 0:n.call(e,"resource");if(o){const e=window.location.host;for(let n=o.length-1;n>=0;n--){var r,i;const a=o[n];if("fetch"!==a.initiatorType)continue;const s=a.name.match(mt);if(!s)continue;const[,c,u]=s;if(!(c===e||u&&(null==c?void 0:c.endsWith(`.${e}`))))continue;const l=null===(r=a.serverTiming)||void 0===r||null===(i=r.find(e=>e.name===t))||void 0===i?void 0:i.description;if(l)return ft[t]=l,l}}return ft[t]}catch{return ft[t]}}(e);if(t)return t}const n=function(t){try{var e,n,r,i;return null===(e=performance)||void 0===e||null===(n=e.getEntriesByType("navigation")[0])||void 0===n||null===(r=n.serverTiming)||void 0===r||null===(i=r.find(e=>e.name==t))||void 0===i?void 0:i.description}catch{return}}(e);return n||function(t){try{var e,n,r,i;return null===(e=document.cookie)||void 0===e||null===(n=e.split(";"))||void 0===n||null===(r=n.find(e=>e.includes(t)))||void 0===r||null===(i=r.split("=")[1])||void 0===i?void 0:i.trim()}catch{return}}(t)}function gt(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var vt=0;function yt(t){return"__private_"+vt+++"_"+t}function wt(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 bt=function(t,e,n){const r=[0];for(let i=0;i{t.attributes={...gt(this,Tt)[Tt],...t.attributes}});const t=gt(this,_t)[_t];gt(this,_t)[_t]=[],await this.exportByKeepalive(t,(t,e)=>gt(this,Ct)[Ct].exportMetrics(this.aggregateMetrics(t),e))}async exportLogs(){const t=gt(this,Dt)[Dt];gt(this,Dt)[Dt]=[],await this.exportByKeepalive(t,(t,e)=>gt(this,Ct)[Ct].exportLogs(this.formatLogs(t),e))}aggregateMetrics(t){const e={};return t.forEach(t=>{switch(t.type){case"histogram":!function(t,e){var n;const{name:r,value:i,unit:o,timeUnixNano:a,attributes:s}=e,c=null!==(n=e.bounds)&&void 0!==n?n:bt,u=new Array(c.length+1).fill(0);t[r]||={name:r,unit:o||"1",histogram:{aggregationTemporality:1,dataPoints:[]}};for(let t=0;t0?d:0,bucketCounts:r>0?[1]:[]};t[n].exponentialHistogram.dataPoints.push({attributes:wt(null!=a?a:{}),startTimeUnixNano:o,timeUnixNano:o,count:1,sum:c,scale:u,zeroCount:h,positive:m,negative:f,min:c,max:c,zeroThreshold:0})}(e,t);break;case"counter":!function(t,e){const{name:n,value:r,unit:i,timeUnixNano:o,attributes:a}=e;t[n]||={name:n,unit:i||"1",sum:{aggregationTemporality:1,isMonotonic:!0,dataPoints:[]}},t[n].sum.dataPoints.push({startTimeUnixNano:o,timeUnixNano:o,asDouble:r,attributes:wt(null!=a?a:{})})}(e,t);break;case"gauge":!function(t,e){const{name:n,value:r,unit:i,timeUnixNano:o,attributes:a}=e;t[n]||={name:n,unit:i||"1",gauge:{dataPoints:[]}},t[n].gauge.dataPoints.push({startTimeUnixNano:o,timeUnixNano:o,asDouble:r,attributes:wt(null!=a?a:{})})}(e,t)}}),Object.values(e)}async exportByKeepalive(t,e){if(0===t.length)return;const n=[],r=[];t.forEach(t=>{var e;null===(e=t.requiresKeepalive)||void 0===e||e?n.push(t):r.push(t)});const i=[n.length>0?e(n,{keepalive:!0}):void 0,r.length>0?e(r,{keepalive:!1}):void 0].filter(t=>void 0!==t);await Promise.all(i)}formatLogs(t){return t.map(t=>{const e={timeUnixNano:t.timeUnixNano,observedTimeUnixNano:t.timeUnixNano,attributes:(n={...gt(this,Tt)[Tt],...t.attributes},Object.entries(n).map(([t,e])=>({key:t,value:St(e)})))};var n;return t.body&&(e.body={stringValue:t.body}),e})}}var Bt=yt("url"),xt=yt("serviceName"),Mt=yt("logger"),zt=yt("fetchFn"),At=yt("maxPayloadSizeBytes");class It{constructor(t,e,n){var r;Object.defineProperty(this,Bt,{writable:!0,value:void 0}),Object.defineProperty(this,xt,{writable:!0,value:void 0}),Object.defineProperty(this,Mt,{writable:!0,value:void 0}),Object.defineProperty(this,zt,{writable:!0,value:void 0}),Object.defineProperty(this,At,{writable:!0,value:void 0}),gt(this,Bt)[Bt]=t.replace(/\/v1\/(logs|metrics|traces)\/?$/,""),gt(this,xt)[xt]=e,gt(this,Mt)[Mt]=null==n?void 0:n.logger,gt(this,zt)[zt]=null==n?void 0:n.fetchFn,gt(this,At)[At]=null!==(r=null==n?void 0:n.maxPayloadSizeBytes)&&void 0!==r?r:51200}async exportMetrics(t,e){var n;const r=null===(n=null==e?void 0:e.keepalive)||void 0===n||n;await this.exportBatches("/v1/metrics",[...t],t=>({resourceMetrics:[{resource:{attributes:[{key:"service.name",value:{stringValue:gt(this,xt)[xt]}}]},scopeMetrics:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},metrics:t}]}]}),r)}async exportLogs(t,e){var n;const r=null===(n=null==e?void 0:e.keepalive)||void 0===n||n;await this.exportBatches("/v1/logs",[...t],t=>({resourceLogs:[{resource:{attributes:[{key:"service.name",value:{stringValue:gt(this,xt)[xt]}}]},scopeLogs:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},logRecords:t}]}]}),r)}async exportTo(t,e,n){var r;const i=JSON.stringify(t),o=(new TextEncoder).encode(i).length;if(o>gt(this,At)[At])throw new Et(`Payload size ${o} exceeds ${gt(this,At)[At]} bytes`);const a=await this.exporterFetch()(`${gt(this,Bt)[Bt]}${e}`,{method:"POST",keepalive:n,headers:{"Content-Type":"application/json"},body:i});if(null===(r=gt(this,Mt)[Mt])||void 0===r||r.log({status:a.status}),!a.ok){if(400===a.status){const t=await a.text();throw new Pt(`Invalid OpenTelemetry Data: ${t}`)}if(429===a.status||503===a.status){const e=await a.text(),n=a.headers.get("Retry-After"),r=n?{seconds:Number(n)}:void 0;throw new Pt("Server did not accept data",{errorData:e,retryAfter:r,body:t})}if(401===a.status||403===a.status){const e=await a.text();throw new Nt(`Authentication failed: ${a.status} ${401===a.status?"Unauthorized":"Forbidden"}`,{errorData:e,body:t})}throw new Pt(`Server responded with ${a.status}`)}}exporterFetch(){return gt(this,zt)[zt]||fetch}async exportBatches(t,e,n,r){let i=e.length;for(;e.length>0;)try{const o=e.slice(0,i);await this.exportTo(n(o),t,r),e.splice(0,i)}catch(t){if(!(t instanceof Et&&i>1))throw t;i=Math.ceil(i/2)}}}class Pt extends Error{constructor(t,e){super(t),this.metadata=void 0,this.name="OpenTelemetryClientError",this.metadata=e}}class Et extends Error{constructor(...t){super(...t),this.name="PayloadTooLargeError"}}class Nt extends Error{constructor(t,e){super(t),this.name="AuthenticationFailedError",this.metadata=void 0,this.name="AuthenticationFailedError",this.metadata=e}}function qt(t,e){let n,r;try{var i,o,a,s;n=null===(i=performance)||void 0===i||null===(o=i.getEntriesByType("navigation")[0])||void 0===o||null===(a=o.serverTiming)||void 0===a||null===(s=a.find(t=>t.name==e))||void 0===s?void 0:s.description}catch{n=void 0}try{var c,u,l,d;r=null===(c=document.cookie)||void 0===c||null===(u=c.split(";"))||void 0===u||null===(l=u.find(e=>e.includes(t)))||void 0===l||null===(d=l.split("=")[1])||void 0===d?void 0:d.trim()}catch{r=void 0}return n||r}function jt(){return qt("_shopify_s","_s")}function kt(){var t=["nJCYnZK5nMjsvfDlsG","mw1tEhn2CG","mtiWqLfnzfDy","mJiZmdy5nKTVq25JvW","ody1nZG2AvnAzMf6","mZi5Eu5wt3P0","mtbeqMnnAfy","mZe0mtmWyMfdv096","ndeYmJrfBevOuxu","mtq5oti5mMHqBw1ntq","nta2mZrqwKfpCMK"];return(kt=function(){return t})()}function Ut(t,e){var n=kt();return Ut=function(e,r){var i=n[e-=453];if(void 0===Ut.iiHUYx){Ut.JjSafW=function(t){for(var e,n,r="",i="",o=0,a=0;n=t.charAt(a++);~n&&(e=o%4?64*e+n:n,o++%4)?r+=String.fromCharCode(255&e>>(-2*o&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);for(var s=0,c=r.length;s>(-2*i&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,r=e.length;t=this[Ht(291)]))try{await this[Ht(271)][Ht(295)]()}catch(t){this[Ht(293)]&&console[Ht(274)](Ht(269)+t)}}[Ht(276)](){this[Ht(289)]&&clearTimeout(this[Ht(289)]),this[Ht(289)]=window[Ht(296)](()=>{this[Ht(270)]()[Ht(281)](()=>{})},this[Ht(288)])}}function Kt(){const t=["Bg9N","mtK1mJzOswrVr0C","C2nOzwr1BgvfCNjVCKzSDxnO","mtDxuwPSsKW","w0vYCM9Yxsa","mtiXmdm0ne1kte56uW","ouzPrwTQtG","y2f0y2G","C3rHy2S","mJG2nJyYmLDkufDVDa","ndC4mtm2oePlwfz6ta","mtyWs0ziD2To","C2fTCgXLs2v5","mZeWnJK2ohzlDvrpsa","zxjYB3jgBhvZAerLBgf5","zxjYB3jgBhvZAfrPBwvVDxrjza","w1niuYbfCNjVCL0G","C2fTCgXLuMf0zq","nLf2rKDuqW","C3rKB3v0","odi2mJmXyvjKuKvT","zxHWB3j0tg9NCW","C2v0vgLTzw91Da","Bg9NrxjYB3i","zxjYB3i","BwvZC2fNzq","w1niu10Gt3rLBcbLEhbVCNqGBg9NCYbMywLSDxjLoIa","zMX1C2HpDgvStg9NCW","B3rLBenSAwvUDa","mJbqCK9pwLG","nZu0nJbVCMXfwhC"];return(Kt=function(){return t})()}function Wt(){const t=["ndvszKHtzxy","mtqZndu3otbPru5XBLu","mtm4odKYmgDNtgfKvG","mtfAzM1Itg8","odzYv2rgr3u","ywjZ","y2HHCKnVzgvbDa","ndq0nJLPzuDwAvm","mJm1nK1dBe9WCW","nta3nda2ovbdwufqAW","otjwBgTZBvK","mti4nZK5nJb3tvDIr0e","mtHXEhHKu2u","mtmXnZe2nvfOELbLvW","BgvUz3rO"];return(Wt=function(){return t})()}function Zt(t,e){const n=Wt();return Zt=function(e,r){let i=n[e-=461];if(void 0===Zt.tqIgIm){Zt.ZMywFz=function(t){let e="",n="";for(let n,r,i=0,o=0;r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?e+=String.fromCharCode(255&n>>(-2*i&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,r=e.length;t>(-2*i&6)):0)r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r);for(let t=0,r=e.length;tt+e.s,0)/t[Ft(541)],n=t[Ft(497)]((t,n)=>t+(n.s-e)**2,0)/(t[Ft(541)]-1),r=Math[Ft(637)](n);return{speed:e,jitter:r}}function $t(t,e,n,r,i,o,a,s,c,u,l,d,h){const f=Math[Ft(518)](1e3,t),m=Math[Ft(518)](1e3,n),p=Math[Ft(518)](1e3,o),g=Math[Ft(518)](1e3,s),v=Math[Ft(518)](1e3,a),y=Math[Ft(518)](1e3,c),w=[];if(e[Ft(541)]>=3)for(let t=1;t5e-4){e=!0;break}n=r.s}else n=r.s;return e}(w),b=function(t){if(t[Ft(541)]<3)return 0;let e=0,n=0;for(let r=1;r2*Math.PI-Math.PI/12)&&e++,n++}return n>0?e/n:0}(e),{speed:C,jitter:T}=Gt(w);let _=0,D=0;if(r[Ft(541)]>1){const t=new Set(r[Ft(676)](t=>Math[Ft(543)](t.x/20)+","+Math[Ft(543)](t.y/20)))[Ft(542)];_=t>1?1:0,D=r[Ft(497)]((t,e)=>t+e[Ft(491)],0)/r[Ft(541)]}const L=i[Ft(497)]((t,e)=>(null===e[Ft(631)]||t[Ft(577)](e[Ft(631)]),t),[]),{rhythmConsistency:B,jitter:x}=function(t){if(t[Ft(541)]<2)return{rhythmConsistency:0,jitter:0};const e=t[Ft(497)]((t,e)=>t+e,0)/t[Ft(541)],n=t[Ft(497)]((t,n)=>(t??0)+((n??0)-e)**2,0)/t[Ft(541)],r=Math[Ft(637)](n);return{rhythmConsistency:0===r?1:Math[Ft(521)](0,1-r/e),jitter:r/e}}(L),M=L[Ft(541)]>0?L[Ft(497)]((t,e)=>t+e,0)/L[Ft(541)]:0,z=[];if(u[Ft(541)]>=3)for(let t=1;tu[t-1].p?Ft(609):"up";z[Ft(577)]({s:r,dir:i,t:u[t].t})}const{speed:A,jitter:I}=Gt(z),P=function(t){if(t[Ft(541)]<2)return 0;let e=0;for(let n=1;n=500&&t[r].t-n>=500&&(e++,n=t[r].t);return e}(z)),{speed:N,jitter:q}=Gt(l),j=function(t){if(t[Ft(541)]<2)return 0;let e=0;for(let n=1;n=500&&e++;return e}(l)),U=Math[Ft(543)]((h-d)/1e3);return{ma:f,ca:m,ka:p,sa:g,ta:y,kba:v,t:Math[Ft(518)](3600,U),nm:S?1:0,ms:te(b),mj:te(T),msp:te(C),vc:_,cp:te(D),rc:te(B),kj:te(x),ki:te(M),ss:te(A),sj:te(I),ssm:te(P),sp:E,ts:te(N),tj:te(q),tp:k,tsm:te(j)}}function Qt(t,e){let n=0;return(...r)=>{const i=typeof performance!==Ft(644)?performance[Ft(628)]():Date[Ft(628)]();i-n>=e&&(n=i,t(...r))}}function te(t){return Math[Ft(588)](100*t)/100}function ee(t){return{wd:t[Ft(638)],ua:t[Ft(600)],cf:t[Ft(618)],be:t[Ft(529)],nm:t[Ft(507)],nc:t[Ft(566)],ka:t[Ft(599)],sa:t[Ft(504)],ta:t[Ft(539)],pt:t[Ft(474)],mp:t[Ft(509)],sd:t[Ft(597)]}}class ne{[Ft(579)];[Ft(603)];[Ft(680)];[Ft(513)];constructor(t,e,n=Yt()){const r={shopId:0,updateInterval:5e3,debug:!1,beaconEndpoint:Jt,beaconRetryLimit:3,maxSilenceMs:18e5,exportWithFetch:!1,logsSampleRate:1};this[Ft(579)]={...r,...e},this[Ft(680)]=n,this[Ft(513)]=t,this[Ft(603)]={startTime:Date[Ft(628)](),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};const i=this[Ft(532)]();this[Ft(603)][Ft(524)]={lastSignals:i,lastProcessTime:0,lastSuccessfulSendTime:0,retryCount:0}}[Ft(613)](){(async()=>{await this[Ft(674)](),await this[Ft(668)](!0),this[Ft(680)][Ft(496)][Ft(560)](()=>{this[Ft(528)]()},100);const t=()=>{const e=Date[Ft(628)](),n=e-(this[Ft(603)][Ft(559)]||e),r=Math[Ft(521)](0,this[Ft(579)][Ft(563)]-n),i=()=>{this[Ft(680)][Ft(496)][Ft(489)]?this[Ft(603)][Ft(660)]=this[Ft(680)][Ft(496)][Ft(489)](()=>{this[Ft(668)]()[Ft(592)](()=>this[Ft(513)][Ft(565)]())[Ft(592)](()=>{t()})},{timeout:2e3}):this[Ft(668)]()[Ft(592)](()=>this[Ft(513)][Ft(565)]())[Ft(592)](()=>{t()})};r>0?this[Ft(680)][Ft(496)][Ft(560)](i,r):i()};t()})()[Ft(586)](t=>{this[Ft(513)][Ft(583)](t,Ft(613))})}[Ft(525)](){this[Ft(603)][Ft(679)]&&this[Ft(680)][Ft(496)][Ft(531)](this[Ft(603)][Ft(679)]),this[Ft(603)][Ft(660)]&&this[Ft(680)][Ft(496)][Ft(514)]&&this[Ft(680)][Ft(496)][Ft(514)](this[Ft(603)][Ft(660)]),this[Ft(603)][Ft(498)]&&(this[Ft(680)][Ft(574)][Ft(510)](Ft(673),this[Ft(603)][Ft(498)][Ft(673)]),this[Ft(680)][Ft(574)][Ft(510)](Ft(655),this[Ft(603)][Ft(498)][Ft(655)]),this[Ft(680)][Ft(574)][Ft(510)](Ft(665),this[Ft(603)][Ft(498)][Ft(665)]),this[Ft(680)][Ft(574)][Ft(510)](Ft(619),this[Ft(603)][Ft(498)][Ft(619)]),Ft(623)in window&&this[Ft(603)][Ft(498)][Ft(648)]&&this[Ft(603)][Ft(498)][Ft(610)]&&this[Ft(603)][Ft(498)][Ft(553)]&&(this[Ft(680)][Ft(574)][Ft(510)](Ft(648),this[Ft(603)][Ft(498)][Ft(648)]),this[Ft(680)][Ft(574)][Ft(510)](Ft(610),this[Ft(603)][Ft(498)][Ft(610)]),this[Ft(680)][Ft(574)][Ft(510)](Ft(553),this[Ft(603)][Ft(498)][Ft(553)]))),this[Ft(603)][Ft(524)]?.[Ft(585)]&&this[Ft(680)][Ft(496)][Ft(531)](this[Ft(603)][Ft(524)][Ft(585)]),this[Ft(603)][Ft(524)]=void 0}[Ft(475)](){return this[Ft(603)][Ft(524)]?.[Ft(658)]?ee(this[Ft(603)][Ft(524)][Ft(658)]):null}[Ft(674)](){const t={wd:this[Ft(680)][Ft(636)][Ft(550)]?1:0,ua:/bot|crawler|spider|scraper/i[Ft(656)](this[Ft(680)][Ft(636)][Ft(602)])?0:1,cv:this[Ft(641)]()?1:0,br:this[Ft(558)]()?1:0};return this[Ft(603)][Ft(515)]=t,this[Ft(603)][Ft(538)]=!0,t}[Ft(641)](){try{const t=this[Ft(680)][Ft(574)][Ft(523)](Ft(570));t[Ft(612)]=200,t[Ft(634)]=50;const e=t[Ft(590)]("2d");if(null===e)return!1;const n=e[Ft(662)](0,0,200,0);n[Ft(601)](0,Ft(672)),n[Ft(601)](1,Ft(587)),e[Ft(547)]=n,e[Ft(512)](0,0,200,50),e[Ft(547)]=Ft(481),e[Ft(495)]=Ft(561),e[Ft(589)](Ft(576),33,30);const r=t[Ft(522)]();return Boolean(r&&r[Ft(541)]>50)}catch(t){return!1}}[Ft(558)](){let t=0;this[Ft(680)][Ft(636)][Ft(502)]&&this[Ft(680)][Ft(636)][Ft(502)][Ft(541)]>0&&t++,(this[Ft(680)][Ft(636)][Ft(604)]&&this[Ft(680)][Ft(636)][Ft(604)][Ft(541)]>0||this[Ft(680)][Ft(636)][Ft(602)][Ft(632)](Ft(630)))&&t++,this[Ft(582)]()&&t++,typeof this[Ft(680)][Ft(496)][Ft(501)]!==Ft(644)&&t++;try{const e=(new Date)[Ft(595)]();e>-840&&e<840&&t++}catch(t){}return t>=3}[Ft(582)](){const t=this[Ft(680)][Ft(496)][Ft(667)]||this[Ft(680)][Ft(574)][Ft(626)][Ft(526)],e=this[Ft(680)][Ft(496)][Ft(571)]||this[Ft(680)][Ft(574)][Ft(626)][Ft(552)];if(!t||!e)return!1;if(t<=2||e<=2)return!1;const n=t/e;return n>=.2&&n<=5}[Ft(567)](t,e){return n=>{try{t(n)}catch(t){this[Ft(513)][Ft(583)](t,Ft(675)+e)}}}[Ft(528)](){const t=Qt(this[Ft(567)](t=>{this[Ft(603)][Ft(534)]++,this[Ft(603)][Ft(629)][Ft(541)]>=10&&this[Ft(603)][Ft(629)][Ft(511)](),this[Ft(603)][Ft(629)][Ft(577)]({x:t[Ft(516)],y:t[Ft(473)],t:t[Ft(614)]})},Ft(673)),100),e=this[Ft(567)](t=>{this[Ft(603)][Ft(549)]++,requestAnimationFrame(()=>setTimeout(()=>{this[Ft(603)][Ft(573)][Ft(541)]>=5&&this[Ft(603)][Ft(573)][Ft(511)](),this[Ft(603)][Ft(573)][Ft(577)]({x:t[Ft(516)],y:t[Ft(473)],t:t[Ft(614)],pre:this[Ft(640)](t)})},0))},Ft(655)),n=this[Ft(567)](t=>{this[Ft(603)][Ft(471)]++;const e=t[Ft(605)];if([Ft(607),Ft(487),Ft(537),Ft(608)][Ft(632)](e))return;const n=this[Ft(603)][Ft(663)][this[Ft(603)][Ft(663)][Ft(541)]-1],r=t[Ft(614)],i=n?r-n.t:null;this[Ft(603)][Ft(663)][Ft(541)]>=10&&this[Ft(603)][Ft(663)][Ft(511)](),this[Ft(603)][Ft(663)][Ft(577)]({_0x33fa73:e,t:r,int:i}),null!==i&&i<100?(this[Ft(603)][Ft(670)][Ft(577)](i),this[Ft(603)][Ft(670)][Ft(541)]>=5&&(this[Ft(603)][Ft(649)]++,this[Ft(603)][Ft(670)]=[])):this[Ft(603)][Ft(670)]=[]},Ft(665)),r=Qt(this[Ft(567)](t=>{this[Ft(603)][Ft(535)]++;const e=t[Ft(614)],n=window[Ft(666)];this[Ft(603)][Ft(506)][Ft(541)]>=10&&this[Ft(603)][Ft(506)][Ft(511)](),this[Ft(603)][Ft(506)][Ft(577)]({p:n,t:e})},Ft(619)),200),i=this[Ft(567)](t=>{t[Ft(505)]&&0!==t[Ft(505)][Ft(541)]&&(this[Ft(603)][Ft(611)]++,this[Ft(603)][Ft(581)][Ft(541)]>=10&&this[Ft(603)][Ft(581)][Ft(511)](),this[Ft(603)][Ft(530)]={x:t[Ft(505)][0][Ft(516)],y:t[Ft(505)][0][Ft(473)],t:t[Ft(614)],typ:Ft(478),s:0,d:0})},Ft(648)),o=Qt(this[Ft(567)](t=>{if(!t[Ft(505)]||0===t[Ft(505)][Ft(541)])return;const e={x:t[Ft(505)][0][Ft(516)],y:t[Ft(505)][0][Ft(473)]};if(this[Ft(603)][Ft(530)]){const n=this[Ft(643)](this[Ft(603)][Ft(530)],e);this[Ft(603)][Ft(581)][Ft(541)]>=10&&this[Ft(603)][Ft(581)][Ft(511)]();const r={x:t[Ft(505)][0][Ft(516)],y:t[Ft(505)][0][Ft(473)],t:t[Ft(614)],typ:Ft(657),d:n,s:n/(t[Ft(614)]-this[Ft(603)][Ft(530)].t)};this[Ft(603)][Ft(581)][Ft(577)](r),this[Ft(603)][Ft(530)]=r}else{const e={x:t[Ft(505)][0][Ft(516)],y:t[Ft(505)][0][Ft(473)],t:t[Ft(614)],typ:Ft(657),s:0,d:0};this[Ft(603)][Ft(530)]=e}},Ft(610)),200),a=this[Ft(567)](t=>{this[Ft(603)][Ft(530)]=null},Ft(553));this[Ft(680)][Ft(574)][Ft(615)](Ft(673),t,{passive:!0}),this[Ft(680)][Ft(574)][Ft(615)](Ft(655),e,{passive:!0}),this[Ft(680)][Ft(574)][Ft(615)](Ft(665),n,{passive:!0}),this[Ft(680)][Ft(574)][Ft(615)](Ft(619),r,{passive:!0}),Ft(623)in window&&(this[Ft(680)][Ft(574)][Ft(615)](Ft(648),i,{passive:!0}),this[Ft(680)][Ft(574)][Ft(615)](Ft(610),o,{passive:!0}),this[Ft(680)][Ft(574)][Ft(615)](Ft(553),a,{passive:!0})),this[Ft(603)][Ft(498)]={mousemove:t,click:e,keydown:n,scroll:r,touchstart:i,touchmove:o,touchend:a}}async[Ft(668)](t=!1){this[Ft(617)](t),await this[Ft(556)](),this[Ft(603)][Ft(559)]=Date[Ft(628)]()}[Ft(617)](t=!1){const e=Date[Ft(628)]();let n=Math[Ft(543)]((e-this[Ft(603)][Ft(490)])/1e3);null!==this[Ft(603)][Ft(559)]&&(n=Math[Ft(543)]((e-this[Ft(603)][Ft(559)])/1e3)),this[Ft(603)][Ft(527)]?(this[Ft(603)][Ft(527)][Ft(633)]+=t?1:0,this[Ft(603)][Ft(527)][Ft(622)]+=n):this[Ft(603)][Ft(527)]={pageCount:1,sessionStart:this[Ft(603)][Ft(490)],duration:0}}[Ft(486)](t,e=!1){this[Ft(513)][Ft(482)](Ft(554)+t,e)}[Ft(532)](){try{if(this[Ft(680)][Ft(496)][Ft(596)]){const e=this[Ft(680)][Ft(496)][Ft(596)][Ft(546)](Xt);if(e){const n=JSON[Ft(479)](e);let r;return Ft(638)in n?r=n:r={webdriver_detected:(t=n).wd,bot_user_agent:t.ua,canvas_fingerprint_normal:t.cf,browser_environment_normal:t.be,natural_mouse_activity:t.nm,natural_click_patterns:t.nc,keyboard_activity:t.ka,scroll_activity:t.sa,touch_activity:t.ta,significant_page_time:t.pt,multiple_pages_visited:t.mp,session_duration_reasonable:t.sd},r}}}catch(t){}var t;return null}[Ft(647)](t){try{this[Ft(680)][Ft(496)][Ft(596)]&&this[Ft(680)][Ft(496)][Ft(596)][Ft(606)](Xt,JSON[Ft(593)](ee(t)))}catch(t){}}[Ft(640)](t){const e=t[Ft(661)];if(!(e&&e instanceof Element&&e[Ft(503)]))return 0;const n=e[Ft(503)]();if(!n[Ft(612)]||!n[Ft(634)])return 0;const r=n[Ft(568)]+n[Ft(612)]/2,i=n[Ft(484)]+n[Ft(634)]/2,o=this[Ft(643)]({x:t[Ft(516)],y:t[Ft(473)]},{x:r,y:i}),a=Math[Ft(637)](n[Ft(612)]**2+n[Ft(634)]**2)/2;return a>0?Math[Ft(521)](0,1-o/a):0}[Ft(643)](t,e){return Math[Ft(637)]((e.x-t.x)**2+(e.y-t.y)**2)}[Ft(520)](t){if(t[Ft(678)](Ft(646))||t[Ft(678)](Ft(540)))return t;return""+(this[Ft(680)][Ft(496)][Ft(659)][Ft(569)]||this[Ft(680)][Ft(496)][Ft(659)][Ft(555)]+"//"+this[Ft(680)][Ft(496)][Ft(659)][Ft(650)])+t}async[Ft(584)](t,e){if(!this[Ft(603)][Ft(524)])return;if(null===this[Ft(579)][Ft(620)])return void(this[Ft(603)][Ft(524)][Ft(677)]=Date[Ft(628)]());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,ee(t),e),r=JSON[Ft(593)](n),i=this[Ft(520)](this[Ft(579)][Ft(620)]);if(this[Ft(680)][Ft(636)][Ft(584)]&&!this[Ft(579)][Ft(654)])try{const t=new Blob([r],{type:Ft(645)});if(this[Ft(680)][Ft(636)][Ft(584)](i,t))return this[Ft(603)][Ft(524)][Ft(485)]=0,void(this[Ft(603)][Ft(524)][Ft(677)]=Date[Ft(628)]())}catch(t){}try{const t=await fetch(i,{method:Ft(651),headers:{"Content-Type":Ft(645)},body:r,credentials:Ft(492),keepalive:!0});if(!t.ok)throw new Error(Ft(635)+t[Ft(551)]);this[Ft(603)][Ft(524)][Ft(485)]=0,this[Ft(603)][Ft(524)][Ft(677)]=Date[Ft(628)]()}catch(n){this[Ft(500)](t,e)}}[Ft(500)](t,e){if(!this[Ft(603)][Ft(524)]||this[Ft(603)][Ft(524)][Ft(485)]>=this[Ft(579)][Ft(578)])return;const n=Math[Ft(518)](1e3*2**this[Ft(603)][Ft(524)][Ft(485)],3e4);this[Ft(603)][Ft(524)][Ft(485)]++,this[Ft(603)][Ft(524)][Ft(585)]=this[Ft(680)][Ft(496)][Ft(560)](()=>{this[Ft(603)][Ft(524)]&&this[Ft(584)](t,e)},n)}async[Ft(556)](){if(!this[Ft(603)][Ft(524)])return;const t=$t(this[Ft(603)][Ft(534)],this[Ft(603)][Ft(629)],this[Ft(603)][Ft(549)],this[Ft(603)][Ft(573)],this[Ft(603)][Ft(663)],this[Ft(603)][Ft(471)],this[Ft(603)][Ft(649)],this[Ft(603)][Ft(535)],this[Ft(603)][Ft(611)],this[Ft(603)][Ft(506)],this[Ft(603)][Ft(581)],this[Ft(603)][Ft(490)],Date[Ft(628)]()),e=function(t,e,n,r){const i={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};if(e.ma>0&&1===e.nm&&(i[Ft(507)]=!0),e.ca>0&&1===e.vc&&(i[Ft(566)]=!0),e.ka>0&&(i[Ft(599)]=!0),e.sa>0&&(i[Ft(504)]=!0),e.ta>0&&(i[Ft(539)]=!0),e.t>30&&(i[Ft(474)]=!0),n&&(n[Ft(633)]>1&&(i[Ft(509)]=!0),n[Ft(622)]>60&&(i[Ft(597)]=!0)),r){const t=Object[Ft(625)](i);for(const e of t)i[e]=i[e]||r[e]}return i}(this[Ft(603)][Ft(515)],t,this[Ft(603)][Ft(527)],this[Ft(603)][Ft(524)][Ft(658)]),n=function(t,e){if(!e)return!0;const n=Object[Ft(625)](t);for(const r of n)if(t[r]!==e[r])return!0;return!1}(e,this[Ft(603)][Ft(524)][Ft(658)]),r=Date[Ft(628)]()-this[Ft(603)][Ft(524)][Ft(677)],i=r>=this[Ft(579)][Ft(575)];if(n||i){if(Date[Ft(628)]()-this[Ft(603)][Ft(524)][Ft(624)]<100)return void this[Ft(486)](Ft(545),!0);if(i&&!n&&this[Ft(486)](Ft(494)+Math[Ft(588)](r/1e3)+Ft(476),!0),n&&this[Ft(579)][Ft(653)]){if(this[Ft(603)][Ft(524)][Ft(658)]){Object[Ft(625)](e)[Ft(548)](t=>{this[Ft(603)][Ft(524)][Ft(658)][t],e[t]})}else this[Ft(486)](Ft(664));this[Ft(603)][Ft(527)]}if(this[Ft(603)][Ft(524)][Ft(658)]=(o=e,{...o}),this[Ft(603)][Ft(524)][Ft(624)]=Date[Ft(628)](),this[Ft(647)](e),this[Ft(579)][Ft(594)]&&n)try{this[Ft(579)][Ft(594)](ee(e))}catch(t){this[Ft(513)][Ft(583)](t,Ft(477))}const t=Ft(n?642:580);await this[Ft(584)](e,t)}else this[Ft(579)][Ft(653)];var o}}const re=(t,e)=>({libVersion:"2.3.0",shopId:e||"",hostname:t[Ft(496)]?.[Ft(659)]?.[Ft(627)]||"",url:t[Ft(496)]?.[Ft(659)]?.[Ft(483)]||"",referrer:t[Ft(574)]?.[Ft(572)]||"",baseURI:t[Ft(574)]?.[Ft(480)]||"",sessionToken:jt()||"",uniqueToken:qt("_shopify_y","_y")||""}),ie=(t,e=Yt(),n=new It(Rt,Vt))=>{const r=new Lt({exporter:n,attributes:re(e,t?.[Ft(488)])}),i=jt(),o=i?function(t){let e=0;for(let n=0,r=t[Zt(462)];ns[Ft(613)]()):s[Ft(613)](),s};function oe(){const t=["B25tAwDUywXvCgrHDgu","z2v0vgLTzxPVBMvpzMzZzxq","C2vZC2LVBLn0B3jHz2u","C2vZC2LVBL9KDxjHDgLVBL9YzwfZB25HyMXL","Bg9NC1nHBxbSzvjHDgu","A2v5yM9HCMrFywn0AxzPDhK","yM90x3vZzxjFywDLBNq","ywrKq29SB3jtDg9W","DxnLCKfNzw50","C3rHDgu","CgX1z2LUCW","A2v5","C2v0sxrLBq","u2HPzNq","twv0yq","zg93BG","Dg91y2HTB3zL","Dg91y2Hby3rPDML0Eq","D2LKDgG","Aw5PDa","DgLTzvn0yw1W","ywrKrxzLBNrmAxn0zw5LCG","ndyZnda3zLvzwMXi","DxbKyxrLu2vZC2LVBKrHDge","y2fUDMfZx2zPBMDLCNbYAw50x25VCM1HBa","C2nYB2XS","yMvHy29Urw5KCg9PBNq","l2fWAs9JB2XSzwn0","zhvYyxrPB24","B250B3vJAhn0yxj0","BgfZDfbYB2nLC3nuAw1L","A2v5CW","zg9JDw1LBNrfBgvTzw50","Ag9ZDg5HBwu","BM93","Bw91C2vqB3nPDgLVBNm","tw9IAwXL","Aw50","Aw5JBhvKzxm","CgfNzunVDw50","AgvPz2H0","qMvHy29UigzHAwXLzdOG","BMf2AwDHDg9Y","C3fYDa","D2vIzhjPDMvYx2rLDgvJDgvK","odi1mtK4Bwj4vfns","y2fSy3vSyxrLq2XPy2TqCMvJAxnPB24","CNvUq2fUDMfZvgvZDa","y2HHBMDL","z2v0rgLZDgfUy2u","Dw5KzwzPBMvK","yxbWBgLJyxrPB24VANnVBG","Ahr0CdOVlW","C2f2zvnLC3nPB25tAwDUywXZ","Dg91y2HZDgfYDa","A2v5yM9HCMrcDxjZDefJDgL2Axr5","Ag9ZDa","ue9tva","CMvHzhLtDgf0zq","zgvIDwC","zxHWB3j0v2L0AezLDgnO","y2XPy2S","DgvZDa","Bw92zq","BgfZDfnPz25HBhm","Bg9JyxrPB24","CMvXDwvZDeLKBgvdywXSyMfJA0LK","DgfYz2v0","y3jLyxrLtgLUzwfYr3jHzgLLBNq","A2v5rxzLBNrZ","icaOsw5PDgLHBcbZAwDUywWGC2v0kq","A2v5zg93BG","C2nYB2XSwq","Aw5UzxjxAwr0Aa","ChjVy2vZC0fUzfnLBMrtAwDUywXZ","ntC2mtD0rgTwA2y","A2v5yM9HCMrcDxjZDhm","ywjZ","CMvK","Bw91C2vTB3zL","y2HLy2TfBNzPCM9UBwvUDa","rxzLBNqGAgfUzgXLCIbLCNjVCIbPBIa","BwfW","BgfZDfn1y2nLC3nMDwXtzw5KvgLTzq","C3rHCNrZv2L0Aa","DxbKyxrLsw50zxj2ywXjza","yNjVD3nLCKfqsq","A2v5qwn0AxzPDhK","ndmWnde5mfDzq09evG","y2XPzw50wq","C2LNBMLMAwnHBNrFCgfNzv90Aw1L","z2v0u2LNBMfSCW","CYbZAw5JzsbSyxn0ihn1y2nLC3nMDwWGC2vUza","B25tAwDUywXvCgrHDguGy2fSBgjHy2S","C3rHCNq","CgfYC2u","yMfZzvvssq","i2zMzG","Bg9N","AhjLzG","Dg9W","CMv0CNLdB3vUDa","Bg9NtwvZC2fNzq","q29UDhjVBa","C2HVCeLK","CMvXDwvZDeLKBgvdywXSyMfJAW","C3rHCNruAw1L","ChjL","Aw5JBhvKzq","zgLY","u2vUzgLUzYbWzxjPB2rPyYbIzwfJB24Glsa","zM9UDa","D2LUzg93","CMvKDwnL","zxzLBNriyw5KBgvYCW","mtmXmdy5nevotwHksG","C2nOzwr1BgvczwfJB25szxrYEq","zgv2AwnLugL4zwXsyxrPBW","BgfUz3vHz2vZ","z2v0qM91BMrPBMDdBgLLBNrszwn0","C2nYB2XSx2fJDgL2Axr5","Dg91y2HLCW","C2nYB2XSrxzLBNrZ","BMf0DxjHBf9TB3vZzv9Hy3rPDML0Eq","yxrHBJi","BxvSDgLWBgvFCgfNzxnFDMLZAxrLza","CMvTB3zLrxzLBNrmAxn0zw5LCG","C2HPzNq","zMLSBfjLy3q","Bg9Nz2vY","y2fUy2vSswrSzunHBgXIywnR","zw52AxjVBM1LBNq","y2XPzw50wa","nde5nJGWofDuuMfmyG","BwLU","x3nOC19ZDgf0zq","z2v0qwjZB2X1DgvvCMW","Bwf4","Dg9eyxrHvvjm","y3jLyxrLrwXLBwvUDa","yMvHy29Uu3rHDgu","zgvZDhjVEq","y2XPzw50v2LKDgG","C2vZC2LVBKrHDge","Bw9UAxrVCKjLAgf2Aw9Y","yNjVD3nLCL9LBNzPCM9UBwvUDf9UB3jTywW","BgfZDfrVDwnOrxzLBNq","y2XLyxjuAw1LB3v0","Bg9HzfnLC3nPB25tAwDUywXZ","CgvYzI1RAxqTAhvTyw4TC2LNBMfSCW","Bw91C2vby3rPDML0Eq","C2nYB2XSqwn0AxzPDhK","Ahr0Chm6lY9VDgXWlwH0DhaTChjVzhvJDgLVBI5ZAg9WAwz5C3zJlMnVBq","qwX0","zw52AxjVBM1LBNrdAgvJA2vK","Dg91y2HFywn0AxzPDhK","Ahr0Chm6lY8","BgvUz3rO","C2L6zq","zMXVB3i","mZiZmZyZmKf3tLfWsG","qMvHy29UihnLBMqGzgvIB3vUy2vKicH0B28GC29VBIbZAw5JzsbSyxn0ihnLBMqP","z2v0sxrLBq","zMLSBfn0EwXL","zM9YrwfJAa","y2XPy2Tby3rPDML0Eq","D2vIzhjPDMvY","C3rHDhvZ","y2XPzw50sgvPz2H0","Dg91y2HLBMq","w1niu10G","ChjVDg9JB2W","y2HLy2TbBMrtzw5Ku2LNBMfSCW","re9nq29UDgvUDeXVywrLza","y2HLy2TcCM93C2vYq29UC2LZDgvUy3K","BgfZDfvWzgf0zvrPBwu","C2v0vgLTzw91Da","mtzWEcbbCMLHBa","yMLUza","DxbKyxrLsw50zxj2ywW","ndm4Au5bvwDT","zMX1C2HpDgvStg9NCW","BMf0DxjHBf9JBgLJA19Wyxr0zxjUCW","C2fMzuv2zw50sgfUzgXLCG","BgvMDa","B3jPz2LU","y2fUDMfZ","Aw5UzxjizwLNAhq","CMvMzxjYzxi","y2XPy2TqB3nPDgLVBNm","zg9JDw1LBNq","Bwf4u2LSzw5Jzu1Z","u2HVCgLMEsbtDg9YzwzYB250","ChvZAa","yMvHy29UuMv0CNLmAw1PDa","xZb4mMzHodLJ","CgvYAw9KAwm","Dg91y2HfDMvUDhm","y2HLy2TwAwv3Cg9YDfjHDgLV","Bg9NrxjYB3i","C2vUzejLywnVBG","CMv0CNLuAw1LB3v0swq","y2f0y2G","yMX1zq","CM91BMq","zMLSBfrLEhq","z2v0q29UDgv4Da","Bg9HzgLUzW","DgHLBG","C3rYAw5NAwz5"];return(oe=function(){return t})()}class ae{quietWindowStartCandidates=[];longAnimationFrameObserver=null;longAnimationFrames=[];constructor(){this.initializeLongAnimationFrameObserver()}getQuietWindowStartCandidates(){return[...this.quietWindowStartCandidates].sort((t,e)=>t.startTime-e.startTime)}getLongAnimationFrames(){if(!ue()){const t=function(){const{getLongAnimationFrames:t}=window.ShopifyAnalytics?.performance||{};if(!t)return[];return t(!0)}();this.longAnimationFrames=[];for(const e of t)this.handleAnimationFrame(e.startTime,e.endTime)}return[...this.longAnimationFrames].sort((t,e)=>t.startTime-e.startTime)}destroy(){this.cleanup(),this.quietWindowStartCandidates=[],this.longAnimationFrames=[]}initializeLongAnimationFrameObserver(){if(ue())try{this.longAnimationFrameObserver=new PerformanceObserver(t=>{const e=t.getEntries();for(const t of e)this.handleAnimationFrame(t.startTime,t.startTime+t.duration)}),this.longAnimationFrameObserver.observe({type:"long-animation-frame",buffered:!0})}catch(t){}}handleAnimationFrame(t,e){if(this.longAnimationFrames.push({startTime:t,endTime:e}),this.quietWindowStartCandidates.length>0){t-this.quietWindowStartCandidates[this.quietWindowStartCandidates.length-1].startTime<250&&this.quietWindowStartCandidates.pop()}this.quietWindowStartCandidates.push({startTime:e})}cleanup(){this.longAnimationFrameObserver&&(this.longAnimationFrameObserver.disconnect(),this.longAnimationFrameObserver=null)}}let se=null;function ce(t,e=0){if(null===t||!ue()&&!Boolean(window.ShopifyAnalytics?.performance?.getLongAnimationFrames))return le(),null;const n=(se?se.getLongAnimationFrames():[]).map(t=>({startTime:t.startTime-e,endTime:t.endTime-e}));let r=null;for(const e of n){if(e.startTime<=t&&e.endTime>t){r=e;break}if(e.startTime>=t){r=e;break}}if(!r||r.startTime-t>=250)return le(),t;const i=(se?se.getQuietWindowStartCandidates():[]).map(t=>({startTime:t.startTime-e}));let o=t;if(i.length>0)for(const e of i)if(e.startTime>=t){o=e.startTime;break}return le(),o}function ue(){return PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}function le(){se&&(se.destroy(),se=null)}function de(){return PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}function he(){return performance.getEntriesByType("long-animation-frame")}function fe(t){if(!t)return;const e=[];for(const n of t.split(",")){const t=Number(n);isNaN(t)||e.push(t)}return e.length>0?e:void 0}const me=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"}),pe=new RegExp(`^${window.location.origin}/((?:(?:[a-z]{2,3}|zh-hans|zh-hant)(?:-[a-zA-Z0-9]+)/)?cart/(add|change|update|clear))`),ge=new RegExp("cart-performance:|add:|change:|clear:|note_update:");var ve;function ye({monorailRegion:t,schema:e,rawData:n}){const r=Date.now(),i={schema_id:e,payload:e===ve.OnUnload?we(n):Se(n),metadata:{event_created_at_ms:r,event_sent_at_ms:r}},o=me[t||""],a=JSON.stringify(i);if(!o)return void console.debug("📡 Monorail: ",JSON.stringify(i,null,2));try{const t=new window.Blob([a],{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 s=new XMLHttpRequest;s.open("POST",o),s.setRequestHeader("Content-type","text/plain"),s.send(a)}function we(t){const e=be(t,["domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","activationStart","firstPaint","visuallyReady","initiatorType","redirectCount","cartAjaxResourceTimings","cartPerformanceMetrics","totalStylingDuration","totalStyleDuration","totalForcedStyleDuration","totalLayoutDuration","totalForcedLayoutDuration"]);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,treatment_ids:t.treatmentIds,other_metrics:JSON.stringify(e)}}function Se(t){const e=be(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,treatment_ids:t.treatmentIds,other_interaction_metrics:JSON.stringify(e)}}function be(t,e){return e.reduce((e,n)=>{var r;return null!=t[n]&&(e[(r=n,r.replace(/[A-Z]/g,t=>`_${t.toLowerCase()}`))]=t[n]),e},{})}function Ce(t,e){return t?Math.max(0,Math.round(t-e)):0}!function(t){t.OnInteraction="perf_kit_on_interaction/3.2",t.OnUnload="perf_kit_on_unload/3.5"}(ve||(ve={}));const Te="xxxx-4xxx-xxxx-xxxxxxxxxxxx";function _e(){let t="";try{const e=window.crypto,n=new Uint16Array(31);e.getRandomValues(n);let r=0;t=Te.replace(/[x]/g,t=>{const e=n[r]%16;return r++,("x"===t?e:3&e|8).toString(16)}).toUpperCase()}catch(e){t=Te.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 De=!0,Le=!1,Be=null,xe=null,Me=!1;class ze{info;config;constructor(t){this.config=t,this.info={perfKitInit:Date.now(),perfKitVersion:"3.5.0",url:window.location.href,referrer:document.referrer||void 0,microSessionId:_e(),microSessionCount:0,sessionToken:pt("_shopify_s","_s"),uniqueToken:pt("_shopify_y","_y")},performance.setResourceTimingBufferSize(1e3)}get performanceMetrics(){return function(t){const e=performance.getEntriesByType("navigation");if(0===e.length)return{};const n=e[0],r=n.activationStart||0,i=function(t,e){return!e&&(t.requestStart>0&&t.startTime>0&&t.requestStart0&&t.startTime>0&&t.responseStart0&&t.fetchStart>0&&t.responseStart0&&t.fetchStart0&&t.responseEnd>e+864e5}(n,t);return{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:Ce(n.domInteractive,r),domComplete:Ce(n.domComplete,r),domContentLoadedEventStart:Ce(n.domContentLoadedEventStart,r),domContentLoadedEventEnd:Ce(n.domContentLoadedEventEnd,r),activationStart:Math.round(r),redirectCount:n.redirectCount,initiatorType:n.initiatorType,transferSize:n.transferSize}}(this.info.perfKitInit)}}function Ae(t){Be=new ze(t),xe=null,se||(se=new ae),t.spaMode&&(window.PerfKit={navigate:()=>{De?De=!1:Le||(Pe(),Be=new ze(t),Le=!0)},setPageType:e=>{t.storefrontData.pageType=e},setConsent:t=>{xe=t}}),t.shs&&!t.spaMode&&ie({debug:!1,shopId:t.storefrontData.shopId,exportWithFetch:t.shsExportWithFetch||!0,logsSampleRate:t.shsLogsSampleRate,...t.shsBeaconEndpoint&&{beaconEndpoint:t.shsBeaconEndpoint}})}const Ie=new Set;function Pe(){if(null!==Be){if(!qe()&&Ee()&&Ie.size>0){let t={};for(const e of Ie)t={...t,...e};const e=t.firstContentfulPaint??null,n=ce(e,performance.getEntriesByType("navigation")[0]?.activationStart||0);null!==e&&null!==n&&(t.quietWindowStart=Math.round(n));const r=function(){if(!de())return null;const t=he();let e=0;for(const n of t){e+=n.styleAndLayoutStart?n.startTime+n.duration-n.styleAndLayoutStart:0;for(const t of n.scripts)e+=t.forcedStyleAndLayoutDuration}return e}();null!==r&&(t.totalStylingDuration=Math.round(r));const i=function(){if(!de())return null;const t=he();if(0===t.length)return null;if("number"!=typeof t[0].styleDuration)return null;let e=0,n=0,r=0,i=0;for(const o of t){const t=o;e+=t.styleDuration??0,r+=t.layoutDuration??0;for(const t of o.scripts){const e=t;n+=e.forcedStyleDuration??0,i+=e.forcedLayoutDuration??0}}return{totalStyleDuration:e,totalForcedStyleDuration:n,totalLayoutDuration:r,totalForcedLayoutDuration:i}}();null!==i&&(t.totalStyleDuration=Math.round(i.totalStyleDuration),t.totalForcedStyleDuration=Math.round(i.totalForcedStyleDuration),t.totalLayoutDuration=Math.round(i.totalLayoutDuration),t.totalForcedLayoutDuration=Math.round(i.totalForcedLayoutDuration)),Ie.clear(),Be.info.microSessionCount+=1;const o=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))})}(Be.config.resourceTimingSamplingRate),a=performance.getEntriesByType("resource").filter(t=>pe.test(t.name)),s=performance.getEntriesByType("measure").filter(t=>ge.test(t.name)).map(t=>{const e=t.toJSON();return e.name.startsWith("cart-performance:")||(e.name=`cart-performance:${e.name}`),e});ye({monorailRegion:Be.config.monorailRegion,schema:ve.OnUnload,rawData:{...Be.info,...Be.config.storefrontData,...Be.performanceMetrics,...t,resourceTiming:o,cartAjaxResourceTimings:a,cartPerformanceMetrics:s,paintTimingHidden:Me}})}}else console.debug("⛔️ Shopify/perf-kit is not initialized")}function Ee(){return null!==xe?xe:ht()}((e,r={})=>{const o=a(r=Object.assign({},r),t),s=new WeakMap;o.t=t=>{if(t?.sources?.length){const e=D(t.sources),n=e?.node;if(n){const t=r.generateTarget?.(n)??i(n);s.set(e,t)}}},((e,n={})=>{const r=S();T(p(()=>{let i,o=f("CLS",0);const s=a(n,t),c=t=>{for(const e of t)s.u(e);s.o>o.value&&(o.value=s.o,o.entries=s.i,i())},h=m("layout-shift",c);h&&(i=l(e,o,_,n.reportAllChanges),r.onHidden(()=>{c(h.takeRecords()),i(!0)}),u(()=>{s.o=0,o=f("CLS",0),i=l(e,o,_,n.reportAllChanges),d(()=>i())}),setTimeout(i))}))})(t=>{const r=(t=>{let e={};if(t.entries.length){const r=t.entries.reduce((t,e)=>t.value>e.value?t:e);if(r?.sources?.length){const t=D(r.sources);t&&(e={largestShiftTarget:s.get(t),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:t,largestShiftEntry:r,loadState:n(r.startTime)})}}return Object.assign(t,{attribution:e})})(t);e(r)},r)})(function(t){const{attribution:e,value:n}=t;Ie.add({cumulativeLayoutShift:n,cumulativeLayoutShiftTarget:e.largestShiftTarget})}),((t,n={})=>{const r=a(n=Object.assign({},n),q),o=new WeakMap;r.m=t=>{const e=t.element;if(e){const r=n.generateTarget?.(e)??i(e);o.set(t,r)}},((t,e={})=>{b(()=>{const n=S();let r,i=f("LCP");const o=a(e,q),s=t=>{e.reportAllChanges||(t=t.slice(-1));for(const e of t)o.u(e),e.startTime{s(c.takeRecords()),c.disconnect(),r(!0)}),o=t=>{t.isTrusted&&(E(n),removeEventListener(t.type,o,{capture:!0}))};for(const t of["keydown","click","visibilitychange"])addEventListener(t,o,{capture:!0});u(n=>{i=f("LCP"),r=l(t,i,j,e.reportAllChanges),d(()=>{i.value=performance.now()-n.timeStamp,r(!0)})})}})})(n=>{const r=(t=>{let n={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:t.value};if(t.entries.length){const r=e();if(r){const e=r.activationStart||0,i=t.entries.at(-1),a=i.url&&performance.getEntriesByType("resource").filter(t=>t.name===i.url)[0],s=Math.max(0,r.responseStart-e),c=Math.max(s,a?(a.requestStart||a.startTime)-e:0),u=Math.min(t.value,Math.max(c,a?a.responseEnd-e:0));n={target:o.get(i),timeToFirstByte:s,resourceLoadDelay:c-s,resourceLoadDuration:u-c,elementRenderDelay:t.value-u,navigationEntry:r,lcpEntry:i},i.url&&(n.url=i.url),a&&(n.lcpResourceEntry=a)}}return Object.assign(t,{attribution:n})})(n);t(r)},n)})(function(t){const{attribution:e,value:n}=t;Ie.add({largestContentfulPaint:Math.round(n),largestContentfulPaintTarget:e.target})}),((t,r={})=>{T(r=>{const i=(t=>{let r={timeToFirstByte:0,firstByteToFCP:t.value,loadState:n(c())};if(t.entries.length){const i=e(),o=t.entries.at(-1);if(i){const e=i.activationStart||0,a=Math.max(0,i.responseStart-e);r={timeToFirstByte:a,firstByteToFCP:t.value-a,loadState:n(t.entries[0].startTime),navigationEntry:i,fcpEntry:o}}}return Object.assign(t,{attribution:r})})(r);t(i)},r)})(function(t){const{value:e}=t;Ie.add({firstContentfulPaint:Math.round(e)})}),((t,e={})=>{const r=a(e=Object.assign({},e),P);let o=[],s=[],c=0;const d=new WeakMap,h=new WeakMap;let p=!1;const g=()=>{p||(E(v),p=!0)},v=()=>{const t=r.l.map(t=>d.get(t.entries[0])),e=s.length-50;s=s.filter((n,r)=>r>=e||t.includes(n));const n=new Set;for(const t of s){const e=y(t.startTime,t.processingEnd);for(const t of e)n.add(t)}const i=o.length-1-50;o=o.filter((t,e)=>t.startTime>c&&e>i||n.has(t)),p=!1};r.m=t=>{const e=t.startTime+t.duration;let n;c=Math.max(c,t.processingEnd);for(let r=s.length-1;r>=0;r--){const i=s[r];if(Math.abs(e-i.renderTime)<=8){n=i,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]},s.push(n)),(t.interactionId||"first-input"===t.entryType)&&d.set(t,n),g()},r.p=t=>{if(!h.get(t)){const n=t.entries[0].target;if(n){const r=e.generateTarget?.(n)??i(n);h.set(t,r)}}};const y=(t,e)=>{const n=[];for(const r of o)if(!(r.startTime+r.duratione)break;n.push(r)}return n},w=t=>{const e=t.entries[0],i=d.get(e),o=e.processingStart,a=Math.max(e.startTime+e.duration,o),s=Math.min(i.processingEnd,a),c=i.entries.sort((t,e)=>t.processingStart-e.processingStart),u=y(e.startTime,s),l=r.h.get(e.interactionId),f={interactionTarget:h.get(l),interactionType:e.name.startsWith("key")?"keyboard":"pointer",interactionTime:e.startTime,nextPaintTime:a,processedEventEntries:c,longAnimationFrameEntries:u,inputDelay:o-e.startTime,processingDuration:s-o,presentationDelay:a-s,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,r=t.processingDuration;let i,o,a=0,s=0,c=0,u=0;for(const c of t.longAnimationFrameEntries){s=s+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+r?"presentation-delay":"processing-duration",i=t,u=l)}}const l=t.longAnimationFrameEntries.at(-1),d=l?l.startTime+l.duration:0;d>=e+n+r&&(c=t.nextPaintTime-d),i&&o&&(t.longestScript={entry:i,subpart:o,intersectingDuration:u}),t.totalScriptDuration=a,t.totalStyleAndLayoutDuration=s,t.totalPaintDuration=c,t.totalUnattributedDuration=t.nextPaintTime-e-a-s-c})(f),Object.assign(t,{attribution:f})};m("long-animation-frame",t=>{o=o.concat(t),g()}),((t,e={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=S();b(()=>{"interactionCount"in performance||z||(z=m("event",M,{type:"event",buffered:!0,durationThreshold:0}));let r,i=f("INP");const o=a(e,P),s=t=>{E(()=>{for(const e of t)o.u(e);const e=o.M();e&&e.T!==i.value&&(i.value=e.T,i.entries=e.entries,r())})},c=m("event",s,{durationThreshold:e.durationThreshold??40});r=l(t,i,N,e.reportAllChanges),c&&(c.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(c.takeRecords()),r(!0)}),u(()=>{o.v(),i=f("INP"),r=l(t,i,N,e.reportAllChanges)}))})})(e=>{const n=w(e);t(n)},e)})(function(t){const{attribution:e,value:n}=t;if(null===Be)return void console.debug("⛔️ Shopify/perf-kit is not initialized");if(navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"))return;if(qe())return;if(!Ee())return;Be.info.microSessionCount+=1;const{inputDelay:r,processingDuration:i,presentationDelay:o,longestScript:a,interactionTarget:s}=e,c=a?.entry?{slowest_script:a.entry.sourceURL,slowest_script_duration:Math.round(a.entry.duration)}:{};ye({monorailRegion:Be.config.monorailRegion,schema:ve.OnInteraction,rawData:{...Be.info,...Be.config.storefrontData,...Be.performanceMetrics,interactionToNextPaint:Math.round(n),interactionToNextPaintTarget:s,longAnimationFrame:{input_delay:Math.round(r),processing_duration:Math.round(i),presentation_delay:Math.round(o),...c}}})},{reportAllChanges:!0}),((t,n={})=>{((t,n={})=>{let r=f("TTFB"),i=l(t,r,k,n.reportAllChanges);U(()=>{const o=e();o&&(r.value=Math.max(o.responseStart-h(),0),r.entries=[o],i(!0),u(()=>{r=f("TTFB",0),i=l(t,r,k,n.reportAllChanges),i(!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],r=n.activationStart||0,i=Math.max((n.workerStart||n.fetchStart)-r,0),o=Math.max(n.domainLookupStart-r,0),a=Math.max(n.connectStart-r,0),s=Math.max(n.connectEnd-r,0);e={waitingDuration:i,cacheDuration:o-i,dnsDuration:a-o,connectionDuration:s-a,requestDuration:t.value-s,navigationEntry:n}}return Object.assign(t,{attribution:e})})(e);t(n)},n)})(function(t){const{value:e}=t;Ie.add({timeToFirstByte:Math.round(e)})}),addEventListener("DOMContentLoaded",()=>{Me="hidden"===document.visibilityState}),addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&Pe()});const Ne=/bot|crawl|headless|curl|wget|python|spider|libwww-pearl|newrelic|datadog|sitebulb|site24x7/i;function qe(){return!!Ne.test(navigator.userAgent)||!!(navigator.webdriver||document.__webdriver_evaluate||document.__selenium_evaluate||document.__webdriver_script_fn||document.__webdriver_script_func||document.__webdriver_script_function||document.$cdc_asdjflasutopfhvcZLmcfl_||document.$wdc_||window._Selenium_IDE_Recorder||window._phantom||window.__nightmare||window.callPhantom||window._phantom||window.__playwright__binding__||window.__pwInitScripts)}!function(){const{dataset:t}=document.currentScript;try{Ae(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,treatmentIds:fe(t.treatmentIds)},monorailRegion:t.monorailRegion,resourceTimingSamplingRate:Number(t.resourceTimingSamplingRate)||void 0,spaMode:"true"===t.spaMode,shs:"true"===t.shs,shsBeaconEndpoint:t.shsBeaconEndpoint||void 0,shsExportWithFetch:"true"===t.shsExportWithFetch,shsLogsSampleRate:Number(t.shsLogsSampleRate)||1}}(t))}catch(t){console.error("🚫 Error initializing PerfKit:",t.message)}}()}();

search