"use strict";var __freeze=Object.freeze,__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__typeError=e=>{throw TypeError(e)},__pow=Math.pow,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__spreadValues=(e,t)=>{for(var n in t||(t={}))__hasOwnProp.call(t,n)&&__defNormalProp(e,n,t[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(t))__propIsEnum.call(t,n)&&__defNormalProp(e,n,t[n]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__objRest=(e,t)=>{var n={};for(var r in e)__hasOwnProp.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&__getOwnPropSymbols)for(var r of __getOwnPropSymbols(e))t.indexOf(r)<0&&__propIsEnum.call(e,r)&&(n[r]=e[r]);return n},__publicField=(e,t,n)=>__defNormalProp(e,typeof t==`symbol`?t:t+``,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError(`Cannot `+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,`read from private field`),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,r)=>(__accessCheck(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),__privateMethod=(e,t,n)=>(__accessCheck(e,t,`access private method`),n),__template=(e,t)=>__freeze(__defProp(e,`raw`,{value:__freeze(t||e.slice())})),__async=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),_a;(function(){var e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,ee,te,ne,re,ie,ae,oe,se,v,y,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,b,Fe,x,Ie,S,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,C,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,w,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,T,ti,ni,ri,ii,ai,oi,si,ci,li=Object.defineProperty,ui=(e,t)=>{let n={};for(var r in e)li(n,r,{get:e[r],enumerable:!0});return t||li(n,Symbol.toStringTag,{value:`Module`}),n};let E=Symbol(`name`),di=Symbol(`prefix`),D=Symbol(`value`),O=Symbol(`ns`),k=Symbol(`owner`),A=Symbol(`owner_document`),fi=Symbol(`attributes`),pi=Symbol(`class_list`),mi=Symbol(`dataset`),j=Symbol(`prev`),M=Symbol(`next`),N=Symbol(`child`),P=Symbol(`parent`),hi=Symbol(`host`),gi=Symbol(`data`),_i=Symbol(`listeners`),vi=Symbol(`isTrusted`),yi=Symbol(`path`),bi=Symbol(`stop_immediate_propagation`),xi=Symbol(`dispatching`),Si=Symbol(`content`),F=Symbol(`hooks`),Ci=Symbol(`extensions`),wi=Symbol(`hooks_dispatch`),I=Symbol(`is_connected`),Ti=Symbol(`create_element`),Ei=`http://www.w3.org/1999/xhtml`,Di=`http://www.w3.org/2000/svg`;function Oi(e){return e.split(/[\t\n\f\r ]+/).filter(Boolean)}function L(e){return e.replace(/[A-Z]/g,e=>String.fromCharCode(e.charCodeAt(0)+32))}function R(e,t){let n=globalThis.DOMException;if(typeof n==`function`)return new n(e,t);let r=Error(e);return r.name=t,r}let ki=RegExp(`^(?:[A-Za-z][^\\0\\t\\n\\f\\r\\u0020/>]*|[:_\\u0080-\\u{10FFFF}][A-Za-z0-9-.:_\\u0080-\\u{10FFFF}]*)$`,`u`),Ai=RegExp(`[\\0\\t\\n\\f\\r />=]`,`u`),ji=RegExp(`[\\0\\t\\n\\f\\r />]`,`u`);function Mi(e){if(e==null)return null;let t=String(e);return t===``?null:t}function Ni(e){(e===``||Ai.test(e))&&Fi(e)}function Pi(e,t,n){let r=Mi(e),i=String(t),a=i.indexOf(`:`),o=a<0?null:i.slice(0,a),s=a<0?i:i.slice(a+1);if((o!=null&&(o===``||ji.test(o))||(n===`element`?!ki.test(s):s===``||Ai.test(s)))&&Fi(i),o!=null&&r==null)throw R(`A namespace is required for the prefix in "`.concat(i,`"`),`NamespaceError`);if(o===`xml`&&r!==`http://www.w3.org/XML/1998/namespace`)throw R(`The xml prefix requires the XML namespace`,`NamespaceError`);if((i===`xmlns`||o===`xmlns`)&&r!==`http://www.w3.org/2000/xmlns/`)throw R(`The xmlns name requires the XMLNS namespace`,`NamespaceError`);if(r===`http://www.w3.org/2000/xmlns/`&&i!==`xmlns`&&o!==`xmlns`)throw R(`The XMLNS namespace requires the xmlns name or prefix`,`NamespaceError`);return{namespace:r,qualifiedName:i,prefix:o,localName:s}}function Fi(e){throw R(`Invalid name: "`.concat(e,`"`),`InvalidCharacterError`)}let Ii=typeof performance>`u`?Date.now:performance.now.bind(performance);var Li=(n=yi,t=bi,e=xi,r=class{constructor(r,i){__publicField(this,`timeStamp`,Ii()),__publicField(this,`target`,null),__publicField(this,`currentTarget`,null),__publicField(this,`srcElement`,null),__publicField(this,`bubbles`,!1),__publicField(this,`cancelable`,!1),__publicField(this,`composed`,!1),__publicField(this,`defaultPrevented`,!1),__publicField(this,`cancelBubble`,!1),__publicField(this,`eventPhase`,0),__publicField(this,n,[]),__publicField(this,t,!1),__publicField(this,e,!1),this.type=r,Object.defineProperty(this,vi,{writable:!0,value:!1}),i&&(i.bubbles&&(this.bubbles=i.bubbles),i.cancelable&&(this.cancelable=i.cancelable),i.composed&&(this.composed=i.composed))}get isTrusted(){return this[vi]}composedPath(){return[...this[yi]]}stopPropagation(){this.cancelBubble=!0}stopImmediatePropagation(){this[bi]=!0,this.cancelBubble=!0}preventDefault(){this.cancelable&&(this.defaultPrevented=!0)}set returnValue(e){e||this.preventDefault()}get returnValue(){return!this.defaultPrevented}initEvent(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n}},__publicField(r,`NONE`,0),__publicField(r,`CAPTURING_PHASE`,1),__publicField(r,`AT_TARGET`,2),__publicField(r,`BUBBLING_PHASE`,3),r);function Ri(e,t,n){var r,i,a;if(e.cancelBubble)return;let o=(i=(r=t[_i])==null?void 0:r.get(e.type))==null?void 0:i[n===1?`capture`:`bubble`];if(o)for(let r of[...o]){if(!o.has(r)||(a=r.signal)!=null&&a.aborted)continue;e.eventPhase=e.target===t?2:n,e.currentTarget=t;let i=r.normalizedListener;try{typeof i==`object`?i.handleEvent(e):i.call(t,e)}catch(e){setTimeout(zi,0,e)}if(e[bi])break}}function zi(e){throw e}let Bi=[],Vi=/* @__PURE__ */ new WeakMap;function Hi(e,t){let n=Vi.get(e);n?n.push(t):Vi.set(e,[t]),Bi[Bi.length-1].push(e)}function z(e){let t=[],n;Bi.push(t);try{n=e()}catch(e){Bi.pop();try{Ui(t)}catch(e){}throw e}return Bi.pop(),Ui(t),n}function Ui(e){let t,n=!1;for(let r of e){let e=Vi.get(r);if(e){for(;e.length>0;){let r=e.shift();try{r()}catch(e){n||(t=e,n=!0)}}Vi.delete(r)}}if(n)throw t}let Wi=[],Gi=[],Ki=!1;function qi(e){for(let t of e)Wi.push(t),t[1]&&Gi.push(t[1]);if(!Ki){Ki=!0;try{let e,t=!1;for(let n=0;n{$i(p,m)};m.abortListener=e,c.addEventListener(`abort`,e,{once:!0})}(a=(r=this[A])==null?void 0:(i=r.defaultView[wi]).addEventListener)==null||a.call(i,this,e,t,n)}removeEventListener(e,t,n){return Zi.call(this,e,t,n)}dispatchEvent(e){if(e[xi])throw R(`Failed to execute 'dispatchEvent' on 'EventTarget': The event is already being dispatched.`,`InvalidStateError`);e[xi]=!0;try{let t=[],n=this;for(;n!=null;)t.push(n),n=n.parentNode;e.target=this,e.srcElement=this,e[yi]=t;for(let n=t.length;n--;)if(Ri(e,t[n],1),e.cancelBubble)return!e.defaultPrevented;let r=e.bubbles?t:t.slice(0,1);for(let t=0;t(r=e,!1)),r}function ia(e,t){let n=typeof t==`string`?aa(t):[{combinator:4,matchers:t}],r=new ea,i=e[N];return i&&n[0].matchers.length&&sa(i,n,e=>{r.push(e)}),r}function aa(e,t=!1,n=!1){var r,i;let a={combinator:4,matchers:[]},o=[a],s=/[\t\n\f\r ]*?([>\t\n\f\r +~]?)[\t\n\f\r ]*?(?:(?:\[[\t\n\f\r ]*([^\]=\t\n\f\r ]+)[\t\n\f\r ]*(?:=[\t\n\f\r ]*(?:(['"])(.*?)\3|([^\]\t\n\f\r ]+)))?[\t\n\f\r ]*(?:\]|$))|([#.]?)([^\t\n\f\r #.[>:+~()]+)|:(\w+)(\()?)/gi,c=e.replace(/^[\t\n\f\r ]+|[\t\n\f\r ]+$/g,``);c===``&&B(e);let l,u=0;for(;l=s.exec(c);){l.index!==u&&B(e),l[1]&&(a.matchers.length!==0||n&&o.length===1||B(e),l[1]===`>`?a.combinator=1:l[1]===`+`?a.combinator=3:l[1]===`~`?a.combinator=2:a.combinator=0,a={combinator:4,matchers:[]},o.push(a));let d=l[8]?L(l[8]):l[2]||l[7];l[7]!=null&&!l[6]&&a.matchers.length>0&&B(e);let f=0,p=(i=(r=l[4])==null?l[5]:r)==null?l[7]:i;if(l[2]){ta.test(d)||B(e);let t=l[5],n=t==null?void 0:t[0];if(l[3]!=null||n!==`"`&&n!==`'`)t==null||ta.test(t)||B(e);else{let e=l[0].lastIndexOf(t);p=c.slice(l.index+e+1),s.lastIndex=c.length}f=4}else l[6]?(ta.test(d)||B(e),f=l[6]===`#`?2:3):l[8]?(l[9]||B(e),[p,s.lastIndex]=na(c,s.lastIndex),d!==`has`&&d!==`not`&&B(e),d===`has`&&t&&B(e),aa(p,t||d===`has`,d===`has`),f=6):l[7]===`*`?f=0:l[7]&&ta.test(l[7])?f=1:B(e);a.matchers.push({type:f,name:d,htmlName:f===1||f===4?L(d):void 0,value:p}),u=s.lastIndex}return u===c.length&&a.matchers.length!==0||B(e),o}function oa(e,t){var n;let r=aa(t);return!!((n=r[0])!=null&&n.matchers.length)&&ca(e,r)}function sa(e,t,n,r){var i,a;let o=[],s=e;for(;s;){if(V(s)){if(ca(s,t,r)&&!1===n(s))return!1;let e=s[N];if(e){let t=s[M];t&&o.push(t),s=e;continue}}s=(a=(i=s[M])==null?o.pop():i)==null?null:a}return!0}function ca(e,t,n){let{combinator:r,matchers:i}=t[t.length-1];if(r===4)return!!la(e,i,n)&&(t.length===1||ca(e,t.slice(0,-1),n));let a=r===1||r===0?P:j,o=e[a];if(!o)return!1;if(r===0||r===2){for(;o;){if(V(o)&&la(o,i,n)&&(t.length===1||ca(o,t.slice(0,-1),n)))return!0;o=o[a]}return!1}if(r===3&&!V(o)){for(;o&&!V(o);)o=o[a];if(!o)return!1}return!(!V(o)||!la(o,i,n))&&(t.length===1||ca(o,t.slice(0,-1),n))}function la(e,t,n){if(!e)return!1;if(Array.isArray(t)){for(let r of t)if(!1===la(e,r,n))return!1;return!0}let{type:r,name:i,htmlName:a,value:o}=t;switch(r){case 0:return i===`*`;case 1:return e.localName===(e.namespaceURI===`http://www.w3.org/1999/xhtml`?a:i);case 8:return e[E]===(e.namespaceURI===`http://www.w3.org/1999/xhtml`?a:i);case 2:return e.getAttributeNS(null,`id`)===i;case 3:let t=e.getAttributeNS(null,`class`);return!!t&&Oi(t).includes(i);case 4:let r=e.getAttributeNS(null,e.namespaceURI===`http://www.w3.org/1999/xhtml`?a:i);return o==null?r!=null:r===o;case 7:return e===n;case 5:B(`:`.concat(i));case 6:switch(i){case`has`:return(function(e,t){let n=aa(t,!0,!0),r=n[0];if(n.length===1&&r.matchers.length===0)return!1;let i=0,a={type:7,name:`:scope`};if(r.matchers.length===0?(i=r.combinator,r.matchers.push(a)):n.unshift({combinator:0,matchers:[a]}),n.some(({matchers:e})=>e.length===0))return!1;let o=i===3||i===2?e[M]:e[N];if(!o)return!1;let s=!1;return sa(o,n,()=>(s=!0,!1),e),s})(e,o||``);case`not`:return!oa(e,o||``);default:B(`:`.concat(i,`(`,o,`)`))}}return!1}function ua(e){if(typeof e!=`string`)return;let t=Number(e);return Number.isInteger(t)&&t>=0&&t<__pow(2,32)-1&&String(t)===e?t:void 0}function da(e){return gi in e}function fa(e){return e.nodeType===3}function V(e){return e.nodeType===1}function pa(e){return e.nodeType===11}function ma(e){let t=[],n=[e],r=new Set(n),i=/* @__PURE__ */ new Set,a;for(;n.length>0;){let e=n.pop();if(r.delete(e),i.has(e))continue;let o=[];for(let a of Ta(e)){if(i.has(a)||(i.add(a),t.push(a),o.push(a),!V(a)))continue;let e=a[fi];if(e)for(let n of e)i.has(n)||(i.add(n),t.push(n));let s=a[Si];!s||i.has(s)||r.has(s)||(r.add(s),n.push(s))}a==null&&(a=o)}return{nodes:t,treeNodes:a}}function ha(e,t){for(let n of e)n[A]=t}function ga(e,t){let n=new e.constructor(e.name,e.value,e.namespaceURI);return n[A]=t,n}function va(e,t){if(fa(e))return t.createTextNode(e.data);if((function(e){return e.nodeType===8})(e))return t.createComment(e.data);if((function(e){return e.nodeType===2})(e))return ga(e,t);if(V(e)){let n=t[Ti](e[E],e.namespaceURI,e[di],e.localName);if(e[fi])for(let r=0;r0;){let e=a[a.length-1],t,r;if(e.cloningContent){if(!e.contentSource||!e.contentDestination){a.pop(),e.appendTo&&e.appendTo.appendChild(e.destination);continue}t=e.contentSource.childNodes[e.childIndex++],r=e.contentDestination}else if(t=e.source.childNodes[e.childIndex++],r=e.destination,!t){if(e.cloningContent=!0,e.childIndex=0,V(e.source)&&e.source.namespaceURI===`http://www.w3.org/1999/xhtml`&&e.source.localName===`template`){let t=e.source[Si];t&&(i.has(t)&&ba(),i.add(t),e.contentSource=t,e.contentDestination=e.destination.content)}continue}if(!t){a.pop(),e.appendTo&&e.appendTo.appendChild(e.destination);continue}i.has(t)&&ba(),i.add(t);let o=va(t,n);V(t)||pa(t)?a.push({source:t,destination:o,appendTo:r,childIndex:0,cloningContent:!1}):r.appendChild(o)}return r}function ba(){throw Error(`Cannot clone a cyclic or repeated node graph`)}function xa(e,t){let n=String(t);return n===``?null:ra(e,[{type:2,name:n}])}function Sa(e,t){return ia(e,[...new Set(Oi(String(t)))].map(e=>({type:3,name:e})))}function Ca(e,t){let n=String(t);return ia(e,[{type:n===`*`?0:8,name:n,htmlName:L(n)}])}function wa(e){var t;let n=[],r=[],i=e[N];for(;i;){n.push(i);let e=i[N],a=i[M];e?(a&&r.push(a),i=e):i=(t=a==null?r.pop():a)==null?null:t}return n}function Ta(e){let t=wa(e);return t.unshift(e),t}var Ea=class extends Xi{constructor(){super(...arguments),__publicField(this,`nodeType`,0),__publicField(this,p,``),__publicField(this,f,null),__publicField(this,d,null),__publicField(this,u,null),__publicField(this,l,null),__publicField(this,c,null),__publicField(this,s,!1)}get[(p=E,f=P,d=hi,u=N,l=j,c=M,s=I,F)](){return this[A].defaultView[wi]}get localName(){return this[E]}get nodeName(){return this[E]}get ownerDocument(){return this[A]}get isConnected(){return this[I]}isDefaultNamespace(e){let t=Mi(e);return(function(e){let t=e;for(;t;)switch(t.nodeType){case 1:{let e=t;if(e.prefix==null&&e.namespaceURI!=null)return e.namespaceURI;let n=e.attributes.getNamedItemNS(`http://www.w3.org/2000/xmlns/`,`xmlns`);if(n!=null&&n.prefix==null)return Mi(n.value);t=e.parentElement;break}case 9:t=t.documentElement;break;case 10:case 11:return null;case 2:t=t.ownerElement;break;default:t=t.parentElement}return null})(this)===t}get parentNode(){return this[P]}set parentNode(e){}get parentElement(){let e=this[P];return e&&e.nodeType===1?e:null}set parentElement(e){}get previousSibling(){return this[j]}set previousSibling(e){}get nextSibling(){return this[M]}set nextSibling(e){}get previousElementSibling(){let e=this[j];for(;e&&e.nodeType!==1;)e=e[j];return e}set previousElementSibling(e){}get nextElementSibling(){let e=this[M];for(;e&&e.nodeType!==1;)e=e[M];return e}set nextElementSibling(e){}get firstChild(){return this[N]}set firstChild(e){}get lastChild(){let e=this[N];for(;e;){let t=e[M];if(t==null)break;e=t}return e}set lastChild(e){}get nodeValue(){return da(this)?this.data:null}set nodeValue(e){da(this)&&(this.data=e)}get textContent(){if(da(this))return this.data;let e=``;for(let t of wa(this))fa(t)&&(e+=t.data);return e}set textContent(e){if(da(this))this.data=e;else if(`appendChild`in this){let t=e==null?``:String(e);t===``?this.replaceChildren():this.replaceChildren(t)}}cloneNode(e){return ya(this,e)}contains(e){let t=e;for(;t!=null;){if(t===this)return!0;t=t.parentNode}return!1}};let H=Symbol(`insertNode`),Da=Symbol(`preflightInsertions`),Oa=Symbol(`replaceNode`);var ka=class extends Ea{remove(){let e=this.parentNode;e&&e.removeChild(this)}replaceWith(...e){let t=ja(e),n=this.parentNode;if(n)return Aa(e=>{Na(n,t);let r=this[M];for(;r&&t.includes(r);)r=r[M];let i=Pa(n,t,e);this.parentNode===n?n[Oa](i,this,e):n[H](i,r,e)})}before(...e){let t=ja(e),n=this.parentNode;if(n)return Aa(e=>{Na(n,t);let r=this[j];for(;r&&t.includes(r);)r=r[j];let i=Pa(n,t,e);n[H](i,r?r[M]:n.firstChild,e)})}after(...e){let t=ja(e),n=this.parentNode;if(n)return Aa(e=>{Na(n,t);let r=this[M];for(;r&&t.includes(r);)r=r[M];let i=Pa(n,t,e);n[H](i,r,e)})}};function Aa(e){return z(()=>{let t=[];try{e(t)}catch(e){try{qi(t)}catch(e){}throw e}qi(t)})}function ja(e){return e.map(e=>e instanceof Ea?e:String(e))}function Ma(e,t){return t instanceof Ea?t:e.ownerDocument.createTextNode(String(t))}function Na(e,t){var n;for(let r of t){if(!(r instanceof Ea))continue;let t=e;for(;t;){if(t===r)throw R(`Cannot insert a node into itself or one of its descendants`,`HierarchyRequestError`);t=(n=t[P])==null?t[hi]:n}}}function Pa(e,t,n){let r=[];for(let n of t)r.push(Ma(e,n));if(r.length===1)return r[0];let i=e.ownerDocument.createDocumentFragment();i[Da](r);for(let e of r)i[H](e,null,n);return i}let Fa,Ia=0,La=0,Ra=0,za=0,Ba=!1,Va=!1,Ha=!1;var Ua=(ee=class{constructor(e){if(__privateAdd(this,m),__privateAdd(this,h,[]),__privateAdd(this,g,/* @__PURE__ */ new Set),__privateAdd(this,_,!1),typeof e!=`function`)throw TypeError(`MutationObserver callback must be a function`);__privateSet(this,m,e)}observe(e,t={}){let n=(function(e){var t,n;if(!1===e.attributes&&(e.attributeOldValue||e.attributeFilter!=null))throw TypeError(`attributeOldValue and attributeFilter require attributes to be enabled`);if(!1===e.characterData&&e.characterDataOldValue)throw TypeError(`characterDataOldValue requires characterData to be enabled`);let r=(t=e.attributes)==null?!0===e.attributeOldValue||e.attributeFilter!=null:t,i=(n=e.characterData)==null?!0===e.characterDataOldValue:n,a=!0===e.childList;if(!r&&!i&&!a)throw TypeError(`MutationObserver options must enable childList, attributes, or characterData`);return{attributes:r,attributeFilter:e.attributeFilter==null?void 0:new Set(e.attributeFilter.map(String)),attributeOldValue:!0===e.attributeOldValue,characterData:i,characterDataOldValue:!0===e.characterDataOldValue,childList:a,subtree:!0===e.subtree}})(t),r=Fa==null?Fa=/* @__PURE__ */ new WeakMap:Fa,i=r.get(e);i==null&&(i=/* @__PURE__ */ new Map,r.set(e,i));let a=i.get(this);a==null?Ia++:Ka(a,-1),i.set(this,n),Ka(n,1),__privateGet(this,g).add(e)}disconnect(){let e=Fa;if(e!=null){for(let t of __privateGet(this,g)){let n=e.get(t),r=n==null?void 0:n.get(this);r!=null&&(n.delete(this),Ia--,Ka(r,-1)),(n==null?void 0:n.size)===0&&e.delete(t)}__privateGet(this,g).clear(),__privateGet(this,h).length=0,Ia===0&&(Fa=void 0)}}takeRecords(){return __privateGet(this,h).splice(0)}enqueue(e){__privateGet(this,h).push(e),__privateGet(this,_)||(__privateSet(this,_,!0),queueMicrotask(()=>{__privateSet(this,_,!1);let e=this.takeRecords();e.length>0&&__privateGet(this,m).call(this,e,this)}))}},m=/* @__PURE__ */ new WeakMap,h=/* @__PURE__ */ new WeakMap,g=/* @__PURE__ */ new WeakMap,_=/* @__PURE__ */ new WeakMap,ee);function Wa(e){var t,n,r,i,a,o,s,c;let l=Fa;if(l==null)return;let u=/* @__PURE__ */ new Map,d=e.target;for(;d;){let n=l.get(d);if(n)for(let[r,i]of n){if(d!==e.target&&!i.subtree)continue;let n=!1;if(e.type===`attributes`){if(!i.attributes||i.attributeFilter&&!i.attributeFilter.has((t=e.attributeName)==null?``:t))continue;n=i.attributeOldValue}else if(e.type===`characterData`){if(!i.characterData)continue;n=i.characterDataOldValue}else if(!i.childList)continue;u.set(r,!0===u.get(r)||n)}d=d.parentNode}for(let[t,l]of u)t.enqueue({addedNodes:(n=e.addedNodes)==null?new ea:n,attributeName:(r=e.attributeName)==null?null:r,attributeNamespace:(i=e.attributeNamespace)==null?null:i,nextSibling:(a=e.nextSibling)==null?null:a,oldValue:l?(o=e.oldValue)==null?null:o:null,previousSibling:(s=e.previousSibling)==null?null:s,removedNodes:(c=e.removedNodes)==null?new ea:c,target:e.target,type:e.type})}function Ga(...e){let t=new ea;return t.push(...e),t}function Ka(e,t){e.attributes&&(La+=t),e.characterData&&(Ra+=t),e.childList&&(za+=t),Ba=La>0,Va=Ra>0,Ha=za>0}var qa=class extends ka{constructor(){super(...arguments),__publicField(this,`childNodes`,new ea),__publicField(this,`children`,new ea)}appendChild(e){return z(()=>this[H](e,null))}insertBefore(e,t){return z(()=>this[H](e,t||null))}append(...e){return z(()=>{let t=ja(e.filter(e=>e!=null));t.length>1&&Na(this,t);for(let e of t)this[H](Ma(this,e),null)})}prepend(...e){return z(()=>{let t=ja(e.filter(e=>e!=null));t.length>1&&Na(this,t);let n=this.firstChild;for(let e of t)this[H](Ma(this,e),n)})}replaceChildren(...e){return z(()=>{let t=ja(e.filter(e=>e!=null)),n;for(Na(this,t);n=this.firstChild;)this.removeChildImmediately(n);for(let e of t)this[H](Ma(this,e),null)})}removeChild(e){return z(()=>(this.removeChildImmediately(e),e))}removeChildImmediately(e){if(e.parentNode!==this)throw R(`The node is not a child of this node`,`NotFoundError`);let t=this[I]?Ta(e):void 0,n=e[j],r=e[M],i=Ja(this,e);if(t)for(let e of t)e[I]=!1;this.queueRemovalMutationRecord(this,e,n,r),t&&this.enqueueTreeReactions(t,`disconnectedCallback`),qi(this.collectRemovalHookEffects(e,i))}replaceChild(e,t){return z(()=>this[Oa](e,t))}[Oa](e,t,n){if(Na(this,[e]),t.parentNode!==this)throw R(`The reference node is not a child of this parent`,`NotFoundError`);let r=t[j],i=t[M],a=this.prepareInsertion(e),o=this[I]?Ta(t):void 0,s=new Set(a.map(({node:e})=>e)),c=i;for(;c&&s.has(c);)c=c[M];let l=Ja(this,t);if(o){for(let e of o)e[I]=!1;let e=new Set(o);for(let t of a)e.has(t.node)&&(t.shouldDisconnect=!1)}this.commitInsertion(a,c);let u=this[I];return this.queueRemovalMutationRecord(this,t,r,i),this.queueInsertionMutationRecords(a),o&&this.enqueueTreeReactions(o,`disconnectedCallback`),this.enqueueInsertionReactions(a,u),this.performOrCollectHookEffects([...this.collectRemovalHookEffects(t,l),...this.collectInsertionHookEffects(a)],n),t}querySelectorAll(e){return ia(this,e)}querySelector(e){return ra(this,e)}[H](e,t,n){return this.validateInsertion(e,t),this.insertIntoValidated(e,t,n),e}[Da](e){for(let t of e)this.validateInsertion(t,null),this.prepareInsertion(t)}validateInsertion(e,t){if(Na(this,[e]),t&&t.parentNode!==this)throw R(`The reference node is not a child of this parent`,`NotFoundError`)}insertIntoValidated(e,t,n){e===t&&(t=e[M]);let r=this.prepareInsertion(e);this.commitInsertion(r,t);let i=this[I];this.queueInsertionMutationRecords(r),this.enqueueInsertionReactions(r,i),this.performOrCollectHookEffects(this.collectInsertionHookEffects(r),n)}performOrCollectHookEffects(e,t){t?t.push(...e):qi(e)}prepareInsertion(e){let t=[];if(e.nodeType===11){let n=e[N];for(;n;)t.push(n),n=n[M]}else t.push(e);let n=this[I],r=this[A],i=[];for(let e of t){let t=e[I],a=t||n,o,s;if(e[A]===r)a&&(o=Ta(e));else{let t=ma(e);s=t.nodes,a&&(o=t.treeNodes)}i.push({node:e,nodes:o,adoption:s,shouldDisconnect:t})}return i}commitInsertion(e,t){for(let t of e){let e=t.node[P];if(e){let n=t.node[j],r=t.node[M];t.source={parent:e,index:Ja(e,t.node),previousSibling:n,nextSibling:r}}}for(let n of e){let e=this.attachChild(n.node,t);n.insertIndex=e.index,n.previousSibling=e.previousSibling,n.nextSibling=e.nextSibling}let n=this[A];for(let{adoption:t}of e)t&&ha(t,n);let r=this[I];for(let{nodes:t}of e)if(t)for(let e of t)e[I]=r}attachChild(e,t){if(t){let n=t[j];e[M]=t,e[j]=n,n?n[M]=e:this[N]=e,t[j]=e}else{e[M]=null;let t=this[N];if(t){let n;for(;n=t[M];)t=n;t[M]=e,e[j]=t}else this[N]=e,e[j]=null}let n=V(e),r;if(e[P]=this,t){if(r=this.childNodes.indexOf(t),this.childNodes.splice(r,0,e),n){let n=t;for(;n&&!V(n);)n=n[M];n?this.children.splice(this.children.indexOf(n),0,e):this.children.push(e)}}else r=this.childNodes.length,this.childNodes.push(e),n&&this.children.push(e);return{index:r,previousSibling:e[j],nextSibling:e[M]}}queueRemovalMutationRecord(e,t,n,r){Ha&&Wa({type:`childList`,target:e,removedNodes:Ga(t),previousSibling:n,nextSibling:r})}queueInsertionMutationRecords(e){if(Ha)for(let t of e){let{node:e,source:n}=t;n&&this.queueRemovalMutationRecord(n.parent,e,n.previousSibling,n.nextSibling),Wa({type:`childList`,target:this,addedNodes:Ga(e),previousSibling:t.previousSibling,nextSibling:t.nextSibling})}}collectRemovalHookEffects(e,t){return this.nodeType!==1||Ji(this)?[]:[[()=>{var n,r;return(r=(n=this[F]).removeChild)==null?void 0:r.call(n,this,e,t)}]]}collectInsertionHookEffects(e){let t=[];for(let n of e){let{node:e,source:r}=n;(r==null?void 0:r.parent.nodeType)!==1||Ji(r.parent)||t.push([()=>{var t,n;return(n=(t=r.parent[F]).removeChild)==null?void 0:n.call(t,r.parent,e,r.index)}]),this.nodeType!==1||Ji(this)||t.push([()=>{var t,r;return(r=(t=this[F]).insertChild)==null?void 0:r.call(t,this,e,n.insertIndex)},e])}return t}enqueueInsertionReactions(e,t){for(let n of e){let{nodes:e}=n;e&&(n.shouldDisconnect&&this.enqueueTreeReactions(e,`disconnectedCallback`),t&&this.enqueueTreeReactions(e,`connectedCallback`))}}enqueueTreeReactions(e,t){Ya(e,t)}};function Ja(e,t){let n=t[j],r=t[M];n?n[M]=r:e[N]=r,r&&(r[j]=n);let i=e.childNodes.indexOf(t);return e.childNodes.splice(i,1),V(t)&&e.children.splice(e.children.indexOf(t),1),t[P]=null,t[M]=null,t[j]=null,i}function Ya(e,t){for(let n of e){let e=n[t];typeof e==`function`&&Hi(n,()=>e.call(n))}}function Xa(e,t,n,r,i){let{observedAttributes:a}=e.constructor,{attributeChangedCallback:o}=e;o!=null&&a!=null&&a.includes(t)&&Hi(e,()=>o.call(e,t,n,r,i))}var Za=class{constructor(e){__publicField(this,te,null),this[k]=e}getNamedItem(e){let t=String(e),n=this[k][O]===`http://www.w3.org/1999/xhtml`?L(t):t,r=this[N];for(;r;){if(r.name===n)return r;r=r[M]}return null}getNamedItemNS(e,t){let n=Mi(e),r=String(t),i=this[N];for(;i;){if(i.localName===r&&i[O]===n)return i;i=i[M]}return null}item(e){let t=this[N],n=0;for(;t;){if(n++===e)return t;t=t[M]}return null}get length(){let e=0,t=this[N];for(;t;)e++,t=t[M];return e}removeNamedItem(e){let t=String(e),n=this[k][O]===`http://www.w3.org/1999/xhtml`?L(t):t;return z(()=>Qa(this,e=>e.name===n))}removeNamedItemNS(e,t){let n=Mi(e),r=String(t);return z(()=>Qa(this,e=>e.localName===r&&e[O]===n))}setNamedItem(e){return z(()=>this.setNamedItemImmediately(e))}setNamedItemImmediately(e){var t,n,r,i,a,o;let s=this[k],c=e[k];if(c!=null&&c!==s)throw R(`The attribute is already in use by another element.`,`InUseAttributeError`);let l=null,u=this[N],d=null;for(;u;){if(u.localName===e.localName&&u[O]===e[O]){if(u===e)return u;d?d[M]=e:this[N]=e,e[M]=u[M],u[M]=null,l=u;break}d=u,u=u[M]}l==null&&(d?d[M]=e:this[N]=e),e[k]=s,e[A]=s[A],l&&(l[k]=null);let f=l==null||l.value!==e.value,p=l!=null&&l.name!==e.name;return f&&Ba&&Wa({type:`attributes`,target:s,attributeName:e.name,attributeNamespace:e[O],oldValue:(t=l==null?void 0:l.value)==null?null:t}),p&&((r=(n=s[F]).removeAttribute)==null||r.call(n,s,l.name,l[O])),(f||p)&&((a=(i=s[F]).setAttribute)==null||a.call(i,s,e.name,e.value,e[O])),f&&Xa(s,e.localName,(o=l==null?void 0:l.value)==null?null:o,e.value,e[O]),l}setNamedItemNS(e){return this.setNamedItem(e)}*[(te=N,Symbol.iterator)](){let e=this[N];for(;e;)yield e,e=e[M]}};function Qa(e,t,n){var r,i;let a=e[k],o=e[N],s=null;for(;o!=null;){if(t(o)){let t=o.name,c=o.localName,l=o[O],u=o.value;return s&&(s[M]=o[M]),e[N]===o&&(e[N]=o[M]),o[M]=null,o[k]=null,n&&ha([o],n),Ba&&Wa({type:`attributes`,target:a,attributeName:t,attributeNamespace:l,oldValue:u}),(i=(r=a[F]).removeAttribute)==null||i.call(r,a,t,l),Xa(a,c,u,null,l),o}s=o,o=o[M]}return null}let $a=new Proxy({},{get(e,t,n){var r;let i=n,a=ua(t);if(a!==void 0){let e=i.item(a);if(e)return e}return t in e?Reflect.get(e,t,n):typeof t==`string`?(r=i.getNamedItem(t))==null?void 0:r:void 0}});Object.setPrototypeOf(Za.prototype,$a);var eo=class extends (ae=Ea,ie=O,re=M,ne=k,ae){constructor(e,t,n){super(),__publicField(this,`nodeType`,2),__publicField(this,ie,null),__publicField(this,re,null),__publicField(this,ne,null),this[E]=e,this[D]=t,n&&(this[O]=n)}get nodeName(){return this[E]}set nodeName(e){}get name(){return this[E]}set name(e){}get localName(){if(this[O]==null)return this[E];let e=this[E].indexOf(`:`);return e<0?this[E]:this[E].slice(e+1)}get prefix(){if(this[O]==null)return null;let e=this[E].indexOf(`:`);return e<0?null:this[E].slice(0,e)}get value(){return this[D]}set value(e){let t=String(e),n=this[k];n?z(()=>{var e,r;let i=this[D];this[D]=t,Ba&&i!==t&&Wa({type:`attributes`,target:n,attributeName:this[E],attributeNamespace:this[O],oldValue:i}),(r=(e=this[F]).setAttribute)==null||r.call(e,n,this[E],t,this[O]),Xa(n,this.localName,i,t,this[O])}):this[D]=t}get nodeValue(){return this.value}set nodeValue(e){this.value=e}get ownerElement(){return this[k]}get namespaceURI(){return this[O]}get specified(){return!0}};let to={amp:`&`,AMP:`&`,apos:`'`,gt:`>`,GT:`>`,lt:`<`,LT:`<`,quot:`"`,QUOT:`"`},no=/* @__PURE__ */ new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),ro=/(?:<([a-z][a-z0-9-:]*)((?:[\s]+[^<>'"=/\s]+(?:=(['"])[^]*?\3|=[^>'"\s]*|))*)[\s]*(\/?)\s*>|<\/([a-z][a-z0-9-:]*)>||([^<>]+))/gi,io=/\s([^<>'"=/\n\s]+)(?:=(["'])([\s\S]*?)\2|=([^>'"\n\s]*)|)/g,ao=/^(?:color|face|size)$/i;function oo(e){return e.replace(/&(?:(amp|AMP|apos|gt|GT|lt|LT|quot|QUOT)|#(\d+)|#[xX]([\da-fA-F]+));/g,(e,t,n,r)=>{if(t)return to[t];let i=Number.parseInt(n==null?r:n,n?10:16);try{return String.fromCodePoint(i)}catch(t){return e}})}function so(e){return e.namespaceURI===`http://www.w3.org/1999/xhtml`&&no.has(e.localName)}function co(e){let t=e.localName;return e[O]===`http://www.w3.org/2000/svg`&&(t===`foreignObject`||t===`desc`||t===`title`)}function lo(e,t){if(`|b|big|blockquote|body|br|center|code|dd|div|dl|dt|em|embed|h1|h2|h3|h4|h5|h6|head|hr|i|img|li|listing|menu|meta|nobr|ol|p|pre|ruby|s|small|span|strong|strike|sub|sup|table|tt|u|ul|var|`.includes(`|`.concat(e,`|`)))return!0;if(e!==`font`)return!1;for(let e of t.matchAll(io))if(ao.test(e[1]))return!0;return!1}function uo(e,t){var n,r;let i=t.ownerDocument,a=i.createDocumentFragment(),o=[],s=a;for(let a of e.matchAll(ro)){let e=a[1];if(e){let c=a[2],l=L(e),u=(r=(n=o[o.length-1])==null?void 0:n.element)==null?t:r,d=u[O]===`http://www.w3.org/2000/svg`?Di:Ei;if(l===`svg`)d=Di;else if(d===`http://www.w3.org/2000/svg`){if(co(u))d=Ei;else if(lo(l,c)){for(;o.length>0;){let e=o[o.length-1];if(e.element[O]!==`http://www.w3.org/2000/svg`||co(e.element))break;o.pop(),s=e.target}d=Ei}}let f=d===`http://www.w3.org/1999/xhtml`?l:e,p=i[Ti](f,d,null,f);for(let e of c.matchAll(io))p.setAttribute(e[1],oo(e[3]||e[4]||``));if(s.append(p),so(p)||d!==`http://www.w3.org/1999/xhtml`&&a[4])continue;o.push({element:p,target:s}),s=d===`http://www.w3.org/1999/xhtml`&&l===`template`?p.content:p}else if(a[5]){let e=L(a[5]);for(let t=o.length-1;t>=0;t--){let n=o[t],r=L(n.element[E]);if(r===e){s=n.target,o.length=t;break}if(n.element[O]===`http://www.w3.org/1999/xhtml`&&r===`template`)break}}else a[6]?s.append(i.createComment(a[6])):s.append(oo(a[7]))}return a}function fo(e){return po([{type:`content`,child:e[N]}])}function po(e){var t,n;let r=[],i;for(;i=e.pop();)switch(i.type){case`opening`:{let a=i.node;switch(a.nodeType){case 1:{let i=a;r.push(`<`.concat(i[E]));let o=(t=i[fi])==null?void 0:t[N];for(;o;){r.push(` `.concat(o[E]));let e=o[D];e!==``&&(e=String(e).replace(/&/g,`&`).replace(/"/g,`"`),r.push(`="`.concat(e,`"`))),o=o[M]}if(r.push(`>`),so(i))break;let s=i.namespaceURI===`http://www.w3.org/1999/xhtml`&&i.localName===`template`?i[Si]:i;e.push({type:`closing`,name:i[E]}),e.push({type:`content`,child:(n=s==null?void 0:s[N])==null?null:n});break}case 3:{let e=a;r.push(e[gi].replace(/&/g,`&`).replace(/"/g,`"`).replace(//g,`>`));break}case 8:{let e=a;r.push(``));break}}break}case`content`:{let t=i.child;t&&(e.push({type:`content`,child:t[M]}),e.push({type:`opening`,node:t}));break}case`closing`:r.push(``))}return r.join(``)}function mo(e,t){if(e===``||t===``)throw R(`The token provided must not be empty.`,`SyntaxError`);if(/[\t\n\f\r ]/.test(e)||t!==void 0&&/[\t\n\f\r ]/.test(t))throw R(`The token provided contains ASCII whitespace, which is not valid in tokens.`,`InvalidCharacterError`)}function ho(e){for(let t=0;tn!==e));return}let r=new Set(t),i=[];for(let e of n)r.has(e)||i.push(e);__privateMethod(this,v,y).call(this,i.length===n.length?n:i)}toggle(e,t){let n=String(e);mo(n);let r=this[D],i=r.indexOf(n),a=i>=0,o=t===void 0?!a:!!t;return o!==a&&__privateMethod(this,v,y).call(this,o?[...r,n]:r.filter((e,t)=>t!==i)),o}replace(e,t){let n=String(e),r=String(t);mo(n,r);let i=this[D],a=i.indexOf(n);if(a<0)return!1;if(n===r)return __privateMethod(this,v,y).call(this,i),!0;let o=[],s=!1;for(let e=0;et.toUpperCase())}function yo(e){return!/-[a-z]/.test(e)}function bo(e){if(!yo(e))throw R(`Invalid dataset property name`,`SyntaxError`)}Object.setPrototypeOf(go.prototype,new Proxy({},{get(e,t,n){let r=ua(t);return r===void 0?Reflect.get(e,t,n):n[D][r]},set:(e,t,n,r)=>ua(t)!==void 0||Reflect.set(e,t,n,r)}));var U=class extends (de=qa,ue=O,le=di,de){constructor(){super(...arguments),__publicField(this,`nodeType`,1),__publicField(this,ue,Ei),__publicField(this,le,null)}get namespaceURI(){return this[O]}get prefix(){return this[di]}get localName(){let e=this[di];return e==null?this[E]:this[E].slice(e.length+1)}get nodeName(){return this[O]===`http://www.w3.org/1999/xhtml`?this[E].replace(/[a-z]/g,e=>String.fromCharCode(e.charCodeAt(0)-32)):this[E]}get tagName(){return this.nodeName}get className(){var e;return(e=this.getAttribute(`class`))==null?``:e}set className(e){this.setAttribute(`class`,String(e))}get classList(){var e;return(e=this[pi])==null?this[pi]=new go(this):e}get dataset(){var e;return(e=this[mi])==null?this[mi]=(t=this,new Proxy({},{get:(e,n)=>{var r;return typeof n==`string`&&yo(n)?(r=t.getAttribute(_o(n)))==null?Reflect.get(e,n):r:Reflect.get(e,n)},set:(e,n,r)=>typeof n==`string`?(bo(n),t.setAttribute(_o(n),String(r)),!0):Reflect.set(e,n,r),deleteProperty:(e,n)=>typeof n==`string`?!yo(n)||(t.removeAttribute(_o(n)),!0):Reflect.deleteProperty(e,n),defineProperty:(e,n,r)=>typeof n==`string`?!(`get`in r)&&!(`set`in r)&&(bo(n),t.setAttribute(_o(n),String(r.value)),!0):Reflect.defineProperty(e,n,r),preventExtensions:()=>!1,has:(e,n)=>Reflect.has(e,n)||typeof n==`string`&&yo(n)&&t.hasAttribute(_o(n)),ownKeys:e=>[...t.getAttributeNames().filter(e=>e.startsWith(`data-`)&&_o(vo(e))===e).map(vo),...Reflect.ownKeys(e).filter(e=>typeof e!=`string`)],getOwnPropertyDescriptor:(e,n)=>{if(typeof n!=`string`||!yo(n))return Reflect.getOwnPropertyDescriptor(e,n);let r=t.getAttribute(_o(n));return r==null?Reflect.getOwnPropertyDescriptor(e,n):{value:r,writable:!0,enumerable:!0,configurable:!0}}})):e;var t}get id(){var e;return(e=this.getAttributeNS(null,`id`))==null?``:e}set id(e){this.setAttribute(`id`,String(e))}get slot(){var e;return(e=this.getAttributeNS(null,`slot`))==null?``:e}set slot(e){let t=String(e);this.getAttributeNS(null,`slot`)!==t&&this.attributes.setNamedItem(new eo(`slot`,t))}get attributes(){let e=this[fi];return e||(e=new Za(this),this[fi]=e),e}getAttributeNames(){return[...this.attributes].map(e=>e.name)}getElementsByTagName(e){return Ca(this,e)}get firstElementChild(){var e;return(e=this.children[0])==null?null:e}getElementsByClassName(e){return Sa(this,e)}get lastElementChild(){var e;return(e=this.children[this.children.length-1])==null?null:e}get nextElementSibling(){let e=this.nextSibling;for(;e&&e.nodeType!==1;)e=e.nextSibling;return e}get previousElementSibling(){let e=this.previousSibling;for(;e&&e.nodeType!==1;)e=e.previousSibling;return e}setAttribute(e,t){let n=String(e),r=String(t);Ni(n);let i=this[O]===`http://www.w3.org/1999/xhtml`?L(n):n,a=this.attributes.getNamedItemNS(null,i);a?a.value=r:this.attributes.setNamedItem(new eo(i,r))}setAttributeNS(e,t,n){let r=Mi(e),i=String(t),a=String(n),o=Pi(r,i,`attribute`),s=this.attributes.getNamedItemNS(o.namespace,o.localName);s?s.value=a:this.attributes.setNamedItemNS(new eo(o.qualifiedName,a,o.namespace))}toggleAttribute(e,t){let n=String(e);Ni(n);let r=this[O]===`http://www.w3.org/1999/xhtml`?L(n):n,i=this.attributes.getNamedItemNS(null,r),a=t===void 0?void 0:!!t;return i==null?!1!==a&&(this.attributes.setNamedItem(new eo(r,``)),!0):!0===a||(this.attributes.removeNamedItemNS(null,r),!1)}getAttribute(e){let t=this.attributes.getNamedItem(e);return t&&t.value}getAttributeNS(e,t){let n=this.attributes.getNamedItemNS(e,t);return n&&n.value}hasAttribute(e){return this.attributes.getNamedItem(e)!=null}hasAttributeNS(e,t){return this.attributes.getNamedItemNS(e,t)!=null}removeAttribute(e){let t=String(e),n=this[O]===`http://www.w3.org/1999/xhtml`?L(t):t;this.attributes.removeNamedItemNS(null,n)}removeAttributeNS(e,t){this.attributes.removeNamedItemNS(e,t)}matches(e){return oa(this,e)}closest(e){let t=this;for(;t;){if(t.matches(e))return t;t=t.parentElement}return null}get outerHTML(){return po([{type:`opening`,node:this}])}get innerHTML(){return fo(this)}set innerHTML(e){if(e==null||e===``)this.replaceChildren();else{let t=uo(String(e),this);this.replaceChildren(t)}}},xo=class e extends (pe=U,fe=O,pe){constructor(){super(...arguments),__publicField(this,fe,Di)}get ownerSVGElement(){let t=null,n=this.parentNode;for(;n instanceof e;)t=n,n=n.parentNode;return t}},So=class extends (he=ka,me=gi,he){constructor(e){super(),__publicField(this,me,``),this[gi]=e==null?``:String(e)}setData(e){var t,n;let r=Va,i=r?this[gi]:null,a=``;e!=null&&(a=typeof e==`string`?e:String(e)),this[gi]=a,r&&i!==a&&Wa({type:`characterData`,target:this,oldValue:i}),(n=(t=this[F]).setText)==null||n.call(t,this,a)}get data(){return this[gi]}set data(e){this.setData(e)}},Co=class extends (_e=So,ge=E,_e){constructor(){super(...arguments),__publicField(this,`nodeType`,3),__publicField(this,ge,`#text`)}},wo=class extends (ye=So,ve=E,ye){constructor(){super(...arguments),__publicField(this,`nodeType`,8),__publicField(this,ve,`#comment`)}},To=class extends (Se=qa,xe=E,be=A,Se){constructor(){super(...arguments),__publicField(this,`nodeType`,11),__publicField(this,xe,`#document-fragment`),__publicField(this,be,typeof window<`u`?window.document:null)}getElementById(e){return xa(this,e)}},Eo=class extends U{get content(){let e=this[Si];return e||(e=this.ownerDocument.createDocumentFragment(),e[hi]=this,this[Si]=e),e}set content(e){}set innerHTML(e){this.content.replaceChildren(uo(String(e),this))}get innerHTML(){let e=this[Si];return e?fo(e):``}},Do=class extends U{},Oo=class extends U{},ko=class extends U{},Ao=class extends qa{constructor(e){super(),__publicField(this,`nodeType`,9),__publicField(this,we,`#document`),__publicField(this,Ce,!0),this.defaultView=e,this[A]=this,this.documentElement=No(new ko,this,`html`),this.body=No(new Do,this,`body`),this.head=No(new Oo,this,`head`),this.appendChild(this.documentElement),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body)}get textContent(){return null}set textContent(e){}getElementsByClassName(e){return Sa(this,e)}createElement(e){let t=String(e);return(function(e){ki.test(e)||Fi(e)})(t),Mo(this,L(t))}createElementNS(e,t){let n=Pi(e,t,`element`);return Mo(this,n.qualifiedName,n.namespace,n.prefix,n.localName)}[(we=E,Ce=I,Ti)](e,t,n,r){return Mo(this,e,t,n,r)}createTextNode(e){var t,n;let r=jo(new Co(e),this);return(n=(t=this[F]).createText)==null||n.call(t,r,r.data),r}createComment(e){return jo(new wo(e),this)}createDocumentFragment(){return jo(new To,this)}createEvent(){return new Li(``)}getElementById(e){return xa(this,e)}getElementsByTagName(e){return Ca(this,e)}importNode(e,t){if(e.nodeType===9)throw R(`Cannot import a document node`,`NotSupportedError`);return ya(e,t,this)}adoptNode(e){if(e.nodeType===2){let t=e,n=t.ownerElement;return n?z(()=>((function(e,t,n){if(Qa(e,e=>e===t,n)==null)throw Error(`The owner element does not contain the adopted attribute.`)})(n.attributes,t,this),t)):(t[A]===this||ha([t],this),t)}if(e[A]===this)return e;let t=ma(e);return z(()=>{let n=e.parentNode;return n?(function(e,t,n,r){if(t.parentNode!==e)throw Error(`not a child of this node`);let i=e[I]?n.treeNodes:void 0,a=t[j],o=t[M],s=Ja(e,t);if(i)for(let e of i)e[I]=!1;ha(n.nodes,r),Ha&&Wa({type:`childList`,target:e,removedNodes:Ga(t),previousSibling:a,nextSibling:o}),i&&Ya(i,`disconnectedCallback`);let c=[];e.nodeType!==1||Ji(e)||c.push([()=>{var n,r;return(r=(n=e[F]).removeChild)==null?void 0:r.call(n,e,t,s)}]),qi(c)})(n,e,t,this):ha(t.nodes,this),e})}};function jo(e,t){return Object.defineProperty(e,A,{value:t,writable:!0,enumerable:!1}),e}function Mo(e,t,n=Ei,r=null,i=t){let a;if(n===`http://www.w3.org/2000/svg`)a=new xo;else if(n===`http://www.w3.org/1999/xhtml`&&i===`template`)a=new Eo;else if(n===`http://www.w3.org/1999/xhtml`){let t=e.defaultView.customElements.get(i);a=t?new t:new U}else a=new U;return No(a,e,t,n,r)}function No(e,t,n,r=Ei,i=null){var a,o;return jo(e,t),Object.defineProperties(e,{[E]:{value:n},[O]:{value:r},[di]:{value:i}}),(o=(a=t[F]).createElement)==null||o.call(a,e,r),e}var Po=class extends Li{constructor(e,t){var n;super(e,t),this.detail=(n=t==null?void 0:t.detail)==null?null:n}initCustomEvent(e,t,n,r){super.initEvent(e,t,n),this.detail=r==null?null:r}},Fo=class extends Li{constructor(e,t){super(e,t),this.message=t.message,this.filename=t.filename,this.lineno=t.lineno,this.colno=t.colno,this.error=t.error}},Io=class extends Li{constructor(e,t){super(e,t),this.promise=t.promise,this.reason=t.reason}},Lo=class extends Li{constructor(e,t){super(e,t),this.oldState=t.oldState,this.newState=t.newState}},Ro=class extends Li{constructor(e,t={}){var n;super(e,t),this.relatedTarget=(n=t.relatedTarget)==null?null:n}},zo=class extends Li{constructor(e,t={}){var n;super(e,t),this.clipboardData=(n=t.clipboardData)==null?null:n}},Bo=class extends U{};let Vo=RegExp(`^[a-z][^A-Z\\u0000\\t\\n\\f\\r />]*-[^A-Z\\u0000\\t\\n\\f\\r />]*$`,`u`),Ho=/* @__PURE__ */ new Set([`annotation-xml`,`color-profile`,`font-face`,`font-face-src`,`font-face-uri`,`font-face-format`,`font-face-name`,`missing-glyph`]);function Uo(e){return Vo.test(e)&&!Ho.has(e)}function Wo(e){return R(`Invalid custom element name: "`.concat(e,`"`),`SyntaxError`)}var Go=class{constructor(){__publicField(this,`registry`,/* @__PURE__ */ new Map),__publicField(this,`listenersByName`,/* @__PURE__ */ new Map)}define(e,t,n){if(!Uo(e))throw Wo(e);if(this.registry.has(e))throw R(`A custom element named "`.concat(e,`" has already been defined`),`NotSupportedError`);if(this.getName(t)!=null)throw R(`This constructor has already been registered in this custom element registry`,`NotSupportedError`);this.registry.set(e,t);let r=this.listenersByName.get(e);if(r!=null){this.listenersByName.delete(e);for(let e of r)e(t)}}get(e){return this.registry.get(e)}getName(e){for(let[t,n]of this.registry)if(n===e)return t;return null}whenDefined(e){if(!Uo(e))return Promise.reject(Wo(e));let t=this.registry.get(e);if(t!=null)return Promise.resolve(t);let n=this.listenersByName.get(e);return n==null&&(n=[],this.listenersByName.set(e,n)),new Promise(e=>{n.push(e)})}upgrade(e){}initialize(e){}};let Ko=[`onerror`,`onunhandledrejection`],qo=Symbol.for(`@remote-dom/polyfill/global-property`);function Jo(e){return Object.getOwnPropertyDescriptors(e)}function Yo(e){let t={};for(let[n,r]of Object.entries(Object.getOwnPropertyDescriptors(Xi.prototype)))n!==`constructor`&&typeof r.value==`function`&&(r.value=Zo(r.value.bind(e)),t[n]=r);return t}function Xo(e){let t={};for(let n of Ko)t[n]={configurable:!0,enumerable:!0,get:Zo(()=>e[n]),set:Zo(t=>{e[n]=t})};return t}function Zo(e){return Object.defineProperty(e,qo,{value:!0}),e}function Qo(e,t){for(let n of Reflect.ownKeys(t)){let r=$o(e,n);(r==null||es(r))&&Object.defineProperty(e,n,t[n])}}function $o(e,t){let n=e;for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}}function es(e){return[e.value,e.get,e.set].some(e=>typeof e==`function`&&!0===e[qo])}var ts=(Me=class extends (Oe=Xi,De=F,Ee=Ci,Te=wi,Oe){constructor(){super(...arguments),__publicField(this,De,{}),__publicField(this,Ee,[]),__publicField(this,Te,(function(e){return{createElement:rs.bind(null,e,`createElement`),setAttribute:rs.bind(null,e,`setAttribute`),removeAttribute:rs.bind(null,e,`removeAttribute`),createText:rs.bind(null,e,`createText`),setText:rs.bind(null,e,`setText`),insertChild:rs.bind(null,e,`insertChild`),removeChild:rs.bind(null,e,`removeChild`),addEventListener:rs.bind(null,e,`addEventListener`),removeEventListener:rs.bind(null,e,`removeEventListener`)}})(this)),__publicField(this,`name`,``),__publicField(this,`window`,this),__publicField(this,`parent`,this),__publicField(this,`self`,this),__publicField(this,`top`,this),__publicField(this,`document`,new Ao(this)),__publicField(this,`customElements`,new Go),__publicField(this,`location`,globalThis.location),__publicField(this,`navigator`,globalThis.navigator),__publicField(this,`Event`,Li),__publicField(this,`ErrorEvent`,Fo),__publicField(this,`PromiseRejectionEvent`,Io),__publicField(this,`ToggleEvent`,Lo),__publicField(this,`FocusEvent`,Ro),__publicField(this,`ClipboardEvent`,zo),__publicField(this,`EventTarget`,Xi),__publicField(this,`CustomEvent`,Po),__publicField(this,`Node`,Ea),__publicField(this,`ParentNode`,qa),__publicField(this,`ChildNode`,ka),__publicField(this,`DocumentFragment`,To),__publicField(this,`Document`,Ao),__publicField(this,`CharacterData`,So),__publicField(this,`Comment`,wo),__publicField(this,`Text`,Co),__publicField(this,`Element`,U),__publicField(this,`HTMLElement`,Bo),__publicField(this,`SVGElement`,xo),__publicField(this,`HTMLTemplateElement`,Eo),__publicField(this,`MutationObserver`,Ua),__privateAdd(this,ke,null),__privateAdd(this,Ae,null),__privateAdd(this,je,null)}static with(...e){let t=this;return class extends t{constructor(){super();for(let t of e)ns(this,t)}}}get onerror(){return __privateGet(this,Ae)}set onerror(e){__privateGet(this,ke)&&this.removeEventListener(`error`,__privateGet(this,ke)),e&&typeof e==`function`?(__privateSet(this,Ae,e),__privateSet(this,ke,t=>{var n;e((n=t.message)==null?`Error`:n,t.filename,t.lineno,t.colno,t.error)}),this.addEventListener(`error`,__privateGet(this,ke))):(__privateSet(this,ke,null),__privateSet(this,Ae,null))}get onunhandledrejection(){return __privateGet(this,je)}set onunhandledrejection(e){__privateGet(this,je)&&this.removeEventListener(`unhandledrejection`,__privateGet(this,je)),e&&typeof e==`function`?(__privateSet(this,je,e),this.addEventListener(`unhandledrejection`,__privateGet(this,je))):__privateSet(this,je,null)}static setGlobal(e){let t=globalThis.self,n=globalThis.window,r=Jo(e),i=Object.assign(Yo(e),Xo(e));delete r.self,Object.defineProperties(globalThis,r),Qo(globalThis,i),t===void 0||t===n&&t!==globalThis?Object.defineProperty(globalThis,"self",{value:e,configurable:!0,writable:!0,enumerable:!0}):t!==globalThis&&(Object.defineProperties(t,r),Qo(t,i))}static setGlobalThis(e){for(let t in e)e[t]===e&&(e[t]=globalThis);Object.defineProperties(globalThis,(function(e){return Object.assign(Jo(e),Yo(e),Xo(e))})(e))}},ke=/* @__PURE__ */ new WeakMap,Ae=/* @__PURE__ */ new WeakMap,je=/* @__PURE__ */ new WeakMap,Me);function ns(e,t){var n;e[Ci].push((n=t(e))==null?{}:n)}function rs(e,t,...n){var r,i;for(let i of e[Ci])(r=i[t])==null||r.apply(i,n);let a=e[F];(i=a[t])==null||i.apply(a,n)}let is=new ts,as=/* @__PURE__ */ new WeakMap;function os(e){return as.get(e)}let ss=/* @__PURE__ */ new WeakMap,cs=0;function ls(e){let t=ss.get(e);return t==null&&(t=String(cs++),us(e,t)),t}function us(e,t){ss.set(e,t)}let ds=/* @__PURE__ */ new WeakMap;function fs(e){return ds.get(e)}let ps=/* @__PURE__ */ new WeakMap;function ms(e){let t=ps.get(e);if(t!=null)return t;if(e instanceof Element&&!e.tagName.includes(`-`)){t={};for(let{name:n,value:r}of e.attributes)t[n]=r;return t}}let hs=/* @__PURE__ */ new WeakMap;function gs(e){return hs.get(e)}function _s(e,t,n){let r=ds.get(e);if(r==null&&(r={},ds.set(e,r)),r[t]===n)return;r[t]=n;let i=as.get(e);i!=null&&i.mutate([[3,ls(e),t,n,1]])}function vs(e,t,n){let r=ps.get(e);r==null&&(r={},ps.set(e,r));let i=n==null?n:String(n);if(r[t]===i)return;i==null?delete r[t]:r[t]=i;let a=as.get(e);a!=null&&a.mutate([[3,ls(e),t,i,2]])}function ys(e,t,n){let r=hs.get(e);if(r==null&&(r={},hs.set(e,r)),r[t]===n)return;n==null?delete r[t]:r[t]=n;let i=as.get(e);i!=null&&i.mutate([[3,ls(e),t,n,3]])}function bs(e,t){if(as.get(e)!==t&&(as.set(e,t),e.childNodes))for(let n=0;n{let r=os(e);r!=null&&(bs(t,r),r.mutate([[0,ls(e),Ss(t),n]]))},ws.removeChild=(e,t,n)=>{let r=os(e);r!=null&&(xs(t),r.mutate([[1,ls(e),n]]))},ws.setText=(e,t)=>{let n=os(e);n!=null&&n.mutate([[2,ls(e),t]])},ws.setAttribute=(e,t,n)=>{e.tagName.includes(`-`)||vs(e,t,n)},ws.removeAttribute=(e,t)=>{e.tagName.includes(`-`)||vs(e,t)},ts.setGlobal(is);var Ts,Es=Symbol.for(`preact-signals`);function Ds(){if(As>1)As--;else{var e,t=!1;for((function(){var e=Ms;for(Ms=void 0;e!==void 0;){var t=e.S;if(t.v===e.v)for(var n=t.t;n!==void 0;n=n.x)n.i===e.i&&(n.i=t.i);e=e.o}})();ks!==void 0;){var n=ks;for(ks=void 0,js++;n!==void 0;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Fs(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(js=0,As--,t)throw e}}var W=void 0;function Os(e){var t=W,n=Ts;W=void 0,Ts=void 0;try{return e()}finally{W=t,Ts=n}}var ks=void 0,As=0,js=0,Ms=void 0,Ns=0;function Ps(e){if(W!==void 0){var t=e.n;if(t===void 0||t.t!==W)return t={i:0,S:e,p:W.s,n:void 0,t:W,e:void 0,x:void 0,r:t},W.s!==void 0&&(W.s.n=t),W.s=t,e.n=t,32&W.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=W.s,t.n=void 0,W.s.n=t,W.s=t),t}}function G(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}function Fs(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Is(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Ls(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function Rs(e,t){G.call(this,void 0,t),this.x=e,this.s=void 0,this.g=Ns-1,this.f=4}function zs(e){var t=e.j;if(e.j=void 0,typeof t==`function`){As++;var n=W;W=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Bs(e),t}finally{W=n,Ds()}}}function Bs(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,zs(e)}function Vs(e){if(W!==this)throw Error(`Out-of-order effect`);Ls(this),W=e,this.f&=-2;try{8&this.f&&Bs(this)}finally{Ds()}}function Hs(e,t){this.x=e,this.j=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=t==null?void 0:t.name,Ts&&Ts.push(this)}G.prototype.brand=Es,G.prototype.h=function(){return!0},G.prototype.S=function(e){var t=this,n=this.t;n!==e&&e.e===void 0&&(e.x=n,this.t=e,n===void 0?Os(function(){var e;(e=t.W)==null||e.call(t)}):n.e=e)},G.prototype.U=function(e){var t=this;if(this.t!==void 0){var n=e.e,r=e.x;n!==void 0&&(n.x=r,e.e=void 0),r!==void 0&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,r===void 0&&Os(function(){var e;(e=t.Z)==null||e.call(t)}))}},G.prototype.subscribe=function(e){var t=this;return(function(e){var t=new Hs(e,{name:`sub`});try{t.c()}catch(e){throw t.d(),e}var n=t.d.bind(t);return n[Symbol.dispose]=n,n})(function(){var n=t.value;Os(function(){return e(n)})})},G.prototype.valueOf=function(){return this.value},G.prototype.toString=function(){return this.value+``},G.prototype.toJSON=function(){return this.value},G.prototype.peek=function(){var e=this;return Os(function(){return e.value})},Object.defineProperty(G.prototype,"value",{get:function(){var e=Ps(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(js>100)throw Error(`Cycle detected`);(function(e){As!==0&&js===0&&e.l!==0&&(e.l=0,Ms={S:e,v:e.v,i:e.i,o:Ms})})(this),this.v=e,this.i++,Ns++,As++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ds()}}}}),Rs.prototype=new G,Rs.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ns))return!0;if(this.g=Ns,this.f|=1,this.i>0&&!Fs(this))return this.f&=-2,!0;var e=W;try{Is(this),W=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return W=e,Ls(this),this.f&=-2,!0},Rs.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)}G.prototype.S.call(this,e)},Rs.prototype.U=function(e){if(this.t!==void 0&&(G.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)}},Rs.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(Rs.prototype,"value",{get:function(){if(1&this.f)throw Error(`Cycle detected`);var e=Ps(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),Hs.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.j=t)}finally{e()}},Hs.prototype.S=function(){if(1&this.f)throw Error(`Cycle detected`);this.f|=1,this.f&=-9,zs(this),Is(this),As++;var e=W;return W=this,Vs.bind(this,e)},Hs.prototype.N=function(){2&this.f||(this.f|=2,this.u=ks,ks=this)},Hs.prototype.d=function(){this.f|=8,1&this.f||Bs(this)},Hs.prototype.dispose=function(){this.d()};let Us=String.raw(_a||(_a=__template([`[+-]?(?:d+(?:.d+)?|.d+)(?:e[+-]?d+)?`],[`[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:e[+-]?\\d+)?`]))),Ws=(new RegExp(`^(`.concat(Us,`)(fr|%|px|ch|em|lh|vh)$`),`i`),/* @__PURE__ */ `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`.split(`.`)),Gs={"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`};function Ks(e){var t;return(t=Gs[e])==null?e:t}(()=>{let e={};for(let[t,n]of Object.entries(Gs))e[n]=t})();let qs=Symbol.for(`RemoteUi::Retain`),Js=Symbol.for(`RemoteUi::Release`),Ys=Symbol.for(`RemoteUi::RetainedBy`);var Xs=class{constructor(){this.memoryManaged=/* @__PURE__ */ new Set}add(e){this.memoryManaged.add(e),e[Ys].add(this),e[qs]()}release(){for(let e of this.memoryManaged)e[Ys].delete(this),e[Js]();this.memoryManaged.clear()}};function Zs(e){return!!(e&&e[qs]&&e[Js])}function Qs(e,{deep:t=!0}={}){return $s(e,t,/* @__PURE__ */ new Map)}function $s(e,t,n){let r=n.get(e);if(r!=null)return r;let i=Zs(e);if(i&&e[qs](),n.set(e,i),t){if(Array.isArray(e)){let r=e.reduce((e,r)=>$s(r,t,n)||e,i);return n.set(e,r),r}if(nc(e)){let r=Object.keys(e).reduce((r,i)=>$s(e[i],t,n)||r,i);return n.set(e,r),r}}return n.set(e,i),i}function ec(e,{deep:t=!0}={}){return tc(e,t,/* @__PURE__ */ new Map)}function tc(e,t,n){let r=n.get(e);if(r!=null)return r;let i=Zs(e);if(i&&e[Js](),n.set(e,i),t){if(Array.isArray(e)){let r=e.reduce((e,r)=>tc(r,t,n)||e,i);return n.set(e,r),r}if(nc(e)){let r=Object.keys(e).reduce((r,i)=>tc(e[i],t,n)||r,i);return n.set(e,r),r}}return i}function nc(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t==null||t===Object.prototype}let rc=`_@fn`;function ic(e){var t;let n=typeof self<`u`&&self.name||((t=globalThis.location)==null?void 0:t.origin)||`unknown`,r=e.uuid(),i=null,a=/* @__PURE__ */ new Map,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,c=/* @__PURE__ */ new Map;return{encode:function t(n,r=/* @__PURE__ */ new Map){if(n==null)return[n];let i=r.get(n);if(i)return i;if(typeof n==`object`){if(Array.isArray(n)){r.set(n,[void 0]);let e=[],i=[n.map(n=>{let[i,a=[]]=t(n,r);return e.push(...a),i}),e];return r.set(n,i),i}if(nc(n)){r.set(n,[void 0]);let e=[],i=[Object.keys(n).reduce((i,a)=>{let[o,s=[]]=t(n[a],r);return e.push(...s),__spreadProps(__spreadValues({},i),{[a]:o})},{}),e];return r.set(n,i),i}}if(typeof n==`function`){if(a.has(n)){let e=[{"_@f":a.get(n)}];return r.set(n,e),e}let t=e.uuid();a.set(n,t),o.set(t,n);let i=[{"_@f":t,[rc]:n.name||String(n).slice(0,100)}];return r.set(n,i),i}let s=[n];return r.set(n,s),s},decode:l,call(e,t){return __async(this,null,function*(){let a=new Xs,s=o.get(e);if(s==null){let t=c.get(e)||`unknown`,a=Error(`[`.concat(n,`] You attempted to call a function that was already released. (function: `,t,`, endpoint: `,r,i==null?``:`, endpoint terminated `.concat(Date.now()-i,`ms ago`),`)`));throw a.name=`RemoteFunctionReleasedError`,a}try{return yield s(...l(t,Zs(s)?[a,...s[Ys]]:[a]))}finally{a.release()}})},release(e){let t=o.get(e);t&&(o.delete(e),a.delete(t),c.set(e,t.name||`unknown`))},terminate(){i=Date.now(),a.clear(),o.clear(),s.clear(),c.clear()}};function l(t,a){if(typeof t==`object`){if(t==null)return t;if(Array.isArray(t))return t.map(e=>l(e,a));if(`_@f`in t){let o=t[`_@f`];if(s.has(o))return s.get(o);let c=0,l=!1,u=null,d=()=>{--c,c===0&&(l=!0,u=Date.now(),s.delete(o),e.release(o))},f=()=>{c+=1},p=new Set(a),m=rc in t&&t[rc]||`unknown`,h=(...t)=>{if(l){let e=Error(`[`.concat(n,`] You attempted to call a function that was already released. (function: `,m,`, endpoint: `,r,u==null?``:`, released `.concat(Date.now()-u,`ms ago`),`, retained by `,p.size,`)`));throw e.name=`RemoteFunctionReleasedError`,e}if(!s.has(o)){let e=Error(`[`.concat(n,`] You attempted to call a function that was already revoked. (function: `,m,`, endpoint: `,r,i==null?``:`, endpoint terminated `.concat(Date.now()-i,`ms ago`),`, retained by `,p.size,`)`));throw e.name=`RemoteFunctionRevokedError`,e}return e.call(o,t)};Object.defineProperties(h,{[Js]:{value:d,writable:!1},[qs]:{value:f,writable:!1},[Ys]:{value:p,writable:!1}});for(let e of p)e.add(h);return s.set(o,h),h}if(nc(t))return Object.keys(t).reduce((e,n)=>__spreadProps(__spreadValues({},e),{[n]:l(t[n],a)}),{})}return t}}function ac(){return``.concat(oc(),`-`,oc(),`-`,oc(),`-`,oc())}function oc(){return Math.floor(Math.random()*9007199254740991).toString(16)}function sc(e,t){if(!{}.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var cc=0;function lc(e){return`__private_`+cc+++`_`+e}function uc(e){if((t=e)!=null&&t.aborted!=null&&typeof t.addEventListener==`function`)return e;var t;let n=new AbortController,{aborted:r,start:i}=e;return r?(n.abort(),n.signal):(i&&(Qs(i),i(e=>{e&&n.abort()})),n.signal.addEventListener(`abort`,()=>__async(null,null,function*(){ec(i)}),{once:!0}),n.signal)}(function(e=!1){let t=e?null:/* @__PURE__ */ new Set;var n=lc(`value`),r=lc(`callbacks`);class i{constructor(e){var i;Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,r,{writable:!0,value:/* @__PURE__ */ new Set}),sc(this,n)[n]=e,(i=t)==null||i.add(this)}get value(){return sc(this,n)[n]}set value(e){e!==sc(this,n)[n]&&(sc(this,n)[n]=e,sc(this,r)[r].forEach(t=>t(e)))}subscribe(e){return sc(this,r)[r].add(e),()=>{sc(this,r)[r].delete(e)}}}let a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(class extends i{constructor(e){var t;super(e),(t=null)==null||t.call(this,e)}get current(){return this.value}get value(){return(function(){if(!a||typeof a.get!=`function`||typeof a.set!=`function`)throw Error(`Value descriptor is not found`);return a})().get.call(this)}set value(e){throw Error(`This signal is read-only`)}}.prototype),`value`)})(!0);var dc=class extends Error{constructor(...e){super(...e),this.name=`ExtensionSandboxError`}},K=class extends Error{constructor(...e){super(...e),this.name=`ExtensionUsageError`}},fc=class extends Error{constructor(...e){super(...e),this.name=`ExtensionAssetFetchError`}},pc=class extends Error{constructor(...e){super(...e),this.name=`ExtensionSandboxAssetFetchError`}};function mc(e){return(...t)=>{var n;try{return e(...t)}catch(e){throw e.name===`ExtensionUsageError`?e:new dc((n=e==null?void 0:e.message)==null?`Unknown error`:n,{cause:e})}}}let hc=`latn`,gc=`-u-nu-`.concat(hc);function _c(e){try{let t=new Intl.Locale(e);return new Intl.Locale(t.baseName,{numberingSystem:hc}).toString()}catch(t){return(function(e){return e.includes(`-u-nu-`)?e.replace(/-u-nu-[a-z0-9]+/i,gc):``.concat(e,gc)})(e)}}function vc(e,t,n){let r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ new Map;function a(t,n){let i=n==null?{}:n,{inExtensionLocale:a}=i,o=__objRest(i,[`inExtensionLocale`]);if(o.style===`currency`&&(typeof o.currency!=`string`||o.currency.length===0))throw new K(`i18n.formatNumber(): currency option must be a valid currency code string when style is "currency"`);let s=xc(!0===a?e.extensionLanguage:e.language),c=yc(s,o),l=r.get(c);return l||(l=(function(e,t){return bc(e,e=>new Intl.NumberFormat(_c(e),t))})(s,o),r.set(c,l)),l.format(t)}return{formatNumber:mc(a),formatCurrency:mc(function(t,n){let r=n==null?{}:n,{inExtensionLocale:i}=r,o=__objRest(r,[`inExtensionLocale`]);return a(t,__spreadValues({inExtensionLocale:i,style:`currency`,currency:(s=e.currency,`current`in s?s.current.isoCode:s.isoCode)},o));var s}),formatDate:mc(function(t,n){let r=n==null?{}:n,{inExtensionLocale:a}=r,o=__objRest(r,[`inExtensionLocale`]),s=xc(!0===a?e.extensionLanguage:e.language),c=yc(s,o),l=i.get(c);l||(l=(function(e,t){return bc(e,e=>new Intl.DateTimeFormat(_c(e),t))})(s,o),i.set(c,l));try{return l.format(t)}catch(e){throw e instanceof RangeError?new K(`i18n.formatDate(): date must be a valid Date`,{cause:e}):e}}),translate:mc((r,i)=>{let a=i==null?{}:i,o=t[r],s=!1,c=xc(e.extensionLanguage);function l(e){if(n===`local`)throw new K(`translate(): `.concat(e));console.error(new K(`translate(): `.concat(e)))}if(typeof a.count==`number`){let e=(function(e){return bc(e,e=>new Intl.PluralRules(e))})(c).select(a.count),n=``.concat(r,`.`,e);if(o=t[n],o===void 0){let i=t[``.concat(r,`.other`)];if(e!==`other`&&i!==void 0)o=i,console.warn(new K(`translate(): MISSING PLURALIZATION KEY for locale "`.concat(c,`": "`,n,`". Using fallback key of "`,r,`.other".`)));else{if(typeof t[r]!=`string`){let e=`MISSING PLURALIZATION KEY for locale "`.concat(c,`": "`,n,`"`);return l(e),e}s=!0,o=t[r]}}}else if(typeof a.count==`string`&&typeof t[r]==`string`)o=t[r];else if(a.count!==void 0){let e=`INCORRECT TYPE for options.count. Must be typeof "number".`;return l(e),e}if(o===void 0){let e=[``.concat(r,`.zero`),``.concat(r,`.one`),``.concat(r,`.two`),``.concat(r,`.few`),``.concat(r,`.many`),``.concat(r,`.other`)],n=`MISSING KEY for locale "`.concat(c,`": "`,r,`"`);for(let r of e)if(t[r]!==void 0){n=`MISSING PROPERTY "options.count" for pluralization.`,l(n);break}return l(n),n}let u=[],d=/([\s\S]*?)(?:{{(.+?)}}|$)/g,f=new Set(Object.keys(a)),p=/* @__PURE__ */ new Set,m=[],h=d.exec(o),g=!1;for(;h&&!(h.index>=o.length);){let e=h[0],t=h[2],n=t==null?void 0:t.trim(),i=u.length-1,s=h[1]||``,m=!1;if(n!==void 0){if(!f.has(n)){l(`MISSING PLACEHOLDER VALUE for locale "`.concat(c,`": "options.`,t,`" is required for "`,r,`"`)),u.push(e),h=d.exec(o);continue}typeof a[n]==`string`||typeof a[n]==`number`?s+=String(a[n]):t!==void 0&&(g=!0,m=!0),p.add(n)}typeof u[i]==`string`?u[i]+=s:u.push(s),m&&n!==void 0&&u.push(a[n]),h=d.exec(o)}for(let e of f)!1===s&&e===`count`||p.has(e)||m.push(`"{{`.concat(e,`}}"`));return m.length>0&&l(``.concat(m.length===1?`MISSING PLACEHOLDER`:`MISSING PLACEHOLDERS`,` for locale "`,c,`": `,m.join(`, `),` not found in "`,r,`"`)),g?u:u.join(``)})}}function yc(e,t={}){return``.concat(e,`|`,JSON.stringify(t))}function bc(e,t){try{return t(e)}catch(n){let r=(function(e){var t;return(t=e.match(/^([a-z]{2,3})(?:[-_].*)?$/i))==null?void 0:t[1]})(e);if(r&&r!==e)return t(r);throw n}}function xc(e){return`current`in e?e.current.isoCode:e.isoCode}function Sc(e,t,n,r){let i=Cc(e),a=__spreadProps(__spreadValues({},i),{i18n:vc(i.localization,n,r)});var o;return`signal`in(o=a)&&Object.assign(o,{signal:uc(o.signal)}),a.extensionPoint=t,a.extension.target=t,a}function Cc(e){if((function(e){return typeof e==`object`&&!!e&&`initial`in e&&typeof e.subscribe==`function`})(e))return(function(e){let t=(function(e){Qs(e);let t=e.initial,n=!0,r=!1,i=/* @__PURE__ */ new Set,a=Promise.resolve(e.subscribe(o)).then(e=>(r||o(e[1]),e));return{get current(){return t},subscribe:e=>(i.add(e),()=>{i.delete(e)}),destroy(){return __async(this,null,function*(){n=!1,i.clear();let[t]=yield a;t(),ec(e)})}};function o(e){if(r=!0,n&&t!==e){t=e;for(let e of i)e(t)}}})(e);return Object.defineProperty(t,"__remote_signal__",{value:!0}),Object.defineProperty(t,"value",{get:()=>t.current}),t})(e);if(typeof e==`object`&&e&&!(function(e){return typeof e==`object`&&!!e&&`current`in e&&typeof e.subscribe==`function`})(e)){for(let t of Object.keys(e)){let n=e;n[t]=Cc(n[t])}return e}return e}let wc=new(Pe=class{constructor(){__privateAdd(this,Ne,/* @__PURE__ */ new Set)}throwDetachedOnce(e,t){let n=(()=>{try{return String(t)}catch(e){return`unknown error`}})();try{if(__privateGet(this,Ne).has(e))return;let r=new dc(`[extension-tts] `.concat(e,` ExtensionSandboxError: `,n),{cause:t});setTimeout(()=>{throw r},0),__privateGet(this,Ne).add(e)}catch(e){}}reset(){__privateGet(this,Ne).clear()}},Ne=/* @__PURE__ */ new WeakMap,Pe),Tc=(function(e,{uuid:t=ac,createEncoder:n=ic,callable:r}={}){let i=!1,a=e,o=/* @__PURE__ */ new Map,s=/* @__PURE__ */ new Map,c=(function(e,t){let n;if(t==null){if(typeof Proxy!=`function`)throw Error(`You must pass an array of callable methods in environments without Proxies.`);let t=/* @__PURE__ */ new Map;n=new Proxy({},{get(n,r){if(t.has(r))return t.get(r);let i=e(r);return t.set(r,i),i}})}else{n={};for(let r of t)Object.defineProperty(n,r,{value:e(r),writable:!1,configurable:!0,enumerable:!0})}return n})(f,r),l=n({uuid:t,release(e){u(3,[e])},call(e,n,r){let i=t(),a=p(i,r),[o,s]=l.encode(n);return u(5,[i,e,o],s),a}});return a.addEventListener(`message`,d),{call:c,replace(e){let t=a;a=e,t.removeEventListener(`message`,d),e.addEventListener(`message`,d)},expose(e){for(let t of Object.keys(e)){let n=e[t];typeof n==`function`?o.set(t,n):o.delete(t)}},callable(...e){if(r!=null)for(let t of e)Object.defineProperty(c,t,{value:f(t),writable:!1,configurable:!0,enumerable:!0})},terminate(){u(2,void 0),m(),a.terminate&&a.terminate()}};function u(e,t,n){i||a.postMessage(t?[e,t]:[e],n)}function d(e){return __async(this,null,function*(){if(i)return;let{data:t}=e;var n=t;if(Array.isArray(n)&&typeof n[0]==`number`&&(n[1]==null||Array.isArray(n[1])))switch(t[0]){case 2:m();break;case 0:{let e=new Xs,[n,r,i]=t[1],a=o.get(r);try{if(a==null)throw Error(`No '`.concat(r,`' method is exposed on this endpoint`));let[t,o]=l.encode(yield a(...l.decode(i,[e])));u(1,[n,void 0,t],o)}catch(e){let{name:t,message:r,stack:i}=e;throw u(1,[n,{name:t,message:r,stack:i}]),e}finally{e.release()}break}case 1:{let[e]=t[1],n=s.get(e);if(n==null)break;n(...t[1]),s.delete(e);break}case 3:{let[e]=t[1];l.release(e);break}case 6:{let[e]=t[1],n=s.get(e);if(n==null)break;n(...t[1]),s.delete(e);break}case 5:{let[e,n,r]=t[1];try{let t=yield l.call(n,r),[i,a]=l.encode(t);u(6,[e,void 0,i],a)}catch(t){let{name:n,message:r,stack:i}=t;throw u(6,[e,{name:n,message:r,stack:i}]),t}break}}})}function f(e){return(...n)=>{if(i)return Promise.reject(/* @__PURE__ */ Error(`You attempted to call a function on a terminated web worker.`));if(typeof e!=`string`&&typeof e!=`number`)return Promise.reject(Error(`Can’t call a symbol method on a remote endpoint: `.concat(e.toString())));let r=t(),a=p(r),[o,s]=l.encode(n);return u(0,[r,e,o],s),a}}function p(e,t){return new Promise((n,r)=>{s.set(e,(e,i,a)=>{if(i==null)n(a&&l.decode(a,t));else{let e=/* @__PURE__ */ Error();Object.assign(e,i),r(e)}})})}function m(){var e;i=!0,o.clear(),s.clear(),(e=l.terminate)==null||e.call(l),a.removeEventListener(`message`,d)}})(self,{callable:[]});function Ec(e){return typeof e==`object`&&!!e&&e.name===`ExtensionSandboxError`}function Dc(e,t){try{if(!e||typeof e!=`object`)return null;let n=e.stack;if(!n||typeof n!=`string`)return null;for(let e of t.keys())if(n.includes(e))return e}catch(e){return null}return null}self.addEventListener(`message`,({data:e})=>{e!=null&&e.__replace instanceof MessagePort&&(Tc.replace(e.__replace),e.__replace.start())}),Object.defineProperty(self,"endpoint",{value:Tc,enumerable:!1,writable:!1,configurable:!0});var Oc=class extends Error{constructor(...e){super(...e),this.name=`RealmTeardownTimeoutError`}};let kc=0,Ac=/* @__PURE__ */ new Map,jc=/* @__PURE__ */ new Map;function Mc(e,t){var n;e.set(t,((n=e.get(t))==null?0:n)+1)}function Nc(){return kc>0}function Pc(e){var t;return((t=Ac.get(e))==null?0:t)>0}function Fc(e){var t;return((t=jc.get(e))==null?0:t)>0}function Ic(e){return jc.has(e)}function Lc(e,{anyRealmIsTearingDown:t,realmScriptIsTearingDown:n,realmScriptWasActivated:r,hasLiveRealmForScript:i}){return e?n(e)||r(e)&&!i(e):t()}function Rc(e){let t=jc.get(e);t!==void 0&&jc.set(e,Math.max(0,t-1))}function zc(e,t){let n;return()=>n==null?n=(function(e,t){return __async(null,null,function*(){let n;kc+=1,Mc(Ac,t),Rc(t);try{yield Promise.race([e(),new Promise((e,t)=>{n=setTimeout(()=>t(new Oc(`Realm teardown timed out`)),5e3)})])}finally{clearTimeout(n),setTimeout(()=>{kc=Math.max(0,kc-1),(function(e,t){var n;let r=((n=e.get(t))==null?0:n)-1;r>0?e.set(t,r):e.delete(t)})(Ac,t)},2e3)}})})(e,t):n}function Bc(e){e.preventDefault(),e.stopImmediatePropagation()}function Vc(e){console.error(`Unexpected sandbox error. This has been reported to the host.`,e)}let Hc=/* @__PURE__ */ new WeakSet,Uc=/^\/api\/.+\/graphql\.json$/,Wc=/^(\/\/)?(\/)?storefront\/api\/(.+\/)?graphql\.json$/;function Gc(){return __async(this,null,function*(){throw new K(`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: https://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access`)})}function Kc(){throw new K(`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: https://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access`)}let qc={XMLHttpRequestUpload:!0,XMLHttpRequestEventTarget:!0,XMLHttpRequest:!0,BackgroundFetchManager:!0,BackgroundFetchRecord:!0,BackgroundFetchRegistration:!0,BackgroundFetchEvent:!0,BackgroundFetchUpdateUIEvent:!0,Cache:!0,CacheStorage:!0,caches:!0,fetch:Gc,Request:!0,Response:!0,Headers:!0,Worker:!0,SharedWorker:!0,WebSocket:Kc,EventSource:!0,PaymentMethodChangeEvent:!0,PaymentRequest:!0,PaymentRequestUpdateEvent:!0,PaymentResponse:!0,PushEvent:!0,PushManager:!0,PushMessageData:!0,PushSubscription:!0,PushSubscriptionOptions:!0,ServiceWorkerRegistration:!0,importScripts:!0};function Jc(e){if(typeof e==`function`||e instanceof AbortSignal)return;if(typeof e!=`object`||!e)return e;let t={};for(let n in e)t[n]=Jc(e[n]);return t}let Yc=Request,Xc=Response,Zc=[101,103,204,205,304];function Qc(e){return __async(this,arguments,function*(e,t={}){let{port1:n,port2:r}=new MessageChannel;try{let i=new Yc(e,t);if(new URL(i.url).origin===self.origin)throw Error(`Fetches to the iframe's origin are not allowed.`);i.signal.throwIfAborted(),i.signal.addEventListener(`abort`,()=>{n.postMessage({action:`abort`,reason:i.signal.reason})});let a=i.url,o={method:i.method,headers:[...i.headers],mode:i.mode,credentials:i.credentials,cache:i.cache,redirect:i.redirect,referrer:i.referrer,integrity:i.integrity,keepalive:i.keepalive},s=[r];i.method!==`GET`&&i.method!==`HEAD`&&(o.body=yield i.arrayBuffer(),s.push(o.body));let c={action:`fetch`,url:a,requestInit:o,returnPort:r};return self.postMessage(c,s),new Promise((e,t)=>{n.addEventListener(`message`,r=>{if(r.data){if(r.data.error)t(r.data.error),n.close();else if(r.data.response){let{status:t}=r.data.response.init,i=Zc.includes(t)?null:r.data.response.body;e(new Xc(i,r.data.response.init)),n.close()}}}),n.start()})}catch(e){return n==null||n.close(),Promise.reject(e)}})}let $c=Date.now();function el(e){return typeof(performance==null?void 0:performance.timeOrigin)==`number`?e+performance.timeOrigin:e+$c}function tl(e){let t=el(e.settledAt);return __spreadValues({startTime:t,timestamp:t,ttsCompletionReason:e.reason,ttsRenderObserved:e.renderedContent},!0===e.fetchAttributable&&{ttsRequestCount:e.fetchCount})}function nl(){return{startTime:el(performance.now()),timestamp:Date.now()}}let rl=new(Fe=class{constructor(){__privateAdd(this,b,/* @__PURE__ */ new Map)}registerCapture(e,t){let n=__privateGet(this,b).get(e);n&&n!==t&&this.discardCapture(e,n),__privateGet(this,b).set(e,t)}discardCapture(e,t){try{if(__privateGet(this,b).get(e)!==t)return;try{t.silence()}finally{__privateGet(this,b).delete(e)}}catch(e){wc.throwDetachedOnce(`bridge-discard-capture`,e)}}liveCaptureCount(){return __privateGet(this,b).size}isSoleCapture(e){return __privateGet(this,b).size===1&&__privateGet(this,b).has(e)}notifyFetchStarted(){let e=[...__privateGet(this,b).values()];try{for(let t of e)t.fetchStarted()}catch(e){wc.throwDetachedOnce(`bridge-notify-fetch-started`,e)}return()=>{try{for(let t of e)t.fetchResolved()}catch(e){wc.throwDetachedOnce(`bridge-resolve-fetch`,e)}}}reset(){__privateGet(this,b).clear()}},b=/* @__PURE__ */ new WeakMap,Fe),il=Request,al=Response,ol;function sl({allowNetworkAccess:e,allowApiAccess:t,storefrontUrl:n,myshopifyDomain:r,metrics:i,extensionId:a,instanceId:o,capture:s}){let c=Qc;return function(l,u){return __async(this,null,function*(){var d,f;let p,m,h=`external`,g=performance.now(),{startTime:_}=nl(),ee;s?(s.fetchStarted(!0),ee=()=>s.fetchResolved()):ee=rl.notifyFetchStarted();try{if(!e&&!t)throw yield Gc();let i;try{i=new il(l,u)}catch(e){throw new K(`Invalid request: `.concat(e))}if((function(e,t,n){let r=new URL(e);if(r.protocol===`shopify:`)return Wc.test(r.pathname);let i=new URL(t),a=new URL(`https://`.concat(n));return(r.host===i.host||r.host===a.host)&&Uc.test(r.pathname)})(i.url,n,r)){if(h=`storefront`,!t)return yield(function(){return __async(this,null,function*(){throw new K(`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: https://shopify.dev/docs/api/checkout-ui-extensions/configuration#api-access`)})})();let e=yield i.text(),n=yield ol(__spreadProps(__spreadValues({},Jc(i)),{headers:i.headers?Array.from(i.headers.entries()):[],body:e}));return`status`in n&&typeof n.status==`number`&&(m=n.status),n}if(h=`external`,e){let e=yield c(l,u);return`status`in e&&typeof e.status==`number`&&(m=e.status),e}return yield Gc()}catch(e){throw p=e instanceof Error&&e.name===`ExtensionUsageError`?`ExtensionUsageError`:`unknown`,e}finally{ee();let e=`unknown`,t=`unknown`;try{let n=typeof l==`string`?l:l.url;t=n,e=new URL(n).origin}catch(e){}let n=((f=(d=u==null?void 0:u.method)==null?typeof l==`string`?void 0:l.method:d)==null?`GET`:f).toUpperCase(),r=performance.now()-g;i.extensionPerformanceMarkFinished(`extension-fetch-call`,{type:`extension-fetch`,startTime:_,duration:r,errorType:p,destination:h,httpStatus:m,httpMethod:n,origin:e,requestUrl:t,extensionId:a,instanceId:o})}})}}let cl=/* @__PURE__ */ new Map;function ll(e){let t=(function({allowNetworkAccess:e,allowApiAccess:t,storefrontUrl:n,myshopifyDomain:r,metrics:i,extensionId:a,instanceId:o,extensionTTSCapture:s}){let c=__spreadProps(__spreadValues({},qc),{fetch:sl({allowNetworkAccess:e,allowApiAccess:t,storefrontUrl:n,myshopifyDomain:r,metrics:i,extensionId:a,instanceId:o,capture:s})});return e||t?__spreadProps(__spreadValues({},c),{WebSocket:!e&&Kc,Request:!1,Response:!1,Headers:!1}):c})(e.protectedApi);for(let n of Object.keys(t)){let t=cl.get(n);t&&Object.defineProperty(e.global,n,t)}(function(e,t){(function(e,t){let n=e;do{let e=Object.getOwnPropertyNames(n).filter(e=>e in t&&!1!==t[e]);for(let r of e)try{let e=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(n,r,{value:!0===t[r]?void 0:t[r],configurable:!0,enumerable:e==null?void 0:e.enumerable,writable:!1})}catch(e){}n=Object.getPrototypeOf(n)}while(n!==Object.prototype)})(e,t)})(e.global,t)}function ul(e,t){let n=e;for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}}var dl=class extends CustomEvent{respondWith(e){this.response=e}};let fl=Object.freeze({});var pl=(x=class 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(e,t){vl(e,t,this.observedAttributes,this.remotePropertyDefinitions,this.__attributeToPropertyMap,this.__eventToPropertyMap)}static finalize(){if(this.hasOwnProperty(`__finalized`))return this;this.__finalized=!0;let{slottable:e,remoteSlots:t,remoteProperties:n,remoteAttributes:r,remoteEvents:i,remoteMethods:a}=this,o=Object.getPrototypeOf(this),s=/* @__PURE__ */ new Set;e&&s.add(`slot`);let c=/* @__PURE__ */ new Map,l=/* @__PURE__ */ new Map,u=/* @__PURE__ */ new Map,d=/* @__PURE__ */ new Map,f=/* @__PURE__ */ new Map,p=/* @__PURE__ */ new Map;if(typeof o.finalize==`function`&&(o.finalize(),o.observedAttributes.forEach(e=>{s.add(e)}),o.remotePropertyDefinitions.forEach((e,t)=>{d.set(t,e)}),o.remoteAttributeDefinitions.forEach((e,t)=>{f.set(t,e)}),o.remoteEventDefinitions.forEach((e,t)=>{p.set(t,e)}),o.remoteSlotDefinitions.forEach((e,t)=>{u.set(t,e)})),t!=null&&(Array.isArray(t)?t:Object.keys(t)).forEach(e=>{u.set(e,fl)}),n!=null&&(Array.isArray(n)?n.forEach(e=>{vl(e,void 0,s,d,c,l)}):Object.keys(n).forEach(e=>{vl(e,n[e],s,d,c,l)})),r!=null&&r.forEach(e=>{f.set(e,fl),s.add(e)}),i!=null&&(Array.isArray(i)?i.forEach(e=>{p.set(e,fl)}):Object.keys(i).forEach(e=>{p.set(e,i[e])})),a!=null){if(Array.isArray(a))for(let e of a)this.prototype[e]=function(...t){return this.callRemoteMethod(e,...t)};else Object.assign(this,a)}return Object.defineProperties(this,{__observedAttributes:{value:[...s],enumerable:!1},__remoteSlotDefinitions:{value:u,enumerable:!1},__remotePropertyDefinitions:{value:d,enumerable:!1},__remoteAttributeDefinitions:{value:f,enumerable:!1},__remoteEventDefinitions:{value:p,enumerable:!1},__attributeToPropertyMap:{value:c,enumerable:!1},__eventToPropertyMap:{value:l,enumerable:!1}}),this}constructor(){var e;super(),this.constructor.finalize();let t={},n={},r=Object.getPrototypeOf(this),i=this.constructor;for(let[e,a]of i.remotePropertyDefinitions.entries()){let i=a.name;r.hasOwnProperty(e)||(e===i&&(n[e]=a.default),t[e]={configurable:!0,enumerable:e===i,get:()=>{var e;return(e=fs(this))==null?void 0:e[i]},set:e=>{_s(this,i,e)}})}for(let[n,r]of i.remoteEventDefinitions.entries()){let i=(e=r.property)==null||e;if(!i)continue;let a=!0===i?`on`.concat(n):i;t[a]={configurable:!0,enumerable:!0,get:()=>{var e;return(e=hl(this).properties.get(a))==null?null:e},set:e=>{let t=hl(this),r=t.properties.get(a);if(typeof e==`function`){let r=function(...t){return e.call(this,...t)};t.properties.set(a,r),this.addEventListener(n,r)}else t.properties.delete(a);r&&this.removeEventListener(n,r)}}}Object.defineProperties(this,t),Object.assign(this,n)}attributeChangedCallback(e,t,n){if(e===`slot`&&this.constructor.slottable)return void vs(this,e,n?String(n):void 0);let{remotePropertyDefinitions:r,remoteAttributeDefinitions:i,__attributeToPropertyMap:a}=this.constructor;if(i.has(e))return void vs(this,e,n);let o=a.get(e),s=o==null?o:r.get(o);s!=null&&(this[o]=(function(e,t){var n;if(e!=null)switch(t){case Boolean:return e!=null&&e!==`false`;case Object:case Array:try{return JSON.parse(e)}catch(e){return}case String:return String(e);case Number:return Number.parseFloat(e);case Function:return;default:return(n=t.parse)==null?void 0:n.call(t,e)}})(n,s.type))}connectedCallback(){for(let[e,t]of this.constructor.remoteEventDefinitions.entries())t.bubbles&&this.addEventListener(e,bl)}disconnectedCallback(){for(let[e,t]of this.constructor.remoteEventDefinitions.entries())t.bubbles&&this.removeEventListener(e,bl)}addEventListener(e,t,n){let{remoteEventDefinitions:r,__eventToPropertyMap:i}=this.constructor,a=r.get(e),o=i.get(e);if(a==null&&o==null)return super.addEventListener(e,t,n);let s=hl(this),c=gl.call(this,e,{property:o,definition:a}),l=typeof n==`object`&&n&&n.once?(...n)=>{let r=typeof t==`object`?t.handleEvent(...n):t.call(this,...n);return _l.call(this,e,t,u),r}:t,u=[l,c];c.listeners.add(t),s.listeners.set(t,u),super.addEventListener(e,l,n),typeof n==`object`&&n.signal&&n.signal.addEventListener(`abort`,()=>{_l.call(this,e,t,u)},{once:!0}),a?ys(this,e,c.dispatch):_s(this,o,c.dispatch)}removeEventListener(e,t,n){var r;let i=(r=ml.get(this))==null?void 0:r.listeners.get(t),a=i?i[0]:t;super.removeEventListener(e,a,n),i!=null&&_l.call(this,e,t,i)}updateRemoteProperty(e,t){_s(this,e,t)}updateRemoteAttribute(e,t){vs(this,e,t)}callRemoteMethod(e,...t){return(function(e,t,...n){let r=ss.get(e),i=as.get(e);if(r==null||i==null)throw Error(`Cannot call method `.concat(t,` on an unconnected node`));return i.call(r,t,...n)})(this,e,...t)}},__publicField(x,`slottable`,!0),__publicField(x,`__finalized`,!0),__publicField(x,`__observedAttributes`,[]),__publicField(x,`__attributeToPropertyMap`,/* @__PURE__ */ new Map),__publicField(x,`__eventToPropertyMap`,/* @__PURE__ */ new Map),__publicField(x,`__remotePropertyDefinitions`,/* @__PURE__ */ new Map),__publicField(x,`__remoteAttributeDefinitions`,/* @__PURE__ */ new Map),__publicField(x,`__remoteEventDefinitions`,/* @__PURE__ */ new Map),__publicField(x,`__remoteSlotDefinitions`,/* @__PURE__ */ new Map),x);let ml=/* @__PURE__ */ new WeakMap;function hl(e){let t=ml.get(e);return t||(t={events:/* @__PURE__ */ new Map,properties:/* @__PURE__ */ new Map,listeners:/* @__PURE__ */ new WeakMap},ml.set(e,t),t)}function gl(e,{property:t,definition:n}){let r=hl(this),i=r.events.get(e);return i==null&&(i={name:e,property:t,definition:n,listeners:/* @__PURE__ */ new Set,dispatch:(...t)=>{var r,i;let a=(i=(r=n==null?void 0:n.dispatchEvent)==null?void 0:r.apply(this,t))==null?new dl(e,{detail:t[0],bubbles:n==null?void 0:n.bubbles}):i;return this.dispatchEvent(a),a.response}},r.events.set(e,i)),i}function _l(e,t,n){var r,i;let a=hl(this),o=n[1];o.listeners.delete(t),a.listeners.delete(t),o.listeners.size>0||(a.events.delete(e),o.property?((r=fs(this))==null?void 0:r[o.property])===o.dispatch&&_s(this,o.property,void 0):((i=gs(this))==null?void 0:i[e])===o.dispatch&&ys(this,e,void 0))}function vl(e,t,n,r,i,a){if(r.has(e))return r.get(e);let o=e[0]===`o`&&e[1]===`n`,s=t==null?{}:t,{alias:c}=s,{type:l=o?Function:String,attribute:u=l!==Function,event:d=o,default:f=l!==Boolean&&void 0}=s;if(c==null){let t=e.toLowerCase();t!==e&&(c=[t]),o&&(c==null&&(c=[]),c.unshift(`_`.concat(e)))}let p,m;!0===u?p=yl(e):typeof u==`string`&&(p=u),p&&(Array.isArray(n)?n.push(p):n.add(p),i.set(p,e)),!0===d?m=yl(o?e.slice(2):e):typeof d==`string`&&(m=d),m&&a.set(m,e);let h={name:e,type:l,alias:c,event:m,attribute:p,default:f};if(r.set(e,h),c)for(let e of c)r.set(e,h);return h}function yl(e){return e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}function bl(){}var xl,Sl=(Re=class{constructor(e,{batch:t=Cl()}={}){__privateAdd(this,Ie),__privateAdd(this,S),__privateAdd(this,Le),__privateSet(this,Ie,e),__privateSet(this,Le,t)}call(e,t,...n){__privateGet(this,Ie).call(e,t,...n)}mutate(e){let t=__privateGet(this,S);__privateGet(this,S)==null&&__privateSet(this,S,[]),__privateGet(this,S).push(...e),t||__privateGet(this,Le).call(this,()=>{this.flush()})}flush(){__privateGet(this,S)&&(__privateGet(this,Ie).mutate(__privateGet(this,S)),__privateSet(this,S,void 0))}},Ie=/* @__PURE__ */ new WeakMap,S=/* @__PURE__ */ new WeakMap,Le=/* @__PURE__ */ new WeakMap,Re);function Cl(){return e=>{typeof queueMicrotask==`function`?queueMicrotask(e):Promise.resolve().then(e)}}let q=(ze=class extends pl{constructor(){super(),Object.entries(this.constructor.propertyDescriptors).forEach(([e,t])=>{Object.prototype.hasOwnProperty.call(this.constructor.prototype,e)||Object.defineProperty(this,e,{get(){return t.get.call(this)},set(e){t.set.call(this,e)}})}),this.constructor.listensToBubbledEvents&&(this.onchange=null,this.oninput=null,this.onclick=null,this.onfocusin=null,this.onfocusout=null)}},Be=/* @__PURE__ */ new WeakMap,__privateAdd(ze,Be,xl=()=>(ze.propertyDescriptors={},ze)),xl());function J(e={}){let{defaultValue:t}=e,n=t==null?``:t;return{defaultValue:n,get:e=>typeof e==`string`&&e?e:n,toAttribute:e=>e===n?null:e}}function Y(e,{attribute:t}){let n=typeof t==`string`?t.toLowerCase():t,r=(t,r)=>{if(!n)return;let i=e.toAttribute?e.toAttribute(r):r;if(i===null){if(!t.hasAttribute(n))return;t.removeAttribute(n);return}let a=String(i);t.getAttribute(n)!==a&&t.setAttribute(n,a)};return{get(){let t,r;if(n){let r=this.getAttribute(n);r!==null&&(t=e.parseAttribute?e.parseAttribute(r):r)}return r=e.get(t==null?null:t,this),r==null&&(r=e.defaultValue),r},set(t){e.set?e.set(t,e=>r(this,e)):r(this,String(t))}}}let wl={id:Y(J(),{attribute:`id`}),title:Y(J(),{attribute:`title`})};var Tl;let El=(Ve=class extends q{static get remoteAttributes(){return[`id`,`title`]}},He=/* @__PURE__ */ new WeakMap,__privateAdd(Ve,He,Tl=()=>(Ve.tagName=`s-abbreviation`,Ve.propertyDescriptors=wl,Ve.listensToBubbledEvents=!0,Ve)),Tl());var Dl;let Ol=(Ue=class extends q{static get remoteMethods(){return[`dismiss`]}static get remoteEvents(){return{aftertoggle:{bubbles:!0,dispatchEvent:e=>new ToggleEvent(`aftertoggle`,{oldState:e,newState:e===`open`?`closed`:`open`})},dismiss:{bubbles:!0,dispatchEvent:()=>new Event(`dismiss`,{bubbles:!0})},toggle:{bubbles:!0,dispatchEvent:e=>new ToggleEvent(`toggle`,{oldState:e,newState:e===`open`?`closed`:`open`})}}}},We=/* @__PURE__ */ new WeakMap,__privateAdd(Ue,We,Dl=()=>(Ue.tagName=`s-announcement`,Ue)),Dl());function kl(e){return typeof e==`string`&&e.startsWith(`@container`)}function X(e,{defaultValue:t,separator:n,canBeResponsive:r,trimWhitespace:i=!1,mapAliases:a={}}){let o=new Set(e),s=e=>typeof e==`string`&&(!(!r||!kl(e))||n&&e.split(n).every(e=>o.has(i?e.trim():e))||o.has(i?e.trim():e));return{defaultValue:t,parseAttribute:e=>s(e)?e:null,get:e=>{var i;return s(e)&&e!=null?r&&kl(e)?e:n&&a?e.split(n).map(e=>{var t;return(t=a[e])==null?e:t}).join(n):(i=a[e])==null?e:i:t}}}let Al=Ws,jl={id:Y(J(),{attribute:`id`}),size:Y(X([`small-200`,`small-100`,`small`,`base`,`large`,`large-100`],{defaultValue:`base`,mapAliases:{small:`small-100`,large:`large-100`}}),{attribute:`size`}),tone:Y(X([`auto`,`neutral`,`custom`,`info`,`success`,`warning`,`critical`],{defaultValue:`auto`}),{attribute:`tone`}),type:Y(X([...Ws,``],{defaultValue:``}),{attribute:`type`})},Ml={color:Y(X([`base`,`subdued`],{defaultValue:`base`}),{attribute:`color`}),icon:Y(X([...Al,``],{defaultValue:``}),{attribute:`icon`}),iconPosition:Y(X([`start`,`end`],{defaultValue:`start`}),{attribute:`iconposition`}),id:Y(J(),{attribute:`id`}),size:Y(X([`small`,`small-100`,`base`],{defaultValue:`base`,mapAliases:{small:`small-100`}}),{attribute:`size`}),tone:Y(X([`auto`,`neutral`,`critical`],{defaultValue:`auto`}),{attribute:`tone`})};var Nl;let Pl=(Ge=class extends q{static get remoteAttributes(){return[`color`,`icon`,`iconposition`,`id`,`size`,`tone`]}},Ke=/* @__PURE__ */ new WeakMap,__privateAdd(Ge,Ke,Nl=()=>(Ge.tagName=`s-badge`,Ge.propertyDescriptors=Ml,Ge)),Nl());function Z(){return{defaultValue:!1,parseAttribute:e=>typeof e==`string`,set(e,t){t(e?String(e):``)},get:e=>!!e&&(typeof e==`string`||e),toAttribute:e=>e?``:null}}let Fl={collapsible:Y(Z(),{attribute:`collapsible`}),dismissible:Y(Z(),{attribute:`dismissible`}),heading:Y(J(),{attribute:`heading`}),hidden:Y(Z(),{attribute:`hidden`}),id:Y(J(),{attribute:`id`}),tone:Y(X([`auto`,`info`,`success`,`warning`,`critical`],{defaultValue:`auto`}),{attribute:`tone`})};var Il;let Ll=(qe=class extends q{static get remoteAttributes(){return[`collapsible`,`dismissible`,`heading`,`hidden`,`id`,`tone`]}static get remoteEvents(){return{afterhide:{bubbles:!0,dispatchEvent(){return this.hidden=!0,new Event(`afterhide`)}},dismiss:{dispatchEvent:()=>new Event(`dismiss`)}}}},Je=/* @__PURE__ */ new WeakMap,__privateAdd(qe,Je,Il=()=>(qe.tagName=`s-banner`,qe.propertyDescriptors=Fl,qe.listensToBubbledEvents=!0,qe)),Il()),Rl=new RegExp(`^(`.concat(Us,`)(?:px|%)$`),`i`);function Q({defaultValue:e,type:t}){return{defaultValue:e,get:n=>zl(n,t)?n:e}}function zl(e,t){if(typeof e!=`string`)return!1;if(e===`0`||t===`auto`&&e===`auto`||t===`none`&&e===`none`)return!0;let n=Rl.exec(e);return n!==null&&Number.isFinite(Number(n[1]))}function Bl(){return{defaultValue:`auto`,get:e=>(function(e){if(typeof e!=`string`)return!1;if(e===`auto`)return!0;let t=e.split(` `);if(t.length!==2)return!1;let[n,r]=t;return n===`auto`?zl(r,`size`):r===`auto`&&zl(n,`size`)})(e)?e:`auto`}}function Vl(e,t){var n;let r=/* @__PURE__ */ new Set,i=Object.keys(e);for(let a of t){let t=[a];for(let r of i){let i=(n=e[r])==null?[]:n,a=[];for(;t.length>0;){let e=t.shift();for(let t of i){let n=e.replace(new RegExp(`{`.concat(r,`}`),`g`),t);a.push(n)}}t=a}t.forEach(e=>r.add(e))}return Array.from(r)}let Hl=[`none`,`solid`,`dashed`,`dotted`,`auto`,``],Ul=[`base`,`large`,`large-100`,`large-200`,`none`,``],Wl=Vl({Size:Ul,Style:Hl,Color:[`base`]},[`none`,`{Size}`,`{Size} {Color}`,`{Size} {Color} {Style}`]),Gl=[`base`,`small-500`,`small-400`,`small-300`,`small-200`,`small-100`,`small`,`large`,`large-100`,`large-200`,`large-300`,`large-400`,`large-500`,`none`],Kl={background:Y(X([`transparent`,`subdued`,`base`],{defaultValue:`transparent`}),{attribute:`background`})},ql={border:Y(X(Wl,{defaultValue:`none`,separator:` `,mapAliases:{large:`large-100`}}),{attribute:`border`}),borderRadius:Y(X([`small-100`,`small`,`base`,`large`,`large-100`,`max`,`none`],{defaultValue:`none`,separator:` `,mapAliases:{small:`small-100`,large:`large-100`}}),{attribute:`borderradius`}),borderStyle:Y(X(Hl,{defaultValue:``,separator:` `}),{attribute:`borderstyle`}),borderWidth:Y(X(Ul,{defaultValue:``,separator:` `,mapAliases:{large:`large-100`}}),{attribute:`borderwidth`})},Jl={display:Y(X([`none`,`auto`],{defaultValue:`auto`,canBeResponsive:!0}),{attribute:`display`})},Yl={blockSize:Y(Q({defaultValue:`auto`,type:`auto`}),{attribute:`blocksize`}),inlineSize:Y(Q({defaultValue:`auto`,type:`auto`}),{attribute:`inlinesize`}),maxBlockSize:Y(Q({defaultValue:`none`,type:`none`}),{attribute:`maxblocksize`}),maxInlineSize:Y(Q({defaultValue:`none`,type:`none`}),{attribute:`maxinlinesize`}),minBlockSize:Y(Q({defaultValue:`0`,type:`size`}),{attribute:`minblocksize`}),minInlineSize:Y(Q({defaultValue:`0`,type:`size`}),{attribute:`mininlinesize`})},Xl={overflow:Y(X([`visible`,`hidden`],{defaultValue:`visible`}),{attribute:`overflow`})},Zl={padding:Y(X(Gl,{defaultValue:`none`,separator:` `,canBeResponsive:!0}),{attribute:`padding`}),paddingBlock:Y(X([...Gl,``],{defaultValue:``,separator:` `,canBeResponsive:!0}),{attribute:`paddingblock`}),paddingBlockEnd:Y(X([...Gl,``],{defaultValue:``,canBeResponsive:!0}),{attribute:`paddingblockend`}),paddingBlockStart:Y(X([...Gl,``],{defaultValue:``,canBeResponsive:!0}),{attribute:`paddingblockstart`}),paddingInline:Y(X([...Gl,``],{defaultValue:``,separator:` `,canBeResponsive:!0}),{attribute:`paddinginline`}),paddingInlineEnd:Y(X([...Gl,``],{defaultValue:``,canBeResponsive:!0}),{attribute:`paddinginlineend`}),paddingInlineStart:Y(X([...Gl,``],{defaultValue:``,canBeResponsive:!0}),{attribute:`paddinginlinestart`})},Ql=__spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({},Kl),ql),Jl),Xl),Zl),Yl),{accessibilityLabel:Y(J(),{attribute:`accessibilitylabel`}),accessibilityRole:Y(X([`main`,`header`,`footer`,`section`,`aside`,`navigation`,`ordered-list`,`list-item`,`list-item-separator`,`unordered-list`,`separator`,`status`,`alert`,`generic`,`presentation`,`none`],{defaultValue:`generic`}),{attribute:`accessibilityrole`}),accessibilityVisibility:Y(X([`visible`,`hidden`,`exclusive`],{defaultValue:`visible`}),{attribute:`accessibilityvisibility`}),id:Y(J(),{attribute:`id`})}),$l={insetBlock:Y(Bl(),{attribute:`insetblock`}),insetInline:Y(Bl(),{attribute:`insetinline`}),position:Y(X([`absolute`,`relative`],{defaultValue:`relative`}),{attribute:`position`}),transform:Y({defaultValue:`none`,get:e=>(function(e){if(typeof e!=`string`)return!1;if(e===`none`)return!0;if(!e.startsWith(`translate(`)||!e.endsWith(`)`))return!1;let t=e.slice(10,-1).split(`,`);return!(t.length>2)&&t.every(e=>zl(e.trim(),`size`))})(e)?e:`none`},{attribute:`transform`})};var eu;let tu=(Ye=class extends q{static get remoteAttributes(){return/* @__PURE__ */ `accessibilitylabel.accessibilityrole.accessibilityvisibility.background.blocksize.border.borderradius.borderstyle.borderwidth.display.id.inlinesize.insetblock.insetinline.maxblocksize.maxinlinesize.minblocksize.mininlinesize.overflow.padding.paddingblock.paddingblockend.paddingblockstart.paddinginline.paddinginlineend.paddinginlinestart.position.transform`.split(`.`)}},Xe=/* @__PURE__ */ new WeakMap,__privateAdd(Ye,Xe,eu=()=>(Ye.tagName=`s-box`,Ye.propertyDescriptors=__spreadValues(__spreadValues({},Ql),$l),Ye.listensToBubbledEvents=!0,Ye)),eu()),nu={accessibilityLabel:Y(J(),{attribute:`accessibilitylabel`}),command:Y(X([`--auto`,`--toggle`,`--copy`,`--show`,`--hide`],{defaultValue:`--auto`}),{attribute:`command`}),commandFor:Y(J(),{attribute:`commandfor`}),disabled:Y(Z(),{attribute:`disabled`}),href:Y(J(),{attribute:`href`}),id:Y(J(),{attribute:`id`}),inlineSize:Y(X([`auto`,`fill`,`fit-content`],{defaultValue:`auto`}),{attribute:`inlinesize`}),interestFor:Y(J(),{attribute:`interestfor`}),loading:Y(Z(),{attribute:`loading`}),target:Y(X([`auto`,`_blank`],{defaultValue:`auto`}),{attribute:`target`}),tone:Y(X([`auto`,`neutral`,`critical`],{defaultValue:`auto`}),{attribute:`tone`}),type:Y(X([`button`,`submit`],{defaultValue:`button`}),{attribute:`type`}),variant:Y(X([`auto`,`primary`,`secondary`],{defaultValue:`auto`}),{attribute:`variant`})};var ru;let iu=(Ze=class extends q{static get remoteAttributes(){return[`accessibilitylabel`,`command`,`commandfor`,`interestfor`,`disabled`,`href`,`id`,`inlinesize`,`loading`,`target`,`tone`,`type`,`variant`]}static get remoteEvents(){return{click:{bubbles:!0,dispatchEvent:()=>new Event(`click`,{bubbles:!0})}}}},Qe=/* @__PURE__ */ new WeakMap,__privateAdd(Ze,Qe,ru=()=>(Ze.tagName=`s-button`,Ze.propertyDescriptors=nu,Ze)),ru()),au={id:Y(J(),{attribute:`id`}),accessibilityLabel:Y(J(),{attribute:`accessibility-label`}),inlineSize:Y(Q({defaultValue:`0`,type:`size`}),{attribute:`inline-size`}),blockSize:Y(Q({defaultValue:`0`,type:`size`}),{attribute:`block-size`})};var ou;let su=($e=class extends q{static get remoteAttributes(){return[`id`,`accessibility-label`,`inline-size`,`block-size`]}static get remoteEvents(){return{ready:{bubbles:!0,dispatchEvent:()=>new Event(`ready`,{bubbles:!0})}}}get contentWindow(){return{postMessage:e=>{this.callRemoteMethod(`relayMessage`,e)}}}},et=/* @__PURE__ */ new WeakMap,__privateAdd($e,et,ou=()=>($e.tagName=`s-chat`,$e.propertyDescriptors=au,$e)),ou()),cu={accessibilityLabel:Y(J(),{attribute:`accessibilitylabel`}),command:Y(X([`--auto`,`--toggle`,`--show`,`--hide`],{defaultValue:`--auto`}),{attribute:`command`}),commandFor:Y(J(),{attribute:`commandfor`}),defaultChecked:Y(Z(),{attribute:`checked`}),disabled:Y(Z(),{attribute:`disabled`}),error:Y(J(),{attribute:`error`}),id:Y(J(),{attribute:`id`}),label:Y(J(),{attribute:`label`}),name:Y(J(),{attribute:`name`}),required:Y(Z(),{attribute:`required`}),value:Y(J(),{attribute:`value`})};var lu;let uu=(nt=class extends q{constructor(){super(...arguments),__privateAdd(this,tt)}static get remoteAttributes(){return[`accessibilitylabel`,`checked`,`command`,`commandfor`,`disabled`,`error`,`id`,`label`,`name`,`required`,`value`]}static get remoteEvents(){return{change:{bubbles:!0,dispatchEvent(e){return __privateSet(this,tt,!!e),new Event(`change`,{bubbles:!0})}},sync:{bubbles:!0,dispatchEvent(){this.__sync()}}}}get checked(){var e;return(e=__privateGet(this,tt))==null?this.defaultChecked:e}set checked(e){__privateSet(this,tt,!!e),this.__sync()}__sync(){this.updateRemoteProperty(`checked`,[__privateGet(this,tt)])}},tt=/* @__PURE__ */ new WeakMap,rt=/* @__PURE__ */ new WeakMap,__privateAdd(nt,rt,lu=()=>(nt.tagName=`s-checkbox`,nt.propertyDescriptors=cu,nt)),lu()),du={accessibilityLabel:Y(J(),{attribute:`accessibilitylabel`}),id:Y(J(),{attribute:`id`})};var fu;let pu=(it=class extends q{static get remoteAttributes(){return[`accessibilitylabel`,`id`]}static get remoteEvents(){return{click:{bubbles:!0,dispatchEvent:()=>new Event(`click`,{bubbles:!0})}}}},at=/* @__PURE__ */ new WeakMap,__privateAdd(it,at,fu=()=>(it.tagName=`s-chip`,it.propertyDescriptors=du,it)),fu()),mu={accessibilityLabel:Y(J(),{attribute:`accessibilitylabel`}),disabled:Y(Z(),{attribute:`disabled`}),id:Y(J(),{attribute:`id`}),label:Y(J(),{attribute:`label`}),value:Y(J(),{attribute:`value`}),defaultSelected:Y(Z(),{attribute:`selected`})};var hu;let gu=(st=class extends q{constructor(...e){super(...e),__privateAdd(this,ot),this.__list=void 0,