PageSourceSearch

https://www.sanitairecommercial.com/cdn/shopifycloud/checkout-web/assets/c1/sandbox.BHWel2fs.worker.js

js sanitairecommercial.com collected 2026-09-26 13:25:18 UTC 150,362 bytes, 3 lines download raw bytes

1var __freeze=Object.freeze;var __defProp=Object.defineProperty;var __defProps=Object.defineProperties;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty;var __propIsEnum=Object.prototype.propertyIsEnumerable;var __typeError=msg=>{throw TypeError(msg)};var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:true,configurable:true,writable:true,value}):obj[key]=value;var __spreadValues=(a,b)=>{for(var prop in b||(b={}))if(__hasOwnProp.call(b,prop))__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b)){if(__propIsEnum.call(b,prop))__defNormalProp(a,prop,b[prop])}return a};var __spreadProps=(a,b)=>__defProps(a,__getOwnPropDescs(b));var __objRest=(source,exclude)=>{var target={};for(var prop in source)if(__hasOwnProp.call(source,prop)&&exclude.indexOf(prop)<0)target[prop]=source[prop];if(source!=null&&__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(source)){if(exclude.indexOf(prop)<0&&__propIsEnum.call(source,prop))target[prop]=source[prop]}return target};var __publicField=(obj,key,value)=>__defNormalProp(obj,typeof key!=="symbol"?key+"":key,value);var __accessCheck=(obj,member,msg)=>member.has(obj)||__typeError("Cannot "+msg);var __privateGet=(obj,member,getter)=>(__accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj));var __privateAdd=(obj,member,value)=>member.has(obj)?__typeError("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value);var __privateSet=(obj,member,value,setter)=>(__accessCheck(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value);var __privateMethod=(obj,member,method)=>(__accessCheck(obj,member,"access private method"),method);var __template=(cooked,raw)=>__freeze(__defProp(cooked,"raw",{value:__freeze(raw||cooked.slice())}));var __async=(__this,__arguments,generator)=>{return new Promise((resolve,reject)=>{var fulfilled=value=>{try{step(generator.next(value))}catch(e){reject(e)}};var rejected=value=>{try{step(generator.throw(value))}catch(e){reject(e)}};var step=x=>x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())})};var _a;var ja=C=>{throw TypeError(C)};var Hs=(C,j,z)=>j.has(C)||ja("Cannot "+z);var P=(C,j,z)=>(Hs(C,j,"read from private field"),z?z.call(C):j.get(C)),F=(C,j,z)=>j.has(C)?ja("Cannot add the same private member more than once"):j instanceof WeakSet?j.add(C):j.set(C,z),R=(C,j,z,Z)=>(Hs(C,j,"write to private field"),Z?Z.call(C,z):j.set(C,z),z),_=(C,j,z)=>(Hs(C,j,"access private method"),z);(function(){"use strict";var _a3,_b,_c2,_d2,_e2,_f,_g,_h,_i2,_j,_k,_l2,_m,_n2,_o2,_p,_q,_r2,_s2,_t2,_u2,_v,_w,_x,_y,_z,_A,_B,_C,_D,_E,_F,_G,_H,_I,_t3,_e3,_r3,_t4,_t5,_t6,_e4,_r4,_t7,_e5,_r5,_l3,_a4,_b2,_c3,_i3,_h2,_s3,_n3,_hb_instances,u_fn,o_fn,f_fn,p_fn,m_fn,d_fn,g_fn;var vt,dt,It,M,$a,Wr,Ws,Ys,Yr,Kr,Ks,Ua,ne,Et,wt,At,Tt,kt,Nt,Lt,oe,le,Xs,xt,Dr,qa,Rt,st,U,jt,Re,Xr,Ga,Bt,Pt;const C=Symbol("name"),j=Symbol("value"),z=Symbol("ns"),Z=Symbol("owner"),X=Symbol("owner_document"),St=Symbol("attributes"),H=Symbol("prev"),x=Symbol("next"),D=Symbol("child"),bt=Symbol("parent"),ht=Symbol("data"),$t=Symbol("listeners"),Js=Symbol("isTrusted"),Jr=Symbol("path"),Zr=Symbol("stop_immediate_propagation"),Qr=Symbol("content"),W=Symbol("hooks"),ft=Symbol("is_connected");let q=(function(e){return e[e.NODE=0]="NODE",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e})({}),Pe=(function(e){return e.XHTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg",e})({}),nt=(function(e){return e[e.NONE=0]="NONE",e[e.CAPTURING_PHASE=1]="CAPTURING_PHASE",e[e.AT_TARGET=2]="AT_TARGET",e[e.BUBBLING_PHASE=3]="BUBBLING_PHASE",e})({});const ti="@",Ha=typeof performance>"u"?Date.now:performance.now.bind(performance);let at=(_b=Jr,_a3=Zr,_c2=class{constructor(t,r){__publicField(this,"timeStamp",Ha());__publicField(this,"target",null);__publicField(this,"currentTarget",null);__publicField(this,"srcElement",null);__publicField(this,"bubbles",false);__publicField(this,"cancelable",false);__publicField(this,"composed",false);
1__publicField(this,"defaultPrevented",false);__publicField(this,"cancelBubble",false);__publicField(this,"eventPhase",0);__publicField(this,_b,[]);__publicField(this,_a3,false);this.type=t,Object.defineProperty(this,Js,{writable:true,value:false}),r&&(r.bubbles&&(this.bubbles=r.bubbles),r.cancelable&&(this.cancelable=r.cancelable),r.composed&&(this.composed=r.composed))}get isTrusted(){return this[Js]}composedPath(){return this[Jr]}stopPropagation(){this.cancelBubble=true}stopImmediatePropagation(){this[Zr]=true,this.cancelBubble=true}preventDefault(){this.defaultPrevented=true}set returnValue(t){this.defaultPrevented=t}get returnValue(){return this.defaultPrevented}initEvent(t,r,i){this.type=t,this.bubbles=!!r,this.cancelable=!!i}},__publicField(_c2,"NONE",nt.NONE),__publicField(_c2,"CAPTURING_PHASE",nt.CAPTURING_PHASE),__publicField(_c2,"AT_TARGET",nt.AT_TARGET),__publicField(_c2,"BUBBLING_PHASE",nt.BUBBLING_PHASE),_c2);function Zs(e,t,r){var _a5;const s=(_a5=t[$t])==null?void 0:_a5.get("".concat(e.type).concat(r===nt.CAPTURING_PHASE?ti:""));if(s)for(const a of s){e.eventPhase=e.target===t?nt.AT_TARGET:r,e.currentTarget=t;try{typeof a=="object"?a.handleEvent(e):a.call(t,e)}catch(o){setTimeout(Wa,0,o)}if(e[Zr])break}}function Wa(e){throw e}const Ce=Symbol("onceListeners");_f=$t,_e2=Ce,_d2=X;class Se{constructor(){__publicField(this,_f);__publicField(this,_e2);__publicField(this,_d2)}addEventListener(t,r,i){var _a5,_b3,_c4;if(r==null)return;const s=i===true||i&&i.capture===true,a=typeof i=="object"&&i.once===true,o=typeof i=="object"?i.signal:void 0,c="".concat(t).concat(s?ti:"");let d=r;if(a){d=function(...m){return this.removeEventListener(t,r,i),typeof r=="object"?r.handleEvent(...m):r.call(this,...m)};let f=this[Ce];f||(f=new WeakMap,this[Ce]=f),f.set(r,d)}let p=this[$t];p||(p=new Map,this[$t]=p);let u=p.get(c);u||(u=new Set,p.set(c,u)),!u.has(d)&&(o==null?void 0:o.addEventListener("abort",()=>{Qs.call(this,t,r,i)},{once:true}),u.add(d),(_c4=(_a5=this[X])==null?void 0:(_b3=_a5.defaultView[W]).addEventListener)==null?void 0:_c4.call(_b3,this,t,r,i))}removeEventListener(t,r,i){return Qs.call(this,t,r,i)}dispatchEvent(t){const r=[];let i=this;for(;i!=null;)r.push(i),i=i.parentNode;t.target=this,t.srcElement=this,t[Jr]=r;for(let a=r.length;a--;)if(Zs(t,r[a],nt.CAPTURING_PHASE),t.cancelBubble)return t.defaultPrevented;const s=t.bubbles?r:r.slice(0,1);for(let a=0;a<s.length;a++)if(Zs(t,s[a],nt.BUBBLING_PHASE),t.cancelBubble)return t.defaultPrevented;return t.defaultPrevented}}function Qs(e,t,r){var _a5,_b3,_c4,_d3,_e6;if(t==null)return;const i=this[Ce],s=(_a5=i==null?void 0:i.get(t))!=null?_a5:t;i==null?void 0:i.delete(t);const a=r===true||r&&r.capture===true,o="".concat(e).concat(a?ti:""),c=(_b3=this[$t])==null?void 0:_b3.get(o);c&&c.delete(s)&&((_e6=(_c4=this[X])==null?void 0:(_d3=_c4.defaultView[W]).removeEventListener)==null?void 0:_e6.call(_d3,this,e,t,r))}function _e(e){return ht in e}function tn(e){return e.nodeType===q.TEXT_NODE}function Ya(e){return e.nodeType===q.COMMENT_NODE}function Q(e){return e.nodeType===q.ELEMENT_NODE}function Ka(e){return e.nodeType===q.DOCUMENT_FRAGMENT_NODE}function en(e){return"appendChild"in e}function Oe(e,t,r=e.ownerDocument){if(tn(e))return r.createTextNode(e.data);if(Ya(e))return r.createComment(e.data);if(Q(e)){const i=r.createElement(e.localName);if(e[St])for(let s=0;s<e[St].length;s++){const a=e[St].item(s);i.setAttributeNS(a.namespaceURI,a.name,a.value)}if(t)for(const s of e.childNodes)i.appendChild(Oe(s,true,r));return i}else if(Ka(e)){const i=r.createDocumentFragment();if(t)for(const s of e.childNodes)i.appendChild(Oe(s,true,r));return i}else{const i=new e.constructor;return i[X]=r,i}}function rn(e){const t=[],r=s=>{t.push(s);const a=s[D];a&&r(a);const o=s[x];o&&r(o)},i=e[D];return i&&r(i),t}function sn(e){const t=rn(e);return t.unshift(e),t}class De extends Se{constructor(){super(...arguments);__publicField(this,"nodeType",q.NODE);__publicField(this,_l2,"");__publicField(this,_k,null);__publicField(this,_j,null);__publicField(this,_i2,null);__publicField(this,_h,null);__publicField(this,_g,false)}get[(_l2=C,_k=bt,_j=D,_i2=H,_h=x,_g=ft,W)](){return this[X].defaultView[W]}get localName(){return this[C]}get nodeName(){return this[C].toUpperCase()}get ownerDocument(){return this[X]}get isConnected(){return this[ft]}isDefaultNamespace(t){return t===Pe.XHTML}get parentNode(){return this[bt]}set parentNode(t){}get parentElement(){const t=this[bt];return!t||t.nodeType!==1?null:t}set parentElement(t){}get previousSibling(){return this[H]}set previousSibling(t){}get nextSibling(){return this[x]}set nextSibling(t){}get previousElementSibling(){let t=this[H];for(;t&&t.nodeType!==1;)t=t[H];return t}set previousElementSibling(t){}get nextElementSibling(){let t=this[x];for(;t&&t.nodeType!==1;)t=t[x];return t}set nextElementSibling(t){}get firstChild(){return this[D]}set firstChild(t){}get lastChild(){let t=this[D];for(;t;){const r=t[x];if(r==null)break;t=r}return t}set lastChild(t){}get nodeValue(){return _e(this)?this.data:null}set nodeValue(t){_e(this)&&(this.data=t)}get textContent(){if(_e(this))return this.data;let t="";for(const r of rn(this))tn(r)&&(t+=r.data);return t}set textContent(t){if(_e(this))this.data=t;else if(en(this)){let r;for(;r=this[D];)this.removeChild(r);this.append(t)}}cloneNode(t){return Oe(this,t)}contains(t){let r=t;for(;;){if(r==null)return false;if(r===this)return true;r=t.parentNode}}}class ei extends De{remove(){const t=this.parentNode;t&&t.removeChild(this)}replaceWith(...t){const r=this.parentNode;if(!r)return;const i=_t(r,t[0]),s=i[x];r.replaceChild(this,i);for(let a=1;a<t.length;a++)r.insertBefore(_t(r,t[a]),s)}before(...t){const r=this.parentNode;if(r)for(const i of t)r.insertBefore(_t(r,i),this)}after(...t){const r=this.parentNode;if(!r)return;const i=this[x];for(const s of t)r.insertBefore(_t(r,s),i)}}function _t(e,t){return t instanceof De?t:e.ownerDocument.createTextNode(String(t))}class nn extends Array{item(t){return this[t]}}
1var $=(function(e){return e[e.Descendant=0]="Descendant",e[e.Child=1]="Child",e[e.Sibling=2]="Sibling",e[e.Adjacent=3]="Adjacent",e[e.Inner=4]="Inner",e})($||{}),G=(function(e){return e[e.Unknown=0]="Unknown",e[e.Element=1]="Element",e[e.Id=2]="Id",e[e.Class=3]="Class",e[e.Attribute=4]="Attribute",e[e.Pseudo=5]="Pseudo",e[e.Function=6]="Function",e})(G||{});const Xa=/[a-z]/;function Ja(e,t){const r=ri(t);let i=null;const s=e[D];return s&&r[0].matchers.length&&Ve(s,r,a=>(i=a,false)),i}function Za(e,t){const r=ri(t),i=[],s=e[D];return s&&r[0].matchers.length&&Ve(s,r,a=>{i.push(a)}),i}function ri(e){var _a5,_b3;let t={combinator:$.Inner,matchers:[]};const r=[t],i=/\s*?([>\s+~]?)\s*?(?:(?:\[\s*([^\]=]+)(?:=(['"])(.*?)\3)?\s*\])|([#.]?)([^\s#.[>:+~]+)|:(\w+)(?:\((.*?)\))?)/gi;let s;for(;s=i.exec(e);){s[1]&&(s[1]===">"?t.combinator=$.Child:s[1]==="+"?t.combinator=$.Adjacent:s[1]==="~"?t.combinator=$.Sibling:t.combinator=$.Descendant,t={combinator:$.Inner,matchers:[]},r.push(t));let a=G.Unknown;s[2]?a=G.Attribute:s[5]?a=s[5]==="#"?G.Id:G.Class:s[7]?a=s[8]==null?G.Pseudo:G.Function:s[6]&&(s[6]==="*"?a=G.Unknown:Xa.test(s[6])&&(a=G.Element)),t.matchers.push({type:a,name:s[2]||s[6]||s[7],value:(_b3=(_a5=s[4])!=null?_a5:s[6])!=null?_b3:s[8]})}return r}function an(e,t){const r=ri(t);let i;for(;i=r.pop();)if(!Qa(e,i))return false;return true}function Ve(e,t,r){if(Q(e)){if(Me(e,t)&&r(e)===false)return false;const s=e[D];if(s&&Ve(s,t,r)===false)return false}const i=e[x];return!(i&&Ve(i,t,r)===false)}function Me(e,t){const{combinator:r,matchers:i}=t[t.length-1];if(r===$.Inner){if(!pt(e,i))return false;const o=t.slice(0,-1);return o.length===0||Me(e,o)}const s=r===$.Child||r===$.Descendant?bt:H;let a=e[s];if(!a)return false;if(r===$.Descendant||r===$.Sibling){for(;a;){if(Q(a)&&pt(a,i)){const o=t.slice(0,-1);if(o.length===0||Me(e,o))return true}a=a[s]}return false}else{if(r===$.Adjacent&&!Q(a)){for(;a&&!Q(a);)a=a[s];if(!a)return false}if(!Q(a)||!pt(a,i))return false;const o=t.slice(0,-1);return o.length===0||Me(e,o)}}function Qa(e,{combinator:t,matchers:r}){if(t===$.Inner)return pt(e,r);const i=t===$.Child||t===$.Descendant?bt:H;let s=e[i];if(!s)return false;if(t===$.Adjacent&&!Q(s)){for(;s&&!Q(s);)s=s[i];if(!s)return false}if(!Q(s)||!pt(s,r))return false;if(t===$.Descendant||t===$.Sibling){for(;s=s[i];)if(Q(s)&&pt(s,r))return true}return true}function pt(e,t){if(!e)return false;if(Array.isArray(t)){for(const a of t)if(pt(e,a)===false)return false;return true}const{type:r,name:i,value:s}=t;switch(r){case G.Unknown:return i==="*";case G.Element:return e.localName===i;case G.Id:return e.getAttribute("id")===i;case G.Class:const a=e.getAttribute("class");return a?a.split(/\s+/).includes(i):false;case G.Attribute:return s==null?e.hasAttribute(i):e.getAttribute(i)===s;case G.Pseudo:throw Error("Pseudo :".concat(i," not implemented"));case G.Function:switch(i){case"has":return an(e,s||"");case"not":return!an(e,s||"");default:throw Error("Function :".concat(i,"(").concat(s,") not implemented"))}}return false}class ze extends ei{constructor(){super(...arguments);__publicField(this,"childNodes",new nn);__publicField(this,"children",new nn)}appendChild(t){this.insertInto(t,null)}insertBefore(t,r){this.insertInto(t,r||null)}append(...t){for(const r of t)r!=null&&this.appendChild(_t(this,r))}prepend(...t){const r=this.firstChild;for(const i of t)i!=null&&this.insertBefore(_t(this,i),r)}replaceChildren(...t){let r;for(;r=this.firstChild;)this.removeChild(r);this.append(...t)}removeChild(t){var _a5,_b3,_c4;if(t.parentNode!==this)throw Error("not a child of this node");const r=t[H],i=t[x];r?r[x]=i:this[D]=i,i&&(i[H]=r);const s=this.childNodes,a=s.indexOf(t);if(s.splice(a,1),t.nodeType===1){const o=this.children;o.splice(o.indexOf(t),1)}if(t[bt]=null,t[x]=null,t[H]=null,this[ft])for(const o of sn(t))o[ft]=false,(_a5=o.disconnectedCallback)==null?void 0:_a5.call(o);this.nodeType===q.ELEMENT_NODE&&((_c4=(_b3=this[W]).removeChild)==null?void 0:_c4.call(_b3,this,t,a))}replaceChild(t,r){if(r.parentNode!==this)throw Error("reference node is not a child of this parent");const i=r[x];this.removeChild(r),this.insertInto(t,i)}querySelectorAll(t){return Za(this,t)}querySelector(t){return Ja(this,t)}insertInto(t,r){var _a5,_b3,_c4;if(t.nodeType===q.DOCUMENT_FRAGMENT_NODE){let c=t[D];for(;c;){const d=c[x];this.insertInto(c,r),c=d}return}if(t.parentNode!==null&&t.parentNode.removeChild(t),r){if(r.parentNode!==this)throw Error("reference node is not a child of this parent");t[x]=r,t[H]=r[H],r[H]===null&&(this[D]=t),r[H]=t}else{t[x]=null;
1let c=this[D];if(c){let d;for(;d=c[x];)c=d;c[x]=t,t[H]=c}else this[D]=t,t[H]=null}const i=this[X],s=t.nodeType===q.ELEMENT_NODE;t[bt]=this,t[X]=i;const a=this.childNodes;let o;if(r){if(o=a.indexOf(r),a.splice(o,0,t),s){const c=this.children;let d=r;for(;d&&d.nodeType!==1;)d=d[x];d?c.splice(c.indexOf(d),0,t):c.push(t)}}else o=a.length,a.push(t),s&&this.children.push(t);if(this[ft])for(const c of sn(t))c[ft]=true,(_a5=c.connectedCallback)==null?void 0:_a5.call(c);this.nodeType===q.ELEMENT_NODE&&((_c4=(_b3=this[W]).insertChild)==null?void 0:_c4.call(_b3,this,t,o))}}class to{constructor(t){__publicField(this,_m,null);this[Z]=t}getNamedItem(t){return this.getNamedItemNS(null,t)}getNamedItemNS(t,r){let i=this[D];for(;i;){if(i.name===r&&i[z]==t)return i;i=i[x]}return null}item(t){let r=this[D],i=0;for(;r;){if(i++===t)return r;r=r[x]}return null}get length(){let t=0,r=this[D];for(;r;)t++,r=r[x];return t}removeNamedItem(t){return this.removeNamedItemNS(null,t)}removeNamedItemNS(t,r){var _a5,_b3;const i=this[Z];let s=this[D],a=null;for(;s!=null;){if(s.name===r&&s[z]==t)return a&&(a[x]=s[x]),this[D]===s&&(this[D]=s[x]),on(i,s.name,s.value,null),(_b3=(_a5=i[W]).removeAttribute)==null?void 0:_b3.call(_a5,i,r,t),s;a=s,s=s[x]}return null}setNamedItem(t){var _a5,_b3,_c4;const r=this[Z];let i=null,s=this[D];if(t[Z]=r,s==null)this[D]=t;else{let a;for(;s;){if(s.name===t.name&&s[z]==t[z]){a?a[x]=t:this[D]=t,t[x]=s[x],s[x]=null,i=s;break}a=s,s=s[x]}a?a[x]=t:this[D]=t}return(!i||i.value!==t.value)&&(on(r,t.name,(_a5=i==null?void 0:i.value)!=null?_a5:null,t.value),(_c4=(_b3=r[W]).setAttribute)==null?void 0:_c4.call(_b3,r,t.name,t.value,t[z])),i}setNamedItemNS(t){return this.setNamedItem(t)}*[(_m=D,Symbol.iterator)](){let t=this[D];for(;t;)yield t,t=t[x]}}function on(e,t,r,i){const{observedAttributes:s}=e.constructor,{attributeChangedCallback:a}=e;if(t==="slot"&&(e.slot=i!=null?i:""),!(a==null||s==null||!s.includes(t)))return a.call(e,t,r,i)}class ii extends(_q=De,_p=z,_o2=x,_n2=Z,_q){constructor(t,r,i){super();__publicField(this,"nodeType",q.ATTRIBUTE_NODE);__publicField(this,_p,null);__publicField(this,_o2,null);__publicField(this,_n2,null);this[C]=t,this[j]=r,i&&(this[z]=i)}get nodeName(){return this[C]}set nodeName(t){}get name(){return this[C]}set name(t){}get value(){return this[j]}set value(t){var _a5,_b3;const r=String(t);this[j]=r;const i=this[Z];i&&((_b3=(_a5=this[W]).setAttribute)==null?void 0:_b3.call(_a5,i,this[C],r,this[z]))}get nodeValue(){return this.value}set nodeValue(t){this.value=t}get ownerElement(){return this[Z]}get namespaceURI(){return this[z]}get specified(){return true}}const ln=/(?:<([a-z][a-z0-9-:]*)((?:[\s]+[^<>'"=\s]+(?:=(['"])[^]*?\3|=[^>'"\s]*|))*)[\s]*(\/?)\s*>|<\/([a-z][a-z0-9-:]*)>|<!--(.*?)-->|([^&<>]+))/gi,cn=/\s([^<>'"=\n\s]+)(?:=(["'])([\s\S]*?)\2|=([^>'"\n\s]*)|)/g;function un(e,t){const r=t.ownerDocument,i=r.createDocumentFragment(),s=[i];let a=i,o;for(ln.lastIndex=0;o=ln.exec(e);){const c=o[1];if(c){const d=r.createElement(c),p=o[2];cn.lastIndex=0;let u;for(;u=cn.exec(p);)d.setAttribute(u[1],u[3]||u[4]||"");a.append(d),s.push(a),a=d}else o[5]?a=s.pop()||i:o[6]?a.append(r.createComment(o[6])):a.append(o[7])}return i}function si(e){let t="",r=e[D];for(;r;)t+=dn(r),r=r[x];return t}function dn(e){var _a5;switch(e.nodeType){case q.ELEMENT_NODE:{const t=e;let r="<".concat(t[C]),i=(_a5=t[St])==null?void 0:_a5[D];for(;i;){r+=" ".concat(i[C]);let s=i[j];s!==""&&(s=String(s).replace(/&/g,"&amp;").replace(/"/g,"&quot;"),r+='="'.concat(s,'"')),i=i[x]}return r+=">",r+=si(t),r+="</".concat(t[C],">"),r}case q.TEXT_NODE:return e[ht].replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;");case q.COMMENT_NODE:return"<!--".concat(e[ht],"-->")}return""}let ot=class extends(_s2=ze,_r2=z,_s2){constructor(){super(...arguments);__publicField(this,"nodeType",q.ELEMENT_NODE);__publicField(this,_r2,Pe.XHTML)}get namespaceURI(){return this[z]}get tagName(){return this.nodeName}get slot(){var _a5;return(_a5=this.getAttribute("slot"))!=null?_a5:""}set slot(t){const r=String(t);this.getAttribute("slot")!==r&&this.attributes.setNamedItem(new ii("slot",r))}get attributes(){let t=this[St];return t||(t=new to(this),this[St]=t),t}getAttributeNames(){return[...this.attributes].map(t=>t.name)}get firstElementChild(){var _a5;return(_a5=this.children[0])!=null?_a5:null}get lastElementChild(){var _a5;return(_a5=this.children[this.children.length-1])!=null?_a5:null}get nextElementSibling(){let t=this.nextSibling;for(;t&&t.nodeType!==1;
1)t=t.nextSibling;return t}get previousElementSibling(){let t=this.previousSibling;for(;t&&t.nodeType!==1;)t=t.previousSibling;return t}setAttribute(t,r){this.attributes.setNamedItem(new ii(t,String(r)))}setAttributeNS(t,r,i){this.attributes.setNamedItemNS(new ii(r,String(i),t))}getAttribute(t){const r=this.attributes.getNamedItem(t);return r&&r.value}getAttributeNS(t,r){const i=this.attributes.getNamedItemNS(t,r);return i&&i.value}hasAttribute(t){return this.attributes.getNamedItem(t)!=null}hasAttributeNS(t,r){return this.attributes.getNamedItemNS(t,r)!=null}removeAttribute(t){this.attributes.removeNamedItem(t)}removeAttributeNS(t,r){this.attributes.removeNamedItemNS(t,r)}get outerHTML(){return dn(this)}get innerHTML(){return si(this)}set innerHTML(t){if(t==null||t==="")this.replaceChildren();else{const r=un(String(t),this);this.replaceChildren(r)}}};class Ie extends(_u2=ot,_t2=z,_u2){constructor(){super(...arguments);__publicField(this,_t2,Pe.SVG)}get ownerSVGElement(){let t=null,r=this.parentNode;for(;r instanceof Ie;)t=r,r=r.parentNode;return t}}class ni extends(_w=ei,_v=ht,_w){constructor(t){super();__publicField(this,_v,"");this[ht]=t==null?"":String(t)}setData(t){var _a5,_b3;let r="";t!=null&&(r=typeof t=="string"?t:String(t)),this[ht]=r,(_b3=(_a5=this[W]).setText)==null?void 0:_b3.call(_a5,this,r)}get data(){return this[ht]}set data(t){this.setData(t)}}class bn extends(_y=ni,_x=C,_y){constructor(){super(...arguments);__publicField(this,"nodeType",q.TEXT_NODE);__publicField(this,_x,"#text")}}class hn extends(_A=ni,_z=C,_A){constructor(){super(...arguments);__publicField(this,"nodeType",8);__publicField(this,_z,"#comment")}}let fn=class extends(_D=ze,_C=C,_B=X,_D){constructor(){super(...arguments);__publicField(this,"nodeType",q.DOCUMENT_FRAGMENT_NODE);__publicField(this,_C,"#document-fragment");__publicField(this,_B,typeof window<"u"?window.document:null)}};class pn extends ot{get content(){let t=this[Qr];return t||(t=this.ownerDocument.createDocumentFragment(),this[Qr]=t),t}set content(t){}set innerHTML(t){this.content.replaceChildren(un(String(t),this))}get innerHTML(){const t=this[Qr];return t?si(t):""}}class eo extends ot{}class ro extends ot{}class io extends ot{}class mn extends(_G=ze,_F=C,_E=ft,_G){constructor(t){super();__publicField(this,"nodeType",q.DOCUMENT_NODE);__publicField(this,_F,"#document");__publicField(this,_E,true);this.defaultView=t,this[X]=this,this.documentElement=Fe(new io,this,"html"),this.body=Fe(new eo,this,"body"),this.head=Fe(new ro,this,"head"),this.appendChild(this.documentElement),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body)}createElement(t){return gn(this,t)}createElementNS(t,r){return gn(this,r,t)}createTextNode(t){var _a5,_b3;const r=Le(new bn(t),this);return(_b3=(_a5=this[W]).createText)==null?void 0:_b3.call(_a5,r,String(t)),r}createComment(t){return Le(new hn(t),this)}createDocumentFragment(){return Le(new fn,this)}createEvent(){return new at("")}importNode(t,r){return Oe(t,r,this)}adoptNode(t){var _a5;return t[X]===this||((_a5=t.parentNode)==null?void 0:_a5.removeChild(t),yn(t,this)),t}}function Le(e,t){return Object.defineProperty(e,X,{value:t,writable:true,enumerable:false}),e}function gn(e,t,r){let i;const s=String(t).toLowerCase();if(r===Pe.SVG)i=new Ie;else if(s==="template")i=new pn;else{const a=e.defaultView.customElements.get(t);i=a?new a:new ot}return Fe(i,e,t,r)}function Fe(e,t,r,i){var _a5,_b3;return Le(e,t),Object.defineProperty(e,C,{value:r}),i&&Object.defineProperty(e,z,{value:i}),(_b3=(_a5=t[W]).createElement)==null?void 0:_b3.call(_a5,e,i),e}function yn(e,t){if(e[X]=t,en(e))for(const r of e.childNodes)yn(r,t)}let so=class extends at{constructor(t,r){super(t,r),this.detail=r==null?void 0:r.detail}initCustomEvent(t,r,i,s){super.initEvent(t,r,i),this.detail=s}},no=class extends at{constructor(t,r){super(t,r),this.message=r.message,this.filename=r.filename,this.lineno=r.lineno,this.colno=r.colno,this.error=r.error}},ao=class extends at{constructor(t,r){super(t,r),this.promise=r.promise,this.reason=r.reason}},oo=class extends at{constructor(t,r){super(t,r),this.oldState=r.oldState,this.newState=r.newState}},lo=class extends at{constructor(t,r={}){var _a5;super(t,r),this.relatedTarget=(_a5=r.relatedTarget)!=null?_a5:null}},co=class extends at{constructor(t,r={}){var _a5;super(t,r),this.clipboardData=(_a5=r.clipboardData)!=null?_a5:null}},uo=class extends ot{};class bo{constructor(){__publicField(this,"registry",new Map);__publicField(this,"listenersByName",new Map)}define(t,r,i){this.registry.set(t,r);const s=this.listenersByName.get(t);if(s!=null){this.listenersByName.delete(t);for(const a of s)a(r)}}get(t){return this.registry.get(t)}
1getName(t){for(const[r,i]of this.registry)if(i===t)return r;return null}whenDefined(t){const r=this.registry.get(t);if(r!=null)return Promise.resolve(r);let i=this.listenersByName.get(t);return i==null&&(i=[],this.listenersByName.set(t,i)),new Promise(s=>{i.push(s)})}upgrade(t){}}class ho{}class ai extends(_I=Se,_H=W,_I){constructor(){super(...arguments);__publicField(this,_H,{});__publicField(this,"name","");__publicField(this,"window",this);__publicField(this,"parent",this);__publicField(this,"self",this);__publicField(this,"top",this);__publicField(this,"document",new mn(this));__publicField(this,"customElements",new bo);__publicField(this,"location",globalThis.location);__publicField(this,"navigator",globalThis.navigator);__publicField(this,"Event",at);__publicField(this,"ErrorEvent",no);__publicField(this,"PromiseRejectionEvent",ao);__publicField(this,"ToggleEvent",oo);__publicField(this,"FocusEvent",lo);__publicField(this,"ClipboardEvent",co);__publicField(this,"EventTarget",Se);__publicField(this,"CustomEvent",so);__publicField(this,"Node",De);__publicField(this,"ParentNode",ze);__publicField(this,"ChildNode",ei);__publicField(this,"DocumentFragment",fn);__publicField(this,"Document",mn);__publicField(this,"CharacterData",ni);__publicField(this,"Comment",hn);__publicField(this,"Text",bn);__publicField(this,"Element",ot);__publicField(this,"HTMLElement",uo);__publicField(this,"SVGElement",Ie);__publicField(this,"HTMLTemplateElement",pn);__publicField(this,"MutationObserver",ho);__privateAdd(this,_t3,null);__privateAdd(this,_e3,null);__privateAdd(this,_r3,null)}get onerror(){return __privateGet(this,_e3)}set onerror(t){__privateGet(this,_t3)&&this.removeEventListener("error",__privateGet(this,_t3)),t&&typeof t=="function"?(__privateSet(this,_e3,t),__privateSet(this,_t3,r=>{var _a5;t((_a5=r.message)!=null?_a5:"Error",r.filename,r.lineno,r.colno,r.error)}),this.addEventListener("error",__privateGet(this,_t3))):(__privateSet(this,_t3,null),__privateSet(this,_e3,null))}get onunhandledrejection(){return __privateGet(this,_r3)}set onunhandledrejection(t){__privateGet(this,_r3)&&this.removeEventListener("unhandledrejection",__privateGet(this,_r3)),t&&typeof t=="function"?(__privateSet(this,_r3,t),this.addEventListener("unhandledrejection",__privateGet(this,_r3))):__privateSet(this,_r3,null)}static setGlobal(t){const r=Object.getOwnPropertyDescriptors(t);delete r.self,Object.defineProperties(globalThis,r),typeof globalThis.self>"u"?Object.defineProperty(globalThis,"self",{value:t,configurable:true,writable:true,enumerable:true}):Object.defineProperties(self,r)}static setGlobalThis(t){for(const s in t)t[s]===t&&(t[s]=globalThis);const r=Object.getOwnPropertyDescriptors(t),i=Object.getOwnPropertyDescriptors(Se.prototype);for(const s of Object.values(i))typeof s.value=="function"&&(s.value=s.value.bind(t));Object.defineProperties(globalThis,r),Object.defineProperties(globalThis,i)}}_t3=new WeakMap;_e3=new WeakMap;_r3=new WeakMap;const vn=new ai,fo=0,po=1,mo=2,oi=3,go=1,yo=2,vo=3,Eo="~",tt=new WeakMap;function li(e){return tt.get(e)}const ci=new WeakMap;let wo=0;function lt(e){let t=ci.get(e);return t==null&&(t=String(wo++),En(e,t)),t}function En(e,t){ci.set(e,t)}const ui=new WeakMap;function di(e){return ui.get(e)}const bi=new WeakMap;function Ao(e){let t=bi.get(e);if(t!=null)return t;if(!(!(e instanceof Element)||e.tagName.includes("-"))){t={};for(const{name:r,value:i}of e.attributes)t[r]=i;return t}}const hi=new WeakMap;function wn(e){return hi.get(e)}function Be(e,t,r){let i=ui.get(e);if(i==null&&(i={},ui.set(e,i)),i[t]===r)return;i[t]=r;const s=tt.get(e);s==null?void 0:s.mutate([[oi,lt(e),t,r,go]])}function Ut(e,t,r){let i=bi.get(e);if(i==null&&(i={},bi.set(e,i)),i[t]===r)return;r==null?delete i[t]:i[t]=String(r);const s=tt.get(e);s==null?void 0:s.mutate([[oi,lt(e),t,r,yo]])}function An(e,t,r){let i=hi.get(e);if(i==null&&(i={},hi.set(e,i)),i[t]===r)return;r==null?delete i[t]:i[t]=r;const s=tt.get(e);s==null?void 0:s.mutate([[oi,lt(e),t,r,vo]])}function fi(e,t){if(tt.get(e)!==t&&(tt.set(e,t),e.childNodes))for(let i=0;i<e.childNodes.length;i++)fi(e.childNodes[i],t)}function Tn(e){if(tt.get(e)!=null&&(tt.delete(e),e.childNodes))for(let r=0;r<e.childNodes.length;r++)Tn(e.childNodes[r])}function kn(e){const{nodeType:t}=e;switch(t){case 1:return{id:lt(e),type:t,element:e.localName,properties:pi(di(e)),attributes:pi(Ao(e)),eventListeners:pi(wn(e)),children:Array.from(e.childNodes).map(kn)};case 3:case 8:return{id:lt(e),type:t,data:e.data};default:throw new Error("Cannot serialize node of type ".concat(e.nodeType," (").concat(typeof e.nodeType,")"))}}function pi(e){return e?__spreadValues({},e):void 0}function To(e,t,...r){const i=ci.get(e),s=tt.get(e);if(i==null||s==null)throw new Error("Cannot call method ".concat(t," on an unconnected node"));return s.call(i,t,...r)}const Ot=vn[W];Ot.insertChild=(e,t,r)=>{const i=li(e);i!=null&&(fi(t,i),i.mutate([[fo,lt(e),kn(t),r]]))},Ot.removeChild=(e,t,r)=>{const i=li(e);i!=null&&(Tn(t),i.mutate([[po,lt(e),r]]))},Ot.setText=(e,t)=>
1{const r=li(e);r==null?void 0:r.mutate([[mo,lt(e),t]])},Ot.setAttribute=(e,t,r)=>{e.tagName.includes("-")||Ut(e,t,r)},Ot.removeAttribute=(e,t)=>{e.tagName.includes("-")||Ut(e,t)},ai.setGlobal(vn);var ko=Symbol.for("preact-signals");function mi(){if(mt>1)mt--;else{var e,t=false;for((function(){var s=Ue;for(Ue=void 0;s!==void 0;){var a=s.S;if(a.v===s.v)for(var o=a.t;o!==void 0;o=o.x)o.i===s.i&&(o.i=a.i);s=s.o}})();Gt!==void 0;){var r=Gt;for(Gt=void 0,$e++;r!==void 0;){var i=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&Rn(r))try{r.c()}catch(s){t||(e=s,t=true)}r=i}}if($e=0,mt--,t)throw e}}var qt,I=void 0;function je(e){var t=I,r=qt;I=void 0,qt=void 0;try{return e()}finally{I=t,qt=r}}var Gt=void 0,mt=0,$e=0,Nn=0,Ue=void 0,qe=0;function xn(e){if(I!==void 0){var t=e.n;if(t===void 0||t.t!==I)return t={i:0,S:e,p:I.s,n:void 0,t:I,e:void 0,x:void 0,r:t},I.s!==void 0&&(I.s.n=t),I.s=t,e.n=t,32&I.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=I.s,t.n=void 0,I.s.n=t,I.s=t),t}}function Y(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Y.prototype.brand=ko,Y.prototype.h=function(){return true},Y.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:je(function(){var i;(i=t.W)==null||i.call(t)}))},Y.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,i=e.x;r!==void 0&&(r.x=i,e.e=void 0),i!==void 0&&(i.e=r,e.x=void 0),e===this.t&&(this.t=i,i===void 0&&je(function(){var s;(s=t.Z)==null||s.call(t)}))}},Y.prototype.subscribe=function(e){var t=this;return xo(function(){var r=t.value;je(function(){return e(r)})},{name:"sub"})},Y.prototype.valueOf=function(){return this.value},Y.prototype.toString=function(){return this.value+""},Y.prototype.toJSON=function(){return this.value},Y.prototype.peek=function(){var e=this;return je(function(){return e.value})},Object.defineProperty(Y.prototype,"value",{get:function(){var e=xn(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if($e>100)throw new Error("Cycle detected");(function(r){mt!==0&&$e===0&&r.l!==Nn&&(r.l=Nn,Ue={S:r,v:r.v,i:r.i,o:Ue})})(this),this.v=e,this.i++,qe++,mt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{mi()}}}});function Rn(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 true;return false}function Pn(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Cn(e){for(var t=e.s,r=void 0;t!==void 0;){var i=t.p;t.i===-1?(t.S.U(t),i!==void 0&&(i.n=t.n),t.n!==void 0&&(t.n.p=i)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=i}e.s=r}function Dt(e,t){Y.call(this,void 0,t),this.x=e,this.s=void 0,this.g=qe-1,this.f=4}Dt.prototype=new Y,Dt.prototype.h=function(){if(this.f&=-3,1&this.f)return false;if((36&this.f)==32||(this.f&=-5,this.g===qe))return true;if(this.g=qe,this.f|=1,this.i>0&&!Rn(this))return this.f&=-2,true;var e=I;try{Pn(this),I=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return I=e,Cn(this),this.f&=-2,true},Dt.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)}Y.prototype.S.call(this,e)},Dt.prototype.U=function(e){if(this.t!==void 0&&(Y.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)}},Dt.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(Dt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=xn(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Sn(e){var t=e.m;if(e.m=void 0,typeof t=="function"){mt++;var r=I;I=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,gi(e),i}finally{I=r,mi()}}}function gi(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Sn(e)}function No(e){if(I!==this)throw new Error("Out-of-order effect");Cn(this),I=e,this.f&=-2,8&this.f&&gi(this),mi()}function Vt(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t==null?void 0:t.name,qt&&qt.push(this)}Vt.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()}},Vt.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Sn(this),Pn(this),mt++;var e=I;return I=this,No.bind(this,e)},Vt.prototype.N=function(){2&this.f||(this.f|=2,this.u=Gt,Gt=this)},Vt.prototype.d=function(){this.f|=8,1&this.f||gi(this)},Vt.prototype.dispose=function(){this.d()};function xo(e,t){var r=new Vt(e,t);try{r.c()}catch(s){throw r.d(),s}var i=r.d.bind(r);return i[Symbol.dispose]=i,i}var Ro=0;function _n(e){return"__private_"+Ro+++"_"+e}function gt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}const Ge=Symbol.for("RemoteUi::Retain"),He=Symbol.for("RemoteUi::Release"),We=Symbol.for("RemoteUi::RetainedBy");class On{constructor(){this.memoryManaged=new Set}add(t){this.memoryManaged.add(t),t[We].add(this),t[Ge]()}release(){for(const t of this.memoryManaged)t[We].delete(this),t[He]();this.memoryManaged.clear()}}function yi(e){return!!(e&&e[Ge]&&e[He])}function Ht(e,{deep:t=true}={}){return vi(e,t,new Map)}function vi(e,t,r){const i=r.get(e);if(i!=null)return i;const s=yi(e);if(s&&e[Ge](),r.set(e,s),t){if(Array.isArray(e)){const a=e.reduce((o,c)=>vi(c,t,r)||o,s);return r.set(e,a),a}if(Ke(e)){const a=Object.keys(e).reduce((o,c)=>vi(e[c],t,r)||o,s);return r.set(e,a),a}}return r.set(e,s),s}function Ye(e,{deep:t=true}={}){return Ei(e,t,new Map)}function Ei(e,t,r){const i=r.get(e);if(i!=null)return i;const s=yi(e);if(s&&e[He](),r.set(e,s),t){if(Array.isArray(e)){const a=e.reduce((o,c)=>Ei(c,t,r)||o,s);return r.set(e,a),a}if(Ke(e)){const a=Object.keys(e).reduce((o,c)=>Ei(e[c],t,r)||o,s);return r.set(e,a),a}}return s}function Ke(e){if(e==null||typeof e!="object")return false;const t=Object.getPrototypeOf(e);return t==null||t===Object.prototype}const Xe="_@f",wi="_@fn";function Po(e){var _a5;const t=typeof self<"u"&&self.name||((_a5=globalThis.location)==null?void 0:_a5.origin)||"unknown",r=e.uuid();let i=null;const s=new Map,a=new Map,o=new Map,c=new Map;return{encode:d,decode:p,call(u,f){return __async(this,null,function*(){const y=new On,m=a.get(u);if(m==null){const g=c.get(u)||"unknown",h=new Error("[".concat(t,"] You attempted to call a function that was already released. (function: ").concat(g,", endpoint: ").concat(r).concat(i!=null?", endpoint terminated ".concat(Date.now()-i,"ms ago"):"",")"));throw h.name="RemoteFunctionReleasedError",h}try{const g=yi(m)?[y,...m[We]]:[y];return yield m(...p(f,g))}finally{y.release()}})},release(u){const f=a.get(u);f&&(a.delete(u),s.delete(f),c.set(u,f.name||"unknown"))},terminate(){i=Date.now(),s.clear(),a.clear(),o.clear(),c.clear()}};function d(u,f=new Map){if(u==null)return[u];const y=f.get(u);if(y)return y;if(typeof u=="object"){if(Array.isArray(u)){f.set(u,[void 0]);const g=[],v=[u.map(T=>{const[A,S=[]]=d(T,f);return g.push(...S),A}),g];return f.set(u,v),v}if(Ke(u)){f.set(u,[void 0]);const g=[],v=[Object.keys(u).reduce((T,A)=>{const[S,E=[]]=d(u[A],f);return g.push(...E),__spreadProps(__spreadValues({},T),{[A]:S})},{}),g];return f.set(u,v),v}}if(typeof u=="function"){if(s.has(u)){const v=s.get(u),T=[{[Xe]:v}];return f.set(u,T),T}const g=e.uuid();s.set(u,g),a.set(g,u);const h=[{[Xe]:g,[wi]:u.name||String(u).slice(0,100)}];return f.set(u,h),h}const m=[u];return f.set(u,m),m}function p(u,f){if(typeof u=="object"){if(u==null)return u;if(Array.isArray(u))return u.map(y=>p(y,f));if(Xe in u){const y=u[Xe];if(o.has(y))return o.get(y);let m=0,g=false,h=null;const v=()=>{m-=1,m===0&&(g=true,h=Date.now(),o.delete(y),e.release(y))},T=()=>{m+=1},A=new Set(f),S=wi in u&&u[wi]||"unknown",E=(...O)=>{if(g){const k=new Error("[".concat(t,"] You attempted to call a function that was already released. (function: ").concat(S,", endpoint: ").concat(r).concat(h!=null?", released ".concat(Date.now()-h,"ms ago"):"",", retained by ").concat(A.size,")"));throw k.name="RemoteFunctionReleasedError",k}if(!o.has(y)){const k=new Error("[".concat(t,"] You attempted to call a function that was already revoked. (function: ").concat(S,", endpoint: ").concat(r).concat(i!=null?", endpoint terminated ".concat(Date.now()-i,"ms ago"):"",", retained by ").concat(A.size,")"));throw k.name="RemoteFunctionRevokedError",k}return e.call(y,O)};Object.defineProperties(E,{[He]:{value:v,writable:false},[Ge]:{value:T,writable:false},[We]:{value:A,writable:false}});for(const O of A)O.add(E);return o.set(y,E),E}if(Ke(u))return Object.keys(u).reduce((y,m)=>__spreadProps(__spreadValues({},y),{[m]:p(u[m],f)}),{})}return u}}const Dn=0,Ai=1,Vn=2,Mn=3,zn=5,Ti=6;
1class In extends Error{constructor(t){const{callId:r,error:i,result:s}=t,a=i?" Error: ".concat(String(i)):"",o=s==null?"":" Result: ".concat(JSON.stringify(s));super("No resolver found for call ID: ".concat(r).concat(a).concat(o)),this.callId=void 0,this.error=void 0,this.result=void 0,this.groupingHash="RemoteUI::MissingResolverError",this.name="MissingResolverError",this.callId=r,this.error=i,this.result=s}}function Co(e,{uuid:t=So,createEncoder:r=Po,callable:i}={}){let s=false,a=e;const o=new Map,c=new Map,d=_o(y,i),p=r({uuid:t,release(h){u(Mn,[h])},call(h,v,T){const A=t(),S=m(A,T),[E,O]=p.encode(v);return u(zn,[A,h,E],O),S}});return a.addEventListener("message",f),{call:d,replace(h){const v=a;a=h,v.removeEventListener("message",f),h.addEventListener("message",f)},expose(h){for(const v of Object.keys(h)){const T=h[v];typeof T=="function"?o.set(v,T):o.delete(v)}},callable(...h){if(i!=null)for(const v of h)Object.defineProperty(d,v,{value:y(v),writable:false,configurable:true,enumerable:true})},terminate(){u(Vn,void 0),g(),a.terminate&&a.terminate()}};function u(h,v,T){s||a.postMessage(v?[h,v]:[h],T)}function f(h){return __async(this,null,function*(){if(s)return;const{data:v}=h;if(Oo(v))switch(v[0]){case Vn:{g();break}case Dn:{const T=new On,[A,S,E]=v[1],O=o.get(S);try{if(O==null)throw new Error("No '".concat(S,"' method is exposed on this endpoint"));const[k,B]=p.encode(yield O(...p.decode(E,[T])));u(Ai,[A,void 0,k],B)}catch(k){const{name:B,message:K,stack:Ct}=k;throw u(Ai,[A,{name:B,message:K,stack:Ct}]),k}finally{T.release()}break}case Ai:{const[T,A,S]=v[1],E=c.get(T);if(E==null)throw new In({callId:T,error:A,result:S});E(...v[1]),c.delete(T);break}case Mn:{const[T]=v[1];p.release(T);break}case Ti:{const[T,A,S]=v[1],E=c.get(T);if(E==null)throw new In({callId:T,error:A,result:S});E(...v[1]),c.delete(T);break}case zn:{const[T,A,S]=v[1];try{const E=yield p.call(A,S),[O,k]=p.encode(E);u(Ti,[T,void 0,O],k)}catch(E){const{name:O,message:k,stack:B}=E;throw u(Ti,[T,{name:O,message:k,stack:B}]),E}break}}})}function y(h){return(...v)=>{if(s)return Promise.reject(new Error("You attempted to call a function on a terminated web worker."));if(typeof h!="string"&&typeof h!="number")return Promise.reject(new Error("Can\u2019t call a symbol method on a remote endpoint: ".concat(h.toString())));const T=t(),A=m(T),[S,E]=p.encode(v);return u(Dn,[T,h,S],E),A}}function m(h,v){return new Promise((T,A)=>{c.set(h,(S,E,O)=>{if(E==null)T(O&&p.decode(O,v));
1else{const k=new Error;Object.assign(k,E),A(k)}})})}function g(){var h;s=true,o.clear(),c.clear(),(h=p.terminate)===null||h===void 0||h.call(p),a.removeEventListener("message",f)}}function So(){return"".concat(Je(),"-").concat(Je(),"-").concat(Je(),"-").concat(Je())}function Je(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)}function _o(e,t){let r;if(t==null){if(typeof Proxy!="function")throw new Error("You must pass an array of callable methods in environments without Proxies.");const i=new Map;r=new Proxy({},{get(s,a){if(i.has(a))return i.get(a);const o=e(a);return i.set(a,o),o}})}else{r={};for(const i of t)Object.defineProperty(r,i,{value:e(i),writable:false,configurable:true,enumerable:true})}return r}function Oo(e){return Array.isArray(e)&&typeof e[0]=="number"&&(e[1]==null||Array.isArray(e[1]))}function wb(e){return e}const Ln="__remote_signal__";function Do(e){return e!=null&&typeof e=="object"&&e[Ln]===true}function Vo(e){if(e==null||typeof e!="object")return false;const t=Object.getPrototypeOf(e);return t==null||t===Object.prototype}const Mo=ki(true);function zo(e,{SignalLike:t,updateSignalValue:r}){const i=new t(e.value);return e.subscribe(s=>r(i,s)),i}function Ze(e,t=Mo,r=new Map){const i=r.get(e);if(i)return i;if(Do(e)){const s=zo(e,t);return r.set(e,s),s}if(Array.isArray(e)){const s=[];return r.set(e,s),s.push(...e.map(a=>Ze(a,t,r))),s}if(Vo(e)){const s={};r.set(e,s);for(const a in e)s[a]=Ze(e[a],t,r);return s}return e}function ki(e=false){let t=null,r=e?null:new Set;var i=_n("value"),s=_n("callbacks");class a{constructor(m){var g;Object.defineProperty(this,i,{writable:true,value:void 0}),Object.defineProperty(this,s,{writable:true,value:new Set}),gt(this,i)[i]=m,(g=r)==null||g.add(this)}get value(){return gt(this,i)[i]}set value(m){m!==gt(this,i)[i]&&(gt(this,i)[i]=m,gt(this,s)[s].forEach(g=>g(m)))}subscribe(m){return gt(this,s)[s].add(m),()=>{gt(this,s)[s].delete(m)}}}class o extends a{constructor(m){var g;super(m),(g=t)==null||g.call(this,m)}get current(){return this.value}get value(){return d().get.call(this)}set value(m){throw Error("This signal is read-only")}}let c=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(o.prototype),"value");function d(){if(!c||typeof c.get!="function"||typeof c.set!="function")throw Error("Value descriptor is not found");return c}function p(y){if(!r)return;t=y;const m=d();if(Object.setPrototypeOf(o.prototype,y.prototype),c=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(o.prototype),"value"),r)for(const g of r){const h=m.get.call(g);y.call(g,h)}u()}function u(){r=null}function f(y,m){d().set.call(y,m)}return{SignalLike:o,applyRealSignal:p,sealImplementation:u,updateSignalValue:f}}function Io(e){const t=ki();t.applyRealSignal(Y),Object.assign(e.protectedApi,Ze(e.protectedApi,t));const r=ki();Object.assign(e.api,__spreadProps(__spreadValues({},Ze(e.api,r)),{setSignals(i){r.applyRealSignal(i)}})),setTimeout(()=>r.sealImplementation())}const Lo=/\/\/# sourceMappingURL=(.+)$/gm;function Fo(e,t){return t.replace(Lo,(r,i)=>{let s;try{s=new URL(i,e)}catch(e2){return console.warn("Couldn't resolve source map URL",{sourceMapURL:i,sourceURL:e}),r}return/http(s):/.test(s.protocol)?"//# sourceMappingURL=".concat(s):r})}const Fn=new Map,{eval:Bn}=globalThis,Bo='\n  (function(__eval__) {\n    with (this) {\n      const eval = __eval__;\n      const _fnProto_ = Function.prototype;\n      this.eval = eval;\n      this.Function = function Function(...args) {\n        var body = args.pop();\n        return eval("(function(" + args.join(\',\') + ") { " + body + " })");\n      };\n      Object.setPrototypeOf(this.Function.prototype, _fnProto_);\n      (function(_fnProto_) {\n        "use strict";\n        __SOURCE__\n      }).call(this);\n    }\n  })\n'.replace(/\n\s*/g,"");function jo(e){const t="".concat(Bo.replace("__SOURCE__",()=>"".concat(e,"\n")));return Bn(t)}class jn{constructor(t,r,i){this.extension=t,this.url=r,this.factories=i,this.realmFactory=void 0,this.timers=new Set,this.global={},this.api={},this.protectedApi={},this.output=void 0;const s=Fo(r,t);this.realmFactory=Fn.get(s),this.realmFactory||(this.realmFactory=jo(s),Fn.set(s,this.realmFactory)
1)}run({target:t,api:r,protectedApi:i}){var s;const{timers:a}=this;Ht(r),Ht(i),Object.assign(this.api,r),Object.assign(this.protectedApi,i),this.global.self=this.global,this.global.globalThis=this.global,this.global.shopify=this.api,this.global.open=function(c,d){return r.navigation.navigate(String(c),d?String(d):void 0),null},this.global.setInterval=function(){const c=setInterval.apply(globalThis,arguments);return a.add(c),c},this.global.setTimeout=function(){const c=setTimeout.apply(globalThis,arguments);return a.add(c),c},this.global.clearInterval=function(c){clearInterval.call(globalThis,c),a.delete(c)},this.global.clearTimeout=function(c){clearTimeout.call(globalThis,c),a.delete(c)};const o=new Map;this.global.shopify.extend=(c,d)=>{o.set(c,d)},this.factories.forEach(c=>c.bind(this.global)(this)),this.realmFactory.call(this.global,Bn),this.output=(s=o.get(t))==null?void 0:s()}terminate(){return __async(this,null,function*(){var t,r;yield this.cleanup(),Ye(this.protectedApi),Ye(this.global.shopify),(t=this.global.document)==null||(r=t.documentElement)==null||r.remove();const i=this.global;for(const s in i)i[s]=void 0;for(const s of this.timers)clearInterval(s)})}cleanup(){return __async(this,null,function*(){try{const t=yield this.output;typeof t=="function"&&(yield t==null?void 0:t())}catch(e){}})}}const $n={"Checkout::Actions::RenderBefore":"purchase.checkout.actions.render-before","Checkout::CartLineDetails::RenderAfter":"purchase.checkout.cart-line-item.render-after","Checkout::CartLineDetails::RenderLineComponents":"purchase.cart-line-item.line-components.render","Checkout::CartLines::RenderAfter":"purchase.checkout.cart-line-list.render-after","Checkout::Contact::RenderAfter":"purchase.checkout.contact.render-after","Checkout::CustomerInformation::RenderAfter":"purchase.thank-you.customer-information.render-after","Checkout::DeliveryAddress::RenderBefore":"purchase.checkout.delivery-address.render-before","Checkout::Dynamic::Render":"purchase.checkout.block.render","Checkout::GiftCard::Render":"purchase.checkout.gift-card.render","Checkout::PaymentMethod::Render":"purchase.checkout.payment-option-item.details.render","Checkout::PaymentMethod::HostedFields::RenderAfter":"purchase.checkout.payment-option-item.hosted-fields.render-after","Checkout::PaymentMethod::RenderRequiredAction":"purchase.checkout.payment-option-item.action-required.render","Checkout::PickupLocations::RenderAfter":"purchase.checkout.pickup-location-list.render-after","Checkout::PickupLocations::RenderBefore":"purchase.checkout.pickup-location-list.render-before","Checkout::PickupPoints::RenderAfter":"purchase.checkout.pickup-point-list.render-after","Checkout::PickupPoints::RenderBefore":"purchase.checkout.pickup-point-list.render-before","Checkout::Reductions::RenderAfter":"purchase.checkout.reductions.render-after","Checkout::Reductions::RenderBefore":"purchase.checkout.reductions.render-before","Checkout::ShippingMethodDetails::RenderAfter":"purchase.checkout.shipping-option-item.render-after","Checkout::ShippingMethodDetails::RenderExpanded":"purchase.checkout.shipping-option-item.details.render","Checkout::ShippingMethods::RenderAfter":"purchase.checkout.shipping-option-list.render-after","Checkout::ShippingMethods::RenderBefore":"purchase.checkout.shipping-option-list.render-before","Checkout::ThankYou::CartLineDetails::RenderAfter":"purchase.thank-you.cart-line-item.render-after","Checkout::ThankYou::CartLines::RenderAfter":"purchase.thank-you.cart-line-list.render-after","Checkout::ThankYou::CustomerInformation::RenderAfter":"purchase.thank-you.customer-information.render-after","Checkout::ThankYou::Dynamic::Render":"purchase.thank-you.block.render"};(()=>{const e={};for(const[t,r]of Object.entries($n))e[r]=t;return e})();function Un(e){var _a5;return(_a5=$n[e])!=null?_a5:e}const $o=["purchase.checkout.block.render","Checkout::Dynamic::Render","purchase.thank-you.block.render","Checkout::ThankYou::Dynamic::Render"];new Set($o);function Uo(e){Ht(e);let t=e.initial,r=true,i=false;const s=new Set,a=Promise.resolve(e.subscribe(o)).then(c=>(i||o(c[1]),c));return{get current(){return t},subscribe(c){return s.add(c),()=>{s.delete(c)}},destroy(){return __async(this,null,function*(){r=false,s.clear();const[c]=yield a;c(),Ye(e)})}};function o(c){if(i=true,!(!r||t===c)){t=c;for(const d of s)d(t)}}}function qo(e){"signal"in e&&Object.assign(e,{signal:Go(e.signal)}
1)}function Go(e){if(Ho(e))return e;const t=new AbortController,{aborted:r,start:i}=e;return r?(t.abort(),t.signal):(i&&(Ht(i),i(s=>{s&&t.abort()})),t.signal.addEventListener("abort",()=>__async(null,null,function*(){Ye(i)}),{once:true}),t.signal)}function Ho(e){return e!=null&&e.aborted!=null&&typeof e.addEventListener=="function"}class qn extends Error{constructor(){super(...arguments),this.name="ExtensionSandboxError"}}class et extends Error{constructor(){super(...arguments),this.name="ExtensionUsageError"}}class Wo extends Error{constructor(){super(...arguments),this.name="ExtensionAssetFetchError"}}class Yo extends Error{constructor(){super(...arguments),this.name="ExtensionSandboxAssetFetchError"}}function Qe(e){return(...t)=>{var _a5;try{return e(...t)}catch(r){throw r.name==="ExtensionUsageError"?r:new qn((_a5=r==null?void 0:r.message)!=null?_a5:"Unknown error",{cause:r})}}}const Gn="latn",Hn="-u-nu-".concat(Gn);function Wn(e){try{const t=new Intl.Locale(e);return new Intl.Locale(t.baseName,{numberingSystem:Gn}).toString()}catch(e2){return Ko(e)}}function Ko(e){return e.includes("-u-nu-")?e.replace(/-u-nu-[a-z0-9]+/i,Hn):"".concat(e).concat(Hn)}function Xo(e,t,r){const i=new Map,s=new Map;function a(p,_a5={}){var _b3=_a5,{inExtensionLocale:u}=_b3,f=__objRest(_b3,["inExtensionLocale"]);if(f.style==="currency"&&(typeof f.currency!="string"||f.currency.length===0))throw new et('i18n.formatNumber(): currency option must be a valid currency code string when style is "currency"');const y=Wt(u===true?e.extensionLanguage:e.language),m=Yn(y,f);let g=i.get(m);return g||(g=Jo(y,f),i.set(m,g)),g.format(p)}function o(p,_c4={}){var _d3=_c4,{inExtensionLocale:u}=_d3,f=__objRest(_d3,["inExtensionLocale"]);return a(p,__spreadValues({inExtensionLocale:u,style:"currency",currency:el(e.currency)},f))}function c(p,_e6={}){var _f2=_e6,{inExtensionLocale:u}=_f2,f=__objRest(_f2,["inExtensionLocale"]);const y=Wt(u===true?e.extensionLanguage:e.language),m=Yn(y,f);let g=s.get(m);return g||(g=Zo(y,f),s.set(m,g)),g.format(p)}const d=(p,u={})=>{let f=t[p],y=false;const m=Wt(e.extensionLanguage);function g(k){if(r==="local")throw new et("translate(): ".concat(k));console.error(new et("translate(): ".concat(k)))}if(typeof u.count=="number"){const k=Qo(m).select(u.count),B="".concat(p,".").concat(k);if(f=t[B],f===void 0){const K=t["".concat(p,".other")];if(k!=="other"&&K!==void 0)f=K,console.warn(new et('translate(): MISSING PLURALIZATION KEY for locale "'.concat(m,'": "').concat(B,'". Using fallback key of "').concat(p,'.other".')));else if(typeof t[p]=="string")y=true,f=t[p];else{const Ct='MISSING PLURALIZATION KEY for locale "'.concat(m,'": "').concat(B,'"');return g(Ct),Ct}}}else if(typeof u.count=="string"&&typeof t[p]=="string")f=t[p];else if(u.count!==void 0){const k='INCORRECT TYPE for options.count. Must be typeof "number".';return g(k),k}if(f===void 0){const k=["".concat(p,".zero"),"".concat(p,".one"),"".concat(p,".two"),"".concat(p,".few"),"".concat(p,".many"),"".concat(p,".other")];let B='MISSING KEY for locale "'.concat(m,'": "').concat(p,'"');for(const K of k)if(t[K]!==void 0){B='MISSING PROPERTY "options.count" for pluralization.',g(B);break}return g(B),B}const h=[],v=/(.*?(?={{|$|\n))(?:{{(.+?(?=}}))}})?/g,T=new Set(Object.keys(u)),A=new Set,S=[];let E=v.exec(f),O=false;for(;E&&!(E.index>=f.length);){const k=E[0],B=E[2],K=B==null?void 0:B.trim(),Ct=h.length-1;let Gs=E[1]||"",Ba=false;if(K!==void 0)if(T.has(K))typeof u[K]=="string"||typeof u[K]=="number"?Gs+=String(u[K]):B!==void 0&&(O=true,Ba=true),A.add(K);else{const Eb='MISSING PLACEHOLDER VALUE for locale "'.concat(m,'": "options.').concat(B,'" is required for "').concat(p,'"');g(Eb),h.push(k),E=v.exec(f);continue}typeof h[Ct]=="string"?h[Ct]+=Gs:h.push(Gs),Ba&&K!==void 0&&h.push(u[K]),E=v.exec(f)}for(const k of T)y===false&&k==="count"||A.has(k)||S.push('"{{'.concat(k,'}}"'));if(S.length>0){const k=S.length===1?"MISSING PLACEHOLDER":"MISSING PLACEHOLDERS";g("".concat(k,' for locale "').concat(m,'": ').concat(S.join(", "),' not found in "').concat(p,'"'))}return O?h:h.join("")};return{formatNumber:Qe(a),formatCurrency:Qe(o),formatDate:Qe(c),translate:Qe(d)}}function Yn(e,t={}){return"".concat(e,"|").concat(JSON.stringify(t))}function Ni(e,t){try{return t(e)}catch(r){const i=tl(e);if(i&&i!==e)return t(i);throw r}}function Jo(e,t){return Ni(e,r=>new Intl.NumberFormat(Wn(r),t))}function Zo(e,t){return Ni(e,r=>new Intl.DateTimeFormat(Wn(r),t))}function Qo(e){return Ni(e,t=>new Intl.PluralRules(t))}function tl(e){var _a5;return(_a5=e.match(/^([a-z]{2,3})(?:[-_].*)?$/i))==null?void 0:_a5[1]}function Wt(e){return"current"in e?e.current.isoCode:e.isoCode}function el(e){return"current"in e?e.current.isoCode:e.isoCode}function rl(e,t,r,i,s){const a=Kn(e),o=__spreadProps(__spreadValues({},a),{i18n:Xo(a.localization,r,i)});return qo(o),o.extensionPoint=t,o.extension.target=t,o}function Kn(e){if(il(e))return nl(e);if(typeof e=="object"&&e!=null&&!sl(e)){for(const t of Object.keys(e)){const r=e;r[t]=Kn(r[t])}return e}return e}function il(e){return typeof e=="object"&&e!=null&&"initial"in e&&typeof e.subscribe=="function"}function sl(e){return typeof e=="object"&&e!=null&&"current"in e&&typeof e.subscribe=="function"}function nl(e){const t=Uo(e);return Object.defineProperty(t,Ln,{value:true}),Object.defineProperty(t,"value",{get(){return t.current}}),t}class al{constructor(){__privateAdd(this,_t4,new Set)}throwDetachedOnce(t,r){const i=(()=>{try{return String(r)}catch(e){return"unknown error"}})();try{if(__privateGet(this,_t4).has(t))return;const s=new qn("[extension-tts] ".concat(t," ExtensionSandboxError: ").concat(i),{cause:r});setTimeout(()=>{throw s},0),__privateGet(this,_t4).add(t)}catch(e){}}reset(){__privateGet(this,_t4).clear()}}_t4=new WeakMap;const Yt=new al;function ol(e,t){try{const r=e,i=r.query;if(typeof i!="function")return;Ht(i),r.query=function(...a){t.fetchStarted(true);try{return Reflect.apply(i,this,a).finally(()=>{t.fetchResolved()})}catch(o){throw t.fetchResolved(),o}}}catch(r){t.silence(),Yt.throwDetachedOnce("wrap-query-setup",r)}}const ll="sandbox-js-eval",cl=2e3,xi=Co(self,{callable:[]});self.addEventListener("message",({data:e})=>{e!=null&&e.__replace instanceof MessagePort&&(xi.replace(e.__replace),e.__replace.start())}),Object.defineProperty(self,"endpoint",{value:xi,enumerable:false,writable:false,configurable:true});function ul(){const e=xi;return e.callable("reload"),e.callable("apiFetch"),e.callable("extensionPerformanceMarkStarted"),e.callable("extensionPerformanceMarkFinished"),e.callable("reportSandboxError"),e.callable("reportApiRead"),e}function Ri(e){return typeof e=="object"&&e!==null&&e.name==="ExtensionSandboxError"}function Pi(e,t){try{if(!e||typeof e!="object")return null;const r=e.stack;if(!r||typeof r!="string")return null;for(const i of t.keys())if(r.includes(i))return i}catch(e2){return null}return null}const dl=5e3;
1class bl extends Error{constructor(){super(...arguments),this.name="RealmTeardownTimeoutError"}}let tr=0;const Ci=new Map,Kt=new Map;function Xn(e,t){var _a5;e.set(t,((_a5=e.get(t))!=null?_a5:0)+1)}function hl(e,t){var _a5;const r=((_a5=e.get(t))!=null?_a5:0)-1;r>0?e.set(t,r):e.delete(t)}function Jn(){return tr>0}function Zn(e){var _a5;return((_a5=Ci.get(e))!=null?_a5:0)>0}function Qn(e){var _a5;return((_a5=Kt.get(e))!=null?_a5:0)>0}function ta(e){return Kt.has(e)}function Si(e,{anyRealmIsTearingDown:t,realmScriptIsTearingDown:r,realmScriptWasActivated:i,hasLiveRealmForScript:s}){return e?r(e)||i(e)&&!s(e):t()}function fl(e){Xn(Kt,e)}function ea(e){const t=Kt.get(e);t!==void 0&&Kt.set(e,Math.max(0,t-1))}function pl(e,t){let r;return()=>r!=null?r:r=ml(e,t)}function ml(e,t){return(()=>__async(null,null,function*(){tr+=1,Xn(Ci,t),ea(t);let r;try{yield Promise.race([e(),new Promise((i,s)=>{r=setTimeout(()=>s(new bl("Realm teardown timed out")),dl)})])}finally{clearTimeout(r),setTimeout(()=>{tr=Math.max(0,tr-1),hl(Ci,t)},cl)}}))()}function gl(e){return function(r,i){const{name:s,message:a,stack:o}=r,c={name:s,message:a!=null?a:String(r),stack:o};e.call.reportSandboxError(c,i)}}function ra(e){console.error("Unexpected sandbox error. This has been reported to the host.",e)}function yl(e,{allRealmScripts:t,reportSandboxError:r,teardownState:i}){e.addEventListener("error",s=>{const{error:a}=s;
1if(!Ri(a))return;const o=Pi(a,t);Si(o,i)||ra(a)}),e.addEventListener("unhandledrejection",s=>{const{reason:a}=s;if(!Ri(a))return;const o=Pi(a,t);Si(o,i)||(r(a,{scriptUrl:o!=null?o:void 0}),ra(a))})}function vl(e,t){let r=e;do Object.getOwnPropertyNames(r).filter(i=>i in t&&t[i]!==false).forEach(i=>{try{const s=Object.getOwnPropertyDescriptor(r,i);Object.defineProperty(r,i,{value:t[i]===true?void 0:t[i],configurable:true,enumerable:s==null?void 0:s.enumerable,writable:false})}catch(e2){}}),r=Object.getPrototypeOf(r);while(r!==Object.prototype)}function El(e,t){vl(e,t)}const wl=/^\/api\/.+\/graphql\.json$/,Al=/^(\/\/)?(\/)?storefront\/api\/(.+\/)?graphql\.json$/;function Tl(e,t,r){const i=new URL(e),s=new URL(t),a=new URL("https://".concat(r)),o=wl.test(i.pathname)&&(i.host===s.host||i.host===a.host);return Al.test(i.pathname)||o}function kl(){return __async(this,null,function*(){throw new et('permission to access the storefront API must be specified under [capabilities] with flag "api_access = true"; this can be done within your extension\'s configuration. View the docs for more information:\n\nhttps://shopify.dev/docs/api/checkout-ui-extensions/configuration#api-access')})}function _i(){return __async(this,null,function*(){throw new et('permission to use fetch() must be specified under [capabilities] with flag "network_access = true"; this can be done within your extension\'s configuration. View the docs for more information:\n\nhttps://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access')})}function ia(){throw new et('permission to use WebSocket must be specified under [capabilities] with flag "network_access = true"; this can be done within your extension\'s configuration. View the docs for more information:\n\nhttps://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access')}const sa={XMLHttpRequestUpload:true,XMLHttpRequestEventTarget:true,XMLHttpRequest:true,BackgroundFetchManager:true,BackgroundFetchRecord:true,BackgroundFetchRegistration:true,BackgroundFetchEvent:true,BackgroundFetchUpdateUIEvent:true,Cache:true,CacheStorage:true,caches:true,fetch:_i,Request:true,Response:true,Headers:true,Worker:true,SharedWorker:true,WebSocket:ia,EventSource:true,PaymentMethodChangeEvent:true,PaymentRequest:true,PaymentRequestUpdateEvent:true,PaymentResponse:true,PushEvent:true,PushManager:true,PushMessageData:true,PushSubscription:true,PushSubscriptionOptions:true,ServiceWorkerRegistration:true,importScripts:true};function na(e){if(typeof e=="function"||e instanceof AbortSignal)return;if(typeof e!="object"||e==null)return e;const t={};for(const r in e)t[r]=na(e[r]);return t}const Nl=Request,xl=Response,Rl=[101,103,204,205,304];function Pl(_0){return __async(this,arguments,function*(e,t={}){const{port1:r,port2:i}=new MessageChannel;try{const s=new Nl(e,t);if(new URL(s.url).origin===self.origin)throw Error("Fetches to the iframe's origin are not allowed.");s.signal.throwIfAborted(),s.signal.addEventListener("abort",()=>{r.postMessage({action:"abort",reason:s.signal.reason})});const a=s.url,o={method:s.method,headers:[...s.headers],mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,referrer:s.referrer,integrity:s.integrity,keepalive:s.keepalive},c=[i];s.method!=="GET"&&s.method!=="HEAD"&&(o.body=yield s.arrayBuffer(),c.push(o.body));const d={action:"fetch",url:a,requestInit:o,returnPort:i};return self.postMessage(d,c),new Promise((p,u)=>{r.addEventListener("message",f=>{if(f.data){if(f.data.error)u(f.data.error),r.close();else if(f.data.response){const{status:y}=f.data.response.init,m=Rl.includes(y)?null:f.data.response.body;p(new xl(m,f.data.response.init)),r.close()}}}),r.start()})}catch(s){return r==null?void 0:r.close(),Promise.reject(s)}})}const Cl=Date.now();function Sl(){return aa(performance.now())}function aa(e){return typeof(performance==null?void 0:performance.timeOrigin)=="number"?e+performance.timeOrigin:e+Cl}function _l(e){const t=aa(e.settledAt);return __spreadValues({startTime:t,timestamp:t,ttsCompletionReason:e.reason,ttsRenderObserved:e.renderedContent},e.fetchAttributable===true&&{ttsRequestCount:e.fetchCount})}function er(){return{startTime:Sl(),timestamp:Date.now()}}function Ol(e){return{extensionPerformanceMarkStarted:(t,r={})=>{e.call.extensionPerformanceMarkStarted(t,__spreadValues(__spreadValues({},er()),r))},extensionPerformanceMarkFinished:(t,r={})=>{e.call.extensionPerformanceMarkFinished(t,__spreadValues(__spreadValues({},er()),r))}}}class Dl{constructor(){__privateAdd(this,_t5,new Map)}registerCapture(t,r){const i=__privateGet(this,_t5).get(t);i&&i!==r&&this.discardCapture(t,i),__privateGet(this,_t5).set(t,r)}discardCapture(t,r){try{if(__privateGet(this,_t5).get(t)!==r)return;try{r.silence()}finally{__privateGet(this,_t5).delete(t)}}catch(i){Yt.throwDetachedOnce("bridge-discard-capture",i)}}liveCaptureCount(){return __privateGet(this,_t5).size}isSoleCapture(t){return __privateGet(this,_t5).size===1&&__privateGet(this,_t5).has(t)}notifyFetchStarted(){const t=[...__privateGet(this,_t5).values()];try{for(const r of t)r.fetchStarted()}catch(r){Yt.throwDetachedOnce("bridge-notify-fetch-started",r)}return()=>{try{for(const r of t)r.fetchResolved()}catch(r){Yt.throwDetachedOnce("bridge-resolve-fetch",r)}}}reset(){__privateGet(this,_t5).clear()}}_t5=new WeakMap;const rr=new Dl,Vl=Request,Ml=Response,zl=e=>t=>__async(null,null,function*(){const r=yield e.call.apiFetch(t);return Ll(r)});let oa;function Il(e){oa=zl(e)}function Ll(_J){var _K=_J,{body:e}=_K,t=__objRest(_K,["body"]);return new Ml(e,t)}function Fl({allowNetworkAccess:e,allowApiAccess:t,storefrontUrl:r,myshopifyDomain:i,metrics:s,extensionId:a,instanceId:o,capture:c}){const d=Pl;return function(u,f){return __async(this,null,function*(){var _a5,_b3;let y,m,g="external";const h=performance.now(),{startTime:v}=er();let T;c?(c.fetchStarted(true),T=()=>c.fetchResolved()):T=rr.notifyFetchStarted();try{if(!e&&!t)throw yield _i();let A;
1try{A=new Vl(u,f)}catch(E){throw new et("Invalid request: ".concat(E))}if(Tl(A.url,r,i)){if(g="storefront",!t)return yield kl();const E=yield A.text(),O=yield oa(__spreadProps(__spreadValues({},na(A)),{headers:A.headers?Array.from(A.headers.entries()):[],body:E}));return"status"in O&&typeof O.status=="number"&&(m=O.status),O}if(g="external",e){const E=yield d(u,f);return"status"in E&&typeof E.status=="number"&&(m=E.status),E}return yield _i()}catch(A){throw A instanceof Error&&A.name==="ExtensionUsageError"?y="ExtensionUsageError":y="unknown",A}finally{T();let A="unknown",S="unknown";try{const B=typeof u=="string"?u:u.url;S=B,A=new URL(B).origin}catch(e2){}const O=((_b3=(_a5=f==null?void 0:f.method)!=null?_a5:typeof u=="string"?void 0:u.method)!=null?_b3:"GET").toUpperCase(),k=performance.now()-h;s.extensionPerformanceMarkFinished("extension-fetch-call",{type:"extension-fetch",startTime:v,duration:k,errorType:y,destination:g,httpStatus:m,httpMethod:O,origin:A,requestUrl:S,extensionId:a,instanceId:o})}})}}const la=new Map;function Bl(){for(const e of Object.keys(sa)){const t=$l(self,e);t&&la.set(e,t),Object.defineProperty(self,e,{value:void 0,configurable:false,enumerable:false})}}function jl(e){const t=Ul(e.protectedApi);for(const r of Object.keys(t)){const i=la.get(r);i&&Object.defineProperty(e.global,r,i)}El(e.global,t)}function $l(e,t){let r=e;for(;r;){const i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function Ul({allowNetworkAccess:e,allowApiAccess:t,storefrontUrl:r,myshopifyDomain:i,metrics:s,extensionId:a,instanceId:o,extensionTTSCapture:c}){const d=__spreadProps(__spreadValues({},sa),{fetch:Fl({allowNetworkAccess:e,allowApiAccess:t,storefrontUrl:r,myshopifyDomain:i,metrics:s,extensionId:a,instanceId:o,capture:c})});return e||t?__spreadProps(__spreadValues({},d),{WebSocket:e?false:ia,Request:false,Response:false,Headers:false}):d}class Oi extends CustomEvent{respondWith(t){this.response=t}}const Di=Object.freeze({});class ir extends HTMLElement{static get observedAttributes(){return this.finalize().__observedAttributes}static get remotePropertyDefinitions(){return this.finalize().__remotePropertyDefinitions}static get remoteAttributeDefinitions(){return this.finalize().__remoteAttributeDefinitions}static get remoteEventDefinitions(){return this.finalize().__remoteEventDefinitions}static get remoteSlotDefinitions(){return this.finalize().__remoteSlotDefinitions}static createProperty(t,r){zi(t,r,this.observedAttributes,this.remotePropertyDefinitions,this.__attributeToPropertyMap,this.__eventToPropertyMap)}static finalize(){if(this.hasOwnProperty("__finalized"))return this;this.__finalized=true;const{slottable:t,remoteSlots:r,remoteProperties:i,remoteAttributes:s,remoteEvents:a,remoteMethods:o}=this,c=Object.getPrototypeOf(this),d=new Set;t&&d.add("slot");const p=new Map,u=new Map,f=new Map,y=new Map,m=new Map,g=new Map;if(typeof c.finalize=="function"&&(c.finalize(),c.observedAttributes.forEach(h=>{d.add(h)}),c.remotePropertyDefinitions.forEach((h,v)=>{y.set(v,h)}),c.remoteAttributeDefinitions.forEach((h,v)=>{m.set(v,h)}),c.remoteEventDefinitions.forEach((h,v)=>{g.set(v,h)}),c.remoteSlotDefinitions.forEach((h,v)=>{f.set(v,h)})),r!=null&&(Array.isArray(r)?r:Object.keys(r)).forEach(v=>{f.set(v,Di)}),i!=null&&(Array.isArray(i)?i.forEach(h=>{zi(h,void 0,d,y,p,u)}
1):Object.keys(i).forEach(h=>{zi(h,i[h],d,y,p,u)})),s==null?void 0:s.forEach(h=>{m.set(h,Di),d.add(h)}),a!=null&&(Array.isArray(a)?a.forEach(h=>{g.set(h,Di)}):Object.keys(a).forEach(h=>{g.set(h,a[h])})),o!=null)if(Array.isArray(o))for(const h of o)this.prototype[h]=function(...v){return this.callRemoteMethod(h,...v)};else Object.assign(this,o);return Object.defineProperties(this,{__observedAttributes:{value:[...d],enumerable:false},__remoteSlotDefinitions:{value:f,enumerable:false},__remotePropertyDefinitions:{value:y,enumerable:false},__remoteAttributeDefinitions:{value:m,enumerable:false},__remoteEventDefinitions:{value:g,enumerable:false},__attributeToPropertyMap:{value:p,enumerable:false},__eventToPropertyMap:{value:u,enumerable:false}}),this}constructor(){var _a5;super(),this.constructor.finalize();const t={},r={},i=Object.getPrototypeOf(this),s=this.constructor;for(const[a,o]of s.remotePropertyDefinitions.entries()){const c=o.name;if(i.hasOwnProperty(a))continue;a===c&&(r[a]=o.default);const d={configurable:true,enumerable:a===c,get:()=>{var _a6;return(_a6=di(this))==null?void 0:_a6[c]},set:p=>{Be(this,c,p)}};t[a]=d}for(const[a,o]of s.remoteEventDefinitions.entries()){const c=(_a5=o.property)!=null?_a5:true;if(!c)continue;const d=c===true?"on".concat(a):c;t[d]={configurable:true,enumerable:true,get:()=>{var _a6;return(_a6=Xt(this).properties.get(d))!=null?_a6:null},set:p=>{const u=Xt(this),f=u.properties.get(d);if(typeof p=="function"){let y=function(...m){return p.call(this,...m)};u.properties.set(d,y),this.addEventListener(a,y)}else u.properties.delete(d);f&&this.removeEventListener(a,f)}}}Object.defineProperties(this,t),Object.assign(this,r)}attributeChangedCallback(t,r,i){if(t==="slot"&&this.constructor.slottable){Ut(this,t,i?String(i):void 0);return}const{remotePropertyDefinitions:s,remoteAttributeDefinitions:a,__attributeToPropertyMap:o}=this.constructor;if(a.has(t)){Ut(this,t,i);return}const c=o.get(t),d=c==null?c:s.get(c);d!=null&&(this[c]=Gl(i,d.type))}connectedCallback(){for(const[t,r]of this.constructor.remoteEventDefinitions.entries())r.bubbles&&this.addEventListener(t,ua)}disconnectedCallback(){for(const[t,r]of this.constructor.remoteEventDefinitions.entries())r.bubbles&&this.removeEventListener(t,ua)}addEventListener(t,r,i){const{remoteEventDefinitions:s,__eventToPropertyMap:a}=this.constructor,o=s.get(t),c=a.get(t);if(o==null&&c==null)return super.addEventListener(t,r,i);const d=Xt(this),p=ql.call(this,t,{property:c,definition:o}),u=typeof i=="object"&&(i==null?void 0:i.once)?(...y)=>{const m=typeof r=="object"?r.handleEvent(...y):r.call(this,...y);return Mi.call(this,t,r,f),m}:r,f=[u,p];p.listeners.add(r),d.listeners.set(r,f),super.addEventListener(t,u,i),typeof i=="object"&&i.signal&&i.signal.addEventListener("abort",()=>{Mi.call(this,t,r,f)},{once:true}),o?An(this,t,p.dispatch):Be(this,c,p.dispatch)}removeEventListener(t,r,i){var _a5;const s=(_a5=Vi.get(this))==null?void 0:_a5.listeners.get(r),a=s?s[0]:r;super.removeEventListener(t,a,i),s!=null&&Mi.call(this,t,r,s)}updateRemoteProperty(t,r){Be(this,t,r)}updateRemoteAttribute(t,r){Ut(this,t,r)}callRemoteMethod(t,...r){return To(this,t,...r)}}__publicField(ir,"slottable",true);__publicField(ir,"__finalized",true);__publicField(ir,"__observedAttributes",[]);__publicField(ir,"__attributeToPropertyMap",new Map);__publicField(ir,"__eventToPropertyMap",new Map);__publicField(ir,"__remotePropertyDefinitions",new Map);__publicField(ir,"__remoteAttributeDefinitions",new Map);__publicField(ir,"__remoteEventDefinitions",new Map);__publicField(ir,"__remoteSlotDefinitions",new Map);const Vi=new WeakMap;function Xt(e){let t=Vi.get(e);return t||(t={events:new Map,properties:new Map,listeners:new WeakMap},Vi.set(e,t),t)}function ql(e,{property:t,definition:r}){const i=Xt(this);let s=i.events.get(e);return s==null&&(s={name:e,property:t,definition:r,listeners:new Set,dispatch:(...a)=>{var _a5,_b3;const o=(_b3=(_a5=r==null?void 0:r.dispatchEvent)==null?void 0:_a5.apply(this,a))!=null?_b3:new Oi(e,{detail:a[0],bubbles:r==null?void 0:r.bubbles});return this.dispatchEvent(o),o.response}},i.events.set(e,s)),s}function Mi(e,t,r){var _a5,_b3;const i=Xt(this),s=r[1];s.listeners.delete(t),i.listeners.delete(t),!(s.listeners.size>0)&&(i.events.delete(e),s.property?((_a5=di(this))==null?void 0:_a5[s.property])===s.dispatch&&Be(this,s.property,void 0):((_b3=wn(this))==null?void 0:_b3[e])===s.dispatch&&An(this,e,void 0))}function zi(e,t,r,i,s,a){if(i.has(e))return i.get(e);const o=e[0]==="o"&&e[1]==="n",c=t!=null?t:{};let{alias:d}=c;const{type:p=o?Function:String,attribute:u=p!==Function,event:f=o,default:y=p===Boolean?false:void 0}=c;if(d==null){const v=e.toLowerCase();v!==e&&(d=[v]),o&&(d!=null?d:d=[],d.unshift("_".concat(e)))}let m;u===true?m=ca(e):typeof u=="string"&&(m=u),m&&(Array.isArray(r)?r.push(m):r.add(m),s.set(m,e));let g;f===true?g=ca(o?e.slice(2):e):typeof f=="string"&&(g=f),g&&a.set(g,e);const h={name:e,type:p,alias:d,event:g,attribute:m,default:y};if(i.set(e,h),d)for(const v of d)i.set(v,h);return h}function Gl(e,t){var _a5;if(e!=null)switch(t){case Boolean:return e!=null&&e!=="false";case Object:case Array:try{return JSON.parse(e)}catch(e2){return}case String:return String(e);case Number:return Number.parseFloat(e);case Function:return;default:return(_a5=t.parse)==null?void 0:_a5.call(t,e)}}function ca(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ua(){}class Hl{constructor(t,{batch:r=Wl()}={}){__privateAdd(this,_t6);__privateAdd(this,_e4);__privateAdd(this,_r4);__privateSet(this,_t6,t),__privateSet(this,_r4,r)}call(t,r,...i){__privateGet(this,_t6).call(t,r,...i)}mutate(t){var _a5;const r=__privateGet(this,_e4);(_a5=__privateGet(this,_e4))!=null?_a5:__privateSet(this,_e4,[]),__privateGet(this,_e4).push(...t),!r&&__privateGet(this,_r4).call(this,()=>{this.flush()})}flush(){__privateGet(this,_e4)&&(__privateGet(this,_t6).mutate(__privateGet(this,_e4)),__privateSet(this,_e4,void 0))}}_t6=new WeakMap;_e4=new WeakMap;_r4=new WeakMap;function Wl(){return e=>{if(typeof queueMicrotask=="function"){queueMicrotask(e);return}Promise.resolve().then(e)}}const Us=class Us extends ir{constructor(){super(),Object.entries(this.constructor.propertyDescriptors).forEac
1h(([t,r])=>{Object.prototype.hasOwnProperty.call(this.constructor.prototype,t)||Object.defineProperty(this,t,{get(){return r.get.call(this)},set(i){r.set.call(this,i)}})}),this.constructor.listensToBubbledEvents&&(this.onchange=null,this.oninput=null,this.onclick=null,this.onfocusin=null,this.onfocusout=null)}};Us.propertyDescriptors={};let w=Us;function l(e={}){const{defaultValue:t}=e,r=t!=null?t:"";return{defaultValue:r,get(i){return i||r},toAttribute(i){return i===r?null:i}}}function n(e,{attribute:t}){const r=typeof t=="string"?t.toLowerCase():t,i=(s,a)=>{if(!r)return;const o=e.toAttribute?e.toAttribute(a):a;if(o===null){if(!s.hasAttribute(r))return;s.removeAttribute(r);return}const c=String(o);s.getAttribute(r)!==c&&s.setAttribute(r,c)};return{get(){let s,a;if(r){const o=this.getAttribute(r);o!==null&&(e.parseAttribute?s=e.parseAttribute(o):s=o)}return a=e.get(s!=null?s:null,this),a!=null?a:a=e.defaultValue,a},set(s){e.set?e.set(s,a=>i(this,a)):i(this,String(s))}}}const Yl={id:n(l(),{attribute:"id"}),title:n(l(),{attribute:"title"})},ee=class ee extends w{static get remoteAttributes(){return["id","title"]}};ee.tagName="s-abbreviation",ee.propertyDescriptors=Yl,ee.listensToBubbledEvents=true;let Ii=ee;const qs=class qs extends w{static get remoteMethods(){return["dismiss"]}static get remoteEvents(){return{aftertoggle:{bubbles:true,dispatchEvent(t){return new ToggleEvent("aftertoggle",{oldState:t,newState:t==="open"?"closed":"open"})}},dismiss:{bubbles:true,dispatchEvent(){return new Event("dismiss",{bubbles:true})}},toggle:{bubbles:true,dispatchEvent(t){return new ToggleEvent("toggle",{oldState:t,newState:t==="open"?"closed":"open"})}}}}};qs.tagName="s-announcement";let Li=qs;function da(e){return typeof e=="string"&&e.startsWith("@container")}function b(e,{defaultValue:t,separator:r,canBeResponsive:i,trimWhitespace:s=false,mapAliases:a={}}){const o=new Set(e),c=d=>i&&da(d)?true:r&&String(d).split(r).every(p=>o.has(s?p.trim():p))||o.has(s?String(d).trim():d);return{defaultValue:t,parseAttribute(d){return c(d)?d:null},get(d){var _a5;return!c(d)||d==null?t:i&&da(d)?d:r&&a?d.split(r).map(u=>{var _a6;return(_a6=a[u])!=null?_a6:u}).join(r):(_a5=a[d])!=null?_a5:d}}}const ba=["alert-circle","alert-triangle-filled","alert-triangle","arrow-down","arrow-left","arrow-right","arrow-up-right","arrow-up","bag","bullet","calendar","camera","caret-down","cart","cash-dollar","categories","check-circle","check-circle-filled","check","chevron-down","chevron-left","chevron-right","chevron-up","circle","clipboard","clock","credit-card","delete","delivered","delivery","disabled","discount","edit","email","empty","external","filter","geolocation","gift","gift-card","globe","grid","image","info-filled","info","list-bulleted","location","lock","map","menu-horizontal","menu-vertical","menu","minus","mobile","note","order","organization","plus","profile","question-circle-filled","question-circle","reorder","reset","return","savings","search","settings","star-filled","star-half","star","store","truck","upload","x-circle-filled","x-circle","x"],Kl=["small-200","small-100","small","base","large","large-100"],Xl=["auto","neutral","custom","info","success","warning","critical"],ha=ba,Jl={id:n(l(),{attribute:"id"}),size:n(b(Kl,{defaultValue:"base",mapAliases:{small:"small-100",large:"large-100"}}),{attribute:"size"}),tone:n(b(Xl,{defaultValue:"auto"}),{attribute:"tone"}),type:n(b([...ba,""],{defaultValue:""}),{attribute:"type"})},Zl=["base","subdued"],Ql=["start","end"],tc=["small","small-100","base"],ec=["auto","neutral","critical"],rc={color:n(b(Zl,{defaultValue:"base"}),{attribute:"color"}),icon:n(b([...ha,""],{defaultValue:""}),{attribute:"icon"}),iconPosition:n(b(Ql,{defaultValue:"start"}),{attribute:"iconposition"}),id:n(l(),{attribute:"id"}),size:n(b(tc,{defaultValue:"base",mapAliases:{small:"small-100"}}),{attribute:"size"}),tone:n(b(ec,{defaultValue:"auto"}),{attribute:"tone"})},or=class or extends w{static get remoteAttributes(){return["color","icon","iconposition","id","size","tone"]}};or.tagName="s-badge",or.propertyDescriptors=rc;let Fi=or;function N(){return{defaultValue:false,parseAttribute(e){return typeof e=="string"}
1,set(e,t){t(e?String(e):"")},get(e){return e?typeof e=="string"?true:e:false},toAttribute(e){return e?"":null}}}const ic=["auto","info","success","warning","critical"],sc={collapsible:n(N(),{attribute:"collapsible"}),dismissible:n(N(),{attribute:"dismissible"}),heading:n(l(),{attribute:"heading"}),hidden:n(N(),{attribute:"hidden"}),id:n(l(),{attribute:"id"}),tone:n(b(ic,{defaultValue:"auto"}),{attribute:"tone"})},re=class re extends w{static get remoteAttributes(){return["collapsible","dismissible","heading","hidden","id","tone"]}static get remoteEvents(){return{afterhide:{bubbles:true,dispatchEvent(){return this.hidden=true,new Event("afterhide")}},dismiss:{dispatchEvent(){return new Event("dismiss")}}}}};re.tagName="s-banner",re.propertyDescriptors=sc,re.listensToBubbledEvents=true;let Bi=re;const nc=String.raw(_a||(_a=__template(["[+-]?(?:d+(?:.d+)?|.d+)(?:e[+-]?d+)?"],["[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:e[+-]?\\d+)?"]))),ac=new RegExp("^(".concat(nc,")(?:px|%)$"),"i");function L({defaultValue:e,type:t}){return{defaultValue:e,get(r){return sr(r,t)?r:e}}}function sr(e,t){if(typeof e!="string")return false;if(e==="0"||t==="auto"&&e==="auto"||t==="none"&&e==="none")return true;const r=ac.exec(e);return r!==null&&Number.isFinite(Number(r[1]))}function fa(){return{defaultValue:"auto",get(e){return oc(e)?e:"auto"}}}function oc(e){if(typeof e!="string")return false;if(e==="auto")return true;const t=e.split(" ");if(t.length!==2)return false;const[r,i]=t;return r==="auto"?sr(i,"size"):i==="auto"&&sr(r,"size")}function lc(){return{defaultValue:"none",get(e){return cc(e)?e:"none"}}}function cc(e){if(typeof e!="string")return false;if(e==="none")return true;if(!e.startsWith("translate(")||!e.endsWith(")"))return false;const t=e.slice(10,-1).split(",");return t.length>2?false:t.every(r=>sr(r.trim(),"size"))}function Mt(e,t){var _a5;const r=new Set,i=Object.keys(e);for(const s of t){let a=[s];for(const o of i){const c=(_a5=e[o])!=null?_a5:[],d=[];for(;a.length>0;){const p=a.shift();for(const u of c){const f=p.replace(new RegExp("{".concat(o,"}"),"g"),u);d.push(f)}}a=d}a.forEach(o=>r.add(o))}return Array.from(r)}const uc=["main","header","footer","section","aside","navigation","ordered-list","list-item","list-item-separator","unordered-list","separator","status","alert","generic","presentation","none"],dc=["visible","hidden","exclusive"],bc=["transparent","subdued","base"],hc=["small-100","small","base","large","large-100","max","none"],pa=["none","solid","dashed","dotted","auto",""],ma=["base","large","large-100","large-200","none",""],fc=Mt({Size:ma,Style:pa,Color:["base"]},["none","{Size}","{Size} {Color}","{Size} {Color} {Style}"]),pc=["none","auto"],mc=["visible","hidden"],yt=["base","small-500","small-400","small-300","small-200","small-100","small","large","large-100","large-200","large-300","large-400","large-500","none"],gc=["absolute","relative"],yc={background:n(b(bc,{defaultValue:"transparent"}),{attribute:"background"})},vc={border:n(b(fc,{defaultValue:"none",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"border"}),borderRadius:n(b(hc,{defaultValue:"none",separator:" ",mapAliases:{small:"small-100",large:"large-100"}}),{attribute:"borderradius"}),borderStyle:n(b(pa,{defaultValue:"",separator:" "}),{attribute:"borderstyle"}),borderWidth:n(b(ma,{defaultValue:"",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"borderwidth"})},Ec={display:n(b(pc,{defaultValue:"auto",canBeResponsive:true}),{attribute:"display"})},ga={blockSize:n(L({defaultValue:"auto",type:"auto"}),{attribute:"blocksize"}),inlineSize:n(L({defaultValue:"auto",type:"auto"}),{attribute:"inlinesize"}),maxBlockSize:n(L({defaultValue:"none",type:"none"}),{attribute:"maxblocksize"}),maxInlineSize:n(L({defaultValue:"none",type:"none"}),{attribute:"maxinlinesize"}),minBlockSize:n(L({defaultValue:"0",type:"size"}),{attribute:"minblocksize"}),minInlineSize:n(L({defaultValue:"0",type:"size"}),{attribute:"mininlinesize"})},wc={overflow:n(b(mc,{defaultValue:"visible"}),{attribute:"overflow"})},ya={padding:n(b(yt,{defaultValue:"none",separator:" ",canBeResponsive:true}),{attribute:"padding"}),paddingBlock:n(b([...yt,""],{defaultValue:"",separator:" ",canBeResponsive:true}),{attribute:"paddingblock"}),paddingBlockEnd:n(b([...yt,""],{defaultValue:"",canBeResponsive:true}),{attribute:"paddingblockend"}),paddingBlockStart:n(b([...yt,""],{defaultValue:"",canBeResponsive:true}),{attribute:"paddingblockstart"}),paddingInline:n(b([...yt,""],{defaultValue:"",separator:" ",canBeResponsive:true}),{attribute:"paddinginline"}),paddingInlineEnd:n(b([...yt,""],{defaultValue:"",canBeResponsive:true}),{attribute:"paddinginlineend"}),paddingInlineStart:n(b([...yt,""],{defaultValue:"",canBeResponsive:true}),{attribute:"paddinginlinestart"})},Jt=__spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({},yc),vc),Ec),wc),ya),ga),{accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),accessibilityRole:n(b(uc,{defaultValue:"generic"}),{attribute:"accessibilityrole"}),accessibilityVisibility:n(b(dc,{defaultValue:"visible"}),{attribute:"accessibilityvisibility"}),id:n(l(),{attribute:"id"})}),Ac={insetBlock:n(fa(),{attribute:"insetblock"}),insetInline:n(fa(),{attribute:"insetinline"}),position:n(b(gc,{defaultValue:"relative"}),{attribute:"position"}),transform:n(lc(),{attribute:"transform"})},ie=class ie extends w{static get remoteAttributes(){return["accessibilitylabel","accessibilityrole","accessibilityvisibility","background","blocksize","border","borderradiu
1s","borderstyle","borderwidth","display","id","inlinesize","insetblock","insetinline","maxblocksize","maxinlinesize","minblocksize","mininlinesize","overflow","padding","paddingblock","paddingblockend","paddingblockstart","paddinginline","paddinginlineend","paddinginlinestart","position","transform"]}};ie.tagName="s-box",ie.propertyDescriptors=__spreadValues(__spreadValues({},Jt),Ac),ie.listensToBubbledEvents=true;let ji=ie;const Tc=["--auto","--toggle","--copy","--show","--hide"],kc=["auto","fill","fit-content"],Nc=["auto","_blank"],xc=["auto","neutral","critical"],Rc=["button","submit"],Pc=["auto","primary","secondary"],Cc={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),command:n(b(Tc,{defaultValue:"--auto"}),{attribute:"command"}),commandFor:n(l(),{attribute:"commandfor"}),disabled:n(N(),{attribute:"disabled"}),href:n(l(),{attribute:"href"}),id:n(l(),{attribute:"id"}),inlineSize:n(b(kc,{defaultValue:"auto"}),{attribute:"inlinesize"}),interestFor:n(l(),{attribute:"interestfor"}),loading:n(N(),{attribute:"loading"}),target:n(b(Nc,{defaultValue:"auto"}),{attribute:"target"}),tone:n(b(xc,{defaultValue:"auto"}),{attribute:"tone"}),type:n(b(Rc,{defaultValue:"button"}),{attribute:"type"}),variant:n(b(Pc,{defaultValue:"auto"}),{attribute:"variant"})},lr=class lr extends w{static get remoteAttributes(){return["accessibilitylabel","command","commandfor","interestfor","disabled","href","id","inlinesize","loading","target","tone","type","variant"]}static get remoteEvents(){return{click:{bubbles:true,dispatchEvent(){return new Event("click",{bubbles:true})}}}}};lr.tagName="s-button",lr.propertyDescriptors=Cc;let $i=lr;const Sc={id:n(l(),{attribute:"id"}),accessibilityLabel:n(l(),{attribute:"accessibility-label"}),inlineSize:n(L({defaultValue:"0",type:"size"}),{attribute:"inline-size"}),blockSize:n(L({defaultValue:"0",type:"size"}),{attribute:"block-size"})},cr=class cr extends w{static get remoteAttributes(){return["id","accessibility-label","inline-size","block-size"]}static get remoteEvents(){return{ready:{bubbles:true,dispatchEvent(){return new Event("ready",{bubbles:true})}}}}get contentWindow(){return{postMessage:t=>{this.callRemoteMethod("relayMessage",t)}}}};cr.tagName="s-chat",cr.propertyDescriptors=Sc;let Ui=cr;const _c=["--auto","--toggle","--show","--hide"],va={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),command:n(b(_c,{defaultValue:"--auto"}),{attribute:"command"}),commandFor:n(l(),{attribute:"commandfor"}),defaultChecked:n(N(),{attribute:"checked"}),disabled:n(N(),{attribute:"disabled"}),error:n(l(),{attribute:"error"}),id:n(l(),{attribute:"id"}),label:n(l(),{attribute:"label"}),name:n(l(),{attribute:"name"}),required:n(N(),{attribute:"required"}),value:n(l(),{attribute:"value"})},ur=class ur extends w{constructor(){super(...arguments);F(this,vt)}static get remoteAttributes(){return["accessibilitylabel","checked","command","commandfor","disabled","error","id","label","name","required","value"]}static get remoteEvents(){return{change:{bubbles:true,dispatchEvent(r){return R(this,vt,!!r),new Event("change",{bubbles:true})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get checked(){var _a5;return(_a5=P(this,vt))!=null?_a5:this.defaultChecked}set checked(r){R(this,vt,!!r),this.__sync()}__sync(){this.updateRemoteProperty("checked",[P(this,vt)])}};vt=new WeakMap,ur.tagName="s-checkbox",ur.propertyDescriptors=va;let qi=ur;const Oc={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),id:n(l(),{attribute:"id"})},dr=class dr extends w{static get remoteAttributes(){return["accessibilitylabel","id"]}static get remoteEvents(){return{click:{bubbles:true,dispatchEvent(){return new Event("click",{bubbles:true})}}}}};dr.tagName="s-chip",dr.propertyDescriptors=Oc;let Gi=dr;const Dc={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),disabled:n(N(),{attribute:"disabled"}),id:n(l(),{attribute:"id"}),label:n(l(),{attribute:"label"}),value:n(l(),{attribute:"value"}),defaultSelected:n(N(),{attribute:"selected"})},br=class br extends w{constructor(){super(...arguments);F(this,dt);this.__list=void 0,R(this,dt,false)}static get observedAttributes(){return["accessibilitylabel","disabled","id","label","selected","value"]}attributeChangedCallback(r,i,s){var _a5;if(r==="selected"){const a=typeof s=="string";this.__list?a?this.__list.__addValue(this.value):this.__list.__removeValue(this.value):R(this,dt,a)}
1else r==="value"&&((_a5=this.__list)==null?void 0:_a5.__updateValue(i,s)),this.updateRemoteAttribute(r,s)}get selected(){return this.__list?this.__list.values.includes(this.value):P(this,dt)}set selected(r){var _a5;r?this.__list?this.__list.__addValue(this.value):R(this,dt,true):((_a5=this.__list)==null?void 0:_a5.__removeValue(this.value),R(this,dt,false))}get value(){var _a5;return(_a5=this.getAttribute("value"))!=null?_a5:"on"}set value(r){this.setAttribute("value",String(r))}};dt=new WeakMap,br.tagName="s-choice",br.propertyDescriptors=Dc;let ct=br;const Vc=["visible","exclusive"],Mc=["list","block","inline","grid","auto"],Ea={disabled:n(N(),{attribute:"disabled"}),error:n(l(),{attribute:"error"}),id:n(l(),{attribute:"id"}),label:n(l(),{attribute:"label"}),labelAccessibilityVisibility:n(b(Vc,{defaultValue:"visible"}),{attribute:"labelaccessibilityvisibility"}),multiple:n(N(),{attribute:"multiple"}),name:n(l(),{attribute:"name"}),variant:n(b(Mc,{defaultValue:"list"}),{attribute:"variant"})},se=class se extends w{constructor(){super(...arguments);F(this,M);F(this,It)}static get remoteAttributes(){return["disabled","error","id","label","labelaccessibilityvisibility","multiple","name","variant"]}static get remoteEvents(){return{input:{bubbles:true},change:{bubbles:true,dispatchEvent(r){return R(this,It,r),this.dispatchEvent(new Event("input",{bubbles:true})),new Event("change",{bubbles:true})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}appendChild(r){const i=_(this,M,Yr).call(this,_(this,M,Wr).call(this,r)),s=super.appendChild(r);return _(this,M,Kr).call(this,i),s}insertBefore(r,i){const s=_(this,M,Yr).call(this,_(this,M,Wr).call(this,r)),a=super.insertBefore(r,i);return _(this,M,Kr).call(this,s),a}replaceChild(r,i){if(!(r instanceof ct)||!(i instanceof ct))return i;const s=r.value===i.value?[r]:_(this,M,Yr).call(this,[r]);if(!s.length)return i;_(this,M,Ws).call(this,i);const a=super.replaceChild(r,i);return _(this,M,Ys).call(this,i),_(this,M,Kr).call(this,s),a}removeChild(r){r instanceof ct&&_(this,M,Ws).call(this,r);const i=super.removeChild(r);return r instanceof ct&&_(this,M,Ys).call(this,r),i}__addValue(r){this.multiple?this.values=[...this.values,r]:this.values=[r]}__removeValue(r){this.values=this.values.filter(i=>i!==r)}__updateValue(r,i){this.values.includes(r)&&(this.multiple?this.values=[...this.values.filter(s=>s!==r),i]:this.values=[i])}get values(){var _a5;return(_a5=P(this,It))!=null?_a5:[]}set values(r){const i=[];r.length&&P(this,M,Ks).forEach(s=>{r.includes(s.value)&&i.push(s.value)}),_(this,M,$a).call(this,i)}__sync(){this.updateRemoteProperty("values",[this.values])}};It=new WeakMap,M=new WeakSet,$a=function(r){R(this,It,r),this.__sync()},Wr=function(r,i=[]){return r instanceof DocumentFragment?r.childNodes.forEach(s=>{_(this,M,Wr).call(this,s,i)}):r instanceof ct?i.push(r):r instanceof Element&&console.warn("`s-choice-list` must only contain `s-choice` elements"),i},Ws=function(r){const i=r.selected;r.__list=void 0,r.selected=i},Ys=function(r){this.__removeValue(r.value)},Yr=function(r){const i=new Set;return r.filter(s=>i.has(s.value)||_(this,M,Ua).call(this,s.value)?(console.warn('s-choice-list already has an s-choice with value "'.concat(s.value,'". The new s-choice will be ignored.')),false):(i.add(s.value),true))},Kr=function(r){for(const i of r)i.selected&&this.__addValue(i.value),i.__list=this},Ks=function(){return Array.from(this.querySelectorAll("s-choice"))},Ua=function(r){return P(this,M,Ks).find(i=>i.value===r)},se.tagName="s-choice-list",se.propertyDescriptors=Ea,Object.entries(Ea).forEach(([r,i])=>{Object.defineProperty(se.prototype,r,{get(){return i.get.call(this)},set(s){i.set.call(this,s)}})});let Hi=se;const zc=["visible","hidden","exclusive"],Ic=["transparent","subdued","base"],Lc=["small-100","small","base","large","large-100","max","none"],wa=["none","solid","dashed","dotted","auto",""],Aa=["base","large","large-100","large-200","none",""],Fc=Mt({Size:Aa,Style:wa,Color:["base"]},["none","{Size}","{Size} {Color}","{Size} {Color} {Style}"]),Bc=["none","auto"],jc=["visible","hidden"],$c=["auto","_blank"],Uc=["button","submit"],qc=["--auto","--toggle","--copy","--show","--hide"],Gc=__spreadProps(__spreadValues({},ya),{accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),accessibilityVisibility:n(b(zc,{defaultValue:"visible"}),{attribute:"accessibilityvisibility"}),background:n(b(Ic,{defaultValue:"transparent"}),{attribute:"background"}),blockSize:n(L({defaultValue:"auto",type:"auto"}),{attribute:"blocksize"}),border:n(b(Fc,{defaultValue:"none",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"border"}),borderColor:n(l(),{attribute:"bordercolor"}),borderRadius:n(b(Lc,{defaultValue:"none",separator:" ",mapAliases:{small:"small-100",large:"large-100"}}
1),{attribute:"borderradius"}),borderStyle:n(b(wa,{defaultValue:"",separator:" "}),{attribute:"borderstyle"}),borderWidth:n(b(Aa,{defaultValue:"",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"borderwidth"}),command:n(b(qc,{defaultValue:"--auto"}),{attribute:"command"}),commandFor:n(l(),{attribute:"commandfor"}),disabled:n(N(),{attribute:"disabled"}),display:n(b(Bc,{defaultValue:"auto"}),{attribute:"display"}),href:n(l(),{attribute:"href"}),id:n(l(),{attribute:"id"}),interestFor:n(l(),{attribute:"interestfor"}),inlineSize:n(L({defaultValue:"auto",type:"auto"}),{attribute:"inlinesize"}),lang:n(l(),{attribute:"lang"}),loading:n(N(),{attribute:"loading"}),maxBlockSize:n(L({defaultValue:"none",type:"none"}),{attribute:"maxblocksize"}),maxInlineSize:n(L({defaultValue:"none",type:"none"}),{attribute:"maxinlinesize"}),minBlockSize:n(L({defaultValue:"0",type:"size"}),{attribute:"minblocksize"}),minInlineSize:n(L({defaultValue:"0",type:"size"}),{attribute:"mininlinesize"}),overflow:n(b(jc,{defaultValue:"visible"}),{attribute:"overflow"}),target:n(b($c,{defaultValue:"auto"}),{attribute:"target"}),type:n(b(Uc,{defaultValue:"button"}),{attribute:"type"})}),hr=class hr extends w{static get remoteAttributes(){return["accessibilitylabel","accessibilityvisibility","background","blocksize","border","borderradiu
1s","borderstyle","borderwidth","command","commandfor","interestfor","disabled","display","href","id","inlinesize","lang","loading","maxblocksize","maxinlinesize","minblocksize","mininlinesize","overflow","padding","paddingblock","paddingblockend","paddingblockstart","paddinginline","paddinginlineend","paddinginlinestart","target","type"]}static get remoteEvents(){return{blur:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusout",{bubbles:true})),new FocusEvent("blur")}},click:{bubbles:true,dispatchEvent(){return new Event("click",{bubbles:true})}},focus:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),new FocusEvent("focus")}}}}};hr.tagName="s-clickable",hr.propertyDescriptors=Gc;let Wi=hr;const Hc={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),disabled:n(N(),{attribute:"disabled"}),hidden:n(N(),{attribute:"hidden"}),href:n(l(),{attribute:"href"}),id:n(l(),{attribute:"id"}),removable:n(N(),{attribute:"removable"})},fr=class fr extends w{static get remoteAttributes(){return["accessibilitylabel","disabled","hidden","href","id","removable"]}static get remoteEvents(){return{afterhide:{bubbles:true,dispatchEvent(){return new Event("afterhide",{bubbles:true})}},click:{bubbles:true,dispatchEvent(){return new Event("click",{bubbles:true})}},remove:{bubbles:true,dispatchEvent(){return new Event("remove",{bubbles:true})}}}}};fr.tagName="s-clickable-chip",fr.propertyDescriptors=Hc;let Yi=fr;const Wc=__spreadProps(__spreadValues({},va),{policy:n(l(),{attribute:"policy"})}),pr=class pr extends w{constructor(){super();F(this,ne);F(this,Et);R(this,Et,true),setTimeout(()=>{R(this,Et,false)},0)}static get remoteAttributes(){return["accessibilitylabel","command","commandfor","disabled","error","id","label","name","value","policy","checked"]}static get remoteEvents(){return{change:{bubbles:true,dispatchEvent(r){return R(this,ne,!!r),new Event("change",{bubbles:true})}}}}setAttribute(r,i){if(r==="checked"&&!P(this,Et)){console.warn("ConsentCheckbox: checked cannot be set after first tick");return}return super.setAttribute(r,i)}removeAttribute(r){if(r==="checked"&&!P(this,Et)){console.warn("ConsentCheckbox: checked cannot be set after first tick");return}return super.removeAttribute(r)}get checked(){var _a5,_b3;return(_b3=P(this,ne))!=null?_b3:((_a5=self.initialValues)==null?void 0:_a5.acceptSmsMarketing)||this.defaultChecked}set checked(r){console.warn("ConsentCheckbox: checked cannot be set programmatically")}};ne=new WeakMap,Et=new WeakMap,pr.tagName="s-consent-checkbox",pr.propertyDescriptors=Wc;let Ki=pr;function rt({defaultValue:e="on"}={}){return{defaultValue:e,get(t){return Yc(t!=null?t:e)}}}let Zt=null;function Yc(e){if(typeof window>"u"||!window.document)return e;Zt||(Zt=window.document.createElement("input")),Zt.autocomplete=String(e);const t=Zt.autocomplete;return Zt.autocomplete="",t}function V({min:e=-1/0,max:t=1/0,floor:r=false,defaultValue:i=0}={}){const s=a=>(r&&(a=Math.floor(a)),a<e?e:a>t?t:a);return{defaultValue:i,get(a){const o=Number(a);return a===null||Number.isNaN(o)?i:s(o)}}}const Kc=["visible","exclusive"],it={defaultValue:n(l(),{attribute:"value"}),disabled:n(N(),{attribute:"disabled"}),error:n(l(),{attribute:"error"}),id:n(l(),{attribute:"id"}),label:n(l(),{attribute:"label"}),labelAccessibilityVisibility:n(b(Kc,{defaultValue:"visible"}),{attribute:"labelaccessibilityvisibility"}),name:n(l(),{attribute:"name"}),placeholder:n(l(),{attribute:"placeholder"}),readOnly:n(N(),{attribute:"readonly"}),required:n(N(),{attribute:"required"})},Xc=__spreadProps(__spreadValues({},it),{autocomplete:n(rt({defaultValue:"on"}),{attribute:"autocomplete"}),icon:n(b([...ha,""],{defaultValue:""}),{attribute:"icon"}),maxLength:n(V({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:n(V({defaultValue:0,min:0,floor:true}),{attribute:"minlength"}),prefix:n(l(),{attribute:"prefix"}),suffix:n(l(),{attribute:"suffix"})}),mr=class mr extends w{constructor(){super(...arguments);F(this,wt)}static get remoteAttributes(){return["autocomplete","disabled","error","icon","id","label","labelaccessibilityvisibility","maxlength","minlength","name","placeholder","prefix","readonly","required","suffix","value"]}static get remoteEvents(){return{blur:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusout",{bubbles:true})),new FocusEvent("blur")}},change:{bubbles:true,dispatchEvent(r){return R(this,wt,String(r)),new Event("change",{bubbles:true})}},focus:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),new FocusEvent("focus")}},input:{bubbles:true,dispatchEvent(r){return R(this,wt,String(r)),new Event("input",{bubbles:true})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get value(){var _a5;return(_a5=P(this,wt))!=null?_a5:this.defaultValue}set value(r){R(this,wt,r===null?"":String(r)),this.__sync()}__sync(){this.updateRemoteProperty("value",[this.value])}};wt=new WeakMap,mr.tagName="s-text-field",mr.propertyDescriptors=Xc;let J=mr;const Jc=["mobile",""],Ta=__spreadProps(__spreadValues({},it),{autocomplete:n(rt({defaultValue:"on"}),{attribute:"autocomplete"}),type:n(b(Jc,{defaultValue:""}),{attribute:"type"})}),gr=class gr extends J{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","name","placeholder","readonly","required","type","value"]}};gr.tagName="s-phone-field",gr.propertyDescriptors=Ta;let nr=gr;const Zc=__spreadProps(__spreadValues({},Ta),{policy:n(l(),{attribute:"policy"})}),yr=class yr extends nr{static get remoteAttributes(){return[...super.remoteAttributes,"policy"]}constructor(){var _a5,_b3;super(),super.value=(_b3=(_a5=self.initialValues)==null?void 0:_a5.smsMarketingPhone)!=null?_b3:""}get value(){var _a5;return(_a5=super.value)!=null?_a5:""}set value(t){console.warn("ConsentPhoneField: value cannot be set programmatically")}get defaultValue(){return""}set defaultValue(t){console.warn("ConsentPhoneField: defaultValue cannot be set programmatically")}setAttribute(t,r){if(t==="value"){console.warn("ConsentPhoneField: ".concat(t," cannot be set programmatically"));return}return super.setAttribute(t,r)}};yr.tagName="s-consent-phone-field",yr.propertyDescriptors=Zc;let Xi=yr;const Qc={id:n(l(),{attribute:"id"}),text:n(l(),{attribute:"text"})},vr=class vr extends w{static get remoteAttributes(){return["id","text"]}static get remoteEvents(){return{copy:{bubbles:true,dispatchEvent(){return new ClipboardEvent("copy",{bubbles:true})}},copyerror:{dispatchEvent(){return new Event("copyerror")}}}}};vr.tagName="s-clipboard-item",vr.propertyDescriptors=Qc;let Ji=vr;const tu=__spreadProps(__spreadValues({},it),{autocomplete:n(rt({defaultValue:"on"}),{attribute:"autocomplete"}),allow:n(l(),{attribute:"allow"}),disallow:n(l(),{attribute:"disallow"}),allowDays:n(l(),{attribute:"allowdays"}),disallowDays:n(l(),{attribute:"disallowdays"}),defaultView:n(l(),{attribute:"view"})}),Er=class Er extends J{constructor(){super(...arguments);F(this,At)}static get remoteAttributes(){return["allow","allowdays","autocomplete","disabled","disallow","disallowdays","error","id","label","name","placeholder","readonly","required","value","view"]}static get remoteEvents(){return __spreadProps(__spreadValues({},super.remoteEvents),{viewchange:{bubbles:true,dispatchEvent(r){return R(this,At,String(r)),new Event("viewchange",{bubbles:true})}},invalid:{bubbles:true,dispatchEvent(){return new Event("invalid",{bubbles:true})}}})}get view(){var _a5;return(_a5=P(this,At))!=null?_a5:this.defaultView}set view(r){R(this,At,String(r)),this.__sync()}__sync(){super.__sync(),this.updateRemoteProperty("view",[P(this,At)])}};At=new WeakMap,Er.tagName="s-date-field",Er.propertyDescriptors=tu;let Zi=Er;
1const eu=["single","multiple","range"],ru={allow:n(l(),{attribute:"allow"}),allowDays:n(l(),{attribute:"allowdays"}),defaultValue:n(l(),{attribute:"value"}),defaultView:n(l(),{attribute:"view"}),disabled:n(N(),{attribute:"disabled"}),disallow:n(l(),{attribute:"disallow"}),disallowDays:n(l(),{attribute:"disallowdays"}),id:n(l(),{attribute:"id"}),name:n(l(),{attribute:"name"}),type:n(b(eu,{defaultValue:"single"}),{attribute:"type"})},wr=class wr extends w{constructor(){super(...arguments);F(this,Tt);F(this,kt)}static get remoteAttributes(){return["allow","allowdays","disabled","disallow","disallowdays","id","name","type","view","value"]}static get remoteEvents(){return{blur:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusout",{bubbles:true})),new FocusEvent("blur")}},change:{bubbles:true,dispatchEvent(){return new Event("change",{bubbles:true})}},focus:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),new FocusEvent("focus")}},input:{bubbles:true,dispatchEvent(r){return R(this,Tt,String(r)),new Event("input",{bubbles:true})}},viewchange:{bubbles:true,dispatchEvent(r){return R(this,kt,String(r)),new Event("viewchange",{bubbles:true})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get value(){var _a5;return(_a5=P(this,Tt))!=null?_a5:this.defaultValue}set value(r){R(this,Tt,r===null?"":String(r)),this.__syncValue()}get view(){var _a5;return(_a5=P(this,kt))!=null?_a5:this.defaultView}set view(r){R(this,kt,String(r)),this.__syncView()}__syncValue(){this.updateRemoteProperty("value",[P(this,Tt)])}__syncView(){this.updateRemoteProperty("view",[P(this,kt)])}__sync(){this.__syncValue(),this.__syncView()}};Tt=new WeakMap,kt=new WeakMap,wr.tagName="s-date-picker",wr.propertyDescriptors=ru;let Qi=wr;const iu=["auto","none"],su={id:n(l(),{attribute:"id"}),name:n(l(),{attribute:"name"}),defaultOpen:n(N(),{attribute:"open"}),toggleTransition:n(b(iu,{defaultValue:"auto"}),{attribute:"toggleTransition"})},ae=class ae extends w{constructor(){super(...arguments);F(this,Nt)}static get remoteAttributes(){return["id","name","open","toggletransition"]}static get remoteEvents(){return{aftertoggle:{bubbles:true,dispatchEvent(r){return new ToggleEvent("aftertoggle",{oldState:r,newState:r==="open"?"closed":"open"})}},toggle:{bubbles:true,dispatchEvent(r){return R(this,Nt,r==="closed"),new ToggleEvent("toggle",{oldState:r,newState:r==="open"?"closed":"open"})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get open(){var _a5;return(_a5=P(this,Nt))!=null?_a5:this.defaultOpen}set open(r){R(this,Nt,!!r),this.__sync()}__sync(){this.updateRemoteProperty("open",[P(this,Nt)])}};Nt=new WeakMap,ae.tagName="s-details",ae.propertyDescriptors=su,ae.listensToBubbledEvents=true;let ts=ae;const nu=["inline","block"],au={id:n(l(),{attribute:"id"}),direction:n(b(nu,{defaultValue:"inline"}),{attribute:"direction"})},Ar=class Ar extends w{static get remoteAttributes(){return["id","direction"]}};Ar.tagName="s-divider",Ar.propertyDescriptors=au;let es=Ar;const ou={accept:n(l(),{attribute:"accept"}),accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),disabled:n(N(),{attribute:"disabled"}),error:n(l(),{attribute:"error"}),id:n(l(),{attribute:"id"}),label:n(l(),{attribute:"label"}),multiple:n(N(),{attribute:"multiple"}),name:n(l(),{attribute:"name"}),required:n(N(),{attribute:"required"})},Tr=class Tr extends w{constructor(){super(...arguments);F(this,le);F(this,Lt);F(this,oe)}static get remoteAttributes(){return["accept","accessibilitylabel","disabled","error","id","label","multiple","name","required"]}static get remoteEvents(){return{droprejected:{dispatchEvent(){return new Event("droprejected")}},input:{bubbles:true,dispatchEvent(r){return _(this,le,Xs).call(this,r),new Event("input",{bubbles:true})}},change:{bubbles:true,dispatchEvent(){return new Event("change",{bubbles:true})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get files(){var _a5;return(_a5=P(this,oe))!=null?_a5:[]}set files(r){console.warn("`s-drop-zone`: cannot set `files` directly.")}get value(){var _a5;return(_a5=P(this,Lt))!=null?_a5:""}set value(r){if(r!==""&&r!==null){console.warn("`s-drop-zone`: `value` can only be set to an empty string or null.");return}_(this,le,Xs).call(this,[])}__sync(){this.updateRemoteProperty("value",P(this,Lt))}};Lt=new WeakMap,oe=new WeakMap,le=new WeakSet,Xs=function(r){var _a5;r.some(i=>!(i instanceof File))||(R(this,oe,r),R(this,Lt,r.length?"C:\\fakepath\\".concat((_a5=r[0])==null?void 0:_a5.name):""),this.__sync())},Tr.tagName="s-drop-zone",Tr.propertyDescriptors=ou;let rs=Tr;const lu=__spreadProps(__spreadValues({},it),{autocomplete:n(rt({defaultValue:"email"}),{attribute:"autocomplete"}),maxLength:n(V({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:n(V({defaultValue:0,min:0,floor:true}),{attribute:"minlength"})}),kr=class kr extends J{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","maxlength","minlength","name","placeholder","readonly","required","value"]}};kr.tagName="s-email-field",kr.propertyDescriptors=lu;let is=kr;
1class cu extends Event{constructor(t,r){super(t,{bubbles:r==null?void 0:r.bubbles})}}class uu extends Event{constructor(t){super("viewchange",{bubbles:t.bubbles}),this.location=t.location,this.zoom=t.zoom}}class du extends Event{constructor(t){super("boundschange",{bubbles:t.bubbles}),this.bounds=t.bounds}}class bu extends Event{constructor(t){super("click",{bubbles:t.bubbles}),this.location=t.location}}class hu extends Event{constructor(t){super("dblclick",{bubbles:t.bubbles}),this.location=t.location}}const fu={disabled:n(N(),{attribute:"disabled"}),id:n(l(),{attribute:"id"})},ce=class ce extends w{static get remoteAttributes(){return["disabled","id"]}static get remoteEvents(){return{submit:{bubbles:true,dispatchEvent(){return new cu("submit",{bubbles:true})}}}}};ce.tagName="s-form",ce.propertyDescriptors=fu,ce.listensToBubbledEvents=true;let ss=ce;const ka=["","normal","space-between","space-around","space-evenly","stretch","center","start","end"],Na=["","normal","stretch","center","start","end"],xa=["","normal","space-between","space-around","space-evenly","stretch","center","start","end"],Ra=["","normal","stretch","center","start","end"],pu=["small-500","small-400","small-300","small-200","small-100","small","base","large","large-100","large-200","large-300","large-400","large-500","none"],mu=["","small-500","small-400","small-300","small-200","small-100","small","base","large","large-100","large-200","large-300","large-400","large-500","none"],gu=["","small-500","small-400","small-300","small-200","small-100","small","base","large","large-100","large-200","large-300","large-400","large-500","none"],yu=Mt({AlignContent:ka,JustifyContent:xa},["{AlignContent}","{AlignContent} {JustifyContent}"]),vu=Mt({AlignItems:Na,JustifyItems:Ra},["{AlignItems}","{AlignItems} {JustifyItems}"]),Eu=__spreadProps(__spreadValues({},Jt),{alignContent:n(b(ka,{defaultValue:"",canBeResponsive:true}),{attribute:"aligncontent"}),alignItems:n(b(Na,{defaultValue:"",canBeResponsive:true}),{attribute:"alignitems"}),columnGap:n(b(mu,{defaultValue:"",mapAliases:{small:"small-100",large:"large-100"},canBeResponsive:true}),{attribute:"columngap"}),gap:n(b(pu,{defaultValue:"none",separator:" ",mapAliases:{small:"small-100",large:"large-100"},canBeResponsive:true}),{attribute:"gap"}),gridTemplateColumns:n(l({defaultValue:"none"}),{attribute:"gridtemplatecolumns"}),gridTemplateRows:n(l({defaultValue:"none"}),{attribute:"gridtemplaterows"}),justifyContent:n(b(xa,{defaultValue:"",canBeResponsive:true}),{attribute:"justifycontent"}),justifyItems:n(b(Ra,{defaultValue:"",canBeResponsive:true}),{attribute:"justifyitems"}),placeContent:n(b(yu,{defaultValue:"normal normal",separator:" ",canBeResponsive:true}),{attribute:"placecontent"}),placeItems:n(b(vu,{defaultValue:"normal normal",separator:" ",canBeResponsive:true}),{attribute:"placeitems"}),rowGap:n(b(gu,{defaultValue:"",mapAliases:{small:"small-100",large:"large-100"},canBeResponsive:true}),{attribute:"rowgap"})}),ue=class ue extends w{static get remoteAttributes(){return["accessibilitylabel","accessibilityrole","accessibilityvisibility","aligncontent","alignitems","background","blocksize","border","borderradiu
1s","borderstyle","borderwidth","columngap","display","gap","gridtemplatecolumns","gridtemplaterows","id","inlinesize","justifycontent","justifyitems","maxblocksize","maxinlinesize","minblocksize","mininlinesize","overflow","padding","paddingblock","paddingblockend","paddingblockstart","paddinginline","paddinginlineend","paddinginlinestart","placecontent","placeitems","rowgap"]}};ue.tagName="s-grid",ue.propertyDescriptors=Eu,ue.listensToBubbledEvents=true;let ns=ue;function Pa(){const e="auto";return{defaultValue:e,get(t){if(!t||typeof t!="string"||t===e)return e;const r=t.trim().split(/\s+/),[i,s]=r,a=s?parseInt(s,10):NaN;return r.length>2||i!=="span"||isNaN(a)||a<=0||a===1/0?e:"span ".concat(a)}}}const wu=__spreadProps(__spreadValues({},Jt),{gridColumn:n(Pa(),{attribute:"gridcolumn"}),gridRow:n(Pa(),{attribute:"gridrow"})}),de=class de extends w{static get remoteAttributes(){return["id","gridcolumn","gridrow","accessibilityvisibility","background","display","blocksize","minblocksize","maxblocksize","inlinesize","mininlinesize","maxinlinesize","padding","paddingblock","paddingblockstart","paddingblockend","paddinginline","paddinginlinestart","paddinginlineend","border","borderwidth","borderstyle","borderradiu
1s","overflow","accessibilitylabel","accessibilityrole"]}};de.tagName="s-grid-item",de.propertyDescriptors=wu,de.listensToBubbledEvents=true;let as=de;const Au={accessibilityRole:n(b(["heading","presentation","none"],{defaultValue:"heading"}),{attribute:"accessibilityrole"}),id:n(l(),{attribute:"id"})},be=class be extends w{static get remoteAttributes(){return["accessibilityrole","id"]}};be.tagName="s-heading",be.propertyDescriptors=Au,be.listensToBubbledEvents=true;let os=be;const Nr=class Nr extends w{static get remoteAttributes(){return["id","size","tone","type"]}};Nr.tagName="s-icon",Nr.propertyDescriptors=Jl;let ls=Nr;const zt="1/1";function Tu(){return{defaultValue:zt,get(e){if(!e||typeof e!="string")return zt;const t=e.split("/");if(t.length>2)return zt;const r=t.map(a=>Number(a.trim()||NaN));if(r.some(a=>isNaN(a)||a<=0||a===1/0))return zt;if(r.length===1){const a=r[0];return a?"".concat(a,"/1"):zt}const[i,s]=r;return i&&s?"".concat(i,"/").concat(s):zt}}}const ku=["img","presentation","none"],Nu=["small-100","small","base","large","large-100","max","none"],Ca=["none","solid","dashed","dotted","auto"],Sa=["none","base","large","large-100","large-200"],xu=Mt({Size:Sa,Style:Ca,Color:["base"]},["none","{Size}","{Size} {Color}","{Size} {Color} {Style}"]),Ru=["auto","fill"],Pu=["eager","lazy"],Cu=["contain","cover"],Su={accessibilityRole:n(b(ku,{defaultValue:"img"}),{attribute:"accessibilityrole"}),alt:n(l(),{attribute:"alt"}),aspectRatio:n(Tu(),{attribute:"aspectratio"}),border:n(b(xu,{defaultValue:"none",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"border"}),borderRadius:n(b(Nu,{defaultValue:"none",separator:" ",mapAliases:{small:"small-100",large:"large-100"}}),{attribute:"borderradius"}),borderStyle:n(b(Ca,{defaultValue:"",separator:" "}),{attribute:"borderstyle"}),borderWidth:n(b(Sa,{defaultValue:"",separator:" ",mapAliases:{large:"large-100"}}),{attribute:"borderwidth"}),id:n(l(),{attribute:"id"}),inlineSize:n(b(Ru,{defaultValue:"fill"}),{attribute:"inlinesize"}),loading:n(b(Pu,{defaultValue:"eager"}),{attribute:"loading"}),objectFit:n(b(Cu,{defaultValue:"contain"}),{attribute:"objectfit"}),sizes:n(l(),{attribute:"sizes"}),src:n(l(),{attribute:"src"}),srcSet:n(l(),{attribute:"srcset"})},xr=class xr extends w{static get remoteAttributes(){return["accessibilityrole","alt","aspectratio","border","borderradiu
1s","borderstyle","borderwidth","id","inlinesize","loading","objectfit","sizes","src","srcset"]}};xr.tagName="s-image",xr.propertyDescriptors=Su;let cs=xr;const _u=["--auto","--toggle","--copy","--show","--hide"],Ou=["auto","_blank"],Du=["auto","neutral"],Vu={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),command:n(b(_u,{defaultValue:"--auto"}),{attribute:"command"}),commandFor:n(l(),{attribute:"commandfor"}),href:n(l(),{attribute:"href"}),id:n(l(),{attribute:"id"}),interestFor:n(l(),{attribute:"interestfor"}),lang:n(l(),{attribute:"lang"}),target:n(b(Ou,{defaultValue:"auto"}),{attribute:"target"}),tone:n(b(Du,{defaultValue:"auto"}),{attribute:"tone"})},Rr=class Rr extends w{static get remoteAttributes(){return["accessibilitylabel","command","commandfor","href","id","interestfor","lang","target","tone"]}static get remoteEvents(){return{click:{bubbles:true,dispatchEvent(){return new Event("click",{bubbles:true})}}}}};Rr.tagName="s-link",Rr.propertyDescriptors=Vu;let us=Rr;const Mu={id:n(l(),{attribute:"id"})},he=class he extends w{static get remoteAttributes(){return["id"]}};he.tagName="s-list-item",he.propertyDescriptors=Mu,he.listensToBubbledEvents=true;let ds=he;const zu={open:n(N(),{attribute:"open"}),doRedirect:n(N(),{attribute:"doredirect"}),modalTitle:n(l(),{attribute:"modaltitle"}),modalDescription:n(l(),{attribute:"modaldescription"}),modalLogoSrc:n(l(),{attribute:"modallogosrc"}),modalContinueText:n(l(),{attribute:"modalcontinuetext"}),modalCancelText:n(l(),{attribute:"modalcanceltext"})};class Iu extends Event{constructor(t){super("statuschange"),this.status=t}}function _a2(e){return e!==null&&(typeof e=="object"||typeof e=="function")&&"then"in e&&typeof e.then=="function"}function Lu(e,t){if(!_a2(t))return;const r=e.response,i=_a2(r)?Promise.all([r,t]).then(()=>{}):Promise.resolve(t);e.respondWith(i)}const Pr=class Pr extends w{constructor(){super(...arguments),this.completeEventListeners=new WeakMap}static get remoteAttributes(){return["open","doredirect","modaltitle","modaldescription","modallogosrc","modalcontinuetext","modalcanceltext"]}static get remoteEvents(){return{closed:{dispatchEvent(){return new Event("closed")}},complete:{dispatchEvent(){return new Oi("complete")}},statuschange:{dispatchEvent(t){return new Iu(t)}}}}addEventListener(t,r,i){if(t!=="complete"||r===null){super.addEventListener(t,r,i);return}super.addEventListener(t,this.completeEventListener(r),i)}removeEventListener(t,r,i){if(r===null)return;const s=t==="complete"?this.completeEventListeners.get(r):void 0;super.removeEventListener(t,s!=null?s:r,i)}completeEventListener(t){let r=this.completeEventListeners.get(t);return r!==void 0||(r=i=>{const s=typeof t=="function"?t.call(this,i):t.handleEvent(i);i instanceof Oi&&Lu(i,s)},this.completeEventListeners.set(t,r)),r}};Pr.tagName="s-login-with-shop",Pr.propertyDescriptors=zu;let bs=Pr;const Fu=4,Bu=0,ju=18,Oa=0,Da=0,$u={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),apiKey:n(l(),{attribute:"apikey"}),blockSize:n(L({defaultValue:"auto",type:"auto"}),{attribute:"blocksize"}),id:n(l(),{attribute:"id"}),inlineSize:n(L({defaultValue:"auto",type:"auto"}),{attribute:"inlinesize"}),latitude:n(V({defaultValue:Oa}),{attribute:"latitude"}),longitude:n(V({defaultValue:Da}),{attribute:"longitude"}),maxBlockSize:n(L({defaultValue:"none",type:"none"}),{attribute:"maxblocksize"}),maxInlineSize:n(L({defaultValue:"none",type:"none"}),{attribute:"maxinlinesize"}),maxZoom:n(V({defaultValue:ju}),{attribute:"maxzoom"}),minBlockSize:n(L({defaultValue:"0",type:"size"}),{attribute:"minblocksize"}),minInlineSize:n(L({defaultValue:"0",type:"size"}),{attribute:"mininlinesize"}),minZoom:n(V({defaultValue:Bu}),{attribute:"minzoom"}),zoom:n(V({defaultValue:Fu}),{attribute:"zoom"})},Cr=class Cr extends w{static get remoteAttributes(){return["accessibilitylabel","blocksize","apikey","id","inlinesize","latitude","longitude","maxblocksize","maxinlinesize","maxzoom","minblocksize","mininlinesize","minzoom","zoom"]}static get remoteEvents(){return{boundschange:{dispatchEvent(t){return new du({bounds:t})}},click:{dispatchEvent(t){return new bu({location:t})}},dblclick:{dispatchEvent(t){return new hu({location:t})}},viewchange:{dispatchEvent(t,r){return new uu({location:t,zoom:r})}}}}};Cr.tagName="s-map",Cr.propertyDescriptors=$u;let hs=Cr;
1const Uu=["--auto","--toggle","--show","--hide"],qu={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),blockSize:n(L({defaultValue:"auto",type:"auto"}),{attribute:"blocksize"}),command:n(b(Uu,{defaultValue:"--auto"}),{attribute:"command"}),commandFor:n(l(),{attribute:"commandfor"}),clusterable:n(N(),{attribute:"clusterable"}),inlineSize:n(L({defaultValue:"auto",type:"auto"}),{attribute:"inlinesize"}),latitude:n(V({defaultValue:Oa}),{attribute:"latitude"}),longitude:n(V({defaultValue:Da}),{attribute:"longitude"})},Sr=class Sr extends w{static get remoteAttributes(){return["accessibilitylabel","blocksize","command","commandfor","clusterable","icon","inlinesize","latitude","longitude"]}static get remoteEvents(){return{click:{bubbles:true,dispatchEvent(){return new Event("click",{bubbles:true})}}}}};Sr.tagName="s-map-marker",Sr.propertyDescriptors=qu;let fs=Sr;const Gu=["none","base"],Hu=["small-100","small","base","large-100","large","max"],Wu={accessibilitylabel:n(l(),{attribute:"accessibilitylabel"}),heading:n(l(),{attribute:"heading"}),id:n(l(),{attribute:"id"}),padding:n(b(Gu,{defaultValue:"base"}),{attribute:"padding"}),size:n(b(Hu,{defaultValue:"base"}),{attribute:"size"})},fe=class fe extends w{static get remoteAttributes(){return["accessibilitylabel","heading","id","padding","size"]}static get remoteMethods(){return["hideOverlay"]}static get remoteEvents(){return{afterhide:{dispatchEvent(){return new Event("afterhide")}},aftershow:{dispatchEvent(){return new Event("aftershow")}},hide:{dispatchEvent(){return new Event("hide")}},show:{dispatchEvent(){return new Event("show")}}}}};fe.tagName="s-modal",fe.propertyDescriptors=Wu,fe.listensToBubbledEvents=true;let ps=fe;const Yu=__spreadProps(__spreadValues({},it),{autocomplete:n(rt({defaultValue:"on"}),{attribute:"autocomplete"}),max:n(V({defaultValue:1/0}),{attribute:"max"}),min:n(V({defaultValue:-1/0}),{attribute:"min"}),step:n(V({defaultValue:1}),{attribute:"step"})}),_r=class _r extends J{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","max","min","name","readonly","required","step","value"]}};_r.tagName="s-money-field",_r.propertyDescriptors=Yu;let ms=_r;const Ku=["auto","stepper","none"],Xu=["decimal","numeric"],Ju=__spreadProps(__spreadValues({},it),{autocomplete:n(rt({defaultValue:"on"}),{attribute:"autocomplete"}),controls:n(b(Ku,{defaultValue:"auto"}),{attribute:"controls"}),inputMode:n(b(Xu,{defaultValue:"decimal"}),{attribute:"inputmode"}),max:n(V({defaultValue:1/0}),{attribute:"max"}),min:n(V({defaultValue:-1/0}),{attribute:"min"}),prefix:n(l(),{attribute:"prefix"}),step:n(V({defaultValue:1}),{attribute:"step"}),suffix:n(l(),{attribute:"suffix"})}),Or=class Or extends J{static get remoteAttributes(){return["autocomplete","controls","disabled","error","id","inputmode","label","labelaccessibilityvisibility","max","min","name","placeholder","prefix","readonly","required","step","suffix","value"]}};Or.tagName="s-number-field",Or.propertyDescriptors=Ju;let gs=Or;const Va={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),disabled:n(N(),{attribute:"disabled"}),id:n(l(),{attribute:"id"}),value:n(l(),{attribute:"value"}),defaultSelected:n(N(),{attribute:"selected"})},Ft=class Ft extends w{constructor(){super(...arguments);F(this,Dr);F(this,xt);this.__select=null,R(this,xt,false)}static get observedAttributes(){return["accessibilitylabel","disabled","id","value","selected"]}attributeChangedCallback(r,i,s){r==="selected"?this.__select&&(typeof s=="string"?this.__select.value=this.value:this.__select.__resetValue()):this.updateRemoteAttribute(r,s)}get selected(){return this.__select?this.__select.value===this.value:P(this,xt)}set selected(r){r?this.__select?this.__select.value=this.value:R(this,xt,true):R(this,xt,false)}get value(){var _a5,_b3;return(_b3=(_a5=this.getAttribute("value"))!=null?_a5:P(this,Dr,qa))!=null?_b3:""}set value(r){this.setAttribute("value",String(r))}};xt=new WeakMap,Dr=new WeakSet,qa=function(){var _a5;return((_a5=this.textContent)!=null?_a5:"").trim()},Ft.tagName="s-option",Ft.propertyDescriptors=Va,Object.entries(Va).forEac
1h(([r,i])=>{Object.prototype.hasOwnProperty.call(Ft.prototype,r)||Object.defineProperty(Ft.prototype,r,{get(){return i.get.call(this)},set(s){i.set.call(this,s)}})});let Qt=Ft;const Zu={id:n(l(),{attribute:"id"})},pe=class pe extends w{static get remoteAttributes(){return["id"]}};pe.tagName="s-ordered-list",pe.propertyDescriptors=Zu,pe.listensToBubbledEvents=true;let ys=pe;const Qu=["subdued","base"],td=["","auto","ltr","rtl"],ed=["auto","neutral","info","success","warning","critical","custom"],rd=["paragraph","small"],id=["start","end","center","auto"],sd={accessibilityVisibility:n(b(["visible","hidden","exclusive"],{defaultValue:"visible"}),{attribute:"accessibilityvisibility"}),color:n(b(Qu,{defaultValue:"base"}),{attribute:"color"}),dir:n(b(td,{defaultValue:""}),{attribute:"dir"}),id:n(l(),{attribute:"id"}),lang:n(l(),{attribute:"lang"}),tone:n(b(ed,{defaultValue:"auto"}),{attribute:"tone"}),textAlign:n(b(id,{defaultValue:"auto"}),{attribute:"textalign"}),type:n(b(rd,{defaultValue:"paragraph"}),{attribute:"type"})},me=class me extends w{static get remoteAttributes(){return["accessibilityvisibility","color","dir","id","lang","textalign","tone","type"]}};me.tagName="s-paragraph",me.propertyDescriptors=sd,me.listensToBubbledEvents=true;let vs=me;const nd=__spreadProps(__spreadValues({},it),{autocomplete:n(rt({defaultValue:"on"}),{attribute:"autocomplete"}),maxLength:n(V({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:n(V({defaultValue:0,min:0,floor:true}),{attribute:"minlength"})}),Vr=class Vr extends J{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","maxlength","minlength","name","readonly","required","value"]}};Vr.tagName="s-password-field",Vr.propertyDescriptors=nd;let Es=Vr;const ad={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),id:n(l(),{attribute:"id"}),type:n(l(),{attribute:"type"})},Mr=class Mr extends w{static get remoteAttributes(){return["accessibilitylabel","id","type"]}};Mr.tagName="s-payment-icon",Mr.propertyDescriptors=ad;let ws=Mr;const od=__spreadProps(__spreadValues({},ga),{id:n(l(),{attribute:"id"})}),ge=class ge extends w{static get remoteAttributes(){return["blocksize","id","inlinesize","maxblocksize","maxinlinesize","minblocksize","mininlinesize"]}static get remoteEvents(){return["hide","show"]}};ge.tagName="s-popover",ge.propertyDescriptors=od,ge.listensToBubbledEvents=true;let As=ge;const ld=["auto","fill","fit-content"],cd={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),defaultPressed:n(N(),{attribute:"pressed"}),disabled:n(N(),{attribute:"disabled"}),id:n(l(),{attribute:"id"}),inlineSize:n(b(ld,{defaultValue:"auto"}),{attribute:"inlinesize"}),lang:n(l(),{attribute:"lang"}),loading:n(N(),{attribute:"loading"})},zr=class zr extends w{constructor(){super(...arguments);F(this,Rt)}static get remoteAttributes(){return["accessibilitylabel","disabled","id","inlinesize","lang","loading","pressed"]}static get remoteEvents(){return{blur:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusout",{bubbles:true})),new FocusEvent("blur")}},click:{bubbles:true,dispatchEvent(r){return R(this,Rt,!!r),new Event("click",{bubbles:true})}},focus:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),new FocusEvent("focus")}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get pressed(){var _a5;return(_a5=P(this,Rt))!=null?_a5:this.defaultPressed}set pressed(r){R(this,Rt,!!r),this.__sync()}__sync(){this.updateRemoteProperty("pressed",[P(this,Rt)])}};Rt=new WeakMap,zr.tagName="s-press-button",zr.propertyDescriptors=cd;let Ts=zr;const ud=["small-100","small","base"],dd={alt:n(l(),{attribute:"alt"}),size:n(b(ud,{defaultValue:"base",mapAliases:{small:"small-100"}}),{attribute:"size"}),sizes:n(l(),{attribute:"sizes"}),src:n(l(),{attribute:"src"}),srcSet:n(l(),{attribute:"srcset"}),totalItems:n(V(),{attribute:"totalitems"})},Ir=class Ir extends w{static get remoteAttributes(){return["alt","size","sizes","src","srcset","totalitems"]}};Ir.tagName="s-product-thumbnail",Ir.propertyDescriptors=dd;let ks=Ir;const bd=["auto","critical"],hd={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),id:n(l(),{attribute:"id"}),max:n(V({defaultValue:1,min:0}),{attribute:"max"}),tone:n(b(bd,{defaultValue:"auto"}),{attribute:"tone"}),value:n(V({min:0}),{attribute:"value"})},Lr=class Lr extends w{static get remoteAttributes(){return["accessibilitylabel","id","max","tone","value"]}};Lr.tagName="s-progress",Lr.propertyDescriptors=hd;let Ns=Lr;
1const fd=["none","base"],pd=["base","fill"],md={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),border:n(b(fd,{defaultValue:"base"}),{attribute:"border"}),content:n(l(),{attribute:"content"}),id:n(l(),{attribute:"id"}),size:n(b(pd,{defaultValue:"base"}),{attribute:"size"}),logo:n(l(),{attribute:"logo"})},Fr=class Fr extends w{static get remoteAttributes(){return["accessibilitylabel","border","content","id","size","logo"]}static get remoteEvents(){return{error:{dispatchEvent(){return new Event("error")}}}}};Fr.tagName="s-qr-code",Fr.propertyDescriptors=md;let xs=Fr;const gd={containerName:n(l(),{attribute:"containername"}),id:n(l(),{attribute:"id"})},Br=class Br extends w{static get remoteAttributes(){return["containername","id"]}};Br.tagName="s-query-container",Br.propertyDescriptors=gd;let Rs=Br;const Ma=["auto","hidden"],yd=Mt({BlockOverflow:Ma,InlineOverflow:Ma},["{BlockOverflow}","{BlockOverflow} {InlineOverflow}"]),vd=__spreadProps(__spreadValues({},Jt),{overflow:n(b(yd,{defaultValue:"auto"}),{attribute:"overflow"})}),ye=class ye extends w{static get remoteAttributes(){return["accessibilitylabel","accessibilityrole","accessibilityvisibility","background","blocksize","border","borderradiu
1s","borderstyle","borderwidth","display","id","inlinesize","maxblocksize","maxinlinesize","minblocksize","mininlinesize","overflow","padding","paddingblock","paddingblockend","paddingblockstart","paddinginline","paddinginlineend","paddinginlinestart"]}};ye.tagName="s-scroll-box",ye.propertyDescriptors=vd,ye.listensToBubbledEvents=true;let Ps=ye;const Ed=["base","none"],wd={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),heading:n(l(),{attribute:"heading"}),id:n(l(),{attribute:"id"}),padding:n(b(Ed,{defaultValue:"base"}),{attribute:"padding"})},ve=class ve extends w{static get remoteAttributes(){return["accessibilitylabel","heading","id","padding"]}};ve.tagName="s-section",ve.propertyDescriptors=wd,ve.listensToBubbledEvents=true;let Cs=ve;const za={id:n(l(),{attribute:"id"}),label:n(l(),{attribute:"label"}),name:n(l(),{attribute:"name"}),placeholder:n(l(),{attribute:"placeholder"}),required:n(N(),{attribute:"required"}),disabled:n(N(),{attribute:"disabled"}),error:n(l(),{attribute:"error"}),autocomplete:n(l(),{attribute:"autocomplete"})},Ee=class Ee extends w{constructor(){super(...arguments);F(this,U);F(this,st)}static get remoteAttributes(){return["id","label","name","placeholder","required","disabled","error","autocomplete"]}static get remoteEvents(){return{blur:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusout",{bubbles:true})),new FocusEvent("blur")}},change:{bubbles:true,dispatchEvent(r){return R(this,st,r),new Event("change",{bubbles:true})}},focus:{bubbles:true,dispatchEvent(){return this.dispatchEvent(new FocusEvent("focusin",{bubbles:true})),new FocusEvent("focus")}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}appendChild(r){const i=_(this,U,Re).call(this,r),s=super.appendChild(r);return _(this,U,Xr).call(this,i),s}insertBefore(r,i){const s=_(this,U,Re).call(this,r),a=super.insertBefore(r,i);return _(this,U,Xr).call(this,s),a}replaceChild(r,i){const s=_(this,U,Re).call(this,r),a=super.replaceChild(r,i);return _(this,U,Xr).call(this,s),a}removeChild(r){const i=super.removeChild(r);return _(this,U,Ga).call(this,r),i}get value(){var _a5;return(_a5=P(this,st))!=null?_a5:""}set value(r){const i=String(r),s=this.querySelectorAll("s-option"),a=Array.from(s).find(o=>o.value===i);_(this,U,jt).call(this,a?i:"")}__resetValue(){const r=this.querySelectorAll("s-option"),i=Array.from(r).find(s=>!s.disabled);_(this,U,jt).call(this,i==null?void 0:i.value)}__sync(){this.updateRemoteProperty("value",[P(this,st)])}};st=new WeakMap,U=new WeakSet,jt=function(r){R(this,st,r),this.__sync()},Re=function(r,i=[]){return r instanceof DocumentFragment?r.childNodes.forEach(s=>{_(this,U,Re).call(this,s,i)}):r instanceof Qt?i.push(r):r instanceof Element&&console.warn("`s-select` must only contain `s-option` elements"),i},Xr=function(r){for(const i of r)i.selected?_(this,U,jt).call(this,i.value):P(this,st)===void 0&&this.placeholder?_(this,U,jt).call(this,""):(P(this,st)===void 0&&!i.disabled||i.defaultSelected)&&_(this,U,jt).call(this,i.value),i.__select=this},Ga=function(r){r instanceof Qt&&r.value===this.value&&this.__resetValue()},Ee.tagName="s-select",Ee.propertyDescriptors=za,Object.entries(za).forEach(([r,i])=>{Object.defineProperty(Ee.prototype,r,{get(){return i.get.call(this)},set(s){i.set.call(this,s)}})});let Ss=Ee;const Ad={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),heading:n(l(),{attribute:"heading"}),id:n(l(),{attribute:"id"})},we=class we extends w{constructor(){super(...arguments);F(this,Bt)}static get remoteAttributes(){return["accessibilitylabel","heading","id"]}static get remoteMethods(){return["hideOverlay"]}static get remoteEvents(){return{afterhide:{dispatchEvent(){return new Event("afterhide")}},aftershow:{dispatchEvent(){return new Event("aftershow")}},hide:{dispatchEvent(){return new Event("hide")}},show:{dispatchEvent(){return new Event("show")}}}}get defaultOpen(){return!!P(this,Bt)}set defaultOpen(r){R(this,Bt,!!r),this.updateRemoteProperty("open",[P(this,Bt)])}};Bt=new WeakMap,we.tagName="s-sheet",we.propertyDescriptors=Ad,we.listensToBubbledEvents=true;let _s=we;const Td={content:n(l(),{attribute:"content"}),id:n(l(),{attribute:"id"})},jr=class jr extends w{static get remoteAttributes(){return["content","id"]}};jr.tagName="s-skeleton-paragraph",jr.propertyDescriptors=Td;let Os=jr;
1const kd=["small-100","small","base","large","large-100"],Nd={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),id:n(l(),{attribute:"id"}),size:n(b(kd,{defaultValue:"base",mapAliases:{small:"small-100",large:"large-100"}}),{attribute:"size"})},$r=class $r extends w{static get remoteAttributes(){return["accessibilitylabel","id","size"]}};$r.tagName="s-spinner",$r.propertyDescriptors=Nd;let Ds=$r;const xd=["main","header","footer","section","aside","navigation","ordered-list","list-item","list-item-separator","unordered-list","separator","status","alert","generic","none"],Rd=["normal","space-between","space-around","space-evenly","stretch","center","start","end"],Pd=["normal","stretch","center","start","end"],Cd=["small-500","small-400","small-300","small-200","small-100","small","base","large","large-100","large-200","large-300","large-400","large-500","none"],Sd=["inline","block"],_d=["small-500","small-400","small-300","small-200","small-100","small","base","large","large-100","large-200","large-300","large-400","large-500","none"],Od=["normal","space-between","space-around","space-evenly","stretch","center","start","end"],Dd=["small-500","small-400","small-300","small-200","small-100","small","base","large","large-100","large-200","large-300","large-400","large-500","none"],Vd=__spreadProps(__spreadValues({},Jt),{accessibilityRole:n(b(xd,{defaultValue:"generic"}),{attribute:"accessibilityrole"}),alignContent:n(b(Rd,{defaultValue:"normal",canBeResponsive:true}),{attribute:"aligncontent"}),alignItems:n(b(Pd,{defaultValue:"normal",canBeResponsive:true}),{attribute:"alignitems"}),columnGap:n(b(Cd,{defaultValue:"",mapAliases:{small:"small-100",large:"large-100"},canBeResponsive:true}),{attribute:"columngap"}),direction:n(b(Sd,{defaultValue:"block",canBeResponsive:true}),{attribute:"direction"}),gap:n(b(_d,{defaultValue:"none",separator:" ",mapAliases:{small:"small-100",large:"large-100"},canBeResponsive:true}),{attribute:"gap"}),justifyContent:n(b(Od,{defaultValue:"normal",canBeResponsive:true}),{attribute:"justifycontent"}),rowGap:n(b(Dd,{defaultValue:"",mapAliases:{small:"small-100",large:"large-100"},canBeResponsive:true}),{attribute:"rowgap"})}),Ae=class Ae extends w{static get remoteAttributes(){return["accessibilitylabel","accessibilityrole","aligncontent","alignitems","background","blocksize","border","borderradiu
1s","borderstyle","borderwidth","columngap","display","direction","gap","id","inlinesize","justifycontent","maxblocksize","maxinlinesize","minblocksize","mininlinesize","overflow","padding","paddingblock","paddingblockend","paddingblockstart","paddinginline","paddinginlineend","paddinginlinestart","rowgap"]}};Ae.tagName="s-stack",Ae.propertyDescriptors=Vd,Ae.listensToBubbledEvents=true;let Vs=Ae;const Md={id:n(l(),{attribute:"id"})},Te=class Te extends w{static get remoteAttributes(){return["id"]}};Te.tagName="s-summary",Te.propertyDescriptors=Md,Te.listensToBubbledEvents=true;let Ms=Te;const zd=["--auto","--toggle","--show","--hide"],Id={accessibilityLabel:n(l(),{attribute:"accessibilitylabel"}),command:n(b(zd,{defaultValue:"--auto"}),{attribute:"command"}),commandFor:n(l(),{attribute:"commandfor"}),defaultChecked:n(N(),{attribute:"checked"}),disabled:n(N(),{attribute:"disabled"}),id:n(l(),{attribute:"id"}),label:n(l(),{attribute:"label"}),name:n(l(),{attribute:"name"}),value:n(l(),{attribute:"value"})},Ur=class Ur extends w{constructor(){super(...arguments);F(this,Pt)}static get remoteAttributes(){return["accessibilitylabel","checked","command","commandfor","disabled","id","label","name","value"]}static get remoteEvents(){return{change:{bubbles:true,dispatchEvent(r){return R(this,Pt,!!r),new Event("change",{bubbles:true})}},sync:{bubbles:true,dispatchEvent(){this.__sync()}}}}get checked(){var _a5;return(_a5=P(this,Pt))!=null?_a5:this.defaultChecked}set checked(r){R(this,Pt,!!r),this.__sync()}__sync(){this.updateRemoteProperty("checked",[P(this,Pt)])}};Pt=new WeakMap,Ur.tagName="s-switch",Ur.propertyDescriptors=Id;let zs=Ur;const Ld=__spreadProps(__spreadValues({},it),{autocomplete:n(rt({defaultValue:"on"}),{attribute:"autocomplete"}),maxLength:n(V({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:n(V({defaultValue:0,min:0,floor:true}),{attribute:"minlength"}),rows:n(V({defaultValue:2,min:1,floor:true}),{attribute:"rows"})}),qr=class qr extends J{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","maxlength","minlength","name","placeholder","readonly","required","rows","value"]}};qr.tagName="s-text-area",qr.propertyDescriptors=Ld;let Is=qr;const Fd=["visible","hidden","exclusive"],Bd=["subdued","base"],jd=["","auto","ltr","rtl"],$d=["auto","none"],Ud=["auto","neutral","info","success","warning","critical","custom"],qd=["address","redundant","mark","emphasis","offset","small","strong","generic"],Gd={accessibilityVisibility:n(b(Fd,{defaultValue:"visible"}),{attribute:"accessibilityvisibility"}),color:n(b(Bd,{defaultValue:"base"}),{attribute:"color"}),dir:n(b(jd,{defaultValue:""}),{attribute:"dir"}),display:n(b($d,{defaultValue:"auto",canBeResponsive:true}),{attribute:"display"}),id:n(l(),{attribute:"id"}),lang:n(l(),{attribute:"lang"}),tone:n(b(Ud,{defaultValue:"auto"}),{attribute:"tone"}),type:n(b(qd,{defaultValue:"generic"}),{attribute:"type"})},ke=class ke extends w{static get remoteAttributes(){return["accessibilityvisibility","color","dir","display","id","lang","tone","type"]}};ke.tagName="s-text",ke.propertyDescriptors=Gd,ke.listensToBubbledEvents=true;let Ls=ke;const Hd={dateTime:n(l(),{attribute:"datetime"}),id:n(l(),{attribute:"id"})},Gr=class Gr extends w{static get remoteAttributes(){return["datetime","id"]}};Gr.tagName="s-time",Gr.propertyDescriptors=Hd;let Fs=Gr;const Wd={id:n(l(),{attribute:"id"})},Ne=class Ne extends w{static get remoteAttributes(){return["id"]}};Ne.tagName="s-tooltip",Ne.propertyDescriptors=Wd,Ne.listensToBubbledEvents=true;let Bs=Ne;const Yd={id:n(l(),{attribute:"id"})},xe=class xe extends w{static get remoteAttributes(){return["id"]}};xe.tagName="s-unordered-list",xe.propertyDescriptors=Yd,xe.listensToBubbledEvents=true;let js=xe;const Kd=__spreadProps(__spreadValues({},it),{autocomplete:n(rt({defaultValue:"on"}),{attribute:"autocomplete"}),maxLength:n(V({defaultValue:1/0,min:0,floor:true}),{attribute:"maxlength"}),minLength:n(V({defaultValue:0,min:0,floor:true}),{attribute:"minlength"})}),Hr=class Hr extends J{static get remoteAttributes(){return["autocomplete","disabled","error","id","label","labelaccessibilityvisibility","maxlength","minlength","name","readonly","required","value"]}};Hr.tagName="s-url-field",Hr.propertyDescriptors=Kd;let $s=Hr;var Xd=Object.freeze({__proto__:null,SAbbreviationElement:Ii,SAnnouncementElement:Li,SBadgeElement:Fi,SBannerElement:Bi,SBoxElement:ji,SButtonElement:$i,SChatElement:Ui,SCheckboxElement:qi,SChipElement:Gi,SChoiceElement:ct,SChoiceListElement:Hi,SClickableChipElement:Yi,SClickableElement:Wi,SClipboardItemElement:Ji,SConsentCheckboxElement:Ki,SConsentPhoneFieldElement:Xi,SDateFieldElement:Zi,SDatePickerElement:Qi,SDetailsElement:ts,SDividerElement:es,SDropZoneElement:rs,SEmailFieldElement:is,SFormElement:ss,SGridElement:ns,SGridItemElement:as,SHeadingElement:os,SIconElement:ls,SImageElement:cs,SLinkElement:us,SListItemElement:ds,SLoginWithShopElement:bs,SMapElement:hs,SMapMarkerElement:fs,SModalElement:ps,SMoneyFieldElement:ms,SNumberFieldElement:gs,SOptionElement:Qt,SOrderedListElement:ys,SParagraphElement:vs,SPasswordFieldElement:Es,SPaymentIconElement:ws,SPhoneFieldElement:nr,SPopoverElement:As,SPressButtonElement:Ts,SProductThumbn
1ailElement:ks,SProgressElement:Ns,SQRCodeElement:xs,SQueryContainerElement:Rs,SScrollBoxElement:Ps,SSectionElement:Cs,SSelectElement:Ss,SSheetElement:_s,SSkeletonParagraphElement:Os,SSpinnerElement:Ds,SStackElement:Vs,SSummaryElement:Ms,SSwitchElement:zs,STextAreaElement:Is,STextElement:Ls,STextFieldElement:J,STimeElement:Fs,STooltipElement:Bs,SUnorderedListElement:js,SUrlFieldElement:$s});Object.freeze(ir.prototype),Object.freeze(Object.getPrototypeOf(ir)),Object.freeze(Object.getPrototypeOf(ir.prototype));function Jd(e){self.initialValues={acceptSmsMarketing:e.protectedApi.initialValues.acceptSmsMarketing,smsMarketingPhone:e.protectedApi.initialValues.smsMarketingPhone},Object.values(Xd).forEach(t=>{e.global.customElements.define(t.tagName,t)})}const Zd=50,Qd=1e3;function tb(e){let t=[];return s=>{t.push(s),t.length===1&&r()};function r(){if(typeof requestIdleCallback=="function"){requestIdleCallback(i,{timeout:Qd});return}setTimeout(i,Zd)}function i(){if(t.length===0)return;const s=t;t=[],e(s)}}const eb=new Set(["extend","setSignals"]);function rb(e,t,{shouldReport:r,reportedApiPropertyNames:i=new Set}={}){const s=new WeakMap,a=tb(t);if(!Ia(e))return e;return o(e,[]);function o(d,p){const u=s.get(d);if(u)return u;const f=new Proxy(d,{get(y,m){const g=Reflect.get(y,m,y);if(typeof m!="string"||!Object.prototype.hasOwnProperty.call(y,m))return g;const h=[...p,m];return(p.length>0||!eb.has(m))&&c(h.join(".")),Ia(g)&&!ib(g)?o(g,h):g}});return s.set(d,f),f}function c(d){r&&!r()||i.has(d)||(i.add(d),a(d))}}function ib(e){return typeof e.subscribe=="function"&&("current"in e||"value"in e)}function Ia(e){if(typeof e!="object"||e===null)return false;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}const sb=e=>{const{reportApiRead:t,reportedApiPropertyNames:r,isThisRealmTornDown:i}=e.protectedApi;typeof t=="function"&&(e.global.shopify=rb(e.global.shopify,t,{shouldReport:()=>!i||!i(),reportedApiPropertyNames:r}))};function nb(e){const t=new ai;t[W]=Ot,e.global=Object.assign(t,e.global),e.global.window=e.global,e.global.self=e.global,e.global.globalThis=e.global}function ab(e){const t=e.protectedApi.realmScriptUrl,r=e.protectedApi.allRealmScripts,i=e.protectedApi.realmScriptIsTearingDown,s=e.protectedApi.hasLiveRealmForScript,a=e.protectedApi.realmScriptWasActivated,o=e.protectedApi.isThisRealmTornDown,d={anyRealmIsTearingDown:e.protectedApi.anyRealmIsTearingDown,realmScriptIsTearingDown:i,realmScriptWasActivated:a,hasLiveRealmForScript:s};function p(u){const f="reason"in u?u.reason:u.error,y=Pi(f,r);return Si(y,d)?(u.preventDefault(),u.stopImmediatePropagation(),false):Ri(f)?false:(!y||y===t)&&!o()}globalThis.addEventListener("error",u=>{if(!p(u))return;const f=new ErrorEvent("error",{message:u.message,filename:u.filename,lineno:u.lineno,colno:u.colno,error:u.error});e.global.dispatchEvent(f)}),globalThis.addEventListener("unhandledrejection",u=>{if(!p(u))return;const f=new PromiseRejectionEvent("unhandledrejection",{promise:u.promise,reason:u.reason});e.global.dispatchEvent(f)})}function ob(e){const{messageEventRelay:t}=e.protectedApi;if(!t)return;const i=!!e.global.addEventListener?e.global:globalThis,s=i.addEventListener.bind(i),a=i.removeEventListener.bind(i);e.global.addEventListener=(o,c,d)=>{o==="message"&&t?t.register(c):s(o,c,d)},e.global.removeEventListener=(o,c,d)=>{o==="message"&&t?t.unregister(c):a(o,c,d)}}function lb(e,t,r){const i={call:(s,a,...o)=>{try{return e.call(s,a,...o)}catch(c){if(t())return;throw c}},mutate:s=>{try{e.mutate(s),Array.isArray(s)&&s.length>0&&(r==null?void 0:r.recordMutation())}catch(a){if(t())return;throw a}}};return new Hl(i,{batch:s=>typeof queueMicrotask=="function"?queueMicrotask(s):Promise.resolve().then(s)})}function cb(e){const{connection:t,extensionTTSCapture:r,isThisRealmTornDown:i}=e.protectedApi;let s=false;const o=lb(t,i,r?{recordMutation:()=>{s&&r.recordMutation()}}:void 0);En(e.global.document.body,Eo),fi(e.global.document.body,o),o.flush(),s=true}const ub=e=>{const t=e.global.shopify.extend;e.global.shopify.extend=(r,i)=>{const s=Un(r);s===e.protectedApi.target&&t(s,i)}},db=500,bb=1e4;class hb{constructor(t){__privateAdd(this,_hb_instances);__privateAdd(this,_t7);__privateAdd(this,_e5);__privateAdd(this,_r5);__privateAdd(this,_l3,false);__privateAdd(this,_a4,0);__privateAdd(this,_b2,0);__privateAdd(this,_c3,true);__privateAdd(this,_i3,false);
1__privateAdd(this,_h2,false);__privateAdd(this,_s3,null);__privateAdd(this,_n3,null);__privateSet(this,_t7,t.emit),__privateSet(this,_e5,t.isSoleCapture),this.recordMutation=__privateMethod(this,_hb_instances,u_fn).call(this,this.recordMutation,"record-mutation"),this.fetchStarted=__privateMethod(this,_hb_instances,u_fn).call(this,this.fetchStarted,"fetch-started"),this.fetchResolved=__privateMethod(this,_hb_instances,u_fn).call(this,this.fetchResolved,"fetch-resolved");try{__privateSet(this,_n3,setTimeout(()=>{try{__privateSet(this,_n3,null),__privateMethod(this,_hb_instances,m_fn).call(this,"exceeded-deadline")}catch(r){__privateMethod(this,_hb_instances,o_fn).call(this,"deadline-timer",r)}},bb))}catch(r){__privateMethod(this,_hb_instances,o_fn).call(this,"capture-construct",r)}}recordMutation(){__privateGet(this,_i3)||(__privateSet(this,_l3,true),__privateSet(this,_r5,performance.now()),__privateMethod(this,_hb_instances,p_fn).call(this,db))}fetchStarted(t){if(__privateGet(this,_i3))return;const r=t!=null?t:__privateGet(this,_e5).call(this);__privateGet(this,_c3)&&!r&&__privateSet(this,_c3,false),__privateSet(this,_b2,__privateGet(this,_b2)+1),__privateSet(this,_a4,__privateGet(this,_a4)+1)}fetchResolved(){__privateGet(this,_i3)||(__privateSet(this,_a4,Math.max(0,__privateGet(this,_a4)-1)),__privateMethod(this,_hb_instances,f_fn).call(this)&&__privateMethod(this,_hb_instances,p_fn).call(this,0))}silence(){__privateSet(this,_h2,true),__privateSet(this,_i3,true),__privateMethod(this,_hb_instances,d_fn).call(this),__privateMethod(this,_hb_instances,g_fn).call(this)}}_t7=new WeakMap;_e5=new WeakMap;_r5=new WeakMap;_l3=new WeakMap;_a4=new WeakMap;_b2=new WeakMap;_c3=new WeakMap;_i3=new WeakMap;_h2=new WeakMap;_s3=new WeakMap;_n3=new WeakMap;_hb_instances=new WeakSet;u_fn=function(t,r){const i=t.bind(this);return(...s)=>{if(!__privateGet(this,_h2))try{i(...s)}catch(a){__privateMethod(this,_hb_instances,o_fn).call(this,r,a)}}};o_fn=function(t,r){this.silence(),Yt.throwDetachedOnce(t,r)};f_fn=function(){return!__privateGet(this,_i3)&&__privateGet(this,_l3)&&__privateGet(this,_s3)===null&&__privateGet(this,_a4)===0};p_fn=function(t){__privateMethod(this,_hb_instances,d_fn).call(this),__privateSet(this,_s3,setTimeout(()=>{try{__privateSet(this,_s3,null),__privateMethod(this,_hb_instances,f_fn).call(this)&&__privateMethod(this,_hb_instances,m_fn).call(this,"settled")}catch(r){__privateMethod(this,_hb_instances,o_fn).call(this,"settle-timer",r)}},t))};m_fn=function(t){if(__privateSet(this,_i3,true),__privateMethod(this,_hb_instances,d_fn).call(this),__privateMethod(this,_hb_instances,g_fn).call(this),!__privateGet(this,_l3)||__privateGet(this,_r5)===void 0){__privateGet(this,_t7).call(this,{reason:t,renderedContent:false,fetchCount:0,settledAt:performance.now()});return}const r=__privateGet(this,_c3);__privateGet(this,_t7).call(this,{reason:t,renderedContent:true,fetchAttributable:r,fetchCount:r?__privateGet(this,_b2):0,settledAt:__privateGet(this,_r5)})};d_fn=function(){__privateGet(this,_s3)!==null&&(clearTimeout(__privateGet(this,_s3)),__privateSet(this,_s3,null))};g_fn=function(){__privateGet(this,_n3)!==null&&(clearTimeout(__privateGet(this,_n3)),__privateSet(this,_n3,null))};const ar=new Map,La=new Map,fb=er(),te=ul();Il(te),Bl();const ut=Ol(te),pb=gl(te);yl(globalThis,{allRealmScripts:ar,reportSandboxError:pb,teardownState:{anyRealmIsTearingDown:Jn,realmScriptIsTearingDown:Zn,realmScriptWasActivated:ta,hasLiveRealmForScript:Qn}});function mb({scriptBody:e,scriptUrl:t,extensionId:r}){ut.extensionPerformanceMarkFinished(ll,fb);const i="".concat(e,"\n//# sourceURL=").concat(t);ut.extensionPerformanceMarkStarted("partner-js-eval",{extensionId:r}),new jn(i,"",[]),ut.extensionPerformanceMarkFinished("partner-js-eval",{extensionId:r}),ar.set(t,i)}function gb(e){return __async(this,null,function*(){return Fa(e)})}function yb(e){return __async(this,null,function*(){return Fa(e)})}function Fa(_0){return __async(this,arguments,function*({connection:e,api:t,target:r,translations:i,extensionType:s,instanceId:a,extensionId:o,scriptUrl:c,allowNetworkAccess:d,allowApiAccess:p,storefrontUrl:u,myshopifyDomain:f,initialValues:y,relayApi:m}){const g=ar.get(c);if(!g)throw new Yo("Contents not found for script URL: ".concat(c));const h=e?new hb({isSoleCapture:()=>true,emit:E=>{ut.extensionPerformanceMarkFinished("extension-tts",__spreadValues({extensionId:o,instanceId:a},_l(E)))}}):void 0;h&&rr.registerCapture(a,h);const v=[Io,jl,ub,ab,sb],T=e?[nb,Jd,cb,ob,...v]:[E=>{E.global.document=void 0,E.global.window=void 0},...v],A=new jn(g,"",T),S={isTornDown:false};fl(c);try{const E=Un(r),O=rl(t,E,i,s);return h&&(ol(O,h),ut.extensionPerformanceMarkStarted("extension-tts",{instanceId:a,extensionId:o})),ut.extensionPerformanceMarkStarted("partner-js-exec",{instanceId:a,extensionId:o}),A.run({target:E,api:O,protectedApi:{connection:e,extensionTTSCapture:h,allowNetworkAccess:d,allowApiAccess:p,storefrontUrl:u,myshopifyDomain:f,metrics:ut,extensionId:o,instanceId:a,target:E,initialValues:y,messageEventRelay:m,anyRealmIsTearingDown:Jn,realmScriptIsTearingDown:Zn,realmScriptWasActivated:ta,hasLiveRealmForScript:Qn,isThisRealmTornDown:()=>S.isTornDown,allRealmScripts:ar,realmScriptUrl:c,reportApiRead:k=>{te.call.reportApiRead(k,{extensionId:o})},reportedApiPropertyNames:vb(o,c)}}),{output:yield A.output,teardown:pl(()=>__async(null,null,function*(){S.isTornDown=true,h&&rr.discardCapture(a,h),yield A.terminate()}),c)}}catch(E){throw S.isTornDown=true,ea(c),h&&rr.discardCapture(a,h),(E==null?void 0:E.name)==="NetworkError"?new Wo(String(E),{cause:E}):(E==null?void 0:E.name)==="ExtensionUsageError"||(E==null?void 0:E.name)==="ExtensionSandboxAssetFetchError"||(E==null?void 0:E.name)==="ExtensionSandboxError"?E:new et(String(E),{cause:E})}finally{ut.extensionPerformanceMarkFinished("partner-js-exec",{instanceId:a,extensionId:o})}})}function vb(e,t){let r=La.get(e);r||(r=new Map,La.set(e,r));let i=r.get(t);
1return i||(i=new Set,r.set(t,i)),i}te.expose({load:mb,render:gb,run:yb})})();
2
3//SANDBOX_EOF

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.