!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)})}))})},L=[.1,.25],_=t=>t.find(t=>1===t.node?.nodeType)||t[0];let D=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),D=x?(x-B)/7+1:0)};let z;const A=()=>z?D: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 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 j{m;u(t){this.m?.(t)}}const q=[2500,4e3],k=[800,1800],H=t=>{document.prerendering?b(()=>H(t)):"complete"!==document.readyState?addEventListener("load",()=>H(t),!0):setTimeout(t)},U="",O="1",K="0",W="p",Z="a",F="m",R="t",J="m",V="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;e{});console.log("Monorail event from consent API:",r,n)}catch(t){}}}function et(){var t,e;return G()?{}:(null===(t=window.Shopify)||void 0===t||null===(e=t.customerPrivacy)||void 0===e?void 0:e.config)||{}}tt.instance=void 0;function nt(t){try{return t()}catch{return}}function rt(){var t,e;if(!ut()&&!function(){try{const t=performance.getEntriesByType("navigation")[0].serverTiming;return!!t&&0!=t.length}catch{return!1}}()){const t=new tt;let e="failed_to_fetch";try{e=navigator.userAgent}catch{}t.produce("navigationServerTiming",JSON.stringify({failed:!0,userAgent:e})),function(){if(ut())return;const t=st();t.Shopify||(t.Shopify={});t.Shopify.customerPrivacy||(t.Shopify.customerPrivacy={});t.Shopify.customerPrivacy.serverTimingSupportVerified=!0}()}const n=null===(t=performance)||void 0===t||null===(e=t.getEntriesByType)||void 0===e?void 0:e.call(t,"navigation");if(!n)return;const r=n.map(at).find(t=>t);if(r)try{sessionStorage.setItem("consentHeader",r)}catch{}return r}let it;function ot(){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=it;for(let t=n.length-1;t>=0;t--){let e=at(n[t]);if(e){r=e;break}}return it=r,r}function at(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 st(){return window}function ct(){var t,e;const n=st();return!0===(null==n||null===(t=n.Shopify)||void 0===t||null===(e=t.customerPrivacy)||void 0===e?void 0:e.backendConsentEnabled)||!0===et().isHeadless}function ut(){var t,e;const n=st();return null==n||null===(t=n.Shopify)||void 0===t||null===(e=t.customerPrivacy)||void 0===e?void 0:e.serverTimingSupportVerified}function lt(){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)||et().injectedConsent;return n?$(n):void 0}}function dt(){let t;if(t=G()?lt():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}()||lt()||new URLSearchParams(window.location.search).get("_cs")||void 0||Q("_tracking_consent")||function(){let t;if(t=ct()&&nt(ot)||nt(rt),!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:U}function l(t){return n.includes(t.replace("t","s").toUpperCase())}return{v:"3",con:{CMP:{[V]:u(V),[X]:u(X),[J]:u(J),[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 ht(t){const e=function(){try{let t=dt();if(!t)return;return t}catch{return}}();if(!e||!e.purposes)return!0;const n=e.purposes[t];return"boolean"!=typeof n||n}function ft(){return ht(Z)}const mt={},pt=/^https?:\/\/([^/]+)(\/api\/(?:unstable|2\d{3}-\d{2})\/graphql\.json(?=$|\?))?/;function gt(t,e){if(ct()){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(pt);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 mt[t]=l,l}}return mt[t]}catch{return mt[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 vt(t,e){if(!{}.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var yt=0;function wt(t){return"__private_"+yt+++"_"+t}function St(t){return Object.entries(t).map(([t,e])=>({key:t,value:{stringValue:String(e)}}))}function bt(t){if(Array.isArray(t))return{arrayValue:{values:t.map(t=>bt(t))}};switch(typeof t){case"boolean":return{boolValue:Boolean(t)};case"number":return{doubleValue:Number(t)};default:return{stringValue:String(t)}}}const Ct=function(t,e,n){const r=[0];for(let i=0;i{t.attributes={...vt(this,Lt)[Lt],...t.attributes}});const t=vt(this,_t)[_t];vt(this,_t)[_t]=[],await this.exportByKeepalive(t,(t,e)=>vt(this,Tt)[Tt].exportMetrics(this.aggregateMetrics(t),e))}async exportLogs(){const t=vt(this,Dt)[Dt];vt(this,Dt)[Dt]=[],await this.exportByKeepalive(t,(t,e)=>vt(this,Tt)[Tt].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:Ct,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:St(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:St(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:St(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={...vt(this,Lt)[Lt],...t.attributes},Object.entries(n).map(([t,e])=>({key:t,value:bt(e)})))};var n;return t.body&&(e.body={stringValue:t.body}),e})}}var xt=wt("url"),Mt=wt("serviceName"),zt=wt("logger"),At=wt("fetchFn"),Pt=wt("maxPayloadSizeBytes");class It{constructor(t,e,n){var r;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}),Object.defineProperty(this,Pt,{writable:!0,value:void 0}),vt(this,xt)[xt]=t.replace(/\/v1\/(logs|metrics|traces)\/?$/,""),vt(this,Mt)[Mt]=e,vt(this,zt)[zt]=null==n?void 0:n.logger,vt(this,At)[At]=null==n?void 0:n.fetchFn,vt(this,Pt)[Pt]=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:vt(this,Mt)[Mt]}}]},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:vt(this,Mt)[Mt]}}]},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>vt(this,Pt)[Pt])throw new Nt(`Payload size ${o} exceeds ${vt(this,Pt)[Pt]} bytes`);const a=await this.exporterFetch()(`${vt(this,xt)[xt]}${e}`,{method:"POST",keepalive:n,headers:{"Content-Type":"application/json"},body:i});if(null===(r=vt(this,zt)[zt])||void 0===r||r.log({status:a.status}),!a.ok){if(400===a.status){const t=await a.text();throw new Et(`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 Et("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 jt(`Authentication failed: ${a.status} ${401===a.status?"Unauthorized":"Forbidden"}`,{errorData:e,body:t})}throw new Et(`Server responded with ${a.status}`)}}exporterFetch(){return vt(this,At)[At]||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 Nt&&i>1))throw t;i=Math.ceil(i/2)}}}class Et extends Error{constructor(t,e){super(t),this.metadata=void 0,this.name="OpenTelemetryClientError",this.metadata=e}}class Nt extends Error{constructor(...t){super(...t),this.name="PayloadTooLargeError"}}class jt 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 kt(){return qt("_shopify_s","_s")}function Ht(t,e){var n=Ut();return Ht=function(e,r){var i=n[e-=192];if(void 0===Ht.dnVvjw){Ht.tdQudO=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[Ot(180)]))try{await this[Ot(159)][Ot(156)]()}catch(t){this[Ot(173)]&&console[Ot(165)](Ot(155)+t)}}[Ot(157)](){this[Ot(158)]&&clearTimeout(this[Ot(158)]),this[Ot(158)]=window[Ot(154)](()=>{this[Ot(172)]()[Ot(181)](()=>{})},this[Ot(166)])}}function Zt(){const t=["mtm1mti4n1PKsvjbCG","otm1otzeA0rTt28","ywjZ","ota0nJe2BxbbBhbO","mJyZn0DIAvbvsW","ntrOq2Pvr0e","nJK5odCWBhrtCLDL","nJq0odm4EwLPCKDi","mta0nZKYodbIzvjxEuq","BgvUz3rO","y2HHCKnVzgvbDa","odbQyuLVzKe","mtC4mNrXEfffua"];return(Zt=function(){return t})()}function Ft(t,e){const n=Zt();return Ft=function(e,r){let i=n[e-=441];if(void 0===Ft.KKPpnY){Ft.MBnfhL=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[Rt(562)],n=t[Rt(474)]((t,n)=>t+(n.s-e)**2,0)/(t[Rt(562)]-1),r=Math[Rt(601)](n);return{speed:e,jitter:r}}function te(t,e,n,r,i,o,a,s,c,u,l,d,h){const f=Math[Rt(496)](1e3,t),m=Math[Rt(496)](1e3,n),p=Math[Rt(496)](1e3,o),g=Math[Rt(496)](1e3,s),v=Math[Rt(496)](1e3,a),y=Math[Rt(496)](1e3,c),w=[];if(e[Rt(562)]>=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[Rt(562)]<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}=Qt(w);let L=0,_=0;if(r[Rt(562)]>1){const t=new Set(r[Rt(591)](t=>Math[Rt(497)](t.x/20)+","+Math[Rt(497)](t.y/20)))[Rt(568)];L=t>1?1:0,_=r[Rt(474)]((t,e)=>t+e[Rt(519)],0)/r[Rt(562)]}const D=i[Rt(474)]((t,e)=>(null===e[Rt(399)]||t[Rt(489)](e[Rt(399)]),t),[]),{rhythmConsistency:B,jitter:x}=function(t){if(t[Rt(562)]<2)return{rhythmConsistency:0,jitter:0};const e=t[Rt(474)]((t,e)=>t+e,0)/t[Rt(562)],n=t[Rt(474)]((t,n)=>(t??0)+((n??0)-e)**2,0)/t[Rt(562)],r=Math[Rt(601)](n);return{rhythmConsistency:0===r?1:Math[Rt(404)](0,1-r/e),jitter:r/e}}(D),M=D[Rt(562)]>0?D[Rt(474)]((t,e)=>t+e,0)/D[Rt(562)]:0,z=[];if(u[Rt(562)]>=3)for(let t=1;tu[t-1].p?Rt(435):"up";z[Rt(489)]({s:r,dir:i,t:u[t].t})}const{speed:A,jitter:P}=Qt(z),I=function(t){if(t[Rt(562)]<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:j}=Qt(l),q=function(t){if(t[Rt(562)]<2)return 0;let e=0;for(let n=1;n=500&&e++;return e}(l)),H=Math[Rt(497)]((h-d)/1e3);return{ma:f,ca:m,ka:p,sa:g,ta:y,kba:v,t:Math[Rt(496)](3600,H),nm:S?1:0,ms:ne(b),mj:ne(T),msp:ne(C),vc:L,cp:ne(_),rc:ne(B),kj:ne(x),ki:ne(M),ss:ne(A),sj:ne(P),ssm:ne(I),sp:E,ts:ne(N),tj:ne(j),tp:k,tsm:ne(q)}}function ee(t,e){let n=0;return(...r)=>{const i=typeof performance!==Rt(495)?performance[Rt(505)]():Date[Rt(505)]();i-n>=e&&(n=i,t(...r))}}function ne(t){return Math[Rt(500)](100*t)/100}function re(t){return{wd:t[Rt(565)],ua:t[Rt(452)],cf:t[Rt(415)],be:t[Rt(450)],nm:t[Rt(501)],nc:t[Rt(566)],ka:t[Rt(480)],sa:t[Rt(579)],ta:t[Rt(437)],pt:t[Rt(430)],mp:t[Rt(604)],sd:t[Rt(533)]}}class ie{[Rt(413)];[Rt(478)];[Rt(420)];[Rt(484)];constructor(t,e,n=$t()){const r={shopId:0,updateInterval:5e3,debug:!1,beaconEndpoint:Yt,beaconRetryLimit:3,maxSilenceMs:18e5,exportWithFetch:!1,logsSampleRate:1};this[Rt(413)]={...r,...e},this[Rt(420)]=n,this[Rt(484)]=t,this[Rt(478)]={startTime:Date[Rt(505)](),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[Rt(416)]();this[Rt(478)][Rt(485)]={lastSignals:i,lastProcessTime:0,lastSuccessfulSendTime:0,retryCount:0}}[Rt(405)](){(async()=>{await this[Rt(550)](),await this[Rt(479)](!0),this[Rt(420)][Rt(549)][Rt(494)](()=>{this[Rt(486)]()},100);const t=()=>{const e=Date[Rt(505)](),n=e-(this[Rt(478)][Rt(569)]||e),r=Math[Rt(404)](0,this[Rt(413)][Rt(440)]-n),i=()=>{this[Rt(420)][Rt(549)][Rt(548)]?this[Rt(478)][Rt(446)]=this[Rt(420)][Rt(549)][Rt(548)](()=>{this[Rt(479)]()[Rt(526)](()=>this[Rt(484)][Rt(476)]())[Rt(526)](()=>{t()})},{timeout:2e3}):this[Rt(479)]()[Rt(526)](()=>this[Rt(484)][Rt(476)]())[Rt(526)](()=>{t()})};r>0?this[Rt(420)][Rt(549)][Rt(494)](i,r):i()};t()})()[Rt(441)](t=>{this[Rt(484)][Rt(471)](t,Rt(405))})}[Rt(411)](){this[Rt(478)][Rt(577)]&&this[Rt(420)][Rt(549)][Rt(429)](this[Rt(478)][Rt(577)]),this[Rt(478)][Rt(446)]&&this[Rt(420)][Rt(549)][Rt(594)]&&this[Rt(420)][Rt(549)][Rt(594)](this[Rt(478)][Rt(446)]),this[Rt(478)][Rt(593)]&&(this[Rt(420)][Rt(596)][Rt(483)](Rt(588),this[Rt(478)][Rt(593)][Rt(588)]),this[Rt(420)][Rt(596)][Rt(483)](Rt(605),this[Rt(478)][Rt(593)][Rt(605)]),this[Rt(420)][Rt(596)][Rt(483)](Rt(598),this[Rt(478)][Rt(593)][Rt(598)]),this[Rt(420)][Rt(596)][Rt(483)](Rt(583),this[Rt(478)][Rt(593)][Rt(583)]),Rt(454)in window&&this[Rt(478)][Rt(593)][Rt(412)]&&this[Rt(478)][Rt(593)][Rt(563)]&&this[Rt(478)][Rt(593)][Rt(606)]&&(this[Rt(420)][Rt(596)][Rt(483)](Rt(412),this[Rt(478)][Rt(593)][Rt(412)]),this[Rt(420)][Rt(596)][Rt(483)](Rt(563),this[Rt(478)][Rt(593)][Rt(563)]),this[Rt(420)][Rt(596)][Rt(483)](Rt(606),this[Rt(478)][Rt(593)][Rt(606)]))),this[Rt(478)][Rt(485)]?.[Rt(517)]&&this[Rt(420)][Rt(549)][Rt(429)](this[Rt(478)][Rt(485)][Rt(517)]),this[Rt(478)][Rt(485)]=void 0}[Rt(511)](){return this[Rt(478)][Rt(485)]?.[Rt(447)]?re(this[Rt(478)][Rt(485)][Rt(447)]):null}[Rt(550)](){const t={wd:this[Rt(420)][Rt(558)][Rt(401)]?1:0,ua:/bot|crawler|spider|scraper/i[Rt(610)](this[Rt(420)][Rt(558)][Rt(463)])?0:1,cv:this[Rt(418)]()?1:0,br:this[Rt(582)]()?1:0};return this[Rt(478)][Rt(426)]=t,this[Rt(478)][Rt(470)]=!0,t}[Rt(418)](){try{const t=this[Rt(420)][Rt(596)][Rt(465)](Rt(518));t[Rt(592)]=200,t[Rt(552)]=50;const e=t[Rt(570)]("2d");if(null===e)return!1;const n=e[Rt(581)](0,0,200,0);n[Rt(559)](0,Rt(472)),n[Rt(559)](1,Rt(467)),e[Rt(445)]=n,e[Rt(540)](0,0,200,50),e[Rt(445)]=Rt(589),e[Rt(600)]=Rt(532),e[Rt(502)](Rt(514),33,30);const r=t[Rt(603)]();return Boolean(r&&r[Rt(562)]>50)}catch(t){return!1}}[Rt(582)](){let t=0;this[Rt(420)][Rt(558)][Rt(403)]&&this[Rt(420)][Rt(558)][Rt(403)][Rt(562)]>0&&t++,(this[Rt(420)][Rt(558)][Rt(580)]&&this[Rt(420)][Rt(558)][Rt(580)][Rt(562)]>0||this[Rt(420)][Rt(558)][Rt(463)][Rt(444)](Rt(602)))&&t++,this[Rt(528)]()&&t++,typeof this[Rt(420)][Rt(549)][Rt(438)]!==Rt(495)&&t++;try{const e=(new Date)[Rt(461)]();e>-840&&e<840&&t++}catch(t){}return t>=3}[Rt(528)](){const t=this[Rt(420)][Rt(549)][Rt(407)]||this[Rt(420)][Rt(596)][Rt(536)][Rt(537)],e=this[Rt(420)][Rt(549)][Rt(506)]||this[Rt(420)][Rt(596)][Rt(536)][Rt(572)];if(!t||!e)return!1;if(t<=2||e<=2)return!1;const n=t/e;return n>=.2&&n<=5}[Rt(424)](t,e){return n=>{try{t(n)}catch(t){this[Rt(484)][Rt(471)](t,Rt(456)+e)}}}[Rt(486)](){const t=ee(this[Rt(424)](t=>{this[Rt(478)][Rt(584)]++,this[Rt(478)][Rt(573)][Rt(562)]>=10&&this[Rt(478)][Rt(573)][Rt(443)](),this[Rt(478)][Rt(573)][Rt(489)]({x:t[Rt(482)],y:t[Rt(560)],t:t[Rt(473)]})},Rt(588)),100),e=this[Rt(424)](t=>{this[Rt(478)][Rt(499)]++,requestAnimationFrame(()=>setTimeout(()=>{this[Rt(478)][Rt(567)][Rt(562)]>=5&&this[Rt(478)][Rt(567)][Rt(443)](),this[Rt(478)][Rt(567)][Rt(489)]({x:t[Rt(482)],y:t[Rt(560)],t:t[Rt(473)],pre:this[Rt(523)](t)})},0))},Rt(605)),n=this[Rt(424)](t=>{this[Rt(478)][Rt(498)]++;const e=t[Rt(539)];if([Rt(402),Rt(534),Rt(433),Rt(427)][Rt(444)](e))return;const n=this[Rt(478)][Rt(414)][this[Rt(478)][Rt(414)][Rt(562)]-1],r=t[Rt(473)],i=n?r-n.t:null;this[Rt(478)][Rt(414)][Rt(562)]>=10&&this[Rt(478)][Rt(414)][Rt(443)](),this[Rt(478)][Rt(414)][Rt(489)]({_0x211fc6:e,t:r,int:i}),null!==i&&i<100?(this[Rt(478)][Rt(423)][Rt(489)](i),this[Rt(478)][Rt(423)][Rt(562)]>=5&&(this[Rt(478)][Rt(513)]++,this[Rt(478)][Rt(423)]=[])):this[Rt(478)][Rt(423)]=[]},Rt(598)),r=ee(this[Rt(424)](t=>{this[Rt(478)][Rt(421)]++;const e=t[Rt(473)],n=window[Rt(464)];this[Rt(478)][Rt(585)][Rt(562)]>=10&&this[Rt(478)][Rt(585)][Rt(443)](),this[Rt(478)][Rt(585)][Rt(489)]({p:n,t:e})},Rt(583)),200),i=this[Rt(424)](t=>{t[Rt(408)]&&0!==t[Rt(408)][Rt(562)]&&(this[Rt(478)][Rt(557)]++,this[Rt(478)][Rt(481)][Rt(562)]>=10&&this[Rt(478)][Rt(481)][Rt(443)](),this[Rt(478)][Rt(442)]={x:t[Rt(408)][0][Rt(482)],y:t[Rt(408)][0][Rt(560)],t:t[Rt(473)],typ:Rt(607),s:0,d:0})},Rt(412)),o=ee(this[Rt(424)](t=>{if(!t[Rt(408)]||0===t[Rt(408)][Rt(562)])return;const e={x:t[Rt(408)][0][Rt(482)],y:t[Rt(408)][0][Rt(560)]};if(this[Rt(478)][Rt(442)]){const n=this[Rt(459)](this[Rt(478)][Rt(442)],e);this[Rt(478)][Rt(481)][Rt(562)]>=10&&this[Rt(478)][Rt(481)][Rt(443)]();const r={x:t[Rt(408)][0][Rt(482)],y:t[Rt(408)][0][Rt(560)],t:t[Rt(473)],typ:Rt(477),d:n,s:n/(t[Rt(473)]-this[Rt(478)][Rt(442)].t)};this[Rt(478)][Rt(481)][Rt(489)](r),this[Rt(478)][Rt(442)]=r}else{const e={x:t[Rt(408)][0][Rt(482)],y:t[Rt(408)][0][Rt(560)],t:t[Rt(473)],typ:Rt(477),s:0,d:0};this[Rt(478)][Rt(442)]=e}},Rt(563)),200),a=this[Rt(424)](t=>{this[Rt(478)][Rt(442)]=null},Rt(606));this[Rt(420)][Rt(596)][Rt(410)](Rt(588),t,{passive:!0}),this[Rt(420)][Rt(596)][Rt(410)](Rt(605),e,{passive:!0}),this[Rt(420)][Rt(596)][Rt(410)](Rt(598),n,{passive:!0}),this[Rt(420)][Rt(596)][Rt(410)](Rt(583),r,{passive:!0}),Rt(454)in window&&(this[Rt(420)][Rt(596)][Rt(410)](Rt(412),i,{passive:!0}),this[Rt(420)][Rt(596)][Rt(410)](Rt(563),o,{passive:!0}),this[Rt(420)][Rt(596)][Rt(410)](Rt(606),a,{passive:!0})),this[Rt(478)][Rt(593)]={mousemove:t,click:e,keydown:n,scroll:r,touchstart:i,touchmove:o,touchend:a}}async[Rt(479)](t=!1){this[Rt(451)](t),await this[Rt(504)](),this[Rt(478)][Rt(569)]=Date[Rt(505)]()}[Rt(451)](t=!1){const e=Date[Rt(505)]();let n=Math[Rt(497)]((e-this[Rt(478)][Rt(449)])/1e3);null!==this[Rt(478)][Rt(569)]&&(n=Math[Rt(497)]((e-this[Rt(478)][Rt(569)])/1e3)),this[Rt(478)][Rt(462)]?(this[Rt(478)][Rt(462)][Rt(492)]+=t?1:0,this[Rt(478)][Rt(462)][Rt(527)]+=n):this[Rt(478)][Rt(462)]={pageCount:1,sessionStart:this[Rt(478)][Rt(449)],duration:0}}[Rt(400)](t,e=!1){this[Rt(484)][Rt(543)](Rt(595)+t,e)}[Rt(416)](){try{if(this[Rt(420)][Rt(549)][Rt(455)]){const e=this[Rt(420)][Rt(549)][Rt(455)][Rt(515)](Gt);if(e){const n=JSON[Rt(547)](e);let r;return Rt(565)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}[Rt(521)](t){try{this[Rt(420)][Rt(549)][Rt(455)]&&this[Rt(420)][Rt(549)][Rt(455)][Rt(493)](Gt,JSON[Rt(541)](re(t)))}catch(t){}}[Rt(523)](t){const e=t[Rt(469)];if(!(e&&e instanceof Element&&e[Rt(457)]))return 0;const n=e[Rt(457)]();if(!n[Rt(592)]||!n[Rt(552)])return 0;const r=n[Rt(608)]+n[Rt(592)]/2,i=n[Rt(571)]+n[Rt(552)]/2,o=this[Rt(459)]({x:t[Rt(482)],y:t[Rt(560)]},{x:r,y:i}),a=Math[Rt(601)](n[Rt(592)]**2+n[Rt(552)]**2)/2;return a>0?Math[Rt(404)](0,1-o/a):0}[Rt(459)](t,e){return Math[Rt(601)]((e.x-t.x)**2+(e.y-t.y)**2)}[Rt(609)](t){if(t[Rt(487)](Rt(490))||t[Rt(487)](Rt(406)))return t;return""+(this[Rt(420)][Rt(549)][Rt(422)][Rt(425)]||this[Rt(420)][Rt(549)][Rt(422)][Rt(587)]+"//"+this[Rt(420)][Rt(549)][Rt(422)][Rt(561)])+t}async[Rt(576)](t,e){if(!this[Rt(478)][Rt(485)])return;if(null===this[Rt(413)][Rt(508)])return void(this[Rt(478)][Rt(485)][Rt(575)]=Date[Rt(505)]());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,re(t),e),r=JSON[Rt(541)](n),i=this[Rt(609)](this[Rt(413)][Rt(508)]);if(this[Rt(420)][Rt(558)][Rt(576)]&&!this[Rt(413)][Rt(554)])try{const t=new Blob([r],{type:Rt(531)});if(this[Rt(420)][Rt(558)][Rt(576)](i,t))return this[Rt(478)][Rt(485)][Rt(417)]=0,void(this[Rt(478)][Rt(485)][Rt(575)]=Date[Rt(505)]())}catch(t){}try{const t=await fetch(i,{method:Rt(574),headers:{"Content-Type":Rt(531)},body:r,credentials:Rt(590),keepalive:!0});if(!t.ok)throw new Error(Rt(458)+t[Rt(507)]);this[Rt(478)][Rt(485)][Rt(417)]=0,this[Rt(478)][Rt(485)][Rt(575)]=Date[Rt(505)]()}catch(n){this[Rt(436)](t,e)}}[Rt(436)](t,e){if(!this[Rt(478)][Rt(485)]||this[Rt(478)][Rt(485)][Rt(417)]>=this[Rt(413)][Rt(509)])return;const n=Math[Rt(496)](1e3*2**this[Rt(478)][Rt(485)][Rt(417)],3e4);this[Rt(478)][Rt(485)][Rt(417)]++,this[Rt(478)][Rt(485)][Rt(517)]=this[Rt(420)][Rt(549)][Rt(494)](()=>{this[Rt(478)][Rt(485)]&&this[Rt(576)](t,e)},n)}async[Rt(504)](){if(!this[Rt(478)][Rt(485)])return;const t=te(this[Rt(478)][Rt(584)],this[Rt(478)][Rt(573)],this[Rt(478)][Rt(499)],this[Rt(478)][Rt(567)],this[Rt(478)][Rt(414)],this[Rt(478)][Rt(498)],this[Rt(478)][Rt(513)],this[Rt(478)][Rt(421)],this[Rt(478)][Rt(557)],this[Rt(478)][Rt(585)],this[Rt(478)][Rt(481)],this[Rt(478)][Rt(449)],Date[Rt(505)]()),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[Rt(501)]=!0),e.ca>0&&1===e.vc&&(i[Rt(566)]=!0),e.ka>0&&(i[Rt(480)]=!0),e.sa>0&&(i[Rt(579)]=!0),e.ta>0&&(i[Rt(437)]=!0),e.t>30&&(i[Rt(430)]=!0),n&&(n[Rt(492)]>1&&(i[Rt(604)]=!0),n[Rt(527)]>60&&(i[Rt(533)]=!0)),r){const t=Object[Rt(512)](i);for(const e of t)i[e]=i[e]||r[e]}return i}(this[Rt(478)][Rt(426)],t,this[Rt(478)][Rt(462)],this[Rt(478)][Rt(485)][Rt(447)]),n=function(t,e){if(!e)return!0;const n=Object[Rt(512)](t);for(const r of n)if(t[r]!==e[r])return!0;return!1}(e,this[Rt(478)][Rt(485)][Rt(447)]),r=Date[Rt(505)]()-this[Rt(478)][Rt(485)][Rt(575)],i=r>=this[Rt(413)][Rt(529)];if(n||i){if(Date[Rt(505)]()-this[Rt(478)][Rt(485)][Rt(409)]<100)return void this[Rt(400)](Rt(538),!0);if(i&&!n&&this[Rt(400)](Rt(432)+Math[Rt(500)](r/1e3)+Rt(542),!0),n&&this[Rt(413)][Rt(503)]){if(this[Rt(478)][Rt(485)][Rt(447)]){Object[Rt(512)](e)[Rt(439)](t=>{this[Rt(478)][Rt(485)][Rt(447)][t],e[t]})}else this[Rt(400)](Rt(586));this[Rt(478)][Rt(462)]}if(this[Rt(478)][Rt(485)][Rt(447)]=(o=e,{...o}),this[Rt(478)][Rt(485)][Rt(409)]=Date[Rt(505)](),this[Rt(521)](e),this[Rt(413)][Rt(522)]&&n)try{this[Rt(413)][Rt(522)](re(e))}catch(t){this[Rt(484)][Rt(471)](t,Rt(466))}const t=Rt(n?551:510);await this[Rt(576)](e,t)}else this[Rt(413)][Rt(503)];var o}}const oe=(t,e)=>({libVersion:"2.3.0",shopId:e||"",hostname:t[Rt(549)]?.[Rt(422)]?.[Rt(516)]||"",url:t[Rt(549)]?.[Rt(422)]?.[Rt(428)]||"",referrer:t[Rt(596)]?.[Rt(434)]||"",baseURI:t[Rt(596)]?.[Rt(597)]||"",sessionToken:kt()||"",uniqueToken:qt("_shopify_y","_y")||""}),ae=(t,e=$t(),n=new It(Vt,Xt))=>{const r=new Bt({exporter:n,attributes:oe(e,t?.[Rt(448)])}),i=kt(),o=i?function(t){let e=0;for(let n=0,r=t[Ft(453)];ns[Rt(405)]()):s[Rt(405)](),s};class se{quietWindowStartCandidates=[];longAnimationFrameObserver=null;longAnimationFrames=[];constructor(){this.initializeLongAnimationFrameObserver()}getQuietWindowStartCandidates(){return[...this.quietWindowStartCandidates].sort((t,e)=>t.startTime-e.startTime)}getLongAnimationFrames(){if(!le()){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(le())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 ce=null;function ue(t,e=0){if(null===t||!le()&&!Boolean(window.ShopifyAnalytics?.performance?.getLongAnimationFrames))return de(),null;const n=(ce?ce.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 de(),t;const i=(ce?ce.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 de(),o}function le(){return PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}function de(){ce&&(ce.destroy(),ce=null)}function he(){return PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}function fe(){return performance.getEntriesByType("long-animation-frame")}function me(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 pe=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"}),ge=new RegExp(`^${window.location.origin}/((?:(?:[a-z]{2,3}|zh-hans|zh-hant)(?:-[a-zA-Z0-9]+)/)?cart/(add|change|update|clear))`),ve=new RegExp("cart-performance:|add:|change:|clear:|note_update:");var ye;function we({monorailRegion:t,schema:e,rawData:n}){const r=Date.now(),i={schema_id:e,payload:e===ye.OnUnload?Se(n):be(n),metadata:{event_created_at_ms:r,event_sent_at_ms:r}},o=pe[t||""],a=JSON.stringify(i);if(!o)return void console.debug("📡 Monorail: ",JSON.stringify(i,null,2));if("function"==typeof window.fetchLater)try{return void window.fetchLater(o,{method:"POST",body:a,headers:{"Content-Type":"text/plain"},credentials:"include"})}catch(t){}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 Se(t){const e=Ce(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 be(t){const e=Ce(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 Ce(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 Te(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"}(ye||(ye={}));const Le="xxxx-4xxx-xxxx-xxxxxxxxxxxx";function _e(){let t="";try{const e=window.crypto,n=new Uint16Array(31);e.getRandomValues(n);let r=0;t=Le.replace(/[x]/g,t=>{const e=n[r]%16;return r++,("x"===t?e:3&e|8).toString(16)}).toUpperCase()}catch(e){t=Le.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,Be=!1,xe=null,Me=null,ze=!1;class Ae{info;config;constructor(t){this.config=t,this.info={perfKitInit:Date.now(),perfKitVersion:"3.6.1",url:window.location.href,referrer:document.referrer||void 0,microSessionId:_e(),microSessionCount:0,get sessionToken(){return gt("_shopify_s","_s")},get uniqueToken(){return gt("_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:Te(n.domInteractive,r),domComplete:Te(n.domComplete,r),domContentLoadedEventStart:Te(n.domContentLoadedEventStart,r),domContentLoadedEventEnd:Te(n.domContentLoadedEventEnd,r),activationStart:Math.round(r),redirectCount:n.redirectCount,initiatorType:n.initiatorType,transferSize:n.transferSize}}(this.info.perfKitInit)}}function Pe(t){xe=new Ae(t),Me=null,ce||(ce=new se),t.spaMode&&(window.PerfKit={navigate:()=>{De?De=!1:Be||(Ee(),xe=new Ae(t),Be=!0)},setPageType:e=>{t.storefrontData.pageType=e},setConsent:t=>{Me=t}}),t.shs&&!t.spaMode&&ae({debug:!1,shopId:t.storefrontData.shopId,exportWithFetch:t.shsExportWithFetch||!0,logsSampleRate:t.shsLogsSampleRate,...t.shsBeaconEndpoint&&{beaconEndpoint:t.shsBeaconEndpoint}})}const Ie=new Set;function Ee(){if(null!==xe){if(!qe()&&Ne()&&Ie.size>0){let t={};for(const e of Ie)t={...t,...e};const e=t.firstContentfulPaint??null,n=ue(e,performance.getEntriesByType("navigation")[0]?.activationStart||0);null!==e&&null!==n&&(t.quietWindowStart=Math.round(n));const r=function(){if(!he())return null;const t=fe();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(!he())return null;const t=fe();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(),xe.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))})}(xe.config.resourceTimingSamplingRate),a=performance.getEntriesByType("resource").filter(t=>ge.test(t.name)),s=performance.getEntriesByType("measure").filter(t=>ve.test(t.name)).map(t=>{const e=t.toJSON();return e.name.startsWith("cart-performance:")||(e.name=`cart-performance:${e.name}`),e});we({monorailRegion:xe.config.monorailRegion,schema:ye.OnUnload,rawData:{...xe.info,...xe.config.storefrontData,...xe.performanceMetrics,...t,resourceTiming:o,cartAjaxResourceTimings:a,cartPerformanceMetrics:s,paintTimingHidden:ze}})}}else console.debug("⛔️ Shopify/perf-kit is not initialized")}function Ne(){return null!==Me?Me:ft()}((e,r={})=>{const o=a(r=Object.assign({},r),t),s=new WeakMap;o.t=t=>{if(t?.sources?.length){const e=_(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,L,n.reportAllChanges),r.onHidden(()=>{c(h.takeRecords()),i(!0)}),u(()=>{s.o=0,o=f("CLS",0),i=l(e,o,L,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=_(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),j),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,j),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,q,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),I);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,I),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===xe)return void console.debug("⛔️ Shopify/perf-kit is not initialized");if(function(){const t=navigator.userAgent;if(!t.includes("Safari")||t.includes("Chrome"))return!1;const e=/Version\/(\d+)(?:\.(\d+))?/.exec(t);if(null===e)return!0;const n=Number(e[1]),r=Number(e[2]||0);return n<26||26===n&&r<4}())return;if(qe())return;if(!Ne())return;xe.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)}:{};we({monorailRegion:xe.config.monorailRegion,schema:ye.OnInteraction,rawData:{...xe.info,...xe.config.storefrontData,...xe.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);H(()=>{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",()=>{ze="hidden"===document.visibilityState}),addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&Ee()});const je=/bot|crawl|headless|curl|wget|python|spider|libwww-pearl|newrelic|datadog|sitebulb|site24x7/i;function qe(){return!!je.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{Pe(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:me(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)}}()}();













