vendor: 6,606 bytes, line 1
1var it,S,zo,Yo,ae,xr,Xo,Jo,un,St,Ye,Qo,Xn,Rn,$n,Zo,kt={},Ot=[],Fs=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,st=Array.isArray;function X(e,t){for(var n in t)e[n]=t[n];return e}function Jn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function re(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?it.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return Xe(e,s,r,o,null)}function Xe(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++zo,__i:-1,__u:0};return o==null&&S.vnode!=null&&S.vnode(i),i}function Gd(){return{current:null}}function U(e){return e.children}function q(e,t){this.props=e,this.context=t}function ke(e,t){if(t==null)return e.__?ke(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?ke(e):null}function Hs(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],i=X({},t);i.__v=t.__v+1,S.vnode&&S.vnode(i),Qn(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??ke(t),!!(32&t.__u),o),i.__v=t.__v,i.__.__k[i.__i]=i,oi(r,i,o),t.__e=t.__=null,i.__e!=n&&ei(i)}}function ei(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),ei(e)}function kn(e){(!e.__d&&(e.__d=!0)&&ae.push(e)&&!It.__r++||xr!=S.debounceRendering)&&((xr=S.debounceRendering)||Xo)(It)}function It(){try{for(var e,t=1;ae.length;)ae.length>t&&ae.sort(Jo),e=ae.shift(),t=ae.length,Hs(e)}finally{ae.length=It.__r=0}}function ti(e,t,n,r,o,i,s,a,u,c,l){var h,f,d,v,_,y,p,m=r&&r.__k||Ot,g=t.length;for(u=js(n,t,m,u,g),h=0;h<g;h++)(d=n.__k[h])!=null&&(f=d.__i!=-1&&m[d.__i]||kt,d.__i=h,y=Qn(e,d,f,o,i,s,a,u,c,l),v=d.__e,d.ref&&f.ref!=d.ref&&(f.ref&&Zn(f.ref,null,d),l.push(d.ref,d.__c||v,d)),_==null&&v!=null&&(_=v),(p=!!(4&d.__u))||f.__k===d.__k?(u=ni(d,u,e,p),p&&f.__e&&(f.__e=null)):typeof d.type=="function"&&y!==void 0?u=y:v&&(u=v.nextSibling),d.__u&=-7);return n.__e=_,u}function js(e,t,n,r,o){var i,s,a,u,c,l=n.length,h=l,f=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[i]=Xe(null,s,null,null,null):st(s)?s=e.__k[i]=Xe(U,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[i]=Xe(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,u=i+f,s.__=e,s.__b=e.__b+1,a=null,(c=s.__i=Bs(s,n,u,h))!=-1&&(h--,(a=n[c])&&(a.__u|=2)),a==null||a.__v==null?(c==-1&&(o>l?f--:o<l&&f++),typeof s.type!="function"&&(s.__u|=4)):c!=u&&(c==u-1?f--:c==u+1?f++:(c>u?f--:f++,s.__u|=4))):e.__k[i]=null;if(h)for(i=0;i<l;i++)(a=n[i])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=ke(a)),si(a,a));return r}function ni(e,t,n,r){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=ni(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=ke(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ee(e,t){return t=t||[],e==null||typeof e=="boolean"||(st(e)?e.some(function(n){ee(n,t)}):t.push(e)),t}function Bs(e,t,n,r){var o,i,s,a=e.key,u=e.type,c=t[n],l=c!=null&&(2&c.__u)==0;if(c===null&&a==null||l&&a==c.key&&u==c.type)return n;if(r>(l?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((c=t[s=o>=0?o--:i++])!=null&&(2&c.__u)==0&&a==c.key&&u==c.type)return s}return-1}function Lr(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Fs.test(t)?n:n+"px"}function ht(e,t,n,r,o){var i,s;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Lr(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Lr(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Qo,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n[Ye]=r[Ye]:(n[Ye]=Xn,e.addEventListener(t,i?$n:Rn,i)):e.removeEventListener(t,i?$n:Rn,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Dr(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[St]==null)t[St]=Xn++;else if(t[St]<n[Ye])return;return n(S.event?S.event(t):t)}}}function Qn(e,t,n,r,o,i,s,a,u,c){var l,h,f,d,v,_,y,p,m,g,E,A,w,T,k,V,x=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),i=[a=t.__e=n.__e]),(l=S.__b)&&l(t);e:if(typeof x=="function"){h=s.length;try{if(m=t.props,g=x.prototype&&x.prototype.render,E=(l=x.contextType)&&r[l.__c],A=l?E?E.props.value:l.__:r,n.__c?p=(f=t.__c=n.__c).__=f.__E:(g?t.__c=f=new x(m,A):(t.__c=f=new q(m,A),f.constructor=x,f.render=Ks),E&&E.sub(f),f.state||(f.state={}),f.__n=r,d=f.__d=!0,f.__h=[],f._sb=[]),g&&f.__s==null&&(f.__s=f.state),g&&x.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=X({},f.__s)),X(f.__s,x.getDerivedStateFromProps(m,f.__s))),v=f.props,_=f.state,f.__v=t,d)g&&x.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),g&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(g&&x.getDerivedStateFromProps==null&&m!==v&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(m,A),t.__v==n.__v||!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(m,f.__s,A)===!1){t.__v!=n.__v&&(f.props=m,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(W){W&&(W.__=t)}),Ot.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(m,f.__s,A),g&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(v,_,y)})}if(f.context=A,f.props=m,f.__P=e,f.__e=!1,w=S.__r,T=0,g)f.state=f.__s,f.__d=!1,w&&w(t),l=f.render(f.props,f.state,f.context),Ot.push.apply(f.__h,f._sb),f._sb=[];else do f.__d=!1,w&&w(t),l=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++T<25);f.state=f.__s,f.getChildContext!=null&&(r=X(X({},r),f.getChildContext())),g&&!d&&f.getSnapshotBeforeUpdate!=null&&(y=f.getSnapshotBeforeUpdate(v,_)),k=l!=null&&l.type===U&&l.key==null?ii(l.props.children):l,a=ti(e,st(k)?k:[k],t,n,r,o,i,s,a,u,c),f.base
vendor: 4,836 bytes, line 1
1=t.__e,t.__u&=-161,f.__h.length&&s.push(f),p&&(f.__E=f.__=null)}catch(W){if(s.length=h,t.__v=null,u||i!=null){if(W.then){for(t.__u|=u?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i!=null&&(i[i.indexOf(a)]=null),t.__e=a}else if(i!=null)for(V=i.length;V--;)Jn(i[V])}else t.__e=n.__e;t.__k==null&&(t.__k=n.__k||[]),W.then||ri(t),S.__e(W,t,n)}}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=Gs(n.__e,t,n,r,o,i,s,u,c);return(l=S.diffed)&&l(t),128&t.__u?void 0:a}function ri(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(ri))}function oi(e,t,n){for(var r=0;r<n.length;r++)Zn(n[r],n[++r],n[++r]);S.__c&&S.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){S.__e(i,o.__v)}})}function ii(e){return typeof e!="object"||e==null||e.__b>0?e:st(e)?e.map(ii):e.constructor!==void 0?null:X({},e)}function Gs(e,t,n,r,o,i,s,a,u){var c,l,h,f,d,v,_,y=n.props||kt,p=t.props,m=t.type;if(m=="svg"?o="http://www.w3.org/2000/svg":m=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((d=i[c])&&"setAttribute"in d==!!m&&(m?d.localName==m:d.nodeType==3)){e=d,i[c]=null;break}}if(e==null){if(m==null)return document.createTextNode(p);e=document.createElementNS(o,m,p.is&&p),a&&(S.__m&&S.__m(t,i),a=!1),i=null}if(m==null)y===p||a&&e.data==p||(e.data=p);else{if(i=m=="textarea"&&p.defaultValue!=null?null:i&&it.call(e.childNodes),!a&&i!=null)for(y={},c=0;c<e.attributes.length;c++)y[(d=e.attributes[c]).name]=d.value;for(c in y)d=y[c],c=="dangerouslySetInnerHTML"?h=d:c=="children"||c in p||c=="value"&&"defaultValue"in p||c=="checked"&&"defaultChecked"in p||ht(e,c,null,d,o);for(c in p)d=p[c],c=="children"?f=d:c=="dangerouslySetInnerHTML"?l=d:c=="value"?v=d:c=="checked"?_=d:a&&typeof d!="function"||y[c]===d||ht(e,c,d,y[c],o);if(l)a||h&&(l.__html==h.__html||l.__html==e.innerHTML)||(e.innerHTML=l.__html),t.__k=[];else if(h&&(e.innerHTML=""),ti(t.type=="template"?e.content:e,st(f)?f:[f],t,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&ke(n,0),a,u),i!=null)for(c=i.length;c--;)Jn(i[c]);a&&m!="textarea"||(c="value",m=="progress"&&v==null?e.removeAttribute("value"):v!=null&&(v!==e[c]||m=="progress"&&!v||m=="option"&&v!=y[c])&&ht(e,c,v,y[c],o),c="checked",_!=null&&_!=e[c]&&ht(e,c,_,y[c],o))}return e}function Zn(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){S.__e(o,n)}}function si(e,t,n){var r,o;if(S.unmount&&S.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Zn(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){S.__e(i,t)}r.base=r.__P=r.__n=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&si(r[o],t,n||typeof e.type!="function");n||Jn(e.__e),e.__c=e.__=e.__e=void 0}function Ks(e,t,n){return this.constructor(e,n)}function Mt(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),S.__&&S.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Qn(t,e=(!r&&n||t).__k=re(U,null,[e]),o||kt,kt,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?it.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),oi(i,e,s),e.props.children=null}function qs(e,t){Mt(e,t,qs)}function Vs(e,t,n){var r,o,i,s,a=X({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!=null?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?it.call(arguments,2):n),Xe(e.type,a,r||e.key,o||e.ref,null)}function er(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(s){s.__e=!0,kn(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),n.children}return t.__c="__cC"+Zo++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}it=Ot.slice,S={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},zo=0,Yo=function(e){return e!=null&&e.constructor===void 0},q.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=X({},this.state),typeof e=="function"&&(e=e(X({},n),this.props)),e&&X(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),kn(this))},q.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),kn(this))},q.prototype.render=U,ae=[],Xo=typeof Promise=="function"?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,Jo=function(e,t){return e.__v.__b-t.__v.__b},It.__r=0,un=Math.random().toString(8),St="__d"+un,Ye="__a"+un,Qo=/(PointerCapture)$|Capture$/i,Xn=0,Rn=Dr(!1),$n=Dr(!0),Zo=0;class Ae extends TypeError{constructor(t){super(t),this.name="ConsentValidationError",Object.setPrototypeOf(this,Ae.prototype)}}const j={TRACKING_ACCEPTED:"trackingConsentAccepted",TRACKING_DECLINED:"trackingConsentDeclined",MARKETING_ACCEPTED:"firstPartyMarketingConsentAccepted",SALE_OF_DATA_ACCEPTED:"thirdPartyMarketingConsentAccepted",ANALYTICS_ACCEPTED:"analyticsConsentAccepted",PREFERENCES_ACCEPTED:"preferencesConsentAccepted",MARKETING_DECLINED:"firstPartyMarketingConsentDeclined",SALE_OF_DATA_DECLINED:"thirdPartyMarketingConsentDeclined",ANALYTICS_DECLINED:"analyticsConsentDeclined",PREFERENCES_DECLINED:"preferencesConsentDeclined",CONSENT_COLLECTED:"visitorConsentCollected"},Ws="2.1",zs="3",K={ACCEPTED:"yes",DECLINED:"no",NO_INTERACTION:"no_interaction",NO_VALUE:""},D={NO_VALUE:"",ACCEPTED:"1",DECLINED:"0"},P={PREFERENCES:"p",ANALYTICS:"a",MARKETING:"m",SALE_OF_DATA:"t"},O={MARKETING:"m",ANALYTICS:"a",PREFERENCES:"p",SALE_OF_DATA:"s"},Z={MARKETING:"marketing",ANALYTICS:"analytics",PREFERENCES:"preferences",SALE_OF_DATA:"sale_of_data",EMAIL:"email"},se={HEADLESS_STOREFRONT:"headlessStorefront",ROOT_DOMAIN:"rootDomain",CHECKOUT_ROOT_DOMAIN:"checkoutRootDomain",STOREFRONT_ROOT_DOMAIN:"storefrontRootDomain",STOREFRONT_ACCESS_TOKEN:"storefrontAccessToken",IS_EXTENSION_TOKEN:"isExtensionToken",METAFIELDS:"metafields",CUSTOMER_ACCOUNT_REQUEST_INFO:"customerAccountRequestInfo"},L=()=>typeof window>"u",be=()=>typeof __CtaTestEnv__>"u"?!1:__CtaTestEnv__==="true";class Me{}Me.warn=e=>{be()||console.warn(e)};Me.error=e=>{be()||console.error(e)};Me.info=e=>{be()||console.info(e)};Me.debug=e=>{be()||console.debug(e)};Me.trace=e=>{be()||console.trace(e)};const Fe=Me;function On(e,t){if(e===null)return"null";if(Array.isArray(e))return`[${e.map(o=>On(o,!0)).join(",")}]`;if(typeof e=="object"){let n=[];for(const o in e)e.hasOwnProperty(o)&&e[o]!==void 0&&e[o]!==""&&n.push(`${o}:${On(e[o],!0)}`);const r=n.join(",");return t?`{${r}}`:r}return typeof e=="string"?JSON.stringify(e):`${e}`}function at(e,...t){if(t.length===0)return e;const n=t[0];return e[n]||(e[n]={}),at(e[n],...t.slice(1))}function tt(e){try{return decodeURIComponent(e)}catch{return""}}function pe(){if(!L())return window}function Ys(){try{return typeof PerformanceServerTiming<"u"}catch{return!1}}const In="_tracking_consent";function Xs(){try{return document.cookie}catch{return!1}}function ai(e,t=!1){const n=Xs()?document.cookie.split("; "):[];for(let r=0;r<n.length;r++){const[o,i]=n[r].split("=");if(e===tt(o))return tt(i)}if(t&&e==="_tracking_consent"&&!window.localStorage.getItem("tracking_consent_fetched"))return be()?void 0:(console.debug("_tracking_consent missing"),Js(),window.localStorage.setItem("tracking_consent_fetched","true"),ai(e,!1))}function Js(e="/"){const t=new XMLHttpRequest;t.open("HEAD",e,!1),t.withCredentials=!0,t.send()}function Qs(){return ai(In)}function Ur(e){return e===encodeURIComponent(tt(e))}function Fr(e,t,n,r){if(!Ur(r))throw new TypeError("Cookie value is not correctly URI encoded.");if(!Ur(e))throw new TypeError("Cookie name is not correctly URI encoded.");let o=`${e}=${r}`;o+="; path=/",t&&(o+=`; domain=${t}`),o+=`; expires=${new Date(new Date().getTime()+n).toUTCString()}`,document.cookie=o}const Zs="customer_privacy_api_events/2.0";let xe=class bt{constructor(){if(bt.instance)return bt.instance;bt.instance=this}produce(t,n){if(!L())try{const r={schema_id:Zs,payload:{shop_domain:window.location.host,method_name:t,call_details:n||null}},o={accept:"*/*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8","content-type":"application/json; charset=utf-8","x-monorail-edge-event-created-at-ms":String(Date.now()),"x-monorail-edge-event-sent-at-ms":String(Date.now())};if(window.location.host.endsWith("spin.dev"))console.log("Monorail event from consent API:",o,r);else return fetch("https://monorail-edge.shopifysvc.com/v1/produce",{headers:o,body:JSON.stringify(r),method:"POST",mode:"cors",credentials:"omit"}).catch(()=>{})}catch{}}};xe.instance=void 0;function ue(){var e,t;return L()?{}:((e=window.Shopify)===null||e===void 0||(t=e.customerPrivacy)===null||t===void 0?void 0:t.config)||{}}const Oe="_cmp";function ea(e=Oe){let t;if(tr()?t=ln(()=>ta(e))||ln(()=>Hr(e)):t=ln(()=>Hr(e)),!t){if(e!==Oe)return;let n;try{n=sessionStorage.getItem("consentHeader")}catch{}return n||void 0}try{t=decodeURIComponent(t)}catch{}return t}function ln(e){try{return e()}catch{return}}function Hr(e=Oe){var t,n;if(!ui()&&!ra()){const s=new xe;let a="failed_to_fetch";try{a=navigator.userAgent}catch{}s.produce("navigationServerTiming",JSON.stringify({failed:!0,userAgent:a,apiSupported:Ys()})),na()}const r=(t=performance)===null||t===void 0||(n=t.getEntriesByType)===null||n===void 0?void 0:n.call(t,"navigation");if(!r)return;const i=r.map(s=>ci(s,e)).find(s=>s);if(i&&e===Oe)try{sessionStorage.setItem("consentHeader",i)}catch{}return i}const jr={};function ta(e=Oe){var t,n;const r=(t=performance)===null||t===void 0||(n=t.getEntriesByType)===null||n===void 0?void 0:n.call(t,"resource");let o=jr[e];for(let i=r.length-1;i>=0;i--){let s=ci(r[i],e);if(s){o=s;break}}return jr[e]=o,o}function ci(e,t=Oe){var n,r;if(e)return(n=e.serverTiming)===null||n===void 0||(r=n.find(o=>o.name==t))===null||r===void 0?void 0:r.description}function tr(){var e,t;const n=pe();return(n==null||(e=n.Shopify)===null||e===void 0||(t=e.customerPrivacy)===null||t===void 0?void 0:t.backendConsentEnabled)===!0||ue().asyncVisitorState===!0}function ui(){var e,t;const n=pe();return n==null||(e=n.Shopify)===null||e===void 0||(t=e.customerPrivacy)===null||t===void 0?void 0:t.serverTimingSupportVerified}function na(){if(ui())return;const e=pe();at(e,"Shopify","customerPrivacy").serverTimingSupportVerified=!0}function ra(){try{const t=performance.getEntriesByType("navigation")[0].serverTiming;return!(!t||t.length==0)}catch{return!1}}const oa="_cs";function ia(){return new URLSearchParams(window.location.search).get(oa)||void 0}function sa(e){at(window,"Shopify","customerPrivacy").cachedConsent=e}function aa(){var e,t;const n=(e=window.Shopify)===null||e===void 0||(t=e.customerPrivacy)===null||t===void 0?void 0:t.cachedConsent;return n?tt(n):void 0}function ca(){var e,t;(e=window.Shopify)!==null&&e!==void 0&&(t=e.customerPrivacy)!==null&&t!==void 0&&t.cachedConsent&&(window.Shopify.customerPrivacy.cachedConsent=void 0)}let li;function ua(e){L()?li=e:at(window,"Shopify","customerPrivacy").injectedConsent=e}function Br(){if(L())return li;{var e,t;const n=((e=window.Shopify)===null||e===void 0||(t=e.customerPrivacy)===null||t===void 0?void 0:t.injectedConsent)||ue().injectedConsent;return n?tt(n):void 0}}function la(){var e;if(!L())return(e=window.Shopify)===null||e===void 0?void 0:e.customerPrivacy}function fa(e){const t=la();t&&(t.consentStatus=e)}function da(e,t){e.granular_consent!==void 0&&fi(t)}function B(e,t){if(!L())try{document.dispatchEvent(new CustomEvent(e,{detail:t||{}}))}catch(n){console.error(`[Shopify Customer Privacy] Error in event listener for "${e}":`,n)}}function fi(e){fa("loaded");const t=e[P.MARKETING],n=e[P.SALE_OF_DATA],r=e[P.ANALYTICS],o=e[P.PREFERENCES];t===!0?B(j.MARKETING_ACCEPTED):t===!1&&B(j.MARKETING_DECLINED),n===!0?B(j.SALE_OF_DATA_ACCEPTED):n===!1&&B(j.SALE_OF_DATA_DECLINED),r===!0?B(j.ANALYTICS_ACCEPTED):r===!1&&B(j.ANALYTICS_DECLINED),o===!0?B(j.PREFERENCES_ACCEPTED):o===!1&&B(j.PREFERENCES_DECLINED);const i=ha(e);B(j.CONSENT_COLLECTED,i);const s=[r,o,t,n];s.every(a=>a===!0)&&B(j.TRACKING_ACCEPTED),s.every(a=>a===!1)&&B(j.TRACKING_DECLINED)}function ha(e){return{marketingAllowed:e[P.MARKETING],saleOfDataAllowed:e[P.SALE_OF_DATA],analyticsAllowed:e[P.ANALYTICS],preferencesAllowed:e[P.PREFERENCES],firstPartyMarketingAllowed:e[P.MARKETING],thirdPartyMarketingAllowed:e[P.SALE_OF_DATA]}}function Kd(e){ua(e),L()||(ca(),fi({[P.PREFERENCES]:Qt(),[P.ANALYTICS]:_e(),[P.MARKETING]:ct(),[P.SALE_OF_DATA]:rr()}))}function pa(){let e;if(L()?e=Br():e=aa()||Br()||ia()||Qs()||ea(),e!==void 0)return _a(e)}function ie(){try{let e=pa();return e||void 0}catch{return}}function nr(){return{m:pt(O.MARKETING),a:pt(O.ANALYTICS),p:pt(O.PREFERENCES),s:pt(O.SALE_OF_DATA)}}function di(){return nr()[O.SALE_OF_DATA]}function Le(e=null){return e===null&&(e=ie()),e===void 0}function _a(e){if(e.slice(0,1)=="%")try{e=decodeURIComponent(e)}catch{}const t=e.slice(0,1);if(t=="{")return ma(e);if(t=="3")return va(e)}function ma(e){var t;let n;try{n=JSON.parse(e)}catch{return}if(n.v===Ws&&(t=n.con)!==null&&t!==void 0&&t.CMP)return n}function va(e){const t=e.slice(1).split("_"),[n,r,o,i,s]=t;let a;try{a=t[5]?JSON.parse(t.slice(5).join("_")):void 0}catch{}let u;if(s){const h=s.replace(/\*/g,"/").replace(/-/g,"+"),f=atob(h);let d="";for(let v=0;v<f.length;v++){const _=f.charCodeAt(v).toString(16);d+=_.length===1?"0"+_:_}u=[8,13,18,23].reduce((v,_)=>v.slice(0,_)+"-"+v.slice(_),d)}function c(h){const f=n.split(".")[0];return f.includes(h.toLowerCase())?D.DECLINED:f.includes(h.toUpperCase())?D.ACCEPTED:D.NO_VALUE}function l(h){return n.includes(h.replace("t","s").toUpperCase())}return{v:zs,con:{CMP:{[O.ANALYTICS]:c(O.ANALYTICS),[O.PREFERENCES]:c(O.PREFERENCES),[O.MARKETING]:c(O.MARKETING),[O.SALE_OF_DATA]:c(O.SALE_OF_DATA)}},region:r||"",cus:a,purposes:{[P.ANALYTICS]:l(P.ANALYTICS),[P.PREFERENCES]:l(P.PREFERENCES),[P.MARKETING]:l(P.MARKETING),[P.SALE_OF_DATA]:l(P.SALE_OF_DATA)}
1,sale_of_data_region:i=="t",display_banner:o=="t",consent_id:u}}function hi(e){switch(e){case D.ACCEPTED:return K.ACCEPTED;case D.DECLINED:return K.DECLINED;default:return K.NO_VALUE}}function ya(e){switch(e){case O.ANALYTICS:return Z.ANALYTICS;case O.MARKETING:return Z.MARKETING;case O.PREFERENCES:return Z.PREFERENCES;case O.SALE_OF_DATA:return Z.SALE_OF_DATA}}function pt(e){const t=ie();if(!t)return D.NO_VALUE;const n=t.con.CMP;return n?n[e]:D.NO_VALUE}function ga(){const e=ie();return Le(e)?"":e.region||""}function Ea(){const e=ie();if(!(Le(e)||!e.cus))return Object.entries(e.cus).map(([t,n])=>({key:decodeURIComponent(t),value:decodeURIComponent(n)}))}function wa(e){const t=ie();if(Le(t)||!t.cus)return;const n=t.cus[encodeURIComponent(e)];return n&&decodeURIComponent(n)}function Jt(e){const t=ie();if(!t||!t.purposes)return!0;const n=t.purposes[e];return typeof n=="boolean"?n:!0}function Qt(){return Jt(P.PREFERENCES)}function _e(){return Jt(P.ANALYTICS)}function ct(){return Jt(P.MARKETING)}function rr(){return Jt(P.SALE_OF_DATA)}function pi(){const e=ie();return e&&typeof e.display_banner=="boolean"?e.display_banner:!1}function _i(){const e=ie();return e&&e.sale_of_data_region||!1}function Aa(){const e=ie();return e&&e.consent_id||""}const or="v0.2",Sa=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/,ba="00000000-0000-0000-0000-000000000000",Ca="00000000-0000-0000-5000-000000000000";function Ta(e){return e?Sa.test(e.trim().toLowerCase()):!1}function le(e,t){if(typeof e!="string"||!Ta(e))return;const n=e.trim();if(n===ba||n===Ca)return;const r=t==null||typeof t=="string"&&t.trim()===""?NaN:Number(t);if(!(Number.isFinite(r)&&Date.now()>r))return n}const Pa=365*24*60*60*1e3,Na=1800*1e3;function Gr(e,t){const n=pe();if(!n)return;const r=at(n,"Shopify","customerPrivacy","cachedToken");if(t){const o=e==="_shopify_s"?Na:Pa;r[e]=t,r[e+"_expires_at"]=Date.now()+o}else delete r[e],delete r[e+"_expires_at"]}function Ra(e,t){if(!e)return;const n=$a(e);if(n.length)for(let r=0;r<n.length;r++){const o=n[r],i=o.getAttribute("href");if(!i)continue;const s=new URL(i,window.location.origin);s.searchParams.set("_cs",t);const a=mi(e)?s.toString():s.toString().replace(window.location.origin,"");o.setAttribute("href",a)}}function $a(e){const t=new URL(e,window.location.origin),n=mi(e)?Kr(t):Kr(t).replace(window.location.origin,""),r=document.querySelectorAll(`a[href^="${n}"]`),o=document.querySelectorAll(`a[href*="${window.location.hostname}/customer_authentication"]`),i=new Set,s=[];for(let a=0;a<r.length;a++)i.has(r[a])||(i.add(r[a]),s.push(r[a]));for(let a=0;a<o.length;a++)i.has(o[a])||(i.add(o[a]),s.push(o[a]));return s}function Kr(e){return`${e.origin}${ka(e.pathname)}`}function mi(e){return e.startsWith("http://")||e.startsWith("https://")}function ka(e){return e.replace(/\/$/,"")}const Oa="Shopify-Storefront-Consent-Management";function Ia(e){const t=e.granular_consent,n={visitorConsent:{marketing:t.marketing,analytics:t.analytics,preferences:t.preferences,saleOfData:t.sale_of_data,...t.metafields&&{metafields:t.metafields}},...t.email&&{visitorEmail:t.email},origReferrer:e.referrer,landingPage:e.landing_page};return{query:`query { consentManagement { cookies(${On(n)}) { trackingConsentCookie cookieDomain landingPageCookie origReferrerCookie shopifyUnique shopifyVisit } customerAccountUrl } }`,variables:{}}}function Ma(e){return e.granular_consent.checkoutRootDomain}function xa(e){return e.granular_consent.headlessStorefront}function La(e,t,n,r){const o=t.granular_consent;let i="",s={};if(o.customerAccountRequestInfo)i=o.customerAccountRequestInfo.url,s=o.customerAccountRequestInfo.headers;else{const c=ue(),l=o.storefrontAccessToken||c.storefrontAccessToken||Ua();i=`${/^(localhost|127\.0\.0\.1)(:|$)/.test(e)?"http:":"https:"}//${e}/api/unstable/graphql.json`;const f=o.isExtensionToken?"Shopify-Storefront-Extension-Token":"x-shopify-storefront-access-token";s=l?{[f]:l}:{},n&&(s={...s,...n()})}const a={headers:{"content-type":"application/json",...ue().asyncConsent===!0&&new URL(i).origin===window.location.origin&&{[Oa]:"1"},...s,...be()?{"x-test-payload":JSON.stringify(t)}:{}},body:JSON.stringify(Ia(t)),method:"POST"};let u;
1try{u=fetch(i,a)}catch(c){u=Promise.reject(c)}return u.then(c=>{try{r?.(c)}catch{}if(c.ok)return c.json();{const l=new Error("Server error");throw l.cause={status:c.status},l}})}let He;function Da(e,t,n,r={}){const o=ue().consentDomain||Ma(t)||window.location.host,i=()=>La(o,t,r.getVisitorTokenHeaders,r.onResponse).then(u=>{var c,l;const h=u==null||(c=u.data)===null||c===void 0?void 0:c.consentManagement;if(!h){var f;const m=((f=u?.errors)!==null&&f!==void 0?f:[]).map(g=>g?.message).filter(Boolean).join("; ");throw new Error(m?`GraphQL error: ${m}`:"GraphQL response missing consentManagement")}const d=h.cookies.cookieDomain,v=h.cookies.trackingConsentCookie,_=h.cookies.shopifyUnique,y=h.cookies.shopifyVisit,p=(l=h.customerAccountUrl)!==null&&l!==void 0?l:"";if(v&&sa(v),Gr("_shopify_y",_),Gr("_shopify_s",y),xa(t)&&!tr()){const g=t.granular_consent,E=d||g.checkoutRootDomain||window.location.hostname,A=g.storefrontRootDomain||d||window.location.hostname;Fr(In,E,31536e6,v),A!==E&&Fr(In,A,31536e6,v)}return r.emitEvents!==!1&&da(t,{[P.PREFERENCES]:Qt(),[P.ANALYTICS]:_e(),[P.MARKETING]:ct(),[P.SALE_OF_DATA]:rr()}),Ra(p,v),n!==void 0&&n(null,u),u}).catch(u=>{var c;const l="Error while setting storefront API consent: "+u.message,h=(c=u.cause)===null||c===void 0?void 0:c.status,f={error:l};if(h!==void 0&&(f.statusCode=h),n!==void 0)n(f);else throw f});if(ue().asyncConsent!==!0)return i();const s=He=He?He.then(i,i):i(),a=()=>{He===s&&(He=void 0)};return s.then(a,a),s}function Ua(){try{const e=document.documentElement.querySelector("#shopify-features"),t="Could not find liquid access token";if(!e){Fe.warn(t);return}const n=e.textContent;if(!n){Fe.warn(t);return}let r;try{r=JSON.parse(n).accessToken}catch{Fe.warn(t);return}if(!r){Fe.warn(t);return}return r}catch{Fe.warn("Could not find liquid access token");return}}const vi=[Z.MARKETING,Z.ANALYTICS,Z.PREFERENCES,Z.SALE_OF_DATA],Fa=[...vi,Z.EMAIL,se.ROOT_DOMAIN,se.CHECKOUT_ROOT_DOMAIN,se.STOREFRONT_ROOT_DOMAIN,se.STOREFRONT_ACCESS_TOKEN,se.HEADLESS_STOREFRONT,se.IS_EXTENSION_TOKEN,se.METAFIELDS,se.CUSTOMER_ACCOUNT_REQUEST_INFO],qr=vi.map(e=>`"${e}"`).join(", "),Ct="https://shopify.dev/docs/api/customer-privacy";function Ha(e){if(typeof e!="boolean"&&typeof e!="object")throw new Ae(`setTrackingConsent received an invalid argument of type "${typeof e}". Expected an object with consent keys. Example: setTrackingConsent({ analytics: true, marketing: false }). See ${Ct} for documentation.`);if(typeof e=="object"){const t=Object.keys(e);if(t.length===0)throw new Ae(`The submitted consent object is empty. Expected at least one consent key: ${qr}. Example: setTrackingConsent({ analytics: true, marketing: false }). See ${Ct} for documentation.`);for(const n of t)if(!Fa.includes(n))throw new Ae(`The submitted consent object contains an invalid key: "${n}". Valid keys are: ${qr}. Example: setTrackingConsent({ analytics: true, marketing: false }). See ${Ct} for documentation.`)}}function Vr(e,t){if(L())throw new Error("setTrackingConsent is not supported in Node.js environments. This function requires browser APIs (XHR, cookies, window) and can only be called client-side.");const n=new xe;if(_e()&&n.produce("setTrackingConsent",or),Ha(e),t!==void 0&&typeof t!="function")throw new Ae(`setTrackingConsent received an invalid callback of type "${typeof t}". The second argument must be a function if provided. Example: setTrackingConsent({ analytics: true }, (error, result) => { ... }). See ${Ct} for documentation.`);const r=Ba(e.analytics),o=Ga(e.analytics);return Da(wi,{granular_consent:e,...r!==null&&{referrer:r},...o!==null&&{landing_page:o}},t)}function ja(e){return Le()?K.NO_VALUE:e===D.NO_VALUE?K.NO_INTERACTION:hi(e)}function yi(){const e=new xe;if(_e()&&e.produce("getTrackingConsent",or),Le())return K.NO_VALUE;const t=nr();return t[O.MARKETING]===D.ACCEPTED&&t[O.ANALYTICS]===D.ACCEPTED?K.ACCEPTED:t[O.MARKETING]===D.DECLINED||t[O.ANALYTICS]===D.DECLINED?K.DECLINED:K.NO_INTERACTION}function Ba(e){if(!e)return null;try{return gi()?document.referrer:""}catch{return""}}function Ga(e){if(!e)return null;if(!gi())return"/";try{return window.location.pathname+window.location.search}catch{return"/"}}function Ka(){return ga()}function gi(){try{if(document.referrer==="")return!0;const e=document.createElement("a");return e.href=document.referrer,window.location.hostname!=e.hostname}catch{return!0}}function qa(){return ct()&&_e()}function Va(){return Le()?!0:qa()}
1function Ei(){return _i()?typeof navigator.globalPrivacyControl=="string"?navigator.globalPrivacyControl!=="1":typeof navigator.globalPrivacyControl=="boolean"?!navigator.globalPrivacyControl:null:null}function Wa(){return pi()&&yi()===K.NO_INTERACTION}function za(){return Ei()===!1?K.DECLINED:ja(di())}function Ya(){return!0}function Xa(){return _e()}function Ja(){return Qt()}function Qa(){return ct()}function Za(){return rr()}function ec(e){return wa(e)}function qd(){return Ea()}function wi(){const e={},t=nr();for(const n of Object.keys(t))e[ya(n)]=hi(t[n]);return e}function tc(){return Aa()}const nc="shopify-y",rc="shopify-s",oc="serialized-shopifyY",ic="serialized-shopifyS",sc="new-cookie-storage-activated",ac="serialized-isNewCookieStorageEnabled";function ir(e){if(!L())try{var t,n;return(t=document.querySelector(`meta[name="${e}"]`))===null||t===void 0||(n=t.getAttribute("content"))===null||n===void 0?void 0:n.trim()}catch{return}}function Ai(e){const t=ir(e);if(t)try{const n=JSON.parse(t);return typeof n=="string"?n.trim():void 0}catch{return}}function cc(e){if(!L())try{var t,n;const r=(t=document.querySelector(`meta[name="${e}"]`))===null||t===void 0||(n=t.getAttribute("data-expiration"))===null||n===void 0?void 0:n.trim();if(!r)return;const o=Number(r);return Number.isFinite(o)?o:void 0}catch{return}}function uc(e){const t=Ai(`${e}Expiration`);if(!t)return;const n=Number(t);return Number.isFinite(n)?n:void 0}function Wr(e){return e===void 0?!1:Date.now()>e}function Si(e){const t=ir(e);if(!t)return!1;const n=t.replace(/^"(.*)"$/,"$1").toLowerCase();return n==="true"||n==="t"}function lc(){return Si(sc)}function fc(){return Si(ac)}function bi(e,t){if(fc()){const n=le(Ai(t));if(n&&!Wr(uc(t)))return n}if(lc()){const n=le(ir(e));if(n&&!Wr(cc(e)))return n}}function dc(){return bi(nc,oc)}function hc(){return bi(rc,ic)}const pc="https://otlp-http-production.shopifysvc.com/v1/metrics",_c="consent-tracking-api",mc="consent-tracking-api-opentelemetry",vc="1.0.0",yc=1;class Re{constructor(){if(this.endpoint=pc,this.serviceName=_c,this.scopeName=mc,Re.instance)return Re.instance;Re.instance=this}increment(t,n={}){if(!(L()||!t))try{const r=this.buildMetricBody(t,n);if(window.location.host.endsWith("spin.dev")){console.log("OpenTelemetry metric from consent API:",r);return}return typeof fetch!="function"?void 0:fetch(this.endpoint,{headers:{accept:"*/*","content-type":"application/json; charset=utf-8"},body:JSON.stringify(r),method:"POST",mode:"cors",credentials:"omit"}).catch(()=>{})}catch{}}buildMetricBody(t,n){const r=Date.now()*1e6;return{resourceMetrics:[{resource:{attributes:[{key:"service.name",value:{stringValue:this.serviceName}}]},scopeMetrics:[{scope:{name:this.scopeName,version:vc,attributes:[]},metrics:[{name:t,unit:"1",sum:{aggregationTemporality:yc,isMonotonic:!0,dataPoints:[{asDouble:1,startTimeUnixNano:r,timeUnixNano:r,attributes:gc(n)}]}}]}]}]}}}Re.instance=void 0;function gc(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return r==null||t.push({key:n,value:Ec(r)}),t},[])}function Ec(e){return typeof e=="string"?{stringValue:e}:typeof e=="boolean"?{boolValue:e}:isFinite(e)?Math.floor(e)===e?{intValue:e}:{doubleValue:e}:{stringValue:String(e)}}const wc=new Re;function Ac(e,t=!1,n="unknown"){var r,o;wc.increment("consent_tracking_api_tracking_token_missing");const i=pe();new xe().produce("trackingTokenMissing",JSON.stringify({token:e,hasTrekkie:!!(i!=null&&i.ShopifyAnalytics),hasTheme:!!(i!=null&&(r=i.Shopify)!==null&&r!==void 0&&r.theme),domain:i==null||(o=i.location)===null||o===void 0?void 0:o.hostname,fallbackRequested:t,tag:n}))}const Ci={},Sc=/^https?:\/\/([^/]+)(\/api\/(?:unstable|2\d{3}-\d{2})\/graphql\.json(?=$|\?))?/;function bc(e){try{var t,n,r,o;return(t=performance)===null||t===void 0||(n=t.getEntriesByType("navigation")[0])===null||n===void 0||(r=n.serverTiming)===null||r===void 0||(o=r.find(i=>i.name==e))===null||o===void 0?void 0:o.description}catch{return}}function Cc(e,t){if(e.initiatorType!=="fetch")return!1;const n=e.name.match(Sc);if(!n)return!1;const[,r,o]=n;return r===t||!!o&&!!(r!=null&&r.endsWith(`.${t}`))}function Tc(e){try{var t,n;const i=(t=performance)===null||t===void 0||(n=t.getEntriesByType)===null||n===void 0?void 0:n.call(t,"resource");if(!i)return;const s=window.location.host;for(let a=i.length-1;a>=0;a--){var r,o;const u=i[a];if(!Cc(u,s))continue;const c=(r=u.serverTiming)===null||r===void 0||(o=r.find(l=>
1l.name===e))===null||o===void 0?void 0:o.description;if(c)return c}return}catch{return}}function Pc(e){const t=Tc(e);return t&&(Ci[e]=t),t}function Nc(e){try{var t,n,r,o;return(t=document.cookie)===null||t===void 0||(n=t.split(";"))===null||n===void 0||(r=n.find(i=>i.trim().startsWith(`${e}=`)))===null||r===void 0||(o=r.split("=")[1])===null||o===void 0?void 0:o.trim()}catch{return}}function Rc(e){var t,n,r,o,i,s;const a=pe();if(!a)return;const u=(t=a.Shopify)===null||t===void 0||(n=t.customerPrivacy)===null||n===void 0||(r=n.cachedToken)===null||r===void 0?void 0:r[e],c=(o=a.Shopify)===null||o===void 0||(i=o.customerPrivacy)===null||i===void 0||(s=i.cachedToken)===null||s===void 0?void 0:s[e+"_expires_at"];if(!(!u||!c)&&!(c<new Date().getTime()))return le(u)}function $c(e){const t=pe();if(!t||!t.ShopPay)return;const n={_shopify_y:"trackingUnique",_shopify_s:"trackingVisit"}[e];if(!n)return;const r=t.ShopPay[n];return le(r)}function zr(e){if(tr()){const n=Pc(e);if(n)return{value:n,source:"resource"};const r=Ci[e];if(r)return{value:r,source:"cache"}}const t=bc(e);return t?{value:t,source:"navigation"}:{value:void 0,source:null}}function kc(e){const t=e.replace("_shopify",""),n=zr(t).value,r=Number(zr(`${t}e`).value);if(!r||Date.now()/1e3<r)return le(n)}function Ti(e,t,n=!1,r="unknown"){if(!_e()&&!ct())return;const o=Rc(e);if(o)return o;const i=pe();if(i!=null&&i.ShopPay)return $c(e);const s=t();if(s)return s;const a=kc(e);if(a)return a;const u=le(Nc(e));if(u)return u;try{Ac(e,n,r)}catch{}}function Oc(e=!1,t="unknown"){return Ti("_shopify_y",dc,e,t)}function Ic(e=!1,t="unknown"){return Ti("_shopify_s",hc,e,t)}const Mc="95ba910bcec4542ef2a0b64cd7ca666c";function xc(e,t,n){try{var r;const o={error:e,context:t??"",shopId:Dc()||((r=window.Shopify)===null||r===void 0?void 0:r.shop),notes:n??""};Hc(o)}catch{}}function Lc(e){return(...t)=>{try{return e(...t)}catch(n){throw n instanceof Ae||xc(n),n}}}function Dc(){try{var e;const t=(e=document.getElementById("shopify-features"))===null||e===void 0?void 0:e.textContent;return t?JSON.parse(t).shopId:null}catch{return null}}function Uc(e){if(e)return e.stackTrace||e.stack||e.description||e.name}function Fc(e){var t;const n=Uc(e.error);let r,o;if((t=e.error)!==null&&t!==void 0&&t.name){var i,s;r=e.error.name,o=(i=(s=e.error)===null||s===void 0?void 0:s.message)!==null&&i!==void 0?i:""}else{const l=(n||"unknown error").split(` 2`)[0],h=l.indexOf(":");if(h>0)r=l.substring(0,h).trim(),o=l.substring(h+1).trim();else{var a,u,c;r=l.trim()||"unknown error",o=((a=e.error)===null||a===void 0?void 0:a.message)||((u=e.error)===null||u===void 0?void 0:u.error)||((c=e.error)===null||c===void 0?void 0:c.toString())||"No error message available"}}return JSON.stringify({payloadVersion:5,notifier:{name:"ConsentTrackingAPI",version:"latest",url:"-"},events:[{exceptions:[{errorClass:r,message:o,stacktrace:[{file:"consent-tracking-api.js",lineNumber:"1",method:n}],type:"browserjs"}],context:"general",app:{id:"ConsentTrackingAPI",version:"latest"},metaData:{request:{shopId:e.shopId,shopUrl:window.location.href},device:{userAgent:window.navigator.userAgent},"Additional Notes":e.notes},unhandled:!1}]})}function Hc(e){const t=new XMLHttpRequest;t.open("POST","https://error-analytics-production.shopifysvc.com",!0),t.setRequestHeader("Content-Type","application/json"),t.setRequestHeader("Bugsnag-Api-Key",Mc),t.setRequestHeader("Bugsnag-Payload-Version","5");const n=Fc(e);t.send(n)}function Mn(){return Qa()}function jc(){return Xa()}function Bc(){return Ja()}function xn(){return Za()}const Gc=()=>({name:"@shopify/consent-tracking-api",version:or,description:"Shopify Consent Tracking API"}),Kc=({useBugsnagReporting:e})=>{di()!=D.DECLINED&&Ei()===!1&&Vr({sale_of_data:!1},()=>!1);const t={analyticsProcessingAllowed:_e,currentVisitorConsent:wi,doesMerchantSupportGranularConsent:Ya,firstPartyMarketingAllowed:Mn,getCCPAConsent:za,getRegion:Ka,getTrackingConsent:yi,getTrackingConsentMetafield:ec,marketingAllowed:Mn,preferencesProcessingAllowed:Qt,saleOfDataAllowed:xn,saleOfDataRegion:_i,setTrackingConsent:Vr,shouldShowBanner:pi,shouldShowGDPRBanner:Wa,thirdPartyMarketingAllowed:xn,userCanBeTracked:Va,consentId:tc,unstable:{},__internal:{uniqueToken:Oc,visitToken:Ic},__metadata__:Gc(),config:ue()};if(!e)return t;const n=t;for(const r in n)if(n.hasOwnProperty(r)){const o=n[r];typeof o=="function"&&(n[r]=Lc(o))}return t};function Vd(e={useBugsnagReporting:!1}){return Kc(e)}const qc="query { consentManagement { cookies(visitorConsent:{}) { cookieDomain } } }",Vc="unstable",Wc="X-Shopify-UniqueToken",zc="X-Shopify-VisitToken",Pi=.01;function Yc(e){return Math.random()<e}function Xc(){const e=ue().consentDomain||window.location.host;return{protocol:/^(localhost|127\.0\.0\.1)(:|$)/.test(e)?"http:":"https:",host:e}}
2function Jc(e,t,n){new xe().produce("persistOutcome",JSON.stringify({ok:e,status:t,graphqlErrors:n,sampleRate:Pi}))}async function Yr(e){try{var t;if(!Yc(Pi))return;let n=null;if(e)try{const r=await e.json();n=Array.isArray(r?.errors)&&r.errors.length>0}catch{}Jc(!!(e!=null&&e.ok),(t=e?.status)!==null&&t!==void 0?t:null,n)}catch{}}function Wd(e,t){if(!L())try{const n=le(e),r=le(t);if(!n&&!r)return;const o=new URLSearchParams,i={"content-type":"application/json"};n&&(o.set("_y",n),i[Wc]=n),r&&(o.set("_s",r),i[zc]=r);const{protocol:s,host:a}=Xc(),u=`${s}//${a}/api/${Vc}/graphql.json?${o.toString()}`;let c;try{c=fetch(u,{headers:i,body:JSON.stringify({query:qc,variables:{}}),method:"POST",mode:"cors",credentials:"include"})}catch(l){c=Promise.reject(l)}c.then(l=>Yr(l),()=>Yr(void 0))}catch{}}const sr="uc",Qc=["ac","ah","ba","bin","c","cn","co","do","e","md","o","pc","sh","sim",sr],Ni="(?<language>[a-z]{2,3}|zh-hans|zh-hant)(?:-(?<region>[a-zA-Z0-9]+))?",Zc=new RegExp(`^${Ni}$`),eu=`/(?<sourceId>[a-zA-Z0-9=\\-_]+)(?:/(?<locale>${Ni}))?(?:/(?<route>[^/]+))?`;function Ri(e){return`(?<sourceType>${e.join("|")})${eu}`}const $i=Ri(Qc.filter(e=>e!==sr)),tu=Ri([sr]),nu=new RegExp(`^/checkouts/${$i}/?$`),ru=new RegExp(`^/checkout/(?<shopId>[0-9]+)/${$i}/?$`),ou=new RegExp(`^/checkouts/${tu}/?$`),iu=new RegExp("^/checkout/(?<shopId>[0-9]+)/(?<sourceType>spe)(?:/(?<sourceId>[a-zA-Z0-9=\\-_]+)?)?(?:/(?<route>[^/]+)?)?/?$");function zd(e,t){const n=su(e.pathname,t);if(!n)return;const{shopId:r,sourceType:o,sourceId:i,route:s,locale:a}=n.groups??{};let u;o==="o"&&!au(i)&&(u=`gid://shopify/Order/${i}`);const c={type:o,id:u??i},l=r?{id:r}:void 0,h=e.searchParams.get("locale")??void 0;let f;return Xr(h)?f=h:Xr(a)&&(f=a),{shop:l,source:c,route:`/${s??""}`,locale:f,shopPaySimulated:c.type==="sim"&&e.searchParams.has("shop_pay_sim")}}function su(e,{isShopPayActive:t,isShopPayExternal:n}){return t?n?e.match(iu):e.match(ru)??e.match(ou):e.match(nu)}function Xr(e){return e?Zc.test(e):!1}function au(e){return e?/^[a-f0-9]{32}$/i.test(e):!1}var oe,N,fn,Jr,Ie=0,ki=[],$=S,Qr=$.__b,Zr=$.__r,eo=$.diffed,to=$.__c,no=$.unmount,ro=$.__;function Ce(e,t){$.__h&&$.__h(N,e,Ie||t),Ie=0;var n=N.__H||(N.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function nt(e){return Ie=1,cu(Oi,e)}function cu(e,t,n){var r=Ce(oe++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Oi(void 0,t),function(a){var u=r.__N?r.__N[0]:r.__[0],c=r.t(u,a);u!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=N,!N.__f)){var o=function(a,u,c){if(!r.__c.__H)return!0;var l=!1,h=r.__c.props!==a;if(r.__c.__H.__.some(function(d){if(d.__N){l=!0;var v=d.__[0];d.__=d.__N,d.__N=void 0,v!==d.__[0]&&(h=!0)}}),i){var f=i.call(this,a,u,c);return l?f||h:f}return!l||h};N.__f=!0;var i=N.shouldComponentUpdate,s=N.componentWillUpdate;N.componentWillUpdate=function(a,u,c){if(this.__e){var l=i;i=void 0,o(a,u,c),i=l}s&&s.call(this,a,u,c)},N.shouldComponentUpdate=o}return r.__N||r.__}function J(e,t){var n=Ce(oe++,3);!$.__s&&cr(n.__H,t)&&(n.__=e,n.u=t,N.__H.__h.push(n))}function Zt(e,t){var n=Ce(oe++,4);!$.__s&&cr(n.__H,t)&&(n.__=e,n.u=t,N.__h.push(n))}function te(e){return Ie=5,H(function(){return{current:e}},[])}function Yd(e,t,n){Ie=6,Zt(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function H(e,t){var n=Ce(oe++,7);return cr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Se(e,t){return Ie=8,H(function(){return e},t)}function ar(e){var t=N.context[e.__c],n=Ce(oe++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(N)),t.props.value):e.__}function Xd(e,t){$.useDebugValue&&$.useDebugValue(t?t(e):e)}function Jd(e){var t=Ce(oe++,10),n=nt();return t.__=e,N.componentDidCatch||(N.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Qd(){var e=Ce(oe++,11);if(!e.__){for(var t=N.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function uu(){for(var e;e=ki.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Tt),t.__h.some(Ln),t.__h=[]}catch(n){t.__h=[],$.__e(n,e.__v)}}}$.__b=function(e){N=null,Qr&&Qr(e)},$.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ro&&ro(e,t)},$.__r=function(e){Zr&&Zr(e),oe=0;var t=(N=e.__c).__H;t&&(fn===N?(t.__h=[],N.__h=[],t.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.some(Tt),t.__h.some(Ln),t.__h=[],oe=0)),fn=N},$.diffed=function(e){eo&&eo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ki.push(t)!==1&&Jr===$.requestAnimationFrame||((Jr=$.requestAnimationFrame)||lu)(uu)),t.__H.__.some(function(n){n.u&&(n.__H=n.u,n.u=void 0)})),fn=N=null}
2,$.__c=function(e,t){t.some(function(n){try{n.__h.some(Tt),n.__h=n.__h.filter(function(r){return!r.__||Ln(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],$.__e(r,n.__v)}}),to&&to(e,t)},$.unmount=function(e){no&&no(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(r){try{Tt(r)}catch(o){t=o}}),n.__H=void 0,t&&$.__e(t,n.__v))};var oo=typeof requestAnimationFrame=="function";function lu(e){var t,n=function(){clearTimeout(r),oo&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);oo&&(t=requestAnimationFrame(n))}function Tt(e){var t=N,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),N=t}function Ln(e){var t=N;e.__c=e.__(),N=t}function cr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Oi(e,t){return typeof t=="function"?t(e):t}var fu=Symbol.for("preact-signals");function en(){if(ne>1)ne--;else{var e,t=!1;for((function(){var o=Lt;for(Lt=void 0;o!==void 0;){var i=o.S;if(i.v===o.v)for(var s=i.t;s!==void 0;s=s.x)s.i===o.i&&(s.i=i.i);o=o.o}})();Je!==void 0;){var n=Je;for(Je=void 0,xt++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Mi(n))try{n.c()}catch(o){t||(e=o,t=!0)}n=r}}if(xt=0,ne--,t)throw e}}function ur(e){if(ne>0)return e();Dn=++du,ne++;try{return e()}finally{en()}}var F,R=void 0;function ut(e){var t=R,n=F;R=void 0,F=void 0;try{return e()}finally{R=t,F=n}}var Je=void 0,ne=0,xt=0,du=0,Dn=0,Lt=void 0,Dt=0;function Ii(e){if(R!==void 0){var t=e.n;if(t===void 0||t.t!==R)return t={i:0,S:e,p:R.s,n:void 0,t:R,e:void 0,x:void 0,r:t},R.s!==void 0&&(R.s.n=t),R.s=t,e.n=t,32&R.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=R.s,t.n=void 0,R.s.n=t,R.s=t),t}}function I(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}I.prototype.brand=fu;I.prototype.h=function(){return!0};I.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n!==void 0?n.e=e:ut(function(){var r;(r=t.W)==null||r.call(t)}))};I.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&ut(function(){var o;(o=t.Z)==null||o.call(t)}))}};I.prototype.subscribe=function(e){var t=this;return fe(function(){var n=t.value;ut(function(){return e(n)})},{name:"sub"})};I.prototype.valueOf=function(){return this.value};I.prototype.toString=function(){return this.value+""};I.prototype.toJSON=function(){return this.value};I.prototype.peek=function(){var e=this;return ut(function(){return e.value})};Object.defineProperty(I.prototype,"value",{get:function(){var e=Ii(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(xt>100)throw new Error("Cycle detected");(function(n){ne!==0&&xt===0&&n.l!==Dn&&(n.l=Dn,Lt={S:n,v:n.v,i:n.i,o:Lt})})(this),this.v=e,this.i++,Dt++,ne++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{en()}}}});function ce(e,t){return new I(e,t)}function Mi(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function xi(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Li(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Te(e,t){I.call(this,void 0,t),this.x=e,this.s=void 0,this.g=Dt-1,this.f=4}Te.prototype=new I;Te.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Dt))return!0;if(this.g=Dt,this.f|=1,this.i>0&&!Mi(this))return this.f&=-2,!0;var e=R;try{xi(this),R=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return R=e,Li(this),this.f&=-2,!0};Te.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}I.prototype.S.call(this,e)};Te.prototype.U=function(e){if(this.t!==void 0&&(I.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Te.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Te.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ii(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Un(e,t){return new Te(e,t)}function Di(e){var t=e.m;if(e.m=void 0,typeof t=="function"){ne++;var n=R;R=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,lr(e),r}finally{R=n,en()}}}function lr(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Di(e)}function hu(e){if(R!==this)throw new Error("Out-of-order effect");Li(this),R=e,this.f&=-2,8&this.f&&lr(this),en()}function De(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t?.name,F&&F.push(this)}De.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.m=t)}finally{e()}};De.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Di(this),xi(this),ne++;var e=R;return R=this,hu.bind(this,e)};De.prototype.N=function(){2&this.f||(this.f|=2,this.u=Je,Je=this)};De.prototype.d=function(){this.f|=8,1&this.f||lr(this)};De.prototype.dispose=function(){this.d()};function fe(e,t){var n=new De(e,t);try{n.c()}catch(o){throw n.d(),o}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}function Ui(e){return function(){var t=arguments,n=this;return ur(function(){return ut(function(){return e.apply(n,[].slice.call(t))})})}}function pu(){var e=F;return F=[],function(){var t=F;return F&&e&&(e=e.concat(F)),F=e,t}}var Fi=function(e){for(var t in e){var n=e[t];typeof n=="function"?e[t]=Ui(n):typeof n=="object"&&n!==null&&!("brand"in n)&&Fi(n)}};function Zd(e){return function(){var t,n,r=pu();try{n=e.apply(void 0,[].slice.call(arguments))}catch(o){throw F=void 0,o}finally{t=r()}return Fi(n),n[Symbol.dispose]=Ui(function(){if(t)for(var o=0;o<t.length;o++)t[o].dispose();t=void 0}),n}}var fr,tn,_t,_u=typeof window<"u"&&!!window.__PREACT_SIGNALS_DEVTOOLS__,Hi=[],ji=[];
2fe(function(){fr=this.N})();function Ue(e,t){S[e]=t.bind(null,S[e]||function(){})}function Ut(e){if(_t){var t=_t;_t=void 0,t()}_t=e&&e.S()}function Bi(e){var t=this,n=e.data,r=dr(n);r.name="ReactiveDom",r.value=n;var o=H(function(){for(var a=t,u=t.__v;u=u.__;)if(u.__c){u.__c.__$f|=4;break}var c=Un(function(){var d=r.value.value;return d===0?0:d===!0?"":d||""}),l=Un(function(){return!Array.isArray(c.value)&&!Yo(c.value)}),h=fe(function(){if(this.N=Gi,l.value){var d=c.value;a.__v&&a.__v.__e&&a.__v.__e.nodeType===3&&(a.__v.__e.data=d)}}),f=t.__$u.d;return t.__$u.d=function(){h(),f.call(this)},[l,c]},[]),i=o[0],s=o[1];return i.value?s.peek():s.value}Bi.displayName="ReactiveTextNode";Object.defineProperties(I.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Bi},props:{configurable:!0,get:function(){var e=this;return{data:{get value(){return e.value}}}}},__b:{configurable:!0,value:1}});Ue("__b",function(e,t){if(typeof t.type=="string"){var n,r=t.props;for(var o in r)if(o!=="children"){var i=r[o];i instanceof I&&(n||(t.__np=n={}),n[o]=i,r[o]=i.peek())}}e(t)});Ue("__r",function(e,t){if(e(t),t.type!==U){Ut();var n,r=t.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=(function(o,i){var s;return fe(function(){s=this},{name:i}),s.c=o,s})(function(){var o;_u&&((o=n.y)==null||o.call(n)),r.__$f|=1,r.setState({})},typeof t.type=="function"?t.type.displayName||t.type.name:""))),tn=r,Ut(n)}});Ue("__e",function(e,t,n,r){Ut(),tn=void 0,e(t,n,r)});Ue("diffed",function(e,t){Ut(),tn=void 0;var n;if(typeof t.type=="string"&&(n=t.__e)){var r=t.__np,o=t.props,i=n.U;if(i)for(var s in i){var a=i[s];a===void 0||r&&s in r||(a.d(),i[s]=void 0)}if(r){i||(i={},n.U=i);for(var u in r){var c=i[u],l=r[u];c===void 0?(c=mu(n,u,l,o),i[u]=c):c.o(l,o)}}}e(t)});function mu(e,t,n,r){var o=t in e&&e.ownerSVGElement===void 0,i=ce(n);return{o:function(s,a){i.value=s,r=a},d:fe(function(){this.N=Gi;var s=i.value.value;r[t]!==s&&(r[t]=s,o?e[t]=s:s!=null&&(s!==!1||t[4]==="-")?e.setAttribute(t,s):e.removeAttribute(t))})}}Ue("unmount",function(e,t){if(typeof t.type=="string"){var n=t.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var o in r){var i=r[o];i&&i.d()}}}var s=t.__np;if(s){var a=t.props;for(var u in s)a[u]=s[u]}t.__np=void 0}else{var c=t.__c;if(c){var l=c.__$u;l&&(c.__$u=void 0,l.d())}}e(t)});Ue("__h",function(e,t,n,r){r<3&&(t.__$f|=2),e(t,n,r)});q.prototype.shouldComponentUpdate=function(e,t){if(this.__R)return!0;var n=this.__$u,r=n&&n.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(r||i||4&this.__$f)||1&this.__$f)return!0}else if(!(r||4&this.__$f)||3&this.__$f)return!0;for(var s in e)if(s!=="__source"&&e[s]!==this.props[s])return!0;for(var a in this.props)if(!(a in e))return!0;return!1};function dr(e,t){return H(function(){return ce(e,t)},[])}function eh(e,t){var n=te(e);return n.current=e,tn.__$f|=4,H(function(){return Un(function(){return n.current()},t)},[])}var vu=typeof requestAnimationFrame>"u"?setTimeout:function(e){var t=function(){clearTimeout(n),cancelAnimationFrame(r),e()},n=setTimeout(t,35),r=requestAnimationFrame(t)},yu=function(e){queueMicrotask(function(){queueMicrotask(e)})};function gu(){ur(function(){for(var e;e=Hi.shift();)fr.call(e)})}function Eu(){Hi.push(this)===1&&(S.requestAnimationFrame||vu)(gu)}function wu(){ur(function(){for(var e;e=ji.shift();)fr.call(e)})}function Gi(){ji.push(this)===1&&(S.requestAnimationFrame||yu)(wu)}function th(e,t){var n=te(e);n.current=e,J(function(){return fe(function(){return this.N=Eu,n.current()},t)},[])}function nh(e){var t=H(function(){return e()},[]);return J(function(){return t[Symbol.dispose]},[t]),t}function Ki(e,t){for(var n in t)e[n]=t[n];return e}function Fn(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function qi(e,t){var n=t(),r=nt({t:{__:n,u:t}}),o=r[0].t,i=r[1];return Zt(function(){o.__=n,o.u=t,dn(o)&&i({t:o})},[e,n,t]),J(function(){return dn(o)&&i({t:o}),e(function(){dn(o)&&i({t:o})})},[e]),n}function dn(e){try{return!((t=e.__)===(n=e.u())&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}var t,n}function io(e,t){this.props=e,this.context=t}function hr(e,t){function n(o){var i=this.props.ref;return i!=o.ref&&i&&(typeof i=="function"?i(null):i.current=null),t?!t(this.props,o)||i!=o.ref:Fn(this.props,o)}function r(o){return this.shouldComponentUpdate=n,re(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.__f=r.prototype.isReactComponent=!0,r.type=e,r}(io.prototype=new q).isPureReactComponent=!0,io.prototype.shouldComponentUpdate=function(e,t){return Fn(this.props,e)||Fn(this.state,t)};var so=S.__b;S.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),so&&so(e)};var Au=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function rh(e){function t(n){var r=Ki({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Au,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ao=function(e,t){return e==null?null:ee(ee(e).map(t))}
vendor: 5,139 bytes, line 2
2,oh={map:ao,forEach:ao,count:function(e){return e?ee(e).length:0},only:function(e){var t=ee(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ee},Su=S.__e;S.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k||[]),o.__c(e,t)}Su(e,t,n,r)};var co=S.unmount;function Vi(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Ki({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Vi(r,t,n)})),e}function Wi(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Wi(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function $e(){this.__u=0,this.o=null,this.__b=null}function zi(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function mt(){this.i=null,this.l=null}S.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),co&&co(e)},($e.prototype=new q).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=zi(r.__v),i=!1,s=function(){i||r.__z||(i=!0,n.__R=null,o?o(u):u())};n.__R=s;var a=n.__P;n.__P=null;var u=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=Wi(c,c.__c.__P,c.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.o.pop();)l.__P=a,l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},$e.prototype.componentWillUnmount=function(){this.o=[]},$e.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Vi(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&re(U,null,e.fallback);return o&&(o.__u&=-33),[re(U,null,t.__a?null:e.children),o]};var uo=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function bu(e){return this.getChildContext=function(){return e.context},e.children}function Cu(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){Mt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}Mt(re(bu,{context:t.context},e.__v),t.v)}function Tu(e,t){var n=re(Cu,{__v:e,h:t});return n.containerInfo=t,n}(mt.prototype=new q).__a=function(e){var t=this,n=zi(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),uo(t,e,r)):o()};n?n(i):i()}},mt.prototype.render=function(e){this.i=null,this.l=new Map;var t=ee(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},mt.prototype.componentDidUpdate=mt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){uo(e,n,t)})};var Yi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Pu=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Nu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ru=/[A-Z0-9]/g,$u=typeof document<"u",ku=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};q.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(q.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var lo=S.event;S.event=function(e){return lo&&(e=lo(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var Ou={configurable:!0,get:function(){return this.class}},fo=S.vnode;S.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")==-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||$u&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var u=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":u==="translate"&&a==="no"?a=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?s="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||ku(n.type)?u==="onfocus"?s="onfocusin":u==="onblur"?s="onfocusout":Nu.test(s)&&(s=u):u=s="oninput":i&&Pu.test(s)?s=s.replace(Ru,"-$&").toLowerCase():a===null&&(a=void 0),u==="oninput"&&o[s=u]&&(s="oninputCapture"),o[s]=a}}r=="select"&&(o.multiple&&Array.isArray(o.value)&&(o.value=ee(n.children).forEac
2h(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),o.defaultValue!=null&&(o.value=ee(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value}))),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Ou)):n.className&&(o.class=o.className=n.className),t.props=o})(e),e.$$typeof=Yi,fo&&fo(e)};var ho=S.__r;S.__r=function(e){ho&&ho(e),e.__c};var po=S.diffed;S.diffed=function(e){po&&po(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value)};function nn(e){return!!e&&e.$$typeof===Yi}function Iu(e){return nn(e)?Vs.apply(null,arguments):e}function ih(e){return!!e.__k&&(Mt(null,e),!0)}var Mu=0;function b(e,t,n,r,o,i){t||(t={});var s,a,u=t;if("ref"in u)for(a in u={},t)a=="ref"?s=t[a]:u[a]=t[a];var c={type:e,props:u,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Mu,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)u[a]===void 0&&(u[a]=s[a]);return S.vnode&&S.vnode(c),c}class Xi extends Error{constructor(){super(...arguments),this.name="TypescriptAssertionError"}}function sh(e){throw new Xi(`Received unexpected value ${JSON.stringify(e)} in an exhaustive switch/conditional block`)}function ah(e){throw new Xi(`Received unexpected value ${JSON.stringify(e)} in an exhaustive switch/conditional block`)}const ch=()=>e=>e;function vt({id:e},t){return`${e}${JSON.stringify(t?xu(t):{})}`}function xu(e){const t={};for(const n of Object.keys(e).sort((r,o)=>r.localeCompare(o)))t[n]=e[n];return t}function Lu(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function uh(e,t){var n={};{var r=e;for(var o in r){var i=r[o];i!=null&&(n[Lu(o)]=i)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(a=>"".concat(a,":").concat(this[a])).join(";")},writable:!1}),n}const Ji=10,pr=2;function Qi(e,t=pr){return Math.min(t**e,60)*1e3+Du()}function*_o(e=pr,t=Ji){for(let n=1;n<=t;n++)yield Qi(n,e)}function Du(){return Math.floor(Math.random()*100)}function lh({initialDelay:e=pr,maxAttempts:t=Ji}={}){return H(()=>{let n=_o(e,t);return{next:()=>n.next(),reset:()=>{n=_o(e,t)}}},[e,t])}class Uu extends Error{constructor(){super(...arguments),this.name="RetryError"}}async function fh(e,{shouldRetry:t=Fu,maxAttempts:n=3,initialRetryDelay:r}={}){let o;for(let i=1;i<=n;i++){i>1&&await Hu(Qi(i-1,r));try{return await e()}catch(s){if(o=s,!t(s))break;console.warn(`Failed to execute action on attempt ${i} of ${n}.`)}}throw o instanceof Error?o:new Uu("Failed to execute action after retrying.",{cause:o})}function Fu(e){return e!=null}async function Hu(e){return new Promise(t=>setTimeout(t,e))}var _r=function(e){return typeof e.children=="function"?e.children(e.v,e.i?e.i.value:void 0):e.children};_r.displayName="Item";function ju(e){var t=typeof e.when=="function"?e.when():e.when.value;if(!t){var n=e.fallback;return typeof n=="function"?n():n||null}return re(_r,{v:t,children:e.children})}ju.displayName="Show";function Bu(e){var t=H(function(){return new Map},[]),n=typeof e.each=="function"?e.each():e.each,r=n instanceof I?n.value:n;if(!r.length)return e.fallback||null;var o=new Set(t.keys()),i=r.map(function(s,a){o.delete(s);var u=t.get(s);if(u)u.i.peek()!==a&&(u.i.value=a);else{var c=ce(a),l=e.getKey?e.getKey(s,a):a;u={vnode:re(_r,{key:l,v:s,i:c,children:e.children}),i:c},t.set(s,u)}return u.vnode});return o.forEach(function(s){t.delete(s)}),re(U,null,i)}Bu.displayName="For";function dh(e){var t=dr(e);return t.name="useLiveSignal",t.peek()!==e&&(t.value=e),t}function hh(e){var t=dr(e);return"current"in t||Object.defineProperty(t,"current",Gu),t}var Gu={configurable:!0,get:function(){return this.value},set:function(e){this.value=e}};function ph({url:e,method:t="POST",credentials:n,headers:r,source:o,explicitSearchParams:i={},onResult:s,onError:a,fetch:u=globalThis.fetch}){return async c=>{const l=performance.now(),h=new Headers(typeof r=="function"?r(c):r);if(c.additionalHeaders)for(const[m,g]of Object.entries(c.additionalHeaders))h.set(m,g);const f=typeof t=="function"?t(c):t,d=(typeof o=="function"?o(c):o)??f!=="GET";h.has("Content-Type")||h.set("Content-Type","application/json"),h.has("Accept")||h.set("Accept","application/json"),h.set("Shopify-Checkout-Client","checkout-web/1.0");const v={method:f,headers:h,credentials:n,redirect:"manual"},_=new URL(typeof e=="function"?e(c):e);if(c.query.name&&_.searchParams.set("operationName",c.query.name),i&&Object.entries(i).forEac
2h(([m,g])=>{_.searchParams.set(m,g)}),f==="GET")c.variables&&JSON.stringify(c.variables)!=="{}"&&_.searchParams.set("variables",JSON.stringify(c.variables)),d?_.searchParams.set("query",c.query.source):_.searchParams.set("id",c.query.id),_.search.includes(";")&&(_.search=_.search.replace(/;/g,"%3B"));else{const m={variables:c.variables,operationName:c.query.name};d?m.query=c.query.source:m.id=c.query.id,v.body=JSON.stringify(m)}const y=new Request(_,v),p=await u(y).catch(m=>m);try{if(p instanceof Error)throw new qu(p);if(!p.ok)throw p.status===400?new Vu(p,c.query.name):new Hn(p,c.query.name);const m=p.headers.get("Content-Type")??"missing";if(!m.includes("application/json"))throw new vo(p,m,(await p.text()).substring(0,200),c.query.name);let g;try{g=await p.json()}catch(k){throw new Wu(p,_.toString(),c.query.name,k)}const{data:E,errors:A}=g;let w;A!=null&&A.length>0?w={data:void 0,error:new mo(A)}:E==null?w={data:void 0,error:new mo([{name:"NoDataError",message:"No data returned by GraphQL"}],"GraphQLExecutionError::NoDataReturned")}:w={data:E,error:void 0};const T=performance.now();return s?.({...c,request:y,response:p,result:w,start:l,end:T,duration:T-l}),w}catch(m){const g=performance.now(),E=m instanceof Hn||m instanceof vo?m.response:void 0;throw a?.({...c,request:y,response:E,error:m,start:l,end:g,duration:g-l}),m}}}
2class mo extends Error{constructor(t,n){const r=JSON.stringify(t.map(({message:o})=>o),null,2);super(`GraphQL execution failed with errors: ${r}`),this.errors=t,this.name="GraphQLExecutionError",this.groupingHash=n??zu(r)}}const Ku="GraphQL fetch failed with network failure:";class qu extends Error{constructor(t){super(`${Ku} ${t.message}`),this.error=t,this.name="GraphQLFetchNetworkError"}}class mr extends Error{constructor(t){super(t),this.message=t,this.name="GraphQLFetchHttpBaseError"}getGroupingHash(t){const n=t??"UNKNOWN NAME";return[this.name,n].join(":")}}class Hn extends mr{constructor(t,n){super(`GraphQL query [${n??"UNKNOWN NAME"}] fetch failed with status: ${t.status}`),this.response=t,this.queryName=n,this.name="GraphQLFetchHttpStatusError",this.groupingHash=this.getGroupingHash(n)}}class Vu extends Hn{constructor(t,n){super(t,n),this.response=t,this.queryName=n,this.name="GraphQLFetchHttpBadRequestError",this.groupingHash=this.getGroupingHash(n)}}class vo extends mr{constructor(t,n,r,o){super(`GraphQL UnsupportedContentType ${n}: ${r}`),this.response=t,this.contentType=n,this.contentPreview=r,this.queryName=o,this.name="GraphQLFetchHttpContentTypeError",this.groupingHash=this.getGroupingHash(o)}}class Wu extends mr{constructor(t,n,r,o){const i=o?` (${o.constructor.name}: ${o.message})`:"";super(`GraphQL JSON parse error for query [${r??"UNKNOWN NAME"}]: status ${t.status}, url ${n}${i}`),this.response=t,this.requestUrl=n,this.queryName=r,this.name="GraphQLFetchJsonParseError",this.groupingHash=this.getGroupingHash(r)}}function zu(e){return[{pattern:/syntax error/i,hash:"graphql_parsing_error"},{pattern:/No operation named/i,hash:"graphql_missing_operation_error"},{pattern:/Variable.*geolocation\.countryCode/i,hash:"invalid_country_code_error"},{pattern:/Variable.*coordinates\.(latitude|longitude)/i,hash:"invalid_coordinates_error"},{pattern:/Variable.*was provided invalid value/i,hash:"invalid_variable_error"},{pattern:/Cannot target merchandise with stableId/i,hash:"merchandise_stable_id_error"},{pattern:/Cannot return null for non-nullable field CreditCard/i,hash:"credit_card_field_error"},{pattern:/doesn't exist on type/i,hash:"graphql_undefined_field_error"},{pattern:/isn't a defined input type/i,hash:"graphql_undefined_input_type_error"},{pattern:/could not be composed from extendedFields/i,hash:"address_composition_error"},{pattern:/Invalid query string parameter/i,hash:"invalid_query_string_parameter_error"},{pattern:/Cannot return null for non-nullable field/i,hash:"graphql_non_nullable_field_error"}].find(({pattern:r})=>r.test(e))?.hash??"generic_graphql_execution_error"}class Yu extends Error{constructor(){super(...arguments),this.name="CheckoutGraphQLError"}}function me(e){return typeof e=="function"?e():e}function yo(e){return e?Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&"):""}class _h{constructor(t,n=new Map,{timing:r}={}){this.cache=n,this.timings=[],this.inflight=new Map,this.cacheWriteSequence=new Map,this.fetch=r?Xu(t,r.clientName,o=>this.timings.push(o)):t}read(t,n){return this.cache.get(typeof t=="string"?t:vt(t))}extract(){return Object.fromEntries(this.cache.entries())}mutate(t,{variables:n}={}){return this.run(t,{variables:n})}staticQuery(t,n={}){return this.internalQuery(t,n)}get reactiveEffectsEnabled(){return!0}query(t,n={}){const r=ce(void 0),o=ce(!1),i=ce(void 0),s=ce(!1);let a=0,u=Promise.resolve({}),c,l;const h=n.cache??!0,f=()=>{const p=(a??0)+1;return a=p,p},d=(p,m)=>{m===a&&(p.error?(i.value=p.error,r.value=void 0):(i.value=void 0,r.value=p.data),o.value=!1)},v=p=>{if(a===null)return Promise.resolve({});const m=f();l=yo(p.additionalHeaders);const g=(n.getCacheKey??vt)(t,p.variables),E=!p.forceNetwork&&(p.cache??h)&&!this.inflight.has(g)&&this.cache.has(g),A=this.internalQuery(t,{variables:p.variables,cache:p.cache??h,getCacheKey:n.getCacheKey,additionalHeaders:p.additionalHeaders,forceNetwork:p.forceNetwork});return s.value=E,A instanceof Promise?(o.value=!0,A.then(w=>(d(w,m),w))):(d(A,m),Promise.resolve(A))};if(this.reactiveEffectsEnabled)c=fe(()=>{if(me(n.skip)??!1){f(),o.value=!1;return}const m=me(n.variables),g=me(n.additionalHeaders),E=yo(g);u=v({variables:m,cache:h,additionalHeaders:g,forceNetwork:l!==void 0&&E!==l})});else if(!(me(n.skip)??!1)){const p=(n.getCacheKey??vt)(t,me(n.variables)),m=h?this.read(p):void 0;m==null?o.value=!0:(r.value=m,s.value=!0,u=Promise.resolve({data:m}))}const _=()=>{a!==null&&(a=null,c?.())};fe(()=>()=>_());
2const y={data:r,loading:o,error:i,isFromCache:s,refetch(p){return u=v({variables:p?.variables??me(n.variables),cache:!1,additionalHeaders:me(n.additionalHeaders),forceNetwork:!p?.deduplicate}),y},[Symbol.dispose]:_,then(p,m){return u.then(p,m)}};return y}internalQuery(t,{cache:n=!0,variables:r,getCacheKey:o,skip:i=!1,additionalHeaders:s,forceNetwork:a=!1}={}){const c=(o??vt)(t,r);if(i)return{data:this.cache.get(c)};if(!a){if(this.inflight.has(c))return this.inflight.get(c);if(n&&this.cache.has(c))return{data:this.cache.get(c)}}const l=(this.cacheWriteSequence.get(c)??0)+1;this.cacheWriteSequence.set(c,l);const h=(async()=>{try{const f=await this.run(t,{variables:r},s);return!f.error&&this.cacheWriteSequence.get(c)===l&&this.cache.set(c,f.data),f}finally{this.cacheWriteSequence.get(c)===l&&this.inflight.delete(c)}})();return this.inflight.set(c,h),h}async run(t,{variables:n}={},r){try{const o=await this.fetch({query:t,variables:n??{},...r&&{additionalHeaders:r}}),{data:i,error:s}=o;return i?{data:i}:{error:s}}catch(o){return{error:o instanceof Error?o:new Yu}}}}function Xu(e,t,n){return async r=>{const o=performance.now();try{return await e(r)}finally{n({clientName:t,operationName:r.query.name??r.query.id,startedAt:o,duration:Math.max(0,performance.now()-o)})}}}const Ju=50;function Qu(e,t){const n=new WeakMap,r=new Map,o=[];return function(...s){if(typeof window>"u")return e.apply(this,s);const a=s.length===1&&typeof s[0]=="object"&&!t;let u;a?u=s[0]:t&&t instanceof Function?u=t(...s):u=s[0];const c=a?n:r;if(c.has(u))return c.get(u);const l=e.apply(this,s);if(a)n.set(u,l);else if(r.set(u,l),o.push(u),r.size>Ju){const h=o[0];r.delete(h),o.shift()}return l}}const go={"America/Indiana":"America/Indiana/Indianapolis","America/Argentina":"America/Argentina/Buenos_Aires","Asia/Chongqing":"Asia/Shanghai","Asia/Istanbul":"Europe/Istanbul","Australia/ACT":"Australia/Sydney","Australia/LHI":"Australia/Lord_Howe","Australia/North":"Australia/Darwin","Australia/NSW":"Australia/Sydney","Australia/Queensland":"Australia/Brisbane","Australia/South":"Australia/Adelaide","Australia/Tasmania":"Australia/Hobart","Australia/Victoria":"Australia/Melbourne","Australia/West":"Australia/Perth","Brazil/Acre":"America/Rio_Branco","Brazil/DeNoronha":"America/Noronha","Brazil/East":"America/Sao_Paulo","Brazil/West":"America/Manaus","Canada/Atlantic":"America/Halifax","Canada/Central":"America/Winnipeg","Canada/Eastern":"America/Toronto","Canada/Mountain":"America/Edmonton","Canada/Newfoundland":"America/St_Johns","Canada/Pacific":"America/Vancouver","Canada/Saskatchewan":"America/Regina","Canada/Yukon":"America/Whitehorse","Chile/Continental":"America/Santiago","Chile/EasterIsland":"Pacific/Easter",Cuba:"America/Havana",Egypt:"Africa/Cairo",Eire:"Europe/Dublin","Europe/Kyiv"
2:"Europe/Kiev","Etc/Greenwich":"Etc/GMT","Etc/UCT":"UTC","Etc/Universal":"UTC","Etc/Zulu":"UTC",GB:"Europe/London","GB-Eire":"Europe/London","GMT+0":"Etc/GMT",GMT0:"Etc/GMT","GMTâ0":"Etc/GMT",Greenwich:"Etc/GMT",Hongkong:"Asia/Hong_Kong",Iceland:"Atlantic/Reykjavik",Iran:"Asia/Tehran",Israel:"Asia/Jerusalem",Jamaica:"America/Jamaica",Japan:"Asia/Tokyo",Kwajalein:"Pacific/Kwajalein",Libya:"Africa/Tripoli","Mexico/BajaNorte":"America/Tijuana","Mexico/BajaSur":"America/Mazatlan","Mexico/General":"America/Mexico_City",Navajo:"America/Denver",NZ:"Pacific/Auckland","NZ-CHAT":"Pacific/Chatham",Poland:"Europe/Warsaw",Portugal:"Europe/Lisbon",PRC:"Asia/Shanghai",ROC:"Asia/Taipei",ROK:"Asia/Seoul",Singapore:"Asia/Singapore",Turkey:"Europe/Istanbul",UCT:"UTC",Universal:"UTC","US/Alaska":"America/Anchorage","US/Aleutian":"America/Adak","US/Arizona":"America/Phoenix","US/Central":"America/Chicago","US/Eastern":"America/New_York","US/East-Indiana":"America/Indiana/Indianapolis","US/Hawaii":"Pacific/Honolulu","US/Indiana-Starke":"America/Indiana/Knox","US/Michigan":"America/Detroit","US/Mountain":"America/Denver","US/Pacific":"America/Los_Angeles","US/Pacific-New":"America/Los_Angeles","US/Samoa":"Pacific/Pago_Pago","W-SU":"Europe/Moscow",Zulu:"UTC"};function Zu(e){return Object.keys(go).some(t=>t===e)?go[e]:e}const hn=new Map;function Eo(e,t){const n=t!=null&&t.timeZone?Zu(t.timeZone):void 0,r=tl(e,{...t,timeZone:n});if(hn.has(r))return hn.get(r);const o=new Intl.DateTimeFormat(e,{...t,timeZone:n});return hn.set(r,o),o}const wo=Intl.DateTimeFormat("en",{hour:"numeric"}),Ao=typeof wo.resolvedOptions>"u"?void 0:wo.resolvedOptions();function el(e,t,n={}){if(Ao!=null&&n.hour12===!1&&Ao.hourCycle!=null&&(n.hour12=void 0,n.hourCycle="h23"),n.timeZone!=null&&n.timeZone==="Etc/GMT+12"){const o=new Date(e.valueOf()-432e5);return Eo(t,{...n,timeZone:"UTC"}
2).format(o)}return Eo(t,n).format(e)}function tl(e,t={}){return`${Array.isArray(e)?e.sort().join("-"):e}-${JSON.stringify(t)}`}const nl=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function rl(e){const t=e.split("-")[0].toLowerCase();return t&&nl.has(t)?"rtl":"ltr"}const ol=/[\p{Script=Adlam}\p{Script=Arabic}\p{Script=Hebrew}\p{Script=Mandaic}\p{Script=Nko}\p{Script=Samaritan}\p{Script=Syriac}\p{Script=Thaana}]/u;function mh(e){return ol.test(e)}const il=2;function sl(e){return al.get(e)??il}const al=new Map([["BHD",3],["BIF",0],["BYR",0],["CLF",4],["CLP",0],["DJF",0],["GNF",0],["HUF",2],["IQD",3],["ISK",0],["JOD",3],["JPY",0],["KMF",0],["KRW",0],["KWD",3],["LYD",3],["MGA",2],["MRO",5],["OMR",3],["PYG",0],["RWF",0],["TND",3],["UGX",0],["VND",0],["VUV",0],["XAF",0],["XAG",0],["XAU",0],["XBA",0],["XBB",0],["XBC",0],["XBD",0],["XDR",0],["XOF",0],["XPD",0],["XPF",0],["XPT",0],["XTS",0]]);function cl(e,t,{form:n,...r}={}){switch(n){case"auto":return ul(t,r,e);case"explicit":return es(t,r,e);case"name":return fl(t,r,e);case"plain":return ll(t,r,e);default:return vr(t,r,e)}}function ul(e,t={},n){return t.currency==null||n.currency==null||t.currency===n.currency?vr(e,t,n):es(e,t,n)}function Zi(e){return e.replace(/\s*[A-Z]{3}\s*/g,"")}function vr(e,t={},n){const r=t.currency||n.currency||"",o=hl(r,n),i=ns(n,t),s=n.numberFormatter({style:"currency",maximumFractionDigits:i,minimumFractionDigits:i,currencyDisplay:"code",...t}).format(e),a=Zi(s),u=o.prefixed&&/^[A-Za-z]+$/.test(o.symbol)?" ":"",c=o.prefixed?`${o.symbol}${u}${a}`:`${a} ${o.symbol}`;return e<0?`-${c.replace("-","").replace("â","")}`:c}function ll(e,t={},n){const r=yr(n,t),o=n.numberFormatter({style:"currency",useGrouping:!1,maximumFractionDigits:r,minimumFractionDigits:r,currencyDisplay:"code",...t}).format(e);return Zi(o)}function es(e,t={},n){const r=vr(e,t,n),o=t.currency||n.currency||"";return dl(o,r)?r:`${r} ${o}`}function fl(e,t={},n){const r=t.currency||n.currency,o=ns(n,t);return n.numberFormatter({maximumFractionDigits:o,minimumFractionDigits:o,...t,style:"currency",currency:r,currencyDisplay:"name"}).format(e)}const ts={SRD:{symbol:"SRD",prefixed:!0,explicit:!0},TRY:{symbol:"TL",prefixed:!1,explicit:!0},CHF:{symbol:"CHF",explicit:!0},KGS:{symbol:"лв",prefixed:!0}};function dl(e,t){return ts[e]?.explicit===!0||t!=null&&t.includes(e)}function hl(e,t){const n=e||t.currency,r=ts[n];if(r?.prefixed!==void 0)return{symbol:r.symbol,prefixed:r.prefixed};const o=n.substring(0,2),i=yr(t),s=t.numberFormatter({currency:n,style:"currency",currencyDisplay:"narrowSymbol",maximumFractionDigits:i,minimumFractionDigits:i}).format(0).replace(/[\u200E\u200F]/g,""),a=t.numberFormatter({currency:n,style:"currency",currencyDisplay:"code",maximumFractionDigits:i,minimumFractionDigits:i}).format(0).replace(/[\u200E\u200F]/g,"");if(r&&s!==a)return{symbol:r.symbol,prefixed:a.startsWith(n)};if(s===a){const h=a.replace(n,"").trim();return{symbol:a.replace(h,"").trimStart(),prefixed:a.startsWith(n)}}const u=a.replace(n,"").trim(),c=s.replace(u,"").trimStart(),l=s.startsWith(c);return{symbol:c.replace(o,""),prefixed:l}}function ns(e,t={}){return(t.currency||e.currency||"").toUpperCase()==="IQD"&&t.precision===void 0&&t.minimumFractionDigits===void 0&&t.maximumFractionDigits===void 0?0:yr(e,t)}function yr(e,t={}){let n=t.precision;if(n===void 0){const r=t.currency||e.currency||"";n=sl(r.toUpperCase())}return n}const rs=(e,t)=>e&&t?`${t}${e}`:"",pn=(e,t,n)=>e?rs(n,t):n||"",pl=(e,t,n)=>e?rs(n,t):t?`${t}æ§`:"",_l=new Map([["ko",pn],["ja",pl],["zh-CN",pn],["zh-TW",pn]]);function ml(e,t,n,r){const o=e.includes("-")&&e!=="zh-CN"&&e!=="zh-TW"?e.split("-")[0].toLowerCase():e,i=!!(r&&t&&n),s=_l.get(o);return s?s(i,n,t):i?`${t} ${n}`:t||""}const vl=new RegExp("^(?<language>[a-z]{2,3})(?:-(?<region>[a-zA-Z0-9]+))?$");class yl{constructor(t,n){this.language=t,this.region=n}toString(){return this.region?`${this.language}-${this.region}`:this.language}}function gl(e){if(!e)return null;const t=e.match(vl);return t?new yl(t.groups?.language,t.groups?.region):null}const os="latn",So=`-u-nu-${os}`;function bo(e){try{const t=new Intl.Locale(e);return new Intl.Locale(t.baseName,{numberingSystem:os}).toString()}catch{return El(e)}}function El(e){return e.includes("-u-nu-")?e.replace(/-u-nu-[a-z0-9]+/i,So):`${e}${So}`}const Ft="count",jn="scope",Pt=".";function vh(e){const t=new Map;return is(e,(n,r)=>t.set(n,r)),t}function is(e,t,n){Object.keys(e).forEach(r=>{const o=e[r],i=n?`${n}.${r}`:r;
2o!=null&&(typeof o=="string"?t(i,o):is(o,t,i))})}function ss(e,t,n){Object.keys(e).forEach(r=>{const o=e[r],i=n?`${n}.${r}`:r;o!=null&&(t(i,o),typeof o!="string"&&ss(o,t,i))})}function wl(e){const t=new Map;return ss(e,(n,r)=>t.set(n,r)),t}function Al(){return`${yt()}-${yt()}-${yt()}-${yt()}`}function yt(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)}class lt extends Error{constructor(t,n){super(`The value for "${t}" was not a string. Found ${JSON.stringify(n)} instead.`),this.name="TranslationNotStringError"}}class rt extends Error{constructor(t,n,r){super(`The key "${n}" is not a valid replacement for "${t}".`),this.rawTranslation=r,this.name="MissingReplacementError"}}const Ht=/(%{([^}]*)})|({{([^}]*)}})/g,Sl=/((?:%{([^}]*)}|{{([^}]*)}})[â¦.,!?;:)'"ââ]?)/g,bl=/(href="%{([^}]*)}")|(href="{{([^}]*)}}")/g,Cl={"&":"&","<":"<",">":">",'"':""","'":"'"},as="data-replacement-index";function Co(e){return String(e).replace(/[&<>"']/g,t=>Cl[t])}const Tl=["â¦",".",",","!","?",";",":",")","'",'"',"â","â"];function Pl(e,t,n,r){let o=t.endsWith("_html")?!0:void 0,i=!1;typeof r=="object"&&(o=r.dangerouslySetInnerHTML??o,i=r.noWrapElementReplacements??!1);try{if(typeof n=="object"&&Object.keys(n).length){const s=Rl(e,t,n);return Ml(e,s.translation,s.replacements,s.key,o,i)}else return o?Il(e,t):Nl(e,t)}catch(s){if(s instanceof rt)return s.rawTranslation;if(s instanceof Error)return e.onError?.(s),`I18n Error: ${s.message}`}}function Nl(e,t){const n=e.translations.get(t);if(n&&typeof n=="string")return n;throw new lt(t,n)}function Rl(e,t,n){let r;return Fl(n)?r=kl(e,t,n):Hl(n)?r=Ol(e,t,n):r=$l(e,t,n),{translation:r.translation,replacements:r.replacements,key:r.key}}function $l(e,t,n){const r=e.translations.get(t);if(typeof r!="string")throw new lt(t,r);return{translation:r,key:t,replacements:n}}function kl(e,t,n){const r=n[jn],o=t+Pt+r,i=e.translations.get(o),s=typeof i=="string"?i:i?.[r];if(typeof s!="string")throw new lt(o,s);return{translation:s,key:o,replacements:n}}function Ol(e,t,n){const r=n[Ft],o=e.pluralRules(e.locale).select(r),i=e.pluralRules(e.locale).resolvedOptions().pluralCategories,s=e.numberFormatter().format(r),a=t+Pt+o;let u=e.translations.get(a);if(u||i.includes("other")&&e.translations.has(`${t}${Pt}other`)&&(u=e.translations.get(`${t}${Pt}other`)),typeof u!="string")throw new lt(a,u);return{translation:u,key:a,replacements:{...n,[Ft]:s}}}function Il(e,t){const n=e.translations.get(t);if(typeof n!="string")throw new lt(t,n);return b(cs,{translation:n})}function Ml(e,t,n,r,o,i){return o?b(jl,{i18n:e,rawTranslation:t,replacements:n,translationKey:r,noWrapElementReplacements:i}):Ul(n)?xl(t,n,r):Ll(t,n,r,i)}function xl(e,t,n){return e.replace(Ht,r=>{let o;if(r.slice(0,1)==="%"?o=r.substring(2,r.length-1).trim():o=r.substring(2,r.length-2).trim(),o in t)return t[o];throw new rt(n,o,e)})}function Ll(e,t,n,r){const o=e.split(r?Sl:Ht).filter(s=>!!s),i={nextExtryIsReplacementKey:!1,matchIndex:0,splitTranslationWithReplacements:[],previousEntry:""};return o.reduce((s,a)=>{if(s.nextExtryIsReplacementKey){const u=a.trim();if(!(u in t))throw new rt(n,u,e);const c=s.matchIndex+1,l=Dl(t[u],s.previousEntry,c,r);return{nextExtryIsReplacementKey:!1,matchIndex:c,splitTranslationWithReplacements:[...s.splitTranslationWithReplacements,l],previousEntry:a}}return a.match(Ht)?{...s,nextExtryIsReplacementKey:!0,previousEntry:a}:{...s,nextExtryIsReplacementKey:!1,splitTranslationWithReplacements:[...s.splitTranslationWithReplacements,a],previousEntry:a}},i).splitTranslationWithReplacements}function Dl(e,t,n,r){const o=t.slice(-1),i=r&&Tl.includes(o);if(!nn(e))return i?`${e}${o}`:e;const s=Iu(e,{key:n});return i?b("span",{style:{whiteSpace:"nowrap"},children:[s,o]}):s}function Ul(e){return Object.values(e).every(t=>!nn(t))}function Fl(e){return jn in e&&typeof e[jn]=="string"}function Hl(e){return Ft in e&&typeof e[Ft]=="number"}function jl({i18n:e,rawTranslation:t,replacements:n,translationKey:r,noWrapElementReplacements:o}){const i=[];let s=t;try{s=t.replace(bl,a=>{const u=a.startsWith('href="%')?a.substring(8,a.length-2).trim():a.substring(8,a.length-3).trim();if(u in n)return`href="${Co(n[u])}"`;throw new rt(r,u,t)}).replace(Ht,a=>{const u=a.slice(0,1)==="%"?a.substring(2,a.length-1):a.substring(2,a.length-2).trim();if(u in n){if(!nn(n[u]))return Co(n[u]);i.push(n[u]);const c=o?' style="white-space: nowrap;"':"";return`<span ${as}="${i.length-1}"${c}></span>`}throw new rt(r,u,t)})}catch(a){a instanceof Error&&e.onError?.(a)}return b(cs,{translation:s,portals:i})}function cs({translation:e,portals:t=[]}){const n=te(null),[r,o]=nt([]);return Zt(()=>{const i=n.current;o(i?Array.from(i.querySelectorAll(`[${as}]`)):[])},[e]),b(U,{children:[b("span",{ref:n,dangerouslySetInnerHTML:{__html:e}}),t.map((i,s)=>{const a=r[s];return a?Tu(i,a):null})]})}const Bl="USD",To="en";class yh{constructor(t,n){this.pluralRules=Qu(Kl,(o,i={})=>`${o}${JSON.stringify(i)}`),this.numberFormats=new Map,this.translations=wl(n),this.locale=Gl(t.locale),this.localeDirection=t.direction??rl(this.locale),this.currency=t.currency&&Vl(t.currency)?t.currency:Bl;const r=t.fallbackTimeZone&&Po(t.fallbackTimeZone)?t.fallbackTimeZone:void 0;this.timeZone=Po(t.timeZone)?t.timeZone:r,this.onError=t.onError,this.uuid=t.uuid??Al,this.formattingLocale=bo(this.locale)}numberFormatter(t={}){const n=ql(this.formattingLocale,t);if(this.numberFormats.has(n))return this.numberFormats.get(n);let r;try{const c=new Intl.NumberFormat(this.formattingLocale,t);return this.numberFormats.set(n,c),c}catch(c){r=c}const{currencyDisplay:o,...i}=t,s=gr(this.locale),a=s?bo(s):void 0,u=[];o&&u.push({locale:this.formattingLocale,options:i}),a&&a!==this.formattingLocale&&(u.push({locale:a,options:t}),o&&u.push({locale:a,options:i}));for(const{locale:c,options:l}of u)try{const h=new Intl.NumberFormat(c,l);return this.numberFormats.set(n,h),h}catch(h){r=h;continue}throw r}formatCurrency(t,n){return cl(this,t,n)}formatDate(t,n){return el(t,this.formattingLocale,{timeZone:this.timeZone,...n})}formatName(t,n,r){return ml(this.locale,t,n,r)}translate(t,n,r){return Pl(this,t,n,r)}}function Gl(e=To){return gl(e)?.toString()??gr(e)??To}function gr(e){if(e)return e.match(/^([a-z]{2,3})(?:[-_].*)?$/i)?.[1]}function Kl(e,t={}){try{return new Intl.PluralRules(e,t)}catch(n){const r=gr(e);if(!r)throw n;return new Intl.PluralRules(r,t)}}function ql(e,t={}){return`${e}${JSON.stringify(t)}`}function Po(e){try{if(new Intl.DateTimeFormat(void 0,{timeZone:e}))return!0}catch{return!1}return!1}function Vl(e){try{return new Intl.NumberFormat(void 0,{style:"currency",currency:e}).format(123),!0}catch{return!1}}function Wl(...e){const t={};return e.forEach(n=>
2{Object.keys(n).forEach(r=>{t[r]?typeof n[r]=="string"?t[r]=n[r]:t[r]=Wl(t[r],n[r]):t[r]=n[r]})}),t}function C(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var zl=0;function Q(e){return"__private_"+zl+++"_"+e}function rn(e){return Object.entries(e).map(([t,n])=>({key:t,value:{stringValue:String(n)}}))}function Yl(e){return Object.entries(e).map(([t,n])=>({key:t,value:us(n)}))}function us(e){if(Array.isArray(e))return{arrayValue:{values:e.map(t=>us(t))}};switch(typeof e){case"boolean":return{boolValue:!!e};case"number":return{doubleValue:Number(e)};default:return{stringValue:String(e)}}}const Er=1,Xl=Jl(5,2,12);function _n(e){return typeof e=="number"&&Number.isFinite(e)}function mn(e,t,n){const r=n===null?"null":typeof n;throw new Error(`[OpenTelemetry] Invalid ${e} "${t}": value must be a finite number, got ${r}`)}function Jl(e,t,n){const r=[0];for(let o=0;o<n;o++){const i=Math.floor(e*t**o);r.push(i)}return r}var ve=Q("exporter"),G=Q("attributes"),M=Q("metrics"),ye=Q("logs");class gh{constructor({exporter:t,attributes:n}){Object.defineProperty(this,ve,{writable:!0,value:void 0}),Object.defineProperty(this,G,{writable:!0,value:void 0}),Object.defineProperty(this,M,{writable:!0,value:[]}),Object.defineProperty(this,ye,{writable:!0,value:[]}),C(this,ve)[ve]=t,C(this,G)[G]=n??{}}addAttributes(t){C(this,G)[G]={...C(this,G)[G],...t}}histogram({name:t,value:n,unit:r,description:o,bounds:i,attributes:s,scale:a,requiresKeepalive:u}){_n(n)||mn("histogram",t,n);const c=Date.now()*1e6;i?C(this,M)[M].push({name:t,type:"histogram",value:n,unit:r,description:o,timeUnixNano:c,attributes:s,bounds:i,requiresKeepalive:u}):C(this,M)[M].push({name:t,type:"exponential_histogram",value:n,unit:r,description:o,timeUnixNano:c,attributes:s,scale:a,requiresKeepalive:u})}counter({name:t,value:n,unit:r,description:o,attributes:i,requiresKeepalive:s}){_n(n)||mn("counter",t,n);const a=Date.now()*1e6;C(this,M)[M].push({name:t,type:"counter",value:n,unit:r,description:o,timeUnixNano:a,attributes:i,requiresKeepalive:s})}gauge({name:t,value:n,unit:r,description:o,attributes:i,requiresKeepalive:s}){_n(n)||mn("gauge",t,n);const a=Date.now()*1e6;C(this,M)[M].push({name:t,type:"gauge",value:n,unit:r,description:o,timeUnixNano:a,attributes:i,requiresKeepalive:s})}log({body:t,attributes:n,requiresKeepalive:r}){const o=Date.now()*1e6;C(this,ye)[ye].push({timeUnixNano:o,body:t,attributes:n,requiresKeepalive:r})}async exportMetrics(){C(this,M)[M].forEach(n=>{n.attributes={...C(this,G)[G],...n.attributes}});const t=C(this,M)[M];C(this,M)[M]=[],await this.exportByKeepalive(t,(n,r)=>C(this,ve)[ve].exportMetrics(this.aggregateMetrics(n),r))}async exportLogs(){const t=C(this,ye)[ye];C(this,ye)[ye]=[],await this.exportByKeepalive(t,(n,r)=>C(this,ve)[ve].exportLogs(this.formatLogs(n),r))}aggregateMetrics(t){const n={};return t.forEach(r=>{switch(r.type){case"histogram":Ql(n,r);break;case"exponential_histogram":Zl(n,r);break;case"counter":ef(n,r);break;case"gauge":tf(n,r);break}}),Object.values(n)}async exportByKeepalive(t,n){if(t.length===0)return;const r=[],o=[];t.forEach(s=>{var a;((a=s.requiresKeepalive)!==null&&a!==void 0?a:!0)?r.push(s):o.push(s)});const i=[r.length>0?n(r,{keepalive:!0}):void 0,o.length>0?n(o,{keepalive:!1}):void 0].filter(s=>s!==void 0);await Promise.all(i)}formatLogs(t){return t.map(n=>{const r={timeUnixNano:n.timeUnixNano,observedTimeUnixNano:n.timeUnixNano,attributes:Yl({...C(this,G)[G],...n.attributes})};return n.body&&(r.body={stringValue:n.body}),r})}}function Ql(e,t){var n;const{name:r,value:o,unit:i,description:s,timeUnixNano:a,attributes:u}=t,c=(n=t.bounds)!==null&&n!==void 0?n:Xl,l=new Array(c.length+1).fill(0);e[r]||={name:r,unit:i||"1",description:s,histogram:{aggregationTemporality:Er,dataPoints:[]}};for(let h=0;h<l.length;h++){const f=c[h];if(f===void 0)l[h]=1;else if(o<=f){l[h]=1;break}}e[r].histogram.dataPoints.push({startTimeUnixNano:a,timeUnixNano:a,count:1,sum:o,min:o,max:o,bucketCounts:l,explicitBounds:c,attributes:rn(u??{})})}function Zl(e,t){const{name:n,value:r,unit:o,description:i,timeUnixNano:s,attributes:a,scale:u}=t;e[n]||={name:n,unit:o||"1",description:i,exponentialHistogram:{aggregationTemporality:Er,dataPoints:[]}};const c=r<=0?0:r,l=u||3,h=2**l/Math.log(2),f=Math.ceil(Math.log(r)*h)-1,d=r<=0?1:0,v={offset:0,bucketCounts:[]},_={offset:r>0?f:0,bucketCounts:r>0?[1]:[]};e[n].exponentialHistogram.dataPoints.push({attributes:rn(a??{}),startTimeUnixNano:s,timeUnixNano:s,count:1,sum:c,scale:l,zeroCount:d,positive:_,negative:v,min:c,max:c,zeroThreshold:0})}function ef(e,t){const{name:n,value:r,unit:o,description:i,timeUnixNano:s,attributes:a}=t;e[n]||={name:n,unit:o||"1",description:i,sum:{aggregationTemporality:Er,isMonotonic:!0,dataPoints:[]}},e[n].sum.dataPoints.push({startTimeUnixNano:s,timeUnixNano:s,asDouble:r,attributes:rn(a??{})})}function tf(e,t){const{name:n,value:r,unit:o,description:i,timeUnixNano:s,attributes:a}=t;e[n]||={name:n,unit:o||"1",description:i,gauge:{dataPoints:[]}},e[n].gauge.dataPoints.push({startTimeUnixNano:s,timeUnixNano:s,asDouble:r,attributes:rn(a??{})})}const nf=50*1024;var je=Q("url"),ge=Q("serviceName"),Be=Q("logger"),Ge=Q("fetchFn"),Ee=Q("maxPayloadSizeBytes"),we=Q("retry");class Eh{constructor(t,n,r){var o;Object.defineProperty(this,je,{writable:!0,value:void 0}),Object.defineProperty(this,ge,{writable:!0,value:void 0}),Object.defineProperty(this,Be,{writable:!0,value:void 0}),Object.defineProperty(this,Ge,{writable:!0,value:void 0}),Object.defineProperty(this,Ee,{writable:!0,value:void 0}),Object.defineProperty(this,we,{writable:!0,value:void 0}),C(this,je)[je]=t.replace(/\/v1\/(logs|metrics|traces)\/?$/,""),C(this,ge)[ge]=n,C(this,Be)[Be]=r?.logger,C(this,Ge)[Ge]=r?.fetchFn,C(this,Ee)[Ee]=(o=r?.maxPayloadSizeBytes)!==null&&o!==void 0?o:nf,C(this,we)[we]=r?.retry}async exportMetrics(t,n){var r;const o=(r=n?.keepalive)!==null&&r!==void 0?r:!0;await this.exportBatches("/v1/metrics",[...t],i=>({resourceMetrics:[{resource:{attributes:[{key:"service.name",value:{stringValue:C(this,ge)[ge]}}]},scopeMetrics:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},metrics:i}]}]}),o,{splitEntry:rf,describeEntry:i=>({metricName:i.name,dataPointCount:ls(i)})})}async exportLogs(t,n){var r;const o=(r=n?.keepalive)!==null&&r!==void 0?r:!0;await this.exportBatches("/v1/logs",[...t],i=>({resourceLogs:[{resource:{attributes:[{key:"service.name",value:{stringValue:C(this,ge)[ge]}}]},scopeLogs:[{scope:{name:"open-telemetry-mini-client",version:"1.1.0",attributes:[]},logRecords:i}]}]}),o)}async exportTo(t,n,r){await this.exportSerializedWithRetry(this.serializeBody(t),n,r)}serializeBody(t){const n=JSON.stringify(t),r=new TextEncoder().encode(n).length;if(r>C(this,Ee)[Ee])throw new Ro(r,C(this,Ee)[Ee]);return{body:t,jsonBody:n}}async exportSerializedTo({body:t,jsonBody:n},r,o){var i;const s=await this.exporterFetch()(`${C(this,je)[je]}${r}`,{method:"POST",keepalive:o,headers:{"Content-Type":"application/json"},body:n});if((i=C(this,Be)[Be])===null||i===void 0||i.log({status:s.status}),!s.ok){if(s.status===400){const a=await s.text();throw new vn(`Invalid OpenTelemetry Data: ${a}`)}if(s.status===429||s.status===503){const a=await s.text(),u=s.headers.get("Retry-After"),c=u?{seconds:Number(u)}:void 0;throw new vn("Server did not accept data",{errorData:a,retryAfter:c,body:t})}if(s.status===401||s.status===403){const a=await s.text();throw new of(`Authentication failed: ${s.status} ${s.status===401?"Unauthorized":"Forbidden"}`,{errorData:a,body:t})}throw new vn(`Server responded with ${s.status}`)}}async exportSerializedWithRetry(t,n,r){const o=()=>this.exportSerializedTo(t,n,r);await(C(this,we)[we]?C(this,we)[we](o):o())}exporterFetch(){return C(this,Ge)[Ge]||fetch}async exportBatches(t,n,r,o,i){const s=this.serializedBatches(n,r,i);for(const a of s)await this.exportSerializedWithRetry(a,t,o)}serializedBatches(t,n,r){if(t.length===0)return[];try{return[this.serializeBody(n(t))]}catch(s){var o;if(!(s instanceof Ro))throw s;if(t.length>1){const c=Math.ceil(t.length/2);return[...this.serializedBatches(t.slice(0,c),n,r),...this.serializedBatches(t.slice(c),n,r)]}const a=t[0];if(a===void 0)throw s;const u=r==null||(o=r.splitEntry)===null||o===void 0?void 0:o.call(r,a);if(!u){var i;throw s.metricDetails=r==null||(i=r.describeEntry)===null||i===void 0?void 0:i.call(r,a),s}return[...this.serializedBatches([u[0]],n,r),...this.serializedBatches([u[1]],n,r)]}}}function rf(e){const t=ls(e);if(t<=1)return;const n=Math.ceil(t/2);return[No(e,0,n),No(e,n,t)]}function No(e,t,n){switch(!0){case"exponentialHistogram"in e:return{...e,exponentialHistogram:{...e.exponentialHistogram,dataPoints:e.exponentialHistogram.dataPoints.slice(t,n)}};case"histogram"in e:return{...e,histogram:{...e.histogram,dataPoints:e.histogram.dataPoints.slice(t,n)}};case"gauge"in e:return{...e,gauge:{...e.gauge,dataPoints:e.gauge.dataPoints.slice(t,n)}};case"sum"in e:return{...e,sum:{...e.sum,dataPoints:e.sum.dataPoints.slice(t,n)}};default:return fs(e)}}function ls(e){switch(!0){case"exponentialHistogram"in e:return e.exponentialHistogram.dataPoints.length;case"histogram"in e:return e.histogram.dataPoints.length;case"gauge"in e:return e.gauge.dataPoints.length;case"sum"in e:return e.sum.dataPoints.length;default:return fs(e)}}function fs(e){throw new Error(`Unhandled metric type: ${JSON.stringify(e)}`)}
2class vn extends Error{constructor(t,n){super(t),this.metadata=void 0,this.name="OpenTelemetryClientError",this.metadata=n}}class Ro extends Error{constructor(t,n){const r=typeof t=="number"&&n!==void 0;super(r?`Payload size ${t} exceeds ${n} bytes`:String(t)),this.name="PayloadTooLargeError",this.payloadSizeBytes=void 0,this.payloadSizeLimitBytes=void 0,this.metricDetails=void 0,r&&(this.payloadSizeBytes=t,this.payloadSizeLimitBytes=n)}}class of extends Error{constructor(t,n){super(t),this.name="AuthenticationFailedError",this.metadata=void 0,this.name="AuthenticationFailedError",this.metadata=n}}function sf(e){return ds(e).map(t=>t instanceof Error?t:new hs(`[${typeof t}] ${af(t).slice(0,10240)}`))}function ds(e,t=0){return t>=20?[e,"Truncated cause stack"]:e instanceof Error&&e.cause?[e,...ds(e.cause,t+1)]:[e]}function af(e){if(typeof e=="function")return`${e.name||"anonymous"}`;if(typeof e!="string")try{return JSON.stringify(e)??typeof e}catch{}return`${e}`}var hs=class extends Error{name="BugsnagInvalidError"},ps=/^\s*at .*(\S+:\d+|\(native\))/m,cf=/^(eval@)?(\[native code])?$/;function uf(e){return e.stack?e.stack.match(ps)?lf(e):ff(e):[]}function _s(e){if(e.indexOf(":")===-1)return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]?Number(t[2]):void 0,t[3]?Number(t[3]):void 0]}function lf(e){return e.stack.split(` 3`).filter(t=>!!t.match(ps)).map(t=>{let n=t.replace(/^\s+/,"").replace(/^.*?\s+/,""),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;let o=_s(r?r[1]:n),i=r&&n||void 0,s=["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0];return{method:i,file:s,lineNumber:o[1],columnNumber:o[2]}})}function ff(e){return e.stack.split(` 4`).filter(t=>!t.match(cf)).map(t=>{if(t.indexOf("@")===-1&&t.indexOf(":")===-1)return{method:t};let n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,i=_s(t.replace(n,""));return{method:o,file:i[0],lineNumber:i[1],columnNumber:i[2]}})}var yn="5",Ah=class{breadcrumbs=[];apiKey;plugins;appId;appType;appVersion;releaseStage;locale;userAgent;metadata;persistedMetadata;onError;onPostErrorListeners=[];endpoints;session;constructor(t){this.apiKey=t.apiKey,this.appType=t.appType,this.appId=t.appId,this.appVersion=t.appVersion,this.releaseStage=t.releaseStage,this.locale=t.locale,this.userAgent=t.userAgent,this.metadata=t.metadata,this.onError=t.onError,this.persistedMetadata={},this.endpoints=t.endpoints??{notify:"https://error-analytics-production.shopifysvc.com",sessions:"https://error-analytics-sessions-production.shopifysvc.com/observeonly"},this.plugins=t.plugins??[],this.plugins.forEach(n=>n.load(this)),this.leaveBreadcrumb("Bugsnag started",void 0,"state"),(t.withSessionTracking??!0)&&(this.session={id:this.getRandomUUID(),startedAt:new Date().toISOString(),events:{handled:0,unhandled:0}},this.startSession())}addMetadata(t){for(let n of Object.keys(t))this.persistedMetadata[n]=t[n]}getSessionId(){return this.session?.id}leaveBreadcrumb(t,n,r="manual"){this.breadcrumbs.push({name:t,metaData:n,type:r,timestamp:new Date().toISOString()})}notify(t,{errorClass:n,severity:r,severityType:o,handled:i=!0,metadata:s,context:a,groupingHash:u}={}){let c=sf(t),l={...this.metadata,...this.persistedMetadata,...s},h=this.buildBugsnagEvent(c,{errorClass:n,severityType:o,handled:i,severity:r,metadata:l,context:a,groupingHash:u});if((this.onError?.(h,t)??!0)&&this.releaseStage!=="development"){this.updateAndAppendSessionInformation(h);let f=this.sendToBugsnag(h);return this.onPostErrorListeners.forEach(d=>d(h,t)),f}return Promise.resolve()}addOnPostError(t){this.onPostErrorListeners.push(t)}updateAndAppendSessionInformation(t){this.session&&(t.unhandled?this.session.events.unhandled++:this.session.events.handled++,t.session=this.session)}buildBugsnagEvent(t,{errorClass:n,severity:r="error",severityType:o="handledException",handled:i,metadata:s={},context:a,groupingHash:u}){let c=new Date().toISOString(),{breadcrumbs:l,appId:h,appType:f,appVersion:d,releaseStage:v,locale:_,userAgent:y}=this,p=t.map((m,g)=>({errorClass:g===0?n??m.name:m.name,stacktrace:df(h,m),message:m.message,type:"browserjs"}));return{payloadVersion:yn,exceptions:p,severity:r,severityReason:{type:o}
4,unhandled:!i,app:{id:h,type:f,version:d,releaseStage:v},device:{time:c,locale:_,userAgent:y},breadcrumbs:l,context:a,metaData:s,groupingHash:u}}async startSession(){if(this.releaseStage==="development"){console.log("Skipping error logging session tracking in development mode");return}let{apiKey:t}=this,n={notifier:{name:"Bugsnag JavaScript",version:"7.22.2",url:"https://github.com/bugsnag/bugsnag-js"},app:{version:this.appVersion,releaseStage:this.releaseStage,type:this.appType},device:{id:this.appId,locale:this.locale,userAgent:this.userAgent},sessions:[this.session]};try{await fetch(this.endpoints.sessions,{method:"POST",headers:{"Content-Type":"application/json","Bugsnag-Api-Key":t,"Bugsnag-Payload-Version":yn,"Bugsnag-Sent-At":this.session?.startedAt??new Date().toISOString()},body:JSON.stringify(jt(n))})}catch(r){console.warn("[bugsnag-light] failed to start session"),console.warn(r)}}async sendToBugsnag(t){let{apiKey:n}=this,r={apiKey:n,notifier:{name:"Bugsnag JavaScript",version:"7.22.2",url:"https://github.com/bugsnag/bugsnag-js"},events:[t]};try{await fetch(this.endpoints.notify,{method:"POST",headers:{"Content-Type":"application/json","Bugsnag-Api-Key":n,"Bugsnag-Payload-Version":yn,"Bugsnag-Sent-At":t.device.time},body:JSON.stringify(jt(r))})}catch(o){console.warn("[bugsnag-light] failed to send an event"),console.warn(o)}}getRandomUUID(){try{return crypto.randomUUID()}catch{return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)})}}};function df(e,t){let n=uf(t).map(r=>{let o=r.file?.includes(e);return{method:r.method??"",file:r.file??"",lineNumber:r.lineNumber??0,columnNumber:r.columnNumber,inProject:o}});if(t instanceof hs){let r=n.findIndex(o=>o.method.endsWith("notify"));r>-1&&(n=n.slice(r+1))}return n}var hf=50;function jt(e,t=new Set,n=0){if(e===null||typeof e!="object")return e;if(n>=hf)return"[MaxDepth]";if(t.has(e))return"[Circular]";let r=new Set(t);if(r.add(e),Array.isArray(e))return e.map(i=>jt(i,r,n+1));let o={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=jt(e[i],r,n+1));return o}var ms=class vs extends Error{reason;constructor(t,n){super(t,n),this.name="BreadcrumbsPluginFetchError",Object.setPrototypeOf(this,vs.prototype)}};function bh(e,{metadata:t}={}){let n=window.onerror;window.onerror=(r,o,i,s,a)=>{a&&e.notify(a,{severityType:"unhandledException",handled:!1,metadata:t}),typeof n=="function"&&n.apply(window.onerror,[r,o,i,s,a])}}function Ch(e,{metadata:t}={}){window.addEventListener("unhandledrejection",n=>{n.reason&&n.reason instanceof Error&&n.reason.stack&&!(n.reason instanceof ms)&&e.notify(n.reason,{severityType:"unhandledPromiseRejection",handled:!1,metadata:t})})}var Th={load(e){e.addOnPostError(t=>{e.leaveBreadcrumb(t.exceptions[0].errorClass,{errorClass:t.exceptions[0].errorClass,errorMessage:t.exceptions[0].message,severity:t.severity},"error")})}};function ys(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Ph={load(e){"addEventListener"in self&&self.addEventListener("click",t=>{let n="[hidden]";try{let o=pf(t.target)?t.target:null;n=o?gs(o):"(Non-Element Target)"}catch{}let r=_f();e.leaveBreadcrumb("UI click",{targetSelector:n,targetFrame:r},"user")},!0)}};function pf(e){return ys(e)&&e.nodeType===Node.ELEMENT_NODE}function _f(){try{return window.self===window.top?"in-top-window":"in-same-origin-iframe"}catch{return"in-cross-origin-iframe"}}function gs(e){let t=e.tagName;if(e.id&&(t+=`#${e.id}`),e.className?.length&&(t+=`.${e.className.replace(/ /g,".")}`),!self.document.querySelectorAll)return t;try{if(self.document.querySelectorAll(t).length===1)return t}catch{return t}if(e.parentNode&&e.parentNode.childNodes.length>1){let n=Array.from(e.parentNode.children).indexOf(e)+1;t+=`:nth-child(${n})`}return self.document.querySelectorAll(t).length===1?t:e.parentElement?`${gs(e.parentElement)} > ${t}`:t}var Nh={load(e){let t=["log","debug","info","warn","error"].filter(n=>typeof console<"u"&&typeof console[n]=="function");for(let n of t){let r=console[n];console[n]=(...o)=>{e.leaveBreadcrumb("Console output",o.reduce((i,s,a)=>{let u="[Unknown value]";
4try{u=String(s)}catch{}if(u==="[object Object]")try{u=JSON.stringify(s)}catch{}return i[`[${a}]`]=u,i},{severity:n}),"log"),r.apply(console,o)}}}},Rh={load(e){if(!("addEventListener"in self))return;let t=r=>()=>e.leaveBreadcrumb(r,void 0,"navigation");self.addEventListener("pagehide",t("Page hidden"),!0),self.addEventListener("pageshow",t("Page shown"),!0),self.addEventListener("load",()=>{self.addEventListener("popstate",t("Navigated back"),!0)},!0),self.document?.addEventListener("DOMContentLoaded",t("DOMContentLoaded"),!0),self.location&&self.addEventListener("hashchange",r=>e.leaveBreadcrumb("Hash changed",{from:r.oldURL&&Bn(r.oldURL),to:Bn(r.oldURL?r.newURL:self.location.href),state:r.oldURL&&Es(self)},"navigation"),!0);let n=e.leaveBreadcrumb.bind(e);self.history&&self instanceof Window&&(typeof self.history.replaceState=="function"&&$o({fn:"replaceState",target:self.history,leaveBreadcrumb:n,win:self}),typeof self.history.pushState=="function"&&$o({fn:"pushState",target:self.history,leaveBreadcrumb:n,win:self}))}};function Bn(e){try{let t=new URL(e);return`${t.pathname}${t.search}${t.hash}`}catch{return e}}function Es(e){try{return e.history.state}catch{return{}}}function $o({fn:e,leaveBreadcrumb:t,target:n,win:r}){let o=n[e];n[e]=(i,s,a)=>{t(`History ${e}`,mf({win:r,state:i,title:s,url:a}),"navigation"),o.apply(n,[i,s,a])}}function mf({win:e,state:t,title:n,url:r}){let o=Bn(e.location.href);return{title:n,state:t,prevState:Es(e),to:r||o,from:o}}var $h={load(e){if(!("fetch"in self))return;let t=self.fetch;self.fetch=function(n,r){let o="GET",i;vf(n)?(i=n.url,o=n.method):i=n.toString(),r&&typeof r.method=="string"&&r.method.length&&(o=r.method);let s=e.leaveBreadcrumb.bind(e);return new Promise((a,u)=>{t(n,r).then(c=>{let l=c.headers?.get("x-request-id");ko({message:`fetch() ${c.status>=400?"failed":"succeeded"}`,url:i,leaveBreadcrumb:s,breadcrumbMetadata:{request:`${o} ${i}`,status:c.status,...l&&{requestId:l}}}),a(c)}).catch(c=>{ko({message:"fetch() error",url:i,leaveBreadcrumb:s,breadcrumbMetadata:{error:c?.message,request:`${o} ${i}`}}),u(new ms(c?.message,{cause:c}))})})}}};function vf(e){return e instanceof Request||ys(e)&&"url"in e}function ko({message:e,url:t,leaveBreadcrumb:n,breadcrumbMetadata:r}){t.startsWith("https://notify.bugsnag")||n(e,r,"request")}var Gn,ws=-1,ft=function(e){addEventListener("pageshow",(function(t){t.persisted&&(ws=t.timeStamp,e(t))}),!0)},As=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},wr=function(){var e=As();return e&&e.activationStart||0},de=function(e,t){var n=As(),r="navigate";return ws>=0?r="back-forward-cache":n&&(document.prerendering||wr()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},dt=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(o){Promise.resolve().then((function(){t(o.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},he=function(e,t,n,r){var o,i;return function(s){t.value>=0&&(s||r)&&((i=t.value-(o||0))||o===void 0)&&(o=t.value,t.delta=i,t.rating=(function(a,u){return a>u[1]?"poor":a>u[0]?"needs-improvement":"good"})(t.value,n),e(t))}},Ar=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},on=function(e){document.addEventListener("visibilitychange",(function(){document.visibilityState==="hidden"&&e()}))},Sr=function(e){var t=!1;return function(){t||(e(),t=!0)}},Ne=-1,Oo=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Bt=function(e){document.visibilityState==="hidden"&&Ne>-1&&(Ne=e.type==="visibilitychange"?e.timeStamp:0,yf())},Io=function(){addEventListener("visibilitychange",Bt,!0),addEventListener("prerenderingchange",Bt,!0)},yf=function(){removeEventListener("visibilitychange",Bt,!0),removeEventListener("prerenderingchange",Bt,!0)},Ss=function(){return Ne<0&&(Ne=Oo(),Io(),ft((function(){setTimeout((function(){Ne=Oo(),Io()}),0)}))),{get firstHiddenTime(){return Ne}}},br=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Mo=[1800,3e3],gf=function(e,t){t=t||{},br((function(){var n,r=Ss(),o=de("FCP"),i=dt("paint",(function(s){s.forEac
4h((function(a){a.name==="first-contentful-paint"&&(i.disconnect(),a.startTime<r.firstHiddenTime&&(o.value=Math.max(a.startTime-wr(),0),o.entries.push(a),n(!0)))}))}));i&&(n=he(e,o,Mo,t.reportAllChanges),ft((function(s){o=de("FCP"),n=he(e,o,Mo,t.reportAllChanges),Ar((function(){o.value=performance.now()-s.timeStamp,n(!0)}))})))}))},xo=[.1,.25],kh=function(e,t){t=t||{},gf(Sr((function(){var n,r=de("CLS",0),o=0,i=[],s=function(u){u.forEach((function(c){if(!c.hadRecentInput){var l=i[0],h=i[i.length-1];o&&c.startTime-h.startTime<1e3&&c.startTime-l.startTime<5e3?(o+=c.value,i.push(c)):(o=c.value,i=[c])}})),o>r.value&&(r.value=o,r.entries=i,n())},a=dt("layout-shift",s);a&&(n=he(e,r,xo,t.reportAllChanges),on((function(){s(a.takeRecords()),n(!0)})),ft((function(){o=0,r=de("CLS",0),n=he(e,r,xo,t.reportAllChanges),Ar((function(){return n()}))})),setTimeout(n,0))})))},bs=0,gn=1/0,gt=0,Ef=function(e){e.forEach((function(t){t.interactionId&&(gn=Math.min(gn,t.interactionId),gt=Math.max(gt,t.interactionId),bs=gt?(gt-gn)/7+1:0)}))},Cs=function(){return Gn?bs:performance.interactionCount||0},wf=function(){"interactionCount"in performance||Gn||(Gn=dt("event",Ef,{type:"event",buffered:!0,durationThreshold:0}))},z=[],Nt=new Map,Ts=0,Af=function(){var e=Math.min(z.length-1,Math.floor((Cs()-Ts)/50));return z[e]},Sf=[],bf=function(e){if(Sf.forEach((function(o){return o(e)})),e.interactionId||e.entryType==="first-input"){var t=z[z.length-1],n=Nt.get(e.interactionId);if(n||z.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};Nt.set(r.id,r),z.push(r)}z.sort((function(o,i){return i.latency-o.latency})),z.length>10&&z.splice(10).forEach((function(o){return Nt.delete(o.id)}))}}},Ps=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=Sr(e),document.visibilityState==="hidden"?e():(n=t(e),on(e)),n},Lo=[200,500],Oh=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},br((function(){var n;wf();var r,o=de("INP"),i=function(a){Ps((function(){a.forEach(bf);var u=Af();u&&u.latency!==o.value&&(o.value=u.latency,o.entries=u.entries,r())}))},s=dt("event",i,{durationThreshold:(n=t.durationThreshold)!==null&&n!==void 0?n:40});r=he(e,o,Lo,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),on((function(){i(s.takeRecords()),r(!0)})),ft((function(){Ts=Cs(),z.length=0,Nt.clear(),o=de("INP"),r=he(e,o,Lo,t.reportAllChanges)})))})))},Do=[2500,4e3],En={},Ih=function(e,t){t=t||{},br((function(){var n,r=Ss(),o=de("LCP"),i=function(u){t.reportAllChanges||(u=u.slice(-1)),u.forEach((function(c){c.startTime<r.firstHiddenTime&&(o.value=Math.max(c.startTime-wr(),0),o.entries=[c],n())}))},s=dt("largest-contentful-paint",i);if(s){n=he(e,o,Do,t.reportAllChanges);var a=Sr((function(){En[o.id]||(i(s.takeRecords()),s.disconnect(),En[o.id]=!0,n(!0))}));["keydown","click"].forEach((function(u){addEventListener(u,(function(){return Ps(a)}),{once:!0,capture:!0})})),on(a),ft((function(u){o=de("LCP"),n=he(e,o,Do,t.reportAllChanges),Ar((function(){o.value=performance.now()-u.timeStamp,En[o.id]=!0,n(!0)}))}))}}))};class Cf{constructor(t){this.to=t}}class Tf extends Error{constructor(){super(...arguments),this.name="NavigationError"}}function Kn(e,t,n,r){Object.defineProperty(e,"state",{value:t,writable:!1});const o=Pr(e,r);Object.defineProperty(e,"prefix",{value:o,writable:!1});const i=Vn(e.pathname.replace(o??"",""));return Object.defineProperty(e,"normalizedPath",{value:i,writable:!1}),Object.defineProperty(e,"key",{value:n,writable:!1}),e}function Rt(e,t){if(e instanceof URL){if(e.origin!==t.origin)throw new Tf(`You canât perform a client side navigation to ${e.href} from ${t.href}`);return new URL(e.href)}else if(typeof e=="object"){const{pathname:n,search:r,hash:o}=e,i=n??t.pathname,s=Pf(r),a=$t("#",o);return new URL(Uo(`${i}${s}${a}`,t.prefix),t.href)}else if(typeof e=="function")return Rt(e(t),t);return new URL(Uo(e,t.prefix),Cr(t.href))}function Uo(e,t){return t&&e.indexOf("/")===0?`${Cr(t)}${e.slice(1)}`:e}function Pf(e){return e==null?"":typeof e=="string"?$t("?",e):e instanceof URLSearchParams?$t("?",e.toString()):$t("?",Object.keys(e).reduce((t,n)=>`${t}${n}=${encodeURIComponent(e[n])}`,""))}function $t(e,t=""){return t.length===0||t[0]===e?t:`${e}${t}`}function qn(){return`${String(Date.now())}${Math.random()}`}function Cr(e){return e.length===0?"/":e[e.length-1]==="/"?e:`${e}/`}function Y(e){return e.length===1?e:e[e.length-1]==="/"?e.slice(0,-1):e}function Nf(e){return e[0]==="/"?e.slice(1):e}function Vn(e){return e[0]==="/"?Y(e):`/${Y(e)}`}function Tr(e,t,n,r){const o=Rf(e,t,r);if(n==null)return{matched:Y(o.remainderAbsolute)};if(typeof n=="function")return n(e)?{matched:Y(o.remainderAbsolute)}:void 0;if(typeof n=="string"){const i=Y(n);return i==="/"?o.remainderAbsolute==="/"?{matched:i,nextMatchedPathPrefix:i}:void 0:i[0]==="/"?o.remainderAbsolute.startsWith(i)?{matched:i,nextMatchedPathPrefix:i}:void 0:o.remainderRelative.startsWith(i)?{matched:i,nextMatchedPathPrefix:`${o.previousMatchedPathPrefix}${Vn(i)}`}:void 0}else if(n instanceof RegExp){const i=o.remainderRelative.match(n);if(i!=null&&i.index===0)return{matched:Y(i[0]),nextMatchedPathPrefix:`${o.previousMatchedPathPrefix}${Vn(i[0])}`};const s=o.remainderAbsolute.match(n);if(s==null||s.index!==0)return;const a=Y(s[0]);return{matched:a,nextMatchedPathPrefix:a}}}function Rf(e,t,n=""){const r=Pr(e,t)??"",o=n?`${r}${n}`:r,i=Nf(Y(e.pathname.replace(o,"")));return{previousMatchedPathPrefix:n,remainderRelative:i,remainderAbsolute:`${Cr(n)}${i}`}}function Mh(e,t){return Pr(e,t)!=null}function Pr(e,t){if(!t)return;if(typeof t=="string")return e.pathname.indexOf(t)===0?Y(t):void 0;const r=new RegExp(t.source).exec(e.pathname);return r!=null&&r.index===0?Y(r[0]):void 0}const Wn="_key";class xh{#e;#t;#i=new Set;#s=new Set;#n=!1;#r;#o;constructor(t,{prefix:n,state:r}={}){this.prefix=n,this.#e=ce(t?Kn(t,r??{},qn(),n):wn(n)),this.currentUrl=this.#e,this.#t=[this.#e.value.key],typeof window<"u"&&window.addEventListener("popstate",this.#u)}
4currentUrlMatches(t){return Tr(this.#e.value,this.prefix,t)!=null}navigate(t,{state:n={},replace:r=!1}={}){const o=this.#e.value,i=Rt(t,o);for(const d of this.#s)d(o,i);const s=qn(),a=Kn(i,n,s,this.prefix),u={...n,[Wn]:s},c=()=>{this.#n=!0,this.navigate(a,{replace:r})};if(!this.#n&&this.#c(a,c))return;this.#n=!1;const l=$f(a);try{history[r?"replaceState":"pushState"](u,"",l)}catch{window.location[r?"replace":"assign"](l);return}const h=this.#t.lastIndexOf(o.key);r?this.#t.splice(h,1,s):this.#t.splice(h+1,this.#t.length-h-1,s);const f=wn(this.prefix,s);this.#e.value=f,this.#a(o,f)}redirect(t){if(t==null)return;const n=this.#e.value,r=Rt(t,n);if(typeof window>"u")throw new Cf(r);const o=n.key;if(this.#r!=null){this.#r.to=r,this.#r.fromNavigationKey=o;return}this.#r={to:r,fromNavigationKey:o},window.requestAnimationFrame(()=>{const i=this.#r;this.#r=void 0,!(i==null||this.#e.value.key!==i.fromNavigationKey)&&this.navigate(i.to,{replace:!0})})}beforeNavigate(t){return this.#s.add(t),()=>{this.#s.delete(t)}}block(t=()=>!0){return this.#i.add(t),()=>{this.#i.delete(t)}}go(t){window.history.go(t)}back(t=-1){this.go(t)}forward(t=1){this.go(t)}resolve(t){return Rt(t,this.#e.value)}#u=()=>{const t=this.#e.value;if(t.pathname===window.location.pathname&&window.location.hash?.slice(1))return;const n=this.#t[0],r=wn(this.prefix,n),o=this.#t.lastIndexOf(window.history.state?.[Wn]??n),s=this.#t.lastIndexOf(t.key)-o,a=()=>{s&&(this.#n=!0,this.go(s))};if(!this.#n&&this.#c(r,a,!0)){this.#n=!0,this.go(-s);return}this.#n=!1,this.#e.value=r,this.#a(t,r)};#a(t,n){t.pathname===n.pathname||typeof window>"u"||(this.#o!=null&&window.cancelAnimationFrame(this.#o),this.#o=window.requestAnimationFrame(()=>{this.#o=void 0,document.body.focus()}))}#c(t,n,r=!1){return[...this.#i].some(o=>o(t,n,r))}}function wn(e,t){const{[Wn]:n,...r}=window.history.state??{};return Kn(new URL(window.location.href),r,n??t??qn(),e)}function $f(e){return`${e.pathname}${e.search}${e.hash}`}const Ns="http://localhost:8082",Rs="https://monorail-edge.shopifysvc.com",kf="/unstable/produce_batch",$s="/v1/produce";function Of(e){return`https://${new URL(e).hostname}`}function ks(e){return e.schemaId!==void 0}class If{constructor(t){this.producer=t}do(t,n){return ks(t)?this.producer.produce(t):this.producer.produceBatch(t)}}function Os(){if(typeof crypto<"u"&&crypto&&typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=new Array(36);for(let t=0;t<36;t++)e[t]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",e.map(t=>t.toString(16)).join("")}function ot(e,t=!0){return e&&Object.keys(e).length&&t?Object.keys(e).map(n=>({[Mf(n)]:e[n]})).reduce((n,r)=>({...n,...r})):e}function Mf(e){return e.split(/(?=[A-Z])/).join("_").toLowerCase()}function xf(e){return e.events.map(t=>{let n=!0,r=!0;return t&&t.options&&Object.prototype.hasOwnProperty.call(t.options,"convertEventCase")&&(n=!!t.options.convertEventCase),t&&t.options&&Object.prototype.hasOwnProperty.call(t.options,"convertMetaDataCase")&&(r=!!t.options.convertMetaDataCase),{schema_id:t.schemaId,payload:ot(t.payload,n),...t.metadata&&{metadata:ot(t.metadata,r)}}})}class Qe extends Error{name="MonorailUnableToProduceError";constructor(t){super(`Error producing to the Monorail Edge. Response received: ${JSON.stringify(t)}`),this.response=t,Object.setPrototypeOf(this,Qe.prototype)}}class Gt extends Error{name="MonorailInterceptedProduceError";constructor(t){super(`Response not from Monorail Edge. Response received: ${JSON.stringify(t)}`),this.response=t,Object.setPrototypeOf(this,Gt.prototype)}}class Nr extends Error{name="MonorailBatchProduceError";constructor(t){super(`Error producing to the Monorail Edge. Response received: ${JSON.stringify(t)}`),Object.setPrototypeOf(this,Nr.prototype),this.response=t}}class Kt extends Error{name="MonorailRequestError";constructor(t,n){super(`Error completing request. A network failure may have prevented the request from completing. Error: ${t}. Schemas: ${Array.from(new Set(n)).join(", ")}`),Object.setPrototypeOf(this,Kt.prototype)}}
4class qt extends Error{name="MonorailResponseReadError";constructor(t,n){super(`Error reading response from Monorail Edge. Status: ${n||"unknown"}. Error: ${t?.message||"Unknown error"}`),this.error=t,this.status=n,Object.setPrototypeOf(this,qt.prototype)}}class Ze{static withEndpoint(t){return new Ze(Of(t))}constructor(t=Ns,n={}){if(this.edgeDomain=t,this.optionsOrKeepalive=n,typeof n=="boolean"){this.keepalive=n,this.detectInterceptedErrorEnabled=!1;return}this.keepalive=n.keepalive??!1,this.detectInterceptedErrorEnabled=n.detectInterceptedErrorEnabled??!1}async produceBatch(t){const n={events:xf(t),metadata:ot(t.metadata)};let r;try{r=await fetch(this.produceBatchEndpoint(),{method:"post",headers:Is(t.metadata),body:JSON.stringify(n),keepalive:t.options?.keepalive??this.resolveKeepaliveFromEvents(t.events)})}catch(i){throw new Kt(i,t.events.map(s=>s.schemaId))}if(r.status===207){const i=await r.json();throw new Nr(i)}let o;try{o=await r.text()}catch(i){throw new qt(i,r.status)}if(!r.ok)throw!!!r.headers.get("x-request-id")&&this.detectInterceptedErrorEnabled?new Gt({status:r.status,message:o}):new Qe({status:r.status,message:o});return{status:r.status}}async produce(t){let n=!0;t&&t.options&&Object.prototype.hasOwnProperty.call(t.options,"convertEventCase")&&(n=!!t.options.convertEventCase);let r;try{r=await Lf({endpoint:this.produceEndpoint(),keepalive:t.options?.keepalive??this.keepalive,event:{...t,payload:ot(t.payload,n)}})}catch(i){throw new Kt(i,[t.schemaId])}if(!r)throw new Qe({message:"No response from edge"});let o;try{o=await r.text()}catch(i){throw new qt(i,r.status)}if(!r.ok)throw!!!r.headers.get("x-request-id")&&this.detectInterceptedErrorEnabled?new Gt({status:r.status,message:o}):new Qe({status:r.status,message:o});return{status:r.status}}resolveKeepaliveFromEvents(t){for(const n of t)if(n.options?.keepalive===!0)return!0;return this.keepalive}produceBatchEndpoint(){return this.edgeDomain+kf}produceEndpoint(){return this.edgeDomain+$s}}function Is(e){const t={"Content-Type":"application/json; charset=utf-8","X-Monorail-Edge-Event-Created-At-Ms":(e&&e.eventCreatedAtMs||Date.now()).toString(),"X-Monorail-Edge-Event-Sent-At-Ms":Date.now().toString(),"X-Monorail-Edge-Client-Message-Id":(e&&e.clientMessageId||Os()).toString()};return e&&e.userAgent&&(t["User-Agent"]=e.userAgent),e&&e.remoteIp&&(t["X-Forwarded-For"]=e.remoteIp),e&&e.deviceInstallId&&(t["X-Monorail-Edge-Device-Install-Id"]=e.deviceInstallId),e&&e.client&&(t["X-Monorail-Edge-Client"]=e.client),e&&e.clientOs&&(t["X-Monorail-Edge-Client-OS"]=e.clientOs),t}async function Lf({endpoint:e,event:t,keepalive:n}){const r=t.metadata?{clientMessageId:t.metadata?.clientMessageId,eventCreatedAtMs:t.metadata?.eventCreatedAtMs,consent:t.metadata?.consent,consent_provider:t.metadata?.consent_provider,consent_version:t.metadata?.consent_version}:void 0;return fetch(e??Rs+$s,{method:"post",headers:Is(t.metadata),body:JSON.stringify({schema_id:t.schemaId,payload:t.payload,metadata:r&&ot(r,!0)}),keepalive:n})}class Rr{static printWelcomeMessage(t){console.log(`%cð from Monorail%c 5 6We've noticed that you're${t?"":" not"} running in debug mode. As such, we will ${t?"produce":"not produce"} Monorail events to the console. 7 8If you want Monorail events to ${t?"stop":"start"} appearing here, %cset debugMode=${(!t).toString()}%c, for the Monorail Log Producer in your code.`,"font-size: large;","font-size: normal;","font-weight: bold;","font-weight: normal;")}constructor(t){this.sendToConsole=t,t&&Rr.printWelcomeMessage(t)}async produce(t){return this.sendToConsole&&console.log("Monorail event produced",t),new Promise(n=>{n(t)})}produceBatch(t){return this.sendToConsole&&console.log("Monorail Batch event produced",t),new Promise(n=>{n(t)})}}class ze{static createLogProducer(t){return new ze(new Rr(t.debugMode),t.middleware||[])}static createHttpProducerWithEndpoint(t,n=[]){return new ze(Ze.withEndpoint(t),n)}static createHttpProducer(t){return new ze(t.production?new Ze(Rs,t.options):new Ze(Ns,t.options),t.middleware||[])}static buildMiddlewareChain(t,n=0){return n===t.length?this.identityFn:r=>t[n].do(r,this.buildMiddlewareChain(t,n+1))}constructor(t,n){this.producer=t,this.middleware=n,this.executeChain=ze.buildMiddlewareChain(this.middleware.concat(new If(t)))}produce(t){return t.metadata={eventCreatedAtMs:Date.now(),clientMessageId:Os(),...t.metadata},this.executeChain(t)}produceBatch(t){return this.executeChain(t)}}class Df{constructor(t){this.version=t.version}}class Lh{eventsAwaitingConsent=[];constructor(t,n=()=>!1){if(!t?.provider)throw new $r("ConsentTrackingMiddleware requires an instance of ConsentTrackingProvider");this.isStrictlyNecessary=n,this.provider=t.provider}
8async do(t,n){if(ks(t)){const r=await this.provider.annotateEvent(t);return this.isConsentGivenForEmission(r)?(await this.processBufferedEvents(n),n(r)):this.isStrictlyNecessary(r)?n(r):(this.eventsAwaitingConsent.push(t),Promise.resolve({status:0,message:"Consent not granted and event not marked strictly necessary, event not sent"}))}else{if(this.isConsentGivenForEmission(await this.provider.annotateEvent(t.events[0]))){await this.processBufferedEvents(n);const i=await Promise.all(t.events.map(s=>this.provider.annotateEvent(s)));return n({...t,events:i})}const o=t.events.filter(i=>this.isStrictlyNecessary(i)?!0:(this.eventsAwaitingConsent.push(i),!1));if(o.length>0){const i=await Promise.all(o.map(s=>this.provider.annotateEvent(s)));return n({...t,events:i})}return Promise.resolve({status:0,message:"Consent not granted for any event, and no event marked strictly necessary, event batch not sent"})}}isConsentGivenForEmission(t){const n=t.metadata?.consent,r=this.provider.getRequiredConsentForEmission();return!!(Array.isArray(n)&&n.some(o=>r.includes(o)))}async processBufferedEvents(t){if(this.eventsAwaitingConsent.length===0)return;const n=this.eventsAwaitingConsent;this.eventsAwaitingConsent=[];const r=await Promise.all(n.map(o=>this.provider.annotateEvent(o)));await t({events:r})}}class $r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,$r.prototype)}}const Uf="__default",Fo="__quiltRouterScroll",Ff={};function Hf(e){return typeof window.requestIdleCallback=="function"?window.requestIdleCallback(e):window.setTimeout(e,0)}function jf(e){e!=null&&(typeof window.cancelIdleCallback=="function"?window.cancelIdleCallback(e):typeof e=="number"&&window.clearTimeout(e))}const Bf=typeof window>"u"?()=>{}:Zt;function Gf(e,{id:t=Uf,manual:n=!1,include:r=Kf,persist:o="sessionStorage"}={}){const i=e.currentUrl.value,s=te(null),a=te(),u=te(),c=H(()=>o==="memory"?Ff:(()=>{try{return JSON.parse(sessionStorage.getItem(Fo)??"{}")}catch{return{}}})(),[o]),l=Se(()=>{const h=s.current??document.documentElement;if(!r(i))return qf;let f=c[i.key];if(f){const _=f[t];_==null?(f[t]=0,d(0)):d(_)}else f={[t]:0},c[i.key]=f,d(0);return v(),()=>{f[t]=h.scrollTop,v(),u.current!=null&&(window.cancelAnimationFrame(u.current),u.current=void 0)};function d(_){u.current=window.requestAnimationFrame(()=>{h.scrollTop=_,u.current=void 0})}function v(){o==="sessionStorage"&&(jf(a.current),a.current=Hf(()=>{try{sessionStorage.setItem(Fo,JSON.stringify(c))}catch{}}))}},[i.normalizedPath]);return Bf(()=>{if(!n)return l()},[l]),{ref:s,restore:l}}function Kf(){return!0}function qf(){}function Vf(e){const t=e.currentUrl.value;J(()=>{if(typeof window>"u")return;const n=t.hash;if(!n||n.length<=1)return;const r=n.substring(1),o=document.getElementById(r);o&&window.requestAnimationFrame(()=>{o.scrollIntoView()})},[t.hash])}const Ms=er(null);class Wf extends Error{constructor(){super(...arguments),this.name="PrefetcherError"}}function zf(e){let t=0;const n=new Set,r=new Set;return{registerRoutes(a){const u=new Set,c=new Set;function l(h,f=[]){const{children:d,match:v,renderPrefetch:_}=h,y=v?[...f,v]:f;if(_!=null){const p=y.map(Yf).join(",");if(c.has(p))throw new Wf(`Duplicate prefetch registration for match chain "${p}"`);c.add(p);const m={id:s(),matches:y,render:_};u.add(m),r.add(m)}if(d!=null)for(const p of d)l(p,y)}for(const h of a)l(h);return u.size>0&&i(),()=>{if(u.size!==0){for(const h of u)r.delete(h);u.clear(),i()}}},getMatches:o,listenForMatch(a,u){function c(){u(o(a))}return n.add(c),()=>{n.delete(c)}}};function o(a){const u=[];for(const c of r){const l=Xf(a,e,c.matches);typeof l=="string"&&u.push({id:c.id,matched:l,render:c.render})}return u}function i(){for(const a of n)a()}function s(){return`Prefetch${t++}`}}function Yf(e){return e==null?"":typeof e=="string"?e:e instanceof RegExp?e.source:e.toString()}function Xf(e,t,n){if(n.length===0)return"";let r,o="";for(const i of n){const s=Tr(e,t.prefix,i,r);if(s==null)return!1;r=s.nextMatchedPathPrefix??r,o=s.matched}return o}function Ke({event:e,handler:t,...n}){return Jf(e,t,n),null}function Jf(e,t,{target:n,once:r,passive:o,capture:i}={}){J(()=>{const s=n||window,a=ed(),u=Zf(),c=r&&!a?Qf(s,e,t):t;return a||u?(s.addEventListener(e,c,{once:r,passive:o,capture:i}),()=>{s.removeEventListener(e,c,{capture:i})}):(s.addEventListener(e,c,i),()=>{s.removeEventListener(e,c,i)})},[e,t,n,r,o,i])}function Qf(e,t,n){return function(o){n(o),e.removeEventListener(t,n)}}let qe=null;function Zf(){if(qe!==null)return qe;try{const e=Object.defineProperty({},"passive",{get(){qe=!0}});document.addEventListener("test",Vt,e)}catch{qe=!1}return document.removeEventListener("test",Vt),qe}let Ve=null;function ed(){if(Ve!==null)return Ve;try{const e=Object.defineProperty({},"once",{get(){Ve=!0}});document.addEventListener("test",Vt,e)}catch{Ve=!1}return document.removeEventListener("test",Vt),Ve}function Vt(){}const td=150,nd=hr(function({router:t,children:n}){const r=H(()=>zf(t),[t]),[o,i]=nt(null),[s,a]=nt([]),u=te(null),c=te(null),{current:l}=te(rd());J(()=>{if(o!=null)return r.listenForMatch(o,a)},[r,o]);const h=()=>{u.current!=null&&(window.clearTimeout(u.current),u.current=null,c.current=null)},f=Se(({target:p})=>{if(p==null)return;const m=Et(p);if(m!=null){if(u.current){if(We(m,c.current))return;h()}c.current=m,u.current=window.setTimeout(()=>{h(),i(m),a(r.getMatches(m))},td)}},[r]),d=Se(({target:p,relatedTarget:m})=>
8{if(p==null){h();return}if(o==null&&u.current==null)return;const g=Et(p),E=m&&Et(m);u.current!=null&&We(g,c.current)&&!We(E,c.current)&&h(),We(g,o)&&!We(E,o)&&(i(null),a([]))},[o]),v=Se(({target:p})=>{if(h(),p==null)return;const m=Et(p);m!=null&&(i(m),a(r.getMatches(m)))},[r]),_=o?b("div",{style:{visibility:"hidden"},children:s.map(({id:p,matched:m,render:g})=>b("div",{children:g({url:o,matched:m})},p))}):null,y=l?b(U,{children:[b(Ke,{passive:!0,event:"mouseover",handler:f}),b(Ke,{passive:!0,event:"focusin",handler:f}),b(Ke,{passive:!0,event:"mouseout",handler:d}),b(Ke,{passive:!0,event:"focusout",handler:d})]}):null;return b(U,{children:[b(Ms.Provider,{value:r,children:n}),b(Ke,{passive:!0,event:"mousedown",handler:v}),y,_]})});function rd(){return typeof navigator>"u"||!("connection"in navigator)||!navigator.connection?.saveData}function We(e,t){return e==null&&e===t||e!=null&&t!=null&&e.href===t.href}function Et(e){if(!(e instanceof HTMLElement))return;const t=e.closest("[href], [data-href]");if(t==null||!(t instanceof HTMLElement))return;const n=t.getAttribute("href")||t.getAttribute("data-href");try{return n?new URL(n,window.location.href):void 0}catch{return}}const Dh=hr(function({children:t,router:n}){return b(nd,{router:n,children:[t,b(od,{router:n}),b(id,{router:n})]})});function od({router:e}){return Gf(e),null}function id({router:e}){return Vf(e),null}const sd={}.hasOwnProperty;function ad(...e){let t="";for(const n of e)n&&(t=xs(t,cd(n)));return t}function cd(e){if(typeof e=="string")return e;if(typeof e!="object")return"";if(Array.isArray(e))return ad(...e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();let t="";for(const n in e)sd.call(e,n)&&e[n]&&(t=xs(t,n));return t}function xs(e,t){return t?e?`${e} ${t}`:t:e}function Uh(e,t){const n=typeof t=="number"?String(t):`${t[0].toUpperCase()}${t.substring(1)}`;return`${e}${n}`}const ud=er(null);function ld(e,t,n){ar(ud)?.perform(e,t,n)}const fd=er(null);function An(e,{scripts:t,styles:n,suspense:r,cacheErrors:o=!0}={}){const{id:i}=e,s=Se(()=>e.resolve({cacheErrors:o}),[e,o]),{snapshot:a,subscribe:u}=H(()=>({snapshot(){return e.resolved},subscribe(l){return e.subscribe(l)}}),[e]),c=qi(u,a);if(dd(i,{scripts:t,styles:n}),r&&c==null)throw typeof window>"u"?new Promise(l=>{setTimeout(()=>{l(s())},10)}):new Promise(l=>{setTimeout(async()=>{l(await s())},0)});return c instanceof Error?{id:i,resolved:null,error:c,loading:!1,load:s}:{id:i,resolved:c,error:null,loading:c==null,load:s}}function dd(e,{scripts:t,styles:n}={}){const r=ar(fd);ld(()=>{r&&e&&r.markAsUsed(e,{scripts:t,styles:n})},r?.serverAction)}function hd({id:e,load:t}){let n,r,o=!0;const i=e?.(),s=new Set;return{get id(){return i},get resolved(){return n},resolve:async c=>{const l=c?.cacheErrors??!0;return r?o||=l:(o=l,r=a()),r},subscribe(c){return s.add(c),()=>{s.delete(c)}}};async function a(){let c=!1;try{return n=pd(await t()),c=!0,u(),n}catch(l){const h=l instanceof Error?l:void 0;return o&&(n=h,u()),h}finally{c||(r=void 0,o=!0)}}function u(){for(const c of s)c(n)}}function pd(e){if(e==null)return null;const t=typeof e=="object"&&"default"in e?e.default:e;return t??null}function _d({name:e,fallback:t,children:n}){const r=H(()=>e?vd(e):void 0,[e]);return r===void 0?b($e,{fallback:t,children:n}):b(md,{namespace:r,fallback:t,children:n},r)}class md extends q{render(){const t=this.__v;return t&&(this.mask??=[this.props.namespace,0],t.__m=this.mask),b($e,{fallback:this.props.fallback,children:this.props.children})}}function vd(e){return`S${yd(e)}`}function yd(e){return e.length===0?"0":Array.from(e,t=>t.codePointAt(0).toString(36)).join("_")}function Fh({id:e,load:t,displayName:n,suspense:r=!0,suspenseName:o,renderLoading:i=gd,renderError:s=Ad,useError:a,usePreload:u,usePrefetch:c}){const l=hd({id:e,load:t}),h=n??wd(l.id),f="immediate",d="immediate";function v(w){const{resolved:T,load:k,loading:V,error:x}=An(l,{scripts:f,styles:d,suspense:r});if(a?.(x,w),x)return b(U,{children:s(x)});let W=null;const Mr=T?b(T,{...w}):null;return r?Mr:(V?W=i(w):W=Mr,b(U,{children:[W,V&&b(Sd,{load:k})]}))}function _(w){if(!r)return b(v,{...w});const T=i(w)??null,k=typeof o=="function"?o(w):o;return k===void 0?b($e,{fallback:T,children:b(v,{...w})}):b(_d,{name:k,fallback:T,children:b(v,{...w})})}v.displayName=`Suspender(${h})`,_.displayName=`Async(${h})`;function y(w){const{load:T}=An(l,{styles:"eventually",scripts:"eventually",cacheErrors:!1}),k=u?.(w);return Se(()=>(T(),k?.()??Ho),[T,k])}function p(w){const{load:T}=An(l,{styles:"soon",scripts:"soon",cacheErrors:!1}),k=c?.(w);return Se(()=>(T(),k?.()??Ho),[T,k])}function m(w){const T=y(w);return J(()=>T(),[T]),null}m.displayName=`Async.Preload(${n})`;function g(w){const T=p(w);return J(()=>T(),[T]),null}g.displayName=`Async.Prefetch(${n})`;function E(){const w=qi(l.subscribe,()=>l.resolved);return w instanceof Error?"failed":w==null?"loading":"loaded"}const A=_;return Reflect.defineProperty(A,"load",{value:()=>l.resolve(),writable:!1}),Reflect.defineProperty(A,"preload",{value:()=>l.resolve({cacheErrors:!1}),writable:!1}),Reflect.defineProperty(A,"Preload",{value:m,writable:!1}),Reflect.defineProperty(A,"Prefetch",{value:g,writable:!1}),Reflect.defineProperty(A,"usePreload",{value:y,writable:!1}),Reflect.defineProperty(A,"usePrefetch",{value:p,writable:!1}),Reflect.defineProperty(A,"useLoadState",{value:E,writable:!1}),A}function Ho(){}function gd(){return null}const jo="Component",Ed=/([^/]*)\.\w+$/;function wd(e){return e?Ed.exec(e)?.[1]??jo:jo}function Ad(e){return null}function Sd({load:e}){return J(()=>{e()},[e]),null}const sn=Symbol.for("RemoteUi::Retain"),an=Symbol.for("RemoteUi::Release"),Wt=Symbol.for("RemoteUi::RetainedBy");class Ls{constructor(){this.memoryManaged=new Set}add(t){this.memoryManaged.add(t),t[Wt].add(this),t[sn]()}release(){for(const t of this.memoryManaged)t[Wt].delete(this),t[an]();this.memoryManaged.clear()}}function kr(e){return!!(e&&e[sn]&&e[an])}function Sn(e,{deep:t=!0}={}){return zn(e,t,new Map)}function zn(e,t,n){const r=n.get(e);if(r!=null)return r;const o=kr(e);
8if(o&&e[sn](),n.set(e,o),t){if(Array.isArray(e)){const i=e.reduce((s,a)=>zn(a,t,n)||s,o);return n.set(e,i),i}if(zt(e)){const i=Object.keys(e).reduce((s,a)=>zn(e[a],t,n)||s,o);return n.set(e,i),i}}return n.set(e,o),o}function Bo(e,{deep:t=!0}={}){return Yn(e,t,new Map)}function Yn(e,t,n){const r=n.get(e);if(r!=null)return r;const o=kr(e);if(o&&e[an](),n.set(e,o),t){if(Array.isArray(e)){const i=e.reduce((s,a)=>Yn(a,t,n)||s,o);return n.set(e,i),i}if(zt(e)){const i=Object.keys(e).reduce((s,a)=>Yn(e[a],t,n)||s,o);return n.set(e,i),i}}return o}function zt(e){if(e==null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t==null||t===Object.prototype}const wt="_@f",bn="_@fn";function bd(e){const t=typeof self<"u"&&self.name||globalThis.location?.origin||"unknown",n=e.uuid();let r=null;const o=new Map,i=new Map,s=new Map,a=new Map;return{encode:u,decode:c,async call(l,h){const f=new Ls,d=i.get(l);if(d==null){const v=a.get(l)||"unknown",_=new Error(`[${t}] You attempted to call a function that was already released. (function: ${v}, endpoint: ${n}${r!=null?`, endpoint terminated ${Date.now()-r}ms ago`:""})`);throw _.name="RemoteFunctionReleasedError",_}try{const v=kr(d)?[f,...d[Wt]]:[f];return await d(...c(h,v))}finally{f.release()}},release(l){const h=i.get(l);h&&(i.delete(l),o.delete(h),a.set(l,h.name||"unknown"))},terminate(){r=Date.now(),o.clear(),i.clear(),s.clear(),a.clear()}};function u(l,h=new Map){if(l==null)return[l];const f=h.get(l);if(f)return f;if(typeof l=="object"){if(Array.isArray(l)){h.set(l,[void 0]);const v=[],y=[l.map(p=>{const[m,g=[]]=u(p,h);return v.push(...g),m}),v];return h.set(l,y),y}if(zt(l)){h.set(l,[void 0]);const v=[],y=[Object.keys(l).reduce((p,m)=>{const[g,E=[]]=u(l[m],h);return v.push(...E),{...p,[m]:g}},{}),v];return h.set(l,y),y}}if(typeof l=="function"){if(o.has(l)){const y=o.get(l),p=[{[wt]:y}];return h.set(l,p),p}const v=e.uuid();o.set(l,v),i.set(v,l);const _=[{[wt]:v,[bn]:l.name||String(l).slice(0,100)}];return h.set(l,_),_}const d=[l];return h.set(l,d),d}function c(l,h){if(typeof l=="object"){if(l==null)return l;if(Array.isArray(l))return l.map(f=>c(f,h));if(wt in l){const f=l[wt];if(s.has(f))return s.get(f);let d=0,v=!1,_=null;const y=()=>{d-=1,d===0&&(v=!0,_=Date.now(),s.delete(f),e.release(f))},p=()=>{d+=1},m=new Set(h),g=bn in l&&l[bn]||"unknown",E=(...A)=>{if(v){const w=new Error(`[${t}] You attempted to call a function that was already released. (function: ${g}, endpoint: ${n}${_!=null?`, released ${Date.now()-_}ms ago`:""}, retained by ${m.size})`);throw w.name="RemoteFunctionReleasedError",w}if(!s.has(f)){const w=new Error(`[${t}] You attempted to call a function that was already revoked. (function: ${g}, endpoint: ${n}${r!=null?`, endpoint terminated ${Date.now()-r}ms ago`:""}, retained by ${m.size})`);throw w.name="RemoteFunctionRevokedError",w}return e.call(f,A)};Object.defineProperties(E,{[an]:{value:y,writable:!1},[sn]:{value:p,writable:!1},[Wt]:{value:m,writable:!1}});for(const A of m)A.add(E);return s.set(f,E),E}if(zt(l))return Object.keys(l).reduce((f,d)=>({...f,[d]:c(l[d],h)}),{})}return l}}const Go=0,Cn=1,Ko=2,qo=3,Vo=5,Tn=6;class Wo extends Error{constructor(t){const{callId:n,error:r,result:o}=t,i=r?` Error: ${String(r)}`:"",s=o==null?"":` Result: ${JSON.stringify(o)}`;super(`No resolver found for call ID: ${n}${i}${s}`),this.callId=void 0,this.error=void 0,this.result=void 0,this.groupingHash="RemoteUI::MissingResolverError",this.name="MissingResolverError",this.callId=n,this.error=r,this.result=o}}function Cd(e,{uuid:t=Td,createEncoder:n=bd,callable:r}={}){let o=!1,i=e;const s=new Map,a=new Map,u=Pd(f,r),c=n({uuid:t,release(_){l(qo,[_])},call(_,y,p){const m=t(),g=d(m,p),[E,A]=c.encode(y);return l(Vo,[m,_,E],A),g}});return i.addEventListener("message",h),{call:u,replace(_){const y=i;i=_,y.removeEventListener("message",h),_.addEventListener("message",h)},expose(_){for(const y of Object.keys(_)){const p=_[y];typeof p=="function"?s.set(y,p):s.delete(y)}},callable(..._){if(r!=null)for(const y of _)Object.defineProperty(u,y,{value:f(y),writable:!1,configurable:!0,enumerable:!0})},terminate(){l(Ko,void 0),v(),i.terminate&&i.terminate()}};function l(_,y,p){o||i.postMessage(y?[_,y]:[_],p)}async function h(_){if(o)return;const{data:y}=_;if(Nd(y))switch(y[0]){case Ko:{v();break}case Go:{const p=new Ls,[m,g,E]=y[1],A=s.get(g);try{if(A==null)throw new Error(`No '${g}' method is exposed on this endpoint`);const[w,T]=c.encode(await A(...c.decode(E,[p])));l(Cn,[m,void 0,w],T)}catch(w){const{name:T,message:k,stack:V}=w;throw l(Cn,[m,{name:T,message:k,stack:V}]),w}finally{p.release()}break}case Cn:{const[p,m,g]=y[1],E=a.get(p);if(E==null)throw new Wo({callId:p,error:m,result:g});E(...y[1]),a.delete(p);break}case qo:{const[p]=y[1];c.release(p);break}case Tn:{const[p,m,g]=y[1],E=a.get(p);if(E==null)throw new Wo({callId:p,error:m,result:g});E(...y[1]),a.delete(p);break}case Vo:{const[p,m,g]=y[1];try{const E=await c.call(m,g),[A,w]=c.encode(E);l(Tn,[p,void 0,A],w)}catch(E){const{name:A,message:w,stack:T}=E;throw l(Tn,[p,{name:A,message:w,stack:T}]),E}break}}}
8function f(_){return(...y)=>{if(o)return Promise.reject(new Error("You attempted to call a function on a terminated web worker."));if(typeof _!="string"&&typeof _!="number")return Promise.reject(new Error(`Canât call a symbol method on a remote endpoint: ${_.toString()}`));const p=t(),m=d(p),[g,E]=c.encode(y);return l(Go,[p,_,g],E),m}}function d(_,y){return new Promise((p,m)=>{a.set(_,(g,E,A)=>{if(E==null)p(A&&c.decode(A,y));else{const w=new Error;Object.assign(w,E),m(w)}})})}function v(){var _;o=!0,s.clear(),a.clear(),(_=c.terminate)===null||_===void 0||_.call(c),i.removeEventListener("message",h)}}function Td(){return`${At()}-${At()}-${At()}-${At()}`}function At(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)}function Pd(e,t){let n;if(t==null){if(typeof Proxy!="function")throw new Error("You must pass an array of callable methods in environments without Proxies.");const r=new Map;n=new Proxy({},{get(o,i){if(r.has(i))return r.get(i);const s=e(i);return r.set(i,s),s}})}else{n={};for(const r of t)Object.defineProperty(n,r,{value:e(r),writable:!1,configurable:!0,enumerable:!0})}return n}function Nd(e){return Array.isArray(e)&&typeof e[0]=="number"&&(e[1]==null||Array.isArray(e[1]))}function Hh(e){return{postMessage:(...t)=>e.postMessage(...t),addEventListener:(...t)=>e.addEventListener(...t),removeEventListener:(...t)=>e.removeEventListener(...t),terminate(){e.close()}}}const Yt="remote-ui::ready";function jh(e,{terminate:t=!0,targetOrigin:n="*"}={}){var r;if(typeof window>"u")throw new Error("You can only run fromIframe() in a browser context, but no window was found.");const o=new WeakMap;let i;function s(u){u.source===e.contentWindow&&u.data===Yt&&(window.removeEventListener("message",s),i())}(r=e.contentWindow)===null||r===void 0||r.postMessage(Yt,n);const a=new Promise(u=>{i=u,window.addEventListener("message",s)});return{async postMessage(u,c){var l;await a,(l=e.contentWindow)===null||l===void 0||l.postMessage(u,n,c)},addEventListener(u,c){const l=h=>{h.source===e.contentWindow&&c(h)};o.set(c,l),self.addEventListener(u,l)},removeEventListener(u,c){const l=o.get(c);l!=null&&(o.delete(c),self.removeEventListener(u,l))},terminate(){window.removeEventListener("message",s),t&&e.remove()}}}function Bh({targetOrigin:e="*"}={}){if(typeof self>"u"||self.parent==null)throw new Error("This does not appear to be a child iframe, because there is no parent window.");const{parent:t}=self,n=()=>t.postMessage(Yt,e);window.addEventListener("message",o=>{o.source!==t||document.readyState!=="complete"||o.data===Yt&&n()}),document.readyState==="complete"?n():document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&n()});const r=new WeakMap;return{postMessage(o,i){t.postMessage(o,e,i)},addEventListener(o,i){const s=a=>{a.source===t&&i(a)};r.set(i,s),self.addEventListener(o,s)},removeEventListener(o,i){const s=r.get(i);s!=null&&(r.delete(i),self.removeEventListener(o,s))}}}function Gh({children:e,router:t,href:n,onClick:r,...o}){const i=s=>{r?.(s),!(s.defaultPrevented||s.shiftKey||s.ctrlKey||s.metaKey)&&(s.preventDefault(),t.navigate(n))};return b("a",{href:t.resolve(n).href,onClick:i,...o,children:e})}function Kh(e,t){return Rd(t),b($d,{routes:t,router:e})}function Rd(e){const t=ar(Ms)??void 0;J(()=>{if(t!=null)return t.registerRoutes(e)},[t,e])}const $d=hr(function e({routes:t,router:n,parentMatchedPath:r}){let o;for(const d of t){const v=Tr(n.currentUrl.value,n.prefix,d.match,r);if(v!=null){o={...v,route:d};break}}if(o==null)return null;const{route:i,nextMatchedPathPrefix:s,matched:a}=o,{render:u,redirect:c,children:l}=i,h=s??r;let f=null;return u?f=u({url:n.currentUrl.value,matched:a,children:l&&b(e,{routes:l,router:n,parentMatchedPath:h})}):l?f=b(e,{routes:l,router:n,parentMatchedPath:h}):c&&n.redirect(c),f});function kd(e){return typeof window>"u"||typeof e!="string"?void 0:new URL(e,window.location.href)}function Od(e){const t=URL.createObjectURL(new Blob([`importScripts(${JSON.stringify(e.href)})`])),n=new Worker(t),r=n.terminate.bind(n);return n.terminate=()=>{URL.revokeObjectURL(t),r()},n}const Or=new WeakMap;function qh(e){const t=kd(e);
8function n({createMessenger:r=Od,...o}={}){if(t){const i=Cd(r(t),o),{call:s}=i;return Or.set(s,i),s}if(typeof e=="function")return new Proxy({},{get(i,s){return async(...a)=>(await e())[s](...a)}});if(typeof window>"u")return new Proxy({},{get(i,s){return()=>{throw new Error("You canât call a method on a worker on the server.")}}});throw new Error("Could not create a suitable fallback")}return Reflect.defineProperty(n,"url",{value:t}),n}function Vh(e,t){const n=Ds(e);return n?.expose(t),n!=null}function Wh(e){const t=Ds(e);return t?.terminate(),Or.delete(e),t!=null}function Ds(e){return Or.get(e)}const Id=0,Md=1,xd=2,Ld=3,Dd=4,Ud=0,Xt=1,zh=2,Us=3;function Fd(e){return e!=null&&e.kind===Us}const Pe=Symbol("RootId");function Hd({mount:e,insertChild:t,removeChild:n,updateProps:r,updateText:o}){const i=new Map([[Id,e],[xd,n],[Md,t],[Dd,r],[Ld,o]]);return(s,...a)=>i.get(s)(...a)}function Yh(){const e=new Set,t=new Map,n=new Map;let r=null,o="unmounted";const i={id:Pe,kind:Ud,children:[],version:0},s=new Map([[Pe,i]]),a=Hd({mount:d=>{const v=s.get(Pe),_=d.map(y=>et(y,Pn));v.version+=1,v.children=_,o="mounted";for(const y of _)Sn(y),h(y);l(v).then(()=>{c("mount")})},insertChild:(d,v,_,y)=>{const p=s.get(d??Pe),{children:m}=p;let g,E;if(d===y?g=p:y!==!1&&(g=s.get(y??Pe)),g){const A=_.id,w=g.children,T=w.findIndex(V=>V.id===A),[k]=w.splice(T,1);E=k,d!==y&&(g.version+=1,l(g))}else E=et(_,Pn),Sn(E),h(E);v===m.length?m.push(E):m.splice(v,0,E),p.version+=1,l(p)},removeChild:(d,v)=>{const _=s.get(d??Pe),{children:y}=_,[p]=y.splice(v,1);p&&(_.version+=1,f(p),l(_).then(()=>{Bo(p)}))},updateProps:(d,v)=>{const _=s.get(d),y={..._.props};Sn(v),Object.keys(v).forEach(p=>{const m=v[p],g=y[p];if(Nn(g)&&f(g),Ir(m)){const E=et(m,Pn);h(E)}}),Object.assign(_.props,v),_.version+=1,l(_).then(()=>{for(const p of Object.keys(v))Bo(y[p])})},updateText:(d,v)=>{const _=s.get(d);_.text=v,_.version+=1,l(_)}});return{get state(){return o},receive:a,attached:{root:i,get({id:d}){var v;return(v=s.get(d))!==null&&v!==void 0?v:null},subscribe({id:d},v){let _=n.get(d);return _==null&&(_=new Set,n.set(d,_)),_.add(v),()=>{const y=n.get(d);y&&(y.delete(v),y.size===0&&n.delete(d))}}},flush:u,on(d,v){let _=t.get(d);return _==null&&(_=new Set,t.set(d,_)),_.add(v),()=>{const y=t.get(d);y&&(y.delete(v),y.size===0&&t.delete(d))}}};function u(){var d;return(d=r)!==null&&d!==void 0?d:Promise.resolve()}function c(d){const v=t.get(d);if(v)for(const _ of v)_()}function l(d){var v;return r=(v=r)!==null&&v!==void 0?v:new Promise(_=>{setTimeout(()=>{const y=[...e];r=null,e.clear();for(const p of y){const m=n.get(p.id);if(m)for(const g of m)g(p)}_()},0)}),e.add(d),r}function h(d){if(s.set(d.id,d),d.kind===Xt&&"props"in d){const{props:v={}}=d;Object.keys(v).forEach(_=>{const y=v[_];Nn(y)&&h(y)})}if("children"in d)for(const v of d.children)h(v)}
8function f(d){if(s.delete(d.id),d.kind===Xt&&"props"in d){const{props:v={}}=d;Object.keys(v).forEach(_=>{const y=v[_];Nn(y)&&f(y)})}if("children"in d)for(const v of d.children)f(v)}}function Pn(e){return e.version=0,e}function et(e,t){if((e.kind===Us||e.kind===Xt)&&e.children.forEach(n=>et(n,t)),e.kind===Xt&&"props"in e){const{props:n}=e;for(const r of Object.keys(n)){const o=n[r];Ir(o)&&(n[r]=et(o,t))}}return t(e)}function Ir(e){return Fd(e)&&"id"in e&&"children"in e}function Nn(e){return Ir(e)&&"version"in e}function jd(){const e=[];return jc()&&e.push("analytics"),Mn()&&e.push("marketing"),xn()&&e.push("sale_of_data"),Bc()&&e.push("preferences"),e}function Bd(e,t){if(t==="v1"){const n=jd();return{...e,metadata:{...e?.metadata,consent:n,consent_provider:"consent-tracking-api",consent_version:t}}}else throw new cn(t||"unknown")}class Xh extends Df{async annotateEvent(t){return Promise.resolve(Bd(t,this.version))}getRequiredConsentForEmission(){if(this.version==="v1")return["analytics","marketing"];throw new cn(this.version||"unknown")}}class cn extends Error{constructor(t){super(`Version ${t} is not supported by the consent-tracking-api provider`),this.name="MonorailConsentTrackingApiProviderVersionError",Object.setPrototypeOf(this,cn.prototype)}}export{lh as $,te as A,Id as B,Xt as C,rh as D,zh as E,uh as F,ut as G,vo as H,Wu as I,mo as J,Us as K,qu as L,Hn as M,cu as N,hl as O,Xd as P,hr as Q,Sn as R,U as S,H as T,ah as U,Uh as V,oh as W,er as X,nn as Y,Iu as Z,Zt as _,sh as a,Df as a$,qi as a0,q as a1,qh as a2,Bo as a3,Vh as a4,Wh as a5,hh as a6,Cd as a7,jh as a8,Eh as a9,yh as aA,mh as aB,le as aC,j as aD,xn as aE,Bc as aF,Mn as aG,jc as aH,_i as aI,pi as aJ,wi as aK,Vr as aL,Kd as aM,_h as aN,ph as aO,Wl as aP,Th as aQ,Ph as aR,Nh as aS,Rh as aT,$h as aU,bh as aV,Ch as aW,Oh as aX,Ih as aY,kh as aZ,xh as a_,gh as aa,vh as ab,Bh as ac,Qd as ad,Yo as ae,vt as af,xu as ag,Tu as ah,vn as ai,Ah as aj,Jd as ak,Xh as al,Lh as am,qt as an,Kt as ao,Qe as ap,ze as aq,Vs as ar,Mt as as,re as at,Yd as au,Vd as av,qd as aw,Ka as ax,Nn as ay,Yh as az,ch as b,zd as b0,Zd as b1,nh as b2,Gd as b3,S as b4,Hh as b5,Wd as b6,$e as b7,Ku as b8,Gh as b9,Mh as ba,Dh as bb,dl as bc,Kh as bd,ih as be,qs as bf,sl as c,Fh as d,dr as e,eh as f,ad as g,J as h,ju as i,fe as j,nt as k,dh as l,I as m,ur as n,Un as o,th as p,Se as q,fh as r,Bu as s,Dd as t,b as u,Ld as v,xd as w,ar as x,ce as y,Md as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.