smbls 3.14.52 → 3.14.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/smbls.cjs CHANGED
@@ -1,44 +1,44 @@
1
- "use strict";var FF=Object.create;var al=Object.defineProperty;var DF=Object.getOwnPropertyDescriptor;var LF=Object.getOwnPropertyNames;var MF=Object.getPrototypeOf,BF=Object.prototype.hasOwnProperty;var X=(e,t)=>()=>(e&&(t=e(e=0)),t);var zd=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),R=(e,t)=>{for(var r in t)al(e,r,{get:t[r],enumerable:!0})},kw=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of LF(t))!BF.call(e,o)&&o!==r&&al(e,o,{get:()=>t[o],enumerable:!(n=DF(t,o))||n.enumerable});return e};var Cw=(e,t,r)=>(r=e!=null?FF(MF(e)):{},kw(t||!e||!e.__esModule?al(r,"default",{value:e,enumerable:!0}):r,e)),NF=e=>kw(al({},"__esModule",{value:!0}),e);var Gd,Kd,C,he,ri=X(()=>{Gd=globalThis,Kd=globalThis,C=globalThis,he=C.document});var or,ni,Xe,oi=X(()=>{ri();or=e=>(typeof Node=="object"?e instanceof C.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,ni=e=>(typeof HTMLElement=="object"?e instanceof C.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,Xe=e=>typeof C<"u"&&(C.Node&&e instanceof C.Node||C.Window&&e instanceof C.Window||e===C||e===document)});var _,A,Kt,O,dl,pl,F,hl,re,Ne,_e,ii,Ze,Xd,je=X(()=>{oi();_=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,A=e=>typeof e=="string",Kt=e=>typeof e=="number",O=e=>typeof e=="function",dl=e=>e===!0||e===!1,pl=e=>e===null,F=e=>Array.isArray(e),hl=e=>e instanceof Date,re=e=>e===null?!1:typeof e=="object",Ne=e=>e!==void 0,_e=e=>e===void 0,ii={boolean:dl,array:F,object:_,string:A,date:hl,number:Kt,null:pl,function:O,objectLike:re,node:or,htmlElement:ni,defined:Ne},Ze=e=>(...t)=>t.some(r=>ii[r](e)),Xd=e=>(...t)=>!t.some(r=>ii[r](e))});var Zd,Yd,Jd,Qd,qn,si,ep,tp,ai,rp,np,op,ip,sp,ap,lp,Gn,li,Kn=X(()=>{ir();je();Zd=(e,t)=>t.every(r=>e.includes(r)),Yd=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Jd=(e,t)=>{if(A(t)&&(t=parseInt(t)),Kt(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},Qd=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},qn=(...e)=>[].concat(...e),si=(e,t=[])=>e.reduce((r,n)=>fe(r,me(n,{exclude:t}),t),{}),ep=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},tp=(e,t)=>{if(!F(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},ai=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},rp=(e,t)=>e.filter(r=>r!==t),np=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},op=(e,t,r)=>{let n=[...e],o=n.indexOf(t),i=n.indexOf(r);if(o!==-1&&i!==-1){let s=n.splice(o,1)[0],a=i<o?i:i+1;n.splice(a,0,s)}return n},ip=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},sp=(e,t)=>e.filter(r=>!t.includes(r)),ap=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},lp=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Gn=e=>F(e)?[...new Set(e)]:e,li=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function tn(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let i=HF[n],s=t||this.state||{},a=this;return e.replace(i,(l,c,u,d)=>{let f=u.trim();if(d){let p=a?.context,h=p?.functions?.[d]||p?.utils?.[d]||p?.methods?.[d]||p?.snippets?.[d]||a?.[d];if(h&&typeof h=="function")try{return String(h.call(a,f)??"")}catch{return""}return""}if(c){let p=(c.match(/\.\.\//g)||[]).length,h=s;for(let m=0;m<p;m++){if(!h||!h.parent)return"";h=h.parent}if(f==="parent")return String(h.value??"");let g=ci(h,f);return String(g??"")}else{let p=ci(s,f);if(p!=null)return String(p);let h=a?.context?.polyglot;if(h?.translations){let g=s?.root?.lang||s?.lang||a?.context?.state?.lang||h.defaultLang||"en",m=h.translations[g];if(m){let b=ci(m,f);if(b!=null&&typeof b!="object")return String(b);for(let x in m){let v=m[x];if(v&&typeof v=="object"&&!Array.isArray(v)){let S=ci(v,f);if(S!=null&&typeof S!="object")return String(S)}}}let y=ci(h.translations,f);if(y!=null&&typeof y!="object")return String(y)}return""}})}var ui,cp,HF,ci,rn,up,VF,fp,dp,pp,UF,hp,gp,fi=X(()=>{ui=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},cp=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},HF={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},ci=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e);rn=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,up=(e,t)=>{let r=e.split(`
2
- `),n=-1,o=-1,i=-1,s=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,i=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,s=r[u].indexOf("{}")+3;break}let d=r[u].slice(i+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,s=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,s=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:i,endColumn:s,startLineNumber:n,endLineNumber:o}},VF=/\\([0-7]{1,3})/g,fp=e=>e.replace(VF,(t,r)=>String.fromCharCode(parseInt(r,8))),dp=e=>e.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),pp=e=>e.replace(/\/\/\/\/\/n/g,`
3
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),UF=/[^a-zA-Z0-9\s]/g,hp=e=>e.replace(UF,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),gp=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))});var _r,di,mp,nn,kr,Xn,pi,yp,Zn=X(()=>{_r=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),di=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),mp=["ref","parent","__element","__depends","__ref","__children","root"],nn=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),kr=new Set(["update","__element"]),Xn=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),pi=new Set(["node","context","extends","__element","__ref",...Xn,...nn,...kr]),yp=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Pw,on,de,bp,be,fe,Iw,vp,me,hi,qF,gi,GF,KF,XF,Yn,ZF,YF,$w,Xt,JF,QF,eD,mi,xp,wp,gl,Sp,_p,yi,sn,Ye,ml,tD,kp,Cp,yl,Ap,Ep,Tp,Op,Rp,Pp,$p,ir=X(()=>{ri();je();Kn();fi();oi();Zn();Pw="production",on=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,de=(e,t,r,n)=>{if(O(e))return t?typeof e.call!="function"?e:e.call(t,t,r||t.state,n||t.context):void 0;if(e!=null&&t?.context?.plugins&&(F(e)||_(e)&&!Xe(e))){let o=t.context.plugins;for(let i of o)if(i.resolveHandler){let s=i.resolveHandler(e,t);if(typeof s=="function")return de(s,t,r,n)}}return e},bp=(e,t,r)=>{for(let n in t)e[n]=de(t[n],r)},be=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(on(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},fe=(e,t,r=pi)=>Iw(e,t,r,null),Iw=(e,t,r,n)=>{if(e===t)return e;if(n){for(let i=0;i<n.length;i+=2)if(n[i]===e&&n[i+1]===t)return e}let o=r instanceof Set;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||on(i)||i==="constructor"||i==="prototype"||(o?r.has(i):r.includes(i)))continue;let s=e[i],a=t[i];if(re(s)&&re(a)){let l=n||[];l.push(e,t),Iw(s,a,r,l),l.length-=2}else s===void 0&&(e[i]=a)}return e},vp=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(on(o)||(r?t.has(o):t.includes(o))||(n[o]=e[o]));return n},me=(e,t={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:i=new WeakMap,handleExtends:s=!1}=t;if(!re(e)||Xe(e))return e;if(i.has(e))return i.get(e);let a=r instanceof Set?r:r.length>3?new Set(r):null,l=d=>a?a.has(d):r.includes(d),c=F(e)?[]:{};i.set(e,c);let u=[[e,c]];for(;u.length;){let[d,f]=u.pop();for(let p in d){if(!Object.prototype.hasOwnProperty.call(d,p)||on(p)||p==="__proto__"||l(p))continue;let h=d[p];if(!(n&&h===void 0)&&!(o&&h===null)){if(Xe(h)){f[p]=h;continue}if(s&&p==="extends"&&F(h)){f[p]=si(h,r);continue}if(O(h)){f[p]=h;continue}if(re(h))if(i.has(h))f[p]=i.get(h);else{let g=F(h)?[]:{};i.set(h,g),f[p]=g,u.push([h,g])}else f[p]=h}}}return c},hi=(e,t={})=>{(e.node||e.__ref||e.parent||e.__element||e.parse)&&((e.__element||e.parent?.__element).warn("Trying to clone element or state at",e),e=e.parse?.());for(let r in e){let n=e[r];if(O(n))t[r]=n.toString();else if(_(n))t[r]={},hi(n,t[r]);else if(F(n)){let o=t[r]=[];for(let i=0;i<n.length;i++){let s=n[i];_(s)?(o[i]={},hi(s,o[i])):O(s)?o[i]=s.toString():o[i]=s}}else t[r]=n}return t},qF=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),gi=(e={},t=0)=>{if(e===null||typeof e!="object")return String(e);let r=!1;for(let i in e){r=!0;break}if(!r)return"{}";let n=" ".repeat(t),o=`{
4
- `;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let s=e[i],a=!1;for(let c=0;c<i.length;c++)if(qF.has(i[c])){a=!0;break}let l=a?`'${i}'`:i;if(o+=`${n} ${l}: `,F(s)){o+=`[
5
- `;for(let c of s)re(c)&&c!==null?o+=`${n} ${gi(c,t+2)},
6
- `:A(c)?o+=`${n} '${c}',
1
+ "use strict";var XP=Object.create;var tl=Object.defineProperty;var YP=Object.getOwnPropertyDescriptor;var JP=Object.getOwnPropertyNames;var ZP=Object.getPrototypeOf,QP=Object.prototype.hasOwnProperty;var G=(e,t)=>()=>(e&&(t=e(e=0)),t);var Od=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),K=(e,t)=>{for(var r in t)tl(e,r,{get:t[r],enumerable:!0})},A0=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of JP(t))!QP.call(e,o)&&o!==r&&tl(e,o,{get:()=>t[o],enumerable:!(n=YP(t,o))||n.enumerable});return e};var E0=(e,t,r)=>(r=e!=null?XP(ZP(e)):{},A0(t||!e||!e.__esModule?tl(r,"default",{value:e,enumerable:!0}):r,e)),e2=e=>A0(tl({},"__esModule",{value:!0}),e);var Fd,jd,A,pe,Yo=G(()=>{"use strict";Fd=globalThis,jd=globalThis,A=globalThis,pe=A.document});var rr,Jo,He,Zo=G(()=>{"use strict";Yo();rr=e=>(typeof Node=="object"?e instanceof A.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,Jo=e=>(typeof HTMLElement=="object"?e instanceof A.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,He=e=>typeof A<"u"&&(A.Node&&e instanceof A.Node||A.Window&&e instanceof A.Window||e===A||e===document)});var S,k,Ut,O,il,al,P,ll,re,qe,$e,Qo,Ge,Dd,Ie=G(()=>{"use strict";Zo();S=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,k=e=>typeof e=="string",Ut=e=>typeof e=="number",O=e=>typeof e=="function",il=e=>e===!0||e===!1,al=e=>e===null,P=e=>Array.isArray(e),ll=e=>e instanceof Date,re=e=>e===null?!1:typeof e=="object",qe=e=>e!==void 0,$e=e=>e===void 0,Qo={boolean:il,array:P,object:S,string:k,date:ll,number:Ut,null:al,function:O,objectLike:re,node:rr,htmlElement:Jo,defined:qe},Ge=e=>(...t)=>t.some(r=>Qo[r](e)),Dd=e=>(...t)=>!t.some(r=>Qo[r](e))});var Ld,Md,Nd,Bd,Mn,es,Vd,zd,ts,Ud,Wd,Hd,qd,Gd,Kd,Xd,Nn,rs,Bn=G(()=>{"use strict";nr();Ie();Ld=(e,t)=>t.every(r=>e.includes(r)),Md=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Nd=(e,t)=>{if(k(t)&&(t=parseInt(t)),Ut(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},Bd=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Mn=(...e)=>[].concat(...e),es=(e,t=[])=>e.reduce((r,n)=>fe(r,ge(n,{exclude:t}),t),{}),Vd=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},zd=(e,t)=>{if(!P(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},ts=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Ud=(e,t)=>e.filter(r=>r!==t),Wd=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},Hd=(e,t,r)=>{let n=[...e],o=n.indexOf(t),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},qd=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},Gd=(e,t)=>e.filter(r=>!t.includes(r)),Kd=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Xd=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Nn=e=>P(e)?[...new Set(e)]:e,rs=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function Zr(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let s=n2[n],i=t||this.state||{},a=this;return e.replace(s,(l,c,u,d)=>{let f=u.trim();if(d){let p=a?.context,h=p?.functions?.[d]||p?.utils?.[d]||p?.methods?.[d]||p?.snippets?.[d]||a?.[d];if(h&&typeof h=="function")try{return String(h.call(a,f)??"")}catch{return""}return""}if(c){let p=(c.match(/\.\.\//g)||[]).length,h=i;for(let m=0;m<p;m++){if(!h||!h.parent)return"";h=h.parent}if(f==="parent")return String(h.value??"");let g=ns(h,f);return String(g??"")}else{let p=ns(i,f);if(p!=null)return String(p);let h=a?.context?.polyglot;if(h?.translations){let g=i?.root?.lang||i?.lang||a?.context?.state?.lang||h.defaultLang||"en",m=h.translations[g];if(m){let b=ns(m,f);if(b!=null&&typeof b!="object")return String(b);for(let v in m){let x=m[v];if(x&&typeof x=="object"&&!Array.isArray(x)){let _=ns(x,f);if(_!=null&&typeof _!="object")return String(_)}}}let y=ns(h.translations,f);if(y!=null&&typeof y!="object")return String(y)}return""}})}var os,Yd,n2,ns,Qr,Jd,o2,Zd,Qd,ep,s2,tp,rp,ss=G(()=>{"use strict";os=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},Yd=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},n2={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},ns=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e);Qr=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Jd=(e,t)=>{let r=e.split(`
2
+ `),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,s=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,i=r[u].indexOf("{}")+3;break}let d=r[u].slice(s+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,i=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,i=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},o2=/\\([0-7]{1,3})/g,Zd=e=>e.replace(o2,(t,r)=>String.fromCharCode(parseInt(r,8))),Qd=e=>e.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),ep=e=>e.replace(/\/\/\/\/\/n/g,`
3
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),s2=/[^a-zA-Z0-9\s]/g,tp=e=>e.replace(s2,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),rp=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))});var vr,is,np,en,_r,Vn,as,op,zn=G(()=>{"use strict";vr=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),is=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),np=["ref","parent","__element","__depends","__ref","__children","root"],en=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),_r=new Set(["update","__element"]),Vn=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),as=new Set(["node","context","extends","__element","__ref",...Vn,...en,..._r]),op=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var I0,tn,de,sp,ye,fe,j0,ip,ge,ls,i2,cs,a2,l2,c2,Un,u2,f2,F0,Wt,d2,p2,h2,us,ap,lp,cl,cp,up,fs,rn,Ke,ul,g2,fp,dp,fl,pp,hp,gp,mp,yp,bp,xp,nr=G(()=>{"use strict";Yo();Ie();Bn();ss();Zo();zn();I0="production",tn=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,de=(e,t,r,n)=>{if(O(e))return t?typeof e.call!="function"?e:e.call(t,t,r||t.state,n||t.context):void 0;if(e!=null&&t?.context?.plugins&&(P(e)||S(e)&&!He(e))){let o=t.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(e,t);if(typeof i=="function")return de(i,t,r,n)}}return e},sp=(e,t,r)=>{for(let n in t)e[n]=de(t[n],r)},ye=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(tn(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},fe=(e,t,r=as)=>j0(e,t,r,null),j0=(e,t,r,n)=>{if(e===t)return e;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===e&&n[s+1]===t)return e}let o=r instanceof Set;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||tn(s)||s==="constructor"||s==="prototype"||(o?r.has(s):r.includes(s)))continue;let i=e[s],a=t[s];if(re(i)&&re(a)){let l=n||[];l.push(e,t),j0(i,a,r,l),l.length-=2}else i===void 0&&(e[s]=a)}return e},ip=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(tn(o)||(r?t.has(o):t.includes(o))||(n[o]=e[o]));return n},ge=(e,t={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=t;if(!re(e)||He(e))return e;if(s.has(e))return s.get(e);let a=r instanceof Set?r:r.length>3?new Set(r):null,l=d=>a?a.has(d):r.includes(d),c=P(e)?[]:{};s.set(e,c);let u=[[e,c]];for(;u.length;){let[d,f]=u.pop();for(let p in d){if(!Object.prototype.hasOwnProperty.call(d,p)||tn(p)||p==="__proto__"||l(p))continue;let h=d[p];if(!(n&&h===void 0)&&!(o&&h===null)){if(He(h)){f[p]=h;continue}if(i&&p==="extends"&&P(h)){f[p]=es(h,r);continue}if(O(h)){f[p]=h;continue}if(re(h))if(s.has(h))f[p]=s.get(h);else{let g=P(h)?[]:{};s.set(h,g),f[p]=g,u.push([h,g])}else f[p]=h}}}return c},ls=(e,t={})=>{(e.node||e.__ref||e.parent||e.__element||e.parse)&&((e.__element||e.parent?.__element).warn("Trying to clone element or state at",e),e=e.parse?.());for(let r in e){let n=e[r];if(O(n))t[r]=n.toString();else if(S(n))t[r]={},ls(n,t[r]);else if(P(n)){let o=t[r]=[];for(let s=0;s<n.length;s++){let i=n[s];S(i)?(o[s]={},ls(i,o[s])):O(i)?o[s]=i.toString():o[s]=i}}else t[r]=n}return t},i2=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),cs=(e={},t=0)=>{if(e===null||typeof e!="object")return String(e);let r=!1;for(let s in e){r=!0;break}if(!r)return"{}";let n=" ".repeat(t),o=`{
4
+ `;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=e[s],a=!1;for(let c=0;c<s.length;c++)if(i2.has(s[c])){a=!0;break}let l=a?`'${s}'`:s;if(o+=`${n} ${l}: `,P(i)){o+=`[
5
+ `;for(let c of i)re(c)&&c!==null?o+=`${n} ${cs(c,t+2)},
6
+ `:k(c)?o+=`${n} '${c}',
7
7
  `:o+=`${n} ${c},
8
- `;o+=`${n} ]`}else re(s)?o+=gi(s,t+1):A(s)?o+=ui(s,[`
9
- `,"'"])?`\`${s}\``:`'${s}'`:o+=s;o+=`,
10
- `}return o+=`${n}}`,o},GF=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],KF=/^["[{]/,XF=/^(export|import)\s/,Yn=e=>{if(!e)return!1;let t=e.trim().replace(/\n\s*/g," ").trim();if(t===""||t==="{}"||t==="[]"||XF.test(t)||!GF.some(o=>o.test(t)))return!1;let r=t.charCodeAt(0),n=t.includes("=>");return!(r===123&&!n||r===91||KF.test(t)&&!n)},ZF=e=>(0,eval)(e),YF=(e,t)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(e);if(!r)return null;let n=r[0].length,o=[],i=n,s=1,a=null,l=e.length,c=new RegExp("^(?:const|let|var)\\s+"+t+"\\b");for(;i<l&&s>0;){let d=e[i];if(d==="/"&&e[i+1]==="/"){let f=e.indexOf(`
11
- `,i);i=f===-1?l:f;continue}if(d==="/"&&e[i+1]==="*"){let f=e.indexOf("*/",i+2);i=f===-1?l:f+2;continue}if(d==='"'||d==="'"||d==="`"){let f=d;for(i++;i<l;){if(e[i]==="\\"){i+=2;continue}if(e[i]===f){i++;break}if(f==="`"&&e[i]==="$"&&e[i+1]==="{"){i+=2;let p=1;for(;i<l&&p>0;)e[i]==="{"?p++:e[i]==="}"&&p--,i++;continue}i++}continue}if(d==="{"){s++,i++;continue}if(d==="}"){s--,i++;continue}if(s===1&&c.test(e.slice(i))){let f=i,p=0,h=i;for(;h<l;){let g=e[h];if(g==='"'||g==="'"||g==="`"){let m=g;for(h++;h<l;){if(e[h]==="\\"){h+=2;continue}if(e[h]===m){h++;break}h++}continue}if(g==="("||g==="["||g==="{"){p++,h++;continue}if(g===")"||g==="]"||g==="}"){if(p===0)break;p--,h++;continue}if(p===0&&(g===";"||g===`
12
- `)){h++;break}h++}o.push([f,h]),i=h;continue}i++}if(!o.length)return null;let u=e;for(let d=o.length-1;d>=0;d--)u=u.slice(0,o[d][0])+u.slice(o[d][1]);return u},$w=(e,t,r)=>{try{return r.window.eval(`(${e})`)}catch(n){let o=n&&n.message?n.message:String(n),i=/await is only valid in async/.test(o),s=/Identifier '([^']+)' has already been declared/.exec(o),a=null;if(i){let l=String(e).trim();if(/^function[\s(]/.test(l))try{a=r.window.eval("(async "+l+")")}catch{}}else if(s){let l=String(e),c=s[1];for(let u=0;u<5;u++){let d=YF(l,c);if(!d||d===l)break;l=d;try{a=r.window.eval("("+l+")");break}catch(f){let p=/Identifier '([^']+)' has already been declared/.exec(f&&f.message||String(f));if(!p||p[1]!==c)break}}}return a||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${t} \u2014 value will be left as a string. Reason: `+o+`.
13
- First 200 chars of source: `+String(e).slice(0,200)),e)}},Xt=(e,t={},r={window:{eval:ZF}})=>{if(!e||typeof e!="object")return t;let n=[[e,t]];for(;n.length;){let[o,i]=n.pop();for(let s in o){if(!Object.prototype.hasOwnProperty.call(o,s))continue;let a=o[s];if(A(a))Yn(a)?i[s]=$w(a,`"${s}"`,r):i[s]=a;else if(F(a)){let l=i[s]=[];for(let c=0;c<a.length;c++){let u=a[c];if(A(u))l.push(Yn(u)?$w(u,`array index ${c} (prop "${s}")`,r):u);else if(_(u)){let d={};l.push(d),n.push([u,d])}else l.push(u)}}else if(_(a)){let l=i[s]&&typeof i[s]=="object"&&!F(i[s])?i[s]:i[s]={};n.push([a,l])}else i[s]=a}}return t},JF="Set",QF="Map",eD=e=>!e||typeof e!="object"?e:e.__type===JF&&Array.isArray(e.values)?new Set(e.values):e.__type===QF&&Array.isArray(e.entries)?new Map(e.entries):e,mi=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];A(o)&&Yn(o)?r.push([n,o]):t[n]=eD(o)}for(let[n,o]of r)try{let i=Object.keys(t).map(s=>`var ${s} = __gs__[${JSON.stringify(s)}];`).join(`
14
- `);t[n]=C.eval(`(function(__gs__) { ${i}
15
- return (${o}); })`)(t)}catch{try{t[n]=C.eval(`(${o})`)}catch{t[n]=o}}return t},xp=(e,t={verbose:!0})=>{try{return e?C.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},wp=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),gl=e=>{for(let t in e)return!1;return!0},Sp=e=>_(e)&&gl(e),_p=()=>Object.create(null),yi=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let i in t)n.includes(i)||!o&&on(i)||i==="constructor"||i==="prototype"||t[i]!==void 0&&(e[i]=t[i]);return e},sn=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)on(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Ye=(e,t,r={},n=new WeakMap)=>{if(!re(e)||!re(t)||Xe(e)||Xe(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,i=o?o instanceof Set?o:new Set(o):null,s=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||i&&i.has(a)||s&&on(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];Xe(c)?e[a]=c:re(l)&&re(c)?e[a]=Ye(l,c,r,n):c!==void 0&&(e[a]=c)}return e},ml=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let i=0;i<n.length;i++){let s=n[i];if(!Object.prototype.hasOwnProperty.call(t,s)||!ml(e[s],t[s],r))return!1}return!0},tD=new Set(["node","__ref"]),kp=(e,t,r=tD)=>{if(e===t)return!0;if(!re(e)||!re(t)||Xe(e)||Xe(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function i(s,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(s,l))return!1;let c=a[l],u=s[l];if(Xe(c)||Xe(u)){if(c!==u)return!1}else if(re(c)&&re(u)){if(!i(u,c))return!1}else if(c!==u)return!1}return!0}return i(e,t)},Cp=(e,t)=>{if(t==null)return e;if(Ze(t)("string","number"))delete e[t];else if(F(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},yl=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=yl(e[r]));return t},Ap=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},Ep=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},Tp=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},Op=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},Rp=e=>{let t=[],r=0;for(let n=0;n<e.length;n++)if(t.length<2)t.push(e[n]);else if(e[n]===t[n%2]?r++:(t=[e[n-1],e[n]],r=1),r>=20)return(Pw==="test"||Pw==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",t),!0},Pp=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},$p=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}});var bi,vi,xi,bl=X(()=>{ir();bi=(function(){let e=0;function t(){return e++,e}return t})(),vi=bi,xi=(e,t,r)=>(de(r,e)||r||e.key||bi()).toString()});var Ot,Ip,Cr,vl,jp,Fp,Dp,Ar,Lp,an,Mp=X(()=>{Ot="production",Ip=Ot,Cr=(e=Ot)=>e==="production",vl=(e=Ot)=>e==="testing"||e==="test",jp=vl,Fp=(e=Ot)=>e==="staging",Dp=(e=Ot)=>e==="local",Ar=(e=Ot)=>e==="development"||e==="dev"||e==="local",Lp=(e,t=Ot)=>t[e],an=(e=Ot)=>!Cr(e)});function wi(e,t,r){let n;return function(){let o=this,i=arguments,s=function(){n=null,r||e.apply(o,i)},a=r&&!n;clearTimeout(n),n=setTimeout(s,t),a&&e.apply(o,i)}}function Wp(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Bp,Np,rD,zp,Jn,Qn,eo,xl=X(()=>{Bp=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Np=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},rD=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,zp=e=>rD.test(e),Jn=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Qn=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},eo=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let i of n)typeof i[e]=="function"&&(i[e](t,...r),o=!0);return o}});var Hp,jw=X(()=>{je();ir();Hp=(e,t)=>{let{__ref:r}=e,n=e.if;if(O(n)){let o;try{o=n(e,e.state,e.context)}catch(i){typeof console<"u"&&console.warn("[DOMQL] if condition error:",i),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?de(n,e)?r.__if=!0:delete r.__if:r.__if=!0}});var Vp,Up,Fw=X(()=>{Vp=(e,...t)=>{e&&t.map(r=>console.log(r))},Up=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function Zp(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function Yp(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var qp,Gp,Kp,Xp,Dw=X(()=>{je();ri();qp=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Gp=(e,t,r=365)=>{if(_e(he)||_e(he.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;he.cookie=`${e}=${t};${o};path=/`},Kp=e=>{if(_e(he)||_e(he.cookie))return;let t=`${e}=`,r=decodeURIComponent(he.cookie).split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return""},Xp=e=>{_e(he)||_e(he.cookie)||(he.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var to,Lw,Jp,Qp=X(()=>{to={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},Lw=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),Jp=e=>to.body.has(e)});var eh,Mw,ro,ki,Je,th,wl,Ci,rh,Ai,Sl,_l,Ei,kl,no,nD,Zt,Bw,Si,Ti,nh,_i,oh,ih,Cl,Al,El,Tl,Ol,Rl,Nw,Pl=X(()=>{Kn();sh();ir();je();eh="production",Mw=e=>e.sourcemap!==!1&&eh!=="production",ro=e=>{if(e.includes("+"))return e.split("+").filter(Yt);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!Yt(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},ki=(e,t,r)=>{let n=[],o=ro(r);o&&(n=[...o]);let i=e.extends;return i&&(n=F(i)?[...n,...i]:[...n,i]),n},Je=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,i=t.context;if(o&&i?.components&&!Array.isArray(e)&&typeof e=="string"){let s=`${e}.${o}`;i.components[s]&&(e=s)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},th=(e,t)=>{if(!e)return t;let{extends:r}=t,n=F(r)?r:[r],o=F(e)?e:[e];return{...t,extends:qn(o,n)}},wl=()=>Math.random().toString(36).substring(2),Ci={},rh={},Ai=e=>Ci[e.__hash],Sl=(e,t)=>{let r=wl();return A(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(Ci[r]=t),t},_l=(e,t)=>e.__hash?t.concat(Ai(e)):Sl(e,t),Ei=(e,t,r,n=new Set,o,i)=>{for(let s of e)F(s)?Ei(s,t,r,n,o,i):no(s,t,r,n,o,void 0,i);return t},kl=(e,t,r,n=new Set,o,i,s)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(i)),a&&no(a,t,r,n,o,i,s),t},no=(e,t,r,n=new Set,o,i,s)=>{if(!e||n.has(e))return t;if(F(e))return Ei(e,t,r,n,o,s);let a=i;return A(e)?(a=e,e=Ti(e,r)):s&&_(e)&&s.has(e)&&(a=s.get(e)),n.add(e),e?.extends?kl(e,t,r,n,o,a,s):e&&(t.push(e),o&&o.push(a)),t},nD=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Zt=(e,t,r,n,o)=>{t=me(t);for(let i in t){if(nD.has(i))continue;let s=e[i],a=t[i];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,i)&&i!=="__proto__"&&i!=="constructor"&&i!=="prototype"){if(s===void 0)e[i]=a,r&&n?_(a)&&!F(a)?(r[i]=r[i]||{},Bw(r[i],a,n)):r[i]=n:r&&o?.[i]&&(r[i]=o[i]);else if(_(s)&&_(a)){let l=r?r[i]=r[i]||{}:void 0,c=o?.[i];Yt(i)?e[i]=Zt(s,a,l,n,c):Zt(s,a,l,n,c)}if(i==="extends"||i==="childExtends"||i==="childExtendsRecursive"){if(F(s)&&F(a))e[i]=s.concat(a);else if(F(s)&&_(a)){let l=Zt({},s);e[i]=Zt(l,a)}}}}return e},Bw=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let i=t[o];_(i)&&!F(i)?(e[o]=e[o]||{},Bw(e[o],i,r,n)):e[o]=r}}},Si=(e,t,r)=>e.reduce((n,o,i)=>{let s=me(o),a=r?r[i]:void 0;return Zt(n,s,t,a)},{}),Ti=(e,t,r={},n)=>{let o=t?.components||r.components,i=t?.pages||r.pages;if(A(e)){let s=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=i&&e.charCodeAt(0)===47&&i[e];if(s)return s;if(a)return a;r.verbose&&(eh==="test"||eh==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},nh=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),_i=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return Ai(e)||[];let o=no(e,[],t,new Set,r,void 0,n);return r?o:_l(e,o)},oh=(e,t)=>{if(!e)return t;let r=F(e)?e:[e];return qn(r,t)},ih=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Yt(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},Cl=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,i=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[s,...a]=e.extends;if(typeof s=="string"&&i&&o?.components){let l=`${s}.${i}`;o.components[l]?Je([l,...a],e):Je(e.extends,e)}else Je(e.extends,e)}else if(typeof e.extends=="string"&&i&&o?.components){let s=`${e.extends}.${i}`;o.components[s]?Je(s,e):Je(e.extends,e)}else Je(e.extends,e);return Al(e,t,r),El(e,t,r),Tl(e,t,r),e.component&&Je(de(e.component,e),e),o.defaultExtends&&Je(o.defaultExtends,e),Gn(n.__extends)},Al=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Je(t.childProps.extends,e),n.__extends},El=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,i=t.childExtends;return!o&&i&&Je(i,e),n.__extends},Tl=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,i=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,s=e.key==="__text";return o&&!s&&!i&&Je(o,e),n.__extends},Ol=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,i=e.variant,s=Mw(r),a=s?[...n.__extends]:null,l=Gn(n.__extends.map((c,u)=>Ti(c,o,r,u===0&&i)));if(s){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&_(p)&&A(h)&&c.set(p,h)}let u=[],d=_i(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=_i(l,o);n.__extendsStack=c}return n.__extendsStack},Rl=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Mw(r)){let i={},s=n.__extendsNames||[],a=Si(o,i,s),l={};Zt(e,a,l,void 0,i),n.__sourcemap=l}else{let i=Si(o);Zt(e,i)}return e},Nw=(e,t,r={})=>(Cl(e,t,r),Ol(e,t,r),Rl(e,t,r),e)});function ah(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function lh(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function ch(e,t,r){let{context:n}=t||{},[o]=ro(r),i=r||o;return n?.components?.[i]||n?.pages?.[i]}var Yt,sh=X(()=>{Pl();je();Yt=e=>{if(!A(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function zw(e,t){let{props:r,on:n}=t,o=rn(e.split("on")[1]),i=n[o],s=r[e];O(i)?n[o]=(...a)=>{if(i(...a)!==!1&&O(s))return s(...a)}:n[o]=s}var Ww=X(()=>{fi();je()});function $l(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(O(o)||o!=null&&Jn(this.context))){let f=rn(n.slice(2));e.on&&(e.on[f]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let i=this.define?.[n],s=this.context?.define?.[n],a=_(i)||O(i),l=_(s)||O(s);if(a||l)continue;let c=n.charAt(0);if(Vw.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=uh.test(n)||Hw.test(n)||iD(o),d=_r.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function Il(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],i=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,s=O(o)||o!=null&&Jn(this.context);if(i&&s){zw(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Vw.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=_(l)||O(l),d=_(c)||O(c),f=uh.test(n)||Hw.test(n),p=_r.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function jl(e=this){let t=[];return $l.call(this,e,{cachedKeys:t}),Il.call(this,e,{cachedKeys:t}),e}function fh(e={}){return e.on||(e.on={}),e.props||(e.props={}),jl.call(this,e)}function ph(e,t){this.__element.update({props:e},t)}function Ii(e){let t={update:ph.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var uh,Hw,Vw,oD,iD,Pi,Oi,dh,$i,ji,Fi,Fl,Ri,hh,gh,mh=X(()=>{Zn();Ww();ir();je();fi();xl();uh=/^[A-Z]/,Hw=/^\d+$/,Vw=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),oD=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),iD=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(oD.has(t)||uh.test(t))return!0;return!1},Pi=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return re(n)?{...n}:(o.__propsStack.push(n),{})};Oi=e=>Ze(e)("string","number")?{inheritedString:e}:e,dh=(e,t)=>!e||!t.length?!1:t.includes(e),$i=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let i=o[e.key],s=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(s&&!a){let l=Oi(s);n.unshift(l)}if(i){let l=Oi(i);n.unshift(l)}return n};ji=e=>{let t=new Set;return e.filter(r=>!r||kr.has(r)||t.has(r)?!1:(t.add(r),!0))},Fi=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(kr.has(o))return n;for(;O(o);)o=de(o,t);return fe(n,me(o,{exclude:kr}))},{}),Ii(t),t.props),Fl=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...$i(e,t)]),_(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),F(n.__extendsStack))for(let i=0;i<n.__extendsStack.length;i++){let s=n.__extendsStack[i];s.props&&s.props!==r&&o.push(s.props)}return n.__propsStack=ji(o),n.__propsStack},Ri=(e,t)=>{let{__ref:r}=e,n=Fl(e,t);n.length?Fi(n,e):(r.__propsStack=[],e.props={})},hh=function(e,t,r){let{__ref:n}=e;if(n.__if)Ri(e,t);else try{Ri(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return Ii(e),e},gh=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],i=$i(t,r);return i.length&&(o=[...i,...o]),e&&(o=[e,...o]),n.__propsStack=ji(o),n.__propsStack.length&&Fi(n.__propsStack,t),t}});var Uw,Dl,Ll,Ml,Bl,yh,Nl,zl,Wl,bh,qw=X(()=>{Pl();bl();oi();mh();Qp();je();Uw="production",Dl=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,i=to.body.has(r)&&r;return{text:e,tag:n||o||i||"string"}},Ll=(e,t,r)=>{if(e===void 0)return(Uw==="test"||Uw==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Ze(e)("string","number")?Dl(e,t,r):O(e)?{props:e}:e},Ml=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},Bl=(e,t,r,n,o)=>{if(!t)return o;if(or(t)){let i={key:":root",node:t};return o[`${r}_parent`]=i,i}return t},yh=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Nl=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},zl=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),Wl=(e,t,r)=>{let n=Ml(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=ki(e,t,r),n.path=Nl(e,t,r),n},bh=(e,t,r,n,o)=>{let i=e?.__hash?{extends:[e]}:Ll(e,t,r);if(!i)return;let s=Bl(i,t,r,n,o),a=xi(i,s,r);Wl(i,s,a);let l=Pi(i,s,a),c=zl(i,s,a,n,o),u=i.on||{};return{...i,key:a,props:l,parent:s,context:c,on:u}}});var vh,Hl,Vl,Ul,ql,xh,Gl,wh,Sh,_h,kh,Gw=X(()=>{Kn();Zn();ir();je();vh=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Ze(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Hl=(e,t)=>{if(e.includes("~/")&&e.split("~/").length>1)return t.root},Vl=(e,t)=>{if(!e.includes("../"))return;let r=e.split("../").length-1;for(let n=0;n<r;n++){if(!t.parent)return null;t=t.parent}return t},Ul=(e,t,r={})=>{let n=A(e)?e.split("/"):[e],o=n.length-1;for(let i=0;i<o;i++){let s=n[i],a=n[i+1];if(s==="__proto__"||a==="__proto__")return;let l=t[s];l||(l=t[s]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},ql=(e,t,r={})=>{let n=e.__ref.__state;if(!Gl(e))return;let o=Hl(n,t.state),i=t.state;if(o)i=o,n=n.replaceAll("~/","");else{let s=Vl(n,t.state);s&&(i=s,n=n.replaceAll("../",""))}if(i)return Ul(n,i,r)},xh=(e,t)=>{let r=e.__ref,n=ql(e,t);if(n===void 0)return e.state;if(Ze(n)("object","array"))return me(n);if(Ze(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Gl=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Ze(r)("number","string","boolean"))},wh=function(e){return re(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},Sh=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,i=r.length-1;for(let s=0;s<=i;s++)o[r[s]]=s===i?t||{}:{},o=o[r[s]];return n},_h=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=me(n,nn),i={[e.key]:o},s=_(n.__depends)?{...n.__depends,...i}:i;return Array.isArray(n)?li(n,{...Object.getPrototypeOf(n),__depends:s}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:s}),o},kh=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){fe(e,t,nn);return}(o?sn:Ye)(e,t,nn)}});var Ch,Kw=X(()=>{Ch=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,i=n?.globalScope;if(!e.scope)o?e.scope=o:i?e.scope=Object.create(i):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let s=o||i;s&&Object.setPrototypeOf(e.scope,s)}}});var Xw,Kl,Er,Xl,Ah,Eh=X(()=>{je();xl();Xw=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Kl=(e,t,r,n,o)=>{if(e=Qn(e,t),!!O(e))try{let i=e.call(t,t,r||t.state,n||t.context,o);return i&&typeof i.then=="function"&&i.catch(s=>{t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",s.message):console.error("[DOMQL] Async event error:",s)}),i}catch(i){if(t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",i.message):console.error("[DOMQL] Event handler error:",i),t.context?.strictMode)throw i}},Er=(e,t,r)=>{if(!t)throw new Error("Element is required");eo(e,t,r);let n=Xw(e,t);if(n){let{state:o,context:i}=t;return Kl(n,t,o,i,r)}},Xl=(e,t,r,n,o,i)=>{if(e=Qn(e,r),!!O(e))try{let s=e.call(r,t,r,n||r.state,o||r.context,i);return s&&typeof s.then=="function"&&s.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),s}catch(s){if(r.error=s,console.error("[DOMQL] Event update error:",s),r.context?.strictMode)throw s}},Ah=(e,t,r,n)=>{eo(e,r,t,n);let o=Xw(e,r);if(o){let{state:i,context:s}=r;return Xl(o,t,r,i,s,n)}}});var Th,Di,Oh=X(()=>{Th={},Di={}});var Jw={};R(Jw,{setup:()=>aD,supabaseAdapter:()=>Yw});var Zw,sD,aD,Rh,lD,Yw,Qw=X(()=>{"use strict";Zw=new Map,sD=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,aD=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:i,adapter:s,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=sD(l,t,o===!1),u=Zw.get(c);return u||(u=await n(l,t,a),u?.auth&&Zw.set(c,u)),!u||!u.auth?null:Yw(u)},Rh=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},lD=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let i of n){let s=typeof i=="string"?i:i.by;e=e.order(s,{ascending:i.asc!==!1})}else{let i=typeof n=="string"?n:n.by;e=e.order(i,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},Yw=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:i,...s})=>{let l=(r?e.schema(r):e).from(t).select(n||"*");if(l=Rh(l,o),l=lD(l,s),i)try{for(let c in i)l.setHeader?l=l.setHeader(c,i[c]):e.rest&&(e.rest.headers[c]=i[c])}catch(c){console.warn("[supabase] setHeader failed:",c.message)}return l},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:i})=>{let a=(r?e.schema(r):e).from(t).update(n);return a=Rh(a,o),a.select(i||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=Rh(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let i=n||"*",s=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:i,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(s)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})});var tS={};R(tS,{restAdapter:()=>eS,setup:()=>uD});var cD,Tr,uD,eS,rS=X(()=>{"use strict";cD=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let i in r){let s=r[i];s!=null&&o.searchParams.set(i,typeof s=="object"?JSON.stringify(s):s)}return o.toString()},Tr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},uD=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return eS(e,t,r,n)},eS=(e,t={},r,n={})=>{let o=r?.token||null,i=u=>{let d={...t,...u};return o&&(d.Authorization=`Bearer ${o}`),d},s=u=>({...i(u),"Content-Type":"application/json"}),a=u=>({...n,...u}),l=(u,d)=>{let f=d||e;if(u&&(u.startsWith("http://")||u.startsWith("https://")))return u;let p=u&&!u.startsWith("/")?"/":"";return`${f}${p}${u||""}`};return{name:"rest",setToken:u=>{o=u},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let u=await Tr(l(r.sessionUrl,r.baseUrl),a({headers:i()}));return u.error?null:u.data},signIn:async u=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let d=await Tr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:s(),body:JSON.stringify(u)}));return d.data?.token&&(o=d.data.token),d},signOut:async()=>(r?.signOutUrl&&await Tr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:i()})),o=null,{error:null}),select:({from:u,params:d,select:f,limit:p,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let x={...d};return f&&(x.select=f),p&&(x.limit=p),h&&(x.offset=h),m&&(x.single=!0),g&&(typeof g=="string"?x.order=g:Array.isArray(g)?x.order=g.map(v=>`${v.by}:${v.asc===!1?"desc":"asc"}`).join(","):g.by&&(x.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),Tr(cD(b||e,u||"",x),a({headers:i(y)}))},rpc:({from:u,params:d,headers:f,baseUrl:p})=>Tr(l(`rpc/${u}`,p),a({method:"POST",headers:s(f),body:JSON.stringify(d)})),insert:({from:u,data:d,headers:f,baseUrl:p})=>Tr(l(u,p),a({method:"POST",headers:s(f),body:JSON.stringify(d)})),update:({from:u,data:d,params:f,method:p,headers:h,baseUrl:g})=>{let m=f?.id||d?.id,y=m?`${u}/${m}`:u;return Tr(l(y,g),a({method:p||"PATCH",headers:s(h),body:JSON.stringify(d)}))},delete:({from:u,params:d,headers:f,baseUrl:p})=>{let h=d?.id,g=h?`${u}/${h}`:u;return Tr(l(g,p),a({method:"DELETE",headers:i(f)}))}}}});var oS={};R(oS,{localAdapter:()=>nS,setup:()=>dD});var Ph,fD,dD,nS,iS=X(()=>{"use strict";Ph=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},fD=(e,{order:t,limit:r,offset:n,single:o})=>{let i=[...e];if(t){let s=typeof t=="string"?t:t.by,a=t.asc!==!1;i.sort((l,c)=>l[s]<c[s]?a?-1:1:l[s]>c[s]?a?1:-1:0)}return n&&(i=i.slice(n)),r&&(i=i.slice(0,r)),o?{data:i[0]||null,error:null}:{data:i,error:null}},dD=async({data:e,...t})=>nS(e,t),nS=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",i=t.prefix||"smbls_db_",s=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(i+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(i+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let h=s(u).filter(g=>Ph(g,d));return fD(h,f)},insert:async({from:u,data:d})=>{let f=s(u),h=(Array.isArray(d)?d:[d]).map(g=>{let m={id:g.id||++c,...g};return f.push(m),m});a(u);for(let g of h)l(u,"INSERT",g,null);return{data:Array.isArray(d)?h:h[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=s(u),h=[];for(let g=0;g<p.length;g++)if(Ph(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=s(u),p=[];for(let h=f.length-1;h>=0;h--)Ph(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}});var Vi={};R(Vi,{createAdapter:()=>mD,default:()=>AD,executeFetch:()=>Hi,fetchPlugin:()=>Dh,initAdapterAuth:()=>Ql,parseDuration:()=>Mi,queryClient:()=>CD,registerAdapter:()=>gD,resolveDb:()=>uS});var pD,hD,Zl,cS,gD,mD,uS,Mi,He,fS,Li,yD,Wi,Bi,Ni,Yl,jh,Jl,bD,sS,$h,dS,pS,oo,aS,vD,lS,xD,ec,hS,Ql,Fh,dt,Rt,zi,ln,Jt,Or,wD,SD,_D,Ih,kD,Hi,CD,Dh,AD,cn=X(()=>{"use strict";D();pD=["select","rpc","insert","update","delete","subscribe"],hD={supabase:()=>Promise.resolve().then(()=>(Qw(),Jw)),rest:()=>Promise.resolve().then(()=>(rS(),tS)),local:()=>Promise.resolve().then(()=>(iS(),oS))},Zl=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),cS=(()=>{if(typeof globalThis<"u"&&globalThis[Zl])return globalThis[Zl];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Zl,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Zl]}catch{}return e})(),gD=(e,t)=>{cS[e]=t},mD=e=>{let t={};for(let r of pD)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},uS=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=cS[n]||hD[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let i=await o();if(!i||typeof i.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(i||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return i.setup(r)},Mi=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},He=new Map,fS=new Map,Li=new Map,yD=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=xD(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Wi=e=>He.get(e)||null,Bi=(e,t,r)=>{let n=He.get(e),o={data:t,error:r,time:Date.now(),stale:!1};He.set(e,o);let i=fS.get(e);if(i)for(let s of i)O(s)&&s(o);return o},Ni=e=>{if(e){let t=He.get(e);t&&(t.stale=!0);return}for(let[,t]of He)t.stale=!0},Yl=e=>{if(e){He.delete(e);return}He.clear()},jh=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:A(e)?{staleTime:Mi(e),gcTime:3e5}:{staleTime:Mi(e.stale||e.staleTime)||6e4,gcTime:Mi(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Jl=null,bD=()=>{Jl||(Jl=setInterval(()=>{let e=Date.now();for(let[t,r]of He){let n=fS.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&He.delete(t)}},3e4),Jl.unref&&Jl.unref())};bD();sS=3,$h=e=>Math.min(1e3*2**e,3e4),dS=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:sS,delay:$h}:typeof t=="number"?{count:t,delay:$h}:{count:t.count??sS,delay:O(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:$h}},pS=async(e,t)=>{let{count:r,delay:n}=t,o;for(let i=0;i<=r;i++)try{let s=await e();if(s?.error){if(o=s.error,i<r){let a=O(n)?n(i,o):n;await new Promise(l=>setTimeout(l,a));continue}return s}return s}catch(s){if(o=s,i<r){let a=O(n)?n(i,s):n;await new Promise(l=>setTimeout(l,a));continue}throw s}return{data:null,error:o}},oo={focus:new Set,online:new Set},aS=!1,vD=()=>{if(aS||typeof window>"u")return;aS=!0;let e=()=>{for(let r of oo.focus)r()},t=()=>{for(let r of oo.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},lS=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(A(e))return{from:e,method:"select",query:!0,on:"create"};if(_(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},xD=e=>(!e||O(e),e),ec=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},hS=(e,t,r)=>{let n;if(!e)n=void 0;else if(O(e))n=e(t,t.state);else{n={};for(let o in e){let i=e[o];n[o]=O(i)?i(t,t.state):i}}return n},Ql=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let i=t.state?.root;i?.update&&i.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Fh=async(e,t)=>{if(O(e.select))return e.auth!==!1&&await Ql(e,t),e;if(e.__resolved)return e.auth!==!1&&await Ql(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=uS(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await Ql(r,t),r):null},dt=(e,t,...r)=>{let n=O(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},Rt=(e,t,r,...n)=>{let o=e&&O(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},zi=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[i,s]of o.entries())t[i]=s;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let i=n[o],s=i.name||i.getAttribute("name");s&&(i.type==="checkbox"?t[s]=i.checked:i.type==="file"?t[s]=i.files:t[s]=i.value)}return t},ln=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),i=o&&e.state?.root||e.state;if(i?.update)if(o){let s=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&s in t?i.update(t,{preventFetch:!0,...n}):i.update({[s]:t},{preventFetch:!0,...n})}else{let s=r?{[r]:t}:t;i.update(s,{preventFetch:!0,...n})}},Jt=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},Or=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||O(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||O(e.skip)&&e.skip(t,t.state))return;let i=await Fh(o,r);if(!i||!t.__ref)return;let s=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:x,headers:v,baseUrl:S,page:k,cursor:E,getNextPageParam:T,getPreviousPageParam:w,infinite:j,placeholderData:K,initialData:Q,select:W,keepPreviousData:H}=e,ee=A(W)?W:void 0;if(c&&O(t.getQuery)){let z=t.getQuery(i.name||"paths");z&&(ee=z.select||z.length&&z.join(",")||ee)}let oe=hS(u,t,r),se=jh(d),qt=dS(e),Jr=ec(t,r),Md=Jr?`:${Jr}`:"",Y=se?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${j?":infinite":""}${k?":p"+JSON.stringify(k):""}${Md}`:null;if(!s.__fetchInitialized&&Y&&(s.__fetchInitialized=!0,Q!==void 0)){let z=O(Q)?Q():Q;Bi(Y,z,null)}if((l==="select"||l==="rpc")&&Y&&se){let z=Wi(Y);if(z&&!z.error){let V=Date.now()-z.time,N=z.stale||V>(se.staleTime||0),U=z.data;if(O(W)&&(U=W(U,t,t.state)),f&&(U=f(U,t,t.state)),ln(t,U,m),!N){Jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(K!==void 0){let V=O(K)?K(t,t.state):K;V!==void 0&&ln(t,V,m)}}if(Y&&Li.has(Y)&&!n.force){let z=Li.get(Y);try{let V=await Promise.race([z,new Promise((N,U)=>setTimeout(()=>U("DEDUP_TIMEOUT"),15e3))]);if(V?.data!==void 0){let N=V.data;O(W)&&(N=W(N,t,t.state)),f&&(N=f(N,t,t.state)),ln(t,N,m),dt(t,"onFetchComplete",N),Rt(e,t,"onFetchComplete",N)}}catch{}return}let Bd=!Wi(Y)?.data;Jt(t,{isFetching:!0,isLoading:Bd,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),dt(t,"onFetchStart"),Rt(e,t,"onFetchStart");let Te=r?.analyze?.emitNetwork,Qr=Te?typeof performance<"u"?performance.now():Date.now():0;Te&&Te({phase:"start",mode:"query",from:a,method:l,cacheKey:Y,lang:Jr});let ue=pS(async()=>{if(h!==!1&&i.auth!==!1&&i.getSession){let U=await i.getSession();if(h===!0&&!U){let Oe={message:"Not authenticated"};return Jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Oe,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",Oe),Rt(e,t,"onFetchError",Oe),{data:null,error:Oe}}}let z=i[l];if(!O(z))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let V={from:a,select:ee,params:oe,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:S},N=ec(t,r);if(N&&(V.headers={...V.headers,"Accept-Language":N}),k!==void 0){if(_(k))k.offset!==void 0&&(V.offset=k.offset),k.limit!==void 0&&(V.limit=k.limit),k.cursor!==void 0&&(V.params={...V.params,cursor:k.cursor});else if(typeof k=="number"){let U=e.pageSize||y||20;V.offset=(k-1)*U,V.limit=U}}if(E!==void 0&&(V.params={...V.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let U;if(g===!0||e.on==="submit")U=zi(t);else if(F(g)){let Oe=zi(t);U={};for(let sl of g)U[sl]=Oe[sl]}else t.state?.parse?U=t.state.parse():_(t.state)&&(U={...t.state});f&&(U=f(U,t,t.state)),V.data=U}if(l==="rpc"){let U=oe;if(e.on==="submit"){let Oe=zi(t);U=e.transformParams?e.transformParams(Oe,t,t.state):Oe}V.params=U}if(l==="subscribe"){let U=i.subscribe({from:a,params:oe,on:e.subscribeOn},(Oe,sl,x6)=>{ln(t,Oe,m),dt(t,"onFetchComplete",Oe),Rt(e,t,"onFetchComplete",Oe)});return s.__unsubscribe=U,{data:null,error:null,subscribed:!0}}return z(V)},qt);Y&&Li.set(Y,ue);try{let z=await ue;if(z?.subscribed)return;let{data:V,error:N}=z||{};if(N){Y&&Bi(Y,null,N),Jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:N,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",N),Rt(e,t,"onFetchError",N),Te&&Te({phase:"error",mode:"query",from:a,method:l,cacheKey:Y,error:N.message||N,durationMs:(typeof performance<"u"?performance.now():Date.now())-Qr});return}if(V!==void 0){if((l==="select"||l==="rpc")&&Y){let Oe=Bi(Y,V,null);Oe.gcTime=se?.gcTime||3e5}let U=V;j&&F(V)&&(s.__pages||(s.__pages=[]),n.direction==="previous"?s.__pages.unshift(V):s.__pages.push(V),U=s.__pages.flat(),T&&(s.__nextPageParam=T(V,s.__pages),s.__hasNextPage=s.__nextPageParam!=null),w&&(s.__prevPageParam=w(V,s.__pages),s.__hasPreviousPage=s.__prevPageParam!=null)),O(W)&&(U=W(U,t,t.state)),f&&(U=f(U,t,t.state)),(!H||U!==void 0)&&ln(t,U,m),Jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),dt(t,"onFetchComplete",U),Rt(e,t,"onFetchComplete",U),Te&&Te({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:Y,durationMs:(typeof performance<"u"?performance.now():Date.now())-Qr})}}catch(z){Jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:z,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",z),Rt(e,t,"onFetchError",z),Te&&Te({phase:"error",mode:"query",from:a,method:l,cacheKey:Y,error:z.message||String(z),durationMs:(typeof performance<"u"?performance.now():Date.now())-Qr})}finally{Y&&Li.delete(Y)}},wD=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let i=e.__runner||Or;if(n==="submit"){let s=l=>{l.preventDefault(),i(e,t,r)},a=t.node;a&&(a.addEventListener("submit",s),o.__fetchListeners.push(()=>a.removeEventListener("submit",s)))}else if(n==="click"){let s=()=>i(e,t,r),a=t.node;a&&(a.addEventListener("click",s),o.__fetchListeners.push(()=>a.removeEventListener("click",s)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>i(e,t,r))},SD=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),vD();let o=e.refetchInterval;if(o){let i=typeof o=="number"?o:Mi(o);if(i>0){let s=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Or(e,t,r,{force:!0})},i);n.__fetchCleanups.push(()=>clearInterval(s))}}if(e.refetchOnWindowFocus!==!1){let i=()=>{let s=ec(t,r),a=yD(e,s),l=Wi(a),c=jh(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&Or(e,t,r,{force:!0})};oo.focus.add(i),n.__fetchCleanups.push(()=>oo.focus.delete(i))}if(e.refetchOnReconnect!==!1){let i=()=>Or(e,t,r,{force:!0});oo.online.add(i),n.__fetchCleanups.push(()=>oo.online.delete(i))}},_D=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,i=e.state?.parse?e.state.parse():_(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=i;let s=O(t.optimistic)?t.optimistic(r,i,e):t.optimistic;return s!==void 0&&ln(e,s,o),i},Ih=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(ln(e,n,t.as),delete r.__optimisticSnapshot)},kD=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await Fh(n,r);if(!o)return;let i=t.__ref,{method:s,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:v}=e,S;if(l===!0||d==="submit")S=zi(t);else if(F(l)){let w=zi(t);S={};for(let j of l)S[j]=w[j]}else t.state?.parse?S=t.state.parse():_(t.state)&&(S={...t.state});c&&(S=c(S,t,t.state)),O(y)&&y(S,t,t.state);let k=m?_D(t,e,S):null;i.__fetching=!0,Jt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),dt(t,"onFetchStart"),Rt(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,T=E?typeof performance<"u"?performance.now():Date.now():0;E&&E({phase:"start",mode:"mutation",from:a,method:s});try{if(f!==!1&&o.auth!==!1&&o.getSession){let oe=await o.getSession();if(f===!0&&!oe){k!==void 0&&Ih(t,e);let se={message:"Not authenticated"};dt(t,"onFetchError",se),Rt(e,t,"onFetchError",se);return}}let w=o[s];if(!O(w))return;let j={from:a,data:S,headers:p,baseUrl:h};e.params&&(j.params=hS(e.params,t,r));let K=ec(t,r);K&&(j.headers={...j.headers,"Accept-Language":K});let Q=dS(e),W=await pS(()=>w(j),Q),{data:H,error:ee}=W||{};if(ee){k!==void 0&&Ih(t,e),Jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ee,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",ee),O(x)&&x(ee,S,t),O(v)&&v(null,ee,S,t),E&&E({phase:"error",mode:"mutation",from:a,method:s,error:ee.message||String(ee),durationMs:(typeof performance<"u"?performance.now():Date.now())-T});return}if(delete i.__optimisticSnapshot,H!==void 0){let oe=u?{[u]:H}:H;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(Jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),dt(t,"onFetchComplete",H),Rt(e,t,"onFetchComplete",H),O(b)&&b(H,S,t),O(v)&&v(H,null,S,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:s,durationMs:(typeof performance<"u"?performance.now():Date.now())-T}),g){let oe=F(g)?g:[g];for(let se of oe)if(se===!0||se==="*")for(let[qt]of He)qt.startsWith(a+":")&&Ni(qt);else Ni(se)}}catch(w){k!==void 0&&Ih(t,e),Jt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:w,status:"error",fetchStatus:"idle"}),dt(t,"onFetchError",w),Rt(e,t,"onFetchError",w),O(x)&&x(w,S,t),O(v)&&v(null,w,S,t),E&&E({phase:"error",mode:"mutation",from:a,method:s,error:w.message||String(w),durationMs:(typeof performance<"u"?performance.now():Date.now())-T})}finally{i.__fetching=!1}},Hi=(e,t,r,n)=>{if(!e||!n?.fetch)return;let i=de(e,t);if(!i)return;let s=F(i)?i.map(l=>lS(de(l,t),t)).filter(Boolean):[lS(i,t)].filter(Boolean);for(let l of s){let c=l.method==="insert"||l.method==="update"||l.method==="upsert"||l.method==="delete",u=c?kD:Or;l.on==="create"?u(l,t,n):Promise.resolve().then(()=>{wD({...l,__runner:u},t,n)}),!c&&l.on==="create"&&(l.refetchInterval||l.refetchOnWindowFocus!==!1||l.refetchOnReconnect!==!1)&&SD(l,t,n)}let a=t.__ref;a.refetch=l=>{for(let c of s)Or(c,t,n,{force:!0,...l})},a.fetchNextPage=()=>{let l=s[0];if(!l||!l.infinite)return;let c=a.__nextPageParam;if(c==null)return;let u={...l,cursor:c};Or(u,t,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let l=s[0];if(!l||!l.infinite)return;let c=a.__prevPageParam;if(c==null)return;let u={...l,cursor:c};Or(u,t,n,{direction:"previous",force:!0})}},CD={invalidateQueries:e=>{if(!e){Ni();return}if(A(e))for(let[t]of He)(t.startsWith(e)||t.includes(e))&&Ni(t);else if(F(e)){let t=e.join(":");for(let[r]of He)r.includes(t)&&Ni(r)}},removeQueries:e=>{if(!e){Yl();return}if(A(e))for(let[t]of He)(t.startsWith(e)||t.includes(e))&&Yl(t)},getQueryData:e=>Wi(e)?.data??void 0,setQueryData:(e,t)=>{let r=Wi(e),n=O(t)?t(r?.data):t;Bi(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await Fh(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,i=n[e.method||"select"];if(!O(i))return;let s=await i({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(s?.data!==void 0&&!s?.error){let a=Bi(o,s.data,null);a.gcTime=jh(e.cache)?.gcTime||3e5}return s},getCache:()=>He,clear:()=>Yl(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of He)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||Yl(r))}},Dh={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Li.clear(),Hi(t,e,e.state,e.context))}},AD=Hi});function qi(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function Mh(e){let t=this,{parent:r}=t;if(O(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function Bh(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let i=n[o],s=t[i];if(i===e)return s;if(O(e)){let l=e(s,s.state,s.context);if(s.state&&l)return s}let a=s?.lookdown?.(e);if(a)return a}}function Nh(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let i=0;i<o.length;i++){let s=o[i],a=r[s];if(s===e)t.push(a);else if(O(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function tc(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(_(n)&&o)tc.call(o,n);else if(n!=null){let i=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),s=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(i,s,"important")}}return t}}function mS(e){let t=this;if(Er("beforeRemove",t,e)===!1)return t;O(t.node.remove)?t.node.remove():Cr()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=ai(t.parent.__ref.__children,t.key)),Er("remove",t,e)}function zh(e){return this[e]}function Wh(e,t){let r=this;if(e)return r.update(e,t),r}function Hh(e){return e?this.__ref&&this.__ref[e]:this.__ref}function Gi(){return this.getRef("__children").map(e=>this[e])}function Ki(){return this.getRef().path}function Zi(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=gS();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=O(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=gS()),e?t?.[e]:t}function Yi(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function Ji(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function Qi(e){let t=this.getRoot()?.context;return e?t[e]:t}function es(e){let t=this.context;return e?t[e]:t}function rc(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||_r.has(r)&&!di.has(r)||t.push(r);return t}function nc(e=[]){let t=this,r={},n=rc.call(t),o=n.includes("children"),i=e.length?new Set(e):null;for(let s=0;s<n.length;s++){let a=n[s];if(i&&i.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=O(l&&l.parse)?l.parse():l;r[a]=O(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else Ne(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Ui(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=nc.call(r,e),o=e.length?new Set(e):null;for(let i in n){if(o&&o.has(i)||!Object.prototype.hasOwnProperty.call(r,i))continue;let s=n[i];Array.isArray(s)?n[i]=s.map(a=>re(a)?Ui.call(a,e,t):a):re(s)&&(n[i]=Ui.call(s,e,t))}return n}function io(...e){if(Rr!=="test"&&Rr!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
16
- `,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(n=>console.log(`%c${n}:`,"font-weight: bold",t[n]))),console.log(t),console.groupEnd(t.key),t}function Uh(...e){(Rr==="test"||Rr==="development")&&console.log(...e)}function ts(...e){(Rr==="test"||Rr==="development")&&console.warn(...e)}function un(...e){if(Rr==="test"||Rr==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&io.call(this),new Error(...e)}}function rs(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),i=n[o+1];return r[i]}function ns(e){let t=e||this,{key:r,parent:n}=t,{__children:o}=n.__ref;if(!o)return;let i=o.indexOf(r);return n[o[i-1]]}function os(e={}){let t=this;t.data||(t.data={}),t.data.varCaches||(t.data.varCaches={});let r=t.data.varCaches,n={},o;for(let i in e)e[i]!==r[i]&&(o=!0,n[i]=e[i]);return{changed:i=>{if(!o)return;let s=i(n,me(r));for(let a in n)r[a]=n[a];return s},timeout:(i,s)=>{if(!o)return;let a=setTimeout(()=>{i(n),clearTimeout(a)},s)}}}function qh(e,...t){let r=this.context,n=r.utils?.[e]||r.functions?.[e]||r.methods?.[e]||r.snippets?.[e];if(n)try{let o=n.call(this,...t);return o&&typeof o.then=="function"&&o.catch(i=>{un.call(this,i)}),o}catch(o){if(un.call(this,o),r?.strictMode)throw o}}async function is(){let e=this,t=e.context?.fetch;if(!t)return null;if(typeof t.select=="function"){if(!t.__authInitialized&&t.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(cn(),Vi));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(cn(),Vi));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(cn(),Vi)).then(({resolveDb:o})=>o(t));t.__resolving=r;let n=await r;if(t.__resolved=n,e.context.fetch=n,delete t.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(cn(),Vi));await o(n,e.context)}return n}function ss(e){let t=this,r=e||Di.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(Lh(t,n),r===!0)return n;let o=jD[r];return o?o(n):n}function Gh(e,t){return!!(Xn.has(e)||t?.context?.methods?.[e])}var Rr,yS,Xi,gS,Vh,Lh,ED,bS,TD,OD,RD,PD,$D,ID,jD,vS=X(()=>{Eh();Zn();je();ir();Mp();Kn();Oh();Rr="production";yS=null,Xi=e=>{yS=e||null},gS=()=>yS||null;Vh=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n});Lh=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&ED(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&Lh(l,t)}let i=r.contentElementKey||"content",s=e[i];s&&s.__ref&&Lh(s,t)},ED=(e,t)=>{let r=t.replaceAll("../","").replaceAll("~/","").split("/"),n=e;for(let o=0;o<r.length;o++){let i=r[o];o===r.length-1?n[i]||(n[i]=!0):(n[i]===!0&&(n[i]={}),n[i]||(n[i]={}),n=n[i])}},bS=(e,t=0)=>{let r=" ".repeat(t),n=Object.entries(e);return n.length?n.map(([o,i])=>i===!0?`${r}${o}`:`${r}${o} {
17
- ${bS(i,t+1)}
8
+ `;o+=`${n} ]`}else re(i)?o+=cs(i,t+1):k(i)?o+=os(i,[`
9
+ `,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
10
+ `}return o+=`${n}}`,o},a2=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],l2=/^["[{]/,c2=/^(export|import)\s/,Un=e=>{if(!e)return!1;let t=e.trim().replace(/\n\s*/g," ").trim();if(t===""||t==="{}"||t==="[]"||c2.test(t)||!a2.some(s=>s.test(t)))return!1;let n=t.charCodeAt(0),o=t.includes("=>");return!(n===123&&!o||n===91||l2.test(t)&&!o)},u2=e=>(0,eval)(e),f2=(e,t)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(e);if(!r)return null;let n=r[0].length,o=[],s=n,i=1,a=null,l=e.length,c=new RegExp("^(?:const|let|var)\\s+"+t+"\\b");for(;s<l&&i>0;){let d=e[s];if(d==="/"&&e[s+1]==="/"){let f=e.indexOf(`
11
+ `,s);s=f===-1?l:f;continue}if(d==="/"&&e[s+1]==="*"){let f=e.indexOf("*/",s+2);s=f===-1?l:f+2;continue}if(d==='"'||d==="'"||d==="`"){let f=d;for(s++;s<l;){if(e[s]==="\\"){s+=2;continue}if(e[s]===f){s++;break}if(f==="`"&&e[s]==="$"&&e[s+1]==="{"){s+=2;let p=1;for(;s<l&&p>0;)e[s]==="{"?p++:e[s]==="}"&&p--,s++;continue}s++}continue}if(d==="{"){i++,s++;continue}if(d==="}"){i--,s++;continue}if(i===1&&c.test(e.slice(s))){let f=s,p=0,h=s;for(;h<l;){let g=e[h];if(g==='"'||g==="'"||g==="`"){let m=g;for(h++;h<l;){if(e[h]==="\\"){h+=2;continue}if(e[h]===m){h++;break}h++}continue}if(g==="("||g==="["||g==="{"){p++,h++;continue}if(g===")"||g==="]"||g==="}"){if(p===0)break;p--,h++;continue}if(p===0&&(g===";"||g===`
12
+ `)){h++;break}h++}o.push([f,h]),s=h;continue}s++}if(!o.length)return null;let u=e;for(let d=o.length-1;d>=0;d--)u=u.slice(0,o[d][0])+u.slice(o[d][1]);return u},F0=(e,t,r)=>{try{return r.window.eval(`(${e})`)}catch(n){let o=n&&n.message?n.message:String(n),s=/await is only valid in async/.test(o),i=/Identifier '([^']+)' has already been declared/.exec(o),a=null;if(s){let l=String(e).trim();if(/^function[\s(]/.test(l))try{a=r.window.eval("(async "+l+")")}catch{}}else if(i){let l=String(e),c=i[1];for(let u=0;u<5;u++){let d=f2(l,c);if(!d||d===l)break;l=d;try{a=r.window.eval("("+l+")");break}catch(f){let p=/Identifier '([^']+)' has already been declared/.exec(f&&f.message||String(f));if(!p||p[1]!==c)break}}}return a||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${t} \u2014 value will be left as a string. Reason: `+o+`.
13
+ First 200 chars of source: `+String(e).slice(0,200)),e)}},Wt=(e,t={},r={window:{eval:u2}})=>{if(!e||typeof e!="object")return t;let n=[[e,t]];for(;n.length;){let[o,s]=n.pop();for(let i in o){if(!Object.prototype.hasOwnProperty.call(o,i))continue;let a=o[i];if(k(a))Un(a)?s[i]=F0(a,`"${i}"`,r):s[i]=a;else if(P(a)){let l=s[i]=[];for(let c=0;c<a.length;c++){let u=a[c];if(k(u))l.push(Un(u)?F0(u,`array index ${c} (prop "${i}")`,r):u);else if(S(u)){let d={};l.push(d),n.push([u,d])}else l.push(u)}}else if(S(a)){let l=s[i]&&typeof s[i]=="object"&&!P(s[i])?s[i]:s[i]={};n.push([a,l])}else s[i]=a}}return t},d2="Set",p2="Map",h2=e=>!e||typeof e!="object"?e:e.__type===d2&&Array.isArray(e.values)?new Set(e.values):e.__type===p2&&Array.isArray(e.entries)?new Map(e.entries):e,us=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];k(o)&&Un(o)?r.push([n,o]):t[n]=h2(o)}for(let[n,o]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
14
+ `);t[n]=A.eval(`(function(__gs__) { ${s}
15
+ return (${o}); })`)(t)}catch{try{t[n]=A.eval(`(${o})`)}catch{t[n]=o}}return t},ap=(e,t={verbose:!0})=>{try{return e?A.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},lp=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),cl=e=>{for(let t in e)return!1;return!0},cp=e=>S(e)&&cl(e),up=()=>Object.create(null),fs=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&tn(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},rn=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)tn(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Ke=(e,t,r={},n=new WeakMap)=>{if(!re(e)||!re(t)||He(e)||He(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&tn(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];He(c)?e[a]=c:re(l)&&re(c)?e[a]=Ke(l,c,r,n):c!==void 0&&(e[a]=c)}return e},ul=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!ul(e[i],t[i],r))return!1}return!0},g2=new Set(["node","__ref"]),fp=(e,t,r=g2)=>{if(e===t)return!0;if(!re(e)||!re(t)||He(e)||He(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(i,l))return!1;let c=a[l],u=i[l];if(He(c)||He(u)){if(c!==u)return!1}else if(re(c)&&re(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},dp=(e,t)=>{if(t==null)return e;if(Ge(t)("string","number"))delete e[t];else if(P(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},fl=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=fl(e[r]));return t},pp=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},hp=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},gp=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},mp=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},yp=e=>{let r=[],n=0;for(let o=0;o<e.length;o++)if(r.length<2)r.push(e[o]);else if(e[o]===r[o%2]?n++:(r=[e[o-1],e[o]],n=1),n>=20)return(I0==="test"||I0==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},bp=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},xp=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}});var ds,ps,hs,dl=G(()=>{"use strict";nr();ds=(function(){let e=0;function t(){return e++,e}return t})(),ps=ds,hs=(e,t,r)=>(de(r,e)||r||e.key||ds()).toString()});var St,vp,wr,pl,_p,wp,Sp,Sr,kp,nn,Cp=G(()=>{"use strict";St="production",vp=St,wr=(e=St)=>e==="production",pl=(e=St)=>e==="testing"||e==="test",_p=pl,wp=(e=St)=>e==="staging",Sp=(e=St)=>e==="local",Sr=(e=St)=>e==="development"||e==="dev"||e==="local",kp=(e,t=St)=>t[e],nn=(e=St)=>!wr(e)});function gs(e,t,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||e.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,t),a&&e.apply(o,s)}}function Tp(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Ap,Ep,m2,Op,Wn,Hn,kt,qn=G(()=>{"use strict";Ap=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Ep=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},m2=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Op=e=>m2.test(e),Wn=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Hn=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},kt=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o}});var Rp,D0=G(()=>{"use strict";Ie();nr();Rp=(e,t)=>{let{__ref:r}=e,n=e.if;if(O(n)){let o;try{o=n(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?de(n,e)?r.__if=!0:delete r.__if:r.__if=!0}});var Pp,$p,L0=G(()=>{"use strict";Pp=(e,...t)=>{e&&t.map(r=>console.log(r))},$p=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function Lp(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function Mp(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var Ip,Fp,jp,Dp,M0=G(()=>{"use strict";Ie();Yo();Ip=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Fp=(e,t,r=365)=>{if($e(pe)||$e(pe.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;pe.cookie=`${e}=${t};${o};path=/`},jp=e=>{if($e(pe)||$e(pe.cookie))return;let t=`${e}=`,n=decodeURIComponent(pe.cookie).split(";");for(let o=0;o<n.length;o++){let s=n[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return""},Dp=e=>{$e(pe)||$e(pe.cookie)||(pe.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Gn,N0,Np,Bp=G(()=>{"use strict";Gn={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},N0=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),Np=e=>Gn.body.has(e)});var Vp,B0,Kn,bs,Xe,zp,hl,xs,Up,vs,gl,ml,_s,yl,Xn,y2,Ht,V0,ms,ws,Wp,ys,Hp,qp,bl,xl,vl,_l,wl,Sl,z0,kl=G(()=>{"use strict";Bn();Gp();nr();Ie();Vp="production",B0=e=>e.sourcemap!==!1&&Vp!=="production",Kn=e=>{if(e.includes("+"))return e.split("+").filter(qt);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!qt(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},bs=(e,t,r)=>{let n=[],o=Kn(r);o&&(n=[...o]);let s=e.extends;return s&&(n=P(s)?[...n,...s]:[...n,s]),n},Xe=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},zp=(e,t)=>{if(!e)return t;let{extends:r}=t,n=P(r)?r:[r],o=P(e)?e:[e];return{...t,extends:Mn(o,n)}},hl=()=>Math.random().toString(36).substring(2),xs={},Up={},vs=e=>xs[e.__hash],gl=(e,t)=>{let r=hl();return k(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(xs[r]=t),t},ml=(e,t)=>e.__hash?t.concat(vs(e)):gl(e,t),_s=(e,t,r,n=new Set,o,s)=>{for(let i of e)P(i)?_s(i,t,r,n,o,s):Xn(i,t,r,n,o,void 0,s);return t},yl=(e,t,r,n=new Set,o,s,i)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(s)),a&&Xn(a,t,r,n,o,s,i),t},Xn=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(P(e))return _s(e,t,r,n,o,i);let a=s;return k(e)?(a=e,e=ws(e,r)):i&&S(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?yl(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},y2=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Ht=(e,t,r,n,o)=>{t=ge(t);for(let s in t){if(y2.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&n?S(a)&&!P(a)?(r[s]=r[s]||{},V0(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(S(i)&&S(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];qt(s)?e[s]=Ht(i,a,l,n,c):Ht(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(P(i)&&P(a))e[s]=i.concat(a);else if(P(i)&&S(a)){let l=Ht({},i);e[s]=Ht(l,a)}}}}return e},V0=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=t[o];S(s)&&!P(s)?(e[o]=e[o]||{},V0(e[o],s,r,n)):e[o]=r}}},ms=(e,t,r)=>e.reduce((n,o,s)=>{let i=ge(o),a=r?r[s]:void 0;return Ht(n,i,t,a)},{}),ws=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(k(e)){let i=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Vp==="test"||Vp==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Wp=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),ys=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return vs(e)||[];let s=Xn(e,[],t,new Set,r,void 0,n);return r?s:ml(e,s)},Hp=(e,t)=>{if(!e)return t;let r=P(e)?e:[e];return Mn(r,t)},qp=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(qt(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},bl=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&o?.components){let l=`${i}.${s}`;o.components[l]?Xe([l,...a],e):Xe(e.extends,e)}else Xe(e.extends,e)}else if(typeof e.extends=="string"&&s&&o?.components){let i=`${e.extends}.${s}`;o.components[i]?Xe(i,e):Xe(e.extends,e)}else Xe(e.extends,e);return xl(e,t,r),vl(e,t,r),_l(e,t,r),e.component&&Xe(de(e.component,e),e),o.defaultExtends&&Xe(o.defaultExtends,e),Nn(n.__extends)},xl=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Xe(t.childProps.extends,e),n.__extends},vl=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Xe(s,e),n.__extends},_l=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return o&&!i&&!s&&Xe(o,e),n.__extends},wl=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=B0(r),a=i?[...n.__extends]:null,l=Nn(n.__extends.map((c,u)=>ws(c,o,r,u===0&&s)));if(i){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&S(p)&&k(h)&&c.set(p,h)}let u=[],d=ys(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=ys(l,o);n.__extendsStack=c}return n.__extendsStack},Sl=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(B0(r)){let s={},i=n.__extendsNames||[],a=ms(o,s,i),l={};Ht(e,a,l,void 0,s),n.__sourcemap=l}else{let s=ms(o);Ht(e,s)}return e},z0=(e,t,r={})=>(bl(e,t,r),wl(e,t,r),Sl(e,t,r),e)});function Kp(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function Xp(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function Yp(e,t,r){let{context:n}=t||{},[o]=Kn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var qt,Gp=G(()=>{"use strict";kl();Ie();qt=e=>{if(!k(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function U0(e,t){let{props:r,on:n}=t,o=Qr(e.split("on")[1]),s=n[o],i=r[e];O(s)?n[o]=(...a)=>{if(s(...a)!==!1&&O(i))return i(...a)}:n[o]=i}var W0=G(()=>{"use strict";ss();Ie()});function Cl(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(O(o)||o!=null&&Wn(this.context))){let h=Qr(n.slice(2));e.on&&(e.on[h]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let a=this.define?.[n],l=this.context?.define?.[n],c=S(a)||O(a),u=S(l)||O(l);if(c||u)continue;let d=n.charAt(0);if(q0.has(d)){e.props[n]=o,delete e[n],r.push(n);continue}let f=Jp.test(n)||H0.test(n)||x2(o),p=vr.has(n);!f&&!p&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function Al(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=O(o)||o!=null&&Wn(this.context);if(s&&i){U0(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(q0.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=S(l)||O(l),d=S(c)||O(c),f=Jp.test(n)||H0.test(n),p=vr.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function El(e=this){let t=[];return Cl.call(this,e,{cachedKeys:t}),Al.call(this,e,{cachedKeys:t}),e}function Zp(e={}){return e.on||(e.on={}),e.props||(e.props={}),El.call(this,e)}function eh(e,t){this.__element.update({props:e},t)}function Es(e){let t={update:eh.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Jp,H0,q0,b2,x2,Cs,Ss,Qp,As,Os,Ts,Ol,ks,th,rh,nh=G(()=>{"use strict";zn();W0();nr();Ie();ss();qn();Jp=/^[A-Z]/,H0=/^\d+$/,q0=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),b2=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),x2=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(b2.has(t)||Jp.test(t))return!0;return!1},Cs=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return re(n)?{...n}:(o.__propsStack.push(n),{})};Ss=e=>Ge(e)("string","number")?{inheritedString:e}:e,Qp=(e,t)=>!e||!t.length?!1:t.includes(e),As=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let s=o[e.key],i=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let l=Ss(i);n.unshift(l)}if(s){let l=Ss(s);n.unshift(l)}return n};Os=e=>{let t=new Set;return e.filter(r=>!r||_r.has(r)||t.has(r)?!1:(t.add(r),!0))},Ts=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(_r.has(o))return n;for(;O(o);)o=de(o,t);return fe(n,ge(o,{exclude:_r}))},{}),Es(t),t.props),Ol=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...As(e,t)]),S(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),P(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Os(o),n.__propsStack},ks=(e,t)=>{let{__ref:r}=e,n=Ol(e,t);n.length?Ts(n,e):(r.__propsStack=[],e.props={})},th=function(e,t,r){let{__ref:n}=e;if(n.__if)ks(e,t);else try{ks(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return Es(e),e},rh=(e,t,r)=>{let{__ref:n}=t,s=[...n.__propsStack||[]],i=As(t,r);return i.length&&(s=[...i,...s]),e&&(s=[e,...s]),n.__propsStack=Os(s),n.__propsStack.length&&Ts(n.__propsStack,t),t}});var G0,Tl,Rl,Pl,$l,oh,Il,Fl,jl,sh,K0=G(()=>{"use strict";kl();dl();Zo();nh();Bp();Ie();G0="production",Tl=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Gn.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},Rl=(e,t,r)=>{if(e===void 0)return(G0==="test"||G0==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Ge(e)("string","number")?Tl(e,t,r):O(e)?{props:e}:e},Pl=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},$l=(e,t,r,n,o)=>{if(!t)return o;if(rr(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},oh=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Il=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},Fl=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),jl=(e,t,r)=>{let n=Pl(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=bs(e,t,r),n.path=Il(e,t,r),n},sh=(e,t,r,n,o)=>{let i=e?.__hash?{extends:[e]}:Rl(e,t,r);if(!i)return;let a=$l(i,t,r,n,o),l=hs(i,a,r);jl(i,a,l);let c=Cs(i,a,l),u=Fl(i,a,l,n,o),d=i.on||{};return{...i,key:l,props:c,parent:a,context:u,on:d}}});var ih,Dl,Ll,Ml,Nl,ah,Bl,lh,ch,uh,fh,X0=G(()=>{"use strict";Bn();zn();nr();Ie();ih=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Ge(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Dl=(e,t)=>{if(!e.includes("~/"))return;if(e.split("~/").length>1)return t.root},Ll=(e,t)=>{if(!e.includes("../"))return;let n=e.split("../").length-1;for(let o=0;o<n;o++){if(!t.parent)return null;t=t.parent}return t},Ml=(e,t,r={})=>{let n=k(e)?e.split("/"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Nl=(e,t,r={})=>{let o=e.__ref.__state;if(!Bl(e))return;let s=Dl(o,t.state),i=t.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Ll(o,t.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return Ml(o,i,r)},ah=(e,t)=>{let r=e.__ref,n=Nl(e,t);if(n===void 0)return e.state;if(Ge(n)("object","array"))return ge(n);if(Ge(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Bl=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Ge(r)("number","string","boolean"))},lh=function(e){return re(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},ch=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?t||{}:{},o=o[r[i]];return n},uh=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=ge(n,en),s={[e.key]:o},i=S(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?rs(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},fh=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){fe(e,t,en);return}(o?rn:Ke)(e,t,en)}});var dh,Y0=G(()=>{"use strict";dh=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,s=n?.globalScope;if(!e.scope)o?e.scope=o:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(e.scope,i)}}});var J0,Vl,kr,zl,ph,hh=G(()=>{"use strict";Ie();qn();J0=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Vl=(e,t,r,n,o)=>{if(e=Hn(e,t),!!O(e))try{let s=e.call(t,t,r||t.state,n||t.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},kr=(e,t,r)=>{if(!t)throw new Error("Element is required");kt(e,t,r);let n=J0(e,t);if(n){let{state:o,context:s}=t;return Vl(n,t,o,s,r)}},zl=(e,t,r,n,o,s)=>{if(e=Hn(e,r),!!O(e))try{let i=e.call(r,t,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},ph=(e,t,r,n)=>{kt(e,r,t,n);let o=J0(e,r);if(o){let{state:s,context:i}=r;return zl(o,t,r,s,i,n)}}});var gh,Rs,mh=G(()=>{"use strict";gh={},Rs={}});var e_={};K(e_,{setup:()=>_2,supabaseAdapter:()=>Q0});var Z0,v2,_2,yh,w2,Q0,t_=G(()=>{"use strict";Z0=new Map,v2=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,_2=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=v2(l,t,o===!1),u=Z0.get(c);return u||(u=await n(l,t,a),u?.auth&&Z0.set(c,u)),!u||!u.auth?null:Q0(u)},yh=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},w2=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;e=e.order(s,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},Q0=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:s,...i})=>{let l=(r?e.schema(r):e).from(t).select(n||"*");if(l=yh(l,o),l=w2(l,i),s)try{for(let c in s)l.setHeader?l=l.setHeader(c,s[c]):e.rest&&(e.rest.headers[c]=s[c])}catch(c){console.warn("[supabase] setHeader failed:",c.message)}return l},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:s})=>{let a=(r?e.schema(r):e).from(t).update(n);return a=yh(a,o),a.select(s||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=yh(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})});var n_={};K(n_,{restAdapter:()=>r_,setup:()=>k2});var S2,Cr,k2,r_,o_=G(()=>{"use strict";S2=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},Cr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},k2=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return r_(e,t,r,n)},r_=(e,t={},r,n={})=>{let o=r?.token||null,s=u=>{let d={...t,...u};return o&&(d.Authorization=`Bearer ${o}`),d},i=u=>({...s(u),"Content-Type":"application/json"}),a=u=>({...n,...u}),l=(u,d)=>{let f=d||e;if(u&&(u.startsWith("http://")||u.startsWith("https://")))return u;let p=u&&!u.startsWith("/")?"/":"";return`${f}${p}${u||""}`};return{name:"rest",setToken:u=>{o=u},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let u=await Cr(l(r.sessionUrl,r.baseUrl),a({headers:s()}));return u.error?null:u.data},signIn:async u=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let d=await Cr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(u)}));return d.data?.token&&(o=d.data.token),d},signOut:async()=>(r?.signOutUrl&&await Cr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:u,params:d,select:f,limit:p,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let v={...d};return f&&(v.select=f),p&&(v.limit=p),h&&(v.offset=h),m&&(v.single=!0),g&&(typeof g=="string"?v.order=g:Array.isArray(g)?v.order=g.map(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):g.by&&(v.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),Cr(S2(b||e,u||"",v),a({headers:s(y)}))},rpc:({from:u,params:d,headers:f,baseUrl:p})=>Cr(l(`rpc/${u}`,p),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),insert:({from:u,data:d,headers:f,baseUrl:p})=>Cr(l(u,p),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),update:({from:u,data:d,params:f,method:p,headers:h,baseUrl:g})=>{let m=f?.id||d?.id,y=m?`${u}/${m}`:u;return Cr(l(y,g),a({method:p||"PATCH",headers:i(h),body:JSON.stringify(d)}))},delete:({from:u,params:d,headers:f,baseUrl:p})=>{let h=d?.id,g=h?`${u}/${h}`:u;return Cr(l(g,p),a({method:"DELETE",headers:s(f)}))}}}});var i_={};K(i_,{localAdapter:()=>s_,setup:()=>A2});var bh,C2,A2,s_,a_=G(()=>{"use strict";bh=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},C2=(e,{order:t,limit:r,offset:n,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((l,c)=>l[i]<c[i]?a?-1:1:l[i]>c[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},A2=async({data:e,...t})=>s_(e,t),s_=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(s+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(s+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let h=i(u).filter(g=>bh(g,d));return C2(h,f)},insert:async({from:u,data:d})=>{let f=i(u),h=(Array.isArray(d)?d:[d]).map(g=>{let m={id:g.id||++c,...g};return f.push(m),m});a(u);for(let g of h)l(u,"INSERT",g,null);return{data:Array.isArray(d)?h:h[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=i(u),h=[];for(let g=0;g<p.length;g++)if(bh(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=i(u),p=[];for(let h=f.length-1;h>=0;h--)bh(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}});var Ms={};K(Ms,{createAdapter:()=>R2,default:()=>B2,executeFetch:()=>Ls,fetchPlugin:()=>Sh,initAdapterAuth:()=>ql,parseDuration:()=>$s,queryClient:()=>N2,registerAdapter:()=>T2,resolveDb:()=>d_});var E2,O2,Ul,f_,T2,R2,d_,$s,Be,p_,Ps,P2,Ds,Is,Fs,Wl,_h,Hl,$2,l_,xh,h_,g_,Yn,c_,I2,u_,F2,Gl,m_,ql,wh,ct,Ct,js,on,Gt,Ar,j2,D2,L2,vh,M2,Ls,N2,Sh,B2,sn=G(()=>{"use strict";D();E2=["select","rpc","insert","update","delete","subscribe"],O2={supabase:()=>Promise.resolve().then(()=>(t_(),e_)),rest:()=>Promise.resolve().then(()=>(o_(),n_)),local:()=>Promise.resolve().then(()=>(a_(),i_))},Ul=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),f_=(()=>{if(typeof globalThis<"u"&&globalThis[Ul])return globalThis[Ul];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Ul,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ul]}catch{}return e})(),T2=(e,t)=>{f_[e]=t},R2=e=>{let t={};for(let r of E2)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},d_=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=f_[n]||O2[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},$s=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},Be=new Map,p_=new Map,Ps=new Map,P2=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=F2(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Ds=e=>Be.get(e)||null,Is=(e,t,r)=>{let n=Be.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Be.set(e,o);let s=p_.get(e);if(s)for(let i of s)O(i)&&i(o);return o},Fs=e=>{if(e){let t=Be.get(e);t&&(t.stale=!0);return}for(let[,t]of Be)t.stale=!0},Wl=e=>{if(e){Be.delete(e);return}Be.clear()},_h=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:k(e)?{staleTime:$s(e),gcTime:3e5}:{staleTime:$s(e.stale||e.staleTime)||6e4,gcTime:$s(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Hl=null,$2=()=>{Hl||(Hl=setInterval(()=>{let e=Date.now();for(let[t,r]of Be){let n=p_.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Be.delete(t)}},3e4),Hl.unref&&Hl.unref())};$2();l_=3,xh=e=>Math.min(1e3*2**e,3e4),h_=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:l_,delay:xh}:typeof t=="number"?{count:t,delay:xh}:{count:t.count??l_,delay:O(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:xh}},g_=async(e,t)=>{let{count:r,delay:n}=t,o;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(o=i.error,s<r){let a=O(n)?n(s,o):n;await new Promise(l=>setTimeout(l,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=O(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},Yn={focus:new Set,online:new Set},c_=!1,I2=()=>{if(c_||typeof window>"u")return;c_=!0;let e=()=>{for(let r of Yn.focus)r()},t=()=>{for(let r of Yn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},u_=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(k(e))return{from:e,method:"select",query:!0,on:"create"};if(S(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},F2=e=>(!e||O(e),e),Gl=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},m_=(e,t,r)=>{let n;if(!e)n=void 0;else if(O(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=O(s)?s(t,t.state):s}}return n},ql=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},wh=async(e,t)=>{if(O(e.select))return e.auth!==!1&&await ql(e,t),e;if(e.__resolved)return e.auth!==!1&&await ql(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=d_(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await ql(r,t),r):null},ct=(e,t,...r)=>{let n=O(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},Ct=(e,t,r,...n)=>{let o=e&&O(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},js=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())t[s]=i;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},on=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...n}):s.update({[i]:t},{preventFetch:!0,...n})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...n})}},Gt=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},Ar=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||O(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||O(e.skip)&&e.skip(t,t.state))return;let s=await wh(o,r);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:v,headers:x,baseUrl:_,page:C,cursor:E,getNextPageParam:F,getPreviousPageParam:w,infinite:$,placeholderData:q,initialData:te,select:j,keepPreviousData:I}=e,Q=k(j)?j:void 0;if(c&&O(t.getQuery)){let V=t.getQuery(s.name||"paths");V&&(Q=V.select||V.length&&V.join(",")||Q)}let oe=m_(u,t,r),ie=_h(d),Vt=h_(e),Xr=Gl(t,r),Cd=Xr?`:${Xr}`:"",J=ie?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${$?":infinite":""}${C?":p"+JSON.stringify(C):""}${Cd}`:null;if(!i.__fetchInitialized&&J&&(i.__fetchInitialized=!0,te!==void 0)){let V=O(te)?te():te;Is(J,V,null)}if((l==="select"||l==="rpc")&&J&&ie){let V=Ds(J);if(V&&!V.error){let z=Date.now()-V.time,B=V.stale||z>(ie.staleTime||0),U=V.data;if(O(j)&&(U=j(U,t,t.state)),f&&(U=f(U,t,t.state)),on(t,U,m),!B){Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(q!==void 0){let z=O(q)?q(t,t.state):q;z!==void 0&&on(t,z,m)}}if(J&&Ps.has(J)&&!n.force){let V=Ps.get(J);try{let z=await Promise.race([V,new Promise((B,U)=>setTimeout(()=>U("DEDUP_TIMEOUT"),15e3))]);if(z?.data!==void 0){let B=z.data;O(j)&&(B=j(B,t,t.state)),f&&(B=f(B,t,t.state)),on(t,B,m),ct(t,"onFetchComplete",B),Ct(e,t,"onFetchComplete",B)}}catch{}return}let Ad=!Ds(J)?.data;Gt(t,{isFetching:!0,isLoading:Ad,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ct(t,"onFetchStart"),Ct(e,t,"onFetchStart");let Ce=r?.analyze?.emitNetwork,Yr=Ce?typeof performance<"u"?performance.now():Date.now():0;Ce&&Ce({phase:"start",mode:"query",from:a,method:l,cacheKey:J,lang:Xr});let ue=g_(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let U=await s.getSession();if(h===!0&&!U){let Ae={message:"Not authenticated"};return Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Ae,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",Ae),Ct(e,t,"onFetchError",Ae),{data:null,error:Ae}}}let V=s[l];if(!O(V))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let z={from:a,select:Q,params:oe,single:p,limit:y,offset:b,order:v,headers:x,baseUrl:_},B=Gl(t,r);if(B&&(z.headers={...z.headers,"Accept-Language":B}),C!==void 0){if(S(C))C.offset!==void 0&&(z.offset=C.offset),C.limit!==void 0&&(z.limit=C.limit),C.cursor!==void 0&&(z.params={...z.params,cursor:C.cursor});else if(typeof C=="number"){let U=e.pageSize||y||20;z.offset=(C-1)*U,z.limit=U}}if(E!==void 0&&(z.params={...z.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let U;if(g===!0||e.on==="submit")U=js(t);else if(P(g)){let Ae=js(t);U={};for(let el of g)U[el]=Ae[el]}else t.state?.parse?U=t.state.parse():S(t.state)&&(U={...t.state});f&&(U=f(U,t,t.state)),z.data=U}if(l==="rpc"){let U=oe;if(e.on==="submit"){let Ae=js(t);U=e.transformParams?e.transformParams(Ae,t,t.state):Ae}z.params=U}if(l==="subscribe"){let U=s.subscribe({from:a,params:oe,on:e.subscribeOn},(Ae,el,SB)=>{on(t,Ae,m),ct(t,"onFetchComplete",Ae),Ct(e,t,"onFetchComplete",Ae)});return i.__unsubscribe=U,{data:null,error:null,subscribed:!0}}return V(z)},Vt);J&&Ps.set(J,ue);try{let V=await ue;if(V?.subscribed)return;let{data:z,error:B}=V||{};if(B){J&&Is(J,null,B),Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:B,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",B),Ct(e,t,"onFetchError",B),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:J,error:B.message||B,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr});return}if(z!==void 0){if((l==="select"||l==="rpc")&&J){let Ae=Is(J,z,null);Ae.gcTime=ie?.gcTime||3e5}let U=z;$&&P(z)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(z):i.__pages.push(z),U=i.__pages.flat(),F&&(i.__nextPageParam=F(z,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),w&&(i.__prevPageParam=w(z,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),O(j)&&(U=j(U,t,t.state)),f&&(U=f(U,t,t.state)),(!I||U!==void 0)&&on(t,U,m),Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ct(t,"onFetchComplete",U),Ct(e,t,"onFetchComplete",U),Ce&&Ce({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:J,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}}catch(V){Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:V,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",V),Ct(e,t,"onFetchError",V),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:J,error:V.message||String(V),durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}finally{J&&Ps.delete(J)}},j2=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||Ar;if(n==="submit"){let i=l=>{l.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,r))},D2=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),I2();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:$s(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Ar(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=Gl(t,r),a=P2(e,i),l=Ds(a),c=_h(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&Ar(e,t,r,{force:!0})};Yn.focus.add(s),n.__fetchCleanups.push(()=>Yn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>Ar(e,t,r,{force:!0});Yn.online.add(s),n.__fetchCleanups.push(()=>Yn.online.delete(s))}},L2=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():S(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=O(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&on(e,i,o),s},vh=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(on(e,n,t.as),delete r.__optimisticSnapshot)},M2=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await wh(n,r);if(!o)return;let s=t.__ref,{method:i,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:v,onSettled:x}=e,_;if(l===!0||d==="submit")_=js(t);else if(P(l)){let w=js(t);_={};for(let $ of l)_[$]=w[$]}else t.state?.parse?_=t.state.parse():S(t.state)&&(_={...t.state});c&&(_=c(_,t,t.state)),O(y)&&y(_,t,t.state);let C=m?L2(t,e,_):null;s.__fetching=!0,Gt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ct(t,"onFetchStart"),Ct(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,F=E?typeof performance<"u"?performance.now():Date.now():0;E&&E({phase:"start",mode:"mutation",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let oe=await o.getSession();if(f===!0&&!oe){C!==void 0&&vh(t,e);let ie={message:"Not authenticated"};ct(t,"onFetchError",ie),Ct(e,t,"onFetchError",ie);return}}let w=o[i];if(!O(w))return;let $={from:a,data:_,headers:p,baseUrl:h};e.params&&($.params=m_(e.params,t,r));let q=Gl(t,r);q&&($.headers={...$.headers,"Accept-Language":q});let te=h_(e),j=await g_(()=>w($),te),{data:I,error:Q}=j||{};if(Q){C!==void 0&&vh(t,e),Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",Q),O(v)&&v(Q,_,t),O(x)&&x(null,Q,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-F});return}if(delete s.__optimisticSnapshot,I!==void 0){let oe=u?{[u]:I}:I;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ct(t,"onFetchComplete",I),Ct(e,t,"onFetchComplete",I),O(b)&&b(I,_,t),O(x)&&x(I,null,_,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-F}),g){let oe=P(g)?g:[g];for(let ie of oe)if(ie===!0||ie==="*")for(let[Vt]of Be)Vt.startsWith(a+":")&&Fs(Vt);else Fs(ie)}}catch(w){C!==void 0&&vh(t,e),Gt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:w,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",w),Ct(e,t,"onFetchError",w),O(v)&&v(w,_,t),O(x)&&x(null,w,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:w.message||String(w),durationMs:(typeof performance<"u"?performance.now():Date.now())-F})}finally{s.__fetching=!1}},Ls=(e,t,r,n)=>{if(!e||!n?.fetch)return;let s=de(e,t);if(!s)return;let i=P(s)?s.map(l=>u_(de(l,t),t)).filter(Boolean):[u_(s,t)].filter(Boolean);for(let l of i){let c=l.method==="insert"||l.method==="update"||l.method==="upsert"||l.method==="delete",u=c?M2:Ar;l.on==="create"?u(l,t,n):Promise.resolve().then(()=>{j2({...l,__runner:u},t,n)}),!c&&l.on==="create"&&(l.refetchInterval||l.refetchOnWindowFocus!==!1||l.refetchOnReconnect!==!1)&&D2(l,t,n)}let a=t.__ref;a.refetch=l=>{for(let c of i)Ar(c,t,n,{force:!0,...l})},a.fetchNextPage=()=>{let l=i[0];if(!l||!l.infinite)return;let c=a.__nextPageParam;if(c==null)return;let u={...l,cursor:c};Ar(u,t,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let l=i[0];if(!l||!l.infinite)return;let c=a.__prevPageParam;if(c==null)return;let u={...l,cursor:c};Ar(u,t,n,{direction:"previous",force:!0})}},N2={invalidateQueries:e=>{if(!e){Fs();return}if(k(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&Fs(t);else if(P(e)){let t=e.join(":");for(let[r]of Be)r.includes(t)&&Fs(r)}},removeQueries:e=>{if(!e){Wl();return}if(k(e))for(let[t]of Be)(t.startsWith(e)||t.includes(e))&&Wl(t)},getQueryData:e=>Ds(e)?.data??void 0,setQueryData:(e,t)=>{let r=Ds(e),n=O(t)?t(r?.data):t;Is(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await wh(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=n[e.method||"select"];if(!O(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=Is(o,i.data,null);a.gcTime=_h(e.cache)?.gcTime||3e5}return i},getCache:()=>Be,clear:()=>Wl(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Be)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||Wl(r))}},Sh={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Ps.clear(),Ls(t,e,e.state,e.context))}},B2=Ls});function Bs(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function Ch(e){let t=this,{parent:r}=t;if(O(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function Ah(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=t[s];if(s===e)return i;if(O(e)){let l=e(i,i.state,i.context);if(i.state&&l)return i}let a=i?.lookdown?.(e);if(a)return a}}function Eh(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===e)t.push(a);else if(O(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function Kl(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(S(n)&&o)Kl.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function b_(e){let t=this;if(kr("beforeRemove",t,e)===!1)return t;O(t.node.remove)?t.node.remove():wr()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=ts(t.parent.__ref.__children,t.key)),kr("remove",t,e)}function Oh(e){return this[e]}function Th(e,t){let r=this;if(e)return r.update(e,t),r}function Rh(e){return e?this.__ref&&this.__ref[e]:this.__ref}function Vs(){return this.getRef("__children").map(t=>this[t])}function zs(){return this.getRef().path}function Ws(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=y_();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=O(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=y_()),e?t?.[e]:t}function Hs(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function qs(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function Gs(e){let t=this.getRoot()?.context;return e?t[e]:t}function Ks(e){let t=this.context;return e?t[e]:t}function Xl(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||vr.has(r)&&!is.has(r)||t.push(r);return t}function Yl(e=[]){let t=this,r={},n=Xl.call(t),o=n.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=O(l&&l.parse)?l.parse():l;r[a]=O(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else qe(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Ns(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=Yl.call(r,e),o=e.length?new Set(e):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>re(a)?Ns.call(a,e,t):a):re(i)&&(n[s]=Ns.call(i,e,t))}return n}function Jn(...e){if(Er!=="test"&&Er!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
16
+ `,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",t[o]))),console.log(t),console.groupEnd(t.key),t}function $h(...e){(Er==="test"||Er==="development")&&console.log(...e)}function Xs(...e){(Er==="test"||Er==="development")&&console.warn(...e)}function an(...e){if(Er==="test"||Er==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&Jn.call(this),new Error(...e)}}function Ys(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),s=n[o+1];return r[s]}function Js(e){let t=e||this,{key:r,parent:n}=t,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function Zs(e={}){let t=this;t.data||(t.data={}),t.data.varCaches||(t.data.varCaches={});let r=t.data.varCaches,n={},o;for(let s in e)e[s]!==r[s]&&(o=!0,n[s]=e[s]);return{changed:s=>{if(!o)return;let i=s(n,ge(r));for(let a in n)r[a]=n[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(n),clearTimeout(a)},i)}}}function Ih(e,...t){let r=this.context,n=r.utils?.[e]||r.functions?.[e]||r.methods?.[e]||r.snippets?.[e];if(n)try{let o=n.call(this,...t);return o&&typeof o.then=="function"&&o.catch(s=>{an.call(this,s)}),o}catch(o){if(an.call(this,o),r?.strictMode)throw o}}async function Qs(){let e=this,t=e.context?.fetch;if(!t)return null;if(typeof t.select=="function"){if(!t.__authInitialized&&t.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(sn(),Ms));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(sn(),Ms));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(sn(),Ms)).then(({resolveDb:o})=>o(t));t.__resolving=r;let n=await r;if(t.__resolved=n,e.context.fetch=n,delete t.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(sn(),Ms));await o(n,e.context)}return n}function ei(e){let t=this,r=e||Rs.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(kh(t,n),r===!0)return n;let o=K2[r];return o?o(n):n}function Fh(e,t){return!!(Vn.has(e)||t?.context?.methods?.[e])}var Er,x_,Us,y_,Ph,kh,V2,v_,z2,U2,W2,H2,q2,G2,K2,__=G(()=>{"use strict";hh();zn();Ie();nr();Cp();Bn();mh();Er="production";x_=null,Us=e=>{x_=e||null},y_=()=>x_||null;Ph=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n});kh=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&V2(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&kh(l,t)}let s=r.contentElementKey||"content",i=e[s];i&&i.__ref&&kh(i,t)},V2=(e,t)=>{let n=t.replaceAll("../","").replaceAll("~/","").split("/"),o=e;for(let s=0;s<n.length;s++){let i=n[s];s===n.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},v_=(e,t=0)=>{let r=" ".repeat(t),n=Object.entries(e);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
17
+ ${v_(i,t+1)}
18
18
  ${r}}`).join(`
19
- `):""},TD=e=>`{
20
- ${bS(e,1)}
21
- }`,OD=e=>{let t={fields:{},include:[]},r=(n,o)=>{let i=[];for(let s in n)if(n[s]===!0)i.push(s);else{let a=o?`${o}.${s}`:s;t.include.push(a),r(n[s],a)}i.length&&(t.fields[o||"_root"]=i)};return r(e,""),t},RD=e=>{let t=i=>{let s=[],a=[];for(let l in i)if(i[l]===!0)s.push(l);else{let c=t(i[l]),u=[];c.select&&u.push(`$select=${c.select}`),c.expand&&u.push(`$expand=${c.expand}`),a.push(u.length?`${l}(${u.join(";")})`:l)}return{select:s.length?s.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=t(e),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},PD=(e,t)=>{let r=[],n=[],o=new Set,i=(u,d,f)=>{o.add(d),f&&n.push(`LEFT JOIN ${d} ON ${d}.${f}_id = ${f}.id`);for(let p in u)u[p]===!0?r.push(`${d}.${p}`):i(u[p],p,d)},s=Object.keys(e);s.length===1&&e[s[0]]!==!0?i(e[s[0]],s[0],null):i(e,"_root",null);let a=[...o][0]||"_root",l=r.length?r.join(", "):"*",c=n.length?`
19
+ `):""},z2=e=>`{
20
+ ${v_(e,1)}
21
+ }`,U2=e=>{let t={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;t.include.push(a),r(n[i],a)}s.length&&(t.fields[o||"_root"]=s)};return r(e,""),t},W2=e=>{let t=s=>{let i=[],a=[];for(let l in s)if(s[l]===!0)i.push(l);else{let c=t(s[l]),u=[];c.select&&u.push(`$select=${c.select}`),c.expand&&u.push(`$expand=${c.expand}`),a.push(u.length?`${l}(${u.join(";")})`:l)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=t(e),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},H2=(e,t)=>{let r=[],n=[],o=new Set,s=(u,d,f)=>{o.add(d),f&&n.push(`LEFT JOIN ${d} ON ${d}.${f}_id = ${f}.id`);for(let p in u)u[p]===!0?r.push(`${d}.${p}`):s(u[p],p,d)},i=Object.keys(e);i.length===1&&e[i[0]]!==!0?s(e[i[0]],i[0],null):s(e,"_root",null);let a=[...o][0]||"_root",l=r.length?r.join(", "):"*",c=n.length?`
22
22
  `+n.join(`
23
23
  `):"";return`SELECT ${l}
24
- FROM ${a}${c}`},$D=e=>{let t=[],r=(n,o)=>{for(let i in n){let s=o?`${o}/${i}`:i;n[i]===!0?t.push(s):r(n[i],s)}};return r(e,""),t},ID=e=>{let t=n=>{let o=[];for(let i in n)n[i]===!0?o.push(i):o.push(`${i}(${t(n[i])})`);return o.join(", ")},r=Object.keys(e);return r.length===1&&e[r[0]]!==!0?{from:r[0],select:t(e[r[0]])}:{from:null,select:t(e)}},jD={graphql:TD,"json-api":OD,odata:RD,sql:PD,supabase:ID,paths:$D}});var FD,Kh,xS=X(()=>{bl();FD={snapshotId:vi},Kh=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let s=FD.snapshotId();return r.__currentSnapshot=s,[s,e]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var oc,Xh,wS=X(()=>{oc=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Xh=e=>typeof e=="string"&&oc.has(e)});async function Zh(e){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(t){console.warn(`Error attempting to enable fullscreen mode: ${t.message} (${t.name})`)}}var SS=X(()=>{});function DD(e){return/^[0-9.]+$/.test(e)&&e!==""}var Pt,Pr,so,$t,Yh,_S=X(()=>{Pt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${Pt.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${Pt.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${Pt.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${Pt.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!DD(t)?`${Pt.symbols.url}/${e}`:`${Pt.symbols.url}/${e}/${t}.js`}},Pr={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},so=(e={})=>{let{packageManager:t}=e;return Pr[t]||null},$t=(e,t="latest",r="esmsh")=>(Pt[r]||Pt.esmsh).formatUrl(e,t),Yh=(e,t="skypack")=>{let r=e.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let i of n){let s=r[i]||"latest";o[i]=$t(i,s,t)}return`<script type="importmap">{
24
+ FROM ${a}${c}`},q2=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?t.push(i):r(n[s],i)}};return r(e,""),t},G2=e=>{let t=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${t(n[s])})`);return o.join(", ")},r=Object.keys(e);return r.length===1&&e[r[0]]!==!0?{from:r[0],select:t(e[r[0]])}:{from:null,select:t(e)}},K2={graphql:z2,"json-api":U2,odata:W2,sql:H2,supabase:G2,paths:q2}});var X2,jh,w_=G(()=>{"use strict";dl();X2={snapshotId:ps},jh=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let a=X2.snapshotId();return r.__currentSnapshot=a,[a,e]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var Jl,Dh,S_=G(()=>{Jl=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Dh=e=>typeof e=="string"&&Jl.has(e)});async function Lh(e){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(t){console.warn(`Error attempting to enable fullscreen mode: ${t.message} (${t.name})`)}}var k_=G(()=>{"use strict"});function Y2(e){return/^[0-9.]+$/.test(e)&&e!==""}var At,Or,Zn,Et,Mh,C_=G(()=>{"use strict";At={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${At.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${At.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${At.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${At.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!Y2(t)?`${At.symbols.url}/${e}`:`${At.symbols.url}/${e}/${t}.js`}},Or={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Zn=(e={})=>{let{packageManager:t}=e;return Or[t]||null},Et=(e,t="latest",r="esmsh")=>(At[r]||At.esmsh).formatUrl(e,t),Mh=(e,t="skypack")=>{let r=e.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=Et(s,i,t)}return`<script type="importmap">{
25
25
  "imports": ${JSON.stringify(o,null,2)}
26
- }<\/script>`}});var Jh,kS=X(()=>{Jh=e=>{if(!e)return"";let t=new Date(e),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),n=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)} ${n}, ${r}`}});var Qh,CS=X(()=>{Qh=(e,t)=>{let r=setTimeout(()=>{let{props:n}=e;if(!t.clientHeight){let{node:{clientHeight:o}}=e;o&&(t.clientHeight=o)}if(t.active){if(n.height==="auto")return;e.update({height:t.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{e.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else e.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var eg,AS=X(()=>{eg=function(e){let t=[0,1];for(let r=2;r<=e;r++)t[r]=t[r-1]+t[r-2];return t[e]}});var tg,ES=X(()=>{tg=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function ao(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,i)=>{let s=n.querySelector(`script[src="${e}"]`);if(s)return o(s);let a=n.createElement("script");a.src=e,a.async=t.async===!0,a.type=t.type||"text/javascript",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,i(new Error(`Failed to load script: ${e}`))},n.head.appendChild(a)})}async function ag(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,i)=>{let s=n.querySelector(`link[href="${e}"]`);if(s)return o(s);let a=n.createElement("link");a.href=e,a.rel=t.rel||"stylesheet",a.type="text/css",a.media=t.media||"all",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,i(new Error(`Failed to load stylesheet: ${e}`))},n.head.appendChild(a)})}var rg,ng,og,ig,sg,TS=X(()=>{rg=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,i)=>{try{let s=r.createElement("script");s.type=n,s.async=t,s.src=e,s.addEventListener("load",a=>{o({status:!0})}),s.addEventListener("error",a=>{i(new Error({status:!1,message:`Failed to load the script ${e}`}))}),r.body.appendChild(s)}catch(s){i(s)}}),ng=(e,t=document,r="text/javascript")=>new Promise((n,o)=>{let i=t.createElement("script");i.type=r,i.src=e;let s=t.createElement("div");s.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",t.body.appendChild(s),i.onload=()=>{console.log(`Successfully loaded: ${e}`),t.body.removeChild(s),n()},i.onerror=()=>{t.body.removeChild(s),o(new Error(`Failed to load: ${e}`))},t.body.appendChild(i)}),og=(e,t=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",e,!1),o.send(),o.status===200){let i=t.createElement("script");i.type=n,i.text=o.responseText,t.body.appendChild(i),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${e}`)},ig=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,i)=>{try{let s=r.createElement("link");s.rel="stylesheet",s.href=e,s.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(s)}catch(s){i(s)}}),sg=(e,t=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let i=r.createElement("script");i.type=n,i.async=t,i.id=o,i.innerHTML=e,r.body.appendChild(i)}catch(i){console.warn(i)}}});function BD(e,t){if(!t||typeof t!="object")return e;let r=o=>{if(!MD(o))return o;let i=t[o];return i?.src?i.src:o},n={...e};for(let[o,i]of Object.entries(n))typeof i=="string"?n[o]=r(i):Array.isArray(i)&&(n[o]=i.map(s=>typeof s=="string"?r(s):s));return n}function ic(e,t){if(!e||!t)return;let r=t.split("."),n=e;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function ND(e,t,r){let n=(t.config||t.settings||{}).polyglot||t.polyglot,o=r?.lang||n?.defaultLang||"en",i=(n?.translations||{})[o]||{},s=r?.state||{},a={...e};for(let[l,c]of Object.entries(a))typeof c!="string"||!c.includes("{{")||(a[l]=c.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(u,d,f)=>{let p=d.trim();if(f==="polyglot")return i[p]??ic(i,p)??u;if(f==="getLocalStateLang")return ic(s,p+o)??u;let h=ic(s,p);return h!==void 0?h:i[p]??ic(i,p)??u}));return a}function OS(e){let t={...e};for(let[r,n]of Object.entries(t))if(typeof n=="function"){let o=n.toString(),i=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | getLocalStateLang }}`;continue}let s=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){t[r]=`{{ ${a[1]} }}`;continue}delete t[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){t[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let i=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let s=n.match(/s\.(\w+(?:\.\w+)+)/);if(s){t[r]=`{{ ${s[1]} }}`;continue}}}return t}function cg(e,t,r,{isProduction:n=!1,channel:o="production"}={}){let i=e.pages?.[t],s=_(i?.state)&&i?.state,a=i?.metadata||i?.helmet||s||{},l=OS(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=OS(u),f={};if(e.integrations?.seo?f={...e.integrations.seo,...d,...l}:Object.keys(d).length?f={...d,...l}:f={...l},!f.title){let g=e.name||e.key;g?n?f.title=g:o==="development"?f.title=`${g} / dev:symbo.ls`:o==="staging"?f.title=`${g} / staging:symbo.ls`:f.title=`${g} / symbo.ls`:f.title="Symbols demo"}f=ND(f,e,r),f.title&&(c.has("title")||!f["og:title"])&&(c.has("og:title")||(f["og:title"]=f.title)),f.description&&(c.has("description")||!f["og:description"])&&(c.has("og:description")||(f["og:description"]=f.description)),f.title&&!f["twitter:title"]&&(f["twitter:title"]=f.title),f.description&&!f["twitter:description"]&&(f["twitter:description"]=f.description);let p=r?.actualPathname||t;if(f["og:url"]||f.url){let g=(f["og:url"]||f.url||"").replace(/\/$/,"");if(g&&p&&p!=="/"){let m=p.startsWith("/")?p:"/"+p;f["og:url"]=g+m}}f=BD(f,e.files);let h=e.name||e.app?.metadata?.title||e.app?.name||"";for(let[g,m]of Object.entries(f))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?f[g]=y:g==="title"?f[g]=h:delete f[g]}return f}var pt,LD,lg,MD,RS=X(()=>{je();pt=e=>{if(e==null)return"";let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.toString().replace(/[&<>"']/g,r=>t[r])},LD=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${pt(r)}"`).join(" "),lg=(e,t)=>(t||(e={...e,robots:"noindex"}),Object.entries(e).reduce((r,[n,o])=>{if(!o&&o!==0&&o!==!1)return r;if(n==="title")return r.push(`<title>${pt(o)}</title>`),r;if(n==="canonical")return r.push(`<link rel="canonical" href="${pt(o)}">`),r;if(n==="manifest")return r.push(`<link rel="manifest" href="${pt(o)}">`),r;if(n==="favicon"||n==="favicons"||n==="icon"||n==="icons")return(Array.isArray(o)?o:[o]).forEach(a=>{if(typeof a=="string")r.push(`<link rel="icon" href="${pt(a)}">`);else if(typeof a=="object"){let l=LD(a);/rel=/.test(l)?r.push(`<link ${l}>`):r.push(`<link rel="icon" ${l}>`)}}),r;if(n==="alternate")return(Array.isArray(o)?o:[o]).forEach(a=>{if(typeof a=="object"){let l=Object.entries(a).filter(([c,u])=>u!==void 0).map(([c,u])=>`${c}="${pt(u)}"`).join(" ");r.push(`<link rel="alternate" ${l}>`)}}),r;let i=(a,l,c="name")=>{if(typeof l=="string"||typeof l=="number"||typeof l=="boolean")r.push(`<meta ${c}="${pt(a)}" content="${pt(l)}">`);else if(Array.isArray(l))l.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")r.push(`<meta ${c}="${pt(a)}" content="${pt(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([f,p])=>p!==void 0).map(([f,p])=>`${f}="${pt(p)}"`).join(" ");r.push(`<meta ${d}>`)}});else if(typeof l=="object"){let u=Object.entries(l).filter(([d,f])=>f!==void 0).map(([d,f])=>`${d}="${pt(f)}"`).join(" ");r.push(`<meta ${u}>`)}};if(n.startsWith("http-equiv:")){let a=n.replace("http-equiv:","");return i(a,o,"http-equiv"),r}if(n.startsWith("itemprop:")){let a=n.replace("itemprop:","");return i(a,o,"itemprop"),r}let s=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(a=>n.startsWith(a));if(s){let a=n.replace(s,"");return i(`${s.replace(":","")}:${a}`,o,s==="twitter:"||s==="DC:"||s==="DCTERMS:"?"name":"property"),r}if(n.startsWith("apple:")||n.startsWith("msapplication:")){let a=n.startsWith("apple:")?"apple-":"msapplication-",l=n.replace(/^apple:|^msapplication:/,"");return i(`${a}${l}`,o,"name"),r}return i(n,o),r},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
27
- `)),MD=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")});var sc,ug,PS=X(()=>{je();sc=(e,t)=>(F(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),ug=(e,t)=>(e=parseFloat(e),_(t)&&(t=Object.values(t)),sc(e,t))});function lo(e){let t=String(e||"").trim();if(!t)return{owner:$S,key:"",full:""};let r=null,n=t;if(t.includes("/")){let i=t.indexOf("/");r=t.slice(0,i),n=t.slice(i+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=$S);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function ac(e,t={}){return(t.provider||"kv")==="api"?IS(e,t):await HD(e,t)||IS(e,t)}async function HD(e,t={}){let r=t.kvBaseUrl||zD,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let i=await fetch(o,{method:"GET"});return i.ok&&(await i.json())?.value||null}catch{return null}}async function IS(e,t={}){let r=t.apiBaseUrl||WD,{key:n}=lo(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,i=await fetch(o,{method:"GET"});if(!i.ok)return null;let s=await i.json(),a=(s?.items||s?.data||(Array.isArray(s)?s:[])).find(f=>{let{key:p}=lo(f?.key);return p.toLowerCase()===n.toLowerCase()});if(!a?.id&&!a?._id)return null;let l=a.id||a._id,c=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(c,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function fg(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(_(r))return r;if(A(r)){let{full:n}=lo(r);if(!n)return null;try{let o=await ac(n,t);return o||console.warn(`[smbls] Shared library "${n}" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,o.message),null}}return null}))).filter(Boolean)}var $S,zD,WD,as,ls,jS=X(()=>{je();$S="system",zD="https://smbls-kv.nika-980.workers.dev",WD="https://api.symbols.app";as=(e,t)=>{for(let r in t)r in e?_(e[r])&&_(t[r])&&as(e[r],t[r]):e[r]=t[r]},ls=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(_(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(_(n[o])&&_(e[o]))if(o==="designSystem")as(e[o],n[o]);else for(let i in n[o])i in e[o]||(e[o][i]=n[o][i]);else o in e||(e[o]=n[o])}}}});var dg,pg,hg,cs,gg,us,mg,fn,FS=X(()=>{je();dg=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},pg=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},hg=e=>e.replace(/[^a-zA-Z0-9_]/g,""),cs=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),gg=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),us=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),mg=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},fn=e=>{if(F(e))return e;if(A(e))return e.split(" ");if(_(e))return Object.values(e);if(Kt(e))return[e]}});var yg,DS=X(()=>{yg=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}});var ye,co,dn,pn,LS=X(()=>{ye=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},co=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},dn=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return co(t,{keepOneX:!1})},pn=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:co(l,{keepOneX:!0})}});let o=r.get(e.type)||[],i=co(o,{keepOneX:!1}),s={src:e.src,alt:t||""};return i&&(s.srcset=i),[...n,{tag:"img",attr:s}]}});var MS={};R(MS,{CDN_PROVIDERS:()=>Pt,DOMQL_EVENTS:()=>yp,DOMQ_PROPERTIES:()=>_r,ENV:()=>Ip,HTML_TAGS:()=>to,METHODS:()=>Xn,METHODS_EXL:()=>pi,NODE_ENV:()=>Ot,OPTIONS:()=>Di,PACKAGE_MANAGER_TO_CDN:()=>Pr,PARSED_DOMQ_PROPERTIES:()=>di,PROPS_METHODS:()=>kr,STATE_METHODS:()=>nn,STATE_PROPERTIES:()=>mp,SVG_TAGS:()=>Lw,TYPES:()=>ii,UNIVERSAL_RESERVED_KEYS:()=>oc,addCaching:()=>Wl,addContext:()=>zl,addExtend:()=>oh,addExtends:()=>Je,addItemAfterEveryElement:()=>np,addProtoToArray:()=>li,addRef:()=>Ml,applyDependentState:()=>_h,applyEvent:()=>Kl,applyEventUpdate:()=>Xl,applyExtends:()=>Nw,applyProps:()=>Ri,arrayContainsOtherArray:()=>Zd,arraysEqual:()=>ip,arrayzeValue:()=>fn,buildImgSrcset:()=>dn,buildSourcesAndImg:()=>pn,cache:()=>Th,call:()=>qh,captureSnapshot:()=>Kh,checkForStateTypes:()=>vh,checkIfInherits:()=>Gl,checkIfStringIsInArray:()=>lp,clone:()=>vp,cloneAndMergeArrayExtend:()=>Si,cloneFunction:()=>Wp,concatAddExtends:()=>th,copyJavaScriptToClipboard:()=>pg,copyStringToClipboard:()=>dg,createBasedOnType:()=>Ll,createElement:()=>bh,createElementExtends:()=>Cl,createExtends:()=>ki,createExtendsFromKeys:()=>ro,createExtendsStack:()=>Ol,createIfConditionFlag:()=>Hp,createInheritedState:()=>xh,createKey:()=>xi,createNestedObject:()=>Ap,createNestedObjectByKeyPath:()=>Sh,createObjectWithoutPrototype:()=>yl,createParent:()=>Bl,createPath:()=>Nl,createProps:()=>Pi,createPropsStack:()=>Fl,createRoot:()=>yh,createScope:()=>Ch,createSnapshotId:()=>vi,customDecodeURIComponent:()=>gp,customEncodeURIComponent:()=>hp,cutArrayAfterValue:()=>tp,cutArrayBeforeValue:()=>ep,debounce:()=>wi,debounceOnContext:()=>Bp,decodeNewlines:()=>pp,deepClone:()=>me,deepContains:()=>kp,deepDefaults:()=>as,deepDestringifyFunctions:()=>Xt,deepExtend:()=>kl,deepMerge:()=>fe,deepMergeExtends:()=>Zt,deepStringifyFunctions:()=>hi,defineSetter:()=>Vh,destringifyGlobalScope:()=>mi,detectHeightOnInit:()=>Qh,detectInfiniteLoop:()=>Rp,document:()=>he,encodeNewlines:()=>dp,error:()=>un,excludeKeysFromObject:()=>$p,exec:()=>de,extendCachedRegistry:()=>rh,extendStackRegistry:()=>Ci,extractArrayExtend:()=>Ei,fetchLibraryData:()=>ac,fibonacciNumberByIndex:()=>eg,filterArrays:()=>sp,filterArraysFast:()=>ap,finalizeExtends:()=>Rl,findClosestNumber:()=>sc,findClosestNumberInFactory:()=>ug,findInheritedState:()=>ql,findKeyPosition:()=>up,flattenExtend:()=>no,formatDate:()=>Jh,generateHash:()=>wl,generateKey:()=>bi,generateMetaTags:()=>lg,get:()=>zh,getCDNUrl:()=>$t,getCapitalCaseKeys:()=>ah,getCdnProviderFromConfig:()=>so,getChildStateInKey:()=>Ul,getChildren:()=>Gi,getContext:()=>es,getCookie:()=>Kp,getDB:()=>is,getEmotionStylesheet:()=>yg,getExtendsInElement:()=>ih,getExtendsStack:()=>_i,getExtendsStackRegistry:()=>_l,getFrequencyInArray:()=>Yd,getHashedExtend:()=>Ai,getImportMapScript:()=>Yh,getInObjectByPath:()=>Op,getLocalStorage:()=>Zp,getNev:()=>Lp,getPageMetadata:()=>cg,getParentStateInKey:()=>Vl,getPath:()=>Ki,getQuery:()=>ss,getRef:()=>Hh,getRoot:()=>Yi,getRootContext:()=>Qi,getRootData:()=>Ji,getRootState:()=>Zi,getRootStateInKey:()=>Hl,getSpreadChildren:()=>lh,global:()=>Gd,hasFunction:()=>Yn,hasHandlerPlugin:()=>Jn,hasOwnProperty:()=>wp,inheritChildExtends:()=>El,inheritChildPropsExtends:()=>Al,inheritParentProps:()=>$i,inheritRecursiveChildExtends:()=>Tl,initProps:()=>hh,is:()=>Ze,isArray:()=>F,isBoolean:()=>dl,isContextComponent:()=>ch,isCyclic:()=>Pp,isDOMNode:()=>Xe,isDate:()=>hl,isDefined:()=>Ne,isDevelopment:()=>Ar,isEmpty:()=>gl,isEmptyObject:()=>Sp,isEqualDeep:()=>ml,isFunction:()=>O,isHtmlElement:()=>ni,isLocal:()=>Dp,isMethod:()=>Gh,isMobile:()=>qp,isNode:()=>or,isNot:()=>Xd,isNotProduction:()=>an,isNull:()=>pl,isNumber:()=>Kt,isObject:()=>_,isObjectLike:()=>re,isPhoto:()=>tg,isProduction:()=>Cr,isStaging:()=>Fp,isState:()=>wh,isString:()=>A,isStringFunction:()=>zp,isTest:()=>vl,isTesting:()=>jp,isUndefined:()=>_e,isUniversallyReservedKey:()=>Xh,isValidHtmlTag:()=>Jp,joinArrays:()=>qn,jointStacks:()=>nh,keys:()=>rc,loadCssFile:()=>ig,loadJavascript:()=>sg,loadJavascriptFile:()=>rg,loadJavascriptFileEmbedSync:()=>og,loadJavascriptFileSync:()=>ng,loadRemoteCSS:()=>ag,loadRemoteScript:()=>ao,log:()=>Uh,logGroupIf:()=>Up,logIf:()=>Vp,lookdown:()=>Bh,lookdownAll:()=>Nh,lookup:()=>Mh,lowercaseFirstLetter:()=>rn,makeObjectWithoutPrototype:()=>_p,map:()=>bp,mapStringsWithContextComponents:()=>Ti,matchesComponentNaming:()=>Yt,memoize:()=>Np,merge:()=>be,mergeSharedLibraries:()=>ls,nextElement:()=>rs,normalizeLibraryKey:()=>lo,objectToString:()=>gi,objectizeStringProperty:()=>Oi,overwrite:()=>yi,overwriteDeep:()=>Ye,overwriteShallow:()=>sn,overwriteState:()=>kh,parse:()=>nc,parseDeep:()=>Ui,pickupElementFromProps:()=>Il,pickupPropsFromElement:()=>$l,previousElement:()=>ns,propExists:()=>dh,propertizeElement:()=>jl,propertizeUpdate:()=>fh,remove:()=>mS,removeChars:()=>hg,removeCookie:()=>Xp,removeDuplicateProps:()=>ji,removeDuplicatesInArray:()=>Gn,removeFromArray:()=>Jd,removeFromObject:()=>Cp,removeNestedKeyByPath:()=>Ep,removeValueFromArray:()=>ai,removeValueFromArrayAll:()=>rp,reorderArrayByValues:()=>op,replaceLiteralsWithObjectFields:()=>tn,replaceOctalEscapeSequences:()=>fp,resolveAsset:()=>ye,resolveHandler:()=>Qn,resolveSharedLibraries:()=>fg,returnValueAsText:()=>Dl,runPluginHook:()=>eo,self:()=>Kd,setActiveRootState:()=>Xi,setCookie:()=>Gp,setHashedExtend:()=>Sl,setInObjectByPath:()=>Tp,setLocalStorage:()=>Yp,setNodeStyles:()=>tc,setProps:()=>Wh,setPropsPrototype:()=>Ii,spotByPath:()=>qi,srcsetFor:()=>co,stringIncludesAny:()=>ui,stringToObject:()=>xp,swapItemsInArray:()=>Qd,syncProps:()=>Fi,toCamelCase:()=>cs,toDashCase:()=>us,toDescriptionCase:()=>mg,toTitleCase:()=>gg,toggleFullscreen:()=>Zh,triggerEventOn:()=>Er,triggerEventOnUpdate:()=>Ah,trimStringFromSymbols:()=>cp,unstackArrayOfObjects:()=>si,update:()=>ph,updateProps:()=>gh,variables:()=>os,verbose:()=>io,warn:()=>ts,window:()=>C});var D=X(()=>{bl();Mp();je();ir();xl();Kn();oi();jw();Fw();fi();ri();Dw();Qp();sh();mh();Pl();qw();Gw();Zn();Kw();vS();Oh();xS();Eh();wS();SS();_S();kS();CS();AS();ES();TS();RS();PS();jS();FS();DS();LS()});var gT=zd((dY,hT)=>{var Ro=1e3,Po=Ro*60,$o=Po*60,On=$o*24,m5=On*7,y5=On*365.25;hT.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return b5(e);if(r==="number"&&isFinite(e))return t.long?x5(e):v5(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function b5(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*y5;case"weeks":case"week":case"w":return r*m5;case"days":case"day":case"d":return r*On;case"hours":case"hour":case"hrs":case"hr":case"h":return r*$o;case"minutes":case"minute":case"mins":case"min":case"m":return r*Po;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ro;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function v5(e){var t=Math.abs(e);return t>=On?Math.round(e/On)+"d":t>=$o?Math.round(e/$o)+"h":t>=Po?Math.round(e/Po)+"m":t>=Ro?Math.round(e/Ro)+"s":e+"ms"}function x5(e){var t=Math.abs(e);return t>=On?Mu(e,t,On,"day"):t>=$o?Mu(e,t,$o,"hour"):t>=Po?Mu(e,t,Po,"minute"):t>=Ro?Mu(e,t,Ro,"second"):e+" ms"}function Mu(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var yT=zd((pY,mT)=>{function w5(e){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=o,r.enabled=a,r.humanize=gT(),r.destroy=c,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let d=0;for(let f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(u){let d,f=null,p,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),x=b-(d||b);y.diff=x,y.prev=d,y.curr=b,d=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let v=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(k,E)=>{if(k==="%%")return"%";v++;let T=r.formatters[E];if(typeof T=="function"){let w=m[v];k=T.call(y,w),m.splice(v,1),v--}return k}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=u,g.useColors=r.useColors(),g.color=r.selectColor(u),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==r.namespaces&&(p=r.namespaces,h=r.enabled(u)),h),set:m=>{f=m}}),typeof r.init=="function"&&r.init(g),g}function n(u,d){let f=r(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function o(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of d)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}function i(u,d){let f=0,p=0,h=-1,g=0;for(;f<u.length;)if(p<d.length&&(d[p]===u[f]||d[p]==="*"))d[p]==="*"?(h=p,g=f,p++):(f++,p++);else if(h!==-1)p=h+1,g++,f=g;else return!1;for(;p<d.length&&d[p]==="*";)p++;return p===d.length}function s(){let u=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),u}function a(u){for(let d of r.skips)if(i(u,d))return!1;for(let d of r.names)if(i(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}mT.exports=w5});var bT=zd((et,Bu)=>{et.formatArgs=_5;et.save=k5;et.load=C5;et.useColors=S5;et.storage=A5();et.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();et.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function S5(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function _5(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Bu.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}et.log=console.debug||console.log||(()=>{});function k5(e){try{e?et.storage.setItem("debug",e):et.storage.removeItem("debug")}catch{}}function C5(){let e;try{e=et.storage.getItem("debug")||et.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function A5(){try{return localStorage}catch{}}Bu.exports=yT()(et);var{formatters:E5}=Bu.exports;E5.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var v6={};R(v6,{ANIMATION_PROPS:()=>rm,ARIA_ROLES:()=>iM,ATTR_TRANSFORMS:()=>ym,BLOCK_PROPS:()=>nm,CDN_PROVIDERS:()=>Pt,CONFIG:()=>hc,CSS_NATIVE_COLOR_REGEX:()=>Qt,CSS_PROPS_REGISTRY:()=>Ae,CSS_UNITS:()=>Un,DEFAULT_CONFIG:()=>Is,DEFAULT_CSS_PROPERTIES_LIST:()=>ze,DELEGATED_EVENTS:()=>Cs,DESIGN_SYSTEM_OPTIONS:()=>ky,DOMQL_EVENTS:()=>yp,DOMQ_PROPERTIES:()=>_r,DOM_EVENTS:()=>ik,ENV:()=>Ip,FACTORY:()=>lr,FLEX_PROPS:()=>lm,FONT_PROPS:()=>om,GRID_PROPS:()=>cm,HTML_ATTRIBUTES:()=>Xc,HTML_TAGS:()=>to,LIFECYCLE_EVENTS:()=>Cn,METHODS:()=>Xn,METHODS_EXL:()=>pi,MISC_PROPS:()=>im,MIXINS:()=>Jg,NODE_ENV:()=>Ot,OPTIONS:()=>Di,PACKAGE_MANAGER_TO_CDN:()=>Pr,PARSED_DOMQ_PROPERTIES:()=>di,POSITION_PROPS:()=>sm,PROPS_METHODS:()=>kr,REGISTRY:()=>Qe,ROUTER_OPTIONS:()=>lu,STATE_PROPERTIES:()=>mp,SVG_TAGS:()=>_s,THEME_PROPS:()=>am,TIMING_PROPS:()=>En,TYPES:()=>ii,UNIVERSAL_RESERVED_KEYS:()=>oc,VALUE_TRANSFORMERS:()=>qg,activateConfig:()=>YD,addCaching:()=>Wl,addContext:()=>zl,addDelegatedEvent:()=>Gc,addExtend:()=>oh,addExtends:()=>Je,addItemAfterEveryElement:()=>np,addMethods:()=>$s,addProtoToArray:()=>li,addRef:()=>Ml,animation:()=>c_,appendSVGSprite:()=>Lc,appendSvgIconsSprite:()=>Bc,applyAttrTransforms:()=>xm,applyCSS:()=>xy,applyDependentState:()=>_h,applyDocument:()=>Dc,applyEvent:()=>Kl,applyEventUpdate:()=>Xl,applyExtends:()=>Es,applyHeadings:()=>Mg,applyInitialState:()=>gm,applyMediaSequenceVars:()=>yn,applyProps:()=>Ri,applyReset:()=>Nc,applySequenceGlobalVars:()=>wc,applySequenceVars:()=>Dr,applySpacingSequence:()=>$c,applyStateMethods:()=>vt,applyTimingSequence:()=>Fc,applyTrueProps:()=>fm,applyTypographySequence:()=>Oc,arrayContainsOtherArray:()=>Zd,arraysEqual:()=>ip,arrayzeValue:()=>fn,batch:()=>Sr,breakpoints:()=>a_,buildImgSrcset:()=>dn,buildSourcesAndImg:()=>pn,cache:()=>Th,cacheNode:()=>kn,call:()=>qh,captureSnapshot:()=>Kh,changeGlobalTheme:()=>Gg,changeLightness:()=>VS,checkAttributeByTagName:()=>Mr,checkEventFunctions:()=>vm,checkForStateTypes:()=>vh,checkIfBoxSize:()=>Pc,checkIfInherits:()=>Gl,checkIfStringIsInArray:()=>lp,class:()=>h_,clone:()=>vp,cloneAndMergeArrayExtend:()=>Si,cloneFunction:()=>Wp,color:()=>e_,colorStringToRgbaArray:()=>sr,components:()=>gy,concatAddExtends:()=>th,convertSvgToSymbol:()=>Sc,copyJavaScriptToClipboard:()=>pg,copyStringToClipboard:()=>dg,create:()=>_w,createAsync:()=>m6,createBasedOnType:()=>Ll,createComputed:()=>Ew,createConfig:()=>Rg,createDefine:()=>kC,createEffect:()=>Re,createElement:()=>bh,createElementExtends:()=>Cl,createExtends:()=>ki,createExtendsFromKeys:()=>ro,createExtendsStack:()=>Ol,createHTMLNode:()=>Ss,createIfConditionFlag:()=>Hp,createInheritedState:()=>xh,createKey:()=>xi,createNestedObject:()=>Ap,createNestedObjectByKeyPath:()=>Sh,createObjectWithoutPrototype:()=>yl,createParent:()=>Bl,createPath:()=>Nl,createProps:()=>Pi,createPropsStack:()=>Fl,createRoot:()=>yh,createScope:()=>Ch,createScopeStore:()=>fl,createSignal:()=>Gt,createSkeleton:()=>b6,createSnapshotId:()=>vi,createState:()=>Q_,createStore:()=>ft,createSync:()=>y6,css:()=>Lr,cssMediaVars:()=>Tg,cssVars:()=>Eg,customDecodeURIComponent:()=>gp,customEncodeURIComponent:()=>hp,cutArrayAfterValue:()=>tp,cutArrayBeforeValue:()=>ep,debounce:()=>wi,debounceOnContext:()=>Bp,decodeNewlines:()=>pp,deepClone:()=>me,deepContains:()=>kp,deepDefaults:()=>as,deepDestringifyFunctions:()=>Xt,deepExtend:()=>kl,deepMerge:()=>fe,deepMergeExtends:()=>Zt,deepStringifyFunctions:()=>hi,defaultDefine:()=>xo,defineSetter:()=>Vh,destringifyGlobalScope:()=>mi,destroy:()=>Ms,detectHeightOnInit:()=>Qh,detectInfiniteLoop:()=>Rp,detectTag:()=>_n,devices:()=>l_,dispose:()=>An,encodeNewlines:()=>dp,error:()=>un,excludeKeysFromObject:()=>$p,exec:()=>de,executeAttr:()=>aM,exetuteClassPerComponent:()=>KL,extendCachedRegistry:()=>rh,extendStackRegistry:()=>Ci,extractArrayExtend:()=>Ei,extractConditionalAttrs:()=>uM,fetchLibraryData:()=>ac,fibonacciNumberByIndex:()=>eg,filterArrays:()=>sp,filterArraysFast:()=>ap,filterAttributesByTagName:()=>sM,finalizeExtends:()=>Rl,findClosestNumber:()=>sc,findClosestNumberInFactory:()=>ug,findHeadingLetter:()=>jg,findHeadings:()=>xc,findInheritedState:()=>ql,findKeyPosition:()=>up,flattenExtend:()=>no,font:()=>KS,fontFace:()=>YS,fontFamily:()=>XS,fontFamilyTypes:()=>ZS,formatDate:()=>Jh,generateHash:()=>wl,generateKey:()=>bi,generateMetaTags:()=>lg,generateSequence:()=>rt,generateSequencePosition:()=>v_,generateSprite:()=>gs,generateSubSequence:()=>bc,get:()=>zh,getActiveConfig:()=>P,getActiveDocument:()=>Zg,getActiveLang:()=>zs,getCDNUrl:()=>$t,getCacheSize:()=>L_,getCapitalCaseKeys:()=>ah,getCdnProviderFromConfig:()=>so,getChildStateInKey:()=>Ul,getChildren:()=>Gi,getColor:()=>pe,getColorShade:()=>Sg,getContext:()=>es,getCookie:()=>Kp,getDB:()=>is,getDefaultOrFirstKey:()=>uo,getEmotionStylesheet:()=>yg,getExtendsInElement:()=>ih,getExtendsStack:()=>_i,getExtendsStackRegistry:()=>_l,getFnPrefixAndValue:()=>Fr,getFontFace:()=>qS,getFontFaceEach:()=>fo,getFontFaceEachString:()=>Ag,getFontFaceString:()=>cc,getFontFamily:()=>Tc,getFontFormat:()=>kg,getFontSizeByKey:()=>Rc,getFrequencyInArray:()=>Yd,getHashedExtend:()=>Ai,getImportMapScript:()=>Yh,getInObjectByPath:()=>Op,getLanguages:()=>mu,getLocalStateLang:()=>wu,getLocalStorage:()=>Zp,getMediaColor:()=>Fe,getMediaTheme:()=>jt,getNev:()=>Lp,getObserver:()=>Hn,getPageMetadata:()=>cg,getParentStateInKey:()=>Vl,getPath:()=>Ki,getQuery:()=>ss,getRef:()=>Hh,getRgbTone:()=>gn,getRoot:()=>Yi,getRootContext:()=>Qi,getRootData:()=>Ji,getRootState:()=>Zi,getRootStateInKey:()=>Hl,getSequenceValue:()=>vc,getSequenceValueBySymbols:()=>Ig,getSequenceValuePropertyPair:()=>ur,getShadow:()=>jc,getSignals:()=>Rw,getSpacingBasedOnRatio:()=>ht,getSpacingByKey:()=>$e,getSpreadChildren:()=>lh,getSubratio:()=>yc,getSubratioDifference:()=>mc,getSystemGlobalTheme:()=>bt,getTheme:()=>kc,getTimingByKey:()=>gt,getTimingFunction:()=>Ft,global:()=>Gd,gradient:()=>t_,grid:()=>p_,hasFunction:()=>Yn,hasHandlerPlugin:()=>Jn,hasOwnProperty:()=>wp,hexToRgb:()=>NS,hexToRgbArray:()=>bg,hexToRgba:()=>WS,hslToRgb:()=>wg,icons:()=>o_,inheritChildExtends:()=>El,inheritChildPropsExtends:()=>Al,inheritParentProps:()=>$i,inheritRecursiveChildExtends:()=>Tl,init:()=>vo,initPolyglot:()=>ib,initProps:()=>hh,injectGlobal:()=>Ce,is:()=>Ze,isArray:()=>F,isBoolean:()=>dl,isCSSVar:()=>we,isContextComponent:()=>ch,isCyclic:()=>Pp,isDOMNode:()=>Xe,isDate:()=>hl,isDefined:()=>Ne,isDevelopment:()=>Ar,isEmpty:()=>gl,isEmptyObject:()=>Sp,isEqualDeep:()=>ml,isFunction:()=>O,isGoogleFontsUrl:()=>fs,isHtmlElement:()=>ni,isLocal:()=>Dp,isMethod:()=>Gh,isMobile:()=>qp,isNode:()=>or,isNot:()=>Xd,isNotProduction:()=>an,isNull:()=>pl,isNumber:()=>Kt,isObject:()=>_,isObjectLike:()=>re,isPhoto:()=>tg,isProduction:()=>Cr,isResolvedColor:()=>ar,isScalingUnit:()=>Vn,isStaging:()=>Fp,isState:()=>wh,isStore:()=>Be,isString:()=>A,isStringFunction:()=>zp,isSvgTag:()=>ks,isTest:()=>vl,isTesting:()=>jp,isTracking:()=>nk,isUndefined:()=>_e,isUniversallyReservedKey:()=>Xh,isValidHtmlTag:()=>Jp,isValidTag:()=>ws,isWasmLoaded:()=>dC,joinArrays:()=>qn,jointStacks:()=>nh,keyframes:()=>xs,keys:()=>rc,loadCssFile:()=>ig,loadJavascript:()=>sg,loadJavascriptFile:()=>rg,loadJavascriptFileEmbedSync:()=>og,loadJavascriptFileSync:()=>ng,loadRemoteCSS:()=>ag,loadRemoteScript:()=>ao,loadTranslations:()=>bu,loadWasm:()=>fC,log:()=>Uh,logGroupIf:()=>Up,logIf:()=>Vp,lookdown:()=>Bh,lookdownAll:()=>Nh,lookup:()=>Mh,lowercaseFirstLetter:()=>rn,makeObjectWithoutPrototype:()=>_p,map:()=>bp,mapStringsWithContextComponents:()=>Ti,matchesComponentNaming:()=>Yt,media:()=>JS,memoize:()=>Np,merge:()=>be,mergeSharedLibraries:()=>ls,mixTwoColors:()=>BS,mixTwoRgb:()=>HS,mixTwoRgba:()=>_g,nextElement:()=>rs,normalizeLibraryKey:()=>lo,numToLetterMap:()=>cr,objectToString:()=>gi,objectizeStringProperty:()=>Oi,opacify:()=>$r,overwrite:()=>yi,overwriteDeep:()=>Ye,overwriteShallow:()=>sn,overwriteState:()=>kh,parse:()=>nc,parseColorToken:()=>Ir,parseDeep:()=>Ui,pickupElementFromProps:()=>Il,pickupPropsFromElement:()=>$l,polyglotFunctions:()=>Ws,polyglotPlugin:()=>Su,popConfig:()=>ke,previousElement:()=>ns,propExists:()=>dh,propertizeElement:()=>jl,propertizeUpdate:()=>fh,pushConfig:()=>Pe,registerEvent:()=>As,reinit:()=>vy,remove:()=>Rs,removeChars:()=>hg,removeCookie:()=>Xp,removeDelegatedEvent:()=>Kc,removeDuplicateProps:()=>ji,removeDuplicatesInArray:()=>Gn,removeFromArray:()=>Jd,removeFromObject:()=>Cp,removeNestedKeyByPath:()=>Ep,removeValueFromArray:()=>ai,removeValueFromArrayAll:()=>rp,reorderArrayByValues:()=>op,replaceLiteralsWithObjectFields:()=>tn,replaceOctalEscapeSequences:()=>fp,resolveAsset:()=>ye,resolveColorsInGradient:()=>Wc,resolveFileSource:()=>mm,resolveFileUrl:()=>It,resolveHandler:()=>Qn,resolvePropValue:()=>Lt,resolveSharedLibraries:()=>fg,returnSubThemeOrDefault:()=>US,returnValueAsText:()=>Dl,rgbArrayToHex:()=>vg,rgbToHSL:()=>xg,rgbToHex:()=>zS,runPluginHook:()=>eo,runThroughMedia:()=>Lg,scratchDefaultConfig:()=>ps,scratchSystem:()=>vs,scratchUtils:()=>bn,self:()=>Kd,semanticIcons:()=>i_,sequence:()=>jr,set:()=>po,setActiveConfig:()=>Og,setActiveDocument:()=>F_,setActiveRootState:()=>Xi,setClass:()=>NM,setClassname:()=>XL,setColor:()=>vn,setCookie:()=>Gp,setCssEngineHook:()=>ou,setCustomFont:()=>lc,setCustomFontMedia:()=>mn,setEach:()=>P_,setFont:()=>Ec,setFontFamily:()=>ys,setFontImport:()=>ds,setGradient:()=>xn,setHashedExtend:()=>Sl,setInCustomFontMedia:()=>Cg,setInObjectByPath:()=>Tp,setLang:()=>vu,setLocalStorage:()=>Yp,setMediaTheme:()=>Ac,setNodeStyles:()=>tc,setObserver:()=>Aw,setProps:()=>Wh,setPropsPrototype:()=>Ii,setSVG:()=>bs,setScalingVar:()=>gc,setShadow:()=>wn,setSubScalingVar:()=>$g,setSvgIcon:()=>Mc,setTheme:()=>Cc,setValue:()=>R_,setVariables:()=>x_,setWasmEngine:()=>qc,shadow:()=>n_,spacing:()=>QS,splitSpacedValue:()=>Ic,splitTopLevelCommas:()=>hn,splitTransition:()=>Ug,spotByPath:()=>qi,srcsetFor:()=>co,stringIncludesAny:()=>ui,stringToObject:()=>xp,svg:()=>u_,svgData:()=>f_,swapItemsInArray:()=>Qd,syncProps:()=>Fi,templates:()=>d_,theme:()=>r_,timing:()=>s_,toCamel:()=>pc,toCamelCase:()=>cs,toDashCase:()=>us,toDescriptionCase:()=>mg,toTitleCase:()=>gg,toggleFullscreen:()=>Zh,transformBackgroundImage:()=>Hg,transformBorder:()=>fr,transformBorderRadius:()=>Vc,transformBoxShadow:()=>zc,transformClassname:()=>X_,transformDuration:()=>Hc,transformShadow:()=>Wg,transformSize:()=>Se,transformSizeRatio:()=>ne,transformTextStroke:()=>zg,transformTransition:()=>O_,transformersByPrefix:()=>dm,transfromGap:()=>Vg,translate:()=>yu,triggerEventOn:()=>Er,triggerEventOnUpdate:()=>Ah,trimStringFromSymbols:()=>cp,typography:()=>uc,unit:()=>GS,unstackArrayOfObjects:()=>si,update:()=>Os,updateProps:()=>gh,updateVars:()=>BM,upsertTranslation:()=>xu,useCssInProps:()=>Ve,useHostState:()=>rk,usePropsAsCSS:()=>G_,useSelectorsAsCSS:()=>K_,variables:()=>os,vars:()=>g_,verbose:()=>io,warn:()=>ts,window:()=>C});module.exports=NF(v6);var Ke=null,ll=0,cl=[],Hn=()=>Ke,Aw=e=>{Ke=e};function Gt(e){let t=new Set;function r(){return Ke&&(t.add(Ke),Ke._sources.add(i)),e}function n(s){s!==e&&(e=s,Ow(t))}function o(){return e}let i={get:r,set:n,peek:o,_subscribers:t,_type:"signal"};return i}function Ew(e){let t,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){Vd(o);let i=Ke;Ke=o;try{let s=e();s!==t?(t=s,r=!1,Ow(n)):r=!1}finally{Ke=i}},_notify(){r=!0,n.size>0&&o._execute()},get(){return Ke&&(n.add(Ke),Ke._sources.add(o)),r&&o._execute(),t},peek(){return r&&o._execute(),t}};return o._execute(),o}var Wd=new Set,Hd=!1;function Re(e,t){let r=t?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;Vd(n);let o=Ke;Ke=n;try{e()}catch(i){console.error("[smbls] effect error:",i)}finally{Ke=o}},_notify(){n._disposed||(ll>0?cl.push(n):Tw(n))},dispose(){n._disposed=!0,Vd(n)}};return n._execute(),n}function Sr(e){ll++;try{e()}finally{ll--,ll===0&&WF()}}function Tw(e){Wd.add(e),Hd||(Hd=!0,queueMicrotask(zF))}function zF(){Hd=!1;let e=Array.from(Wd).sort((t,r)=>t._depth-r._depth);Wd=new Set;for(let t=0;t<e.length;t++){let r=e[t];r._disposed||r._execute()}}function WF(){for(let e=0;e<cl.length;e++)Tw(cl[e]);cl.length=0}function Ow(e){let t=Array.from(e);for(let r=0;r<t.length;r++)t[r]._notify()}function Vd(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var en=Symbol("store"),ul=Symbol("signals"),Ud=e=>!e||typeof e!="object"||Array.isArray(e)||e[en]||Object.isFrozen(e)||typeof Node<"u"&&e instanceof Node||e.__ref||e.nodeType||e.nodeName;function ft(e,t,r){r===void 0&&(r=0);let n={},o={},i=t&&t.maxDepth||8;if(e&&typeof e=="object")for(let y in e){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(e,y))continue;let b=e[y];r<i&&b&&typeof b=="object"&&!Ud(b)?(o[y]=b,n[y]=Gt(ft(b,t,r+1))):(o[y]=b,n[y]=Gt(b))}let s=new Proxy(o,{get(y,b){if(b===en)return!0;if(b===ul)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return c;if(b==="clean")return u;if(b==="keys")return d;if(b==="values")return f;if(b==="replace")return p;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return l;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(n,b))return n[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==s)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&Hn()!=null)return n[b]=Gt(void 0),n[b].get()},set(y,b,x){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=x,x&&typeof x=="object"&&!Ud(x)?n[b].set(ft(x,t,r+1)):n[b].set(x)):(y[b]=x,x&&typeof x=="object"&&!Ud(x)?n[b]=Gt(ft(x,t,r+1)):n[b]=Gt(x)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){Sr(()=>{for(let v in y)v!=="__proto__"&&(s[v]=y[v])});let x=o.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,s,x.context),s}function l(y){return a(y,{quiet:!0})}function c(y){if(y||(y=new Set),y.has(s))return"[Circular]";y.add(s);let b={};for(let x in n){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let v=n[x].peek();v&&v[en]?b[x]=v.parse(y):b[x]=v}return b}function u(){return Sr(()=>{for(let y in n)delete s[y]}),s}function d(){return Object.keys(n)}function f(){return Object.keys(n).map(y=>n[y].peek())}function p(y){return Sr(()=>{for(let b in n)b in y||delete s[b];for(let b in y)b!=="__proto__"&&(s[b]=y[b])}),s}function h(y,b){return s[y]=b,s}function g(y){return delete s[y],s}function m(){u(),o.__element=null,o.parent=null}return s}function Be(e){return e&&e[en]===!0}function Rw(e){return e[ul]}function fl(e,t){let r={},n={};if(e&&typeof e=="object")for(let s in e)n[s]=e[s],r[s]=Gt(e[s]);let o=s=>{if(Object.prototype.hasOwnProperty.call(r,s))return r;let a=t;for(;a;){let l=a[ul];if(l&&Object.prototype.hasOwnProperty.call(l,s))return l;a=a[en]?a[qd]:null}return null};return new Proxy(n,{get(s,a){return a===en?!0:a===ul?r:a===qd?t:a==="__raw"?s:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():t&&a!=="then"&&a!=="constructor"?t[a]:s[a]},set(s,a,l){let c=o(a);return c?(c===r&&(s[a]=l),c[a].set(l),!0):(s[a]=l,r[a]=Gt(l),!0)},has(s,a){if(a in r||a in s)return!0;let l=t;for(;l;){if(a in l)return!0;l=l[en]?l[qd]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(s,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(s,a)}})}var qd=Symbol("scope.parent");var bn={};R(bn,{CSS_NATIVE_COLOR_REGEX:()=>Qt,CSS_UNITS:()=>Un,applyMediaSequenceVars:()=>yn,applySequenceGlobalVars:()=>wc,applySequenceVars:()=>Dr,changeLightness:()=>VS,colorStringToRgbaArray:()=>sr,convertSvgToSymbol:()=>Sc,findHeadingLetter:()=>jg,findHeadings:()=>xc,generateSequence:()=>rt,generateSequencePosition:()=>v_,generateSprite:()=>gs,generateSubSequence:()=>bc,getColorShade:()=>Sg,getDefaultOrFirstKey:()=>uo,getFnPrefixAndValue:()=>Fr,getFontFace:()=>qS,getFontFaceEach:()=>fo,getFontFaceEachString:()=>Ag,getFontFaceString:()=>cc,getFontFormat:()=>kg,getRgbTone:()=>gn,getSequenceValue:()=>vc,getSequenceValueBySymbols:()=>Ig,getSequenceValuePropertyPair:()=>ur,getSubratio:()=>yc,getSubratioDifference:()=>mc,hexToRgb:()=>NS,hexToRgbArray:()=>bg,hexToRgba:()=>WS,hslToRgb:()=>wg,isCSSVar:()=>we,isGoogleFontsUrl:()=>fs,isResolvedColor:()=>ar,isScalingUnit:()=>Vn,mixTwoColors:()=>BS,mixTwoRgb:()=>HS,mixTwoRgba:()=>_g,numToLetterMap:()=>cr,opacify:()=>$r,parseColorToken:()=>Ir,resolveFileUrl:()=>It,returnSubThemeOrDefault:()=>US,rgbArrayToHex:()=>vg,rgbToHSL:()=>xg,rgbToHex:()=>zS,setCustomFont:()=>lc,setCustomFontMedia:()=>mn,setFontImport:()=>ds,setInCustomFontMedia:()=>Cg,setScalingVar:()=>gc,setSubScalingVar:()=>$g,setVariables:()=>x_,splitTopLevelCommas:()=>hn});var Vn=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Un=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];D();var sr=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&he&&C){let t=he.body.appendChild(he.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){he.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return he.body.removeChild(t),[0,0,0,0];e=C.getComputedStyle(t).color,he.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},BS=(e,t,r=.5)=>(e=sr(e),t=sr(t),_g(e,t,r)),NS=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(i=>parseInt(i,16));return`rgb(${r},${n},${o})`},bg=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(i=>parseInt(i,16));return[r,n,o]},zS=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),vg=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),WS=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(i=>parseInt(i,16));return`rgba(${r},${n},${o},${t})`},HS=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},VS=(e,t)=>{let[r,n,o]=t,i=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,i]},xg=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),i=1-Math.abs(n+n-o-1),s=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(s<0?s+6:s),i?o/i:0,(n+n-o)/2]},wg=(e,t,r,n=t*Math.min(r,1-r),o=(i,s=(i+e/30)%12)=>r-n*Math.max(Math.min(s-3,9-s,1),-1))=>[o(0),o(8),o(4)],Sg=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let i=(r&255)+t;return i>255?i=255:i<0&&(i=0),((i|o<<8|n<<16)+16777216).toString(16).slice(1)},_g=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let i=o===3?s=>s:Math.round;n[o]=i(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},$r=(e,t)=>{let r=sr(e);if(!r){an()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},we=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Qt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,VD=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Ir=e=>{if(!A(e))return null;if(Qt.test(e))return{passthrough:e};if(we(e))return{cssVar:e};let t=e.match(VD);if(!t)return null;let[,r,n,o]=t,i=n!==void 0?`0.${n}`:void 0,s=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:i,tone:s}},ar=e=>A(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),hn=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},gn=(e,t)=>{A(e)&&e.includes("rgb")&&(e=sr(e).join(", ")),A(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Kt(t)&&(t+="");let r=vg(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=Sg(r,parseFloat(t));return bg(o).join(", ")}else{let[o,i,s]=e,a=xg(o,i,s),[l,c,u]=a;return wg(l,c,parseFloat(t)/100*255)}};var US=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e};var It=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},uo=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},kg=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},fs=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),ds=e=>`@import url('${e}');`,Cg=e=>`@font-face { ${e} }`,lc=(e,t,r,n={})=>{let o=(Array.isArray(t)?t:[t]).filter(i=>typeof i=="string"&&i).map(i=>{let s=kg(i),a=s?` format('${s}')`:"";return`url('${i}')${a}`}).join(`,
26
+ }<\/script>`}});var Nh,A_=G(()=>{"use strict";Nh=e=>{if(!e)return"";let t=new Date(e),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),n=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)} ${n}, ${r}`}});var Bh,E_=G(()=>{"use strict";Bh=(e,t)=>{let r=setTimeout(()=>{let{props:n}=e;if(!t.clientHeight){let{node:{clientHeight:o}}=e;o&&(t.clientHeight=o)}if(t.active){if(n.height==="auto")return;e.update({height:t.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{e.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else e.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var Vh,O_=G(()=>{"use strict";Vh=function(t){let r=[0,1];for(let n=2;n<=t;n++)r[n]=r[n-1]+r[n-2];return r[t]}});var zh,T_=G(()=>{"use strict";zh=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function Qn(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${e}"]`);if(i)return o(i);let a=n.createElement("script");a.src=e,a.async=t.async===!0,a.type=t.type||"text/javascript",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${e}`))},n.head.appendChild(a)})}async function Kh(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${e}"]`);if(i)return o(i);let a=n.createElement("link");a.href=e,a.rel=t.rel||"stylesheet",a.type="text/css",a.media=t.media||"all",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${e}`))},n.head.appendChild(a)})}var Uh,Wh,Hh,qh,Gh,R_=G(()=>{"use strict";Uh=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=t,i.src=e,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${e}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),Wh=(e,t=document,r="text/javascript")=>new Promise((n,o)=>{let s=t.createElement("script");s.type=r,s.src=e;let i=t.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",t.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${e}`),t.body.removeChild(i),n()},s.onerror=()=>{t.body.removeChild(i),o(new Error(`Failed to load: ${e}`))},t.body.appendChild(s)}),Hh=(e,t=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",e,!1),o.send(),o.status===200){let s=t.createElement("script");s.type=n,s.text=o.responseText,t.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${e}`)},qh=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=e,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),Gh=(e,t=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=t,s.id=o,s.innerHTML=e,r.body.appendChild(s)}catch(s){console.warn(s)}}});function Q2(e,t){if(!t||typeof t!="object")return e;let r=o=>{if(!Z2(o))return o;let s=t[o];return s?.src?s.src:o},n={...e};for(let[o,s]of Object.entries(n))typeof s=="string"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i=="string"?r(i):i));return n}function Zl(e,t){if(!e||!t)return;let r=t.split("."),n=e;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function e$(e,t,r){let o=(t.config||t.settings||{}).polyglot||t.polyglot,s=r?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},l=r?.state||{},c={...e};for(let[u,d]of Object.entries(c))typeof d!="string"||!d.includes("{{")||(c[u]=d.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(f,p,h)=>{let g=p.trim();if(h==="polyglot")return a[g]??Zl(a,g)??f;if(h==="getLocalStateLang")return Zl(l,g+s)??f;let m=Zl(l,g);return m!==void 0?m:a[g]??Zl(a,g)??f}));return c}function P_(e){let t={...e};for(let[r,n]of Object.entries(t))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){t[r]=`{{ ${a[1]} }}`;continue}delete t[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){t[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){t[r]=`{{ ${i[1]} }}`;continue}}}return t}function Yh(e,t,r,{isProduction:n=!1,channel:o="production"}={}){let s=e.pages?.[t],i=S(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},l=P_(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=P_(u),f={};if(e.integrations?.seo?f={...e.integrations.seo,...d,...l}:Object.keys(d).length?f={...d,...l}:f={...l},!f.title){let g=e.name||e.key;g?n?f.title=g:o==="development"?f.title=`${g} / dev:symbo.ls`:o==="staging"?f.title=`${g} / staging:symbo.ls`:f.title=`${g} / symbo.ls`:f.title="Symbols demo"}f=e$(f,e,r),f.title&&(c.has("title")||!f["og:title"])&&(c.has("og:title")||(f["og:title"]=f.title)),f.description&&(c.has("description")||!f["og:description"])&&(c.has("og:description")||(f["og:description"]=f.description)),f.title&&!f["twitter:title"]&&(f["twitter:title"]=f.title),f.description&&!f["twitter:description"]&&(f["twitter:description"]=f.description);let p=r?.actualPathname||t;if(f["og:url"]||f.url){let g=(f["og:url"]||f.url||"").replace(/\/$/,"");if(g&&p&&p!=="/"){let m=p.startsWith("/")?p:"/"+p;f["og:url"]=g+m}}f=Q2(f,e.files);let h=e.name||e.app?.metadata?.title||e.app?.name||"";for(let[g,m]of Object.entries(f))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?f[g]=y:g==="title"?f[g]=h:delete f[g]}return f}var ut,J2,Xh,Z2,$_=G(()=>{"use strict";Ie();ut=e=>{if(e==null)return"";let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.toString().replace(/[&<>"']/g,r=>t[r])},J2=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${ut(r)}"`).join(" "),Xh=(e,t)=>(t||(e={...e,robots:"noindex"}),Object.entries(e).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${ut(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${ut(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${ut(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(u=>{if(typeof u=="string")n.push(`<link rel="icon" href="${ut(u)}">`);else if(typeof u=="object"){let d=J2(u);/rel=/.test(d)?n.push(`<link ${d}>`):n.push(`<link rel="icon" ${d}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(u=>{if(typeof u=="object"){let d=Object.entries(u).filter(([f,p])=>p!==void 0).map(([f,p])=>`${f}="${ut(p)}"`).join(" ");n.push(`<link rel="alternate" ${d}>`)}}),n;let i=(c,u,d="name")=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")n.push(`<meta ${d}="${ut(c)}" content="${ut(u)}">`);else if(Array.isArray(u))u.forEach(f=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${d}="${ut(c)}" content="${ut(f)}">`);else if(typeof f=="object"){let p=Object.entries(f).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${ut(g)}"`).join(" ");n.push(`<meta ${p}>`)}});else if(typeof u=="object"){let f=Object.entries(u).filter(([p,h])=>h!==void 0).map(([p,h])=>`${p}="${ut(h)}"`).join(" ");n.push(`<meta ${f}>`)}};if(o.startsWith("http-equiv:")){let c=o.replace("http-equiv:","");return i(c,s,"http-equiv"),n}if(o.startsWith("itemprop:")){let c=o.replace("itemprop:","");return i(c,s,"itemprop"),n}let l=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(c=>o.startsWith(c));if(l){let c=o.replace(l,"");return i(`${l.replace(":","")}:${c}`,s,l==="twitter:"||l==="DC:"||l==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let c=o.startsWith("apple:")?"apple-":"msapplication-",u=o.replace(/^apple:|^msapplication:/,"");return i(`${c}${u}`,s,"name"),n}return i(o,s),n},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
27
+ `)),Z2=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")});var Ql,Jh,I_=G(()=>{"use strict";Ie();Ql=(e,t)=>(P(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Jh=(e,t)=>(e=parseFloat(e),S(t)&&(t=Object.values(t)),Ql(e,t))});function eo(e){let t=String(e||"").trim();if(!t)return{owner:F_,key:"",full:""};let r=null,n=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=F_);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function ec(e,t={}){if((t.provider||"kv")==="api")return j_(e,t);let n=await n$(e,t);return n||j_(e,t)}async function n$(e,t={}){let r=t.kvBaseUrl||t$,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function j_(e,t={}){let r=t.apiBaseUrl||r$,{key:n}=eo(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),l=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(p=>{let{key:h}=eo(p?.key);return h.toLowerCase()===n.toLowerCase()});if(!l?.id&&!l?._id)return null;let c=l.id||l._id,u=`${r}/core/projects/${encodeURIComponent(c)}/data?branch=main`,d=await fetch(u,{method:"GET"});if(!d.ok)return null;let f=await d.json();return f?.data||f||null}catch{return null}}async function Zh(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async n=>{if(S(n))return n;if(k(n)){let{full:o}=eo(n);if(!o)return null;try{let s=await ec(o,t);return s||console.warn(`[smbls] Shared library "${o}" not found`),s}catch(s){return console.warn(`[smbls] Failed to fetch shared library "${o}":`,s.message),null}}return null}))).filter(Boolean)}var F_,t$,r$,ti,ri,D_=G(()=>{"use strict";Ie();F_="system",t$="https://smbls-kv.nika-980.workers.dev",r$="https://api.symbols.app";ti=(e,t)=>{for(let r in t)r in e?S(e[r])&&S(t[r])&&ti(e[r],t[r]):e[r]=t[r]},ri=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(S(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(S(n[o])&&S(e[o]))if(o==="designSystem")ti(e[o],n[o]);else for(let s in n[o])s in e[o]||(e[o][s]=n[o][s]);else o in e||(e[o]=n[o])}}}});var Qh,eg,tg,ni,rg,oi,ng,ln,L_=G(()=>{"use strict";Ie();Qh=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},eg=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},tg=e=>e.replace(/[^a-zA-Z0-9_]/g,""),ni=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),rg=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),oi=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),ng=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},ln=e=>{if(P(e))return e;if(k(e))return e.split(" ");if(S(e))return Object.values(e);if(Ut(e))return[e]}});var og,M_=G(()=>{"use strict";og=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}});var Ye,to,si,ii,N_=G(()=>{"use strict";Ye=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},to=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},si=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return to(t,{keepOneX:!1})},ii=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:to(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=to(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var B_={};K(B_,{CDN_PROVIDERS:()=>At,DOMQL_EVENTS:()=>op,DOMQ_PROPERTIES:()=>vr,ENV:()=>vp,HTML_TAGS:()=>Gn,METHODS:()=>Vn,METHODS_EXL:()=>as,NODE_ENV:()=>St,OPTIONS:()=>Rs,PACKAGE_MANAGER_TO_CDN:()=>Or,PARSED_DOMQ_PROPERTIES:()=>is,PROPS_METHODS:()=>_r,STATE_METHODS:()=>en,STATE_PROPERTIES:()=>np,SVG_TAGS:()=>N0,TYPES:()=>Qo,UNIVERSAL_RESERVED_KEYS:()=>Jl,addCaching:()=>jl,addContext:()=>Fl,addExtend:()=>Hp,addExtends:()=>Xe,addItemAfterEveryElement:()=>Wd,addProtoToArray:()=>rs,addRef:()=>Pl,applyDependentState:()=>uh,applyEvent:()=>Vl,applyEventUpdate:()=>zl,applyExtends:()=>z0,applyProps:()=>ks,arrayContainsOtherArray:()=>Ld,arraysEqual:()=>qd,arrayzeValue:()=>ln,buildImgSrcset:()=>si,buildSourcesAndImg:()=>ii,cache:()=>gh,call:()=>Ih,captureSnapshot:()=>jh,checkForStateTypes:()=>ih,checkIfInherits:()=>Bl,checkIfStringIsInArray:()=>Xd,clone:()=>ip,cloneAndMergeArrayExtend:()=>ms,cloneFunction:()=>Tp,concatAddExtends:()=>zp,copyJavaScriptToClipboard:()=>eg,copyStringToClipboard:()=>Qh,createBasedOnType:()=>Rl,createElement:()=>sh,createElementExtends:()=>bl,createExtends:()=>bs,createExtendsFromKeys:()=>Kn,createExtendsStack:()=>wl,createIfConditionFlag:()=>Rp,createInheritedState:()=>ah,createKey:()=>hs,createNestedObject:()=>pp,createNestedObjectByKeyPath:()=>ch,createObjectWithoutPrototype:()=>fl,createParent:()=>$l,createPath:()=>Il,createProps:()=>Cs,createPropsStack:()=>Ol,createRoot:()=>oh,createScope:()=>dh,createSnapshotId:()=>ps,customDecodeURIComponent:()=>rp,customEncodeURIComponent:()=>tp,cutArrayAfterValue:()=>zd,cutArrayBeforeValue:()=>Vd,debounce:()=>gs,debounceOnContext:()=>Ap,decodeNewlines:()=>ep,deepClone:()=>ge,deepContains:()=>fp,deepDefaults:()=>ti,deepDestringifyFunctions:()=>Wt,deepExtend:()=>yl,deepMerge:()=>fe,deepMergeExtends:()=>Ht,deepStringifyFunctions:()=>ls,defineSetter:()=>Ph,destringifyGlobalScope:()=>us,detectHeightOnInit:()=>Bh,detectInfiniteLoop:()=>yp,document:()=>pe,encodeNewlines:()=>Qd,error:()=>an,excludeKeysFromObject:()=>xp,exec:()=>de,extendCachedRegistry:()=>Up,extendStackRegistry:()=>xs,extractArrayExtend:()=>_s,fetchLibraryData:()=>ec,fibonacciNumberByIndex:()=>Vh,filterArrays:()=>Gd,filterArraysFast:()=>Kd,finalizeExtends:()=>Sl,findClosestNumber:()=>Ql,findClosestNumberInFactory:()=>Jh,findInheritedState:()=>Nl,findKeyPosition:()=>Jd,flattenExtend:()=>Xn,formatDate:()=>Nh,generateHash:()=>hl,generateKey:()=>ds,generateMetaTags:()=>Xh,get:()=>Oh,getCDNUrl:()=>Et,getCapitalCaseKeys:()=>Kp,getCdnProviderFromConfig:()=>Zn,getChildStateInKey:()=>Ml,getChildren:()=>Vs,getContext:()=>Ks,getCookie:()=>jp,getDB:()=>Qs,getEmotionStylesheet:()=>og,getExtendsInElement:()=>qp,getExtendsStack:()=>ys,getExtendsStackRegistry:()=>ml,getFrequencyInArray:()=>Md,getHashedExtend:()=>vs,getImportMapScript:()=>Mh,getInObjectByPath:()=>mp,getLocalStorage:()=>Lp,getNev:()=>kp,getPageMetadata:()=>Yh,getParentStateInKey:()=>Ll,getPath:()=>zs,getQuery:()=>ei,getRef:()=>Rh,getRoot:()=>Hs,getRootContext:()=>Gs,getRootData:()=>qs,getRootState:()=>Ws,getRootStateInKey:()=>Dl,getSpreadChildren:()=>Xp,global:()=>Fd,hasFunction:()=>Un,hasHandlerPlugin:()=>Wn,hasOwnProperty:()=>lp,inheritChildExtends:()=>vl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>As,inheritRecursiveChildExtends:()=>_l,initProps:()=>th,is:()=>Ge,isArray:()=>P,isBoolean:()=>il,isContextComponent:()=>Yp,isCyclic:()=>bp,isDOMNode:()=>He,isDate:()=>ll,isDefined:()=>qe,isDevelopment:()=>Sr,isEmpty:()=>cl,isEmptyObject:()=>cp,isEqualDeep:()=>ul,isFunction:()=>O,isHtmlElement:()=>Jo,isLocal:()=>Sp,isMethod:()=>Fh,isMobile:()=>Ip,isNode:()=>rr,isNot:()=>Dd,isNotProduction:()=>nn,isNull:()=>al,isNumber:()=>Ut,isObject:()=>S,isObjectLike:()=>re,isPhoto:()=>zh,isProduction:()=>wr,isStaging:()=>wp,isState:()=>lh,isString:()=>k,isStringFunction:()=>Op,isTest:()=>pl,isTesting:()=>_p,isUndefined:()=>$e,isUniversallyReservedKey:()=>Dh,isValidHtmlTag:()=>Np,joinArrays:()=>Mn,jointStacks:()=>Wp,keys:()=>Xl,loadCssFile:()=>qh,loadJavascript:()=>Gh,loadJavascriptFile:()=>Uh,loadJavascriptFileEmbedSync:()=>Hh,loadJavascriptFileSync:()=>Wh,loadRemoteCSS:()=>Kh,loadRemoteScript:()=>Qn,log:()=>$h,logGroupIf:()=>$p,logIf:()=>Pp,lookdown:()=>Ah,lookdownAll:()=>Eh,lookup:()=>Ch,lowercaseFirstLetter:()=>Qr,makeObjectWithoutPrototype:()=>up,map:()=>sp,mapStringsWithContextComponents:()=>ws,matchesComponentNaming:()=>qt,memoize:()=>Ep,merge:()=>ye,mergeSharedLibraries:()=>ri,nextElement:()=>Ys,normalizeLibraryKey:()=>eo,objectToString:()=>cs,objectizeStringProperty:()=>Ss,overwrite:()=>fs,overwriteDeep:()=>Ke,overwriteShallow:()=>rn,overwriteState:()=>fh,parse:()=>Yl,parseDeep:()=>Ns,pickupElementFromProps:()=>Al,pickupPropsFromElement:()=>Cl,previousElement:()=>Js,propExists:()=>Qp,propertizeElement:()=>El,propertizeUpdate:()=>Zp,remove:()=>b_,removeChars:()=>tg,removeCookie:()=>Dp,removeDuplicateProps:()=>Os,removeDuplicatesInArray:()=>Nn,removeFromArray:()=>Nd,removeFromObject:()=>dp,removeNestedKeyByPath:()=>hp,removeValueFromArray:()=>ts,removeValueFromArrayAll:()=>Ud,reorderArrayByValues:()=>Hd,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>Zd,resolveAsset:()=>Ye,resolveHandler:()=>Hn,resolveSharedLibraries:()=>Zh,returnValueAsText:()=>Tl,runPluginHook:()=>kt,self:()=>jd,setActiveRootState:()=>Us,setCookie:()=>Fp,setHashedExtend:()=>gl,setInObjectByPath:()=>gp,setLocalStorage:()=>Mp,setNodeStyles:()=>Kl,setProps:()=>Th,setPropsPrototype:()=>Es,spotByPath:()=>Bs,srcsetFor:()=>to,stringIncludesAny:()=>os,stringToObject:()=>ap,swapItemsInArray:()=>Bd,syncProps:()=>Ts,toCamelCase:()=>ni,toDashCase:()=>oi,toDescriptionCase:()=>ng,toTitleCase:()=>rg,toggleFullscreen:()=>Lh,triggerEventOn:()=>kr,triggerEventOnUpdate:()=>ph,trimStringFromSymbols:()=>Yd,unstackArrayOfObjects:()=>es,update:()=>eh,updateProps:()=>rh,variables:()=>Zs,verbose:()=>Jn,warn:()=>Xs,window:()=>A});var D=G(()=>{"use strict";dl();Cp();Ie();nr();qn();Bn();Zo();D0();L0();ss();Yo();M0();Bp();Gp();nh();kl();K0();X0();zn();Y0();__();mh();w_();hh();S_();k_();C_();A_();E_();O_();T_();R_();$_();I_();D_();L_();M_();N_()});var MC=Od((O7,LC)=>{var wo=1e3,So=wo*60,ko=So*60,Sn=ko*24,Cj=Sn*7,Aj=Sn*365.25;LC.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Ej(e);if(r==="number"&&isFinite(e))return t.long?Tj(e):Oj(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ej(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Aj;case"weeks":case"week":case"w":return r*Cj;case"days":case"day":case"d":return r*Sn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ko;case"minutes":case"minute":case"mins":case"min":case"m":return r*So;case"seconds":case"second":case"secs":case"sec":case"s":return r*wo;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Oj(e){var t=Math.abs(e);return t>=Sn?Math.round(e/Sn)+"d":t>=ko?Math.round(e/ko)+"h":t>=So?Math.round(e/So)+"m":t>=wo?Math.round(e/wo)+"s":e+"ms"}function Tj(e){var t=Math.abs(e);return t>=Sn?Eu(e,t,Sn,"day"):t>=ko?Eu(e,t,ko,"hour"):t>=So?Eu(e,t,So,"minute"):t>=wo?Eu(e,t,wo,"second"):e+" ms"}function Eu(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var BC=Od((T7,NC)=>{function Rj(e){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=o,r.enabled=a,r.humanize=MC(),r.destroy=c,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let d=0;for(let f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(u){let d,f=null,p,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),v=b-(d||b);y.diff=v,y.prev=d,y.curr=b,d=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let x=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(C,E)=>{if(C==="%%")return"%";x++;let F=r.formatters[E];if(typeof F=="function"){let w=m[x];C=F.call(y,w),m.splice(x,1),x--}return C}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=u,g.useColors=r.useColors(),g.color=r.selectColor(u),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==r.namespaces&&(p=r.namespaces,h=r.enabled(u)),h),set:m=>{f=m}}),typeof r.init=="function"&&r.init(g),g}function n(u,d){let f=r(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function o(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of d)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}function s(u,d){let f=0,p=0,h=-1,g=0;for(;f<u.length;)if(p<d.length&&(d[p]===u[f]||d[p]==="*"))d[p]==="*"?(h=p,g=f,p++):(f++,p++);else if(h!==-1)p=h+1,g++,f=g;else return!1;for(;p<d.length&&d[p]==="*";)p++;return p===d.length}function i(){let u=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),u}function a(u){for(let d of r.skips)if(s(u,d))return!1;for(let d of r.names)if(s(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}NC.exports=Rj});var VC=Od((Ze,Ou)=>{Ze.formatArgs=$j;Ze.save=Ij;Ze.load=Fj;Ze.useColors=Pj;Ze.storage=jj();Ze.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ze.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Pj(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function $j(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Ou.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}Ze.log=console.debug||console.log||(()=>{});function Ij(e){try{e?Ze.storage.setItem("debug",e):Ze.storage.removeItem("debug")}catch{}}function Fj(){let e;try{e=Ze.storage.getItem("debug")||Ze.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function jj(){try{return localStorage}catch{}}Ou.exports=BC()(Ze);var{formatters:Dj}=Ou.exports;Dj.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var wB={};K(wB,{ANIMATION_PROPS:()=>Ug,ARIA_ROLES:()=>xI,ATTR_TRANSFORMS:()=>om,BLOCK_PROPS:()=>Wg,CDN_PROVIDERS:()=>At,CONFIG:()=>ac,CSS_NATIVE_COLOR_REGEX:()=>Kt,CSS_PROPS_REGISTRY:()=>Se,CSS_UNITS:()=>Ln,DEFAULT_CONFIG:()=>Ri,DEFAULT_CSS_PROPERTIES_LIST:()=>Le,DELEGATED_EVENTS:()=>wi,DESIGN_SYSTEM_OPTIONS:()=>fy,DOMQL_EVENTS:()=>op,DOMQ_PROPERTIES:()=>vr,DOM_EVENTS:()=>aS,ENV:()=>vp,FACTORY:()=>ir,FLEX_PROPS:()=>Xg,FONT_PROPS:()=>Hg,GRID_PROPS:()=>Yg,HTML_ATTRIBUTES:()=>zc,HTML_TAGS:()=>Gn,LIFECYCLE_EVENTS:()=>vn,METHODS:()=>Vn,METHODS_EXL:()=>as,MISC_PROPS:()=>qg,MIXINS:()=>Ng,NODE_ENV:()=>St,OPTIONS:()=>Rs,PACKAGE_MANAGER_TO_CDN:()=>Or,PARSED_DOMQ_PROPERTIES:()=>is,POSITION_PROPS:()=>Gg,PROPS_METHODS:()=>_r,REGISTRY:()=>Je,ROUTER_OPTIONS:()=>ru,STATE_PROPERTIES:()=>np,SVG_TAGS:()=>vi,THEME_PROPS:()=>Kg,TIMING_PROPS:()=>Ei,TYPES:()=>Qo,UNIVERSAL_RESERVED_KEYS:()=>Jl,VALUE_TRANSFORMERS:()=>Ig,activateConfig:()=>f$,addCaching:()=>jl,addContext:()=>Fl,addDelegatedEvent:()=>Bc,addExtend:()=>Hp,addExtends:()=>Xe,addItemAfterEveryElement:()=>Wd,addMethods:()=>Ti,addProtoToArray:()=>rs,addRef:()=>Pl,animation:()=>fw,appendSVGSprite:()=>Rc,appendSvgIconsSprite:()=>$c,applyAttrTransforms:()=>am,applyCSS:()=>iy,applyDependentState:()=>uh,applyDocument:()=>Tc,applyEvent:()=>Vl,applyEventUpdate:()=>zl,applyExtends:()=>ki,applyHeadings:()=>Cg,applyInitialState:()=>rm,applyMediaSequenceVars:()=>dn,applyProps:()=>ks,applyReset:()=>Ic,applySequenceGlobalVars:()=>hc,applySequenceVars:()=>$r,applySpacingSequence:()=>Cc,applyStateMethods:()=>gt,applyTimingSequence:()=>Oc,applyTrueProps:()=>Zg,applyTypographySequence:()=>wc,arrayContainsOtherArray:()=>Ld,arraysEqual:()=>qd,arrayzeValue:()=>ln,batch:()=>xr,breakpoints:()=>cw,buildImgSrcset:()=>si,buildSourcesAndImg:()=>ii,cache:()=>gh,cacheNode:()=>xn,call:()=>Ih,captureSnapshot:()=>jh,changeGlobalTheme:()=>Fg,changeLightness:()=>q_,checkAttributeByTagName:()=>jr,checkEventFunctions:()=>im,checkForStateTypes:()=>ih,checkIfBoxSize:()=>kc,checkIfInherits:()=>Bl,checkIfStringIsInArray:()=>Xd,class:()=>mw,clone:()=>ip,cloneAndMergeArrayExtend:()=>ms,cloneFunction:()=>Tp,color:()=>rw,colorStringToRgbaArray:()=>or,components:()=>uo,concatAddExtends:()=>zp,convertSvgToSymbol:()=>gc,copyJavaScriptToClipboard:()=>eg,copyStringToClipboard:()=>Qh,create:()=>C0,createAsync:()=>xB,createBasedOnType:()=>Rl,createComputed:()=>T0,createConfig:()=>yg,createDefine:()=>A1,createEffect:()=>Ee,createElement:()=>sh,createElementExtends:()=>bl,createExtends:()=>bs,createExtendsFromKeys:()=>Kn,createExtendsStack:()=>wl,createHTMLNode:()=>xi,createIfConditionFlag:()=>Rp,createInheritedState:()=>ah,createKey:()=>hs,createNestedObject:()=>pp,createNestedObjectByKeyPath:()=>ch,createObjectWithoutPrototype:()=>fl,createParent:()=>$l,createPath:()=>Il,createProps:()=>Cs,createPropsStack:()=>Ol,createRoot:()=>oh,createScope:()=>dh,createScopeStore:()=>sl,createSignal:()=>zt,createSkeleton:()=>_B,createSnapshotId:()=>ps,createState:()=>tS,createStore:()=>lt,createSync:()=>vB,css:()=>Ir,cssMediaVars:()=>gg,cssVars:()=>hg,customDecodeURIComponent:()=>rp,customEncodeURIComponent:()=>tp,cutArrayAfterValue:()=>zd,cutArrayBeforeValue:()=>Vd,debounce:()=>gs,debounceOnContext:()=>Ap,decodeNewlines:()=>ep,deepClone:()=>ge,deepContains:()=>fp,deepDefaults:()=>ti,deepDestringifyFunctions:()=>Wt,deepExtend:()=>yl,deepMerge:()=>fe,deepMergeExtends:()=>Ht,deepStringifyFunctions:()=>ls,defaultDefine:()=>ho,defineSetter:()=>Ph,destringifyGlobalScope:()=>us,destroy:()=>ji,detectHeightOnInit:()=>Bh,detectInfiniteLoop:()=>yp,detectTag:()=>bn,devices:()=>uw,dispose:()=>_n,encodeNewlines:()=>Qd,error:()=>an,excludeKeysFromObject:()=>xp,exec:()=>de,executeAttr:()=>_I,exetuteClassPerComponent:()=>lI,extendCachedRegistry:()=>Up,extendStackRegistry:()=>xs,extractArrayExtend:()=>_s,extractConditionalAttrs:()=>kI,fetchLibraryData:()=>ec,fibonacciNumberByIndex:()=>Vh,filterArrays:()=>Gd,filterArraysFast:()=>Kd,filterAttributesByTagName:()=>vI,finalizeExtends:()=>Sl,findClosestNumber:()=>Ql,findClosestNumberInFactory:()=>Jh,findHeadingLetter:()=>_g,findHeadings:()=>pc,findInheritedState:()=>Nl,findKeyPosition:()=>Jd,flattenExtend:()=>Xn,font:()=>Y_,fontFace:()=>Q_,fontFamily:()=>J_,fontFamilyTypes:()=>Z_,formatDate:()=>Nh,generateHash:()=>hl,generateKey:()=>ds,generateMetaTags:()=>Xh,generateSequence:()=>et,generateSequencePosition:()=>_w,generateSprite:()=>di,generateSubSequence:()=>fc,get:()=>Oh,getActiveConfig:()=>T,getActiveDocument:()=>Lg,getActiveLang:()=>Li,getCDNUrl:()=>Et,getCacheSize:()=>Nw,getCapitalCaseKeys:()=>Kp,getCdnProviderFromConfig:()=>Zn,getChildStateInKey:()=>Ml,getChildren:()=>Vs,getColor:()=>me,getColorShade:()=>cg,getContext:()=>Ks,getCookie:()=>jp,getDB:()=>Qs,getDefaultOrFirstKey:()=>ro,getEmotionStylesheet:()=>og,getExtendsInElement:()=>qp,getExtendsStack:()=>ys,getExtendsStackRegistry:()=>ml,getFnPrefixAndValue:()=>Pr,getFontFace:()=>K_,getFontFaceEach:()=>no,getFontFaceEachString:()=>pg,getFontFaceString:()=>rc,getFontFamily:()=>_c,getFontFormat:()=>fg,getFontSizeByKey:()=>Sc,getFrequencyInArray:()=>Md,getHashedExtend:()=>vs,getImportMapScript:()=>Mh,getInObjectByPath:()=>mp,getLanguages:()=>su,getLocalStateLang:()=>uu,getLocalStorage:()=>Lp,getMediaColor:()=>De,getMediaTheme:()=>Tt,getNev:()=>kp,getObserver:()=>jn,getPageMetadata:()=>Yh,getParentStateInKey:()=>Ll,getPath:()=>zs,getQuery:()=>ei,getRef:()=>Rh,getRgbTone:()=>un,getRoot:()=>Hs,getRootContext:()=>Gs,getRootData:()=>qs,getRootState:()=>Ws,getRootStateInKey:()=>Dl,getSequenceValue:()=>dc,getSequenceValueBySymbols:()=>vg,getSequenceValuePropertyPair:()=>lr,getShadow:()=>Ec,getSignals:()=>$0,getSpacingBasedOnRatio:()=>Xt,getSpacingByKey:()=>Te,getSpreadChildren:()=>Xp,getSubratio:()=>uc,getSubratioDifference:()=>cc,getSystemGlobalTheme:()=>ht,getTheme:()=>yc,getTimingByKey:()=>ft,getTimingFunction:()=>Rt,global:()=>Fd,gradient:()=>nw,grid:()=>gw,hasFunction:()=>Un,hasHandlerPlugin:()=>Wn,hasOwnProperty:()=>lp,hexToRgb:()=>z_,hexToRgbArray:()=>sg,hexToRgba:()=>W_,hslToRgb:()=>lg,icons:()=>iw,inheritChildExtends:()=>vl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>As,inheritRecursiveChildExtends:()=>_l,init:()=>po,initPolyglot:()=>dy,initProps:()=>th,injectGlobal:()=>we,is:()=>Ge,isArray:()=>P,isBoolean:()=>il,isCSSVar:()=>xe,isContextComponent:()=>Yp,isCyclic:()=>bp,isDOMNode:()=>He,isDate:()=>ll,isDefined:()=>qe,isDevelopment:()=>Sr,isEmpty:()=>cl,isEmptyObject:()=>cp,isEqualDeep:()=>ul,isFunction:()=>O,isGoogleFontsUrl:()=>li,isHtmlElement:()=>Jo,isLocal:()=>Sp,isMethod:()=>Fh,isMobile:()=>Ip,isNode:()=>rr,isNot:()=>Dd,isNotProduction:()=>nn,isNull:()=>al,isNumber:()=>Ut,isObject:()=>S,isObjectLike:()=>re,isPhoto:()=>zh,isProduction:()=>wr,isResolvedColor:()=>sr,isScalingUnit:()=>Dn,isStaging:()=>wp,isState:()=>lh,isStore:()=>je,isString:()=>k,isStringFunction:()=>Op,isSvgTag:()=>_i,isTest:()=>pl,isTesting:()=>_p,isTracking:()=>sS,isUndefined:()=>$e,isUniversallyReservedKey:()=>Dh,isValidHtmlTag:()=>Np,isValidTag:()=>bi,isWasmLoaded:()=>p1,joinArrays:()=>Mn,jointStacks:()=>Wp,keyframes:()=>yi,keys:()=>Xl,loadCssFile:()=>qh,loadJavascript:()=>Gh,loadJavascriptFile:()=>Uh,loadJavascriptFileEmbedSync:()=>Hh,loadJavascriptFileSync:()=>Wh,loadRemoteCSS:()=>Kh,loadRemoteScript:()=>Qn,loadTranslations:()=>au,loadWasm:()=>d1,log:()=>$h,logGroupIf:()=>$p,logIf:()=>Pp,lookdown:()=>Ah,lookdownAll:()=>Eh,lookup:()=>Ch,lowercaseFirstLetter:()=>Qr,makeObjectWithoutPrototype:()=>up,map:()=>sp,mapStringsWithContextComponents:()=>ws,matchesComponentNaming:()=>qt,media:()=>ew,memoize:()=>Ep,merge:()=>ye,mergeSharedLibraries:()=>ri,mixTwoColors:()=>V_,mixTwoRgb:()=>H_,mixTwoRgba:()=>ug,nextElement:()=>Ys,normalizeLibraryKey:()=>eo,numToLetterMap:()=>ar,objectToString:()=>cs,objectizeStringProperty:()=>Ss,opacify:()=>ai,overwrite:()=>fs,overwriteDeep:()=>Ke,overwriteShallow:()=>rn,overwriteState:()=>fh,parse:()=>Yl,parseColorToken:()=>Tr,parseDeep:()=>Ns,pickupElementFromProps:()=>Al,pickupPropsFromElement:()=>Cl,polyglotFunctions:()=>Mi,polyglotPlugin:()=>fu,popConfig:()=>_e,previousElement:()=>Js,propExists:()=>Qp,propertizeElement:()=>El,propertizeUpdate:()=>Zp,pushConfig:()=>Oe,registerEvent:()=>Si,reinit:()=>sy,remove:()=>Ai,removeChars:()=>tg,removeCookie:()=>Dp,removeDelegatedEvent:()=>Vc,removeDuplicateProps:()=>Os,removeDuplicatesInArray:()=>Nn,removeFromArray:()=>Nd,removeFromObject:()=>dp,removeNestedKeyByPath:()=>hp,removeValueFromArray:()=>ts,removeValueFromArrayAll:()=>Ud,reorderArrayByValues:()=>Hd,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>Zd,resolveAsset:()=>Ye,resolveColorsInGradient:()=>jc,resolveFileSource:()=>nm,resolveFileUrl:()=>Ot,resolveHandler:()=>Hn,resolvePropValue:()=>Fr,resolveSharedLibraries:()=>Zh,returnSubThemeOrDefault:()=>G_,returnValueAsText:()=>Tl,rgbArrayToHex:()=>ig,rgbToHSL:()=>ag,rgbToHex:()=>U_,runPluginHook:()=>kt,runThroughMedia:()=>kg,scratchDefaultConfig:()=>ui,scratchSystem:()=>mi,scratchUtils:()=>pn,self:()=>jd,semanticIcons:()=>aw,sequence:()=>Rr,set:()=>oo,setActiveConfig:()=>mg,setActiveDocument:()=>Lw,setActiveRootState:()=>Us,setClass:()=>QI,setClassname:()=>cI,setColor:()=>hn,setCookie:()=>Fp,setCssEngineHook:()=>Zc,setCustomFont:()=>tc,setCustomFontMedia:()=>fn,setEach:()=>Iw,setFont:()=>vc,setFontFamily:()=>hi,setFontImport:()=>ci,setGradient:()=>gn,setHashedExtend:()=>gl,setInCustomFontMedia:()=>dg,setInObjectByPath:()=>gp,setLang:()=>lu,setLocalStorage:()=>Mp,setMediaTheme:()=>xc,setNodeStyles:()=>Kl,setObserver:()=>O0,setProps:()=>Th,setPropsPrototype:()=>Es,setSVG:()=>gi,setScalingVar:()=>lc,setShadow:()=>mn,setSubScalingVar:()=>xg,setSvgIcon:()=>Pc,setTheme:()=>bc,setValue:()=>$w,setVariables:()=>ww,setWasmEngine:()=>Nc,shadow:()=>sw,spacing:()=>tw,splitSpacedValue:()=>Ac,splitTopLevelCommas:()=>cn,splitTransition:()=>$g,spotByPath:()=>Bs,srcsetFor:()=>to,stringIncludesAny:()=>os,stringToObject:()=>ap,svg:()=>dw,svgData:()=>pw,swapItemsInArray:()=>Bd,syncProps:()=>Ts,templates:()=>hw,theme:()=>ow,timing:()=>lw,toCamel:()=>ic,toCamelCase:()=>ni,toDashCase:()=>oi,toDescriptionCase:()=>ng,toTitleCase:()=>rg,toggleFullscreen:()=>Lh,transformBackgroundImage:()=>Rg,transformBorder:()=>cr,transformBorderRadius:()=>Lc,transformBoxShadow:()=>Fc,transformClassname:()=>Jw,transformDuration:()=>Dc,transformShadow:()=>Tg,transformSize:()=>ve,transformSizeRatio:()=>ne,transformTextStroke:()=>Og,transformTransition:()=>Pw,transformersByPrefix:()=>Qg,transfromGap:()=>Pg,translate:()=>iu,triggerEventOn:()=>kr,triggerEventOnUpdate:()=>ph,trimStringFromSymbols:()=>Yd,typography:()=>nc,unit:()=>X_,unstackArrayOfObjects:()=>es,update:()=>Ci,updateProps:()=>rh,updateVars:()=>ZI,upsertTranslation:()=>cu,useCssInProps:()=>tt,useHostState:()=>oS,usePropsAsCSS:()=>Xw,useSelectorsAsCSS:()=>Yw,variables:()=>Zs,vars:()=>yw,verbose:()=>Jn,warn:()=>Xs,window:()=>A});module.exports=e2(wB);var We=null,rl=0,nl=[],jn=()=>We,O0=e=>{We=e};function zt(e){let t=new Set;function r(){return We&&(t.add(We),We._sources.add(s)),e}function n(i){i!==e&&(e=i,P0(t))}function o(){return e}let s={get:r,set:n,peek:o,_subscribers:t,_type:"signal"};return s}function T0(e){let t,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){Pd(o);let s=We;We=o;try{let i=e();i!==t?(t=i,r=!1,P0(n)):r=!1}finally{We=s}},_notify(){r=!0,n.size>0&&o._execute()},get(){return We&&(n.add(We),We._sources.add(o)),r&&o._execute(),t},peek(){return r&&o._execute(),t}};return o._execute(),o}var Td=new Set,Rd=!1;function Ee(e,t){let r=t?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;Pd(n);let o=We;We=n;try{e()}catch(s){console.error("[smbls] effect error:",s)}finally{We=o}},_notify(){n._disposed||(rl>0?nl.push(n):R0(n))},dispose(){n._disposed=!0,Pd(n)}};return n._execute(),n}function xr(e){rl++;try{e()}finally{rl--,rl===0&&r2()}}function R0(e){Td.add(e),Rd||(Rd=!0,queueMicrotask(t2))}function t2(){Rd=!1;let e=Array.from(Td).sort((t,r)=>t._depth-r._depth);Td=new Set;for(let t=0;t<e.length;t++){let r=e[t];r._disposed||r._execute()}}function r2(){for(let e=0;e<nl.length;e++)R0(nl[e]);nl.length=0}function P0(e){let t=Array.from(e);for(let r=0;r<t.length;r++)t[r]._notify()}function Pd(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var Jr=Symbol("store"),ol=Symbol("signals"),$d=e=>!e||typeof e!="object"||Array.isArray(e)||e[Jr]||Object.isFrozen(e)||typeof Node<"u"&&e instanceof Node||e.__ref||e.nodeType||e.nodeName;function lt(e,t,r){r===void 0&&(r=0);let n={},o={},s=t&&t.maxDepth||8;if(e&&typeof e=="object")for(let y in e){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(e,y))continue;let b=e[y];r<s&&b&&typeof b=="object"&&!$d(b)?(o[y]=b,n[y]=zt(lt(b,t,r+1))):(o[y]=b,n[y]=zt(b))}let i=new Proxy(o,{get(y,b){if(b===Jr)return!0;if(b===ol)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return c;if(b==="clean")return u;if(b==="keys")return d;if(b==="values")return f;if(b==="replace")return p;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return l;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(n,b))return n[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==i)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&jn()!=null)return n[b]=zt(void 0),n[b].get()},set(y,b,v){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=v,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=v,v&&typeof v=="object"&&!$d(v)?n[b].set(lt(v,t,r+1)):n[b].set(v)):(y[b]=v,v&&typeof v=="object"&&!$d(v)?n[b]=zt(lt(v,t,r+1)):n[b]=zt(v)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){xr(()=>{for(let x in y)x!=="__proto__"&&(i[x]=y[x])});let v=o.__element;return v&&v.onUpdate&&!b?.quiet&&v.onUpdate(v,i,v.context),i}function l(y){return a(y,{quiet:!0})}function c(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let v in n){if(v==="parent"||v==="root"||v.startsWith("__"))continue;let x=n[v].peek();x&&x[Jr]?b[v]=x.parse(y):b[v]=x}return b}function u(){return xr(()=>{for(let y in n)delete i[y]}),i}function d(){return Object.keys(n)}function f(){return Object.keys(n).map(y=>n[y].peek())}function p(y){return xr(()=>{for(let b in n)b in y||delete i[b];for(let b in y)b!=="__proto__"&&(i[b]=y[b])}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){u(),o.__element=null,o.parent=null}return i}function je(e){return e&&e[Jr]===!0}function $0(e){return e[ol]}function sl(e,t){let r={},n={};if(e&&typeof e=="object")for(let i in e)n[i]=e[i],r[i]=zt(e[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=t;for(;a;){let l=a[ol];if(l&&Object.prototype.hasOwnProperty.call(l,i))return l;a=a[Jr]?a[Id]:null}return null};return new Proxy(n,{get(i,a){return a===Jr?!0:a===ol?r:a===Id?t:a==="__raw"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():t&&a!=="then"&&a!=="constructor"?t[a]:i[a]},set(i,a,l){let c=o(a);return c?(c===r&&(i[a]=l),c[a].set(l),!0):(i[a]=l,r[a]=zt(l),!0)},has(i,a){if(a in r||a in i)return!0;let l=t;for(;l;){if(a in l)return!0;l=l[Jr]?l[Id]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var Id=Symbol("scope.parent");var pn={};K(pn,{CSS_NATIVE_COLOR_REGEX:()=>Kt,CSS_UNITS:()=>Ln,applyMediaSequenceVars:()=>dn,applySequenceGlobalVars:()=>hc,applySequenceVars:()=>$r,changeLightness:()=>q_,colorStringToRgbaArray:()=>or,convertSvgToSymbol:()=>gc,findHeadingLetter:()=>_g,findHeadings:()=>pc,generateSequence:()=>et,generateSequencePosition:()=>_w,generateSprite:()=>di,generateSubSequence:()=>fc,getColorShade:()=>cg,getDefaultOrFirstKey:()=>ro,getFnPrefixAndValue:()=>Pr,getFontFace:()=>K_,getFontFaceEach:()=>no,getFontFaceEachString:()=>pg,getFontFaceString:()=>rc,getFontFormat:()=>fg,getRgbTone:()=>un,getSequenceValue:()=>dc,getSequenceValueBySymbols:()=>vg,getSequenceValuePropertyPair:()=>lr,getSubratio:()=>uc,getSubratioDifference:()=>cc,hexToRgb:()=>z_,hexToRgbArray:()=>sg,hexToRgba:()=>W_,hslToRgb:()=>lg,isCSSVar:()=>xe,isGoogleFontsUrl:()=>li,isResolvedColor:()=>sr,isScalingUnit:()=>Dn,mixTwoColors:()=>V_,mixTwoRgb:()=>H_,mixTwoRgba:()=>ug,numToLetterMap:()=>ar,opacify:()=>ai,parseColorToken:()=>Tr,resolveFileUrl:()=>Ot,returnSubThemeOrDefault:()=>G_,rgbArrayToHex:()=>ig,rgbToHSL:()=>ag,rgbToHex:()=>U_,setCustomFont:()=>tc,setCustomFontMedia:()=>fn,setFontImport:()=>ci,setInCustomFontMedia:()=>dg,setScalingVar:()=>lc,setSubScalingVar:()=>xg,setVariables:()=>ww,splitTopLevelCommas:()=>cn});var Dn=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Ln=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];D();var or=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&pe&&A){let t=pe.body.appendChild(pe.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){pe.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return pe.body.removeChild(t),[0,0,0,0];e=A.getComputedStyle(t).color,pe.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},V_=(e,t,r=.5)=>(e=or(e),t=or(t),ug(e,t,r)),z_=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},sg=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},U_=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),ig=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),W_=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},H_=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},q_=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},ag=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),s=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},lg=(e,t,r,n=t*Math.min(r,1-r),o=(s,i=(s+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],cg=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},ug=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},ai=(e,t)=>{let r=or(e);if(!r){nn()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},xe=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Kt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,o$=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Tr=e=>{if(!k(e))return null;if(Kt.test(e))return{passthrough:e};if(xe(e))return{cssVar:e};let t=e.match(o$);if(!t)return null;let[,r,n,o]=t,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},sr=e=>k(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),cn=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},un=(e,t)=>{k(e)&&e.includes("rgb")&&(e=or(e).join(", ")),k(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Ut(t)&&(t+="");let r=ig(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=cg(r,parseFloat(t));return sg(o).join(", ")}else{let[o,s,i]=e,a=ag(o,s,i),[l,c,u]=a;return lg(l,c,parseFloat(t)/100*255)}};var G_=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e};var Ot=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},ro=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},fg=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},li=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),ci=e=>`@import url('${e}');`,dg=e=>`@font-face { ${e} }`,tc=(e,t,r,n={})=>{let i=(Array.isArray(t)?t:[t]).filter(a=>typeof a=="string"&&a).map(a=>{let l=fg(a),c=l?` format('${l}')`:"";return`url('${a}')${c}`}).join(`,
28
28
  `);return`
29
29
  font-family: '${e}';
30
30
  font-style: ${n.fontStyle||"normal"};${r?`
31
31
  font-weight: ${r};`:""}${n.fontStretch?`
32
32
  font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
33
33
  font-display: ${n.fontDisplay};`:""}
34
- src: ${o};`},mn=(e,t,r,n)=>`@font-face {${lc(e,t,r,n)}
35
- }`,fo=(e,t,r)=>Object.keys(t).map(n=>{let{url:o,fontWeight:i,fontStyle:s,fontDisplay:a,fontStretch:l}=t[n],c=Array.isArray(o)?o.map(u=>It(u,r)||u):It(o,r)||o;return lc(e,c,i,{fontStyle:s,fontDisplay:a,fontStretch:l})}),qS=e=>Object.keys(e).map(t=>fo(t,e[t].value)),Ag=(e,t,r)=>{if(t&&t.isVariable){let o=It(t.url,r)||t.url;return fs(o)?ds(o):mn(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return fo(e,t,r).map(Cg);let n=Array.isArray(t.url)?t.url.map(o=>It(o,r)||o):It(t.url,r)||t.url;return mn(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},cc=(e,t)=>Object.keys(e).map(r=>Ag(r,e[r].value,t));D();D();D();var ps={};R(ps,{animation:()=>c_,breakpoints:()=>a_,class:()=>h_,color:()=>e_,devices:()=>l_,document:()=>KD,font:()=>KS,fontFace:()=>YS,fontFamily:()=>XS,fontFamilyTypes:()=>ZS,gradient:()=>t_,grid:()=>p_,icons:()=>o_,media:()=>JS,reset:()=>ZD,semanticIcons:()=>i_,sequence:()=>jr,shadow:()=>n_,spacing:()=>QS,svg:()=>u_,svgData:()=>f_,templates:()=>d_,theme:()=>r_,timing:()=>s_,typography:()=>uc,unit:()=>GS,vars:()=>g_});var jr={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var GS={default:"em"};var UD={browserDefault:16,base:16,type:"font-size",ratio:jr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},uc=UD;var KS={};var XS={},ZS={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},YS={};var JS={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var qD={base:uc.base,type:"spacing",ratio:jr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},QS=qD;var e_={},t_={};var r_={};var n_={};var o_={},i_={};var GD={default:150,base:150,type:"timing",ratio:jr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},s_=GD;var KD={};var a_={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},l_={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]};var c_={};var u_={},f_={};var d_={};var XD={},p_=XD;var h_={};var ZD={},g_={};var Eg={},Tg={},fc=ps,dc={},pc=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in fc){let t=e.toLowerCase();dc[t]=fc[e];let r=pc(t);r!==t&&(dc[r]=fc[e]),t!==e&&(dc[e]=fc[e])}var hc={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Eg,cssMediaVars:Tg,CSS_VARS:Eg,CSS_MEDIA_VARS:Tg,_scratchConfig:!0,...dc},m_=me(hc),lr={active:"0",0:hc},YD=e=>(Ne(e)&&(lr.active=e),lr[e||lr.active]),hs=[],Pe=e=>{e&&e._scratchConfig&&hs.push(e)},ke=()=>{hs.pop()},P=e=>hs.length?hs[hs.length-1]:lr[e||lr.active]||hc,Og=e=>{if(_(e))return lr.active="1",lr[1]=fe(e,me(m_)),e},JD=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],QD=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],eL=e=>{for(let t of QD){let r;for(let n of t){let o=e[n];_(o)&&(r=r?fe(o,r):o)}if(r)for(let n of t)_(e[n])&&(e[n]=r)}},Rg=(e,t,{cleanBase:r=!1}={})=>{let n=r?null:P(),o=me(!r&&n&&n._scratchConfig?n:m_);for(let s of JD)delete o[s];let i=fe(t||{},o);return i.cssVars={},i.cssMediaVars={},i.CSS_VARS=i.cssVars,i.CSS_MEDIA_VARS=i.cssMediaVars,i._scratchConfig=!0,eL(i),e&&(lr[e]=i),i};var cr={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},Pg=(e,t)=>{let{key:r,variable:n,value:o,scaling:i,index:s,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:i,index:s,scalingVariable:a,variable:n},t.scales[r]=i;let l=y_.has(t.unit)?"rem":t.unit;t.vars[n]=i+l},Fr=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},y_=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),gc=(e,t)=>{let{base:r,type:n,unit:o}=t,i=y_.has(o)?"rem":o,s=(Vn(i)?1:r)+i;if(e===0)return s;let a="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${a}-ratio`;if(e>0){let c=cr[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=cr[e+1],u=Math.abs(e),d=Math.pow(b_,2*u),f=cr[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},$g=(e,t,r,n)=>{let{type:o}=n,i=e===2&&t.length===2?e+1:e,s=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${s+i}))`},mc=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,i=(n+o)/2;return[n,i,o]},yc=(e,t)=>mc(e,t).map(r=>r/e),bc=(e,t)=>{let{key:r,base:n,value:o,ratio:i,variable:s,index:a}=e,l=~~(o*i)-~~o,c,[u,d,f]=mc(o,i);l>16?c=[u,d,f]:c=[u,f],c.forEach((p,h)=>{let g=~~(p/n*1e3)/1e3,m=s+(h+1),y=a+(h+1)/10,b=$g(h+1,c,s,t),x={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};Pg(x,t)})},b_=1.618,tL=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),i=t*Math.pow(r,n)/Math.pow(b_,2*n);return Math.max(o,i)},rt=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:i}=e,s=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let l=0;l<=s;l++){let c=o[1]-l,u=cr[c],d=tL(c,r,n),f=~~(d/r*100)/100,p=a+u,h=gc(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};Pg(g,e),i&&bc(g,e)}return e},v_=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:i}=e,s=A(t)?t:cr[t],a=A(t)?Object.entries(cr).find(([,h])=>h===t)?.[0]:t;if(!s)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,d="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+s,f=gc(a,e),p={key:s,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return Pg(p,l),i&&bc(p,l),l},vc=(e="A",t)=>{let r=P(),{unit:n}=r;if(A(e)&&we(e))return`var(${e})`;let{sequence:o,unit:i=n.default,useVariable:s}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Un.some(m=>e.includes(m))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let c=`--${t.varPrefix?t.varPrefix+"-":""}${us(t.type.replace(".","-"))}-`,u=e.toUpperCase(),d=u.slice(0,1)==="-"?"-":"",f=d?u.slice(1):u,p="";f.includes("_")&&(p="_"+f.split("_")[1].toLowerCase(),f=f.split("_")[0]);let h=m=>a.test(m)?`var(${c}${m}${p})`:m;if(f.includes("+")){let[m,y]=f.split("+"),b=`${h(m)} + ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("*")){let[m,y]=f.split("*"),b=`${h(m)} * ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("-")){let[m,y]=f.split("-"),b=`${h(m)} - ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}if(!o[f]&&f.length===2&&(r.verbose&&console.warn(f,"- value is not found because `subSequence` is set to false"),f=f.slice(0,1)),s||r.useVariable){let m=`var(${c}${f}${p})`;return d?`calc(${m} * -1)`:m}let g=o?o[f]:null;return g?i==="ms"||i==="s"?d+g.val+i:d+g.scaling+i:console.warn("can't find",o,f)},Ig=(e,t)=>{if(!["+","-","*","/",","].filter(n=>e.includes(n+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(n=>{let o=n.trim();return!o||["+","-","*","/",","].includes(o)?n:vc(o,t)}).join("")},ur=(e,t,r,n)=>{if(typeof e!="string")return P().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=Fr(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=Ig(e,r):e=vc(e,r),{[t]:n?`${n}(${e})`:e}},jg=(e,t)=>cr[e-t],xc=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let i=jg(t,o);return r[i]})};D();var x_=(e,t)=>{let r=P(),{cssVars:n}=r;re(e.value)||(n[e.var]=e.value)},wc=(e,t,r)=>{let n=P(),{unit:o}=n,i=t.unit||o.default,{base:s,ratio:a,type:l}=t,c="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${c}-base`]=s,e[`${c}-unit`]=i;let u=`${c}-ratio`;e[u]=a;let[d,f,p]=yc(s,a);e[`${c}-sub-ratio-1`]=`calc(var(${c}-ratio) * ${d/a})`,e[`${c}-sub-ratio-2`]=`calc(var(${c}-ratio) * ${f/a})`,e[`${c}-sub-ratio-3`]=`calc(var(${c}-ratio) * ${p/a})`},w_=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Dr=(e,t={})=>{let r=P(),{unit:n,timing:o,cssVars:i}=r,s=e.unit||n.default,a=w_.has(s)?"rem":s,{mediaRegenerate:l,sequence:c,scales:u}=e;l||wc(i,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){i[f.variable+"_default"]=p,i[f.variable]=f.scalingVariable;continue}t.useDefault===!1?i[f.variable]=p:(i[f.variable+"_default"]=p,i[f.variable]=`var(${f.variable+"_default"})`)}},yn=(e,t,r={})=>{let n=P(),{unit:o,media:i,cssVars:s}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=w_.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=i[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=s[`@media ${h}`];g||(g=s[`@media ${h}`]={}),wc(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],x=p[y]+u;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in f){let m=f[g],y=(Vn(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=s[`@media ${h}`];b||(b=s[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,s[m.variable+"_"+a]=y}};D();var __=an(),gs=e=>{let t=P(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},rL=e=>{let t=e&&(e.default||e);if(!A(t))return __&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((o,i)=>{let[s,a]=i.split("=");return o[s]=a.replace(/['"]/g,""),o},{}):{}},nL=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,i)=>(r.push(i),o)),!r.length)return e;let n=e;for(let o of r){let i=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=`${t}-${o}`;n=n.replace(new RegExp(`id="${i}"`,"g"),`id="${s}"`).replace(new RegExp(`url\\(#${i}\\)`,"g"),`url(#${s})`).replace(new RegExp(`xlink:href="#${i}"`,"g"),`xlink:href="#${s}"`).replace(new RegExp(`href="#${i}"`,"g"),`href="#${s}"`)}return n},S_=new Set,Sc=(e,t)=>{let r=t&&t.default?t.default:t;if(!A(r))return __&&!S_.has(e)&&(S_.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=rL(t),{width:o,height:i}=n,s=n.viewBox||`0 0 ${o||24} ${i||24}`,a=nL(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return a=a.replace(/width="[^"]*"/,""),a=a.replace(/height="[^"]*"/,""),a=a.replace("</svg","</symbol"),a=sL(a),a},oL="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",iL=new RegExp(`<(${oL})\\b([^>]*?)\\s*/>`,"g"),sL=e=>e.replace(iL,"<$1$2></$1>");var vs={};R(vs,{appendSVGSprite:()=>Lc,appendSvgIconsSprite:()=>Bc,applyDocument:()=>Dc,applyHeadings:()=>Mg,applyReset:()=>Nc,applySpacingSequence:()=>$c,applyTimingSequence:()=>Fc,applyTypographySequence:()=>Oc,checkIfBoxSize:()=>Pc,getColor:()=>pe,getFontFamily:()=>Tc,getFontSizeByKey:()=>Rc,getMediaColor:()=>Fe,getMediaTheme:()=>jt,getShadow:()=>jc,getSpacingBasedOnRatio:()=>ht,getSpacingByKey:()=>$e,getTheme:()=>kc,getTimingByKey:()=>gt,getTimingFunction:()=>Ft,runThroughMedia:()=>Lg,setColor:()=>vn,setFont:()=>Ec,setFontFamily:()=>ys,setGradient:()=>xn,setMediaTheme:()=>Ac,setSVG:()=>bs,setShadow:()=>wn,setSvgIcon:()=>Mc,setTheme:()=>Cc,splitSpacedValue:()=>Ic});D();var pe=(e,t,r)=>{let n=r||P();if(!A(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(we(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,i,s;if(F(e))[o,i,s]=e;else{let d=Ir(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,i=d.alpha,s=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(s&&!c[s]&&(u=gn(u,s),c[s]={rgb:u,var:`${c.var}-${s}`}),c[s]&&(u=c[s].rgb),i?`rgba(${u}, ${i})`:s?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},Fe=(e,t,r)=>{let n=r||P();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!A(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(we(e))return`var(${e})`;let o;if(F(e))o=e[0];else{let c=Ir(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:i,gradient:s}=n,a=i[o]||s[o],l=_(a);if(l&&a.value)return pe(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return pe(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=pe(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},vn=(e,t,r)=>{let n=P();if(A(e)&&we(e)){let h=e.slice(2);if(e=pe(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=h.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(A(m)||F(m)||_(m))&&(n.color[g[0]]=vn(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",x=g[2];x&&(y=gn(y,x)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let x=sr(g[0]);x&&x.length>=3?e=`rgba(${gn(x.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(F(e)&&(e={"@light":e[0],"@dark":e[1]}),_(e)){let h={};for(let g in e)h[g]=vn(e[g],t,g.slice(0,1)==="@"?g.slice(1):g);if(n.useVariable){let g=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,m,y={};for(let b in h){if(b.charCodeAt(0)!==64)continue;let x=b.slice(1),v=h[b],S=v&&(v.value||v);!S||typeof S!="string"||(y[x]=S,(x==="light"||m===void 0)&&(m=S))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let x=`[data-theme="${b}"]`;if(n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b],b==="light"||b==="dark"){let v=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b]}}h.var=g}}return h}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),i=e.value||e;if(A(i)&&i.includes(".")&&!i.includes("(")){let[h,g]=i.split("."),m=n.color[h];m&&m.rgb&&(i=`rgba(${m.rgb}, ${parseFloat("0."+g)||1})`)}if(A(i)&&!i.includes("(")&&!i.startsWith("#")){let h=Ir(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(A(g)||F(g)||_(g))&&(n.color[h.name]=vn(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=gn(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;i=`rgba(${y}, ${b})`}}}let s=sr(i),[a,l,c,u=1]=s,d=parseFloat(u.toFixed(2)),f=`${a}, ${l}, ${c}`,p=`rgba(${f}, ${d})`;return n.useVariable&&(n.cssVars[o]=p),{var:o,rgb:f,alpha:d,value:p}},xn=(e,t,r)=>{let n=P();if(A(e)&&we(e)&&(e=pe(e.slice(2))),F(e))return{"@light":xn(e[0],t,"light"),"@dark":xn(e[0],t,"dark")};if(_(e)){let i={};for(let s in e)i[s]=xn(e[s],t,s.slice(0,1)==="@"?s.slice(1):s);return i}let o=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[o]=e.value||e),{var:o,value:e.value||e}};D();var aL=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),k_=["color","Color","background","Background","fill","Fill","stroke","Stroke"],lL=e=>{for(let t=0;t<k_.length;t++)if(e.includes(k_[t]))return!0;return!1},_c=e=>{let t={},{state:r,media:n,helpers:o,...i}=e;return Object.keys(i).map(s=>{let a=["color","Color","background","border"].some(l=>s.includes(l));return t[s]=a?pe(e[s]):e[s]}),t},ms=e=>(e.value||(e.value=_c(e)),e.value),kc=(e,t)=>{let r=P();if(r.useVariable)return jt(e,t);let n=r.theme;if(A(e)){let[o,i]=e.split(" "),s=n[o];if(s){if(!i&&!t)return ms(s);e=[o,i||t]}}if(re(e)&&e[1]){let o=e[0],i=e[1],{helpers:s,media:a,state:l}=n[o];if(a&&a[i])return ms(a[i]);if(s&&s[i])return ms(s[i]);if(l&&l[i])return ms(l[i])}else if(_(e))return _c(e)},cL=(e,t,r)=>{if(_(t))e.variants.inverse.value=_c(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},uL=(e,t,r,n)=>{let o=kc(r);n[`&:${t}`]=o,_(r)&&!r.value&&(r.value=o)},fL=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return uL(e,n,o,t),e}),e):void 0},dL=(e,t,r,n)=>{let o=kc(r);n[`@media (prefers-color-scheme: ${t})`]=o,_(r)&&!r.value&&(r.value=o)},pL=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&dL(e,n,o,t),n==="inverse"&&cL(e,o,t),e}),e):void 0},hL=(e,t)=>{let r=P(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let i=n[o];return A(i)?n[o]=r.theme[i]:ms(n[o]),e}),e):void 0},Cc=(e,t)=>{let r=P();if(r.useVariable)return Ac(e,t);let{state:n,media:o,helpers:i}=e,s=_c(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return fL(e,s),pL(e,s),hL(e,s),{var:a,value:s,state:n,media:o,helpers:i}};var Fg=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,i=r.globalTheme!==void 0?r.globalTheme:"auto",s={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&lL(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=pe(f,`@${d}`);p!==void 0&&A(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!aL.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>re(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)re(e[h]?.[c])&&(p[h]=e[h][c]);s[c]=Fg(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)re(e[h]?.[c])&&(p[h]=e[h][c]);s[c]=Fg(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let f=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,p=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,h;for(let g in e){if(l.has(g))continue;let m=e[g]?.[c];if(m===void 0)continue;let y=pe(m,`@${g}`);if(y===void 0)continue;(p&&g===p||!p&&(g==="light"||h===void 0))&&(h=y);let b=`[data-theme="${g}"]`;if(o[b]||(o[b]={}),o[b][f]=y,g==="dark"||g==="light"){let x=`@media (prefers-color-scheme: ${g})`;o[x]||(o[x]={}),o[x][f]=y}}h!==void 0&&(n[f]=h),s[c]=`var(${f})`,s[`.${c}`]={[c]:s[c]}}}return(s.background||s.color||s.backgroundColor)&&(s[".inversed"]={color:s.background||s.backgroundColor,background:s.color}),s},Ac=(e,t,r,n)=>{let o=P(),{cssVars:i}=o,s={value:e},a=!r&&!n;if(re(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&re(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=Fg(l,t,o);Object.assign(s,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;s[l]=Ac(u,t,l,n||d)}else if(!a){let d=pe(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],p=f.length?"-"+f.join("-"):"",h=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(i[h]=d),s[l]=`var(${h})`):s[l]=d,s[`.${l}`]={[l]:s[l]}}}!s[".inversed"]&&(s.background||s.color||s.backgroundColor)&&(s[".inversed"]={color:s.background||s.backgroundColor,background:s.color})}if(A(e)&&we(e)){let l=o.theme[e.slice(2)];return jt(l,n)}return s},Dg=e=>{let t=P(),r={};for(let n in e){let o=n.slice(0,1);if(re(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Dg(e[n]):o==="."&&(r[`&${n}`]=Dg(e[n]))}else r[n]=e[n]}return r},A_=(e,t)=>{let r=t.shift();return e[r]?A_(e[r],t):e},C_=(e,t)=>F(t)?A_(e,t):A(t)&&e[t]?e[t]:e;var jt=(e,t)=>{let r=P();if(A(e)&&we(e)&&(e=jt(e.slice(2))),!e||!A(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=F(e)?e:e.split(" "),i=r.theme[n];return i&&o.length?i=C_(i,o):i&&t&&(i=C_(i,t)),Dg(i)};D();D();var Ec=(e,t)=>{let r=P(),n=`--font-${t}`;if(!e||F(e)&&!e[0])return;let o;if(e.isVariable){let i=It(e.url,r.files)||e.url;fs(i)?o=ds(i):o=mn(t,i,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=fo(t,e,r.files);else{let i=Array.isArray(e.url)?e.url.map(s=>It(s,r.files)||s):It(e.url,r.files)||e.url;o=mn(t,i,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},Tc=(e,t)=>{let r=P(),{fontFamily:n}=r;return uo(t||n,e)},ys=(e,t)=>{let r=P(),{fontFamily:n,fontFamilyTypes:o}=r,{value:i,type:s}=e;e.isDefault&&(n.default=t),_(i)&&(i=fn(i));let a=`--font-family-${t}`,l=`${i.join(", ")}, ${o[s]}`;return{var:a,value:l,arr:i,type:s}};D();var Lg=e=>{let t=P(),{typography:r,media:n}=t;for(let o in e){let i=o.slice(0,1)==="@",s=e[o];if(!i)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;be(s,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=s.unit||g,b=!s.unit&&m.has(g)?"rem":y,x=n[l],v="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[v]={fontSize:s.base/r.browserDefault+b},!a){be(s,{sequence:{},scales:{},vars:{}}),rt(s),yn(e,o);continue}be(s,{sequence:{},scales:{},templates:{},vars:{}}),rt(s),yn(e,o)}},Mg=e=>{let t=P();if(e.h1Matches){let r=e.unit,n=xc(e),{templates:o}=e;for(let i in n){let s=`h${parseInt(i)+1}`,a=o[s];o[s]={fontSize:t.useVariable?`var(${n[i]?.variable})`:`${n[i]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-i*100}}}},Oc=()=>{let e=P(),{typography:t}=e;rt(t),Mg(t),Dr(t),Lg(t)},Rc=e=>{let t=P(),{typography:r}=t;return ur(e,"fontSize",r)};D();D();var gL=e=>{let t=P().spacing||{},r=parseFloat(e.spacingRatio),n={...t,ratio:Number.isFinite(r)?r:t.ratio,sequence:{},scales:{}};return rt(n),n},mL=e=>{for(let t in e){let r=e[t];if(t.slice(0,1)!=="@")continue;let{type:n,base:o,ratio:i,range:s,subSequence:a,h1Matches:l,unit:c}=e;be(r,{type:n,base:o,ratio:i,range:s,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),rt(r),yn(e,t)}},Pc=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},$c=()=>{let e=P(),{spacing:t}=e;rt(t),Dr(t),mL(t)},yL=e=>{let t=P(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:rt(e)},$e=(e,t="padding",r,n)=>{let o=yL(r);if(A(e)&&!n&&e.includes("(")){let s=Fr(e);n=s[0],e=s[1]}let i=n?[e]:fn(e);if(F(i)){if(i.length>1){let s="";t==="borderWidth"&&(t="border",s="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>ur(i[u],t+c+s,o,n);return a[i.length].map((c,u)=>l(c,u))}return ur(e,t,o,n)}},ht=(e,t,r,n)=>{let o=P(),{spacing:i}=o,s=r||e[t];if(!n&&A(s)&&s.includes("(")){let a=Fr(s);n=a[0],s=a[1]}if(e.spacingRatio){let a=gL(e);return $e(s,t,a,n)}return $e(s,t,i,n)},Ic=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Un.some(i=>e.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};D();var wn=(e,t,r,n)=>{let o=P();if(F(e))return{"@light":wn(e[0],t,"light"),"@dark":wn(e[1],t,"dark")};if(_(e)){let s={};for(let a in e)s[a]=wn(e[a],t,a.startsWith("@")?a.slice(1):a);return s}A(e)&&!Qt.test(e)&&(e=hn(e).map(s=>(s=s.trim(),s.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let l=pe(a);if(ar(l))return l;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let c=$e(a,"shadow");return c&&c.shadow?c.shadow:a}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=e),{var:i,value:e}},jc=(e,t)=>{let r=P();if(t||(t=r.globalTheme),!A(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(we(e))return`var(${e})`;let[n]=F(e)?e:e.split(" "),o=r.shadow[n],i=_(o);if(!o)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(o[t])return o[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(i&&o.value)return o.value;if(i){let s={};for(let a in o){let l=r.media[a.slice(1)],c="@media "+(l==="print"?`${l}`:`screen and ${l}`);s[c]=o.value}return s}return r.verbose&&console.warn("Can't find color",e),e};D();var Fc=()=>{let e=P(),{timing:t}=e;rt(t),Dr(t)},Ft=e=>{let t=P(),{timing:r}=t;return r[e]||r[cs(e)]||e},gt=(e,t="timing")=>{let r=P(),{timing:n}=r;return ur(e,t,n)};D();var Dc=()=>{let e=P(),{document:t,fontFamily:r,theme:n,typography:o}=e;return be(t,{theme:n.document,fontFamily:uo(r),fontSize:o.base,lineHeight:o.lineHeight})};D();var Ng={document:he},bs=(e,t)=>{let r=P();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?Sc(t,e):e},Lc=(e,t=Ng)=>{let r=P(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];T_(n,t)},Mc=(e,t)=>{let r=P();return r.useIconSprite&&!r.semanticIcons?.[t]?bs(e,t):e},Bc=(e,t=Ng)=>{let r=P(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];T_(n,t)},Bg=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},bL=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,o=new r().parseFromString(n,"image/svg+xml");return o.querySelector("parsererror")?null:o.documentElement}return null},E_=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},T_=(e,t=Ng)=>{let r=P(),n=t.document||he;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),gs(e);let o=n.querySelector("#svgSprite"),i=gs(e),s=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${i}</svg>`,a=bL(n,i);if(o)if(a)E_(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",i);else{let l=Bg(n,{isRoot:!1});l.innerHTML=i,o.append(...l.children)}else if(a){let l=Bg(n);l&&l.nodeType&&(E_(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",s);else{let l=Bg(n);l&&l.nodeType&&(l.innerHTML=i,n.body.prepend(l))}};D();var Nc=(e={})=>{let t=P(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?jt("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:i,...s}=n.templates,a=t.useDocumentTheme?jt("document"):{};if(r.html&&Ye(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return fe(be(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...s,...i},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};D();var vL=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),xL=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),wL=e=>vL.has(e),fr=e=>{let t=e+"";if(Qt.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(we(n))return`var(${n})`;if(wL(n)||/^\d/.test(n)||n==="0")return n;let o=pe(n);if(ar(o))return o;let i=$e(n,"border");return i&&i.border?i.border:n}).join(" ")},zg=e=>Qt.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(we(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=pe(t);return ar(r)?r:t}).join(" "),Wg=(e,t)=>jc(e,t),zc=(e,t)=>Qt.test(e)?e:hn(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(we(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=pe(n);if(ar(o)){let s=Fe(n,t);return _(s)?Object.values(s).filter(a=>a.includes(": "+t))[0]:s}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let i=$e(n,"shadow");return i&&i.shadow?i.shadow:n}).join(" "):"")).join(", "),Wc=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),i=")",s=hn(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||xL.has(l)||l==="transparent"||Qt.test(l))return l;let c=pe(l);return ar(c)?c:l}).join(" ")));return n+s.join(", ")+i},Hg=(e,t)=>{let r=P();return e.split(", ").map(n=>we(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?Wc(n,t):r.gradient[e]?{backgroundImage:Fe(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Ir(n)?`url(${n})`:n).join(" ")},Vg=e=>A(e)&&e.split(" ").map(t=>$e(t,"gap").gap).join(" "),O_=e=>{let t=e.split(" ");return t.length?t.map(r=>we(r)?`var(${r})`:r.length<3||r.includes("ms")?gt(r).timing||r:Ft(r)?Ft(r):r).join(" "):e},Hc=(e,t,r)=>{if(A(e))return e.split(",").map(n=>gt(n).timing||n).join(",")},Ug=e=>{let t=e.split(",");if(t.length)return t.map(O_).join(",")};function Se(e,t,r={},n={}){let o=de.call(this,t||r[e]);if(o==null)return;let i;if(A(o)){if(o.includes("(")){let l=Fr(o);i=l[0],o=l[1]}let s=r.scaleBoxSize,a=Pc(e);!s&&a&&!n.ratio&&(o=Ic(o))}return n.ratio?ht(r,e,o,i):$e(o,e,void 0,i)}var ne=(e,t=null,r)=>Se(e,t,r,{ratio:!0}),Vc=(e,t,r)=>{if(A(e))return{borderRadius:e.split(" ").map((n,o)=>ht(t,r,n)[r]).join(" ")}};D();var SL=(e,t)=>{let r=P(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},mt=e=>e,qg={color:vn,gradient:xn,font:Ec,fontFamily:ys,fontfamily:ys,theme:Cc,icons:Mc,semanticIcons:mt,semanticicons:mt,svg:bs,svgData:mt,typography:mt,shadow:wn,spacing:mt,media:mt,grid:mt,class:mt,timing:mt,reset:mt,unit:mt,animation:mt,vars:SL},R_=(e,t,r)=>{let n=P(),o=pc(e),i=o.toLowerCase(),s=n[o]||n[i]||n[e],a=qg[o]||qg[i];if(a)try{let l=a(t,r);return s&&(s[r]=l),s}catch(l){n.verbose&&console.warn("Error setting",i,"value",t,r,l)}n.verbose&&console.warn("Can not find",i,"method in scratch")},P_=(e,t)=>{let r=P(),n=e.toLowerCase();return Object.keys(t).sort((o,i)=>{let s=_(t[o])||F(t[o])?1:0,a=_(t[i])||F(t[i])?1:0;return s-a}).forEach(o=>{try{return R_(n,t[o],o)}catch(i){r.verbose&&console.warn("Error setting",n,"value",t[o],o,i)}}),r[n]||r[e]},Gg=(e,t)=>{let r=t||P();r.globalTheme=e;let n=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),o=n&&n.defaultView||(typeof window<"u"?window:null);if(n){let s=r.themeRoot||n.documentElement;if(e&&e!=="auto")s.setAttribute("data-theme",e),e==="dark"||e==="light"?s.style.colorScheme=e:s.style.colorScheme="light dark";else if(o&&o.matchMedia){let a=c=>{s.setAttribute("data-theme",c.matches?"dark":"light")},l=o.matchMedia("(prefers-color-scheme: dark)");if(a(l),s.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=a;try{l.addEventListener("change",a)}catch{l.addListener(a)}}}else s.setAttribute("data-theme","light"),s.style.colorScheme="light"}let i=r.varPrefix?`--${r.varPrefix}-theme-`:"--theme-";for(let s in r.cssVars)s.startsWith(i)&&delete r.cssVars[s];for(let s in r.cssMediaVars)delete r.cssMediaVars[s];if(n&&r.cssVars){let s=r.scopeSelector||":root",a=n.styleSheets;for(let l=0;l<a.length;l++)try{let c=a[l].cssRules;for(let u=0;u<c.length;u++)if(c[u].selectorText===s){for(let d in r.cssVars)c[u].style.setProperty(d,r.cssVars[d]);return r}}catch{}}return r},_L={},po=(e,t=_L)=>{let r=t.config||P(),{version:n,verbose:o,useVariable:i,useReset:s,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=Og(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),i!==void 0&&(r.useVariable=i),s!==void 0&&(r.useReset=s),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let b=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=b&&b.defaultView||(typeof window<"u"?window:null),v=b&&(r.themeRoot||b.documentElement);if(v&&typeof v.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")v.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?v.style.colorScheme=r.globalTheme:v.style.colorScheme="light dark";else if(x&&x.matchMedia){let T=j=>{v.setAttribute("data-theme",j.matches?"dark":"light")},w=x.matchMedia("(prefers-color-scheme: dark)");if(T(w),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=T;try{w.addEventListener("change",T)}catch{w.addListener(T)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let S=Object.keys(y),k=new Set(S);if(S.forEach(T=>{let w=T.toLowerCase();w!==T&&k.has(w)&&fe(y[w],y[T])}),S.map(T=>{let w=T.toLowerCase();if(!(w!==T&&k.has(w)))return P_(T,y[T])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{Oc()}catch(T){r.verbose&&console.warn("Error applying typography sequence",T)}if(y.spacing)try{$c()}catch(T){r.verbose&&console.warn("Error applying spacing sequence",T)}if(y.timing)try{Fc()}catch(T){r.verbose&&console.warn("Error applying timing sequence",T)}Dc();let E=Nc();return E&&(r.reset=E),r};var ho=new Map,kL=null,Xg=null,CL=null;function qc(e){e.batchAtomicCss&&(Xg=e.batchAtomicCss),e.compoundCssClass&&(CL=e.compoundCssClass)}var AL=new Set;function F_(e){try{let t=P();t&&(t.document=e)}catch{}e&&AL.add(e)}function Zg(){try{let e=P();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}var EL={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function Sn(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Uc(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function TL(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Uc(t)}function $_(e,t,r){let n=(r?r+"":"")+e+":"+t,o=ho.get(n),i=o?null:Sn(e);if(!o){let a=EL[e]||Uc(e),l=TL(t);o=r?`_${r}_${a}-${l}`:`_${a}-${l}`,ho.set(n,o)}if(typeof t=="string"&&(t.indexOf("}")!==-1||t.indexOf("{")!==-1))return o;let s=`.${o}{${i||Sn(e)}:${t}}`;return yt(s),o}var I_=new WeakMap;function yt(e,t){let r=D_(t);if(!r)return;let n=I_.get(r);if(n||(n=new Set,I_.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var j_=new WeakMap;function D_(e){let t=e||Zg();if(!t||!t.head)return null;let r=j_.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return j_.set(t,o),kL=o,o}var OL=8;function Lr(e,t,r){if(!e||typeof e!="object")return"";let n=null,o=0,i=[],s=[];for(let l in e){let c=e[l];c==null||c===!1||c===""||(typeof c=="object"?s.push([l,c]):Xg?(n||(n=[]),n.push(l,String(c)),o++):i.push($_(l,String(c),r)))}if(n&&o>=OL){let l=n.join("\0"),c=Xg(l),u=c.indexOf("\0"),d=c.substring(0,u),f=c.substring(u+1);if(f){let p=f.split(`
36
- `);for(let h=0;h<p.length;h++)p[h]&&yt(p[h])}i.push(d)}else if(n)for(let l=0;l<n.length;l+=2)i.push($_(n[l],n[l+1],r));let a=[];for(let l=0;l<s.length;l++)a.push(RL(s[l][0],s[l][1],r));return i.concat(a).join(" ").trim()}var Kg=new Map;function RL(e,t,r){let n=(r?r+"":"")+e+JSON.stringify(t),o=ho.get(n);if(o){let f=Kg.get(o);if(f)for(let p=0;p<f.length;p++)yt(f[p]);return o}o=r?`_${r}_c${Uc(n)}`:`_c${Uc(n)}`;let i="",s=[],a=f=>typeof f=="string"&&(f.indexOf("{")!==-1||f.indexOf("}")!==-1),l=(f,p)=>{let h="";for(let g in p){let m=p[g];if(m!=null)if(typeof m=="object")l([...f,g],m);else{if(a(m))continue;h+=`${Sn(g)}:${m};`}}h&&(f.length===0?i+=h:s.push({chain:f,body:h}))};l([],t);let c=f=>{if(!f.length)return`.${o}`;let p=f[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${o}`):h.startsWith(":")?`.${o}${h}`:`.${o} ${h}`);for(let h=1;h<f.length;h++){let g=f[h].split(",").map(y=>y.trim()),m=[];for(let y of p)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);p=m}return p.join(", ")},u=[];if(e.startsWith("@media")||e.startsWith("@supports")){if(i){let f=`${e}{.${o}{${i}}}`;u.push(f),yt(f)}for(let f of s){let p=c(f.chain),h=`${e}{${p}{${f.body}}}`;u.push(h),yt(h)}return Kg.set(o,u),ho.set(n,o),o}let d=c([e]);if(i){let f=`${d}{${i}}`;u.push(f),yt(f)}for(let f of s){let h=`${c([e,...f.chain])}{${f.body}}`;u.push(h),yt(h)}return Kg.set(o,u),ho.set(n,o),o}function Ce(e){if(D_(),typeof e=="string"){yt(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let i=n.startsWith("@media"),s=o.startsWith("@media");return!i&&!s?0:i?s?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let i in o){let s=o[i];if(typeof s=="object"&&s!==null){let a="";for(let l in s){let c=l.startsWith("--")?l:Sn(l);a+=`${c}:${s[l]};`}yt(`${n}{${i}{${a}}}`)}else{let a=i.startsWith("--")?i:Sn(i);yt(`${n}{${a}:${s};}`)}}else{let i="",s=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)s=!0;else{let c=a.startsWith("--")?a:Sn(a);i+=`${c}:${l};`}}if(i&&yt(`${n}{${i}}`),s){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)Ce({[`${n} ${c}`]:o[c]});for(let c of a)Ce({[c]:{[n]:o[c]}})}}}}function xs(e,t){let r="";for(let n in t){let o="";for(let i in t[n])o+=`${Sn(i)}:${t[n][i]};`;r+=`${n}{${o}}`}return yt(`@keyframes ${e}{${r}}`),e}function L_(){return ho.size}D();var Yg="http://www.w3.org/2000/svg",_s=new Set(["svg","path","circle","ellipse","line","polyline","polygon","rect","g","defs","use","symbol","clipPath","mask","pattern","image","text","tspan","textPath","marker","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateMotion","animateTransform","set","foreignObject","desc","title","metadata"]),PL=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","string","fragment","shadow"]);function ws(e){return PL.has(e)||_s.has(e)}function ks(e){return _s.has(e)}function _n(e){let{tag:t,key:r}=e;if(typeof t=="function"&&(t=t(e)),t===!0&&(t=r),typeof t=="string"&&ws(t))return t;if(!r||typeof r!="string")return"div";let n=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),ws(o)&&!n.has(o)?o:"div"}var M_={};function Ss(e,t){let r=t?.context?.document||globalThis.document;if(!r)return null;if(e==="string")return r.createTextNode(t?.text||"");if(e==="fragment")return r.createDocumentFragment();if(ks(e)){let n=t?.parent;if(e==="svg"||n?.node?.namespaceURI===Yg)return r.createElementNS(Yg,e);if(e!=="svg")return r.createElement("div")}return r.createElement(e)}function kn(e){let t=e.tag=_n(e),r=ks(t)&&(t==="svg"||e.parent?.node?.namespaceURI===Yg)?"svg:"+t:t,n=e?.context?.document||globalThis.document,o=M_[r];if(o||(o=M_[r]=Ss(t,e)),!o)return null;let i=n&&o.ownerDocument!==n?Ss(t,e):o.cloneNode(!0);return t==="string"&&(i.nodeValue=e.text||""),i}var Qe=new Set(["extends","children","content","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","__name","__ref","__hash","__text","parent","node"]),Jg={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Cn=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","error","beforeRemove","remove"]),B_=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Cs=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","scroll","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var Qg=new WeakMap,$L={passive:!0},IL={passive:!0,capture:!0},em=(e,t)=>B_.has(e)?t?IL:$L:t||!1;function z_(e){let t=Qg.get(e);return t||(t={handlers:new Map,installed:new Set},Qg.set(e,t)),t}function jL(e,t){let r=z_(t);if(r.installed.has(e))return;r.installed.add(e);let n=e==="focus"||e==="blur"||e==="focusin"||e==="focusout"||e==="mouseenter"||e==="mouseleave",o=e==="mouseenter"||e==="mouseleave";t.addEventListener(e,i=>{let s=i.target;for(;s&&s!==t;){let a=r.handlers.get(e);if(a){let l=a.get(s);if(l){if(o&&i.relatedTarget&&s.contains(i.relatedTarget)){s=s.parentNode;continue}if(l(i),i.cancelBubble)return}}s=s.parentNode}},em(e,n))}function Gc(e,t,r,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let o=z_(n);jL(e,n),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,r)}function Kc(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let n=Qg.get(r);if(!n)return;let o=n.handlers.get(e);o&&o.delete(t)}function N_(e){return Cs.has(e)&&!Cn.has(e)}function As(e,t,r){let{node:n,context:o}=t;if(!n)return;let i=o?.designSystem,s=a=>{i&&Pe(i);try{let l=r.call(t,a,t,t.state,o);if(l&&typeof l.then=="function"){l.catch(c=>{t.error=c,console.error("[DOMQL] Async event error:",c)}).finally(()=>{i&&ke()});return}}catch(l){if(t.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}i&&ke()};if(N_(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Gc(e,n,s,a)}else n.addEventListener(e,s,em(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(N_(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Kc(e,n,a)}else n.removeEventListener(e,s,em(e,!1))})}function W_(e){let t=[];return e.extends&&(Array.isArray(e.extends)?t.push(...e.extends):t.push(e.extends)),e.extend&&(Array.isArray(e.extend)?t.push(...e.extend):t.push(e.extend)),t}function Es(e,t,r){let n=W_(t);if(!n.length)return;let o=(e.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let s=H_(n[i],o);s&&s!==t&&V_(e,s,r,new Set([t]))}}function H_(e,t){if(typeof e=="string"){if(e.includes(">")){let r=e.split(">").map(o=>o.trim()),n=t[r[0]]||t[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return t[e]||t[`smbls.${e}`]||null}return typeof e=="object"&&e!==null?e:null}function V_(e,t,r,n=new Set){if(n.has(t))return;n.add(t);let o=W_(t);if(o.length){let i=(e.context||r?.context||{}).components||{};for(let s=0;s<o.length;s++){let a=H_(o[s],i);a&&V_(e,a,r,n)}}for(let i in t){if(i==="extends"||i==="extend")continue;let s=t[i];e[i]===void 0?s&&typeof s=="object"&&!Array.isArray(s)&&typeof s!="function"?e[i]={...s}:e[i]=s:typeof e[i]=="object"&&typeof s=="object"&&!Array.isArray(e[i])&&!Array.isArray(s)&&e[i]!==null&&s!==null?e[i]=U_(e[i],s):e[i]=s}}function U_(e,t){let r={...e};for(let n in t){let o=r[n],i=t[n];o&&i&&typeof o=="object"&&typeof i=="object"&&!Array.isArray(o)&&!Array.isArray(i)&&typeof o!="function"&&typeof i!="function"?r[n]=U_(o,i):r[n]=i}return r}var Ts=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let i of n)typeof i[e]=="function"&&(i[e](t,...r),o=!0);return o};function Os(e={},t={}){let r=this,n=r.__ref;if(n){if((typeof e=="string"||typeof e=="number")&&(e={text:e}),!t.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,t)===!1)return r;if(Sr(()=>{if(e.state&&Be(r.state)&&r.state.update(e.state),e.text!==void 0&&(r.text=e.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=e.text??"":r.node.textContent=e.text??"")),e.html!==void 0&&(r.html=e.html,!n.__exec.html&&r.node&&(r.node.innerHTML=e.html)),e.style&&r.node?.style){if(!n.__exec.style)for(let o in e.style){let i=e.style[o];if(i==null)continue;let s=o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=String(i).replace(/\s*!important\s*$/,"");r.node.style.setProperty(s,a,"important")}r.style||(r.style={}),Object.assign(r.style,e.style)}if(e.attr&&r.node?.setAttribute){for(let o in e.attr){let i=e.attr[o];i==null||i===!1?r.node.removeAttribute(o):typeof i!="function"&&typeof i!="object"&&r.node.setAttribute(o,i===!0?"":i)}r.attr||(r.attr={}),Object.assign(r.attr,e.attr)}if(e.data&&r.node?.dataset){for(let o in e.data)r.node.dataset[o]=e.data[o];r.data||(r.data={}),Object.assign(r.data,e.data)}for(let o in e){if(Qe.has(o)||o==="state")continue;let i=e[o],s=r[o];if(s&&s.__ref&&typeof s.update=="function")s.update(i,t);else if(typeof i=="object"&&i!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&Dt(i,r,o,t)}else o!=="text"&&o!=="html"&&o!=="style"&&o!=="attr"&&o!=="data"&&(r[o]=i)}}),r.node&&n.__conditionalRunners)for(let o of n.__conditionalRunners)o();return Ts("update",r),!t.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,t),r}}function An(e){if(!e)return;let t=e.__ref;if(t){try{typeof e.onBeforeRemove=="function"&&e.onBeforeRemove(e,e.state,e.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(t.__effects){for(let r=0;r<t.__effects.length;r++)t.__effects[r].dispose();t.__effects.length=0}if(t.__eventCleanup){for(let r=0;r<t.__eventCleanup.length;r++)t.__eventCleanup[r]();t.__eventCleanup.length=0}if(t.__children){for(let r=0;r<t.__children.length;r++){let n=t.__children[r],o=e[n];o&&o.__ref&&An(o)}t.__children.length=0}if(e.node?.parentNode&&e.node.remove(),e.state?.destroy&&e.state.__element===e&&e.state.destroy(),e.parent?.__ref?.__children){let r=e.parent.__ref.__children.indexOf(e.key);r!==-1&&e.parent.__ref.__children.splice(r,1),delete e.parent[e.key]}try{typeof e.onRemove=="function"&&e.onRemove(e)}catch(r){console.error("[smbls] onRemove error:",r)}e.node=null,e.parent=null,e.__ref=null}}function Rs(){An(this)}D();D();var FL=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],DL=["none","forwards","backwards","both"],LL=["normal","reverse","alternate","alternate-reverse"],ML=["running","paused"],BL=e=>/^[\d.]+m?s$/.test(e),NL=0,tm=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(_(e)){let o=`smbls-anim-${NL++}`;return{animationName:xs(o,e)}}let n=r&&r[e];return _(n)?xs(e,n):e},zL=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,i=[],s=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:BL(d)?i.push(d):FL.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?s=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):LL.includes(d)?l=d:DL.includes(d)?c=d:ML.includes(d)?u=d:o||(o=d);return{name:o,durations:i,timingFunction:s,iterationCount:a,direction:l,fillMode:c,playState:u}},rm={animation:(e,t)=>{if(A(e)&&e.includes(" ")){let r=zL(e,t);return{animationName:tm(r.name||e,t),animationDuration:r.durations[0]||gt(t.animationDuration||"A").timing,animationDelay:r.durations[1]||gt(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Ft(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:tm(e,t),animationDuration:gt(t.animationDuration||"A").timing,animationDelay:gt(t.animationDelay||"0s").timing,animationTimingFunction:Ft(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:tm(e,t)}),animationDuration:e=>({animationDuration:gt(e).timing}),animationDelay:e=>({animationDelay:gt(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Ft(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};D();var nm={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>ne("height",e,t),width:(e,t)=>ne("width",e,t),boxSizing:e=>_e(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...Se("height",t),...Se("width",r||t)}},inlineSize:(e,t)=>ne("inlineSize",e,t),blockSize:(e,t)=>ne("blockSize",e,t),minWidth:(e,t)=>ne("minWidth",e,t),maxWidth:(e,t)=>ne("maxWidth",e,t),widthRange:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...Se("minWidth",t),...Se("maxWidth",r||t)}},minHeight:(e,t)=>ne("minHeight",e,t),maxHeight:(e,t)=>ne("maxHeight",e,t),heightRange:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...Se("minHeight",t),...Se("maxHeight",r||t)}},size:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...ne("inlineSize",t),...ne("blockSize",r||t)}},minBlockSize:(e,t)=>ne("minBlockSize",e,t),minInlineSize:(e,t)=>ne("minInlineSize",e,t),maxBlockSize:(e,t)=>ne("maxBlockSize",e,t),maxInlineSize:(e,t)=>ne("maxInlineSize",e,t),minSize:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...Se("minInlineSize",t),...Se("minBlockSize",r||t)}},maxSize:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...Se("maxInlineSize",t),...Se("maxBlockSize",r||t)}},borderWidth:(e,t)=>ne("borderWidth",e,t),padding:(e,t)=>ne("padding",e,t),scrollPadding:(e,t)=>ne("scrollPadding",e,t),paddingInline:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...Se("paddingInlineStart",t),...Se("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...Se("paddingBlockStart",t),...Se("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>ne("paddingBlockStart",e,t),paddingBottom:(e,t)=>ne("paddingBlockEnd",e,t),paddingLeft:(e,t)=>ne("paddingInlineStart",e,t),paddingRight:(e,t)=>ne("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>ne("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>ne("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>ne("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>ne("paddingInlineEnd",e,t),margin:(e,t)=>ne("margin",e,t),marginInline:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...Se("marginInlineStart",t),...Se("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!A(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...Se("marginBlockStart",r),...Se("marginBlockEnd",n||r)}},marginTop:(e,t)=>ne("marginBlockStart",e,t),marginBottom:(e,t)=>ne("marginBlockEnd",e,t),marginLeft:(e,t)=>ne("marginInlineStart",e,t),marginRight:(e,t)=>ne("marginInlineEnd",e,t),marginInlineStart:(e,t)=>ne("marginInlineStart",e,t),marginInlineEnd:(e,t)=>ne("marginInlineEnd",e,t),marginBlockStart:(e,t)=>ne("marginBlockStart",e,t),marginBlockEnd:(e,t)=>ne("marginBlockEnd",e,t),gap:e=>({gap:Vg(e)}),columnGap:(e,t)=>ht(t,"columnGap",e),rowGap:(e,t)=>ht(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!A(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>Vc(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>Vc(e??t.round,t,"borderRadius")};var om={fontSize:e=>Rc(e)||e,fontFamily:e=>({fontFamily:Tc(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})};var im={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let i=n.files&&n.files[e];i&&i.content&&(e=`url(${i.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0};var sm={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>$e(r,"k").k).join(" ")}},left:e=>$e(e,"left"),top:e=>$e(e,"top"),right:e=>$e(e,"right"),bottom:e=>$e(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>$e(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>$e(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};D();var bt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},am={theme:(e,t)=>{if(e)return t.themeModifier?jt(e,`@${t.themeModifier}`):jt(e)},color:(e,t)=>{let r=bt(t);if(e)return{color:Fe(e,r)}},background:(e,t)=>{let r=bt(t);if(e)return A(e)&&e.includes("gradient")?{background:Wc(e,r)}:{background:Fe(e,r)}},backgroundColor:(e,t)=>{let r=bt(t);if(e)return{backgroundColor:Fe(e,r)}},backgroundImage:(e,t,r,n)=>{let o=bt(t);if(!e)return;let i=n.assets&&n.assets[e];if(i&&i.content)e=i.content.src;else{let s=n.files&&n.files[e];s&&s.content&&(e=s.content.src)}return{backgroundImage:Hg(e,o)}},textStroke:e=>({WebkitTextStroke:zg(e)}),outline:e=>({outline:fr(e)}),outlineOffset:(e,t)=>ne("outlineOffset",e,t),border:e=>({border:fr(e)}),borderColor:(e,t)=>{let r=bt(t);if(e)return{borderColor:Fe(e,r)}},borderTopColor:(e,t)=>{let r=bt(t);if(e)return{borderTopColor:Fe(e,r)}},borderBottomColor:(e,t)=>{let r=bt(t);if(e)return{borderBottomColor:Fe(e,r)}},borderLeftColor:(e,t)=>{let r=bt(t);if(e)return{borderLeftColor:Fe(e,r)}},borderRightColor:(e,t)=>{let r=bt(t);if(e)return{borderRightColor:Fe(e,r)}},borderLeft:e=>({borderLeft:fr(e)}),borderTop:e=>({borderTop:fr(e)}),borderRight:e=>({borderRight:fr(e)}),borderBottom:e=>({borderBottom:fr(e)}),shadow:(e,t)=>{let r=bt(t);if(e)return{boxShadow:Wg(e,r)}},boxShadow:(e,t)=>{if(!A(e))return;let[r,n]=e.split("!importan"),o=bt(t),i=n?" !important":"";return{boxShadow:zc(r.trim(),o)+i}},textShadow:(e,{context:t})=>({textShadow:zc(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:fr(e)})};var En={transition:e=>({transition:Ug(e)}),transitionDuration:e=>({transitionDuration:Hc(e)}),transitionDelay:e=>({transitionDelay:Hc(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Ft(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};D();var lm={flow:(e,t)=>{let r=t.reverse;if(!A(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var cm={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})};var Ae={...rm,...nm,...om,...im,...sm,...am,...En,...lm,...cm};var ze=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);D();var WL=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,HL=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),i=n.designSystem.media[o],s=Ve(t,r);if(!i)return{[e]:s};if(i==="print")return{"@media print":s};if(i[0]==="(")return{[`@media screen and ${i}`]:s};let a=i.match(WL),l=a?a[1]||a[2]:o,c={[`${i} &`]:s};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:s}}return c},q_=(e,t,r)=>({[e]:Ve(t,r)}),Ps=(e,t,r)=>{let n=`&${e}`,o=Ve(t,r);if(e.includes(",")&&o){let i={},s={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?s[a]=o[a]:i[a]=o[a];if(Object.keys(s).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(i).length&&(l[n]=i);for(let c in s){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=s[c]}return l}}return{[n]:o}},um=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},VL=(e,t,r)=>{let n=e.slice(1),o=um(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Ve(t,r)},UL=(e,t,r)=>({[e]:t}),qL=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let i=um(n,r);i!==void 0&&(o=i)}if(o)return Ve(t,r)},GL=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let i=um(n,r);i!==void 0&&(o=i)}if(!o)return Ve(t,r)},fm=(e,t)=>Ve(e,t),dm={"@":HL,":":Ps,"[":Ps,"*":Ps,"+":Ps,"~":Ps,"&":q_,">":q_,$:VL,"-":UL,".":qL,"!":GL};var pm=Cr(),G_=(e,t,r)=>{let n=t?.context?.designSystem;n&&Pe(n);try{let o={},i={},s=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>be(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=de(l,t);be(o,fm(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=O(c)?c(t,t.state,t.context):c;u&&s(a,u),!pm&&_(o[a])&&(o[a].label=a)}else if(Ae[a]){let c=de(l,t);F(c)&&(c=c.reduce((d,f)=>be(d,f),{}));let u=Ae[a](c,t,t.state,t.context);F(u)&&(u=u.reduce((d,f)=>be(d,f),{})),u&&s(a,u),!pm&&_(o[a])&&(o[a].label=a)}else if(ze.has(a)){let c=de(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),s(a,{[a]:c}),!pm&&_(o[a])&&(o[a].label=a)}else i[a]=l}return[o,i]}finally{n&&ke()}},K_=(e,t)=>{let r={};for(let n in e){let o=dm[n.slice(0,1)];if(o){let i=o(n,e[n],t);if(i)for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]&&typeof r[s]=="object"&&typeof i[s]=="object"?Ye(r[s],i[s]):r[s]=i[s])}}return r},Ve=(e,t,r={unpack:!0})=>{let[n,o]=G_(e,t,r),i=K_(o,t),s=!1;for(let a in i){s=!0;break}if(s){if(r.unpack)return yi(n,i);n._selectors=i}return n},KL=(e,t)=>{let r={};if(e.class)for(let n in e.class)r[n]=e.class[n](t);return r};D();var X_=e=>{if(_(e))return Ve(e,e)},XL=(e,t)=>{let r=X_(e);return typeof t=="function"?t(r):Lr(r)};D();function J_(e,t,r){let n=e?.context?.analyze;if(!n||!n.emit||t==="warn"&&!n.shouldCapture("warnings")||t==="error"&&!n.shouldCapture("errors"))return;let o=r.map(i=>i?.message||(typeof i=="string"?i:null)).filter(Boolean).join(" ");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:t==="error"?"error":"warning",level:t,hook:t==="error"?"el.error":"el.warn",element:{key:e.key!=null?String(e.key):null,name:e.__name||null,tag:e.tag||null},message:o||null,args:r})}function ZL(...e){return J_(this,"warn",e),ts.apply(this,e)}function YL(...e){return J_(this,"error",e),un.apply(this,e)}var Z_={update:Os,remove:Rs,getDB:is,getQuery:ss,getRootData:Ji,getChildren:Gi,getPath:Ki,nextElement:rs,previousElement:ns,verbose:io,warn:ZL,error:YL,variables:os,spotByPath:qi,set(e,t){if(this.removeContent(),e!=null){let r=this.context?.__create;r&&r(e,this,"content",t)}this.__ref&&(this.__ref.contentManaged=!0)},reset(e){let t=this.context?.__create;if(!t)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),t(o,r,n,e)},lookup(e){let t=this.parent;for(;t;){if(typeof e=="function"){if(e(t))return t}else if(typeof e=="string"){if(t.key===e)return t;if(t[e]&&t[e].__ref)return t[e]}t=t.parent}return null},lookdown(e){let t=this.__ref;if(!t?.__children)return null;for(let r of t.__children){let n=this[r];if(!n)continue;if(typeof e=="function"){if(e(n))return n}else if(typeof e=="string"&&n.key===e)return n;let o=n.lookdown?.(e);if(o)return o}return null},lookdownAll(e,t=[]){let r=this.__ref;if(!r?.__children)return t;for(let n of r.__children){let o=this[n];o&&(typeof e=="function"?e(o)&&t.push(o):typeof e=="string"&&o.key===e&&t.push(o),o.lookdownAll?.(e,t))}return t},getRef(){return this.__ref},getRoot:Yi,getRootState:Zi,getRootContext:Qi,getContext:es,parse(e){let t={},r=e?new Set(e):null,n=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!r?.has(o)){if(n&&n[o]!==void 0){t[o]=n[o];continue}typeof this[o]!="function"&&(t[o]=this[o])}return t},parseDeep(e){let t=this.parse(e),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(t[n]=this[n].parseDeep(e));return t},keys(){return Object.keys(this)},log(...e){if(e.length){let t={};for(let r of e)t[r]=this[r];console.log(t)}else console.log(this)},setProps(e,t){return this.update(e,t)},setNodeStyles(e){if(this.node?.style)for(let t in e){let r=e[t];if(r==null)continue;let n=t.replace(/[A-Z]/g,i=>"-"+i.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(e,...t){let r=this.context,n=r?.methods?.[e]||r?.functions?.[e]||r?.utils?.[e]||this[e];if(typeof n=="function")return n.call(this,...t)},removeContent(){let e=this.__ref;if(!e?.__children)return;let t=this.content;if(t?.remove){t.remove(),delete this.content;let r=e.__children.indexOf("content");r!==-1&&e.__children.splice(r,1)}t?.node?.parentNode&&t.node.parentNode.removeChild(t.node)}},Y_=new WeakMap;function JL(e){if(!e)return Z_;let t=Y_.get(e);if(t)return t;t=Object.create(Z_);let r=e.methods;if(r)for(let n in r)t[n]=r[n];return Y_.set(e,t),t}function $s(e){let t=JL(e.context);Object.setPrototypeOf(e,t)}D();var QL=(e,t,r)=>{Object.defineProperty(e,t,{value:r,enumerable:!1,configurable:!0,writable:!0})},vt=(e,t)=>{if(Be(t)){let o=t.__raw||t;t.toggle||Object.defineProperty(o,"toggle",{value:function(i,s={}){t[i]=!t[i]},enumerable:!1,configurable:!0}),t.set||Object.defineProperty(o,"set",{value:function(i,s={}){return t.clean({preventStateUpdate:!0}),typeof i=="object"&&i!==null&&t.update(i,s),t},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(i,s,a={}){let l=i.split("."),c=t;for(let u=0;u<l.length-1;u++)c[l[u]]===void 0&&(c[l[u]]={}),c=c[l[u]];return c[l[l.length-1]]=s,t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(i){let s=i.split("."),a=t;for(let l=0;l<s.length;l++){if(a==null)return;a=a[s[l]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(i,s={}){let a=i.split("."),l=t;for(let c=0;c<a.length-1;c++){if(l==null)return t;l=l[a[c]]}return l&&delete l[a[a.length-1]],t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(i={}){let s=t.parse();return t.set(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(i,s={}){if(typeof i=="function"){let a=i(t);return t.update(a,s)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(i,s={}){if(typeof i=="function")return i(t),t.update(t.parse(),s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(i,s={}){let a=t;for(;a?.parent&&Be(a.parent);)a=a.parent;return a.update(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(i,s={}){if(t.parent)return t.parent.update(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(i,s={}){return t.replace(i,{quiet:!0,...s})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let i=t;for(;i?.parent&&Be(i.parent);)i=i.parent;return i},enumerable:!1,configurable:!0});return}if(!t||typeof t!="object")return;let r=()=>{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&delete t[o]},n={update(o){if(!o||typeof o!="object")return t;for(let i in o)t[i]=o[i];return t},apply(o){if(typeof o!="function")return t;let i=o(t);return i?t.update(i):t},parse(){return{...t}},toggle(o){return t[o]=!t[o],t},set(o){if(!o||typeof o!="object")return t;r();for(let i in o)t[i]=o[i];return t},replace(o){return t.set(o)},clean(){return r(),t}};for(let o in n)typeof t[o]!="function"&&QL(t,o,n[o])};var Q_=function(e,t,r){return e.state=gm(e,t,r),e.state},gm=function(e,t,r){let{__ref:n}=e,o=e.state;if(o==null||o===!1){let i=t?.state||{};return vt(e,i),i}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",eM(o,e,t);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let i=ft({value:o});return i.__element=e,t?.state&&(i.parent=t.state),vt(e,i),i}if(typeof o=="function"&&(o=o(e,t?.state)||{}),typeof o=="object"&&!Be(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let i=ft({...o});if(i.__element=e,!Object.getOwnPropertyDescriptor(i,"root")){let s=t?.state?.root||t?.state||i;Object.defineProperty(i,"root",{get:()=>s,enumerable:!1,configurable:!0})}return t?.state&&(i.parent=t.state,t.state.__children&&(t.state.__children[e.key]=i)),vt(e,i),typeof e.onStateCreated=="function"&&e.onStateCreated(e,i,e.context,r),i}return Be(o)?(o.__element=e,o):t?.state||{}};function hm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function eM(e,t,r){if(!r?.state)return{};if(e===".")return r.state;if(e.startsWith("../")){let o=e.slice(3),i=r.state?.parent;return o&&i?hm(i,o):i??r.state??{}}if(e.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let i=e.slice(2);return i?hm(o,i):o??{}}let n=hm(r.state,e);if(n&&typeof n=="object"&&!Be(n)&&!Object.getOwnPropertyDescriptor(n,"root")){let o=r.state?.root||r.state;Object.defineProperty(n,"root",{get:()=>o,enumerable:!1,configurable:!0})}return n}var rk=(e,t)=>{if(!e)return tk;let r=rM(e,t);return!r||!r.state?tk:oM(r.state)},nk=()=>Hn()!=null,tM=128;function rM(e,t){let r=typeof t=="function"?t:typeof t=="string"?i=>!!i?.[t]:i=>!!i?.state,n=e,o=null;for(let i=0;i<tM&&n;i++){if(r(n)&&n.state)return n;if(n.state&&!o&&(o=n),!n.parent||n.parent===n)break;n=n.parent}return o}var nM={get(e,t){return e[t]}},ek=new WeakMap,oM=e=>{let t=ek.get(e);return t||(t=new Proxy(e,nM),ek.set(e,t)),t},tk=new Proxy(Object.create(null),{get(){},has(){return!1}});D();var iM=["alert","alertdialog","application","article","banner","button","cell","checkbox","columnheader","combobox","complementary","contentinfo","definition","dialog","directory","document","feed","figure","form","grid","gridcell","group","heading","img","link","list","listbox","listitem","log","main","marquee","math","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","switch","tab","table","tablist","tabpanel","term","textbox","timer","toolbar","tooltip","tree","treegrid","treeitem"],Xc={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","hidden","id","lang","part","placeholder","slot","spellcheck","style","tabindex","title","translate","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["open"],del:["cite","datetime"],dialog:["open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","crossorigin","decoding","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alt","autocomplete","capture","checked","crossorigin","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","crossorigin","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],slot:["name"],script:["async","charset","crossorigin","defer","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"]},ik=["oncopy","oncut","onpaste","oncompositionend","oncompositionstart","oncompositionupdate","onfocus","onfocusin","onfocusout","onblur","onchange","onbeforeinput","oninput","onreset","onsubmit","oninvalid","onformdata","onload","onerror","ontoggle","onkeydown","onkeypress","onkeyup","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onencrypted","onended","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","onauxclick","onclick","oncontextmenu","ondblclick","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onselect","onselectionchange","onselectstart","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ongotpointercapture","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onlostpointercapture","onscroll","onresize","onwheel","onanimationstart","onanimationend","onanimationiteration","ontransitionstart","ontransitionrun","ontransitionend","ontransitioncancel","onoutrostart","onoutroend","onintrostart","onintroend","onmessage","onmessageerror","onvisibilitychange","oncancel","onclose","onfullscreenchange","onfullscreenerror"],bm=e=>e.startsWith("aria")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"aria-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):e.startsWith("data")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"data-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):null,Mr=(e,t)=>t.startsWith("aria-")||t.startsWith("data-")||bm(t)||Xc.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(Xc,e)?Xc[e].includes(t):!1,vm=e=>{if(!A(e))return!1;let t=e.toLowerCase();return ik.includes(t)},sM=(e,t,r)=>{let n={};for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(r&&o in r)continue;if(o==="aria"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])Ne(t[o][a])&&(n["aria-"+a]=t[o][a]);continue}if(o==="data"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])if(Ne(t[o][a])){let l=a.replace(/([A-Z])/g,c=>"-"+c.toLowerCase());n["data-"+l]=t[o][a]}continue}let i=Mr(e,o),s=vm(o);if(Ne(t[o])&&(i||s)){let a=bm(o)||o;n[a]=t[o]}}return n},aM=(e,t)=>{let r={};if(e.attr)for(let n in e.attr)r[n]=e.attr[n](t,t.state,t.context);if(e.aria&&typeof e.aria=="object")for(let n in e.aria){let o=e.aria[n];typeof o=="function"&&(r["aria-"+n]=o(t,t.state,t.context))}if(e.data&&typeof e.data=="object")for(let n in e.data){let o=e.data[n];if(typeof o=="function"){let i=n.replace(/([A-Z])/g,s=>"-"+s.toLowerCase());r["data-"+i]=o(t,t.state,t.context)}}return r},Lt=(e,t)=>{let r=e.call("exec",t,e);if(r)return A(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r},mm=(e,t)=>{let r=(e.preSrc||"")+(Lt(e,t)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=e;if(!n.files&&!n.assets)return r;if(r.startsWith("/assets/")){let o=r.slice(8),i=n.assets&&(n.assets[r]||n.assets[o]);return i&&i.content?i.content.src:r}if(r.startsWith("/files/")){let o=r.slice(7),i=n.files&&(n.files[r]||n.files[o]);return i&&i.content?i.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},ym={src:e=>mm(e,e.src),href:e=>Lt(e,e.href),action:e=>Lt(e,e.action),poster:e=>mm(e,e.poster),data:e=>Lt(e,e.data)},xm=e=>{let t=e.tag||"div",r={};for(let n in ym)if(e[n]!==void 0&&Mr(t,n)){let o=ym[n](e);o!==void 0&&(r[n]=o)}return r},ok=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},lM=(e,t,r)=>{if(e==="$"){let o=ok(t,r);return o===void 0&&(o=!!r[t]),o}let n=r[t]===!0||r.state[t];if(!n){let o=ok(t,r);o!==void 0&&(n=o)}return e==="."?!!n:!n},cM=new Set(["$",".","!"]),uM=(e,t,r)=>{let n={},o=(i,s,a,l)=>{let c=s;n[i]=u=>{if(lM(a,l,u))return O(c)?c(u):c}};for(let i in e){let s=i.charAt(0);if(!cM.has(s))continue;let a=e[i];if(!a||typeof a!="object")continue;let l=i.slice(1);for(let c in a){if(r&&c in r)continue;if(c==="aria"&&a[c]&&typeof a[c]=="object"){for(let p in a[c])o("aria-"+p,a[c][p],s,l);continue}if(c==="data"&&a[c]&&typeof a[c]=="object"){for(let p in a[c]){let h=p.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());o("data-"+h,a[c][p],s,l)}continue}let u=Mr(t,c),d=vm(c);if(!u&&!d)continue;let f=bm(c)||c;o(f,a[c],s,l)}}return n};var fM=1;function mo(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function dM(e){return e.charAt(2).toLowerCase()+e.slice(3)}function pM(e){return e.toLowerCase()}function _m(e,t){let r={...e};for(let n in t){let o=r[n],i=t[n];o&&i&&typeof o=="object"&&typeof i=="object"&&!Array.isArray(o)&&!Array.isArray(i)&&typeof o!="function"&&typeof i!="function"?r[n]=_m(o,i):r[n]=i}return r}function Dt(e,t,r,n={},o){if(e==null||e===!1)return null;(typeof e=="string"||typeof e=="number")&&(e={text:e});let i=Object.create(null);i.key=r||e.key||`_${fM++}`,i.parent=t||null,i.context=e.context||t?.context||n.context||{},i.context.__create||(i.context.__create=Dt);let s=i.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:t?.__ref?.root||i,path:t?.__ref?.path?[...t.__ref.path,i.key]:[i.key]};if(r&&!e.extends&&!e.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=i.context?.components;y&&(y[m]||y["smbls."+m])&&(e={extends:m,...e})}}Es(i,e,n);let a=new Set(["childProps","attr","style","scope","data"]),l=i.props&&typeof i.props=="object"?i.props:null;for(let g in e){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=e[g],y=i[g],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?i[g]=_m(y,m):b&&a.has(g)?i[g]={...y,...m}:i[g]=m}function c(g){for(let m in g){let y=g[m],b=i[m],x=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";x&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?i[m]=_m(b,y):x&&a.has(m)?i[m]={...b,...y}:i[m]=y}}l&&c(l),e.props&&typeof e.props=="object"&&c(e.props),e.data!==void 0&&(i.data=e.data),e.classlist!==void 0&&(i.classlist=e.classlist),e.text!==void 0&&(i.text=e.text),e.html!==void 0&&(i.html=e.html);let u=i.scope&&typeof i.scope=="object"?i.scope:null,d=t?.scope,f=i.context&&typeof i.context.globalScope=="object"&&i.context.globalScope||null,p=d||f||null;if(e.scope!==void 0||u){let g={};u&&Object.assign(g,u),e.scope!==void 0&&Object.assign(g,e.scope),i.scope=fl(g,p)}else p&&(i.scope=p);if(e.if!==void 0&&(i.if=e.if),$s(i),hM(i,t,e),i.if!=null){let g=typeof i.if=="function"?i.if(i,i.state,i.context):i.if;s.__if=!!g}if(s.__if)typeof e.if=="function"&&(s.__ifInitialized=!0);else return t&&(t[i.key]=i),typeof e.if=="function"&&km(i,{if:e.if}),i;i.tag||(i.tag=_n(i)),Br("Init",i,n);let h=i.node=kn(i);if(!h)return i;Br("AttachNode",i,n),h.setAttribute&&i.key&&h.setAttribute("data-key",i.key),h.setAttribute&&i.context?.scopeSelector&&i.context.scopeSelector!==":root"&&i.context.key&&i.key===i.context.key&&h.setAttribute("data-smbls-app",i.context.key),i.id&&h.setAttribute&&(h.id=i.id),km(i,e),Cm(i),ak(i),lk(i,n);try{ck(i,n)}catch(g){if(typeof console<"u"&&console.error){let m=i.__ref?.path?.join(".")||i.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`
34
+ src: ${i};`},fn=(e,t,r,n)=>`@font-face {${tc(e,t,r,n)}
35
+ }`,no=(e,t,r)=>Object.keys(t).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:l,fontStretch:c}=t[o],u=Array.isArray(s)?s.map(d=>Ot(d,r)||d):Ot(s,r)||s;return tc(e,u,i,{fontStyle:a,fontDisplay:l,fontStretch:c})}),K_=e=>Object.keys(e).map(r=>no(r,e[r].value)),pg=(e,t,r)=>{if(t&&t.isVariable){let s=Ot(t.url,r)||t.url;return li(s)?ci(s):fn(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return no(e,t,r).map(dg);let o=Array.isArray(t.url)?t.url.map(s=>Ot(s,r)||s):Ot(t.url,r)||t.url;return fn(e,o,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},rc=(e,t)=>Object.keys(e).map(n=>pg(n,e[n].value,t));D();D();D();var ui={};K(ui,{animation:()=>fw,breakpoints:()=>cw,class:()=>mw,color:()=>rw,devices:()=>uw,document:()=>l$,font:()=>Y_,fontFace:()=>Q_,fontFamily:()=>J_,fontFamilyTypes:()=>Z_,gradient:()=>nw,grid:()=>gw,icons:()=>iw,media:()=>ew,reset:()=>u$,semanticIcons:()=>aw,sequence:()=>Rr,shadow:()=>sw,spacing:()=>tw,svg:()=>dw,svgData:()=>pw,templates:()=>hw,theme:()=>ow,timing:()=>lw,typography:()=>nc,unit:()=>X_,vars:()=>yw});var Rr={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var X_={default:"em"};var s$={browserDefault:16,base:16,type:"font-size",ratio:Rr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},nc=s$;var Y_={};var J_={},Z_={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Q_={};var ew={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var i$={base:nc.base,type:"spacing",ratio:Rr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},tw=i$;var rw={},nw={};var ow={};var sw={};var iw={},aw={};var a$={default:150,base:150,type:"timing",ratio:Rr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},lw=a$;var l$={};var cw={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},uw={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]};var fw={};var dw={},pw={};var hw={};var c$={},gw=c$;var mw={};var u$={},yw={};var hg={},gg={},oc=ui,sc={},ic=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in oc){let t=e.toLowerCase();sc[t]=oc[e];let r=ic(t);r!==t&&(sc[r]=oc[e]),t!==e&&(sc[e]=oc[e])}var ac={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:hg,cssMediaVars:gg,CSS_VARS:hg,CSS_MEDIA_VARS:gg,_scratchConfig:!0,...sc},bw=ge(ac),ir={active:"0",0:ac},f$=e=>(qe(e)&&(ir.active=e),ir[e||ir.active]),fi=[],Oe=e=>{e&&e._scratchConfig&&fi.push(e)},_e=()=>{fi.pop()},T=e=>fi.length?fi[fi.length-1]:ir[e||ir.active]||ac,mg=e=>{if(S(e))return ir.active="1",ir[1]=fe(e,ge(bw)),e},d$=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],p$=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],h$=e=>{for(let t of p$){let r;for(let n of t){let o=e[n];S(o)&&(r=r?fe(o,r):o)}if(r)for(let n of t)S(e[n])&&(e[n]=r)}},yg=(e,t,{cleanBase:r=!1}={})=>{let n=r?null:T(),o=ge(!r&&n&&n._scratchConfig?n:bw);for(let i of d$)delete o[i];let s=fe(t||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,h$(s),e&&(ir[e]=s),s};var ar={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},bg=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=xw.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Pr=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},xw=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),lc=(e,t)=>{let{base:r,type:n,unit:o}=t,s=xw.has(o)?"rem":o,i=(Dn(s)?1:r)+s;if(e===0)return i;let l="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),c=`${l}-ratio`;if(e>0){let u=ar[e-1];return`calc(var(${l}-${u}) * var(${c}))`}if(e<0){let u=ar[e+1],d=Math.abs(e),f=Math.pow(vw,2*d),p=ar[d];return p?`max(calc(var(${l}-${u}) / var(${c})), calc(var(${l}-${p}) / ${f.toFixed(4)}))`:`calc(var(${l}-${u}) / var(${c}))`}},xg=(e,t,r,n)=>{let{type:o}=n,i=e===2&&t.length===2?e+1:e,c=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+i}))`},cc=(e,t)=>{let n=(e*t-e)/1.618,o=e*t-n,s=e+n,i=(o+s)/2;return[o,i,s]},uc=(e,t)=>cc(e,t).map(r=>r/e),fc=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,c=~~(o*s)-~~o,u,[d,f,p]=cc(o,s);c>16?u=[d,f,p]:u=[d,p],u.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,v=xg(g+1,u,i,t),x={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:v,index:b};bg(x,t)})},vw=1.618,g$=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(vw,2*n);return Math.max(o,s)},et=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),l="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let c=0;c<=i;c++){let u=o[1]-c,d=ar[u],f=g$(u,r,n),p=~~(f/r*100)/100,h=l+d,g=lc(u,e),m={key:d,variable:h,value:f,base:r,scaling:p,scalingVariable:g,ratio:n,index:u};bg(m,e),s&&fc(m,e)}return e},_w=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=k(t)?t:ar[t],a=k(t)?Object.entries(ar).find(([,m])=>m===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,p="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=lc(a,e),g={key:i,variable:p,value:c,base:n,scaling:u,scalingVariable:h,ratio:o,index:a};return bg(g,l),s&&fc(g,l),l},dc=(e="A",t)=>{let r=T(),{unit:n}=r;if(k(e)&&xe(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Ln.some(v=>e.includes(v))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let f=`--${t.varPrefix?t.varPrefix+"-":""}${oi(t.type.replace(".","-"))}-`,p=e.toUpperCase(),h=p.slice(0,1)==="-"?"-":"",g=h?p.slice(1):p,m="";g.includes("_")&&(m="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=v=>a.test(v)?`var(${f}${v}${m})`:v;if(g.includes("+")){let[v,x]=g.split("+"),_=`${y(v)} + ${y(x)}`;return h?`calc((${_}) * -1)`:`calc(${_})`}else if(g.includes("*")){let[v,x]=g.split("*"),_=`${y(v)} * ${y(x)}`;return h?`calc((${_}) * -1)`:`calc(${_})`}else if(g.includes("-")){let[v,x]=g.split("-"),_=`${y(v)} - ${y(x)}`;return h?`calc((${_}) * -1)`:`calc(${_})`}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||r.useVariable){let v=`var(${f}${g}${m})`;return h?`calc(${v} * -1)`:v}let b=o?o[g]:null;return b?s==="ms"||s==="s"?h+b.val+s:h+b.scaling+s:console.warn("can't find",o,g)},vg=(e,t)=>{if(!["+","-","*","/",","].filter(s=>e.includes(s+" ")).length)return e;let n=/(\s*[+\-*/,]\s*)/;return e.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:dc(i,t)}).join("")},lr=(e,t,r,n)=>{if(typeof e!="string")return T().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let s=Pr(e);n=s[0],e=s[1]}return["+","-","*","/",","].filter(s=>e.includes(s+" ")).length?e=vg(e,r):e=dc(e,r),{[t]:n?`${n}(${e})`:e}},_g=(e,t)=>ar[e-t],pc=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=_g(t,o);return r[s]})};D();var ww=(e,t)=>{let r=T(),{cssVars:n}=r;re(e.value)||(n[e.var]=e.value)},hc=(e,t,r)=>{let n=T(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,u="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${u}-base`]=i,e[`${u}-unit`]=s;let d=`${u}-ratio`;e[d]=a;let[f,p,h]=uc(i,a);e[`${u}-sub-ratio-1`]=`calc(var(${u}-ratio) * ${f/a})`,e[`${u}-sub-ratio-2`]=`calc(var(${u}-ratio) * ${p/a})`,e[`${u}-sub-ratio-3`]=`calc(var(${u}-ratio) * ${h/a})`},Sw=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),$r=(e,t={})=>{let r=T(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=Sw.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||hc(s,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=p,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=p:(s[f.variable+"_default"]=p,s[f.variable]=`var(${f.variable+"_default"})`)}},dn=(e,t,r={})=>{let n=T(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=Sw.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),hc(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],v=p[y]+u;g[b.variable+"_default"]=v,g[b.variable]=v}return}for(let g in f){let m=f[g],y=(Dn(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};D();var Cw=nn(),di=e=>{let t=T(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},m$=e=>{let t=e&&(e.default||e);if(!k(t))return Cw&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return o?o.reduce((s,i)=>{let[a,l]=i.split("=");return s[a]=l.replace(/['"]/g,""),s},{}):{}},y$=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},kw=new Set,gc=(e,t)=>{let r=t&&t.default?t.default:t;if(!k(r))return Cw&&!kw.has(e)&&(kw.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=m$(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,c=y$(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c=v$(c),c},b$="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",x$=new RegExp(`<(${b$})\\b([^>]*?)\\s*/>`,"g"),v$=e=>e.replace(x$,"<$1$2></$1>");var mi={};K(mi,{appendSVGSprite:()=>Rc,appendSvgIconsSprite:()=>$c,applyDocument:()=>Tc,applyHeadings:()=>Cg,applyReset:()=>Ic,applySpacingSequence:()=>Cc,applyTimingSequence:()=>Oc,applyTypographySequence:()=>wc,checkIfBoxSize:()=>kc,getColor:()=>me,getFontFamily:()=>_c,getFontSizeByKey:()=>Sc,getMediaColor:()=>De,getMediaTheme:()=>Tt,getShadow:()=>Ec,getSpacingBasedOnRatio:()=>Xt,getSpacingByKey:()=>Te,getTheme:()=>yc,getTimingByKey:()=>ft,getTimingFunction:()=>Rt,runThroughMedia:()=>kg,setColor:()=>hn,setFont:()=>vc,setFontFamily:()=>hi,setGradient:()=>gn,setMediaTheme:()=>xc,setSVG:()=>gi,setShadow:()=>mn,setSvgIcon:()=>Pc,setTheme:()=>bc,splitSpacedValue:()=>Ac});D();var me=(e,t,r)=>{let n=r||T();if(!k(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(P(e))[o,s,i]=e;else{let d=Tr(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(i&&!c[i]&&(u=un(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},De=(e,t,r)=>{let n=r||T();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!k(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let o;if(P(e))o=e[0];else{let c=Tr(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:s,gradient:i}=n,a=s[o]||i[o],l=S(a);if(l&&a.value)return me(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return me(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=me(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},hn=(e,t,r)=>{let n=T();if(k(e)&&xe(e)){let g=e.slice(2);if(e=me(g),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let m=g.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(k(y)||P(y)||S(y))&&(n.color[m[0]]=hn(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,v=m[1]!==void 0?m[1]:"1",x=m[2];x&&(b=un(b,x)),e=`rgba(${b}, ${v})`}else{let b=m[2],v=m[1]!==void 0?m[1]:"1";if(b)try{let x=or(m[0]);x&&x.length>=3?e=`rgba(${un(x.slice(0,3).join(", "),b)}, ${v})`:e=m[0]}catch{e=m[0]}else e=m[0]}}}if(P(e)&&(e={"@light":e[0],"@dark":e[1]}),S(e)){let g={};for(let m in e)g[m]=hn(e[m],t,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,b,v={};for(let x in g){if(x.charCodeAt(0)!==64)continue;let _=x.slice(1),C=g[x],E=C&&(C.value||C);!E||typeof E!="string"||(v[_]=E,(_==="light"||b===void 0)&&(b=E))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let x in v){let _=`[data-theme="${x}"]`;if(n.cssMediaVars[_]||(n.cssMediaVars[_]={}),n.cssMediaVars[_][y]=v[x],x==="light"||x==="dark"){let C=`@media (prefers-color-scheme: ${x})`;n.cssMediaVars[C]||(n.cssMediaVars[C]={}),n.cssMediaVars[C][y]=v[x]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),i=e.value||e;if(k(i)&&i.includes(".")&&!i.includes("(")){let[g,m]=i.split("."),y=n.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(k(i)&&!i.includes("(")&&!i.startsWith("#")){let g=Tr(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(k(m)||P(m)||S(m))&&(n.color[g.name]=hn(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=un(b,g.tone));let v=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${v})`}}}let a=or(i),[l,c,u,d=1]=a,f=parseFloat(d.toFixed(2)),p=`${l}, ${c}, ${u}`,h=`rgba(${p}, ${f})`;return n.useVariable&&(n.cssVars[s]=h),{var:s,rgb:p,alpha:f,value:h}},gn=(e,t,r)=>{let n=T();if(k(e)&&xe(e)&&(e=me(e.slice(2))),P(e))return{"@light":gn(e[0],t,"light"),"@dark":gn(e[0],t,"dark")};if(S(e)){let i={};for(let a in e)i[a]=gn(e[a],t,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[s]=e.value||e),{var:s,value:e.value||e}};D();var _$=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),Aw=["color","Color","background","Background","fill","Fill","stroke","Stroke"],w$=e=>{for(let t=0;t<Aw.length;t++)if(e.includes(Aw[t]))return!0;return!1},mc=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(a=>{let c=["color","Color","background","border"].some(u=>a.includes(u));return t[a]=c?me(e[a]):e[a]}),t},pi=e=>(e.value||(e.value=mc(e)),e.value),yc=(e,t)=>{let r=T();if(r.useVariable)return Tt(e,t);let n=r.theme;if(k(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return pi(i);e=[o,s||t]}}if(re(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return pi(a[s]);if(i&&i[s])return pi(i[s]);if(l&&l[s])return pi(l[s])}else if(S(e))return mc(e)},S$=(e,t,r)=>{if(S(t))e.variants.inverse.value=mc(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},k$=(e,t,r,n)=>{let o=yc(r);n[`&:${t}`]=o,S(r)&&!r.value&&(r.value=o)},C$=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return k$(e,o,s,t),e}),e):void 0},A$=(e,t,r,n)=>{let o=yc(r);n[`@media (prefers-color-scheme: ${t})`]=o,S(r)&&!r.value&&(r.value=o)},E$=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&A$(e,o,s,t),o==="inverse"&&S$(e,s,t),e}),e):void 0},O$=(e,t)=>{let r=T(),{helpers:n}=e;return n?(Object.keys(n).map(s=>{let i=n[s];return k(i)?n[s]=r.theme[i]:pi(n[s]),e}),e):void 0},bc=(e,t)=>{let r=T();if(r.useVariable)return xc(e,t);let{state:n,media:o,helpers:s}=e,i=mc(e,t),l=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return C$(e,i),E$(e,i),O$(e,i),{var:l,value:i,state:n,media:o,helpers:s}};var wg=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&w$(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=me(f,`@${d}`);p!==void 0&&k(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!_$.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>re(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)re(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=wg(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)re(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=wg(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let p=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,g;for(let m in e){if(l.has(m))continue;let y=e[m]?.[c];if(y===void 0)continue;let b=me(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let v=`[data-theme="${m}"]`;if(o[v]||(o[v]={}),o[v][p]=b,m==="dark"||m==="light"){let x=`@media (prefers-color-scheme: ${m})`;o[x]||(o[x]={}),o[x][p]=b}}g!==void 0&&(n[p]=g),i[c]=`var(${p})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},xc=(e,t,r,n)=>{let o=T(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(re(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&re(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=wg(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=xc(u,t,l,n||d)}else if(!a){let d=me(u,n),f=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],p=f.length?"-"+f.join("-"):"",g=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=d),i[l]=`var(${g})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(k(e)&&xe(e)){let c=o.theme[e.slice(2)];return Tt(c,n)}return i},Sg=e=>{let t=T(),r={};for(let n in e){let o=n.slice(0,1);if(re(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Sg(e[n]):o==="."&&(r[`&${n}`]=Sg(e[n]))}else r[n]=e[n]}return r},Ow=(e,t)=>{let r=t.shift();return e[r]?Ow(e[r],t):e},Ew=(e,t)=>P(t)?Ow(e,t):k(t)&&e[t]?e[t]:e;var Tt=(e,t)=>{let r=T();if(k(e)&&xe(e)&&(e=Tt(e.slice(2))),!e||!k(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=P(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=Ew(s,o):s&&t&&(s=Ew(s,t)),Sg(s)};D();D();var vc=(e,t)=>{let r=T(),n=`--font-${t}`;if(!e||P(e)&&!e[0])return;let o;if(e.isVariable){let s=Ot(e.url,r.files)||e.url;li(s)?o=ci(s):o=fn(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=no(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>Ot(i,r.files)||i):Ot(e.url,r.files)||e.url;o=fn(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},_c=(e,t)=>{let r=T(),{fontFamily:n}=r;return ro(t||n,e)},hi=(e,t)=>{let r=T(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),S(s)&&(s=ln(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};D();var kg=e=>{let t=T(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;ye(i,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,v=n[l],x="@media "+(v==="print"?`${v}`:`screen and ${v}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){ye(i,{sequence:{},scales:{},vars:{}}),et(i),dn(e,o);continue}ye(i,{sequence:{},scales:{},templates:{},vars:{}}),et(i),dn(e,o)}},Cg=e=>{let t=T();if(e.h1Matches){let r=e.unit,n=pc(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},wc=()=>{let e=T(),{typography:t}=e;et(t),Cg(t),$r(t),kg(t)},Sc=e=>{let t=T(),{typography:r}=t;return lr(e,"fontSize",r)};D();D();var T$=e=>{let r=T().spacing||{},n=parseFloat(e.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return et(o),o},R$=e=>{for(let t in e){let r=e[t];if(!(t.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:l,h1Matches:c,unit:u}=e;ye(r,{type:o,base:s,ratio:i,range:a,subSequence:l,h1Matches:c,unit:u,sequence:{},scales:{},templates:{},vars:{}}),et(r),dn(e,t)}},kc=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},Cc=()=>{let e=T(),{spacing:t}=e;et(t),$r(t),R$(t)},P$=e=>{let t=T(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:et(e)},Te=(e,t="padding",r,n)=>{let o=P$(r);if(k(e)&&!n&&e.includes("(")){let i=Pr(e);n=i[0],e=i[1]}let s=n?[e]:ln(e);if(P(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>lr(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return lr(e,t,o,n)}},Xt=(e,t,r,n)=>{let o=T(),{spacing:s}=o,i=r||e[t];if(!n&&k(i)&&i.includes("(")){let a=Pr(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=T$(e);return Te(i,t,a,n)}return Te(i,t,s,n)},Ac=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Ln.some(i=>e.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};D();var mn=(e,t,r,n)=>{let o=T();if(P(e))return{"@light":mn(e[0],t,"light"),"@dark":mn(e[1],t,"dark")};if(S(e)){let a={};for(let l in e)a[l]=mn(e[l],t,l.startsWith("@")?l.slice(1):l);return a}k(e)&&!Kt.test(e)&&(e=cn(e).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(l=l.trim(),!l)return"";if(l.startsWith("--"))return`var(${l})`;let c=me(l);if(sr(c))return c;if(/^\d/.test(l)||l==="0"||l.includes("px")||l.slice(-2)==="em"||l==="inset"||l==="none")return l;let u=Te(l,"shadow");return u&&u.shadow?u.shadow:l}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=e),{var:i,value:e}},Ec=(e,t)=>{let r=T();if(t||(t=r.globalTheme),!k(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let[n]=P(e)?e:e.split(" "),s=r.shadow[n],i=S(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(s[t])return s[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(i&&s.value)return s.value;if(i){let a={};for(let l in s){let c=r.media[l.slice(1)],u="@media "+(c==="print"?`${c}`:`screen and ${c}`);a[u]=s.value}return a}return r.verbose&&console.warn("Can't find color",e),e};D();var Oc=()=>{let e=T(),{timing:t}=e;et(t),$r(t)},Rt=e=>{let t=T(),{timing:r}=t;return r[e]||r[ni(e)]||e},ft=(e,t="timing")=>{let r=T(),{timing:n}=r;return lr(e,t,n)};D();var Tc=()=>{let e=T(),{document:t,fontFamily:r,theme:n,typography:o}=e;return ye(t,{theme:n.document,fontFamily:ro(r),fontSize:o.base,lineHeight:o.lineHeight})};D();var Eg={document:pe},gi=(e,t)=>{let r=T();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?gc(t,e):e},Rc=(e,t=Eg)=>{let r=T(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];Rw(n,t)},Pc=(e,t)=>{let r=T();return r.useIconSprite&&!r.semanticIcons?.[t]?gi(e,t):e},$c=(e,t=Eg)=>{let r=T(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];Rw(n,t)},Ag=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},$$=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,s=new r().parseFromString(n,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},Tw=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},Rw=(e,t=Eg)=>{let r=T(),n=t.document||pe;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),di(e);let o=n.querySelector("#svgSprite"),s=di(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=$$(n,s);if(o)if(a)Tw(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=Ag(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=Ag(n);l&&l.nodeType&&(Tw(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=Ag(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};D();var Ic=(e={})=>{let t=T(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Tt("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?Tt("document"):{};if(r.html&&Ke(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return fe(ye(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};D();var I$=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),F$=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),j$=e=>I$.has(e),cr=e=>{let t=e+"";if(Kt.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(xe(o))return`var(${o})`;if(j$(o)||/^\d/.test(o)||o==="0")return o;let s=me(o);if(sr(s))return s;let i=Te(o,"border");return i&&i.border?i.border:o}).join(" ")},Og=e=>Kt.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(xe(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=me(t);return sr(r)?r:t}).join(" "),Tg=(e,t)=>Ec(e,t),Fc=(e,t)=>Kt.test(e)?e:cn(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(xe(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=me(n);if(sr(o)){let i=De(n,t);return S(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=Te(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),jc=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",a=cn(o).map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||F$.has(u)||u==="transparent"||Kt.test(u))return u;let d=me(u);return sr(d)?d:u}).join(" ")));return n+a.join(", ")+s},Rg=(e,t)=>{let r=T();return e.split(", ").map(n=>xe(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?jc(n,t):r.gradient[e]?{backgroundImage:De(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Tr(n)?`url(${n})`:n).join(" ")},Pg=e=>k(e)&&e.split(" ").map(t=>Te(t,"gap").gap).join(" "),Pw=e=>{let t=e.split(" ");return t.length?t.map(r=>xe(r)?`var(${r})`:r.length<3||r.includes("ms")?ft(r).timing||r:Rt(r)?Rt(r):r).join(" "):e},Dc=(e,t,r)=>{if(k(e))return e.split(",").map(n=>ft(n).timing||n).join(",")},$g=e=>{let t=e.split(",");if(t.length)return t.map(Pw).join(",")};function ve(e,t,r={},n={}){let o=de.call(this,t||r[e]);if(o==null)return;let s;if(k(o)){if(o.includes("(")){let l=Pr(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=kc(e);!i&&a&&!n.ratio&&(o=Ac(o))}return n.ratio?Xt(r,e,o,s):Te(o,e,void 0,s)}var ne=(e,t=null,r)=>ve(e,t,r,{ratio:!0}),Lc=(e,t,r)=>{if(k(e))return{borderRadius:e.split(" ").map((n,o)=>Xt(t,r,n)[r]).join(" ")}};D();var D$=(e,t)=>{let r=T(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},dt=e=>e,Ig={color:hn,gradient:gn,font:vc,fontFamily:hi,fontfamily:hi,theme:bc,icons:Pc,semanticIcons:dt,semanticicons:dt,svg:gi,svgData:dt,typography:dt,shadow:mn,spacing:dt,media:dt,grid:dt,class:dt,timing:dt,reset:dt,unit:dt,animation:dt,vars:D$},$w=(e,t,r)=>{let n=T(),o=ic(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=Ig[o]||Ig[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},Iw=(e,t)=>{let r=T(),n=e.toLowerCase();return Object.keys(t).sort((s,i)=>{let a=S(t[s])||P(t[s])?1:0,l=S(t[i])||P(t[i])?1:0;return a-l}).forEach(s=>{try{return $w(n,t[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",t[s],s,i)}}),r[n]||r[e]},Fg=(e,t)=>{let r=t||T();r.globalTheme=e;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(e&&e!=="auto")a.setAttribute("data-theme",e),e==="dark"||e==="light"?a.style.colorScheme=e:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let c=d=>{a.setAttribute("data-theme",d.matches?"dark":"light")},u=s.matchMedia("(prefers-color-scheme: dark)");if(c(u),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=c;try{u.addEventListener("change",c)}catch{u.addListener(c)}}}else a.setAttribute("data-theme","light"),a.style.colorScheme="light"}let i=r.varPrefix?`--${r.varPrefix}-theme-`:"--theme-";for(let a in r.cssVars)a.startsWith(i)&&delete r.cssVars[a];for(let a in r.cssMediaVars)delete r.cssMediaVars[a];if(o&&r.cssVars){let a=r.scopeSelector||":root",l=o.styleSheets;for(let c=0;c<l.length;c++)try{let u=l[c].cssRules;for(let d=0;d<u.length;d++)if(u[d].selectorText===a){for(let f in r.cssVars)u[d].style.setProperty(f,r.cssVars[f]);return r}}catch{}}return r},L$={},oo=(e,t=L$)=>{let r=t.config||T(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=mg(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let v=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=v&&v.defaultView||(typeof window<"u"?window:null),_=v&&(r.themeRoot||v.documentElement);if(_&&typeof _.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")_.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?_.style.colorScheme=r.globalTheme:_.style.colorScheme="light dark";else if(x&&x.matchMedia){let $=te=>{_.setAttribute("data-theme",te.matches?"dark":"light")},q=x.matchMedia("(prefers-color-scheme: dark)");if($(q),_.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=$;try{q.addEventListener("change",$)}catch{q.addListener($)}}}else _.setAttribute("data-theme","light"),_.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let C=Object.keys(y),E=new Set(C);if(C.forEach(w=>{let $=w.toLowerCase();$!==w&&E.has($)&&fe(y[$],y[w])}),C.map(w=>{let $=w.toLowerCase();if(!($!==w&&E.has($)))return Iw(w,y[w])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{wc()}catch(w){r.verbose&&console.warn("Error applying typography sequence",w)}if(y.spacing)try{Cc()}catch(w){r.verbose&&console.warn("Error applying spacing sequence",w)}if(y.timing)try{Oc()}catch(w){r.verbose&&console.warn("Error applying timing sequence",w)}Tc();let F=Ic();return F&&(r.reset=F),r};var so=new Map,M$=null,Dg=null,N$=null;function Nc(e){e.batchAtomicCss&&(Dg=e.batchAtomicCss),e.compoundCssClass&&(N$=e.compoundCssClass)}var B$=new Set;function Lw(e){try{let t=T();t&&(t.document=e)}catch{}e&&B$.add(e)}function Lg(){try{let e=T();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}var V$={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function yn(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Mc(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function z$(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Mc(t)}function Fw(e,t,r){let n=(r?r+"":"")+e+":"+t,o=so.get(n),s=o?null:yn(e);if(!o){let a=V$[e]||Mc(e),l=z$(t);o=r?`_${r}_${a}-${l}`:`_${a}-${l}`,so.set(n,o)}if(typeof t=="string"&&(t.indexOf("}")!==-1||t.indexOf("{")!==-1))return o;let i=`.${o}{${s||yn(e)}:${t}}`;return pt(i),o}var jw=new WeakMap;function pt(e,t){let r=Mw(t);if(!r)return;let n=jw.get(r);if(n||(n=new Set,jw.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var Dw=new WeakMap;function Mw(e){let t=e||Lg();if(!t||!t.head)return null;let r=Dw.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return Dw.set(t,o),M$=o,o}var U$=8;function Ir(e,t,r){if(!e||typeof e!="object")return"";let n=null,o=0,s=[],i=[];for(let l in e){let c=e[l];c==null||c===!1||c===""||(typeof c=="object"?i.push([l,c]):Dg?(n||(n=[]),n.push(l,String(c)),o++):s.push(Fw(l,String(c),r)))}if(n&&o>=U$){let l=n.join("\0"),c=Dg(l),u=c.indexOf("\0"),d=c.substring(0,u),f=c.substring(u+1);if(f){let p=f.split(`
36
+ `);for(let h=0;h<p.length;h++)p[h]&&pt(p[h])}s.push(d)}else if(n)for(let l=0;l<n.length;l+=2)s.push(Fw(n[l],n[l+1],r));let a=[];for(let l=0;l<i.length;l++)a.push(W$(i[l][0],i[l][1],r));return s.concat(a).join(" ").trim()}var jg=new Map;function W$(e,t,r){let n=(r?r+"":"")+e+JSON.stringify(t),o=so.get(n);if(o){let f=jg.get(o);if(f)for(let p=0;p<f.length;p++)pt(f[p]);return o}o=r?`_${r}_c${Mc(n)}`:`_c${Mc(n)}`;let s="",i=[],a=f=>typeof f=="string"&&(f.indexOf("{")!==-1||f.indexOf("}")!==-1),l=(f,p)=>{let h="";for(let g in p){let m=p[g];if(m!=null)if(typeof m=="object")l([...f,g],m);else{if(a(m))continue;h+=`${yn(g)}:${m};`}}h&&(f.length===0?s+=h:i.push({chain:f,body:h}))};l([],t);let c=f=>{if(!f.length)return`.${o}`;let p=f[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${o}`):h.startsWith(":")?`.${o}${h}`:`.${o} ${h}`);for(let h=1;h<f.length;h++){let g=f[h].split(",").map(y=>y.trim()),m=[];for(let y of p)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);p=m}return p.join(", ")},u=[];if(e.startsWith("@media")||e.startsWith("@supports")){if(s){let f=`${e}{.${o}{${s}}}`;u.push(f),pt(f)}for(let f of i){let p=c(f.chain),h=`${e}{${p}{${f.body}}}`;u.push(h),pt(h)}return jg.set(o,u),so.set(n,o),o}let d=c([e]);if(s){let f=`${d}{${s}}`;u.push(f),pt(f)}for(let f of i){let h=`${c([e,...f.chain])}{${f.body}}`;u.push(h),pt(h)}return jg.set(o,u),so.set(n,o),o}function we(e){if(Mw(),typeof e=="string"){pt(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:yn(l);a+=`${c}:${i[l]};`}pt(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:yn(s);pt(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:yn(a);s+=`${c}:${l};`}}if(s&&pt(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)we({[`${n} ${c}`]:o[c]});for(let c of a)we({[c]:{[n]:o[c]}})}}}}function yi(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${yn(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return pt(`@keyframes ${e}{${r}}`),e}function Nw(){return so.size}D();var Mg="http://www.w3.org/2000/svg",vi=new Set(["svg","path","circle","ellipse","line","polyline","polygon","rect","g","defs","use","symbol","clipPath","mask","pattern","image","text","tspan","textPath","marker","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateMotion","animateTransform","set","foreignObject","desc","title","metadata"]),H$=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","string","fragment","shadow"]);function bi(e){return H$.has(e)||vi.has(e)}function _i(e){return vi.has(e)}function bn(e){let{tag:t,key:r}=e;if(typeof t=="function"&&(t=t(e)),t===!0&&(t=r),typeof t=="string"&&bi(t))return t;if(!r||typeof r!="string")return"div";let n=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),bi(o)&&!n.has(o)?o:"div"}var Bw={};function xi(e,t){let r=t?.context?.document||globalThis.document;if(!r)return null;if(e==="string")return r.createTextNode(t?.text||"");if(e==="fragment")return r.createDocumentFragment();if(_i(e)){let n=t?.parent;if(e==="svg"||n?.node?.namespaceURI===Mg)return r.createElementNS(Mg,e);if(e!=="svg")return r.createElement("div")}return r.createElement(e)}function xn(e){let t=e.tag=bn(e),n=_i(t)&&(t==="svg"||e.parent?.node?.namespaceURI===Mg)?"svg:"+t:t,o=e?.context?.document||globalThis.document,s=Bw[n];if(s||(s=Bw[n]=xi(t,e)),!s)return null;let i=o&&s.ownerDocument!==o?xi(t,e):s.cloneNode(!0);return t==="string"&&(i.nodeValue=e.text||""),i}var Je=new Set(["extends","children","content","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","__name","__ref","__hash","__text","parent","node"]),Ng={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},vn=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","error","beforeRemove","remove"]),Vw=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),wi=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","scroll","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var Bg=new WeakMap,q$={passive:!0},G$={passive:!0,capture:!0},Vg=(e,t)=>Vw.has(e)?t?G$:q$:t||!1;function Uw(e){let t=Bg.get(e);return t||(t={handlers:new Map,installed:new Set},Bg.set(e,t)),t}function K$(e,t){let r=Uw(t);if(r.installed.has(e))return;r.installed.add(e);let n=e==="focus"||e==="blur"||e==="focusin"||e==="focusout"||e==="mouseenter"||e==="mouseleave",o=e==="mouseenter"||e==="mouseleave";t.addEventListener(e,s=>{let i=s.target;for(;i&&i!==t;){let a=r.handlers.get(e);if(a){let l=a.get(i);if(l){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(l(s),s.cancelBubble)return}}i=i.parentNode}},Vg(e,n))}function Bc(e,t,r,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let o=Uw(n);K$(e,n),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,r)}function Vc(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let n=Bg.get(r);if(!n)return;let o=n.handlers.get(e);o&&o.delete(t)}function zw(e){return wi.has(e)&&!vn.has(e)}function Si(e,t,r){let{node:n,context:o}=t;if(!n)return;let s=o?.designSystem,i=a=>{s&&Oe(s);try{let l=r.call(t,a,t,t.state,o);if(l&&typeof l.then=="function"){l.catch(c=>{t.error=c,console.error("[DOMQL] Async event error:",c)}).finally(()=>{s&&_e()});return}}catch(l){if(t.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}s&&_e()};if(zw(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Bc(e,n,i,a)}else n.addEventListener(e,i,Vg(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(zw(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Vc(e,n,a)}else n.removeEventListener(e,i,Vg(e,!1))})}function Ww(e){let t=[];return e.extends&&(Array.isArray(e.extends)?t.push(...e.extends):t.push(e.extends)),e.extend&&(Array.isArray(e.extend)?t.push(...e.extend):t.push(e.extend)),t}function ki(e,t,r){let n=Ww(t);if(!n.length)return;let s=(e.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=Hw(n[i],s);a&&a!==t&&qw(e,a,r,new Set([t]))}}function Hw(e,t){if(typeof e=="string"){if(e.includes(">")){let r=e.split(">").map(o=>o.trim()),n=t[r[0]]||t[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return t[e]||t[`smbls.${e}`]||null}return typeof e=="object"&&e!==null?e:null}function qw(e,t,r,n=new Set){if(n.has(t))return;n.add(t);let o=Ww(t);if(o.length){let i=(e.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let l=Hw(o[a],i);l&&qw(e,l,r,n)}}for(let s in t){if(s==="extends"||s==="extend")continue;let i=t[s];e[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?e[s]={...i}:e[s]=i:typeof e[s]=="object"&&typeof i=="object"&&!Array.isArray(e[s])&&!Array.isArray(i)&&e[s]!==null&&i!==null?e[s]=Gw(e[s],i):e[s]=i}}function Gw(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Gw(o,s):r[n]=s}return r}qn();function Ci(e={},t={}){let r=this,n=r.__ref;if(n){if((typeof e=="string"||typeof e=="number")&&(e={text:e}),!t.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,t)===!1)return r;if(xr(()=>{if(e.state&&je(r.state)&&r.state.update(e.state),e.text!==void 0&&(r.text=e.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=e.text??"":r.node.textContent=e.text??"")),e.html!==void 0&&(r.html=e.html,!n.__exec.html&&r.node&&(r.node.innerHTML=e.html)),e.style&&r.node?.style){if(!n.__exec.style)for(let o in e.style){let s=e.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,e.style)}if(e.attr&&r.node?.setAttribute){for(let o in e.attr){let s=e.attr[o];s==null||s===!1?r.node.removeAttribute(o):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(o,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,e.attr)}if(e.data&&r.node?.dataset){for(let o in e.data)r.node.dataset[o]=e.data[o];r.data||(r.data={}),Object.assign(r.data,e.data)}for(let o in e){if(Je.has(o)||o==="state")continue;let s=e[o],i=r[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,t);else if(typeof s=="object"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&Pt(s,r,o,t)}else o!=="text"&&o!=="html"&&o!=="style"&&o!=="attr"&&o!=="data"&&(r[o]=s)}}),r.node&&n.__conditionalRunners)for(let o of n.__conditionalRunners)o();return kt("update",r),!t.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,t),r}}function _n(e){if(!e)return;let t=e.__ref;if(t){try{typeof e.onBeforeRemove=="function"&&e.onBeforeRemove(e,e.state,e.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(t.__effects){for(let r=0;r<t.__effects.length;r++)t.__effects[r].dispose();t.__effects.length=0}if(t.__eventCleanup){for(let r=0;r<t.__eventCleanup.length;r++)t.__eventCleanup[r]();t.__eventCleanup.length=0}if(t.__children){for(let r=0;r<t.__children.length;r++){let n=t.__children[r],o=e[n];o&&o.__ref&&_n(o)}t.__children.length=0}if(e.node?.parentNode&&e.node.remove(),e.state?.destroy&&e.state.__element===e&&e.state.destroy(),e.parent?.__ref?.__children){let r=e.parent.__ref.__children.indexOf(e.key);r!==-1&&e.parent.__ref.__children.splice(r,1),delete e.parent[e.key]}try{typeof e.onRemove=="function"&&e.onRemove(e)}catch(r){console.error("[smbls] onRemove error:",r)}e.node=null,e.parent=null,e.__ref=null}}function Ai(){_n(this)}D();D();var X$=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],Y$=["none","forwards","backwards","both"],J$=["normal","reverse","alternate","alternate-reverse"],Z$=["running","paused"],Q$=e=>/^[\d.]+m?s$/.test(e),eI=0,zg=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(S(e)){let o=`smbls-anim-${eI++}`;return{animationName:yi(o,e)}}let n=r&&r[e];return S(n)?yi(e,n):e},tI=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:Q$(d)?s.push(d):X$.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):J$.includes(d)?l=d:Y$.includes(d)?c=d:Z$.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},Ug={animation:(e,t)=>{if(k(e)&&e.includes(" ")){let r=tI(e,t);return{animationName:zg(r.name||e,t),animationDuration:r.durations[0]||ft(t.animationDuration||"A").timing,animationDelay:r.durations[1]||ft(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Rt(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:zg(e,t),animationDuration:ft(t.animationDuration||"A").timing,animationDelay:ft(t.animationDelay||"0s").timing,animationTimingFunction:Rt(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:zg(e,t)}),animationDuration:e=>({animationDuration:ft(e).timing}),animationDelay:e=>({animationDelay:ft(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Rt(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};D();var Wg={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>ne("height",e,t),width:(e,t)=>ne("width",e,t),boxSizing:e=>$e(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("height",t),...ve("width",r||t)}},inlineSize:(e,t)=>ne("inlineSize",e,t),blockSize:(e,t)=>ne("blockSize",e,t),minWidth:(e,t)=>ne("minWidth",e,t),maxWidth:(e,t)=>ne("maxWidth",e,t),widthRange:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("minWidth",t),...ve("maxWidth",r||t)}},minHeight:(e,t)=>ne("minHeight",e,t),maxHeight:(e,t)=>ne("maxHeight",e,t),heightRange:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("minHeight",t),...ve("maxHeight",r||t)}},size:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ne("inlineSize",t),...ne("blockSize",r||t)}},minBlockSize:(e,t)=>ne("minBlockSize",e,t),minInlineSize:(e,t)=>ne("minInlineSize",e,t),maxBlockSize:(e,t)=>ne("maxBlockSize",e,t),maxInlineSize:(e,t)=>ne("maxInlineSize",e,t),minSize:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("minInlineSize",t),...ve("minBlockSize",r||t)}},maxSize:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("maxInlineSize",t),...ve("maxBlockSize",r||t)}},borderWidth:(e,t)=>ne("borderWidth",e,t),padding:(e,t)=>ne("padding",e,t),scrollPadding:(e,t)=>ne("scrollPadding",e,t),paddingInline:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("paddingInlineStart",t),...ve("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("paddingBlockStart",t),...ve("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>ne("paddingBlockStart",e,t),paddingBottom:(e,t)=>ne("paddingBlockEnd",e,t),paddingLeft:(e,t)=>ne("paddingInlineStart",e,t),paddingRight:(e,t)=>ne("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>ne("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>ne("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>ne("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>ne("paddingInlineEnd",e,t),margin:(e,t)=>ne("margin",e,t),marginInline:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{...ve("marginInlineStart",t),...ve("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!k(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...ve("marginBlockStart",r),...ve("marginBlockEnd",n||r)}},marginTop:(e,t)=>ne("marginBlockStart",e,t),marginBottom:(e,t)=>ne("marginBlockEnd",e,t),marginLeft:(e,t)=>ne("marginInlineStart",e,t),marginRight:(e,t)=>ne("marginInlineEnd",e,t),marginInlineStart:(e,t)=>ne("marginInlineStart",e,t),marginInlineEnd:(e,t)=>ne("marginInlineEnd",e,t),marginBlockStart:(e,t)=>ne("marginBlockStart",e,t),marginBlockEnd:(e,t)=>ne("marginBlockEnd",e,t),gap:e=>({gap:Pg(e)}),columnGap:(e,t)=>Xt(t,"columnGap",e),rowGap:(e,t)=>Xt(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!k(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!k(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>Lc(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>Lc(e??t.round,t,"borderRadius")};var Hg={fontSize:e=>Sc(e)||e,fontFamily:e=>({fontFamily:_c(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})};var qg={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0};var Gg={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>Te(r,"k").k).join(" ")}},left:e=>Te(e,"left"),top:e=>Te(e,"top"),right:e=>Te(e,"right"),bottom:e=>Te(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Te(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Te(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};D();var ht=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},Kg={theme:(e,t)=>{if(e)return t.themeModifier?Tt(e,`@${t.themeModifier}`):Tt(e)},color:(e,t)=>{let r=ht(t);if(e)return{color:De(e,r)}},background:(e,t)=>{let r=ht(t);if(e)return k(e)&&e.includes("gradient")?{background:jc(e,r)}:{background:De(e,r)}},backgroundColor:(e,t)=>{let r=ht(t);if(e)return{backgroundColor:De(e,r)}},backgroundImage:(e,t,r,n)=>{let o=ht(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:Rg(e,o)}},textStroke:e=>({WebkitTextStroke:Og(e)}),outline:e=>({outline:cr(e)}),outlineOffset:(e,t)=>ne("outlineOffset",e,t),border:e=>({border:cr(e)}),borderColor:(e,t)=>{let r=ht(t);if(e)return{borderColor:De(e,r)}},borderTopColor:(e,t)=>{let r=ht(t);if(e)return{borderTopColor:De(e,r)}},borderBottomColor:(e,t)=>{let r=ht(t);if(e)return{borderBottomColor:De(e,r)}},borderLeftColor:(e,t)=>{let r=ht(t);if(e)return{borderLeftColor:De(e,r)}},borderRightColor:(e,t)=>{let r=ht(t);if(e)return{borderRightColor:De(e,r)}},borderLeft:e=>({borderLeft:cr(e)}),borderTop:e=>({borderTop:cr(e)}),borderRight:e=>({borderRight:cr(e)}),borderBottom:e=>({borderBottom:cr(e)}),shadow:(e,t)=>{let r=ht(t);if(e)return{boxShadow:Tg(e,r)}},boxShadow:(e,t)=>{if(!k(e))return;let[r,n]=e.split("!importan"),o=ht(t),s=n?" !important":"";return{boxShadow:Fc(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:Fc(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:cr(e)})};var Ei={transition:e=>({transition:$g(e)}),transitionDuration:e=>({transitionDuration:Dc(e)}),transitionDelay:e=>({transitionDelay:Dc(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Rt(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};D();var Xg={flow:(e,t)=>{let r=t.reverse;if(!k(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var Yg={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})};var Se={...Ug,...Wg,...Hg,...qg,...Gg,...Kg,...Ei,...Xg,...Yg};var Le=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);D();var rI=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,nI=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=tt(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(rI),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},Kw=(e,t,r)=>({[e]:tt(t,r)}),Oi=(e,t,r)=>{let n=`&${e}`,o=tt(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},Jg=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},oI=(e,t,r)=>{let n=e.slice(1),o=Jg(n,r);if(o===void 0&&(o=!!r[n]),!!o)return tt(t,r)},sI=(e,t,r)=>({[e]:t}),iI=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Jg(n,r);s!==void 0&&(o=s)}if(o)return tt(t,r)},aI=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Jg(n,r);s!==void 0&&(o=s)}if(!o)return tt(t,r)},Zg=(e,t)=>tt(e,t),Qg={"@":nI,":":Oi,"[":Oi,"*":Oi,"+":Oi,"~":Oi,"&":Kw,">":Kw,$:oI,"-":sI,".":iI,"!":aI};var em=wr(),Xw=(e,t,r)=>{let n=t?.context?.designSystem;n&&Oe(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>ye(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=de(l,t);ye(o,Zg(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=O(c)?c(t,t.state,t.context):c;u&&i(a,u),!em&&S(o[a])&&(o[a].label=a)}else if(Se[a]){let c=de(l,t);P(c)&&(c=c.reduce((d,f)=>ye(d,f),{}));let u=Se[a](c,t,t.state,t.context);P(u)&&(u=u.reduce((d,f)=>ye(d,f),{})),u&&i(a,u),!em&&S(o[a])&&(o[a].label=a)}else if(Le.has(a)){let c=de(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!em&&S(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&_e()}},Yw=(e,t)=>{let r={};for(let n in e){let o=Qg[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?Ke(r[i],s[i]):r[i]=s[i])}}return r},tt=(e,t,r={unpack:!0})=>{let[n,o]=Xw(e,t,r),s=Yw(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return fs(n,s);n._selectors=s}return n},lI=(e,t)=>{let r={};if(e.class)for(let n in e.class)r[n]=e.class[n](t);return r};D();var Jw=e=>{if(S(e))return tt(e,e)},cI=(e,t)=>{let r=Jw(e);return typeof t=="function"?t(r):Ir(r)};D();function eS(e,t,r){let n=e?.context?.analyze;if(!n||!n.emit||t==="warn"&&!n.shouldCapture("warnings")||t==="error"&&!n.shouldCapture("errors"))return;let o=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:t==="error"?"error":"warning",level:t,hook:t==="error"?"el.error":"el.warn",element:{key:e.key!=null?String(e.key):null,name:e.__name||null,tag:e.tag||null},message:o||null,args:r})}function uI(...e){return eS(this,"warn",e),Xs.apply(this,e)}function fI(...e){return eS(this,"error",e),an.apply(this,e)}var Zw={update:Ci,remove:Ai,getDB:Qs,getQuery:ei,getRootData:qs,getChildren:Vs,getPath:zs,nextElement:Ys,previousElement:Js,verbose:Jn,warn:uI,error:fI,variables:Zs,spotByPath:Bs,set(e,t){if(this.removeContent(),e!=null){let r=this.context?.__create;r&&r(e,this,"content",t)}this.__ref&&(this.__ref.contentManaged=!0)},reset(e){let t=this.context?.__create;if(!t)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),t(o,r,n,e)},lookup(e){let t=this.parent;for(;t;){if(typeof e=="function"){if(e(t))return t}else if(typeof e=="string"){if(t.key===e)return t;if(t[e]&&t[e].__ref)return t[e]}t=t.parent}return null},lookdown(e){let t=this.__ref;if(!t?.__children)return null;for(let r of t.__children){let n=this[r];if(!n)continue;if(typeof e=="function"){if(e(n))return n}else if(typeof e=="string"&&n.key===e)return n;let o=n.lookdown?.(e);if(o)return o}return null},lookdownAll(e,t=[]){let r=this.__ref;if(!r?.__children)return t;for(let n of r.__children){let o=this[n];o&&(typeof e=="function"?e(o)&&t.push(o):typeof e=="string"&&o.key===e&&t.push(o),o.lookdownAll?.(e,t))}return t},getRef(){return this.__ref},getRoot:Hs,getRootState:Ws,getRootContext:Gs,getContext:Ks,parse(e){let t={},r=e?new Set(e):null,n=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!r?.has(o)){if(n&&n[o]!==void 0){t[o]=n[o];continue}typeof this[o]!="function"&&(t[o]=this[o])}return t},parseDeep(e){let t=this.parse(e),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(t[n]=this[n].parseDeep(e));return t},keys(){return Object.keys(this)},log(...e){if(e.length){let t={};for(let r of e)t[r]=this[r];console.log(t)}else console.log(this)},setProps(e,t){return this.update(e,t)},setNodeStyles(e){if(this.node?.style)for(let t in e){let r=e[t];if(r==null)continue;let n=t.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(e,...t){let r=this.context,n=r?.methods?.[e]||r?.functions?.[e]||r?.utils?.[e]||this[e];if(typeof n=="function")return n.call(this,...t)},removeContent(){let e=this.__ref;if(!e?.__children)return;let t=this.content;if(t?.remove){t.remove(),delete this.content;let r=e.__children.indexOf("content");r!==-1&&e.__children.splice(r,1)}t?.node?.parentNode&&t.node.parentNode.removeChild(t.node)}},Qw=new WeakMap;function dI(e){if(!e)return Zw;let t=Qw.get(e);if(t)return t;t=Object.create(Zw);let r=e.methods;if(r)for(let n in r)t[n]=r[n];return Qw.set(e,t),t}function Ti(e){let t=dI(e.context);Object.setPrototypeOf(e,t)}D();qn();var pI=(e,t,r)=>{Object.defineProperty(e,t,{value:r,enumerable:!1,configurable:!0,writable:!0})},gt=(e,t)=>{if(je(t)){let o=t.__raw||t;t.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){t[s]=!t[s]},enumerable:!1,configurable:!0}),t.set||Object.defineProperty(o,"set",{value:function(s,i={}){return t.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&t.update(s,i),t},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,a={}){let l=s.split("."),c=t;for(let u=0;u<l.length-1;u++)c[l[u]]===void 0&&(c[l[u]]={}),c=c[l[u]];return c[l[l.length-1]]=i,t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(s){let i=s.split("."),a=t;for(let l=0;l<i.length;l++){if(a==null)return;a=a[i[l]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(s,i={}){let a=s.split("."),l=t;for(let c=0;c<a.length-1;c++){if(l==null)return t;l=l[a[c]]}return l&&delete l[a[a.length-1]],t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=t.parse();return t.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(t);return t.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(t),t.update(t.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=t;for(;a?.parent&&je(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(s,i={}){if(t.parent)return t.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return t.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=t;for(;s?.parent&&je(s.parent);)s=s.parent;return s},enumerable:!1,configurable:!0});return}if(!t||typeof t!="object")return;let r=()=>{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&delete t[o]},n={update(o){if(!o||typeof o!="object")return t;for(let s in o)t[s]=o[s];return t},apply(o){if(typeof o!="function")return t;let s=o(t);return s?t.update(s):t},parse(){return{...t}},toggle(o){return t[o]=!t[o],t},set(o){if(!o||typeof o!="object")return t;r();for(let s in o)t[s]=o[s];return t},replace(o){return t.set(o)},clean(){return r(),t}};for(let o in n)typeof t[o]!="function"&&pI(t,o,n[o])};var tS=function(e,t,r){return e.state=rm(e,t,r),e.state},rm=function(e,t,r){let{__ref:n}=e,o=e.state;if(o==null||o===!1){let s=t?.state||{};return gt(e,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",hI(o,e,t);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=lt({value:o});return s.__element=e,t?.state&&(s.parent=t.state),gt(e,s),s}if(typeof o=="function"&&(o=o(e,t?.state)||{}),typeof o=="object"&&!je(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=lt({...o});if(s.__element=e,!Object.getOwnPropertyDescriptor(s,"root")){let i=t?.state?.root||t?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return t?.state&&(s.parent=t.state,t.state.__children&&(t.state.__children[e.key]=s)),gt(e,s),typeof e.onStateCreated=="function"&&e.onStateCreated(e,s,e.context,r),s}return je(o)?(o.__element=e,o):t?.state||{}};function tm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function hI(e,t,r){if(!r?.state)return{};if(e===".")return r.state;if(e.startsWith("../")){let o=e.slice(3),s=r.state?.parent;return o&&s?tm(s,o):s??r.state??{}}if(e.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let s=e.slice(2);return s?tm(o,s):o??{}}let n=tm(r.state,e);if(n&&typeof n=="object"&&!je(n)&&!Object.getOwnPropertyDescriptor(n,"root")){let o=r.state?.root||r.state;Object.defineProperty(n,"root",{get:()=>o,enumerable:!1,configurable:!0})}return n}var oS=(e,t)=>{if(!e)return nS;let r=mI(e,t);return!r||!r.state?nS:bI(r.state)},sS=()=>jn()!=null,gI=128;function mI(e,t){let r=typeof t=="function"?t:typeof t=="string"?s=>!!s?.[t]:s=>!!s?.state,n=e,o=null;for(let s=0;s<gI&&n;s++){if(r(n)&&n.state)return n;if(n.state&&!o&&(o=n),!n.parent||n.parent===n)break;n=n.parent}return o}var yI={get(e,t){return e[t]}},rS=new WeakMap,bI=e=>{let t=rS.get(e);return t||(t=new Proxy(e,yI),rS.set(e,t)),t},nS=new Proxy(Object.create(null),{get(){},has(){return!1}});D();var xI=["alert","alertdialog","application","article","banner","button","cell","checkbox","columnheader","combobox","complementary","contentinfo","definition","dialog","directory","document","feed","figure","form","grid","gridcell","group","heading","img","link","list","listbox","listitem","log","main","marquee","math","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","switch","tab","table","tablist","tabpanel","term","textbox","timer","toolbar","tooltip","tree","treegrid","treeitem"],zc={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","hidden","id","lang","part","placeholder","slot","spellcheck","style","tabindex","title","translate","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["open"],del:["cite","datetime"],dialog:["open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","crossorigin","decoding","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alt","autocomplete","capture","checked","crossorigin","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","crossorigin","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],slot:["name"],script:["async","charset","crossorigin","defer","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"]},aS=["oncopy","oncut","onpaste","oncompositionend","oncompositionstart","oncompositionupdate","onfocus","onfocusin","onfocusout","onblur","onchange","onbeforeinput","oninput","onreset","onsubmit","oninvalid","onformdata","onload","onerror","ontoggle","onkeydown","onkeypress","onkeyup","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onencrypted","onended","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","onauxclick","onclick","oncontextmenu","ondblclick","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onselect","onselectionchange","onselectstart","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ongotpointercapture","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onlostpointercapture","onscroll","onresize","onwheel","onanimationstart","onanimationend","onanimationiteration","ontransitionstart","ontransitionrun","ontransitionend","ontransitioncancel","onoutrostart","onoutroend","onintrostart","onintroend","onmessage","onmessageerror","onvisibilitychange","oncancel","onclose","onfullscreenchange","onfullscreenerror"],sm=e=>e.startsWith("aria")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"aria-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):e.startsWith("data")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"data-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):null,jr=(e,t)=>t.startsWith("aria-")||t.startsWith("data-")||sm(t)||zc.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(zc,e)?zc[e].includes(t):!1,im=e=>{if(!k(e))return!1;let t=e.toLowerCase();return aS.includes(t)},vI=(e,t,r)=>{let n={};for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(r&&o in r)continue;if(o==="aria"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])qe(t[o][a])&&(n["aria-"+a]=t[o][a]);continue}if(o==="data"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])if(qe(t[o][a])){let l=a.replace(/([A-Z])/g,c=>"-"+c.toLowerCase());n["data-"+l]=t[o][a]}continue}let s=jr(e,o),i=im(o);if(qe(t[o])&&(s||i)){let a=sm(o)||o;n[a]=t[o]}}return n},_I=(e,t)=>{let r={};if(e.attr)for(let n in e.attr)r[n]=e.attr[n](t,t.state,t.context);if(e.aria&&typeof e.aria=="object")for(let n in e.aria){let o=e.aria[n];typeof o=="function"&&(r["aria-"+n]=o(t,t.state,t.context))}if(e.data&&typeof e.data=="object")for(let n in e.data){let o=e.data[n];if(typeof o=="function"){let s=n.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=o(t,t.state,t.context)}}return r},Fr=(e,t)=>{let r=e.call("exec",t,e);if(r)return k(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r},nm=(e,t)=>{let r=(e.preSrc||"")+(Fr(e,t)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=e;if(!n.files&&!n.assets)return r;if(r.startsWith("/assets/")){let o=r.slice(8),s=n.assets&&(n.assets[r]||n.assets[o]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let o=r.slice(7),s=n.files&&(n.files[r]||n.files[o]);return s&&s.content?s.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},om={src:e=>nm(e,e.src),href:e=>Fr(e,e.href),action:e=>Fr(e,e.action),poster:e=>nm(e,e.poster),data:e=>Fr(e,e.data)},am=e=>{let t=e.tag||"div",r={};for(let n in om)if(e[n]!==void 0&&jr(t,n)){let o=om[n](e);o!==void 0&&(r[n]=o)}return r},iS=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},wI=(e,t,r)=>{if(e==="$"){let o=iS(t,r);return o===void 0&&(o=!!r[t]),o}let n=r[t]===!0||r.state[t];if(!n){let o=iS(t,r);o!==void 0&&(n=o)}return e==="."?!!n:!n},SI=new Set(["$",".","!"]),kI=(e,t,r)=>{let n={},o=(s,i,a,l)=>{let c=i;n[s]=u=>{if(wI(a,l,u))return O(c)?c(u):c}};for(let s in e){let i=s.charAt(0);if(!SI.has(i))continue;let a=e[s];if(!a||typeof a!="object")continue;let l=s.slice(1);for(let c in a){if(r&&c in r)continue;if(c==="aria"&&a[c]&&typeof a[c]=="object"){for(let p in a[c])o("aria-"+p,a[c][p],i,l);continue}if(c==="data"&&a[c]&&typeof a[c]=="object"){for(let p in a[c]){let h=p.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());o("data-"+h,a[c][p],i,l)}continue}let u=jr(t,c),d=im(c);if(!u&&!d)continue;let f=sm(c)||c;o(f,a[c],i,l)}}return n};var CI=1;function ao(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function AI(e){return e.charAt(2).toLowerCase()+e.slice(3)}function EI(e){return e.toLowerCase()}function um(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=um(o,s):r[n]=s}return r}function Pt(e,t,r,n={},o){if(e==null||e===!1)return null;(typeof e=="string"||typeof e=="number")&&(e={text:e});let s=Object.create(null);s.key=r||e.key||`_${CI++}`,s.parent=t||null,s.context=e.context||t?.context||n.context||{},s.context.__create||(s.context.__create=Pt);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:t?.__ref?.root||s,path:t?.__ref?.path?[...t.__ref.path,s.key]:[s.key]};if(r&&!e.extends&&!e.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(e={extends:m,...e})}}ki(s,e,n);let a=new Set(["childProps","attr","style","scope","data"]),l=s.props&&typeof s.props=="object"?s.props:null;for(let g in e){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=e[g],y=s[g],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=um(y,m):b&&a.has(g)?s[g]={...y,...m}:s[g]=m}function c(g){for(let m in g){let y=g[m],b=s[m],v=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";v&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=um(b,y):v&&a.has(m)?s[m]={...b,...y}:s[m]=y}}l&&c(l),e.props&&typeof e.props=="object"&&c(e.props),e.data!==void 0&&(s.data=e.data),e.classlist!==void 0&&(s.classlist=e.classlist),e.text!==void 0&&(s.text=e.text),e.html!==void 0&&(s.html=e.html);let u=s.scope&&typeof s.scope=="object"?s.scope:null,d=t?.scope,f=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,p=d||f||null;if(e.scope!==void 0||u){let g={};u&&Object.assign(g,u),e.scope!==void 0&&Object.assign(g,e.scope),s.scope=sl(g,p)}else p&&(s.scope=p);if(e.if!==void 0&&(s.if=e.if),Ti(s),OI(s,t,e),s.if!=null){let g=typeof s.if=="function"?s.if(s,s.state,s.context):s.if;i.__if=!!g}if(i.__if)typeof e.if=="function"&&(i.__ifInitialized=!0);else return t&&(t[s.key]=s),typeof e.if=="function"&&fm(s,{if:e.if}),s;s.tag||(s.tag=bn(s)),Dr("Init",s,n);let h=s.node=xn(s);if(!h)return s;Dr("AttachNode",s,n),h.setAttribute&&s.key&&h.setAttribute("data-key",s.key),h.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&h.setAttribute("data-smbls-app",s.context.key),s.id&&h.setAttribute&&(h.id=s.id),fm(s,e),dm(s),cS(s),uS(s,n);try{fS(s,n)}catch(g){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`
37
37
  `+g.stack.split(`
38
38
  `).slice(0,6).join(`
39
- `):"")}}if(Tm(i,t,o),t&&(t[i.key]=i,t.__ref?.__children&&(t.__ref.__children.includes(i.key)||t.__ref.__children.push(i.key))),typeof i.html=="function"&&i.node&&!i.node.innerHTML){let g=i.context?.designSystem;g&&Pe(g);try{let m=i.html(i,i.state,i.context);m!=null&&typeof m!="function"&&(i.node.innerHTML=m)}catch{}finally{g&&ke()}}if(Br("Create",i,n),Br("Complete",i,n),Br("Render",i,n),Br("RenderRouter",i,n),typeof i.onFrame=="function"){let g=i.onFrame,m=i.context?.designSystem,y=()=>{if(i.node){if(i.node.isConnected){m&&Pe(m);try{g(i,i.state,i.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&ke()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return i}function hM(e,t,r){let n=!t,o=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,i=n&&o&&e.context?.state,s=r.state!==void 0&&!i?r.state:e.state&&!Be(e.state)?e.state:void 0;if(s==null){if(t?.state)e.state=t.state,vt(e,e.state);else if(e.context?.state){let a=e.context.state,l={...a},c=e.context?.polyglot;if(c?.translations){let u=a.lang||c.defaultLang||"en",d=c.translations[u];if(d&&typeof d=="object")for(let p in d)l[p]===void 0&&(l[p]=d[p]);let f=new Set(c.languages||[]);for(let p in c.translations)!f.has(p)&&l[p]===void 0&&(l[p]=c.translations[p])}e.state=Be(l)?l:ft(l),e.state.__element=e,e.state.root=e.state,vt(e,e.state)}else e.state={},Object.defineProperty(e.state,"root",{value:e.state,enumerable:!1,configurable:!0,writable:!0}),vt(e,e.state);return}if(typeof s=="string"){if(e.state=sk(s,t),e.state&&typeof e.state=="object"&&!Be(e.state)){let a=t?.state?.root||t?.state||e.state;Object.defineProperty(e.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}vt(e,e.state);return}if(typeof s=="function"){let a=s(e,t?.state);e.state=ft(a||{})}else e.state=ft({...s});e.state.__element=e,t?.state?(e.state.parent=t.state,e.state.root=t.state.root||t.state):e.state.root=e.state,vt(e,e.state)}function wm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function sk(e,t){if(!t)return{};if(e===".")return t.state||{};if(e.startsWith("../")){let o=e.slice(3);return o?wm(t.state,o):t.state??{}}if(e.startsWith("~/")){let o=t.state?.root||t.state,i=e.slice(2);return i?wm(o,i):o??{}}if(t.state?.[e]!==void 0)return t.state[e];let r=wm(t.state,e);if(r!=null&&Object.keys(r).length>0)return r;let n=t.context?.polyglot;if(n?.translations){let o=t.state?.root?.lang||n.defaultLang||"en",i=n.translations[o];if(i?.[e]!==void 0)return i[e];if(n.translations[e]!==void 0)return n.translations[e]}return{}}function gM(e){let t=e.__ref,r=e.tag||"div",n=e.context?.designSystem,o=[],i=Object.keys(e);for(let s=0;s<i.length;s++){let a=i[s];if(typeof e[a]!="function"||Qe.has(a))continue;let l=a.charCodeAt(0);l>=65&&l<=90||mo(a)||Ae[a]||ze&&ze.has(a)||Mr(r,a)||o.push({prop:a,fn:e[a]})}for(let s=0;s<o.length;s++){let{prop:a,fn:l}=o[s];t.__exec[a]=l,Object.defineProperty(e,a,{get(){n&&Pe(n);try{return l(e,e.state,e.context)}catch{return}finally{n&&ke()}},set(c){delete t.__exec[a],Object.defineProperty(e,a,{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function km(e,t){let r=e.__ref;if(gM(e),typeof e.text=="function"){let o=e.text,i=Re(()=>{if(!r.contentManaged)try{let s=o(e,e.state,e.context);e.node&&s!=null&&typeof s!="function"&&typeof s!="object"&&(typeof s=="string"&&s.includes("{{")&&(s=tn.call(e,s,e.state)),e.tag==="string"?e.node.nodeValue=s:e.node.textContent=s)}catch{}},{depth:r.path.length});r.__effects.push(i),r.__exec.text=o}else if(typeof e.text=="string"&&e.text.includes("{{")){let o=e.text,i=Re(()=>{if(r.contentManaged)return;let s=tn.call(e,o,e.state);s!=null&&(e.text=s),e.node&&(e.tag==="string"?e.node.nodeValue=s??"":e.node.textContent=s??"")},{depth:r.path.length});r.__effects.push(i),r.__exec.text=o}for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&typeof e[o]=="function"&&!Qe.has(o)&&!mo(o)&&!r.__exec[o]){if(Ae[o]){let i=e[o],s=o,a=Re(()=>{let l=e.context?.designSystem;l&&Pe(l);try{let c=i(e,e.state,e.context),u=Ae[s](c,e,e.state,e.context);u&&e.node?go(e.node,u):e.node&&(s==="show"||s==="hide")&&(e.node.style.display="")}finally{l&&ke()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=i}else if(ze&&ze.has(o)){let i=e[o],s=o,a=Re(()=>{let l=e.context?.designSystem;l&&Pe(l);try{let c=i(e,e.state,e.context);e.node&&(c!=null?go(e.node,{[s]:c}):e.node.style[s]="")}finally{l&&ke()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=i}}if(typeof t.html=="function"){let o=t.html,i=Re(()=>{let s=e.context?.designSystem;s&&Pe(s);try{let a=o(e,e.state,e.context);e.node&&a!=null&&typeof a!="function"&&(e.node.innerHTML=a)}finally{s&&ke()}},{depth:r.path.length});r.__effects.push(i),r.__exec.html=o}if(typeof t.value=="function"){let o=t.value,i=Re(()=>{try{let s=o(e,e.state,e.context);if(!e.node||!("value"in e.node))return;let a=s==null?"":String(s);if(e.node.value===a)return;let l=typeof document<"u"&&document.activeElement===e.node,c=l&&typeof e.node.selectionStart=="number"?e.node.selectionStart:null,u=l&&typeof e.node.selectionEnd=="number"?e.node.selectionEnd:null;if(e.node.value=a,l&&c!=null&&u!=null)try{e.node.setSelectionRange(c,u)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(i),r.__exec.value=o}if(typeof t.style=="function"){let o=t.style,i=Re(()=>{let s=o(e,e.state,e.context);go(e.node,s)},{depth:r.path.length});r.__effects.push(i),r.__exec.style=o}else if(e.style&&typeof e.style=="object")for(let o in e.style){let i=e.style[o];if(typeof i!="function")continue;let s=Re(()=>{try{let a=i(e,e.state,e.context);e.node&&go(e.node,{[o]:a})}catch{}},{depth:r.path.length});r.__effects.push(s)}if(e.attr&&typeof e.attr=="object"){for(let o in e.attr)if(typeof e.attr[o]=="function"){let i=e.attr[o],s=o,a=Re(()=>{try{let l=i(e,e.state,e.context);e.node?.setAttribute&&(l==null||l===!1?e.node.removeAttribute(s):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(s,l===!0?"":l))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let i=e.aria[o];if(typeof i!="function")continue;let s="aria-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=Re(()=>{try{let l=i(e,e.state,e.context);if(!e.node?.setAttribute)return;l==null||l===!1?e.node.removeAttribute(s):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(s,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(e.data&&typeof e.data=="object")for(let o in e.data){let i=e.data[o];if(typeof i!="function")continue;let s="data-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=Re(()=>{try{let l=i(e,e.state,e.context);if(!e.node?.setAttribute)return;l==null||l===!1?e.node.removeAttribute(s):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(s,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(a)}let n=e.classlist&&typeof e.classlist=="object"&&!Array.isArray(e.classlist)?e.classlist:e.class&&typeof e.class=="object"&&!Array.isArray(e.class)?e.class:null;if(n)for(let o in n){let i=n[o];if(typeof i!="function")continue;let s=Re(()=>{try{let a=i(e,e.state,e.context);if(!e.node?.classList)return;typeof a=="string"?e.node.classList.add(a):a?e.node.classList.add(o):e.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(s)}if(typeof t.if=="function"){let o=t.if,i=Re(()=>{let s=o(e,e.state,e.context),a=r.__if;if(r.__if=!!s,a&&!r.__if&&e.node)e.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){e.node||(e.node=kn(e));let l=e.parent,c=l?.node;if(c&&e.node){let u=null,d=Object.keys(l),f=d.indexOf(e.key);for(let p=f+1;p<d.length;p++){let h=l[d[p]];if(h?.node?.parentNode===c){u=h.node;break}}u?c.insertBefore(e.node,u):c.appendChild(e.node)}else Tm(e,e.parent);Cm(e)}else{if(r.__ifInitialized=!0,e.tag||(e.tag=_n(e)),Br("Init",e,{}),e.node||(e.node=kn(e)),!e.node)return;Br("AttachNode",e,{}),e.node.setAttribute&&e.key&&e.node.setAttribute("data-key",e.key),e.id&&e.node.setAttribute&&(e.node.id=e.id);let l=t.if;delete t.if;try{km(e,t)}finally{t.if=l}Cm(e),ak(e),lk(e,{}),ck(e,{}),Tm(e,e.parent)}},{depth:r.path.length});r.__effects.push(i)}for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||Qe.has(o)||typeof e[o]!="function")continue;let i=o.charCodeAt(0);if(i>=65&&i<=90||mo(o))continue;let s=e[o];r.__exec[o]=s;let a=e.tag||"div";if(Mr(a,o)&&!Ae[o]&&!(ze&&ze.has(o))){let l=o,c=Re(()=>{try{let u=s(e,e.state,e.context);e.node?.setAttribute&&(u==null||u===!1?e.node.removeAttribute(l):typeof u!="function"&&typeof u!="object"&&(l==="src"&&"src"in e.node?e.node.src=u:e.node.setAttribute(l,u===!0?"":u)))}catch{}},{depth:r.path.length});r.__effects.push(c)}}bM(e)}function Cm(e){let{node:t}=e;if(t){if(typeof e.text=="string"&&!e.text.includes("{{")?e.tag==="string"?t.nodeValue=e.text:t.textContent=e.text:typeof e.text=="number"&&(t.textContent=e.text),vM(e),typeof e.html=="string"&&(t.innerHTML=e.html),e.value!=null&&typeof e.value!="function"&&"value"in t){let r=String(e.value);t.value!==r&&(t.value=r)}if(e.style&&typeof e.style=="object"&&go(t,e.style),e.attr&&typeof e.attr=="object")for(let r in e.attr){let n=e.attr[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.setAttribute&&t.setAttribute(r,n===!0?"":n)}if(e.data&&typeof e.data=="object")for(let r in e.data){let n=e.data[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.dataset&&(t.dataset[r]=n===!0?"":n)}if(e.classlist||e.class){let r=e.classlist||e.class;if(typeof r=="string")r.split(" ").forEach(n=>n&&t.classList.add(n));else if(typeof r=="object")for(let n in r){let o=typeof r[n]=="function"?r[n](e,e.state,e.context):r[n];o&&t.classList.add(typeof o=="string"?o:n)}}}}function go(e,t){if(!e||!t||!e.style)return;let r=null;for(let n in t){let o=t[n];if(o!=null){if(n.charAt(0)==="&"&&typeof o=="object"){r||(r={}),r[n]=o;continue}try{let i=String(o),s=n.replace(/[A-Z]/g,u=>"-"+u.toLowerCase()),a=i.trim(),l=/\s*!important\s*$/.test(a),c=a.replace(/\s*!important\s*$/,"");e.style.setProperty(s,c,l?"important":"")}catch{}}}r&&yM(e,r)}var mM=0;function yM(e,t){let r=`_ds${mM++}`;e.classList.add(r);let n=e.ownerDocument,o=n.querySelector("style[data-smbls-scoped]");o||(o=n.createElement("style"),o.setAttribute("data-smbls-scoped",""),n.head.appendChild(o));let i="";for(let s in t){let a="."+r,l=s.replace(/&/g,a).split(",").map(u=>{let d=u.trim();return d.includes(a)?d:a+d}).join(", "),c=t[s];if(typeof c=="object"){let u="",d="";for(let f in c){let p=c[f];if(typeof p=="object"){let h=f.includes("&")?l.split(", ").map(m=>f.replace(/&/g,m)).join(", "):l.split(", ").map(m=>`${m} ${f}`).join(", "),g="";for(let m in p)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${p[m]};`;d+=`${h} { ${g} }
40
- `}else u+=`${f.replace(/[A-Z]/g,h=>"-"+h.toLowerCase())}: ${p};`}u&&(i+=`${l} { ${u} }
41
- `),d&&(i+=d)}}i&&(o.textContent+=i)}function bM(e){let t=e.__ref;t.__conditionalRunners=[];for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let i=e[r];if(!i||typeof i!="object")continue;let s=n==="!",a={lastMatch:!1,appliedKeys:null},l=()=>{if(!e.node)return;let u,d=e[o];if(d===void 0)if(e.state&&o in e.state)u=e.state[o];else{let h=e.context?.cases?.[o];if(h===void 0)return;u=typeof h=="function"?h.call(e,e):h}else typeof d=="function"?u=d(e,e.state,e.context):u=d;let f=s?!u:!!u;if(f===a.lastMatch)return;a.lastMatch=f;let p=e.context?.designSystem;p&&Pe(p);try{if(f){let h={};for(let m in i){if(!Object.prototype.hasOwnProperty.call(i,m))continue;let y=typeof i[m]=="function"?i[m](e,e.state,e.context):i[m];if(y!=null)if(Ae[m]){let b=Ae[m](y,e,e.state,e.context);if(b){let x=Array.isArray(b)?b:[b];for(let v of x)v&&Object.assign(h,v)}}else ze&&ze.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(go(e.node,h),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let h of a.appliedKeys)e.node.style[h]="";a.appliedKeys=null}}finally{p&&ke()}};t.__conditionalRunners.push(l);let c=Re(l,{depth:t.path.length});t.__effects.push(c)}}var Sm=new WeakSet;function vM(e){let{node:t}=e;if(!t)return;if(Sm.has(e)){console.error("[applyCssInProps] re-entry detected for element",e.key,"prop path:",e.__ref?.path);return}Sm.add(e);let r=e.context?.designSystem;r&&Pe(r);try{let n={},o=!1;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||typeof e[i]=="function"||Qe.has(i))continue;let s=i.charCodeAt(0);if(!(s>=65&&s<=90)&&!mo(i)){if(Ae[i]){let a=e[i],l=Ae[i](a,e,e.state,e.context);if(l){if(Array.isArray(l))for(let c of l)c&&Object.assign(n,c);else Object.assign(n,l);o=!0}}else if(ze&&ze.has(i)){let a=e[i];a!=null&&typeof a!="object"&&(n[i]=a,o=!0)}else if(i.charCodeAt(0)===45){let a=e[i];a!=null&&typeof a!="object"&&(n[i]=a,o=!0)}else if(i.charAt(0)==="&"){let a=e[i];a&&typeof a=="object"&&(n[i]=a,o=!0)}else if(i.charAt(0)==="@"||i.charAt(0)===":"){let a=e[i];if(a&&typeof a=="object"){let l={};for(let c in a){let u=a[c];if(typeof u=="function"&&(u=u(e,e.state,e.context)),!(u==null||typeof u=="function"))if(Ae[c]){let d=Ae[c](u,e,e.state,e.context);if(d)if(Array.isArray(d))for(let f of d)f&&Object.assign(l,f);else Object.assign(l,d)}else l[c]=u}if(Object.keys(l).length){if(i.length>1&&i.charAt(0)==="@"&&!i.startsWith("@media")&&!i.startsWith("@keyframes")&&!i.startsWith("@supports")&&(i==="@dark"||i==="@light"||!e.context?.designSystem?.media?.[i.slice(1)])){let c={};for(let d in l){let f=l[d];c[d]=typeof f=="string"&&!f.includes("!important")?f+" !important":f}let u=i.slice(1);n[`[data-theme="${u}"] &`]=c}else{let c=i;if(i.charAt(0)==="@"&&!i.startsWith("@media")&&!i.startsWith("@keyframes")){let d=i.slice(1),f=e.context?.designSystem?.media?.[d]||e.context?.designSystem?.media?.[d];f&&(c=`@media ${f}`)}let u={};for(let d in l){let f=l[d];if(f&&typeof f=="object"&&!Array.isArray(f)){let p={};for(let g in f)if(Ae[g]){let m=Ae[g](f[g],e,e.state,e.context);if(m)if(Array.isArray(m))for(let y of m)y&&Object.assign(p,y);else Object.assign(p,m)}else p[g]=f[g];let h=d.startsWith(":")?"":" ";if(c.includes(",")){let g=c.split(",").map(m=>`${m.trim()}${h}${d}`).join(", ");n[g]=p}else n[`${c}${h}${d}`]=p}else u[d]=f}Object.keys(u).length&&(n[c]=u)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(t.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let i=Lr(n,null,e.context?.cssPrefix);if(i&&t.classList){let a=i.split(" ").filter(Boolean),l=!1;for(let c of a)t.classList.add(c),l||(c.charCodeAt(0)===95&&c.charCodeAt(1)===99||c.charCodeAt(0)===95&&c.indexOf("_c",1)!==-1)&&(l=!0);l&&typeof t.offsetWidth=="number"&&t.offsetWidth}let s=e.display!=null&&typeof e.display!="function"?e.display:e.hide===!0||e.show===!1?"none":null;if(s!=null){let a=n.display;if(a&&a!==s)if(s==="none"){let l=[];for(let c of t.classList)c.startsWith("_d-")&&c!=="_d-none"&&l.push(c);for(let c of l)t.classList.remove(c);t.classList.add("_d-none")}else t.style.display=e.display}}}finally{r&&ke(),Sm.delete(e)}}function ak(e){let{node:t}=e;if(!t||!t.setAttribute)return;if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let i=e.aria[o];if(typeof i=="function"||typeof i=="object"||i==null||i===!1)continue;let s="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());t.setAttribute(s,i===!0?"":i)}let r=xm(e);for(let o in r){let i=r[o];i!=null&&i!==!1&&typeof i!="function"&&typeof i!="object"&&t.setAttribute(o,i===!0?"":i)}let n=e.tag||"div";for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||typeof e[o]=="function"||Qe.has(o)||o==="on"||r[o]!==void 0)continue;let i=o.charCodeAt(0);if(!(i>=65&&i<=90)&&!mo(o)&&!(Ae[o]||ze&&ze.has(o))&&Mr(n,o)){let s=e[o];if(s==null||s===!1||(typeof s=="string"&&s.includes("{{")&&(s=tn(s,e,e.state,e.context),e[o]=s),s==null||s===!1||typeof s=="function"||typeof s=="object"))continue;t.setAttribute(o,s===!0?"":s)}}}function lk(e,t){for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||!mo(r))continue;let n=e[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let i=n;n=function(s){return e.call(i,s)}}if(typeof n!="function")continue;let o=dM(r);Cn.has(o)||As(pM(o),e,n)}}function Am(e,t){let r={...e};for(let n in t){let o=r[n],i=t[n];o&&i&&typeof o=="object"&&typeof i=="object"&&!Array.isArray(o)&&!Array.isArray(i)&&typeof o!="function"&&typeof i!="function"?r[n]=Am(o,i):r[n]=i}return r}function Em(e,t,r){if(!t||!e.node)return;let n=e.childExtends;if(Array.isArray(t)){let o=(e.context?.document||globalThis.document)?.createDocumentFragment();if(!o)return;let i=e.childProps,s=e.childrenAs;for(let a=0;a<t.length;a++){let l=t[a],c=l;(typeof l=="string"||typeof l=="number")&&(l={text:l});let u=i;if(typeof i=="function")try{u=i(e,l)}catch{u=null}if(s==="state"){let p=c;(typeof c=="string"||typeof c=="number")&&(p={value:c,text:c}),l=u?{...u,state:p}:{state:p}}else u&&(l=Am(u,l));if(n&&!l.ignoreChildExtends)if(l.extends){let p=Array.isArray(l.extends)?l.extends:[l.extends],h=Array.isArray(n)?n:[n];l={...l,extends:[...h,...p]}}else l={extends:n,...l};let d=l?.key||`${a}`,f=Dt(l,e,d,r);f?.node&&o.appendChild(f.node)}e.node.appendChild(o);return}if(typeof t=="string"){let o=sk(t,e);if(Array.isArray(o)){Em(e,o,r);return}}if(typeof t=="object")for(let o in t){if(Qe.has(o))continue;let i=t[o];if(!(i==null||i===!1)){if((typeof i=="string"||typeof i=="number")&&(i={text:i}),e.childProps&&(i=Am(e.childProps,i)),n&&!i.ignoreChildExtends)if(i.extends){let s=Array.isArray(i.extends)?i.extends:[i.extends],a=Array.isArray(n)?n:[n];i={...i,extends:[...a,...s]}}else i={extends:n,...i};Dt(i,e,o,r)}}}function ck(e,t){let{children:r,content:n}=e,o=e.childExtends;if(typeof r=="function"){let s=r;r=s(e,e.state,e.context),e.children=r;let a=e.__ref,l=!1,c=Re(()=>{let u=s(e,e.state,e.context);if(!l){l=!0;return}if(u!==e.children){if(e.children=u,Array.isArray(u)&&e.childrenAs==="state"){let d=e.childProps,f=[],p=new Map;for(let b=0;b<u.length;b++){let x=u[b],v=d;if(typeof d=="function")try{v=d(e,x)}catch{v=null}let S=v&&v.key||x&&x.key||`${b}`;f.push(S),p.set(S,{rawChild:x,childProps:v})}let h=new Set(f),g=a.__children.slice();for(let b of g)if(!h.has(b)){let x=e[b];x?.remove&&x.remove(),delete e[b]}let m=e.childExtends,y=(e.context?.document||globalThis.document)?.createDocumentFragment();for(let b of f){let x=p.get(b),v=x.rawChild,S=e[b];if(S&&S.state){if(v&&typeof v=="object"){let j=S.state;if(typeof j.replace=="function")j.replace(v);else if(typeof j.update=="function"){for(let K in j)if(!(K==="__element"||K==="root"||K==="parent"||K==="update")&&!Object.prototype.hasOwnProperty.call(v,K))try{j[K]=void 0}catch{}j.update(v)}else for(let K in v)j[K]=v[K]}continue}let k=v;(typeof v=="string"||typeof v=="number")&&(k={value:v,text:v});let E=x.childProps,T=E?{...E,state:k}:{state:k};if(m&&!T.ignoreChildExtends)if(T.extends){let j=Array.isArray(T.extends)?T.extends:[T.extends],K=Array.isArray(m)?m:[m];T={...T,extends:[...K,...j]}}else T={extends:m,...T};let w=Dt(T,e,b,t);w?.node&&y&&y.appendChild(w.node)}y&&y.childNodes.length&&e.node&&e.node.appendChild(y),a.__children=f;return}for(let d of[...a.__children]){let f=e[d];f?.remove&&f.remove(),delete e[d]}a.__children=[],Em(e,u,t)}},{depth:a.path.length});a.__effects.push(c)}if(Em(e,r||n,t),r||n)return;let i=e.context?.components||{};{let s=Object.keys(e);for(let a=0;a<s.length;a++){let l=s[a];if(!l.endsWith("Extends")||typeof e[l]!="string")continue;let c=l.slice(0,-7);if(!c||c.charCodeAt(0)<65||c.charCodeAt(0)>90)continue;let u={extends:e[l]};delete e[l];for(let d=a+1;d<s.length;d++){let f=s[d],p=f.charCodeAt(0);if(p>=65&&p<=90||Qe.has(f)||typeof e[f]=="function"&&(f.startsWith("on")||f.startsWith(".")))break;let h=e[f];h!==void 0&&(u[f]=h,delete e[f])}e[c]&&typeof e[c]=="object"?e[c]={...u,...e[c]}:e[c]=u}}for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Qe.has(s)||typeof e[s]!="object"||e[s]===null)continue;let a=s.charCodeAt(0);if(a<65||a>90)continue;let l=e[s];if(!l.__ref){if(!l.extends&&!l.extend){let c=i[s]||i[`smbls.${s}`];c&&(l={extends:c,...l})}if(e.childProps&&(l={...e.childProps,...l}),o&&!l.ignoreChildExtends)if(l.extends){let c=Array.isArray(l.extends)?l.extends:[l.extends],u=Array.isArray(o)?o:[o];l={...l,extends:[...u,...c]}}else l={extends:o,...l};Dt(l,e,s,t)}}}function Tm(e,t,r){let{node:n}=e;if(!n)return;let o=t?.node||(t?.nodeType?t:null);if(o)if(r?.position==="before"&&r.node)o.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let i=r.node.nextSibling;i?o.insertBefore(n,i):o.appendChild(n)}else o.appendChild(n)}function Br(e,t,r){let n=e.charAt(0).toLowerCase()+e.slice(1);t.context?.plugins?.length&&Ts(n,t,r);let o="on"+e,i=t[o];if(typeof i=="function"){let s=t.context?.designSystem;s&&Pe(s);try{if(i(t,t.state,t.context,r)===!1)return!1}catch(a){if(t.context?.plugins?.length&&Ts("error",t,{hook:o,error:a})||console.error(`[DOMQL] Lifecycle "${o}" error:`,a),t.context?.strictMode)throw a}finally{s&&ke()}}return!0}var uk={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["--gray 1 -168","--gray 1 +168"],caption:["--gray 1 -68","--gray 1 +68"],paragraph:["--gray 1 -42","--gray 1 +42"],disabled:["--gray 1 -26","--gray 1 +26"],line:["--gray 1 -16","--gray 1 +16"]},fk={"gradient-blue-light":`linear-gradient(to right,
39
+ `):"")}}if(gm(s,t,o),t&&(t[s.key]=s,t.__ref?.__children&&(t.__ref.__children.includes(s.key)||t.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let g=s.context?.designSystem;g&&Oe(g);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}finally{g&&_e()}}if(Dr("Create",s,n),Dr("Complete",s,n),Dr("Render",s,n),Dr("RenderRouter",s,n),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&Oe(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&_e()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function OI(e,t,r){let n=!t,o=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&e.context?.state,i=r.state!==void 0&&!s?r.state:e.state&&!je(e.state)?e.state:void 0;if(i==null){if(t?.state)e.state=t.state,gt(e,e.state);else if(e.context?.state){let a=e.context.state,l={...a},c=e.context?.polyglot;if(c?.translations){let u=a.lang||c.defaultLang||"en",d=c.translations[u];if(d&&typeof d=="object")for(let p in d)l[p]===void 0&&(l[p]=d[p]);let f=new Set(c.languages||[]);for(let p in c.translations)!f.has(p)&&l[p]===void 0&&(l[p]=c.translations[p])}e.state=je(l)?l:lt(l),e.state.__element=e,e.state.root=e.state,gt(e,e.state)}else e.state={},Object.defineProperty(e.state,"root",{value:e.state,enumerable:!1,configurable:!0,writable:!0}),gt(e,e.state);return}if(typeof i=="string"){if(e.state=lS(i,t),e.state&&typeof e.state=="object"&&!je(e.state)){let a=t?.state?.root||t?.state||e.state;Object.defineProperty(e.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}gt(e,e.state);return}if(typeof i=="function"){let a=i(e,t?.state);e.state=lt(a||{})}else e.state=lt({...i});e.state.__element=e,t?.state?(e.state.parent=t.state,e.state.root=t.state.root||t.state):e.state.root=e.state,gt(e,e.state)}function lm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function lS(e,t){if(!t)return{};if(e===".")return t.state||{};if(e.startsWith("../")){let o=e.slice(3);return o?lm(t.state,o):t.state??{}}if(e.startsWith("~/")){let o=t.state?.root||t.state,s=e.slice(2);return s?lm(o,s):o??{}}if(t.state?.[e]!==void 0)return t.state[e];let r=lm(t.state,e);if(r!=null&&Object.keys(r).length>0)return r;let n=t.context?.polyglot;if(n?.translations){let o=t.state?.root?.lang||n.defaultLang||"en",s=n.translations[o];if(s?.[e]!==void 0)return s[e];if(n.translations[e]!==void 0)return n.translations[e]}return{}}function TI(e){let t=e.__ref,r=e.tag||"div",n=e.context?.designSystem,o=[],s=Object.keys(e);for(let i=0;i<s.length;i++){let a=s[i];if(typeof e[a]!="function"||Je.has(a))continue;let l=a.charCodeAt(0);l>=65&&l<=90||ao(a)||Se[a]||Le&&Le.has(a)||jr(r,a)||o.push({prop:a,fn:e[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:l}=o[i];t.__exec[a]=l,Object.defineProperty(e,a,{get(){n&&Oe(n);try{return l(e,e.state,e.context)}catch{return}finally{n&&_e()}},set(c){delete t.__exec[a],Object.defineProperty(e,a,{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function fm(e,t){let r=e.__ref;if(TI(e),typeof e.text=="function"){let o=e.text,s=Ee(()=>{if(!r.contentManaged)try{let i=o(e,e.state,e.context);e.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=Zr.call(e,i,e.state)),e.tag==="string"?e.node.nodeValue=i:e.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}else if(typeof e.text=="string"&&e.text.includes("{{")){let o=e.text,s=Ee(()=>{if(r.contentManaged)return;let i=Zr.call(e,o,e.state);i!=null&&(e.text=i),e.node&&(e.tag==="string"?e.node.nodeValue=i??"":e.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&typeof e[o]=="function"&&!Je.has(o)&&!ao(o)&&!r.__exec[o]){if(Se[o]){let s=e[o],i=o,a=Ee(()=>{let l=e.context?.designSystem;l&&Oe(l);try{let c=s(e,e.state,e.context),u=Se[i](c,e,e.state,e.context);u&&e.node?io(e.node,u):e.node&&(i==="show"||i==="hide")&&(e.node.style.display="")}finally{l&&_e()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}else if(Le&&Le.has(o)){let s=e[o],i=o,a=Ee(()=>{let l=e.context?.designSystem;l&&Oe(l);try{let c=s(e,e.state,e.context);e.node&&(c!=null?io(e.node,{[i]:c}):e.node.style[i]="")}finally{l&&_e()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}}if(typeof t.html=="function"){let o=t.html,s=Ee(()=>{let i=e.context?.designSystem;i&&Oe(i);try{let a=o(e,e.state,e.context);e.node&&a!=null&&typeof a!="function"&&(e.node.innerHTML=a)}finally{i&&_e()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof t.value=="function"){let o=t.value,s=Ee(()=>{try{let i=o(e,e.state,e.context);if(!e.node||!("value"in e.node))return;let a=i==null?"":String(i);if(e.node.value===a)return;let l=typeof document<"u"&&document.activeElement===e.node,c=l&&typeof e.node.selectionStart=="number"?e.node.selectionStart:null,u=l&&typeof e.node.selectionEnd=="number"?e.node.selectionEnd:null;if(e.node.value=a,l&&c!=null&&u!=null)try{e.node.setSelectionRange(c,u)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=o}if(typeof t.style=="function"){let o=t.style,s=Ee(()=>{let i=o(e,e.state,e.context);io(e.node,i)},{depth:r.path.length});r.__effects.push(s),r.__exec.style=o}else if(e.style&&typeof e.style=="object")for(let o in e.style){let s=e.style[o];if(typeof s!="function")continue;let i=Ee(()=>{try{let a=s(e,e.state,e.context);e.node&&io(e.node,{[o]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}if(e.attr&&typeof e.attr=="object"){for(let o in e.attr)if(typeof e.attr[o]=="function"){let s=e.attr[o],i=o,a=Ee(()=>{try{let l=s(e,e.state,e.context);e.node?.setAttribute&&(l==null||l===!1?e.node.removeAttribute(i):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(i,l===!0?"":l))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s!="function")continue;let i="aria-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=Ee(()=>{try{let l=s(e,e.state,e.context);if(!e.node?.setAttribute)return;l==null||l===!1?e.node.removeAttribute(i):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(i,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(e.data&&typeof e.data=="object")for(let o in e.data){let s=e.data[o];if(typeof s!="function")continue;let a="data-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),l=Ee(()=>{try{let c=s(e,e.state,e.context);if(!e.node?.setAttribute)return;c==null||c===!1?e.node.removeAttribute(a):typeof c!="function"&&typeof c!="object"&&e.node.setAttribute(a,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(l)}let n=e.classlist&&typeof e.classlist=="object"&&!Array.isArray(e.classlist)?e.classlist:e.class&&typeof e.class=="object"&&!Array.isArray(e.class)?e.class:null;if(n)for(let o in n){let s=n[o];if(typeof s!="function")continue;let i=Ee(()=>{try{let a=s(e,e.state,e.context);if(!e.node?.classList)return;typeof a=="string"?e.node.classList.add(a):a?e.node.classList.add(o):e.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof t.if=="function"){let o=t.if,s=Ee(()=>{let i=o(e,e.state,e.context),a=r.__if;if(r.__if=!!i,a&&!r.__if&&e.node)e.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){e.node||(e.node=xn(e));let l=e.parent,c=l?.node;if(c&&e.node){let u=null,d=Object.keys(l),f=d.indexOf(e.key);for(let p=f+1;p<d.length;p++){let h=l[d[p]];if(h?.node?.parentNode===c){u=h.node;break}}u?c.insertBefore(e.node,u):c.appendChild(e.node)}else gm(e,e.parent);dm(e)}else{if(r.__ifInitialized=!0,e.tag||(e.tag=bn(e)),Dr("Init",e,{}),e.node||(e.node=xn(e)),!e.node)return;Dr("AttachNode",e,{}),e.node.setAttribute&&e.key&&e.node.setAttribute("data-key",e.key),e.id&&e.node.setAttribute&&(e.node.id=e.id);let l=t.if;delete t.if;try{fm(e,t)}finally{t.if=l}dm(e),cS(e),uS(e,{}),fS(e,{}),gm(e,e.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||Je.has(o)||typeof e[o]!="function")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||ao(o))continue;let i=e[o];r.__exec[o]=i;let a=e.tag||"div";if(jr(a,o)&&!Se[o]&&!(Le&&Le.has(o))){let l=o,c=Ee(()=>{try{let u=i(e,e.state,e.context);e.node?.setAttribute&&(u==null||u===!1?e.node.removeAttribute(l):typeof u!="function"&&typeof u!="object"&&(l==="src"&&"src"in e.node?e.node.src=u:e.node.setAttribute(l,u===!0?"":u)))}catch{}},{depth:r.path.length});r.__effects.push(c)}}$I(e)}function dm(e){let{node:t}=e;if(t){if(typeof e.text=="string"&&!e.text.includes("{{")?e.tag==="string"?t.nodeValue=e.text:t.textContent=e.text:typeof e.text=="number"&&(t.textContent=e.text),II(e),typeof e.html=="string"&&(t.innerHTML=e.html),e.value!=null&&typeof e.value!="function"&&"value"in t){let r=String(e.value);t.value!==r&&(t.value=r)}if(e.style&&typeof e.style=="object"&&io(t,e.style),e.attr&&typeof e.attr=="object")for(let r in e.attr){let n=e.attr[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.setAttribute&&t.setAttribute(r,n===!0?"":n)}if(e.data&&typeof e.data=="object")for(let r in e.data){let n=e.data[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.dataset&&(t.dataset[r]=n===!0?"":n)}if(e.classlist||e.class){let r=e.classlist||e.class;if(typeof r=="string")r.split(" ").forEach(n=>n&&t.classList.add(n));else if(typeof r=="object")for(let n in r){let o=typeof r[n]=="function"?r[n](e,e.state,e.context):r[n];o&&t.classList.add(typeof o=="string"?o:n)}}}}function io(e,t){if(!e||!t||!e.style)return;let r=null;for(let n in t){let o=t[n];if(o!=null){if(n.charAt(0)==="&"&&typeof o=="object"){r||(r={}),r[n]=o;continue}try{let s=String(o),i=n.replace(/[A-Z]/g,u=>"-"+u.toLowerCase()),a=s.trim(),l=/\s*!important\s*$/.test(a),c=a.replace(/\s*!important\s*$/,"");e.style.setProperty(i,c,l?"important":"")}catch{}}}r&&PI(e,r)}var RI=0;function PI(e,t){let r=`_ds${RI++}`;e.classList.add(r);let n=e.ownerDocument,o=n.querySelector("style[data-smbls-scoped]");o||(o=n.createElement("style"),o.setAttribute("data-smbls-scoped",""),n.head.appendChild(o));let s="";for(let i in t){let a="."+r,l=i.replace(/&/g,a).split(",").map(u=>{let d=u.trim();return d.includes(a)?d:a+d}).join(", "),c=t[i];if(typeof c=="object"){let u="",d="";for(let f in c){let p=c[f];if(typeof p=="object"){let h=f.includes("&")?l.split(", ").map(m=>f.replace(/&/g,m)).join(", "):l.split(", ").map(m=>`${m} ${f}`).join(", "),g="";for(let m in p)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${p[m]};`;d+=`${h} { ${g} }
40
+ `}else u+=`${f.replace(/[A-Z]/g,h=>"-"+h.toLowerCase())}: ${p};`}u&&(s+=`${l} { ${u} }
41
+ `),d&&(s+=d)}}s&&(o.textContent+=s)}function $I(e){let t=e.__ref;t.__conditionalRunners=[];for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let s=e[r];if(!s||typeof s!="object")continue;let i=n==="!",a={lastMatch:!1,appliedKeys:null},l=()=>{if(!e.node)return;let u,d=e[o];if(d===void 0)if(e.state&&o in e.state)u=e.state[o];else{let h=e.context?.cases?.[o];if(h===void 0)return;u=typeof h=="function"?h.call(e,e):h}else typeof d=="function"?u=d(e,e.state,e.context):u=d;let f=i?!u:!!u;if(f===a.lastMatch)return;a.lastMatch=f;let p=e.context?.designSystem;p&&Oe(p);try{if(f){let h={};for(let m in s){if(!Object.prototype.hasOwnProperty.call(s,m))continue;let y=typeof s[m]=="function"?s[m](e,e.state,e.context):s[m];if(y!=null)if(Se[m]){let b=Se[m](y,e,e.state,e.context);if(b){let v=Array.isArray(b)?b:[b];for(let x of v)x&&Object.assign(h,x)}}else Le&&Le.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(io(e.node,h),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let h of a.appliedKeys)e.node.style[h]="";a.appliedKeys=null}}finally{p&&_e()}};t.__conditionalRunners.push(l);let c=Ee(l,{depth:t.path.length});t.__effects.push(c)}}var cm=new WeakSet;function II(e){let{node:t}=e;if(!t)return;if(cm.has(e)){console.error("[applyCssInProps] re-entry detected for element",e.key,"prop path:",e.__ref?.path);return}cm.add(e);let r=e.context?.designSystem;r&&Oe(r);try{let n={},o=!1;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||typeof e[s]=="function"||Je.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!ao(s)){if(Se[s]){let a=e[s],l=Se[s](a,e,e.state,e.context);if(l){if(Array.isArray(l))for(let c of l)c&&Object.assign(n,c);else Object.assign(n,l);o=!0}}else if(Le&&Le.has(s)){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="&"){let a=e[s];a&&typeof a=="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=e[s];if(a&&typeof a=="object"){let l={};for(let c in a){let u=a[c];if(typeof u=="function"&&(u=u(e,e.state,e.context)),!(u==null||typeof u=="function"))if(Se[c]){let d=Se[c](u,e,e.state,e.context);if(d)if(Array.isArray(d))for(let f of d)f&&Object.assign(l,f);else Object.assign(l,d)}else l[c]=u}if(Object.keys(l).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!e.context?.designSystem?.media?.[s.slice(1)])){let u={};for(let f in l){let p=l[f];u[f]=typeof p=="string"&&!p.includes("!important")?p+" !important":p}let d=s.slice(1);n[`[data-theme="${d}"] &`]=u}else{let u=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let f=s.slice(1),p=e.context?.designSystem?.media?.[f]||e.context?.designSystem?.media?.[f];p&&(u=`@media ${p}`)}let d={};for(let f in l){let p=l[f];if(p&&typeof p=="object"&&!Array.isArray(p)){let h={};for(let m in p)if(Se[m]){let y=Se[m](p[m],e,e.state,e.context);if(y)if(Array.isArray(y))for(let b of y)b&&Object.assign(h,b);else Object.assign(h,y)}else h[m]=p[m];let g=f.startsWith(":")?"":" ";if(u.includes(",")){let m=u.split(",").map(y=>`${y.trim()}${g}${f}`).join(", ");n[m]=h}else n[`${u}${g}${f}`]=h}else d[f]=p}Object.keys(d).length&&(n[u]=d)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(t.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let s=Ir(n,null,e.context?.cssPrefix);if(s&&t.classList){let a=s.split(" ").filter(Boolean),l=!1;for(let c of a)t.classList.add(c),l||(c.charCodeAt(0)===95&&c.charCodeAt(1)===99||c.charCodeAt(0)===95&&c.indexOf("_c",1)!==-1)&&(l=!0);l&&typeof t.offsetWidth=="number"&&t.offsetWidth}let i=e.display!=null&&typeof e.display!="function"?e.display:e.hide===!0||e.show===!1?"none":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i==="none"){let l=[];for(let c of t.classList)c.startsWith("_d-")&&c!=="_d-none"&&l.push(c);for(let c of l)t.classList.remove(c);t.classList.add("_d-none")}else t.style.display=e.display}}}finally{r&&_e(),cm.delete(e)}}function cS(e){let{node:t}=e;if(!t||!t.setAttribute)return;if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());t.setAttribute(i,s===!0?"":s)}let r=am(e);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&t.setAttribute(o,s===!0?"":s)}let n=e.tag||"div";for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||typeof e[o]=="function"||Je.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!ao(o)&&!(Se[o]||Le&&Le.has(o))&&jr(n,o)){let i=e[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=Zr(i,e,e.state,e.context),e[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;t.setAttribute(o,i===!0?"":i)}}}function uS(e,t){for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||!ao(r))continue;let n=e[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let s=n;n=function(a){return e.call(s,a)}}if(typeof n!="function")continue;let o=AI(r);vn.has(o)||Si(EI(o),e,n)}}function pm(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=pm(o,s):r[n]=s}return r}function hm(e,t,r){if(!t||!e.node)return;let n=e.childExtends;if(Array.isArray(t)){let s=(e.context?.document||globalThis.document)?.createDocumentFragment();if(!s)return;let i=e.childProps,a=e.childrenAs;for(let l=0;l<t.length;l++){let c=t[l],u=c;(typeof c=="string"||typeof c=="number")&&(c={text:c});let d=i;if(typeof i=="function")try{d=i(e,c)}catch{d=null}if(a==="state"){let h=u;(typeof u=="string"||typeof u=="number")&&(h={value:u,text:u}),c=d?{...d,state:h}:{state:h}}else d&&(c=pm(d,c));if(n&&!c.ignoreChildExtends)if(c.extends){let h=Array.isArray(c.extends)?c.extends:[c.extends],g=Array.isArray(n)?n:[n];c={...c,extends:[...g,...h]}}else c={extends:n,...c};let f=c?.key||`${l}`,p=Pt(c,e,f,r);p?.node&&s.appendChild(p.node)}e.node.appendChild(s);return}if(typeof t=="string"){let o=lS(t,e);if(Array.isArray(o)){hm(e,o,r);return}}if(typeof t=="object")for(let o in t){if(Je.has(o))continue;let s=t[o];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),e.childProps&&(s=pm(e.childProps,s)),n&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(n)?n:[n];s={...s,extends:[...a,...i]}}else s={extends:n,...s};Pt(s,e,o,r)}}}function fS(e,t){let{children:r,content:n}=e,o=e.childExtends;if(typeof r=="function"){let i=r;r=i(e,e.state,e.context),e.children=r;let a=e.__ref,l=!1,c=Ee(()=>{let u=i(e,e.state,e.context);if(!l){l=!0;return}if(u===e.children)return;if(e.children=u,Array.isArray(u)&&e.childrenAs==="state"){let p=e.childProps,h=[],g=new Map;for(let _=0;_<u.length;_++){let C=u[_],E=p;if(typeof p=="function")try{E=p(e,C)}catch{E=null}let F=E&&E.key||C&&C.key||`${_}`;h.push(F),g.set(F,{rawChild:C,childProps:E})}let m=new Set(h),y=a.__children.slice();for(let _ of y)if(!m.has(_)){let C=e[_];C?.remove&&C.remove(),delete e[_]}let b=e.childExtends,x=(e.context?.document||globalThis.document)?.createDocumentFragment();for(let _ of h){let C=g.get(_),E=C.rawChild,F=e[_];if(F&&F.state){if(E&&typeof E=="object"){let j=F.state;if(typeof j.replace=="function")j.replace(E);else if(typeof j.update=="function"){for(let I in j)if(!(I==="__element"||I==="root"||I==="parent"||I==="update")&&!Object.prototype.hasOwnProperty.call(E,I))try{j[I]=void 0}catch{}j.update(E)}else for(let I in E)j[I]=E[I]}continue}let w=E;(typeof E=="string"||typeof E=="number")&&(w={value:E,text:E});let $=C.childProps,q=$?{...$,state:w}:{state:w};if(b&&!q.ignoreChildExtends)if(q.extends){let j=Array.isArray(q.extends)?q.extends:[q.extends],I=Array.isArray(b)?b:[b];q={...q,extends:[...I,...j]}}else q={extends:b,...q};let te=Pt(q,e,_,t);te?.node&&x&&x.appendChild(te.node)}x&&x.childNodes.length&&e.node&&e.node.appendChild(x),a.__children=h;return}for(let p of[...a.__children]){let h=e[p];h?.remove&&h.remove(),delete e[p]}a.__children=[],hm(e,u,t)},{depth:a.path.length});a.__effects.push(c)}if(hm(e,r||n,t),r||n)return;let s=e.context?.components||{};{let i=Object.keys(e);for(let a=0;a<i.length;a++){let l=i[a];if(!l.endsWith("Extends")||typeof e[l]!="string")continue;let c=l.slice(0,-7);if(!c||c.charCodeAt(0)<65||c.charCodeAt(0)>90)continue;let u={extends:e[l]};delete e[l];for(let d=a+1;d<i.length;d++){let f=i[d],p=f.charCodeAt(0);if(p>=65&&p<=90||Je.has(f)||typeof e[f]=="function"&&(f.startsWith("on")||f.startsWith(".")))break;let h=e[f];h!==void 0&&(u[f]=h,delete e[f])}e[c]&&typeof e[c]=="object"?e[c]={...u,...e[c]}:e[c]=u}}for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||Je.has(i)||typeof e[i]!="object"||e[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let l=e[i];if(!l.__ref){if(!l.extends&&!l.extend){let c=s[i]||s[`smbls.${i}`];c&&(l={extends:c,...l})}if(e.childProps&&(l={...e.childProps,...l}),o&&!l.ignoreChildExtends)if(l.extends){let c=Array.isArray(l.extends)?l.extends:[l.extends],u=Array.isArray(o)?o:[o];l={...l,extends:[...u,...c]}}else l={extends:o,...l};Pt(l,e,i,t)}}}function gm(e,t,r){let{node:n}=e;if(!n)return;let o=t?.node||(t?.nodeType?t:null);if(o)if(r?.position==="before"&&r.node)o.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?o.insertBefore(n,s):o.appendChild(n)}else o.appendChild(n)}function Dr(e,t,r){let n=e.charAt(0).toLowerCase()+e.slice(1);t.context?.plugins?.length&&kt(n,t,r);let o="on"+e,s=t[o];if(typeof s=="function"){let i=t.context?.designSystem;i&&Oe(i);try{if(s(t,t.state,t.context,r)===!1)return!1}catch(a){if(t.context?.plugins?.length&&kt("error",t,{hook:o,error:a})||console.error(`[DOMQL] Lifecycle "${o}" error:`,a),t.context?.strictMode)throw a}finally{i&&_e()}}return!0}var dS={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["--gray 1 -168","--gray 1 +168"],caption:["--gray 1 -68","--gray 1 +68"],paragraph:["--gray 1 -42","--gray 1 +42"],disabled:["--gray 1 -26","--gray 1 +26"],line:["--gray 1 -16","--gray 1 +16"]},pS={"gradient-blue-light":`linear-gradient(to right,
42
42
  rgba(4, 116, 242, 1),
43
43
  rgba(0, 48, 103, 1)
44
44
  )`,"gradient-blue-dark":`linear-gradient(to right,
@@ -64,49 +64,49 @@ FROM ${a}${c}`},$D=e=>{let t=[],r=(n,o)=>{for(let i in n){let s=o?`${o}/${i}`:i;
64
64
  #1E54F0 36%,
65
65
  #8B4CCA 69%,
66
66
  #C66894 100%
67
- )`};var xM={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},wM={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},SM={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},dk={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...xM,...wM,...SM,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var pk={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var hk={ratio:1.618,subSequence:!0};var gk={SourceSans:[{url:""}]},mk={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var yk={symbols:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',logo:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>',arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>',arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>',arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>',arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>',arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>',arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>',arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>',arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>',arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>',arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>',arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>',checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>',check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>',chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>',chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>',chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>',chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>',copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>',eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>',eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>',lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>',minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>',sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>',moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>',moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>',send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>',smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>',search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>',upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>',x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>',star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>',plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'};var bk={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var vk={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Is={version:"0.0.1",color:uk,gradient:fk,theme:dk,typography:pk,spacing:hk,font:gk,fontFamily:mk,timing:vk,icons:yk,media:bk,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var gy={};R(gy,{A:()=>j1,AssetPicture:()=>Lk,Audio:()=>Nk,Avatar:()=>X1,B:()=>i1,Block:()=>xk,Box:()=>l1,Br:()=>u1,Button:()=>L1,ButtonSet:()=>z1,COMPONENTS:()=>$M,Caption:()=>Zk,Checkbox:()=>x1,CheckboxHgroup:()=>w1,Circle:()=>jk,CircleButton:()=>B1,Clickable:()=>Pk,Data:()=>a1,Dialog:()=>H1,DialogFooter:()=>U1,DialogHeader:()=>V1,Dropdown:()=>Y1,DropdownList:()=>J1,DropdownParent:()=>Q1,DropdownParentFocus:()=>eC,DropdownSiblingFocus:()=>tC,FileIcon:()=>R1,Flex:()=>Sk,Focusable:()=>$k,FocusableComponent:()=>Ik,Footnote:()=>o1,Form:()=>Tk,Grid:()=>kk,Gutter:()=>Ak,H1:()=>Hk,H2:()=>Vk,H3:()=>Uk,H4:()=>qk,H5:()=>Gk,H6:()=>Kk,Headline:()=>r1,Hgroup:()=>g1,HgroupButton:()=>y1,HgroupRows:()=>m1,Hoverable:()=>Rk,Hr:()=>c1,I:()=>s1,Icon:()=>T1,IconButton:()=>W1,IconText:()=>O1,Iframe:()=>Ok,Img:()=>Ek,Inline:()=>wk,InlineFlex:()=>_k,InlineGrid:()=>Ck,Input:()=>b1,Italic:()=>e1,KangorooButton:()=>N1,Li:()=>f1,Link:()=>oy,Notification:()=>rC,NumberInput:()=>v1,Ol:()=>p1,P:()=>Xk,Picture:()=>Dk,Radio:()=>S1,RadioHgroup:()=>_1,Range:()=>Z1,RouteLink:()=>F1,RouterLink:()=>iy,SHAPES:()=>Yc,Select:()=>D1,Shape:()=>jm,Span:()=>Wk,SquareButton:()=>M1,Strong:()=>Yk,Subhead:()=>n1,Svg:()=>Mk,Text:()=>zk,Textarea:()=>A1,TextareaWithButton:()=>E1,Theme:()=>Fk,Title:()=>t1,Toggle:()=>k1,ToggleHgroup:()=>C1,Tooltip:()=>q1,TooltipHidden:()=>G1,TooltipParent:()=>K1,U:()=>Jk,Ul:()=>d1,Underline:()=>Qk,Video:()=>Bk,depth:()=>Jc,getSystemGlobalTheme:()=>js});var Om={};R(Om,{Block:()=>xk,Flex:()=>Sk,Grid:()=>kk,Gutter:()=>Ak,Inline:()=>wk,InlineFlex:()=>_k,InlineGrid:()=>Ck});var xk={display:"block"},wk={display:"inline"},Sk={display:"flex"},_k={display:"inline-flex"},kk={display:"grid"},Ck={display:"inline-grid"},Ak={boxSize:"C1"};var Rm={};R(Rm,{Img:()=>Ek});D();var Ek={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=ye(e);return t&&t.src||e.src},srcset:e=>{let t=ye(e);return(t?dn(t):"")||e.srcset}}};var Pm={};R(Pm,{Form:()=>Tk});var Tk={tag:"form"};var $m={};R($m,{Iframe:()=>Ok});var Ok={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Im={};R(Im,{Clickable:()=>Pk,Focusable:()=>$k,FocusableComponent:()=>Ik,Hoverable:()=>Rk});var _M={appearance:"none",cursor:"pointer",fontFamily:"inherit"},Rk={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},Pk={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},$k={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},Ik={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:_M};var Lm={};R(Lm,{Picture:()=>Dk});var Dm={};R(Dm,{Theme:()=>Fk,getSystemGlobalTheme:()=>js});var Fm={};R(Fm,{Circle:()=>jk,SHAPES:()=>Yc,Shape:()=>jm,default:()=>kM,depth:()=>Jc});D();var xt=P(),Jc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${xt.unit.default} 4${xt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${xt.unit.default} 6${xt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${xt.unit.default} 10${xt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${xt.unit.default} 16${xt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${xt.unit.default} 26${xt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${xt.unit.default} 42${xt.unit.default}`}},yo=e=>pe(e.shapeDirectionColor)||pe(e.borderColor)||pe(e.backgroundColor)||pe(e.background),Zc=e=>{let t=En.transition(e.transition,e);return t&&t.transition},Yc={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:yo(e),transition:Zc(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:yo(e),transition:Zc(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:yo(e),transition:Zc(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Zc(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${yo(e)} 25%, transparent 25%), linear-gradient(315deg, ${yo(e)} 25%, transparent 25%)`},"&:after":{background:yo(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},jm={deps:{exec:de,getSpacingBasedOnRatio:ht,getMediaColor:Fe},classlist:{shape:e=>e.deps.exec(Yc[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Yc[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},jk={round:"100%"},kM=jm;D();var js=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},Fk={deps:{depth:Jc},classlist:{depth:e=>!_e(e.depth)&&e.deps.depth[e.depth]}};var Dk={deps:{getSystemGlobalTheme:js},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:js},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,i=n.getSystemGlobalTheme(e),s=(e.media||t).slice(1);return s===i?"(min-width: 0px)":s==="dark"||s==="light"?"(max-width: 0px)":o[s]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}};var Mm={};R(Mm,{AssetPicture:()=>Lk});D();var Lk={tag:"picture",children:e=>{let t=ye(e);if(t)return pn(t,e.alt)}};var Bm={};R(Bm,{Svg:()=>Mk});var Mk={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,i=e.spriteId||r&&r.useSvgSprite,s=e.call("exec",e.src,e);if(!i&&s)return s;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[s])return a(s);let c=Symbol.for(s),u=o[c];if(u&&o[u])return a(u);if(!s)return a("");if(typeof s=="string"&&!s.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${s}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${s}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<s.length;f++)d=(d<<5)-d+s.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:s}},{document:t.document,emotion:t.emotion}),a(u)}};var Nm={};R(Nm,{Video:()=>Bk});D();var Bk={tag:"video",controls:!0,attr:{src:e=>{let t=ye(e);return t&&t.src||e.src}},children:e=>{let t=ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var zm={};R(zm,{Audio:()=>Nk});D();var Nk={tag:"audio",controls:!0,attr:{src:e=>{let t=ye(e);return t&&t.src||e.src}},children:e=>{let t=ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Wm={};R(Wm,{B:()=>i1,Caption:()=>Zk,Data:()=>a1,Footnote:()=>o1,H1:()=>Hk,H2:()=>Vk,H3:()=>Uk,H4:()=>qk,H5:()=>Gk,H6:()=>Kk,Headline:()=>r1,I:()=>s1,Italic:()=>e1,P:()=>Xk,Span:()=>Wk,Strong:()=>Yk,Subhead:()=>n1,Text:()=>zk,Title:()=>t1,U:()=>Jk,Underline:()=>Qk});var zk={},Wk={tag:"span"},Hk={tag:"h1"},Vk={tag:"h2"},Uk={tag:"h3"},qk={tag:"h4"},Gk={tag:"h5"},Kk={tag:"h6"},Xk={tag:"p"},Zk={tag:"caption"},Yk={tag:"strong",fontWeight:"700"},Jk={tag:"u"},Qk={tag:"u"},e1={tag:"i"},t1={},r1={tag:"h6",fontSize:"B",fontWeight:500},n1={tag:"span",fontSize:"Z1"},o1={tag:"span",fontSize:"Z"},i1={tag:"b"},s1={tag:"i"},a1={tag:"data"};var Hm={};R(Hm,{Box:()=>l1,Br:()=>u1,Hr:()=>c1,Li:()=>f1,Ol:()=>p1,Ul:()=>d1});var CM=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Ve(t,e,{unpack:!1});r.__class=n},l1={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:CM},c1={tag:"hr",margin:"C1 0"},u1={tag:"br"},f1={tag:"li"},d1={tag:"ul",childExtends:{extends:"Li"}},p1={tag:"ol",childExtends:{extends:"Li"}};var Vm={};R(Vm,{Hgroup:()=>g1,HgroupButton:()=>y1,HgroupRows:()=>m1});var h1=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},g1={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:h1,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:h1,margin:"0",color:"paragraph"}},m1={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},y1={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Um={};R(Um,{Input:()=>b1});var b1={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}};var qm={};R(qm,{NumberInput:()=>v1});var v1={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}};var Gm={};R(Gm,{Checkbox:()=>x1,CheckboxHgroup:()=>w1});var x1={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},w1={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Km={};R(Km,{Radio:()=>S1,RadioHgroup:()=>_1});var S1={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},_1={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Xm={};R(Xm,{Toggle:()=>k1,ToggleHgroup:()=>C1});var k1={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},C1={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Zm={};R(Zm,{Textarea:()=>A1,TextareaWithButton:()=>E1});var A1={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},E1={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var Ym={};R(Ym,{FileIcon:()=>R1,Icon:()=>T1,IconText:()=>O1});var T1={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:i,verbose:s}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=v=>{let S=v[".isActive"];if(S)return v.call("exec",S.name||S.icon)},c=(v,S,k)=>{let{semanticIcons:E}=k&&k.designSystem,{toCamelCase:T}=k&&k.utils,w=u(v,S),j=T(w).split(/([a-z])([A-Z])/g),K=j[1]?j[0]:w.split(".")[0].split(" ")[0],Q=E&&E[K];if(Q){let W=w.includes(".")?"sfsymbols."+w.split(".").slice(1).join("."):"sfsymbols";return w=Q[W]||Q[w.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${w}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(v,S)=>{let{key:k}=v,E=v.call("exec",v.name||v.icon||k,v);return v.call("isString",E)&&E.includes("{{")&&(E=v.call("replaceLiteralsWithObjectFields",E)),v.call("isString",E)?E:k},d=u(e,t);if(d.includes(" ")){let v=d.split(" ");d=v[0]+v.slice(1).map(S=>S.charAt(0).toUpperCase()+S.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:s&&e.warn("Can't find icon:",d,y);let b=o[y],x=n&&n.src||e.src;Object.assign(e,{spriteId:i&&y,src:b||x||o.noIcon})},attr:{viewBox:"0 0 24 24"}},O1={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},R1={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var sy={};R(sy,{A:()=>j1,Link:()=>oy,RouteLink:()=>F1,RouterLink:()=>iy});var ny={};R(ny,{default:()=>RM,getActiveRoute:()=>ry,lastLevel:()=>eu,lastPathname:()=>Qc,matchRoute:()=>Qm,parseQuery:()=>ey,parseRoutePattern:()=>Jm,router:()=>nt,runGuards:()=>ty});D();var $1=/^:(.+)/,I1=/^\*$/,P1=new Map,Jm=e=>{let t=P1.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let s=0;s<r.length;s++){let a=r[s].match($1);a?n.push({index:s,name:a[1]}):I1.test(r[s])&&(o=!0)}let i={segments:r,params:n,hasWildcard:o,pattern:e};return P1.set(e,i),i},Qm=(e,t,r=0)=>{let o=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),i="/"+(o[0]||"");if(!t)return{key:null,content:null,params:{},routePath:i};let s=null,a=-1,l={};for(let c in t){if(c==="/*")continue;let u=Jm(c),d=AM(o,u);d>a&&(a=d,s=c,l=EM(o,u))}return!s&&t["/*"]&&(s="/*"),{key:s,content:s?t[s]:null,params:l,routePath:i}},AM=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,i=Math.min(r.length,e.length);for(let s=0;s<i;s++)if(r[s]===e[s])o+=3;else if($1.test(r[s]))o+=1;else if(I1.test(r[s]))o+=.5;else return-1;return o},EM=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},ey=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((n,o)=>{t[o]!==void 0?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(n)):t[o]=n}),t},ty=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},ry=(e=0,t)=>{t||(t=typeof C<"u"?C.location.pathname:"/");let n=t.split("/")[e+1];if(n)return`/${n}`},Qc,eu=0,TM=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,OM={level:eu,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:he&&he.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},nt=async(e,t,r={},n={})=>{let o=t||void 0,i=o?.context?.window||C,s=o?.context?.document||he,a={...OM,...o.context.routerOptions,...n};eu=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=i.location.origin!=="null"?i.location.origin:"http://localhost";e=TM(e);let d=typeof i.URL=="function"?i.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=ey(h),y=o.node,b=g&&g!==i.location.hash.slice(1),x=p!==Qc;Qc=p;let v,S,k,E;if(a.useParamsMatching){let w=Qm(p,o.routes,a.level);v=w.key,S=w.routePath,k=w.content,E=w.params}else{v=ry(a.level,p),S=v;let w=o.routes;k=w?w[v||"/"]||w["/*"]:null,E={}}let T=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!k){a.onNotFound?a.onNotFound({pathname:p,route:v,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let w={pathname:p,route:v,params:E,query:m,hash:g,element:o,state:r},j=await ty(a.guards,w);if(j===!1)return;if(typeof j=="string")return nt(j,t,r,{...n,guards:[]})}if(a.pushState)try{i.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(x||!b){let w={route:v,routePath:S,hash:g,debugging:!1};Object.keys(E).length&&(w.params=E),Object.keys(m).length&&(w.query=m),a.updateState&&o.state.update(w,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let j=o.__ref?.origin?.content,K={};if(j)for(let W in j){let H=j[W];W==="__ref"||W==="props"||W==="node"||W==="parent"||W==="key"||(typeof H=="string"||typeof H=="number"||typeof H=="boolean"||typeof H=="object"&&H!==null&&!H.node&&!H.__ref)&&(K[W]=H)}let Q={...K,...typeof k=="object"?k:{extends:k}};a.useFragment&&(Q.tag="fragment");try{o.set(Q,{contentElementKey:c})}catch(W){console.error("[smbls/router] failed to render route content",p,W)}}if(a.scrollToTop&&T?.scrollTo&&T.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&k[c]?.node?.scrollTo&&k[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let w=s.getElementById(g);if(w&&T?.scrollTo){let j=w.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);T.scrollTo({...a.scrollToOptions||{},top:j,left:0})}}Er("routeChanged",o,a)},RM=nt;var PM=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:i,stopPropagation:s}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),s&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||nt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",i)?i:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},oy={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Lt(e,e.href)||Lt(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:PM},j1={extends:"Link"},iy={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:i,stopPropagation:s}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),s&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||nt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",i)?i:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},F1={extends:[oy,iy]};var ay={};R(ay,{Select:()=>D1});var D1={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}};var ly={};R(ly,{Button:()=>L1,ButtonSet:()=>z1,CircleButton:()=>B1,IconButton:()=>W1,KangorooButton:()=>N1,SquareButton:()=>M1});var L1={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},M1={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},B1={extends:"SquareButton",round:"C"},N1={extends:"Button",childExtends:"IconText"},z1={tag:"nav",display:"flex",childExtends:"SquareButton"},W1={extends:["SquareButton","ClickableItem"],round:"Z"};var cy={};R(cy,{Dialog:()=>H1,DialogFooter:()=>U1,DialogHeader:()=>V1});var H1={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},V1={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},U1={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};var uy={};R(uy,{Tooltip:()=>q1,TooltipHidden:()=>G1,TooltipParent:()=>K1});D();var q1={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>Ne(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},G1={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},K1={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var fy={};R(fy,{Avatar:()=>X1});var X1={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`};var dy={};R(dy,{Range:()=>Z1});var Z1={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:$r("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:$r("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}};var py={};R(py,{Dropdown:()=>Y1,DropdownList:()=>J1,DropdownParent:()=>Q1,DropdownParentFocus:()=>eC,DropdownSiblingFocus:()=>tC});var Y1={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},J1={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Q1={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},eC={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},tC={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}};var hy={};R(hy,{Notification:()=>rC});var rC={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var $M=Object.assign({},Om,Rm,Pm,$m,Im,Lm,Mm,Bm,Fm,Nm,zm,Dm,Wm,Hm,Vm,Um,qm,Gm,Km,Xm,Zm,Ym,sy,ay,ly,cy,uy,fy,dy,py,hy);function tu(e){if(e==null)return 0;if(typeof e!="object")return nC(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let n=0;n<e.length;n++)t=(t^tu(e[n]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let n=0;n<r.length;n++)t=(t^nC(r[n]))*16777619,t=(t^tu(e[r[n]]))*16777619;return t>>>0}function nC(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function ru(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!=typeof t||typeof e!="object")return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!ru(e[o],t[o]))return!1;return!0}let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let i=r[o];if(!Object.prototype.hasOwnProperty.call(t,i)||!ru(e[i],t[i]))return!1}return!0}function my(e,t){if(t===void 0)return e;if(e===void 0)return t;if(t===null)return null;if(typeof t!="object"||Array.isArray(t))return t;if(typeof e!="object"||Array.isArray(e))return{...t};let r=!1,n={};for(let o in e)if(o in t){let i=my(e[o],t[o]);n[o]=i,i!==e[o]&&(r=!0)}else n[o]=e[o];for(let o in t)o in e||(n[o]=t[o],r=!0);return r?n:e}function yy(e,t,r){if(!t||typeof t!="object")return e;if(!e||typeof e!="object")return t;if(r||(r=new WeakSet),r.has(t))return e;r.add(t);for(let n in t){let o=t[n];o&&typeof o=="object"&&!Array.isArray(o)&&e[n]&&typeof e[n]=="object"&&!Array.isArray(e[n])?yy(e[n],o,r):e[n]=o}return e}function Nr(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function bo(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Fs(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Nr(t)}function oC(e){return e.split(`
68
- `).map(Nr).join(`
69
- `)}var iC={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",paddingBlock:"pbl",paddingInline:"pin",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginBlock:"mbl",marginInline:"min",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk",scrollBehavior:"sb",inset:"ins"};function sC(e,t){let r=iC[e]||Nr(e),n=Fs(t),o=`_${r}-${n}`,i=bo(e),s=`.${o}{${i}: ${t}}`;return`${o}
70
- ${s}`}var aC=e=>typeof e=="string"&&(e.indexOf("{")!==-1||e.indexOf("}")!==-1);function lC(e){let t=e.split("\0"),r=[],n=[];for(let o=0;o+1<t.length;o+=2){let i=t[o],s=t[o+1];if(!s||aC(s))continue;let a=iC[i]||Nr(i),l=Fs(s),c=`_${a}-${l}`,u=bo(i);r.push(c),n.push(`.${c}{${u}:${s}}`)}return r.join(" ")+"\0"+n.join(`
71
- `)}function cC(e,t){let r=e+t,n=`_c${Nr(r)}`,o=t.split("\0"),i="";for(let a=0;a+1<o.length;a+=2){let l=o[a],c=o[a+1];c&&(aC(c)||(i+=`${bo(l)}:${c};`))}let s;if(e.startsWith("@media"))s=`${e}{.${n}{${i}}}`;else if(e.startsWith(":")||e.startsWith("&")){let a=e.startsWith("&")?e.slice(1):e;s=`.${n}${a}{${i}}`}else e.includes("&")?s=`${e.replace("&",`.${n}`)}{${i}}`:s=`.${n} ${e}{${i}}`;return`${n}
72
- ${s}`}var by=null;function ou(e){by=e}var Mt={structuralHash:tu,deepEqual:ru,mergeStructural:my,overwriteDeep:yy,shortHash:Nr,toKebab:bo,sanitizeValue:Fs,batchShortHash:oC,atomicCssClass:sC,batchAtomicCss:lC,compoundCssClass:cC},uC=!1,nu=null;function fC(e){return nu||(nu=import(e||"@symbo.ls/wasm/pkg").then(t=>(t.structuralHash&&(Mt.structuralHash=t.structuralHash),t.deepEqual&&(Mt.deepEqual=t.deepEqual),t.mergeStructural&&(Mt.mergeStructural=t.mergeStructural),t.overwriteDeep&&(Mt.overwriteDeep=t.overwriteDeep),t.shortHash&&(Mt.shortHash=t.shortHash),t.toKebab&&(Mt.toKebab=t.toKebab),t.sanitizeValue&&(Mt.sanitizeValue=t.sanitizeValue),t.batchShortHash&&(Mt.batchShortHash=t.batchShortHash),t.atomicCssClass&&(Mt.atomicCssClass=t.atomicCssClass),t.batchAtomicCss&&(Mt.batchAtomicCss=t.batchAtomicCss),t.compoundCssClass&&(Mt.compoundCssClass=t.compoundCssClass),uC=!0,by&&t.batchAtomicCss&&by({batchAtomicCss:t.batchAtomicCss,compoundCssClass:t.compoundCssClass}),!0)).catch(t=>(console.debug("[smbls] WASM not available, using JS fallbacks:",t.message),!1)),nu)}function dC(){return uC}D();var Ds={};R(Ds,{CDN_PROVIDERS:()=>Pt,DOMQL_EVENTS:()=>yp,DOMQ_PROPERTIES:()=>_r,ENV:()=>Ip,HTML_TAGS:()=>to,METHODS:()=>Xn,METHODS_EXL:()=>pi,NODE_ENV:()=>Ot,OPTIONS:()=>Di,PACKAGE_MANAGER_TO_CDN:()=>Pr,PARSED_DOMQ_PROPERTIES:()=>di,PROPS_METHODS:()=>kr,STATE_METHODS:()=>nn,STATE_PROPERTIES:()=>mp,SVG_TAGS:()=>Lw,TYPES:()=>ii,UNIVERSAL_RESERVED_KEYS:()=>oc,addCaching:()=>Wl,addContext:()=>zl,addExtend:()=>oh,addExtends:()=>Je,addItemAfterEveryElement:()=>np,addProtoToArray:()=>li,addRef:()=>Ml,applyCSS:()=>xy,applyDependentState:()=>_h,applyEvent:()=>Kl,applyEventUpdate:()=>Xl,applyExtends:()=>Nw,applyProps:()=>Ri,arrayContainsOtherArray:()=>Zd,arraysEqual:()=>ip,arrayzeValue:()=>fn,buildImgSrcset:()=>dn,buildSourcesAndImg:()=>pn,cache:()=>Th,call:()=>qh,captureSnapshot:()=>Kh,checkForStateTypes:()=>vh,checkIfInherits:()=>Gl,checkIfStringIsInArray:()=>lp,clone:()=>vp,cloneAndMergeArrayExtend:()=>Si,cloneFunction:()=>Wp,concatAddExtends:()=>th,copyJavaScriptToClipboard:()=>pg,copyStringToClipboard:()=>dg,createBasedOnType:()=>Ll,createElement:()=>bh,createElementExtends:()=>Cl,createExtends:()=>ki,createExtendsFromKeys:()=>ro,createExtendsStack:()=>Ol,createIfConditionFlag:()=>Hp,createInheritedState:()=>xh,createKey:()=>xi,createNestedObject:()=>Ap,createNestedObjectByKeyPath:()=>Sh,createObjectWithoutPrototype:()=>yl,createParent:()=>Bl,createPath:()=>Nl,createProps:()=>Pi,createPropsStack:()=>Fl,createRoot:()=>yh,createScope:()=>Ch,createSnapshotId:()=>vi,customDecodeURIComponent:()=>gp,customEncodeURIComponent:()=>hp,cutArrayAfterValue:()=>tp,cutArrayBeforeValue:()=>ep,debounce:()=>wi,debounceOnContext:()=>Bp,decodeNewlines:()=>pp,deepClone:()=>me,deepContains:()=>kp,deepDefaults:()=>as,deepDestringifyFunctions:()=>Xt,deepExtend:()=>kl,deepMerge:()=>fe,deepMergeExtends:()=>Zt,deepStringifyFunctions:()=>hi,defineSetter:()=>Vh,destringifyGlobalScope:()=>mi,detectHeightOnInit:()=>Qh,detectInfiniteLoop:()=>Rp,document:()=>he,encodeNewlines:()=>dp,error:()=>un,excludeKeysFromObject:()=>$p,exec:()=>de,extendCachedRegistry:()=>rh,extendStackRegistry:()=>Ci,extractArrayExtend:()=>Ei,fetchLibraryData:()=>ac,fibonacciNumberByIndex:()=>eg,filterArrays:()=>sp,filterArraysFast:()=>ap,finalizeExtends:()=>Rl,findClosestNumber:()=>sc,findClosestNumberInFactory:()=>ug,findInheritedState:()=>ql,findKeyPosition:()=>up,flattenExtend:()=>no,formatDate:()=>Jh,generateHash:()=>wl,generateKey:()=>bi,generateMetaTags:()=>lg,get:()=>zh,getActiveRoute:()=>ry,getCDNUrl:()=>$t,getCapitalCaseKeys:()=>ah,getCdnProviderFromConfig:()=>so,getChildStateInKey:()=>Ul,getChildren:()=>Gi,getContext:()=>es,getCookie:()=>Kp,getDB:()=>is,getEmotionStylesheet:()=>yg,getExtendsInElement:()=>ih,getExtendsStack:()=>_i,getExtendsStackRegistry:()=>_l,getFrequencyInArray:()=>Yd,getHashedExtend:()=>Ai,getImportMapScript:()=>Yh,getInObjectByPath:()=>Op,getLocalStorage:()=>Zp,getNev:()=>Lp,getPageMetadata:()=>cg,getParentStateInKey:()=>Vl,getPath:()=>Ki,getQuery:()=>ss,getRef:()=>Hh,getRoot:()=>Yi,getRootContext:()=>Qi,getRootData:()=>Ji,getRootState:()=>Zi,getRootStateInKey:()=>Hl,getSpreadChildren:()=>lh,global:()=>Gd,hasFunction:()=>Yn,hasHandlerPlugin:()=>Jn,hasOwnProperty:()=>wp,inheritChildExtends:()=>El,inheritChildPropsExtends:()=>Al,inheritParentProps:()=>$i,inheritRecursiveChildExtends:()=>Tl,init:()=>vo,initProps:()=>hh,is:()=>Ze,isArray:()=>F,isBoolean:()=>dl,isContextComponent:()=>ch,isCyclic:()=>Pp,isDOMNode:()=>Xe,isDate:()=>hl,isDefined:()=>Ne,isDevelopment:()=>Ar,isEmpty:()=>gl,isEmptyObject:()=>Sp,isEqualDeep:()=>ml,isFunction:()=>O,isHtmlElement:()=>ni,isLocal:()=>Dp,isMethod:()=>Gh,isMobile:()=>qp,isNode:()=>or,isNot:()=>Xd,isNotProduction:()=>an,isNull:()=>pl,isNumber:()=>Kt,isObject:()=>_,isObjectLike:()=>re,isPhoto:()=>tg,isProduction:()=>Cr,isStaging:()=>Fp,isState:()=>wh,isString:()=>A,isStringFunction:()=>zp,isTest:()=>vl,isTesting:()=>jp,isUndefined:()=>_e,isUniversallyReservedKey:()=>Xh,isValidHtmlTag:()=>Jp,joinArrays:()=>qn,jointStacks:()=>nh,keys:()=>rc,lastLevel:()=>eu,lastPathname:()=>Qc,loadCssFile:()=>ig,loadJavascript:()=>sg,loadJavascriptFile:()=>rg,loadJavascriptFileEmbedSync:()=>og,loadJavascriptFileSync:()=>ng,loadRemoteCSS:()=>ag,loadRemoteScript:()=>ao,log:()=>Uh,logGroupIf:()=>Up,logIf:()=>Vp,lookdown:()=>Bh,lookdownAll:()=>Nh,lookup:()=>Mh,lowercaseFirstLetter:()=>rn,makeObjectWithoutPrototype:()=>_p,map:()=>bp,mapStringsWithContextComponents:()=>Ti,matchRoute:()=>Qm,matchesComponentNaming:()=>Yt,memoize:()=>Np,merge:()=>be,mergeSharedLibraries:()=>ls,nextElement:()=>rs,normalizeLibraryKey:()=>lo,objectToString:()=>gi,objectizeStringProperty:()=>Oi,overwrite:()=>yi,overwriteDeep:()=>Ye,overwriteShallow:()=>sn,overwriteState:()=>kh,parse:()=>nc,parseDeep:()=>Ui,parseQuery:()=>ey,parseRoutePattern:()=>Jm,pickupElementFromProps:()=>Il,pickupPropsFromElement:()=>$l,previousElement:()=>ns,propExists:()=>dh,propertizeElement:()=>jl,propertizeUpdate:()=>fh,reinit:()=>vy,remove:()=>mS,removeChars:()=>hg,removeCookie:()=>Xp,removeDuplicateProps:()=>ji,removeDuplicatesInArray:()=>Gn,removeFromArray:()=>Jd,removeFromObject:()=>Cp,removeNestedKeyByPath:()=>Ep,removeValueFromArray:()=>ai,removeValueFromArrayAll:()=>rp,reorderArrayByValues:()=>op,replaceLiteralsWithObjectFields:()=>tn,replaceOctalEscapeSequences:()=>fp,resolveAsset:()=>ye,resolveHandler:()=>Qn,resolveSharedLibraries:()=>fg,returnValueAsText:()=>Dl,router:()=>nt,runGuards:()=>ty,runPluginHook:()=>eo,scratchSystem:()=>vs,scratchUtils:()=>bn,self:()=>Kd,set:()=>po,setActiveRootState:()=>Xi,setCookie:()=>Gp,setHashedExtend:()=>Sl,setInObjectByPath:()=>Tp,setLocalStorage:()=>Yp,setNodeStyles:()=>tc,setProps:()=>Wh,setPropsPrototype:()=>Ii,spotByPath:()=>qi,srcsetFor:()=>co,stringIncludesAny:()=>ui,stringToObject:()=>xp,swapItemsInArray:()=>Qd,syncProps:()=>Fi,toCamelCase:()=>cs,toDashCase:()=>us,toDescriptionCase:()=>mg,toTitleCase:()=>gg,toggleFullscreen:()=>Zh,triggerEventOn:()=>Er,triggerEventOnUpdate:()=>Ah,trimStringFromSymbols:()=>cp,unstackArrayOfObjects:()=>si,update:()=>ph,updateProps:()=>gh,variables:()=>os,verbose:()=>io,warn:()=>ts,window:()=>C});D();D();var LM=P(),pC=(e=LM,t)=>{let r=_(t.localFile)?t.localFile:{},n=me(r.designSystem||{});return fe(e,n)},MM={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},vo=(e,t=MM)=>{let r=pC(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,i=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(i=m)}let s=po({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:i,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});s&&(s.scopeSelector=n);let a=cc(s.font,s.files),l=s.useReset,c=s.useVariable,u=s.useFontImport,d=s.useSvgSprite,f=e.svg,p=s.useIconSprite,h=e.icons;if(u&&Ce(a),c&&(Ce({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS)){let m={};for(let y in s.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:s.CSS_MEDIA_VARS[y]}:m[y]=s.CSS_MEDIA_VARS[y];Ce(m)}l&&Ce(s.reset);let g=s.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];Ce(m)}return(f||d)&&Lc(s.svg,{document:t.document}),(h||p)&&Bc(s.icons,{document:t.document}),s},iu={},vy=(e,t=iu)=>{let r=pC(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,i=po({verbose:!1,...r});if(!t.preventInject){if(Ce({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS){let s={};for(let a in i.CSS_MEDIA_VARS)a.startsWith("@media")?s[a]={[o]:i.CSS_MEDIA_VARS[a]}:s[a]=i.CSS_MEDIA_VARS[a];Ce(s)}Ce(i.reset)}return i},xy=(e,t=iu)=>{Ce(e)},BM=(e,t=iu)=>{let r=t.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(Ce({[r]:e.CSS_VARS}),e.CSS_MEDIA_VARS){let o={};for(let i in e.CSS_MEDIA_VARS)i.startsWith("@media")?o[i]={[n]:e.CSS_MEDIA_VARS[i]}:o[i]=e.CSS_MEDIA_VARS[i];Ce(o)}};var NM=(e,t=iu)=>{};D();var hC=e=>!e||e==="srcdoc"||e==="about:srcdoc"||e==="blank"||e==="about:blank"?"/":e,wy={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Ls=(e,t)=>{if(!t)return e;let r=Array.isArray(t)?t:t.split("."),n=e;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},gC=(e,t)=>{if(t.router===!1)return;t.router===!0?t.router=wy:t.router=be(t.router||{},wy);let r=t.router,n=async(i,s)=>{let a=i.context?.window||C;if(!a.location)return;let{pathname:l,search:c,hash:u}=a.location;l=hC(l);let d=l+c+u,f=i;if(r.customRouterElement){let p=Ls(i,r.customRouterElement);p&&(f=p,i.routes&&(f.routes=i.routes))}f.routes&&await nt(d,f,{},{initialRender:!0,pushState:!1})},o=!_e(e.onRenderRouter);return r&&r.initRouter&&!o&&(e.onRenderRouter=n),zM(t,r),r},Sy=(e,t)=>{if(t.router===!1)return;let r=t.router||wy;if(!r.popState)return;let n=t.utils&&t.utils.router?t.utils.router:nt,o=t.window||C,i=async s=>{let{pathname:a,search:l,hash:c}=o.location;a=hC(a);let u=a+l+c,d=e;if(r.customRouterElement){let f=Ls(e,r.customRouterElement);f&&(d=f,e.routes&&(d.routes=e.routes))}await d.call("router",u,d,{},{pushState:!1,scrollToTop:!1,level:0,event:s})};o.addEventListener("popstate",i),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>o.removeEventListener("popstate",i))},zM=(e,t)=>{let{components:r}=e;if(t&&t.injectRouterInLinkComponent)return fe(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};D();var _y=C&&C.location?C.location.host.includes("dev."):Ar(),mC=_y?"http://localhost:8080/get":"https://api.symbols.app/get",WM={endpoint:mC},yC=async(e,t=WM)=>{let r=t.endpoint||mC,n=t.serviceRoute?F(t.serviceRoute)?t.serviceRoute.map(i=>i.toLowerCase()+"=true").join("&"):t.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":e,"X-Metadata":t.metadata}}),await o.json()}catch(i){if(O(t.onError))return t.onError(i);console.error(i)}},HM=async(e,t)=>{let{editor:r}=t;if(r&&r.remote){let n=await yC(e,r),o=_y||t.isDevelopment?Xt(n):Xt(n.releases[0]);r.serviceRoute?F(r.serviceRoute)?r.serviceRoute.forEach(i=>{Ye(t[i],o[i.toLowerCase()])}):Ye(t[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(i=>{Ye(t[i],o[i.toLowerCase()])})}return t},VM=async(e,t,r)=>{let{editor:n}=t;if(n&&n.remote){let o=await yC(e,n),i=_y||t.isDevelopment?Xt(o):Xt(o.releases[0]);r(i)}},bC=async(e,t)=>{if(e&&t.editor)try{t.editor.async||await HM(e,t)}catch(r){console.error(r)}},vC=(e,t,r,n)=>{if(t&&r.editor)try{r.editor.async&&VM(t,r,n||(o=>{let i=o.designSystem;_(i)&&r.utils.init(i),_(o.state)&&e.state.set(o.state)}))}catch(o){console.error(o)}};var Ms=e=>{if(!e||e.__destroyed)return!1;let t=e.context;if(!t)return e.__destroyed=!0,!1;if(Array.isArray(t.__teardowns)){for(let r of t.__teardowns)try{r()}catch(n){console.error("[smbls] destroy teardown error:",n)}t.__teardowns.length=0}try{An(e)}catch(r){console.error("[smbls] dispose error:",r)}if(t.fetch&&t.fetch.__resolved&&delete t.fetch.__resolved,t.fetch&&t.fetch.__resolving&&delete t.fetch.__resolving,t.db&&t.db.__resolved&&delete t.db.__resolved,t.db&&t.db.__resolving&&delete t.db.__resolving,t.analyze?.destroy)try{t.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return e.__destroyed=!0,!0};D();var UM={title:{tag:"title"},description:{tag:"meta",attr:"name",key:"description"},keywords:{tag:"meta",attr:"name",key:"keywords"},robots:{tag:"meta",attr:"name",key:"robots"},author:{tag:"meta",attr:"name",key:"author"},canonical:{tag:"link",attr:"rel",key:"canonical",valueAttr:"href"},image:{tag:"meta",attr:"property",key:"og:image"},url:{tag:"meta",attr:"property",key:"og:url"},siteName:{tag:"meta",attr:"property",key:"og:site_name"},type:{tag:"meta",attr:"property",key:"og:type"},locale:{tag:"meta",attr:"property",key:"og:locale"},"og:title":{tag:"meta",attr:"property",key:"og:title"},"og:description":{tag:"meta",attr:"property",key:"og:description"},"og:image":{tag:"meta",attr:"property",key:"og:image"},"og:url":{tag:"meta",attr:"property",key:"og:url"},"og:type":{tag:"meta",attr:"property",key:"og:type"},"og:site_name":{tag:"meta",attr:"property",key:"og:site_name"},"og:locale":{tag:"meta",attr:"property",key:"og:locale"},"twitter:card":{tag:"meta",attr:"name",key:"twitter:card"},"twitter:title":{tag:"meta",attr:"name",key:"twitter:title"},"twitter:description":{tag:"meta",attr:"name",key:"twitter:description"},"twitter:image":{tag:"meta",attr:"name",key:"twitter:image"},"twitter:site":{tag:"meta",attr:"name",key:"twitter:site"},"theme-color":{tag:"meta",attr:"name",key:"theme-color"}},qM=e=>{if(e.tag==="link")return`link[${e.attr}="${e.key}"]`;if(e.tag&&!e.attr&&!e.key)return e.tag;if(e.tag&&e.attr&&e.key)return`${e.tag}[${e.attr}="${e.key}"]`},su=(e,t,r)=>{if(!e)return{};let n=O(e)?de(e,t,r):{...e};if(!_(n))return{};for(let o in n){let i=n[o];O(i)&&(i=de(i,t,r)),A(i)&&i.includes("{{")&&t?.call&&(i=t.call("replaceLiteralsWithObjectFields",i,r)),n[o]=i}return n};var GM=(e,t)=>{let r=t.createElement(e.tag);return e.attr&&r.setAttribute(e.attr,e.key),(t.head||t.querySelector("head")).appendChild(r),r},au=(e,t)=>{if(!(!_(e)||!t))for(let r in e){let n=e[r];if(n==null)continue;let o=UM[r];if(!o)continue;let i=qM(o),s=t.querySelector(i)||GM(o,t);s&&(r==="title"?s.textContent=n:o.valueAttr?s.setAttribute(o.valueAttr,n):s.setAttribute("content",n))}};var xC={name:"helmet",create(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=su(t,e,e.state);au(n,r)},update(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=su(t,e,e.state);au(n,r)}};cn();var wC=(e,t,r,n)=>{e&&Hi(e,t,r,n)},SC=(e,t,r)=>{if(!e)return;let n=t.context?.document||typeof document<"u"&&document;if(!n)return;let o=su(e,t,r);au(o,n)},_C=async(e,t)=>{if(!e)return;let r={tag:"fragment",...e},n=async()=>{await t.set(r,{preventDefineUpdate:"$router"})};return t.lazyLoad?window.requestAnimationFrame(n):await n(),r},xo={routes:e=>e,metadata:SC,fetch:wC,$router:_C},kC=(e={})=>{let t={routes:r=>r};return e.metadata!==!1&&(t.metadata=SC),e.fetch!==!1&&(t.fetch=wC),e.router!==!1&&(t.$router=_C),t};var ky={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},lu={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},cu={...ky,router:lu},KM={state:{},pages:{},components:{},router:lu,define:xo},zr=KM;var hu={};R(hu,{A:()=>FA,AssetPicture:()=>WC,Audio:()=>UC,Avatar:()=>ZA,B:()=>uA,Block:()=>CC,Box:()=>pu,Br:()=>hA,Button:()=>MA,ButtonSet:()=>WA,COMPONENTS:()=>So,Caption:()=>tA,Checkbox:()=>kA,CheckboxHgroup:()=>CA,Circle:()=>BC,CircleButton:()=>NA,Clickable:()=>DC,Data:()=>dA,Dialog:()=>VA,DialogFooter:()=>qA,DialogHeader:()=>UA,Dropdown:()=>JA,DropdownList:()=>QA,DropdownParent:()=>eE,DropdownParentFocus:()=>tE,DropdownSiblingFocus:()=>rE,FileIcon:()=>jA,Flex:()=>EC,Focusable:()=>LC,FocusableComponent:()=>MC,Footnote:()=>cA,Form:()=>IC,Grid:()=>OC,Gutter:()=>PC,H1:()=>KC,H2:()=>XC,H3:()=>ZC,H4:()=>YC,H5:()=>JC,H6:()=>QC,Headline:()=>aA,Hgroup:()=>vA,HgroupButton:()=>wA,HgroupRows:()=>xA,Hoverable:()=>FC,Hr:()=>pA,I:()=>fA,Icon:()=>$A,IconButton:()=>HA,IconText:()=>IA,Iframe:()=>jC,Img:()=>$C,Inline:()=>AC,InlineFlex:()=>TC,InlineGrid:()=>RC,Input:()=>SA,Italic:()=>iA,KangorooButton:()=>zA,Li:()=>gA,Link:()=>Ky,Notification:()=>nE,NumberInput:()=>_A,Ol:()=>yA,P:()=>eA,Picture:()=>zC,Radio:()=>AA,RadioHgroup:()=>EA,Range:()=>YA,RouteLink:()=>DA,RouterLink:()=>Xy,SHAPES:()=>fu,Select:()=>LA,Shape:()=>Ry,Span:()=>GC,SquareButton:()=>BA,Strong:()=>rA,Subhead:()=>lA,Svg:()=>HC,Text:()=>qC,Textarea:()=>RA,TextareaWithButton:()=>PA,Theme:()=>NC,Title:()=>sA,Toggle:()=>TA,ToggleHgroup:()=>OA,Tooltip:()=>GA,TooltipHidden:()=>KA,TooltipParent:()=>XA,U:()=>nA,Ul:()=>mA,Underline:()=>oA,Video:()=>VC,depth:()=>du,getSystemGlobalTheme:()=>Bs});var Cy={};R(Cy,{Block:()=>CC,Flex:()=>EC,Grid:()=>OC,Gutter:()=>PC,Inline:()=>AC,InlineFlex:()=>TC,InlineGrid:()=>RC});var CC={display:"block"},AC={display:"inline"},EC={display:"flex"},TC={display:"inline-flex"},OC={display:"grid"},RC={display:"inline-grid"},PC={boxSize:"C1"};var Ay={};R(Ay,{Img:()=>$C});D();var $C={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=ye(e);return t&&t.src||e.src},srcset:e=>{let t=ye(e);return(t?dn(t):"")||e.srcset}}};var Ey={};R(Ey,{Form:()=>IC});var IC={tag:"form"};var Ty={};R(Ty,{Iframe:()=>jC});var jC={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Oy={};R(Oy,{Clickable:()=>DC,Focusable:()=>LC,FocusableComponent:()=>MC,Hoverable:()=>FC});var XM={appearance:"none",cursor:"pointer",fontFamily:"inherit"},FC={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},DC={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},LC={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},MC={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:XM};var Iy={};R(Iy,{Picture:()=>zC});var $y={};R($y,{Theme:()=>NC,getSystemGlobalTheme:()=>Bs});var Py={};R(Py,{Circle:()=>BC,SHAPES:()=>fu,Shape:()=>Ry,default:()=>ZM,depth:()=>du});D();var wt=P(),du={4:{boxShadow:`rgba(0,0,0,.10) 0 2${wt.unit.default} 4${wt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${wt.unit.default} 6${wt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${wt.unit.default} 10${wt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${wt.unit.default} 16${wt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${wt.unit.default} 26${wt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${wt.unit.default} 42${wt.unit.default}`}},wo=e=>pe(e.shapeDirectionColor)||pe(e.borderColor)||pe(e.backgroundColor)||pe(e.background),uu=e=>{let t=En.transition(e.transition,e);return t&&t.transition},fu={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:wo(e),transition:uu(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:wo(e),transition:uu(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:wo(e),transition:uu(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:uu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${wo(e)} 25%, transparent 25%), linear-gradient(315deg, ${wo(e)} 25%, transparent 25%)`},"&:after":{background:wo(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},Ry={deps:{exec:de,getSpacingBasedOnRatio:ht,getMediaColor:Fe},classlist:{shape:e=>e.deps.exec(fu[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=fu[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},BC={round:"100%"},ZM=Ry;D();var Bs=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},NC={deps:{depth:du},classlist:{depth:e=>!_e(e.depth)&&e.deps.depth[e.depth]}};var zC={deps:{getSystemGlobalTheme:Bs},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Bs},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,i=n.getSystemGlobalTheme(e),s=(e.media||t).slice(1);return s===i?"(min-width: 0px)":s==="dark"||s==="light"?"(max-width: 0px)":o[s]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}};var jy={};R(jy,{AssetPicture:()=>WC});D();var WC={tag:"picture",children:e=>{let t=ye(e);if(t)return pn(t,e.alt)}};var Fy={};R(Fy,{Svg:()=>HC});var HC={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,i=e.spriteId||r&&r.useSvgSprite,s=e.call("exec",e.src,e);if(!i&&s)return s;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[s])return a(s);let c=Symbol.for(s),u=o[c];if(u&&o[u])return a(u);if(!s)return a("");if(typeof s=="string"&&!s.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${s}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${s}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<s.length;f++)d=(d<<5)-d+s.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:s}},{document:t.document,emotion:t.emotion}),a(u)}};var Dy={};R(Dy,{Video:()=>VC});D();var VC={tag:"video",controls:!0,attr:{src:e=>{let t=ye(e);return t&&t.src||e.src}},children:e=>{let t=ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Ly={};R(Ly,{Audio:()=>UC});D();var UC={tag:"audio",controls:!0,attr:{src:e=>{let t=ye(e);return t&&t.src||e.src}},children:e=>{let t=ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var My={};R(My,{B:()=>uA,Caption:()=>tA,Data:()=>dA,Footnote:()=>cA,H1:()=>KC,H2:()=>XC,H3:()=>ZC,H4:()=>YC,H5:()=>JC,H6:()=>QC,Headline:()=>aA,I:()=>fA,Italic:()=>iA,P:()=>eA,Span:()=>GC,Strong:()=>rA,Subhead:()=>lA,Text:()=>qC,Title:()=>sA,U:()=>nA,Underline:()=>oA});var qC={},GC={tag:"span"},KC={tag:"h1"},XC={tag:"h2"},ZC={tag:"h3"},YC={tag:"h4"},JC={tag:"h5"},QC={tag:"h6"},eA={tag:"p"},tA={tag:"caption"},rA={tag:"strong",fontWeight:"700"},nA={tag:"u"},oA={tag:"u"},iA={tag:"i"},sA={},aA={tag:"h6",fontSize:"B",fontWeight:500},lA={tag:"span",fontSize:"Z1"},cA={tag:"span",fontSize:"Z"},uA={tag:"b"},fA={tag:"i"},dA={tag:"data"};var By={};R(By,{Box:()=>pu,Br:()=>hA,Hr:()=>pA,Li:()=>gA,Ol:()=>yA,Ul:()=>mA});var YM=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Ve(t,e,{unpack:!1});r.__class=n},pu={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:YM},pA={tag:"hr",margin:"C1 0"},hA={tag:"br"},gA={tag:"li"},mA={tag:"ul",childExtends:{extends:"Li"}},yA={tag:"ol",childExtends:{extends:"Li"}};var Ny={};R(Ny,{Hgroup:()=>vA,HgroupButton:()=>wA,HgroupRows:()=>xA});var bA=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},vA={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:bA,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:bA,margin:"0",color:"paragraph"}},xA={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},wA={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var zy={};R(zy,{Input:()=>SA});var SA={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}};var Wy={};R(Wy,{NumberInput:()=>_A});var _A={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}};var Hy={};R(Hy,{Checkbox:()=>kA,CheckboxHgroup:()=>CA});var kA={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},CA={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Vy={};R(Vy,{Radio:()=>AA,RadioHgroup:()=>EA});var AA={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},EA={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Uy={};R(Uy,{Toggle:()=>TA,ToggleHgroup:()=>OA});var TA={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},OA={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var qy={};R(qy,{Textarea:()=>RA,TextareaWithButton:()=>PA});var RA={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},PA={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var Gy={};R(Gy,{FileIcon:()=>jA,Icon:()=>$A,IconText:()=>IA});var $A={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:i,verbose:s}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=v=>{let S=v[".isActive"];if(S)return v.call("exec",S.name||S.icon)},c=(v,S,k)=>{let{semanticIcons:E}=k&&k.designSystem,{toCamelCase:T}=k&&k.utils,w=u(v,S),K=T(w).split(/([a-z])([A-Z])/g),Q=K[1]?K[0]:w.split(".")[0].split(" ")[0],W=E&&E[Q];if(W){let H=w.includes(".")?"sfsymbols."+w.split(".").slice(1).join("."):"sfsymbols";return w=W[H]||W[w.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${w}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(v,S)=>{let{key:k}=v,E=v.call("exec",v.name||v.icon||k,v);return v.call("isString",E)&&E.includes("{{")&&(E=v.call("replaceLiteralsWithObjectFields",E)),v.call("isString",E)?E:k},d=u(e,t);if(d.includes(" ")){let v=d.split(" ");d=v[0]+v.slice(1).map(S=>S.charAt(0).toUpperCase()+S.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:s&&e.warn("Can't find icon:",d,y);let b=o[y],x=n&&n.src||e.src;Object.assign(e,{spriteId:i&&y,src:b||x||o.noIcon})},attr:{viewBox:"0 0 24 24"}},IA={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},jA={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Zy={};R(Zy,{A:()=>FA,Link:()=>Ky,RouteLink:()=>DA,RouterLink:()=>Xy});var JM=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:i,stopPropagation:s}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),s&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||nt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",i)?i:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},Ky={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Lt(e,e.href)||Lt(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:JM},FA={extends:"Link"},Xy={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:i,stopPropagation:s}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),s&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||nt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",i)?i:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},DA={extends:[Ky,Xy]};var Yy={};R(Yy,{Select:()=>LA});var LA={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}};var Jy={};R(Jy,{Button:()=>MA,ButtonSet:()=>WA,CircleButton:()=>NA,IconButton:()=>HA,KangorooButton:()=>zA,SquareButton:()=>BA});var MA={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},BA={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},NA={extends:"SquareButton",round:"C"},zA={extends:"Button",childExtends:"IconText"},WA={tag:"nav",display:"flex",childExtends:"SquareButton"},HA={extends:["SquareButton","ClickableItem"],round:"Z"};var Qy={};R(Qy,{Dialog:()=>VA,DialogFooter:()=>qA,DialogHeader:()=>UA});var VA={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},UA={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},qA={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};var eb={};R(eb,{Tooltip:()=>GA,TooltipHidden:()=>KA,TooltipParent:()=>XA});D();var GA={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>Ne(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},KA={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},XA={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var tb={};R(tb,{Avatar:()=>ZA});var ZA={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`};var rb={};R(rb,{Range:()=>YA});var YA={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:$r("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:$r("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}};var nb={};R(nb,{Dropdown:()=>JA,DropdownList:()=>QA,DropdownParent:()=>eE,DropdownParentFocus:()=>tE,DropdownSiblingFocus:()=>rE});var JA={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},QA={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},eE={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},tE={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},rE={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}};var ob={};R(ob,{Notification:()=>nE});var nE={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var So=Object.assign({},Cy,Ay,Ey,Ty,Oy,Iy,jy,Fy,Py,Dy,Ly,$y,My,By,Ny,zy,Wy,Hy,Vy,Uy,qy,Gy,Zy,Yy,Jy,Qy,eb,tb,rb,nb,ob);D();D();var oE=(e,t)=>re(e.extends)?e.extends:[];D();var lE=e=>{let t=typeof window<"u"?window:globalThis||{};t.document||(t.document={body:{}});let r=typeof document<"u"?document:t.document;e.document=e.document||r;let n=e.window;return n&&n!==t&&typeof n.URL!="function"?(typeof console<"u"&&console.warn&&console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub"),e.window=t):e.window=n||t,e.window},iE=(e="smbls")=>{let t={};for(let r in So)Object.prototype.hasOwnProperty.call(So,r)&&(Yt(r)?t[`smbls.${r}`]=So[r]:t[r]=So[r]);return t},cE=e=>e.components?{...iE(),...e.components}:iE(),uE=e=>({...Ds,...ny,...bn,...e.utils,...e.snippets,...e.functions}),fE=e=>({...e.methods||{},require:e.utils.require,requireOnDemand:e.utils.requireOnDemand,router:e.utils.router}),sE={},dE=async({dependencies:e,dependenciesOnDemand:t,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:i,symbolsConfig:s})=>{if(o||(o=Pr[i]||so(s)||"esmsh"),!e)return null;let a=!1;for(let l in e){a=!0;break}if(!a)return null;for(let l in e){let c=e[l];if(t&&t[l])continue;let u=Ar()&&n?`?${Math.random()}`:"",d=$t(l,c,o)+u;try{if(sE[l])continue;sE[l]=!0,await Promise.race([ao(d,{document:r,type:"module"}),new Promise((f,p)=>setTimeout(()=>p(new Error(`Timeout loading ${l}`)),1e4))])}catch(f){if(console.error(`Failed to load ${l} from ${o}:`,f),o!=="symbols")try{let p=$t(l,c,"symbols")+u;await Promise.race([ao(p,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${l}`)),2e4))]),console.log(`Successfully loaded ${l} from fallback (symbols.ls)`)}catch(p){console.error(`Failed to load ${l} from fallback:`,p)}}}return e},pE=async(e,t)=>{let r=t.window||window,n=t.cdnProvider||so(t.symbolsConfig)||"esmsh",o=async s=>async(a,l)=>{let u=(s.window||window).packages[a];return typeof u=="function"?u():u},i=async s=>async(a,l=n)=>{let{dependenciesOnDemand:c}=s,u=s.document||document,d=s.window||window;if(!d.packages[a]){let f=Ar()?`?${Math.random()}`:"";if(c&&c[a]){let p=c[a],h=$t(a,p,l)+f;try{await s.utils.loadRemoteScript(h,{window:d,document:u})}catch(g){if(console.error(`Failed to load ${a} from ${l}:`,g),l!=="symbols"){let m=$t(a,p,"symbols")+f;await s.utils.loadRemoteScript(m,{window:d,document:u})}}}else{let p=$t(a,"latest",l)+f;try{await s.utils.loadRemoteScript(p,{window:d,document:u})}catch(h){if(console.error(`Failed to load ${a} from ${l}:`,h),l!=="symbols"){let g=$t(a,"latest","symbols")+f;await s.utils.loadRemoteScript(g,{window:d,document:u})}}d.packages[a]="loadedOnDeman"}}return await d.require(a,l)};r.packages?r.packages=be(r.packages,e):r.packages=e,r.require||(t.utils.require=await o(t),r.require=t.utils.require),r.requireOnDemand||(t.utils.requireOnDemand=await i(t),r.requireOnDemand=t.utils.requireOnDemand)},QM=/\s+/g,hE=(e,t)=>typeof e=="function"?e(t,t?.state,t?.context):e,eB=(e,t)=>{let r="";for(let n in e){let o=e[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${hE(o,t)}`)}return r},tB=(e,t,r)=>{if(!e)return;let{key:n}=t;e===!0&&(e=t.classlist={key:n}),typeof e=="string"&&(e=t.classlist={default:e}),e!==null&&typeof e=="object"&&!Array.isArray(e)&&(e=eB(e,t));let o=e.replace(QM," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},rB=()=>(e,t,r)=>{let n=hE(e,t);if(e){let{__ref:o}=t;o.__class.style=n}gE()(t.classlist,t,t.state,!0)},gE=()=>(e,t,r,n)=>{if(t.style&&!n)return;let{__ref:o}=t,{__class:i,__classNames:s}=o;if(!(e===null||typeof e!="object"||Array.isArray(e))){t.class&&(s.classProps=t.class),t.attr?.class&&(s.class=t.attr.class);for(let a in i){let l=i[a];if(!l){delete s[a];continue}let c;typeof l=="string"||typeof l=="number"?c=l:typeof l=="boolean"?c=t.key:c=Lr(l),s[a]=c}for(let a in s)a==="classProps"||a==="class"||i[a]===void 0&&delete s[a];t.node&&tB(s,t,t.node)}},nB=()=>({style:rB(),classlist:gE()}),oB=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],aE=!1,mE=(e,t)=>{let r=t.document||(t.parent&&t.parent.documentElement?t.parent:null)||document,n=t.initOptions||{},o=t.registry||nB(),i=t.designSystem?fe(me(t.designSystem),Is):me(Is),s={};for(let p of oB)t[p]!==void 0&&(s[p]=t[p]);let a,l=aE&&!t.skipDesignSystemInit,c=l?`[data-smbls-app="${e}"]`:":root";t.scopeSelector=c;let u=c===":root"?":root:not([data-theme])":`${c}:not([data-theme])`;if(t.skipDesignSystemInit){if(a=P(e)||P(),a&&(a.document=r),a?.CSS_VARS){Pe(a);try{if(Ce({[c]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let p={};for(let h in a.CSS_MEDIA_VARS)h.startsWith("@media")?p[h]={[u]:a.CSS_MEDIA_VARS[h]}:p[h]=a.CSS_MEDIA_VARS[h];Ce(p)}}finally{ke()}}}else if(l){let p=Rg(e,i,{cleanBase:!0});for(let g in s)p[g]=s[g];p.document=r;let h=e.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);t.cssPrefix=h,p.varPrefix=h,Pe(p);try{a=vo(p,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...cu,...s,...n})}finally{ke()}}else{let p=P();p&&(p.document=r),a=vo(i,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...cu,...s,...n}),a&&a!==p&&(a.document=r),aE=!0}let d=a?.CONFIG||a,f=d?.font;if(f){Pe(d);try{for(let p in f){let h=f[p];if(!h?.fontFace)continue;let g=Array.isArray(h.fontFace)?h.fontFace:[h.fontFace];for(let m of g)typeof m=="string"&&m.includes("font-family")&&Ce(`@font-face { ${m} }`)}}finally{ke()}}return[a,o]},yE=(e,t)=>{let r={};t.state&&fe(r,t.state),e&&e.state&&fe(r,e.state);let n=t.polyglot;if(n?.translations){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(n.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let i=o||r.lang||n.defaultLang||"en";o&&o!==r.lang&&(r.lang=o);let s=n.translations[i];if(s&&typeof s=="object")for(let l in s)r[l]=s[l];let a=new Set(n.languages||[]);for(let l in n.translations)!a.has(l)&&r[l]===void 0&&(r[l]=n.translations[l])}return r.isRootState=!0,me(r)},bE=(e,t)=>{_(e.routes)&&_(t.pages)&&be(e.routes,t.pages);let r=e.routes||t.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n==="index"?"":n;r["/"+o]=r[n],delete r[n]}return r},vE=e=>{ls(e,e.sharedLibraries)};D();var wE="smbls_lang",iB="smbls_t_",sB="smbls_tv_",_o={get(e){try{return window?.localStorage.getItem(e)}catch{return null}},set(e,t){try{window?.localStorage.setItem(e,t)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(e){try{window?.localStorage.removeItem(e)}catch(t){console.warn("[polyglot] localStorage unavailable:",t.message)}}},Ns={};function zs(){let e=this?.context,t=e?.polyglot;return(this?.state?.root||e?.state?.root)?.lang||t?.defaultLang||"en"}function mu(){let e=this?.context?.polyglot;return e?e.languages?e.languages:e.translations?Object.keys(e.translations):[]:[]}var gu=(e,t)=>{if(!e||!t)return;if(e[t]!==void 0)return e[t];if(t.indexOf(".")===-1)return;let r=t.split("."),n=e;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},xE=(e,t,r)=>{let n=t.lastIndexOf(".");if(n===-1)return e[t+"_"+r];let o=gu(e,t.substring(0,n));if(o!=null)return o[t.substring(n+1)+"_"+r]};function yu(e,t){if(!e)return"";let r=this?.context,n=r?.polyglot,o=t||this.call("getActiveLang"),i=this?.state;if(i){let c=xE(i,e,o);if(c!==void 0)return c}if(n?.translations){let c=n.translations[o];if(c){let u=gu(c,e);if(u!==void 0)return u}}let a=(i?.root||r?.state?.root)?.translations;if(a){let c=a[o];if(c){let u=gu(c,e);if(u!==void 0)return u}}let l=n?.defaultLang||"en";if(i){let c=xE(i,e,l);if(c!==void 0)return c}if(n?.translations){let c=n.translations[l];if(c){let u=gu(c,e);if(u!==void 0)return u}}return e}async function bu(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!r||!n)return;let o=r.storagePrefix||iB,i=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):sB);if(r.translations&&r.translations[e]&&!r.fetch||!r.fetch||r._fetchFailed?.[e])return;if(!n.translations?.[e]){let l=_o.get(o+e);if(l)try{let c=JSON.parse(l),u={translations:{...n.translations||{}}};u.translations[e]=c,n.update&&n.update(u)}catch(c){console.warn("[polyglot] Failed to apply language update:",c.message)}}let s=(r.storagePrefix||"smbls")+":"+e;if(Ns[s])return Ns[s];let a=this;return Ns[s]=(async()=>{try{let l=r.fetch,c=parseInt(_o.get(i+e),10)||0,u,d,f;if(O(l)){let h=await l(e,c,a);if(!h||h.changed===!1)return;u=h.translations||h.data||h,d=h.version||0,f=!0}else if(_(l)){let h=a.getDB||(()=>t.fetch),g=O(h)?await h.call(a):t.fetch;if(!g)return;let m=l.rpc||l.from||"get_translations_if_changed",y={p_lang:e,p_cached_version:c,...l.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[e]=!0,b.error;let x=b.data;if(!x||!x.changed)return;u=x.translations||{},d=x.version||0,f=!0}else return;if(!f||!u)return;_o.set(o+e,JSON.stringify(u)),d&&_o.set(i+e,String(d));let p={translations:{...n.translations||{}}};p.translations[e]=u,n.update&&n.update(p)}catch(l){if(r.verbose!==!1){let c=l?.message||l?.details||(typeof l=="object"?JSON.stringify(l):String(l));console.warn("[polyglot] Failed to load translations for",e,"-",c)}}finally{delete Ns[s]}})(),Ns[s]}async function vu(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!n||this.call("getActiveLang")===e)return;let o=r?.storageLangKey||wE;_o.set(o,e),r?.fetch&&await this.call("loadTranslations",e),t?.state&&(t.state.lang=e);let i=r?.translations?.[e],s={lang:e};if(i&&typeof i=="object")for(let l in i){let c=i[l];(Array.isArray(c)||typeof c=="string"||typeof c=="number")&&(s[l]=c)}if(n.update&&n.update(s),i&&typeof i=="object")for(let l in i){let c=i[l];if(c&&typeof c=="object"&&!Array.isArray(c)&&n[l]&&typeof n[l]=="object"&&!Array.isArray(n[l]))for(let u in c)n[l][u]=c[u]}let a=this?.context?.document||globalThis.document;if(a&&i){let l=a.querySelectorAll("[data-key]");for(let c of l){let u=c.ref;if(!u)continue;let d=u.__ref?.__exec?.text;if(typeof d=="string"&&d.includes("{{"))try{let f=u.call("replaceLiteralsWithObjectFields",d,u.state);f!=null&&c.textContent!==f&&(c.textContent=f)}catch{}}}}async function xu(e,t,r){let n=this?.context,o=n?.polyglot,i=this?.state?.root||n?.state?.root;if(i?.translations?.[t]&&(i.translations[t][e]=r),o?.translations?.[t]&&(o.translations[t][e]=r),o?.fetch&&_(o.fetch)){let s=this.getDB||(()=>n.fetch),a=O(s)?await s.call(this):n.fetch;if(!a)return;let l=o.fetch.table||"translations",c=await a.upsert({from:l,data:{key:e,lang:t,text:r}});if(c?.error)throw c.error;return c.data}}async function ib(){let e=this?.context,t=e?.polyglot;if(!t)return;let r=this?.state?.root||e?.state?.root;if(!r)return;let n=t.storageLangKey||wE,i=_o.get(n)||t.defaultLang||r.lang||"en";r.update&&r.lang!==i&&r.update({lang:i}),t.fetch&&!(t.translations&&t.translations[i])&&await this.call("loadTranslations",i)}function wu(e){try{let t=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||t?.defaultLang||"en",o=this?.state;if(!o)return"";let i=e.lastIndexOf(".");if(i===-1)return o[e+n]??"";let s=e.substring(0,i).split("."),a=o;for(let l=0;l<s.length;l++){if(a==null)return"";a=a[s[l]]}return a==null?"":a[e.substring(i+1)+n]??""}catch{return""}}var Su={name:"polyglot",render(e){e.parent&&e.parent.parent||e.__polyglotInitialized||(e.__polyglotInitialized=!0,ib.call(e))}};var Ws={polyglot:yu,getLocalStateLang:wu,getActiveLang:zs,getLang:zs,setLang:vu,getLanguages:mu,loadTranslations:bu,upsertTranslation:xu};cn();var _u={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},ku=e=>parseFloat(e.toFixed(4)),aB=(e,t,r)=>{let{ascent:n,descent:o,lineGap:i,unitsPerEm:s,capHeight:a}=t,l=Math.abs(o),c=n+l+i,u=r!==void 0?r:c/s*e,d=u/e,f=c/s,p=(n-a+i/2)/s-(d-f)/2,h=(l+i/2)/s-(d-f)/2;return{fontSize:`${ku(e/16)}rem`,lineHeight:`${ku(u)}px`,capHeightTrim:`${ku(-p)}em`,baselineTrim:`${ku(-h)}em`}},lB=(e,t)=>{if(typeof e=="number")return e;let r=t?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let i=String(e).toUpperCase(),s=n.sequence[i];if(s)return s.decimal||s.val}let o=parseFloat(e);return isNaN(o)?null:typeof e=="string"&&e.endsWith("rem")?o*(r.typography?.browserDefault||16):o},cB=(e,t)=>{let n=t?.designSystem?.font_family||{};if(e){let i=n[e];if(i?.metrics)return i.metrics;let s=String(e).toLowerCase().replace(/['"]/g,"").trim();if(_u[s])return _u[s]}let o=n.default||Object.keys(n)[0];if(o){let i=n[o];if(i?.metrics)return i.metrics;if(i?.value&&Array.isArray(i.value))for(let s of i.value){let a=s.toLowerCase().replace(/['"]/g,"").trim();if(_u[a])return _u[a]}}return null},SE=(e,t,r,n)=>{if(!e)return;let o=lB(t.fontSize,n);if(!o)return;let i=cB(t.fontFamily,n);if(!i)return;let s=t.lineHeight?parseFloat(t.lineHeight):void 0,{lineHeight:a,capHeightTrim:l,baselineTrim:c}=aB(o,i,s),u={};return t.lineHeight||(u.lineHeight=a),u["::before"]={content:'""',marginBottom:l,display:"table"},u["::after"]={content:'""',marginTop:c,display:"table"},u},_E={name:"capsize",init(e){e.useCapsize===void 0&&e.fontSize&&(e.useCapsize=!0)}};var Hs={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},St=Object.create(null);for(let e in Hs)St[Hs[e]]=e;var sb=Object.create(null);for(let e in Hs){let t=Hs[e];if(sb[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${sb[t]}"`);sb[t]=e}var Wr=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Vs(e){return/^[A-Z]/.test(e)}function Us(e){return/^[:@.!$>&]/.test(e)||e.startsWith("> ")}function uB(e){return e.trim().split(/\s+/).filter(Boolean)}function kE(e){return e.replace(/_/g," ")}function fB(e){if(!e||typeof e!="string")return{};let t={},r=uB(e);for(let n of r){if(n.startsWith("!")){let l=n.slice(1),c=St[l]||l;t[c]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=St[n]||n;t[l]=!0;continue}let i=n.slice(0,o),s=n.slice(o+1),a=St[i]||i;if(s.includes(",")){t[a]=s.split(",").map(kE);continue}t[a]=kE(s)}return t}function qs(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?qs(r):r});let t={};for(let r in e){let n=e[r];if(Vs(r)){t[r]=ab(n);continue}let o=St[r]||r;if(Us(r)&&o===r){t[r]=ab(n);continue}if(Wr.has(o)||Wr.has(r)){t[o]=n;continue}t[o]=ab(n)}return t}function ab(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?qs(t):t}):typeof e=="object"?qs(e):e}function Gs(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Gs(r):r});let t={};if(typeof e.in=="string"){let r=fB(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Vs(r)){t[r]=lb(n);continue}let o=St[r]||r;if(Us(r)&&o===r){t[r]=lb(n);continue}if(Wr.has(o)||Wr.has(r)){t[o]=n;continue}t[o]=lb(n)}return t}function lb(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Gs(t):t}):typeof e=="object"?Gs(e):e}function dB(e){let t="",r=0;for(;r<e.length;){if(e[r]==="\\"&&r+1<e.length){let n=e[r+1];if(n===","||n==="_"||n==="\\"){t+=n,r+=2;continue}}e[r]==="_"?t+=" ":t+=e[r],r++}return t}function pB(e){let t=[],r="",n=0;for(;n<e.length;){if(e[n]==="\\"&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}if(e[n]===","){t.push(r),r="",n++;continue}r+=e[n],n++}return t.push(r),t}function CE(e){return e.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(e)?Number(e.slice(1)):dB(e)}function cb(e){if(!e||typeof e!="string")return{};let t={},r=e.trim().split(/\s+/).filter(Boolean);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),u=St[c]||c;t[u]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=St[n]||n;t[c]=!0;continue}let i=n.slice(0,o),s=n.slice(o+1),a=St[i]||i,l=pB(s);if(l.length>1){t[a]=l.map(CE);continue}t[a]=CE(s)}return t}function Ks(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Ks(r):r});let t={};if(typeof e.in=="string"){let r=cb(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Vs(r)){typeof n=="string"?t[r]=cb(n):t[r]=ub(n);continue}let o=St[r]||r;if(Us(r)&&o===r){typeof n=="string"?t[r]=cb(n):t[r]=ub(n);continue}if(Wr.has(o)||Wr.has(r)){t[o]=n;continue}t[o]=ub(n)}return t}function ub(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Ks(t):t}):typeof e=="object"?Ks(e):e}var hB={shorten:qs,stringify:Gs,stringifyFurther:Ks};function gB(e,t){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>t(n));let r={};for(let n in e){let o=e[n];r[n]=o&&typeof o=="object"?t(o):o}return r}var mB=["components","pages","snippets"],Cu={name:"shorthand",prepareContext(e){let t=e.shorthand;if(!t)return;let n=hB[t===!0?"shorten":t];if(n){for(let o of mB)e[o]&&(e[o]=gB(e[o],n));e.app&&typeof e.app=="object"&&(e.app=n(e.app))}}};var yB=0,bB=()=>`${Date.now().toString(36)}-${(yB++).toString(36)}`,ae=(e,t,r={})=>({id:bB(),ts:Date.now(),type:e,level:t,...r}),vB=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},ko=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:vB(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null;var Co=e=>e?.context?.analyze,xB={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},wB=(e,{category:t,type:r,level:n})=>o=>{let i=Co(o);!i||!i.shouldCapture(t)||i.emit(ae(r,n,{hook:e,element:ko(o)}))},AE=e=>(t,r)=>{let n=Co(t);!n||!n.shouldCapture("state")||n.emit(ae("state","debug",{hook:e,element:ko(t),changedKeys:r?.changedKeys||null}))},Xs={name:"analyze",error(e,t){let r=Co(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(ae("error","error",{hook:t?.hook||"error",element:ko(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Co(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(ae("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Co(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Co(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(ae("update","debug",{hook:"update",element:ko(e),durationMs:r}))},beforeStateUpdate:AE("beforeStateUpdate"),stateUpdate:AE("stateUpdate")};for(let[e,t]of Object.entries(xB))Xs[e]=wB(e,t);D();var Au={error:0,warn:1,info:2,debug:3,trace:4};var fb=(e,t)=>{let r=Au[e],n=Au[t];return r==null||n==null?!0:r<=n},Eu=e=>Au[e]!=null?e:"warn";D();var Tu=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var SB=(e,t)=>{for(let r of t)if(r instanceof RegExp){if(r.test(e))return!0}else if(typeof r=="string"&&e.toLowerCase().includes(r.toLowerCase()))return!0;return!1},_B=(e,t)=>{if(t!=="redact"){if(t==="hash"){let r=0,n=String(e);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},db=(e,t,r,n)=>{if(n>6||e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(i=>db(i,t,r,n+1));let o={};for(let i of Object.keys(e))if(SB(i,t)||Tu.test(i)){let a=_B(e[i],r);a!==void 0&&(o[i]=a)}else o[i]=db(e[i],t,r,n+1);return o},pb=(e=[],t="mask")=>{let r=Array.isArray(e)?e:[e];return n=>{if(!n)return n;let{id:o,ts:i,type:s,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...h}=n,g=db(h,r,t,0);return{id:o,ts:i,type:s,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...g}}};var EE=e=>{let t=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,n=e.config.buildHash||null,o=e.config.appId||null;return i=>{if(!i)return i;let s=e.context?.routerOptions?.currentRoute||null,a=C,l=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...i,session:t,app:{id:o,build:n,route:s},meta:{ua:r,viewport:l}}}},TE=()=>e=>{if(!e)return e;if(e.element&&typeof e.element=="object"){let t=e.element;(t.node||t.parent||t.__ref)&&(e={...e,element:{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,tag:t.tag||null,component:t.component||null}})}return e.error instanceof Error&&(e={...e,error:{name:e.error.name,message:e.error.message,stack:e.error.stack}}),e},OE=(e=1e3,t=500)=>{let r=new Map;return n=>{if(!n)return n;let o=`${n.type}:${n.level}:${n.message||""}:${n.error?.message||""}`,i=r.get(o),s=n.ts||Date.now();if(i&&s-i<e)return null;if(r.set(o,s),r.size>t){let a=Math.ceil(t/10),l=0;for(let c of r.keys()){if(l++>=a)break;r.delete(c)}}return n}},RE=e=>t=>{if(!t)return t;let r=e[t.type];return r==null||r>=1?t:Math.random()>r?null:t},PE={redact:e=>pb(e.config.redact||[],e.config.maskStrategy),enrich:e=>EE(e),summarize:()=>TE(),dedupe:e=>OE(e.config.cache?.dedupeWindowMs||1e3),sample:e=>RE(e.config.sample||{})},kB=(e,t)=>{if(typeof e=="function")return e;if(typeof e=="string"){let r=PE[e];return r?r(t):null}return null},hb=e=>{let t=e.config,r=Array.isArray(t.transformers)?t.transformers.slice():[],n=r.findIndex(i=>i==="redact");n>=0&&r.splice(n,1);let o=[];t.redact!==!1&&o.push(PE.redact(e));for(let i of r){let s=kB(i,e);s&&o.push(s)}return i=>{let s=i;for(let a of o){if(s==null)return null;let l=a(s);if(l==null)return null;if(Array.isArray(l)){let c=o.slice(o.indexOf(a)+1),u=[];for(let d of l){let f=d,p=!1;for(let h of c)if(f=h(f),f==null){p=!0;break}!p&&f!=null&&u.push(f)}return u}s=l}return s}};D();D();var Ou=typeof C<"u"&&typeof C.document<"u",CB=5e3,AB=50,EB=3,TB=1500,OB=1e3,$E=e=>e?e.level==="error"||e.type==="error"?"bug":e.type==="network"?"network":e.type==="console"?e.level==="error"||e.level==="warn"?"bug":"log":e.level==="warn"?"bug":e.level==="info"?"log":"verbose":"verbose",RB=e=>{try{return JSON.stringify(e)}catch{return null}},PB=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},$B=e=>{if(!e)return null;let t=String(e),r;return(r=t.match(/Edg\/([\d.]+)/))?{name:"Edge",version:r[1]}:(r=t.match(/OPR\/([\d.]+)/))?{name:"Opera",version:r[1]}:(r=t.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:r[1]}:/Chrome\/([\d.]+)/.test(t)&&/Safari\//.test(t)?(r=t.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:r[1]}):(r=t.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:r[1]}:{name:null,version:null}},IB=()=>{if(!Ou)return null;try{let e=C.document?.documentElement?.getAttribute("data-theme")||null,t=typeof C.matchMedia=="function"?C.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:e||(t?"dark":t===!1?"light":null),forced:e||null,prefers:t==null?null:t?"dark":"light"}}catch{return null}},jB=()=>{if(!Ou)return null;let e=C.location,t=typeof navigator<"u"?navigator:null,r=typeof screen<"u"?screen:null;return{url:e?.href||null,path:e?.pathname||null,referrer:C.document?.referrer||null,title:C.document?.title||null,ua:t?.userAgent||null,browser:$B(t?.userAgent),language:t?.language||null,languages:t?.languages||null,timezone:PB(),viewport:C.innerWidth?{w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}:null,screen:r?{w:r.width||null,h:r.height||null,availW:r.availWidth||null,availH:r.availHeight||null,colorDepth:r.colorDepth||null,orientation:r.orientation?.type||null}:null,theme:IB()}},gb=(e={})=>{let t=e.url,r=typeof e.transport=="function"?e.transport:null;if(!t&&!r)return()=>{};let n=e.apiKey||null,o=e.appKey||e.appId||null,i=e.tenantKey||e.tenant||null,s=e.release||null,a=e.env||null,l=e.sdk||null,c=typeof e.getAuth=="function"?e.getAuth:null,u=typeof e.getContext=="function"?e.getContext:null,d=typeof e.classify=="function"?e.classify:$E,f=typeof e.beforeSend=="function"?e.beforeSend:null,p=e.batchMs!=null?e.batchMs:CB,h=e.maxBatch||AB,g=e.maxRetries!=null?e.maxRetries:EB,m=e.backoffMs||TB,y=e.queueLimit||OB,b=e.sampleRate!=null?e.sampleRate:1,x=e.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),v=[],S=[],k=null,E=null,T=()=>{k||!v.length||(k=setTimeout(Q,p))},w=H=>{if(E)return;let ee=m*Math.pow(2,Math.max(0,H-1));E=setTimeout(()=>{if(E=null,!S.length)return;let oe=S.shift();K(oe.envelope,oe.attempt)},ee)},j=H=>{let ee=u?FB(u):null,oe={v:1,session:{id:x,sentAt:Date.now()},app:{key:o,release:s,env:a},tenant:i,sdk:l,page:jB(),user:ee?.user||null,traits:ee?.traits||null,tags:ee?.tags||null,events:H};if(f)try{return f(oe)||null}catch{return oe}return oe},K=async(H,ee=1)=>{if(H)try{let oe=!0;if(r){let se=await r(H);oe=se!==!1&&se?.ok!==!1}else oe=await DB(t,H,{apiKey:n,getAuth:c});!oe&&ee<g&&(S.push({envelope:H,attempt:ee+1}),w(ee+1))}catch{ee<g&&(S.push({envelope:H,attempt:ee+1}),w(ee+1))}},Q=(H=!1)=>{if(k&&(clearTimeout(k),k=null),!v.length)return;let ee=v;v=[];let oe=j(ee);if(oe){if(H&&Ou&&navigator.sendBeacon&&t){let se=RB(oe);if(se)try{navigator.sendBeacon(t,new C.Blob([se],{type:"application/json"}));return}catch{}}K(oe)}};Ou&&(C.addEventListener("pagehide",()=>Q(!0),{passive:!0}),C.addEventListener("beforeunload",()=>Q(!0),{passive:!0}),C.addEventListener("visibilitychange",()=>{C.document.visibilityState==="hidden"&&Q(!0)},{passive:!0}));let W=H=>{if(!H||b<1&&Math.random()>b)return;let ee={...H,log_type:d(H)};v.push(ee),v.length>y&&(v=v.slice(-y)),v.length>=h?Q():T()};return W.flush=()=>Q(!1),W.sessionId=x,W},FB=e=>{try{return e()}catch{return null}},DB=async(e,t,{apiKey:r,getAuth:n})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(r&&(o["X-Analyze-Key"]=r),n)try{let i=await n();i&&(o.Authorization=`Bearer ${i}`)}catch{}try{return(await fetch(e,{method:"POST",headers:o,body:JSON.stringify(t),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var LB={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},MB="\x1B[0m",Ru=typeof C<"u"&&typeof C.document<"u",jE=(e={})=>{let t=e.minLevel||null,r=console.error.bind(console),n=console.warn.bind(console),o=console.log.bind(console);return i=>{if(!i)return;let s=i.level==="error"?r:i.level==="warn"?n:o,a=`[analyze:${i.type}]`;if(Ru)s(a,i);else{let l=LB[i.level]||"";s(`${l}${a}${MB}`,i)}}},FE=(e,t={})=>{let r=t.max||e.config.cache?.max||500,n=new Array(r),o=0,i=0,s=a=>{n[o]=a,o=(o+1)%r,i<r&&i++};return e.__memory={push:s,snapshot:()=>{let a=new Array(i),l=(o-i+r)%r;for(let c=0;c<i;c++)a[c]=n[(l+c)%r];return a},query:(a={})=>{let l=e.__memory.snapshot(),c=a.sinceMs?Date.now()-a.sinceMs:0;return l.filter(u=>!(!u||a.level&&u.level!==a.level||a.type&&u.type!==a.type||c&&u.ts<c))},clear:()=>{o=0,i=0}},s},DE=(e={})=>{let t=e.url,r=e.batchMs!=null?e.batchMs:5e3,n=e.maxBatch||50;if(!t)return()=>{};let o=[],i=null,s=()=>{if(i&&(clearTimeout(i),i=null),!o.length)return;let l=JSON.stringify({events:o});o=[];let c=Ru?new C.Blob([l],{type:"application/json"}):l;if(Ru&&navigator.sendBeacon)try{navigator.sendBeacon(t,c);return}catch{}typeof fetch<"u"&&fetch(t,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:l,keepalive:!0}).catch(()=>{})};Ru&&(C.addEventListener("pagehide",s,{passive:!0}),C.addEventListener("beforeunload",s,{passive:!0}));let a=l=>{l&&(o.push(l),o.length>=n?s():i||(i=setTimeout(s,r)))};return a.flush=s,a},IE={console:jE,memory:FE,beacon:DE,remote:gb},mb=e=>{let t=Array.isArray(e.config.sinks)?e.config.sinks:["console"],r=[];for(let n of t)if(typeof n=="function")r.push(n);else if(typeof n=="string"){let o=IE[n];if(!o)continue;r.push(n==="memory"?o(e,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=IE[n.type];if(!o)continue;r.push(n.type==="memory"?o(e,n):o(n))}return r};D();var BB=typeof C<"u"&&typeof C.document<"u",NB=new Set(["password","hidden"]),LE=(e,t)=>{let r=0,n=null,o=null;return(...i)=>{let s=Date.now();s-r>=t?(r=s,e(...i)):(o=i,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(e(...o),o=null)},t-(s-r))))}},yb="__analyzeKeyPath",Ao=e=>{let t=e.target;if(!t)return{selector:null,key:null,path:null};if(t[yb])return t[yb];let r=[],n=t,o=0,i=null;for(;n&&o<64;){if(n.getAttribute){let a=n.getAttribute("data-key");a&&(i==null&&(i=a),r.unshift(a))}n=n.parentNode,o++}let s;if(r.length)s={selector:null,key:i,path:r.join(" > "),tag:t.tagName?.toLowerCase()||null};else{let a=(t.tagName||"unknown").toLowerCase(),l=t.id?`#${t.id}`:"",c=t.className&&typeof t.className=="string"?"."+t.className.trim().split(/\s+/).slice(0,2).join("."):"";s={selector:`${a}${l}${c}`,key:null,path:null}}try{t[yb]=s}catch{}return s},zB=(e,t)=>{if(t==="mask")return"***";if(t!=="redact"){if(t==="hash"){let r=0,n=String(e||"");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},WB=e=>!!(!e||e.tagName==="INPUT"&&NB.has(e.type)||Tu.test(e.name||"")||Tu.test(e.id||"")||e.dataset?.analyze==="skip"),bb=e=>{if(!BB)return;let t=e.config.capture,r=e.config.throttle,n=e.__teardown,o=(i,s,a,l)=>{i.addEventListener(s,a,l),n.push(()=>i.removeEventListener(s,a,l))};if(t.errors&&(o(C,"error",i=>{e.emit(ae("error","error",{hook:"window.onerror",message:i.message||null,error:i.error||null,source:i.filename||null,line:i.lineno||null,col:i.colno||null}))}),o(C,"unhandledrejection",i=>{let s=i.reason,a=s instanceof Error?s:null;e.emit(ae("error","error",{hook:"unhandledrejection",message:a?.message||(typeof s=="string"?s:"Unhandled promise rejection"),error:a}))})),t.pointer){o(C,"click",s=>{e.emit(ae("pointer","info",{hook:"click",target:Ao(s),button:s.button,x:s.clientX,y:s.clientY,modifiers:ME(s)}))},{passive:!0,capture:!0}),o(C,"dblclick",s=>{e.emit(ae("pointer","info",{hook:"dblclick",target:Ao(s),x:s.clientX,y:s.clientY}))},{passive:!0,capture:!0}),o(C,"contextmenu",s=>{e.emit(ae("pointer","info",{hook:"contextmenu",target:Ao(s),x:s.clientX,y:s.clientY}))},{passive:!0,capture:!0});let i=LE(s=>{e.emit(ae("pointer","trace",{hook:"pointermove",x:s.clientX,y:s.clientY}))},r.pointermove);o(C,"pointermove",i,{passive:!0})}if(t.keyboard&&o(C,"keydown",i=>{e.emit(ae("keyboard","info",{hook:"keydown",code:i.code,key:i.key&&i.key.length===1?"\xB7":i.key,modifiers:ME(i),target:Ao(i)}))},{passive:!0,capture:!0}),t.forms){let i=s=>{let a=s.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let c=WB(a),u=a.dataset?.analyze==="track",d=null;u&&!c?d=a.value:e.config.maskFormValues!==!1&&(d=zB(a.value,e.config.maskStrategy)),e.emit(ae("forms","info",{hook:s.type,target:Ao(s),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:d}))};o(C,"input",i,{passive:!0,capture:!0}),o(C,"change",i,{passive:!0,capture:!0}),o(C,"submit",s=>{e.emit(ae("forms","info",{hook:"submit",target:Ao(s)}))},{passive:!0,capture:!0})}if(t.scroll){let i=LE(()=>{e.emit(ae("scroll","trace",{hook:"scroll",x:C.scrollX,y:C.scrollY}))},r.scroll);o(C,"scroll",i,{passive:!0,capture:!0})}if(t.viewport){let i=wi(()=>{e.emit(ae("viewport","info",{hook:"resize",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))},r.resize);o(C,"resize",i,{passive:!0}),o(C,"orientationchange",()=>{e.emit(ae("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(C.document,"visibilitychange",()=>{e.emit(ae("viewport","info",{hook:"visibilitychange",hidden:C.document.hidden}))},{passive:!0}),e.emit(ae("viewport","info",{hook:"initial",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))}if(t.console)for(let i of["log","warn","error","debug"]){let s=console[i];console[i]=function(...a){try{e.emit(ae("console",i==="error"?"error":i==="warn"?"warn":"debug",{hook:`console.${i}`,args:a.map(BE)}))}catch{}return s.apply(console,a)},n.push(()=>{console[i]=s})}if(t.performance&&typeof PerformanceObserver<"u")try{let i=new PerformanceObserver(a=>{for(let l of a.getEntries())e.emit(ae("performance","info",{hook:l.entryType,name:l.name,startTime:l.startTime,duration:l.duration,value:l.value!=null?l.value:null}))}),s=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of s)try{i.observe({type:a,buffered:!0})}catch{}n.push(()=>i.disconnect())}catch{}},ME=e=>({shift:!!e.shiftKey,ctrl:!!e.ctrlKey,alt:!!e.altKey,meta:!!e.metaKey}),HB=e=>{let t={name:e.name||"Error",message:typeof e.message=="string"?e.message:String(e),stack:typeof e.stack=="string"?e.stack:null};return e.cause!==void 0&&(t.cause=BE(e.cause)),t},BE=e=>{if(e==null)return e;if(e instanceof Error)return HB(e);if(typeof e=="object")try{return JSON.parse(JSON.stringify(e))}catch{return String(e)}return e};D();var VB=typeof C<"u"&&typeof C.document<"u";var vb=e=>{if(VB&&e.config.capture.network){if(typeof C.fetch=="function"){let t=C.fetch.bind(C),r=function(n,o){if(o?.headers?.["X-Analyze-Beacon"])return t(n,o);let i=typeof n=="string"?n:n&&n.url||"",s=(o?.method||typeof n=="object"&&n?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return e.emit(ae("network","info",{hook:"fetch.start",source:"window.fetch",url:i,method:s})),t(n,o).then(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;return e.emit(ae("network",l.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:i,method:s,status:l.status,ok:l.ok,durationMs:c})),l}).catch(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;throw e.emit(ae("network","error",{hook:"fetch.error",source:"window.fetch",url:i,method:s,error:l,durationMs:c})),l})};C.fetch=r,e.__teardown.push(()=>{C.fetch=t})}if(typeof C.XMLHttpRequest=="function"){let t=C.XMLHttpRequest,r=t.prototype.open,n=t.prototype.send;t.prototype.open=function(o,i){return this.__analyze={method:String(o).toUpperCase(),url:String(i)},r.apply(this,arguments)},t.prototype.send=function(o){let i=this.__analyze;if(!i)return n.apply(this,arguments);let s=typeof performance<"u"?performance.now():Date.now();e.emit(ae("network","info",{hook:"xhr.start",source:"xhr",url:i.url,method:i.method}));let a=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-s,u=this.status>=200&&this.status<400;e.emit(ae("network",u?"info":"warn",{hook:"xhr.success",source:"xhr",url:i.url,method:i.method,status:this.status,ok:u,durationMs:c}))},l=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-s;e.emit(ae("network","error",{hook:"xhr.error",source:"xhr",url:i.url,method:i.method,status:this.status,durationMs:c}))};return this.addEventListener("loadend",a),this.addEventListener("error",l),n.apply(this,arguments)},e.__teardown.push(()=>{t.prototype.open=r,t.prototype.send=n})}}};var UB={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},qB={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},GB={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},KB={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},XB=e=>{let t={...UB,...e};return t.replay&&Object.assign(t,qB),t.telemetry&&Object.assign(t,GB),t.remote&&Object.assign(t,KB),t},ZB=64,YB=()=>{if(typeof C>"u"||!C.location)return null;try{let t=new URLSearchParams(C.location.search).get("analyze");return t||null}catch{return null}},xb=(e={})=>{let t=e===!0?{}:{...e};t.capture=XB(t.capture||{});let r=YB();(r==="debug"||t.debug)&&(t.level="debug",t.debug=!0,t.capture={...t.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r==="off"&&(t.enabled=!1),t.level=Eu(t.level||"warn"),t.cache={max:500,dedupeWindowMs:1e3,...t.cache||{}},t.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...t.throttle||{}},t.maskFormValues==null&&(t.maskFormValues=!0),t.maskStrategy||(t.maskStrategy="mask"),Array.isArray(t.sinks)||(t.sinks=["console","memory"]),Array.isArray(t.transformers)||(t.transformers=["enrich","summarize"]);let n={config:t,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=hb(n),n.__sinks=mb(n))};return n.shouldCapture=i=>n.config.enabled===!1?!1:!!n.config.capture[i],n.emit=i=>{if(i&&n.config.enabled!==!1&&!n.__paused&&fb(i.level,n.config.level)){if(!n.__ready){if(i.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<ZB&&n.__preBuffer.push(i);return}o(),NE(n,i)}},n.activate=i=>{if(n.context==null&&(n.context=i||null),n.__ready)return;n.__ready=!0;let s=n.__preBuffer;if(n.__preBuffer=[],s.length){o();for(let a of s)NE(n,a)}try{bb(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{vb(n)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of n.__onActivate||[])try{a(n)}catch(l){console.error("[analyze] onActivate error:",l)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=i=>{n.config.level=Eu(i)},n.setCapture=(i,s)=>{n.config.capture[i]=!!s},n.query=i=>n.__memory?n.__memory.query(i):[],n.snapshot=()=>n.__memory?n.__memory.snapshot():[],n.emitNetwork=i=>{if(!n.shouldCapture("network"))return;let s=i?.phase,a=s==="error"?"error":s==="success"&&i.ok===!1?"warn":"info";n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${s||"unknown"}`,...i})},n.flush=()=>{if(n.__sinks)for(let i of n.__sinks)typeof i.flush=="function"&&i.flush()},n.replay=()=>({initialSnapshot:n.__initialSnapshot,events:n.snapshot()}),n.destroy=()=>{for(let i of n.__teardown)try{i()}catch{}n.__teardown=[],n.__ready=!1,n.__paused=!0},n.__onActivate=[],n.onActivate=i=>{n.__onActivate.push(i)},n},NE=(e,t)=>{let r=e.__pipeline(t);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof e.config.onEvent=="function")try{e.config.onEvent(o)}catch{}for(let i of e.__sinks)try{i(o)}catch(s){console.error("[analyze] sink error:",s)}}};var Bt=Object.create(null);Bt.open="0";Bt.close="1";Bt.ping="2";Bt.pong="3";Bt.message="4";Bt.upgrade="5";Bt.noop="6";var Zs=Object.create(null);Object.keys(Bt).forEach(e=>{Zs[Bt[e]]=e});var Ys={type:"error",data:"parser error"};var HE=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",VE=typeof ArrayBuffer=="function",UE=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Js=({type:e,data:t},r,n)=>HE&&t instanceof Blob?r?n(t):zE(t,n):VE&&(t instanceof ArrayBuffer||UE(t))?r?n(t):zE(new Blob([t]),n):n(Bt[e]+(t||"")),zE=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function WE(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var wb;function qE(e,t){if(HE&&e.data instanceof Blob)return e.data.arrayBuffer().then(WE).then(t);if(VE&&(e.data instanceof ArrayBuffer||UE(e.data)))return t(WE(e.data));Js(e,!1,r=>{wb||(wb=new TextEncoder),t(wb.encode(r))})}var GE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<GE.length;e++)Qs[GE.charCodeAt(e)]=e;var KE=e=>{let t=e.length*.75,r=e.length,n,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)i=Qs[e.charCodeAt(n)],s=Qs[e.charCodeAt(n+1)],a=Qs[e.charCodeAt(n+2)],l=Qs[e.charCodeAt(n+3)],u[o++]=i<<2|s>>4,u[o++]=(s&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c};var JB=typeof ArrayBuffer=="function",ea=(e,t)=>{if(typeof e!="string")return{type:"message",data:XE(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:QB(e.substring(1),t)}:Zs[r]?e.length>1?{type:Zs[r],data:e.substring(1)}:{type:Zs[r]}:Ys},QB=(e,t)=>{if(JB){let r=KE(e);return XE(r,t)}else return{base64:!0,data:e}},XE=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;var ZE="",YE=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((i,s)=>{Js(i,!1,a=>{n[s]=a,++o===r&&t(n.join(ZE))})})},JE=(e,t)=>{let r=e.split(ZE),n=[];for(let o=0;o<r.length;o++){let i=ea(r[o],t);if(n.push(i),i.type==="error")break}return n};function QE(){return new TransformStream({transform(e,t){qE(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{o=new Uint8Array(9);let i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var Sb;function Pu(e){return e.reduce((t,r)=>t+r.length,0)}function $u(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function eT(e,t){Sb||(Sb=new TextDecoder);let r=[],n=0,o=-1,i=!1;return new TransformStream({transform(s,a){for(r.push(s);;){if(n===0){if(Pu(r)<1)break;let l=$u(r,1);i=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Pu(r)<2)break;let l=$u(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Pu(r)<8)break;let l=$u(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Ys);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Pu(r)<o)break;let l=$u(r,o);a.enqueue(ea(i?l:Sb.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(Ys);break}}}})}var _b=4;function ge(e){if(e)return e5(e)}function e5(e){for(var t in ge.prototype)e[t]=ge.prototype[t];return e}ge.prototype.on=ge.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ge.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ge.prototype.off=ge.prototype.removeListener=ge.prototype.removeAllListeners=ge.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};ge.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};ge.prototype.emitReserved=ge.prototype.emit;ge.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ge.prototype.hasListeners=function(e){return!!this.listeners(e).length};var dr=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),Ue=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),tT="arraybuffer";function Iu(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var t5=Ue.setTimeout,r5=Ue.clearTimeout;function pr(e,t){t.useNativeTimers?(e.setTimeoutFn=t5.bind(Ue),e.clearTimeoutFn=r5.bind(Ue)):(e.setTimeoutFn=Ue.setTimeout.bind(Ue),e.clearTimeoutFn=Ue.clearTimeout.bind(Ue))}var n5=1.33;function rT(e){return typeof e=="string"?o5(e):Math.ceil((e.byteLength||e.size)*n5)}function o5(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function ju(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function nT(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function oT(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let i=r[n].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}var Fu=class extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}},hr=class extends ge{constructor(t){super(),this.writable=!1,pr(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,n){return super.emitReserved("error",new Fu(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let r=ea(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let r=nT(t);return r.length?"?"+r:""}};var ta=class extends hr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};JE(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,YE(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=ju()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var iT=!1;try{iT=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var sT=iT;function i5(){}var kb=class extends ta{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Hr=class e extends ge{constructor(t,r,n){super(),this.createRequest=t,pr(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=Iu(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=i5,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Hr.requestsCount=0;Hr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",aT);else if(typeof addEventListener=="function"){let e="onpagehide"in Ue?"pagehide":"unload";addEventListener(e,aT,!1)}}function aT(){for(let e in Hr.requests)Hr.requests.hasOwnProperty(e)&&Hr.requests[e].abort()}var s5=(function(){let e=lT({xdomain:!1});return e&&e.responseType!==null})(),Vr=class extends kb{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=s5&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Hr(lT,this.uri(),t)}};function lT(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||sT))return new XMLHttpRequest}catch{}if(!t)try{return new Ue[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var cT=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Ab=class extends hr{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=cT?{}:Iu(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;Js(n,this.supportsBinary,i=>{try{this.doWrite(n,i)}catch{}o&&dr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=ju()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},Cb=Ue.WebSocket||Ue.MozWebSocket,Ur=class extends Ab{createSocket(t,r,n){return cT?new Cb(t,r,n):r?new Cb(t,r):new Cb(t)}doWrite(t,r){this.ws.send(r)}};var Eo=class extends hr{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=eT(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=QE();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let i=()=>{n.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;this._writer.write(n).then(()=>{o&&dr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var Eb={websocket:Ur,webtransport:Eo,polling:Vr};var a5=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,l5=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function To(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=a5.exec(e||""),i={},s=14;for(;s--;)i[l5[s]]=o[s]||"";return r!=-1&&n!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=c5(i,i.path),i.queryKey=u5(i,i.query),i}function c5(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function u5(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,i){o&&(r[o]=i)}),r}var Tb=typeof addEventListener=="function"&&typeof removeEventListener=="function",Du=[];Tb&&addEventListener("offline",()=>{Du.forEach(e=>e())},!1);var Tn=class e extends ge{constructor(t,r){if(super(),this.binaryType=tT,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=To(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=To(r.host).host);pr(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=oT(this.opts.query)),Tb&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Du.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=_b,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=rT(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,dr(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let i={type:t,data:r,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Tb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Du.indexOf(this._offlineEventListener);n!==-1&&Du.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};Tn.protocol=_b;var Lu=class extends Tn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),n=!1;Tn.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Tn.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let f=new Error("probe error");f.transport=r.name,this.emitReserved("upgradeError",f)}}))};function i(){n||(n=!0,u(),r.close(),r=null)}let s=d=>{let f=new Error("probe error: "+d);f.transport=r.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function c(d){r&&d.name!==r.name&&i()}let u=()=>{r.removeListener("open",o),r.removeListener("error",s),r.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",s),r.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}},Oo=class extends Lu{constructor(t,r={}){let n=typeof t=="object"?t:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>Eb[o]).filter(o=>!!o)),super(t,n)}};var GZ=Oo.protocol;function uT(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=To(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}var Fb={};R(Fb,{Decoder:()=>Ib,Encoder:()=>$b,PacketType:()=>J,isPacketValid:()=>P5,protocol:()=>wT});var d5=typeof ArrayBuffer=="function",p5=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,fT=Object.prototype.toString,h5=typeof Blob=="function"||typeof Blob<"u"&&fT.call(Blob)==="[object BlobConstructor]",g5=typeof File=="function"||typeof File<"u"&&fT.call(File)==="[object FileConstructor]";function na(e){return d5&&(e instanceof ArrayBuffer||p5(e))||h5&&e instanceof Blob||g5&&e instanceof File}function ra(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(ra(e[r]))return!0;return!1}if(na(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return ra(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&ra(e[r]))return!0;return!1}function dT(e){let t=[],r=e.data,n=e;return n.data=Ob(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Ob(e,t){if(!e)return e;if(na(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=Ob(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Ob(e[n],t));return r}return e}function pT(e,t){return e.data=Rb(e.data,t),delete e.attachments,e}function Rb(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Rb(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Rb(e[r],t));return e}var vT=Cw(bT(),1),Pb=(0,vT.default)("socket.io-parser"),xT=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],wT=5,J;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(J||(J={}));var $b=class{constructor(t){this.replacer=t}encode(t){return Pb("encoding packet %j",t),(t.type===J.EVENT||t.type===J.ACK)&&ra(t)?this.encodeAsBinary({type:t.type===J.EVENT?J.BINARY_EVENT:J.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===J.BINARY_EVENT||t.type===J.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),Pb("encoded %j as %s",t,r),r}encodeAsBinary(t){let r=dT(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Ib=class e extends ge{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===J.BINARY_EVENT;n||r.type===J.BINARY_ACK?(r.type=n?J.EVENT:J.ACK,this.reconstructor=new jb(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(na(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(J[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===J.BINARY_EVENT||n.type===J.BINARY_ACK){let i=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let s=t.substring(i,r);if(s!=Number(s)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(s);if(!ST(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let i=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(i,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let i=r+1;for(;++r;){let s=t.charAt(r);if(s==null||Number(s)!=s){--r;break}if(r===t.length)break}n.id=Number(t.substring(i,r+1))}if(t.charAt(++r)){let i=this.tryParse(t.substr(r));if(e.isPayloadValid(n.type,i))n.data=i;else throw new Error("invalid payload")}return Pb("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case J.CONNECT:return Nu(r);case J.DISCONNECT:return r===void 0;case J.CONNECT_ERROR:return typeof r=="string"||Nu(r);case J.EVENT:case J.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&xT.indexOf(r[0])===-1);case J.ACK:case J.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},jb=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let r=pT(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function T5(e){return typeof e=="string"}var ST=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function O5(e){return e===void 0||ST(e)}function Nu(e){return Object.prototype.toString.call(e)==="[object Object]"}function R5(e,t){switch(e){case J.CONNECT:return t===void 0||Nu(t);case J.DISCONNECT:return t===void 0;case J.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&xT.indexOf(t[0])===-1);case J.ACK:return Array.isArray(t);case J.CONNECT_ERROR:return typeof t=="string"||Nu(t);default:return!1}}function P5(e){return T5(e.nsp)&&O5(e.id)&&R5(e.type,e.data)}function ot(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var $5=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Io=class extends ge{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[ot(t,"open",this.onopen.bind(this)),ot(t,"packet",this.onpacket.bind(this)),ot(t,"error",this.onerror.bind(this)),ot(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var n,o,i;if($5.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let s={type:J.EVENT,data:r};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let u=this.ids++,d=r.pop();this._registerAckCallback(u,d),s.id=u}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[t]=r;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},o),s=(...a)=>{this.io.clearTimeoutFn(i),r.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...r){return new Promise((n,o)=>{let i=(s,a)=>s?o(s):n(a);i.withError=!0,r.push(i),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...i)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case J.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:J.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,t.data)}}};function Rn(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Rn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Rn.prototype.reset=function(){this.attempts=0};Rn.prototype.setMin=function(e){this.ms=e};Rn.prototype.setMax=function(e){this.max=e};Rn.prototype.setJitter=function(e){this.jitter=e};var jo=class extends ge{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,pr(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new Rn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||Fb;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Oo(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=ot(r,"open",function(){n.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=ot(r,"error",i);if(this._timeout!==!1){let a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),r.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(ot(t,"ping",this.onping.bind(this)),ot(t,"data",this.ondata.bind(this)),ot(t,"error",this.onerror.bind(this)),ot(t,"close",this.onclose.bind(this)),ot(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){dr(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new Io(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var oa={};function Fo(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=uT(e,t.path||"/socket.io"),n=r.source,o=r.id,i=r.path,s=oa[o]&&i in oa[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s,l;return a?l=new jo(n,t):(oa[o]||(oa[o]=new jo(n,t)),l=oa[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Fo,{Manager:jo,Socket:Io,io:Fo,connect:Fo});D();var I5=new Set(["__proto__","constructor","prototype"]),_T=e=>{if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(I5.has(e[t]))return!1;return!0},j5=(e,t)=>{!e||!_T(t)||t.reduce((r,n,o,i)=>{if(r&&n in r){if(o!==i.length-1)return r[n];delete r[n]}},e)},F5=(e,t,r,n=!1)=>{!e||!_T(t)||t.reduce((o,i,s,a)=>{if(o){if(s!==a.length-1)return!o[i]&&n&&(o[i]={}),o[i];o[i]=r}},e)},kT=(e,t)=>{let r=new Set;if(!Array.isArray(t))return r;for(let[n,o,i]of t)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":j5(e,o);break;case"update":case"set":F5(e,o,i,!0);break;default:break}return r};var D5=Object.create,Cv=Object.defineProperty,L5=Object.getOwnPropertyDescriptor,M5=Object.getOwnPropertyNames,B5=Object.getPrototypeOf,N5=Object.prototype.hasOwnProperty,Z=(e,t)=>()=>(e&&(t=e(e=0)),t),Av=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$=(e,t)=>{for(var r in t)Cv(e,r,{get:t[r],enumerable:!0})},z5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of M5(t))!N5.call(e,o)&&o!==r&&Cv(e,o,{get:()=>t[o],enumerable:!(n=L5(t,o))||n.enumerable});return e},W5=(e,t,r)=>(r=e!=null?D5(B5(e)):{},z5(t||!e||!e.__esModule?Cv(r,"default",{value:e,enumerable:!0}):r,e)),Ev,Tv,le,ve,ld=Z(()=>{Ev=globalThis,Tv=globalThis,le=globalThis,ve=le.document}),Xa,cd,at,ud=Z(()=>{ld(),Xa=e=>(typeof Node=="object"?e instanceof le.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,cd=e=>(typeof HTMLElement=="object"?e instanceof le.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,at=e=>typeof le<"u"&&(le.Node&&e instanceof le.Node||le.Window&&e instanceof le.Window||e===le||e===document)}),B,I,Ln,M,ff,df,q,pf,ce,Mn,Et,ma,tr,Ov,Me=Z(()=>{ud(),B=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,I=e=>typeof e=="string",Ln=e=>typeof e=="number",M=e=>typeof e=="function",ff=e=>e===!0||e===!1,df=e=>e===null,q=e=>Array.isArray(e),pf=e=>e instanceof Date,ce=e=>e===null?!1:typeof e=="object",Mn=e=>e!==void 0,Et=e=>e===void 0,ma={boolean:ff,array:q,object:B,string:I,date:pf,number:Ln,null:df,function:M,objectLike:ce,node:Xa,htmlElement:cd,defined:Mn},tr=e=>(...t)=>t.some(r=>ma[r](e)),Ov=e=>(...t)=>!t.some(r=>ma[r](e))}),Rv,Pv,$v,Iv,Ma,fd,jv,Fv,dd,Dv,Lv,Mv,Bv,Nv,zv,Wv,Ba,pd,Za=Z(()=>{Zr(),Me(),Rv=(e,t)=>t.every(r=>e.includes(r)),Pv=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},$v=(e,t)=>{if(I(t)&&(t=parseInt(t)),Ln(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},Iv=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Ma=(...e)=>[].concat(...e),fd=(e,t=[])=>e.reduce((r,n)=>nr(r,ut(n,{exclude:t}),t),{}),jv=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},Fv=(e,t)=>{if(!q(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},dd=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Dv=(e,t)=>e.filter(r=>r!==t),Lv=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},Mv=(e,t,r)=>{let n=[...e],o=n.indexOf(t),i=n.indexOf(r);if(o!==-1&&i!==-1){let s=n.splice(o,1)[0],a=i<o?i:i+1;n.splice(a,0,s)}return n},Bv=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},Nv=(e,t)=>e.filter(r=>!t.includes(r)),zv=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Wv=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Ba=e=>q(e)?[...new Set(e)]:e,pd=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function jO(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let i=FO[n],s=t||this.state||{},a=this;return e.replace(i,(l,c,u,d)=>{let f=u.trim();if(d){let p=a?.context,h=p?.functions?.[d]||p?.utils?.[d]||p?.methods?.[d]||p?.snippets?.[d]||a?.[d];if(h&&typeof h=="function")try{return String(h.call(a,f)??"")}catch{return""}return""}if(c){let p=(c.match(/\.\.\//g)||[]).length,h=s;for(let m=0;m<p;m++){if(!h||!h.parent)return"";h=h.parent}if(f==="parent")return String(h.value??"");let g=Ho(h,f);return String(g??"")}else{let p=Ho(s,f);if(p!=null)return String(p);let h=a?.context?.polyglot;if(h?.translations){let g=s?.root?.lang||s?.lang||a?.context?.state?.lang||h.defaultLang||"en",m=h.translations[g];if(m){let b=Ho(m,f);if(b!=null&&typeof b!="object")return String(b);for(let x in m){let v=m[x];if(v&&typeof v=="object"&&!Array.isArray(v)){let S=Ho(v,f);if(S!=null&&typeof S!="object")return String(S)}}}let y=Ho(h.translations,f);if(y!=null&&typeof y!="object")return String(y)}return""}})}var hd,Hv,FO,Ho,Ya,Vv,CT,Uv,qv,Gv,AT,Kv,Xv,gd=Z(()=>{hd=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},Hv=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},FO={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Ho=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e),Ya=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Vv=(e,t)=>{let r=e.split(`
73
- `),n=-1,o=-1,i=-1,s=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,i=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,s=r[u].indexOf("{}")+3;break}let d=r[u].slice(i+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,s=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,s=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:i,endColumn:s,startLineNumber:n,endLineNumber:o}},CT=/\\([0-7]{1,3})/g,Uv=e=>e.replace(CT,(t,r)=>String.fromCharCode(parseInt(r,8))),qv=e=>e.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Gv=e=>e.replace(/\/\/\/\/\/n/g,`
74
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),AT=/[^a-zA-Z0-9\s]/g,Kv=e=>e.replace(AT,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),Xv=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))}),Qo,md,Zv,jn,Fn,Na,yd,Yv,Ja=Z(()=>{Qo=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),md=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Zv=["ref","parent","__element","__depends","__ref","__children","root"],jn=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),Fn=new Set(["update","__element"]),Na=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),yd=new Set(["node","context","extends","__element","__ref",...Na,...jn,...Fn]),Yv=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])}),Db,qr,De,Jv,ct,nr,Lb,Qv,ut,ya,ET,ba,TT,OT,RT,Uo,PT,$T,Mb,e0,IT,jT,FT,t0,r0,n0,hf,o0,i0,bd,vd,Bn,gf,DT,s0,a0,mf,l0,c0,u0,f0,d0,p0,h0,Zr=Z(()=>{ld(),Me(),Za(),gd(),ud(),Ja(),Db="production",qr=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,De=(e,t,r,n)=>{if(M(e))return t?typeof e.call!="function"?e:e.call(t,t,r||t.state,n||t.context):void 0;if(e!=null&&t?.context?.plugins&&(q(e)||B(e)&&!at(e))){let o=t.context.plugins;for(let i of o)if(i.resolveHandler){let s=i.resolveHandler(e,t);if(typeof s=="function")return De(s,t,r,n)}}return e},Jv=(e,t,r)=>{for(let n in t)e[n]=De(t[n],r)},ct=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(qr(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},nr=(e,t,r=yd)=>Lb(e,t,r,null),Lb=(e,t,r,n)=>{if(e===t)return e;if(n){for(let i=0;i<n.length;i+=2)if(n[i]===e&&n[i+1]===t)return e}let o=r instanceof Set;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||qr(i)||i==="constructor"||i==="prototype"||(o?r.has(i):r.includes(i)))continue;let s=e[i],a=t[i];if(ce(s)&&ce(a)){let l=n||[];l.push(e,t),Lb(s,a,r,l),l.length-=2}else s===void 0&&(e[i]=a)}return e},Qv=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(qr(o)||(r?t.has(o):t.includes(o))||(n[o]=e[o]));return n},ut=(e,t={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:i=new WeakMap,handleExtends:s=!1}=t;if(!ce(e)||at(e))return e;if(i.has(e))return i.get(e);let a=r instanceof Set?r:r.length>3?new Set(r):null,l=d=>a?a.has(d):r.includes(d),c=q(e)?[]:{};i.set(e,c);let u=[[e,c]];for(;u.length;){let[d,f]=u.pop();for(let p in d){if(!Object.prototype.hasOwnProperty.call(d,p)||qr(p)||p==="__proto__"||l(p))continue;let h=d[p];if(!(n&&h===void 0)&&!(o&&h===null)){if(at(h)){f[p]=h;continue}if(s&&p==="extends"&&q(h)){f[p]=fd(h,r);continue}if(M(h)){f[p]=h;continue}if(ce(h))if(i.has(h))f[p]=i.get(h);else{let g=q(h)?[]:{};i.set(h,g),f[p]=g,u.push([h,g])}else f[p]=h}}}return c},ya=(e,t={})=>{(e.node||e.__ref||e.parent||e.__element||e.parse)&&((e.__element||e.parent?.__element).warn("Trying to clone element or state at",e),e=e.parse?.());for(let r in e){let n=e[r];if(M(n))t[r]=n.toString();else if(B(n))t[r]={},ya(n,t[r]);else if(q(n)){let o=t[r]=[];for(let i=0;i<n.length;i++){let s=n[i];B(s)?(o[i]={},ya(s,o[i])):M(s)?o[i]=s.toString():o[i]=s}}else t[r]=n}return t},ET=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),ba=(e={},t=0)=>{if(e===null||typeof e!="object")return String(e);let r=!1;for(let i in e){r=!0;break}if(!r)return"{}";let n=" ".repeat(t),o=`{
75
- `;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let s=e[i],a=!1;for(let c=0;c<i.length;c++)if(ET.has(i[c])){a=!0;break}let l=a?`'${i}'`:i;if(o+=`${n} ${l}: `,q(s)){o+=`[
76
- `;for(let c of s)ce(c)&&c!==null?o+=`${n} ${ba(c,t+2)},
77
- `:I(c)?o+=`${n} '${c}',
67
+ )`};var FI={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},jI={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},DI={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},hS={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...FI,...jI,...DI,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var gS={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var mS={ratio:1.618,subSequence:!0};var yS={SourceSans:[{url:""}]},bS={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var xS={symbols:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',logo:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>',arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>',arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>',arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>',arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>',arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>',arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>',arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>',arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>',arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>',arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>',arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>',checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>',check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>',chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>',chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>',chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>',chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>',copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>',eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>',eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>',lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>',minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>',sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>',moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>',moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>',send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>',smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>',search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>',upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>',x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>',star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>',plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'};var vS={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var _S={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ri={version:"0.0.1",color:dS,gradient:pS,theme:hS,typography:gS,spacing:mS,font:yS,fontFamily:bS,timing:_S,icons:xS,media:vS,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var uo={};K(uo,{A:()=>jk,AssetPicture:()=>NS,Audio:()=>zS,Avatar:()=>Yk,B:()=>ak,Block:()=>wS,Box:()=>qc,Br:()=>fk,Button:()=>Mk,ButtonSet:()=>zk,COMPONENTS:()=>co,Caption:()=>ZS,Checkbox:()=>_k,CheckboxHgroup:()=>wk,Circle:()=>DS,CircleButton:()=>Bk,Clickable:()=>IS,Data:()=>ck,Dialog:()=>Wk,DialogFooter:()=>qk,DialogHeader:()=>Hk,Dropdown:()=>Zk,DropdownList:()=>Qk,DropdownParent:()=>e1,DropdownParentFocus:()=>t1,DropdownSiblingFocus:()=>r1,FileIcon:()=>Pk,Flex:()=>kS,Focusable:()=>FS,FocusableComponent:()=>jS,Footnote:()=>ik,Form:()=>RS,Grid:()=>AS,Gutter:()=>OS,H1:()=>HS,H2:()=>qS,H3:()=>GS,H4:()=>KS,H5:()=>XS,H6:()=>YS,Headline:()=>ok,Hgroup:()=>mk,HgroupButton:()=>bk,HgroupRows:()=>yk,Hoverable:()=>$S,Hr:()=>uk,I:()=>lk,Icon:()=>Tk,IconButton:()=>Uk,IconText:()=>Rk,Iframe:()=>PS,Img:()=>TS,Inline:()=>SS,InlineFlex:()=>CS,InlineGrid:()=>ES,Input:()=>xk,Italic:()=>rk,KangorooButton:()=>Vk,Li:()=>dk,Link:()=>Hm,Notification:()=>n1,NumberInput:()=>vk,Ol:()=>hk,P:()=>JS,Picture:()=>MS,Radio:()=>Sk,RadioHgroup:()=>kk,Range:()=>Jk,RouteLink:()=>Dk,RouterLink:()=>qm,SHAPES:()=>Wc,Select:()=>Lk,Shape:()=>_m,Span:()=>WS,SquareButton:()=>Nk,Strong:()=>QS,Subhead:()=>sk,Svg:()=>BS,Text:()=>US,Textarea:()=>Ek,TextareaWithButton:()=>Ok,Theme:()=>LS,Title:()=>nk,Toggle:()=>Ck,ToggleHgroup:()=>Ak,Tooltip:()=>Gk,TooltipHidden:()=>Kk,TooltipParent:()=>Xk,U:()=>ek,Ul:()=>pk,Underline:()=>tk,Video:()=>VS,depth:()=>Hc,getSystemGlobalTheme:()=>Pi});var mm={};K(mm,{Block:()=>wS,Flex:()=>kS,Grid:()=>AS,Gutter:()=>OS,Inline:()=>SS,InlineFlex:()=>CS,InlineGrid:()=>ES});var wS={display:"block"},SS={display:"inline"},kS={display:"flex"},CS={display:"inline-flex"},AS={display:"grid"},ES={display:"inline-grid"},OS={boxSize:"C1"};var ym={};K(ym,{Img:()=>TS});D();var TS={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Ye(e);return t&&t.src||e.src},srcset:e=>{let t=Ye(e);return(t?si(t):"")||e.srcset}}};var bm={};K(bm,{Form:()=>RS});var RS={tag:"form"};var xm={};K(xm,{Iframe:()=>PS});var PS={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var vm={};K(vm,{Clickable:()=>IS,Focusable:()=>FS,FocusableComponent:()=>jS,Hoverable:()=>$S});var LI={appearance:"none",cursor:"pointer",fontFamily:"inherit"},$S={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},IS={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},FS={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},jS={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:LI};var km={};K(km,{Picture:()=>MS});var Sm={};K(Sm,{Theme:()=>LS,getSystemGlobalTheme:()=>Pi});var wm={};K(wm,{Circle:()=>DS,SHAPES:()=>Wc,Shape:()=>_m,default:()=>MI,depth:()=>Hc});D();var mt=T(),Hc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${mt.unit.default} 4${mt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${mt.unit.default} 6${mt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${mt.unit.default} 10${mt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${mt.unit.default} 16${mt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${mt.unit.default} 26${mt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${mt.unit.default} 42${mt.unit.default}`}},lo=e=>me(e.shapeDirectionColor)||me(e.borderColor)||me(e.backgroundColor)||me(e.background),Uc=e=>{let t=Ei.transition(e.transition,e);return t&&t.transition},Wc={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:lo(e),transition:Uc(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:lo(e),transition:Uc(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:lo(e),transition:Uc(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Uc(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${lo(e)} 25%, transparent 25%), linear-gradient(315deg, ${lo(e)} 25%, transparent 25%)`},"&:after":{background:lo(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},_m={deps:{exec:de,getSpacingBasedOnRatio:Xt,getMediaColor:De},classlist:{shape:e=>e.deps.exec(Wc[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Wc[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},DS={round:"100%"},MI=_m;D();var Pi=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},LS={deps:{depth:Hc},classlist:{depth:e=>!$e(e.depth)&&e.deps.depth[e.depth]}};var MS={deps:{getSystemGlobalTheme:Pi},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Pi},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}};var Cm={};K(Cm,{AssetPicture:()=>NS});D();var NS={tag:"picture",children:e=>{let t=Ye(e);if(t)return ii(t,e.alt)}};var Am={};K(Am,{Svg:()=>BS});var BS={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}};var Em={};K(Em,{Video:()=>VS});D();var VS={tag:"video",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Om={};K(Om,{Audio:()=>zS});D();var zS={tag:"audio",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Tm={};K(Tm,{B:()=>ak,Caption:()=>ZS,Data:()=>ck,Footnote:()=>ik,H1:()=>HS,H2:()=>qS,H3:()=>GS,H4:()=>KS,H5:()=>XS,H6:()=>YS,Headline:()=>ok,I:()=>lk,Italic:()=>rk,P:()=>JS,Span:()=>WS,Strong:()=>QS,Subhead:()=>sk,Text:()=>US,Title:()=>nk,U:()=>ek,Underline:()=>tk});var US={},WS={tag:"span"},HS={tag:"h1"},qS={tag:"h2"},GS={tag:"h3"},KS={tag:"h4"},XS={tag:"h5"},YS={tag:"h6"},JS={tag:"p"},ZS={tag:"caption"},QS={tag:"strong",fontWeight:"700"},ek={tag:"u"},tk={tag:"u"},rk={tag:"i"},nk={},ok={tag:"h6",fontSize:"B",fontWeight:500},sk={tag:"span",fontSize:"Z1"},ik={tag:"span",fontSize:"Z"},ak={tag:"b"},lk={tag:"i"},ck={tag:"data"};var Rm={};K(Rm,{Box:()=>qc,Br:()=>fk,Hr:()=>uk,Li:()=>dk,Ol:()=>hk,Ul:()=>pk});var NI=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=tt(t,e,{unpack:!1});r.__class=n},qc={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:NI},uk={tag:"hr",margin:"C1 0"},fk={tag:"br"},dk={tag:"li"},pk={tag:"ul",childExtends:{extends:"Li"}},hk={tag:"ol",childExtends:{extends:"Li"}};var Pm={};K(Pm,{Hgroup:()=>mk,HgroupButton:()=>bk,HgroupRows:()=>yk});var gk=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},mk={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:gk,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:gk,margin:"0",color:"paragraph"}},yk={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},bk={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var $m={};K($m,{Input:()=>xk});var xk={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}};var Im={};K(Im,{NumberInput:()=>vk});var vk={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}};var Fm={};K(Fm,{Checkbox:()=>_k,CheckboxHgroup:()=>wk});var _k={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},wk={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var jm={};K(jm,{Radio:()=>Sk,RadioHgroup:()=>kk});var Sk={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},kk={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Dm={};K(Dm,{Toggle:()=>Ck,ToggleHgroup:()=>Ak});var Ck={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},Ak={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Lm={};K(Lm,{Textarea:()=>Ek,TextareaWithButton:()=>Ok});var Ek={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},Ok={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var Mm={};K(Mm,{FileIcon:()=>Pk,Icon:()=>Tk,IconText:()=>Rk});var Tk={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let _=x[".isActive"];if(_)return x.call("exec",_.name||_.icon)},c=(x,_,C)=>{let{semanticIcons:E}=C&&C.designSystem,{toCamelCase:F}=C&&C.utils,w=u(x,_),q=F(w).split(/([a-z])([A-Z])/g),te=q[1]?q[0]:w.split(".")[0].split(" ")[0],j=E&&E[te];if(j){let I=w.includes(".")?"sfsymbols."+w.split(".").slice(1).join("."):"sfsymbols";return w=j[I]||j[w.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${w}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,_)=>{let{key:C}=x,E=x.call("exec",x.name||x.icon||C,x);return x.call("isString",E)&&E.includes("{{")&&(E=x.call("replaceLiteralsWithObjectFields",E)),x.call("isString",E)?E:C},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(_=>_.charAt(0).toUpperCase()+_.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},Rk={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},Pk={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Gm={};K(Gm,{A:()=>jk,Link:()=>Hm,RouteLink:()=>Dk,RouterLink:()=>qm});var Wm={};K(Wm,{default:()=>WI,getActiveRoute:()=>Um,lastLevel:()=>Kc,lastPathname:()=>Gc,matchRoute:()=>Bm,parseQuery:()=>Vm,parseRoutePattern:()=>Nm,router:()=>Yt,runGuards:()=>zm});D();var Ik=/^:(.+)/,Fk=/^\*$/,$k=new Map,Nm=e=>{let t=$k.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(Ik);a?n.push({index:i,name:a[1]}):Fk.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return $k.set(e,s),s},Bm=(e,t,r=0)=>{let o=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||"");if(!t)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,l={};for(let c in t){if(c==="/*")continue;let u=Nm(c),d=BI(o,u);d>a&&(a=d,i=c,l=VI(o,u))}return!i&&t["/*"]&&(i="/*"),{key:i,content:i?t[i]:null,params:l,routePath:s}},BI=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(Ik.test(r[i]))o+=1;else if(Fk.test(r[i]))o+=.5;else return-1;return o},VI=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},Vm=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((n,o)=>{t[o]!==void 0?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(n)):t[o]=n}),t},zm=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},Um=(e=0,t)=>{t||(t=typeof A<"u"?A.location.pathname:"/");let n=t.split("/")[e+1];if(n)return`/${n}`},Gc,Kc=0,zI=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,UI={level:Kc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:pe&&pe.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Yt=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||A,i=o?.context?.document||pe,a={...UI,...o.context.routerOptions,...n};Kc=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=zI(e);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=Vm(h),y=o.node,b=g&&g!==s.location.hash.slice(1),v=p!==Gc;Gc=p;let x,_,C,E;if(a.useParamsMatching){let w=Bm(p,o.routes,a.level);x=w.key,_=w.routePath,C=w.content,E=w.params}else{x=Um(a.level,p),_=x;let w=o.routes;C=w?w[x||"/"]||w["/*"]:null,E={}}let F=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!C){a.onNotFound?a.onNotFound({pathname:p,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let w={pathname:p,route:x,params:E,query:m,hash:g,element:o,state:r},$=await zm(a.guards,w);if($===!1)return;if(typeof $=="string")return Yt($,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(v||!b){let w={route:x,routePath:_,hash:g,debugging:!1};Object.keys(E).length&&(w.params=E),Object.keys(m).length&&(w.query=m),a.updateState&&o.state.update(w,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let $=o.__ref?.origin?.content,q={};if($)for(let j in $){let I=$[j];j==="__ref"||j==="props"||j==="node"||j==="parent"||j==="key"||(typeof I=="string"||typeof I=="number"||typeof I=="boolean"||typeof I=="object"&&I!==null&&!I.node&&!I.__ref)&&(q[j]=I)}let te={...q,...typeof C=="object"?C:{extends:C}};a.useFragment&&(te.tag="fragment");try{o.set(te,{contentElementKey:c})}catch(j){console.error("[smbls/router] failed to render route content",p,j)}}if(a.scrollToTop&&F?.scrollTo&&F.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&C[c]?.node?.scrollTo&&C[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let w=i.getElementById(g);if(w&&F?.scrollTo){let $=w.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);F.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}kr("routeChanged",o,a)},WI=Yt;var HI=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Yt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},Hm={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Fr(e,e.href)||Fr(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:HI},jk={extends:"Link"},qm={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Yt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},Dk={extends:[Hm,qm]};var Km={};K(Km,{Select:()=>Lk});var Lk={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}};var Xm={};K(Xm,{Button:()=>Mk,ButtonSet:()=>zk,CircleButton:()=>Bk,IconButton:()=>Uk,KangorooButton:()=>Vk,SquareButton:()=>Nk});var Mk={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},Nk={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},Bk={extends:"SquareButton",round:"C"},Vk={extends:"Button",childExtends:"IconText"},zk={tag:"nav",display:"flex",childExtends:"SquareButton"},Uk={extends:["SquareButton","ClickableItem"],round:"Z"};var Ym={};K(Ym,{Dialog:()=>Wk,DialogFooter:()=>qk,DialogHeader:()=>Hk});var Wk={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Hk={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},qk={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};var Jm={};K(Jm,{Tooltip:()=>Gk,TooltipHidden:()=>Kk,TooltipParent:()=>Xk});D();var Gk={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>qe(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},Kk={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},Xk={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var Zm={};K(Zm,{Avatar:()=>Yk});var Yk={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`};var Qm={};K(Qm,{Range:()=>Jk});var Jk={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:ai("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ai("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}};var ey={};K(ey,{Dropdown:()=>Zk,DropdownList:()=>Qk,DropdownParent:()=>e1,DropdownParentFocus:()=>t1,DropdownSiblingFocus:()=>r1});var Zk={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},Qk={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},e1={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},t1={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},r1={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}};var ty={};K(ty,{Notification:()=>n1});var n1={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var co=Object.assign({},mm,ym,bm,xm,vm,km,Cm,Am,wm,Em,Om,Sm,Tm,Rm,Pm,$m,Im,Fm,jm,Dm,Lm,Mm,Gm,Km,Xm,Ym,Jm,Zm,Qm,ey,ty);function Xc(e){if(e==null)return 0;if(typeof e!="object")return o1(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let n=0;n<e.length;n++)t=(t^Xc(e[n]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let n=0;n<r.length;n++)t=(t^o1(r[n]))*16777619,t=(t^Xc(e[r[n]]))*16777619;return t>>>0}function o1(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function Yc(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!=typeof t||typeof e!="object")return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!Yc(e[o],t[o]))return!1;return!0}let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(t,s)||!Yc(e[s],t[s]))return!1}return!0}function ry(e,t){if(t===void 0)return e;if(e===void 0)return t;if(t===null)return null;if(typeof t!="object"||Array.isArray(t))return t;if(typeof e!="object"||Array.isArray(e))return{...t};let r=!1,n={};for(let o in e)if(o in t){let s=ry(e[o],t[o]);n[o]=s,s!==e[o]&&(r=!0)}else n[o]=e[o];for(let o in t)o in e||(n[o]=t[o],r=!0);return r?n:e}function ny(e,t,r){if(!t||typeof t!="object")return e;if(!e||typeof e!="object")return t;if(r||(r=new WeakSet),r.has(t))return e;r.add(t);for(let n in t){let o=t[n];o&&typeof o=="object"&&!Array.isArray(o)&&e[n]&&typeof e[n]=="object"&&!Array.isArray(e[n])?ny(e[n],o,r):e[n]=o}return e}function Lr(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function fo(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function $i(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Lr(t)}function s1(e){return e.split(`
68
+ `).map(Lr).join(`
69
+ `)}var i1={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",paddingBlock:"pbl",paddingInline:"pin",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginBlock:"mbl",marginInline:"min",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk",scrollBehavior:"sb",inset:"ins"};function a1(e,t){let r=i1[e]||Lr(e),n=$i(t),o=`_${r}-${n}`,s=fo(e),i=`.${o}{${s}: ${t}}`;return`${o}
70
+ ${i}`}var l1=e=>typeof e=="string"&&(e.indexOf("{")!==-1||e.indexOf("}")!==-1);function c1(e){let t=e.split("\0"),r=[],n=[];for(let o=0;o+1<t.length;o+=2){let s=t[o],i=t[o+1];if(!i||l1(i))continue;let a=i1[s]||Lr(s),l=$i(i),c=`_${a}-${l}`,u=fo(s);r.push(c),n.push(`.${c}{${u}:${i}}`)}return r.join(" ")+"\0"+n.join(`
71
+ `)}function u1(e,t){let r=e+t,n=`_c${Lr(r)}`,o=t.split("\0"),s="";for(let a=0;a+1<o.length;a+=2){let l=o[a],c=o[a+1];c&&(l1(c)||(s+=`${fo(l)}:${c};`))}let i;if(e.startsWith("@media"))i=`${e}{.${n}{${s}}}`;else if(e.startsWith(":")||e.startsWith("&")){let a=e.startsWith("&")?e.slice(1):e;i=`.${n}${a}{${s}}`}else e.includes("&")?i=`${e.replace("&",`.${n}`)}{${s}}`:i=`.${n} ${e}{${s}}`;return`${n}
72
+ ${i}`}var oy=null;function Zc(e){oy=e}var $t={structuralHash:Xc,deepEqual:Yc,mergeStructural:ry,overwriteDeep:ny,shortHash:Lr,toKebab:fo,sanitizeValue:$i,batchShortHash:s1,atomicCssClass:a1,batchAtomicCss:c1,compoundCssClass:u1},f1=!1,Jc=null;function d1(e){return Jc||(Jc=import(e||"@symbo.ls/wasm/pkg").then(t=>(t.structuralHash&&($t.structuralHash=t.structuralHash),t.deepEqual&&($t.deepEqual=t.deepEqual),t.mergeStructural&&($t.mergeStructural=t.mergeStructural),t.overwriteDeep&&($t.overwriteDeep=t.overwriteDeep),t.shortHash&&($t.shortHash=t.shortHash),t.toKebab&&($t.toKebab=t.toKebab),t.sanitizeValue&&($t.sanitizeValue=t.sanitizeValue),t.batchShortHash&&($t.batchShortHash=t.batchShortHash),t.atomicCssClass&&($t.atomicCssClass=t.atomicCssClass),t.batchAtomicCss&&($t.batchAtomicCss=t.batchAtomicCss),t.compoundCssClass&&($t.compoundCssClass=t.compoundCssClass),f1=!0,oy&&t.batchAtomicCss&&oy({batchAtomicCss:t.batchAtomicCss,compoundCssClass:t.compoundCssClass}),!0)).catch(t=>(console.debug("[smbls] WASM not available, using JS fallbacks:",t.message),!1)),Jc)}function p1(){return f1}D();var Ii={};K(Ii,{CDN_PROVIDERS:()=>At,DOMQL_EVENTS:()=>op,DOMQ_PROPERTIES:()=>vr,ENV:()=>vp,HTML_TAGS:()=>Gn,METHODS:()=>Vn,METHODS_EXL:()=>as,NODE_ENV:()=>St,OPTIONS:()=>Rs,PACKAGE_MANAGER_TO_CDN:()=>Or,PARSED_DOMQ_PROPERTIES:()=>is,PROPS_METHODS:()=>_r,STATE_METHODS:()=>en,STATE_PROPERTIES:()=>np,SVG_TAGS:()=>N0,TYPES:()=>Qo,UNIVERSAL_RESERVED_KEYS:()=>Jl,addCaching:()=>jl,addContext:()=>Fl,addExtend:()=>Hp,addExtends:()=>Xe,addItemAfterEveryElement:()=>Wd,addProtoToArray:()=>rs,addRef:()=>Pl,applyCSS:()=>iy,applyDependentState:()=>uh,applyEvent:()=>Vl,applyEventUpdate:()=>zl,applyExtends:()=>z0,applyProps:()=>ks,arrayContainsOtherArray:()=>Ld,arraysEqual:()=>qd,arrayzeValue:()=>ln,buildImgSrcset:()=>si,buildSourcesAndImg:()=>ii,cache:()=>gh,call:()=>Ih,captureSnapshot:()=>jh,checkForStateTypes:()=>ih,checkIfInherits:()=>Bl,checkIfStringIsInArray:()=>Xd,clone:()=>ip,cloneAndMergeArrayExtend:()=>ms,cloneFunction:()=>Tp,concatAddExtends:()=>zp,copyJavaScriptToClipboard:()=>eg,copyStringToClipboard:()=>Qh,createBasedOnType:()=>Rl,createElement:()=>sh,createElementExtends:()=>bl,createExtends:()=>bs,createExtendsFromKeys:()=>Kn,createExtendsStack:()=>wl,createIfConditionFlag:()=>Rp,createInheritedState:()=>ah,createKey:()=>hs,createNestedObject:()=>pp,createNestedObjectByKeyPath:()=>ch,createObjectWithoutPrototype:()=>fl,createParent:()=>$l,createPath:()=>Il,createProps:()=>Cs,createPropsStack:()=>Ol,createRoot:()=>oh,createScope:()=>dh,createSnapshotId:()=>ps,customDecodeURIComponent:()=>rp,customEncodeURIComponent:()=>tp,cutArrayAfterValue:()=>zd,cutArrayBeforeValue:()=>Vd,debounce:()=>gs,debounceOnContext:()=>Ap,decodeNewlines:()=>ep,deepClone:()=>ge,deepContains:()=>fp,deepDefaults:()=>ti,deepDestringifyFunctions:()=>Wt,deepExtend:()=>yl,deepMerge:()=>fe,deepMergeExtends:()=>Ht,deepStringifyFunctions:()=>ls,defineSetter:()=>Ph,destringifyGlobalScope:()=>us,detectHeightOnInit:()=>Bh,detectInfiniteLoop:()=>yp,document:()=>pe,encodeNewlines:()=>Qd,error:()=>an,excludeKeysFromObject:()=>xp,exec:()=>de,extendCachedRegistry:()=>Up,extendStackRegistry:()=>xs,extractArrayExtend:()=>_s,fetchLibraryData:()=>ec,fibonacciNumberByIndex:()=>Vh,filterArrays:()=>Gd,filterArraysFast:()=>Kd,finalizeExtends:()=>Sl,findClosestNumber:()=>Ql,findClosestNumberInFactory:()=>Jh,findInheritedState:()=>Nl,findKeyPosition:()=>Jd,flattenExtend:()=>Xn,formatDate:()=>Nh,generateHash:()=>hl,generateKey:()=>ds,generateMetaTags:()=>Xh,get:()=>Oh,getActiveRoute:()=>Um,getCDNUrl:()=>Et,getCapitalCaseKeys:()=>Kp,getCdnProviderFromConfig:()=>Zn,getChildStateInKey:()=>Ml,getChildren:()=>Vs,getContext:()=>Ks,getCookie:()=>jp,getDB:()=>Qs,getEmotionStylesheet:()=>og,getExtendsInElement:()=>qp,getExtendsStack:()=>ys,getExtendsStackRegistry:()=>ml,getFrequencyInArray:()=>Md,getHashedExtend:()=>vs,getImportMapScript:()=>Mh,getInObjectByPath:()=>mp,getLocalStorage:()=>Lp,getNev:()=>kp,getPageMetadata:()=>Yh,getParentStateInKey:()=>Ll,getPath:()=>zs,getQuery:()=>ei,getRef:()=>Rh,getRoot:()=>Hs,getRootContext:()=>Gs,getRootData:()=>qs,getRootState:()=>Ws,getRootStateInKey:()=>Dl,getSpreadChildren:()=>Xp,global:()=>Fd,hasFunction:()=>Un,hasHandlerPlugin:()=>Wn,hasOwnProperty:()=>lp,inheritChildExtends:()=>vl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>As,inheritRecursiveChildExtends:()=>_l,init:()=>po,initProps:()=>th,is:()=>Ge,isArray:()=>P,isBoolean:()=>il,isContextComponent:()=>Yp,isCyclic:()=>bp,isDOMNode:()=>He,isDate:()=>ll,isDefined:()=>qe,isDevelopment:()=>Sr,isEmpty:()=>cl,isEmptyObject:()=>cp,isEqualDeep:()=>ul,isFunction:()=>O,isHtmlElement:()=>Jo,isLocal:()=>Sp,isMethod:()=>Fh,isMobile:()=>Ip,isNode:()=>rr,isNot:()=>Dd,isNotProduction:()=>nn,isNull:()=>al,isNumber:()=>Ut,isObject:()=>S,isObjectLike:()=>re,isPhoto:()=>zh,isProduction:()=>wr,isStaging:()=>wp,isState:()=>lh,isString:()=>k,isStringFunction:()=>Op,isTest:()=>pl,isTesting:()=>_p,isUndefined:()=>$e,isUniversallyReservedKey:()=>Dh,isValidHtmlTag:()=>Np,joinArrays:()=>Mn,jointStacks:()=>Wp,keys:()=>Xl,lastLevel:()=>Kc,lastPathname:()=>Gc,loadCssFile:()=>qh,loadJavascript:()=>Gh,loadJavascriptFile:()=>Uh,loadJavascriptFileEmbedSync:()=>Hh,loadJavascriptFileSync:()=>Wh,loadRemoteCSS:()=>Kh,loadRemoteScript:()=>Qn,log:()=>$h,logGroupIf:()=>$p,logIf:()=>Pp,lookdown:()=>Ah,lookdownAll:()=>Eh,lookup:()=>Ch,lowercaseFirstLetter:()=>Qr,makeObjectWithoutPrototype:()=>up,map:()=>sp,mapStringsWithContextComponents:()=>ws,matchRoute:()=>Bm,matchesComponentNaming:()=>qt,memoize:()=>Ep,merge:()=>ye,mergeSharedLibraries:()=>ri,nextElement:()=>Ys,normalizeLibraryKey:()=>eo,objectToString:()=>cs,objectizeStringProperty:()=>Ss,overwrite:()=>fs,overwriteDeep:()=>Ke,overwriteShallow:()=>rn,overwriteState:()=>fh,parse:()=>Yl,parseDeep:()=>Ns,parseQuery:()=>Vm,parseRoutePattern:()=>Nm,pickupElementFromProps:()=>Al,pickupPropsFromElement:()=>Cl,previousElement:()=>Js,propExists:()=>Qp,propertizeElement:()=>El,propertizeUpdate:()=>Zp,reinit:()=>sy,remove:()=>b_,removeChars:()=>tg,removeCookie:()=>Dp,removeDuplicateProps:()=>Os,removeDuplicatesInArray:()=>Nn,removeFromArray:()=>Nd,removeFromObject:()=>dp,removeNestedKeyByPath:()=>hp,removeValueFromArray:()=>ts,removeValueFromArrayAll:()=>Ud,reorderArrayByValues:()=>Hd,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>Zd,resolveAsset:()=>Ye,resolveHandler:()=>Hn,resolveSharedLibraries:()=>Zh,returnValueAsText:()=>Tl,router:()=>Yt,runGuards:()=>zm,runPluginHook:()=>kt,scratchSystem:()=>mi,scratchUtils:()=>pn,self:()=>jd,set:()=>oo,setActiveRootState:()=>Us,setCookie:()=>Fp,setHashedExtend:()=>gl,setInObjectByPath:()=>gp,setLocalStorage:()=>Mp,setNodeStyles:()=>Kl,setProps:()=>Th,setPropsPrototype:()=>Es,spotByPath:()=>Bs,srcsetFor:()=>to,stringIncludesAny:()=>os,stringToObject:()=>ap,swapItemsInArray:()=>Bd,syncProps:()=>Ts,toCamelCase:()=>ni,toDashCase:()=>oi,toDescriptionCase:()=>ng,toTitleCase:()=>rg,toggleFullscreen:()=>Lh,triggerEventOn:()=>kr,triggerEventOnUpdate:()=>ph,trimStringFromSymbols:()=>Yd,unstackArrayOfObjects:()=>es,update:()=>eh,updateProps:()=>rh,variables:()=>Zs,verbose:()=>Jn,warn:()=>Xs,window:()=>A});D();D();var YI=T(),h1=(e=YI,t)=>{let r=S(t.localFile)?t.localFile:{},n=ge(r.designSystem||{});return fe(e,n)},JI={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},po=(e,t=JI)=>{let r=h1(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=oo({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=n);let a=rc(i.font,i.files),l=i.useReset,c=i.useVariable,u=i.useFontImport,d=i.useSvgSprite,f=e.svg,p=i.useIconSprite,h=e.icons;if(u&&we(a),c&&(we({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];we(m)}l&&we(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];we(m)}return(f||d)&&Rc(i.svg,{document:t.document}),(h||p)&&$c(i.icons,{document:t.document}),i},Qc={},sy=(e,t=Qc)=>{let r=h1(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=oo({verbose:!1,...r});if(!t.preventInject){if(we({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];we(i)}we(s.reset)}return s},iy=(e,t=Qc)=>{we(e)},ZI=(e,t=Qc)=>{let r=t.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(we({[r]:e.CSS_VARS}),e.CSS_MEDIA_VARS){let o={};for(let s in e.CSS_MEDIA_VARS)s.startsWith("@media")?o[s]={[n]:e.CSS_MEDIA_VARS[s]}:o[s]=e.CSS_MEDIA_VARS[s];we(o)}};var QI=(e,t=Qc)=>{};D();var g1=e=>!e||e==="srcdoc"||e==="about:srcdoc"||e==="blank"||e==="about:blank"?"/":e,ay={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Fi=(e,t)=>{if(!t)return e;let r=Array.isArray(t)?t:t.split("."),n=e;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},m1=(e,t)=>{if(t.router===!1)return;t.router===!0?t.router=ay:t.router=ye(t.router||{},ay);let r=t.router,n=async(s,i)=>{let a=s.context?.window||A;if(!a.location)return;let{pathname:l,search:c,hash:u}=a.location;l=g1(l);let d=l+c+u,f=s;if(r.customRouterElement){let p=Fi(s,r.customRouterElement);p&&(f=p,s.routes&&(f.routes=s.routes))}f.routes&&await Yt(d,f,{},{initialRender:!0,pushState:!1})},o=!$e(e.onRenderRouter);return r&&r.initRouter&&!o&&(e.onRenderRouter=n),eF(t,r),r},ly=(e,t)=>{if(t.router===!1)return;let r=t.router||ay;if(!r.popState)return;let n=t.utils&&t.utils.router?t.utils.router:Yt,o=t.window||A,s=async i=>{let{pathname:a,search:l,hash:c}=o.location;a=g1(a);let u=a+l+c,d=e;if(r.customRouterElement){let f=Fi(e,r.customRouterElement);f&&(d=f,e.routes&&(d.routes=e.routes))}await d.call("router",u,d,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>o.removeEventListener("popstate",s))},eF=(e,t)=>{let{components:r}=e;if(t&&t.injectRouterInLinkComponent)return fe(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};D();var cy=A&&A.location?A.location.host.includes("dev."):Sr(),y1=cy?"http://localhost:8080/get":"https://api.symbols.app/get",tF={endpoint:y1},b1=async(e,t=tF)=>{let r=t.endpoint||y1,n=t.serviceRoute?P(t.serviceRoute)?t.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):t.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":e,"X-Metadata":t.metadata}}),await o.json()}catch(s){if(O(t.onError))return t.onError(s);console.error(s)}},rF=async(e,t)=>{let{editor:r}=t;if(r&&r.remote){let n=await b1(e,r),o=cy||t.isDevelopment?Wt(n):Wt(n.releases[0]);r.serviceRoute?P(r.serviceRoute)?r.serviceRoute.forEach(s=>{Ke(t[s],o[s.toLowerCase()])}):Ke(t[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{Ke(t[s],o[s.toLowerCase()])})}return t},nF=async(e,t,r)=>{let{editor:n}=t;if(n&&n.remote){let o=await b1(e,n),s=cy||t.isDevelopment?Wt(o):Wt(o.releases[0]);r(s)}},x1=async(e,t)=>{if(e&&t.editor)try{t.editor.async||await rF(e,t)}catch(r){console.error(r)}},v1=(e,t,r,n)=>{if(t&&r.editor)try{r.editor.async&&nF(t,r,n||(o=>{let s=o.designSystem;S(s)&&r.utils.init(s),S(o.state)&&e.state.set(o.state)}))}catch(o){console.error(o)}};var ji=e=>{if(!e||e.__destroyed)return!1;let t=e.context;if(!t)return e.__destroyed=!0,!1;if(Array.isArray(t.__teardowns)){for(let r of t.__teardowns)try{r()}catch(n){console.error("[smbls] destroy teardown error:",n)}t.__teardowns.length=0}try{_n(e)}catch(r){console.error("[smbls] dispose error:",r)}if(t.fetch&&t.fetch.__resolved&&delete t.fetch.__resolved,t.fetch&&t.fetch.__resolving&&delete t.fetch.__resolving,t.db&&t.db.__resolved&&delete t.db.__resolved,t.db&&t.db.__resolving&&delete t.db.__resolving,t.analyze?.destroy)try{t.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return e.__destroyed=!0,!0};D();var oF={title:{tag:"title"},description:{tag:"meta",attr:"name",key:"description"},keywords:{tag:"meta",attr:"name",key:"keywords"},robots:{tag:"meta",attr:"name",key:"robots"},author:{tag:"meta",attr:"name",key:"author"},canonical:{tag:"link",attr:"rel",key:"canonical",valueAttr:"href"},image:{tag:"meta",attr:"property",key:"og:image"},url:{tag:"meta",attr:"property",key:"og:url"},siteName:{tag:"meta",attr:"property",key:"og:site_name"},type:{tag:"meta",attr:"property",key:"og:type"},locale:{tag:"meta",attr:"property",key:"og:locale"},"og:title":{tag:"meta",attr:"property",key:"og:title"},"og:description":{tag:"meta",attr:"property",key:"og:description"},"og:image":{tag:"meta",attr:"property",key:"og:image"},"og:url":{tag:"meta",attr:"property",key:"og:url"},"og:type":{tag:"meta",attr:"property",key:"og:type"},"og:site_name":{tag:"meta",attr:"property",key:"og:site_name"},"og:locale":{tag:"meta",attr:"property",key:"og:locale"},"twitter:card":{tag:"meta",attr:"name",key:"twitter:card"},"twitter:title":{tag:"meta",attr:"name",key:"twitter:title"},"twitter:description":{tag:"meta",attr:"name",key:"twitter:description"},"twitter:image":{tag:"meta",attr:"name",key:"twitter:image"},"twitter:site":{tag:"meta",attr:"name",key:"twitter:site"},"theme-color":{tag:"meta",attr:"name",key:"theme-color"}},sF=e=>{if(e.tag==="link")return`link[${e.attr}="${e.key}"]`;if(e.tag&&!e.attr&&!e.key)return e.tag;if(e.tag&&e.attr&&e.key)return`${e.tag}[${e.attr}="${e.key}"]`},eu=(e,t,r)=>{if(!e)return{};let n=O(e)?de(e,t,r):{...e};if(!S(n))return{};for(let o in n){let s=n[o];O(s)&&(s=de(s,t,r)),k(s)&&s.includes("{{")&&t?.call&&(s=t.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var iF=(e,t)=>{let r=t.createElement(e.tag);return e.attr&&r.setAttribute(e.attr,e.key),(t.head||t.querySelector("head")).appendChild(r),r},_1=e=>{let t=5381,r=String(e);for(let n=0;n<r.length;n++)t=(t*33^r.charCodeAt(n))>>>0;return t.toString(36)},uy=(e,t,r,n)=>{let o=e.head||e.querySelector("head");if(!o)return;let s=new Map;for(let a of o.querySelectorAll(`[${t}]`))s.set(a.getAttribute(t),a);let i=new Set;for(let a of r)i.add(a);for(let[a,l]of s)i.has(a)||l.remove();for(let a of r){if(s.has(a))continue;let l=n(a);l&&(l.setAttribute(t,a),o.appendChild(l))}},tu=(e,t)=>{if(!(!S(e)||!t)){for(let r in e){let n=e[r];if(n==null||r==="jsonLd"||r==="styles"||r==="scripts")continue;let o=oF[r];if(!o)continue;let s=sF(o),i=t.querySelector(s)||iF(o,t);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}if(Array.isArray(e.jsonLd)){let r=e.jsonLd.filter(o=>o!=null).map(o=>k(o)?o:JSON.stringify(o)),n=r.map(_1);uy(t,"data-smbls-jsonld",n,o=>{let s=n.indexOf(o),i=t.createElement("script");return i.setAttribute("type","application/ld+json"),i.textContent=r[s],i})}if(Array.isArray(e.styles)){let r=e.styles.filter(o=>o!=null&&String(o).trim()),n=r.map(_1);uy(t,"data-smbls-style",n,o=>{let s=n.indexOf(o),i=t.createElement("style");return i.textContent=String(r[s]),i})}if(Array.isArray(e.scripts)){let r=e.scripts.filter(o=>o&&(k(o)?o.trim():o.src)),n=r.map(o=>k(o)?o:String(o.src));uy(t,"data-smbls-script",n,o=>{let s=n.indexOf(o),i=r[s],a=t.createElement("script");return k(i)?a.setAttribute("src",i):(i.src&&a.setAttribute("src",i.src),i.type&&a.setAttribute("type",i.type),i.async&&(a.async=!0),i.defer&&(a.defer=!0),i.integrity&&a.setAttribute("integrity",i.integrity),i.crossorigin&&a.setAttribute("crossorigin",i.crossorigin),i.referrerpolicy&&a.setAttribute("referrerpolicy",i.referrerpolicy),i.nomodule&&(a.noModule=!0),i.body&&(a.textContent=String(i.body))),a})}}};var w1={name:"helmet",create(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=eu(t,e,e.state);tu(n,r)},update(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=eu(t,e,e.state);tu(n,r)}};sn();var S1=(e,t,r,n)=>{e&&Ls(e,t,r,n)},k1=(e,t,r)=>{if(!e)return;let n=t.context?.document||typeof document<"u"&&document;if(!n)return;let o=eu(e,t,r);tu(o,n)},C1=async(e,t)=>{if(!e)return;let r={tag:"fragment",...e},n=async()=>{await t.set(r,{preventDefineUpdate:"$router"})};return t.lazyLoad?window.requestAnimationFrame(n):await n(),r},ho={routes:e=>e,metadata:k1,fetch:S1,$router:C1},A1=(e={})=>{let t={routes:r=>r};return e.metadata!==!1&&(t.metadata=k1),e.fetch!==!1&&(t.fetch=S1),e.router!==!1&&(t.$router=C1),t};var fy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},ru={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},nu={...fy,router:ru},aF={state:{},pages:{},components:{},router:ru,define:ho},Mr=aF;D();D();var E1=(e,t)=>re(e.extends)?e.extends:[];D();var P1=e=>{let t=typeof window<"u"?window:globalThis||{};t.document||(t.document={body:{}});let r=typeof document<"u"?document:t.document;e.document=e.document||r;let n=e.window;return n&&n!==t&&typeof n.URL!="function"?(typeof console<"u"&&console.warn&&console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub"),e.window=t):e.window=n||t,e.window},O1=(e="smbls")=>{let t={};for(let r in co)Object.prototype.hasOwnProperty.call(co,r)&&(qt(r)?t[`smbls.${r}`]=co[r]:t[r]=co[r]);return t},$1=e=>e.components?{...O1(),...e.components}:O1(),I1=e=>({...Ii,...Wm,...pn,...e.utils,...e.snippets,...e.functions}),F1=e=>({...e.methods||{},require:e.utils.require,requireOnDemand:e.utils.requireOnDemand,router:e.utils.router}),T1={},j1=async({dependencies:e,dependenciesOnDemand:t,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Or[s]||Zn(i)||"esmsh"),!e)return null;let a=!1;for(let l in e){a=!0;break}if(!a)return null;for(let l in e){let c=e[l];if(t&&t[l])continue;let u=Sr()&&n?`?${Math.random()}`:"",d=Et(l,c,o)+u;try{if(T1[l])continue;T1[l]=!0,await Promise.race([Qn(d,{document:r,type:"module"}),new Promise((f,p)=>setTimeout(()=>p(new Error(`Timeout loading ${l}`)),1e4))])}catch(f){if(console.error(`Failed to load ${l} from ${o}:`,f),o!=="symbols")try{let p=Et(l,c,"symbols")+u;await Promise.race([Qn(p,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${l}`)),2e4))]),console.log(`Successfully loaded ${l} from fallback (symbols.ls)`)}catch(p){console.error(`Failed to load ${l} from fallback:`,p)}}}return e},D1=async(e,t)=>{let r=t.window||window,n=t.cdnProvider||Zn(t.symbolsConfig)||"esmsh",o=async i=>async(a,l)=>{let u=(i.window||window).packages[a];return typeof u=="function"?u():u},s=async i=>async(a,l=n)=>{let{dependenciesOnDemand:c}=i,u=i.document||document,d=i.window||window;if(!d.packages[a]){let f=Sr()?`?${Math.random()}`:"";if(c&&c[a]){let p=c[a],h=Et(a,p,l)+f;try{await i.utils.loadRemoteScript(h,{window:d,document:u})}catch(g){if(console.error(`Failed to load ${a} from ${l}:`,g),l!=="symbols"){let m=Et(a,p,"symbols")+f;await i.utils.loadRemoteScript(m,{window:d,document:u})}}}else{let p=Et(a,"latest",l)+f;try{await i.utils.loadRemoteScript(p,{window:d,document:u})}catch(h){if(console.error(`Failed to load ${a} from ${l}:`,h),l!=="symbols"){let g=Et(a,"latest","symbols")+f;await i.utils.loadRemoteScript(g,{window:d,document:u})}}d.packages[a]="loadedOnDeman"}}return await d.require(a,l)};r.packages?r.packages=ye(r.packages,e):r.packages=e,r.require||(t.utils.require=await o(t),r.require=t.utils.require),r.requireOnDemand||(t.utils.requireOnDemand=await s(t),r.requireOnDemand=t.utils.requireOnDemand)},lF=/\s+/g,L1=(e,t)=>typeof e=="function"?e(t,t?.state,t?.context):e,cF=(e,t)=>{let r="";for(let n in e){let o=e[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${L1(o,t)}`)}return r},uF=(e,t,r)=>{if(!e)return;let{key:n}=t;e===!0&&(e=t.classlist={key:n}),typeof e=="string"&&(e=t.classlist={default:e}),e!==null&&typeof e=="object"&&!Array.isArray(e)&&(e=cF(e,t));let o=e.replace(lF," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},fF=()=>(e,t,r)=>{let n=L1(e,t);if(e){let{__ref:o}=t;o.__class.style=n}M1()(t.classlist,t,t.state,!0)},M1=()=>(e,t,r,n)=>{if(t.style&&!n)return;let{__ref:o}=t,{__class:s,__classNames:i}=o;if(!(e===null||typeof e!="object"||Array.isArray(e))){t.class&&(i.classProps=t.class),t.attr?.class&&(i.class=t.attr.class);for(let a in s){let l=s[a];if(!l){delete i[a];continue}let c;typeof l=="string"||typeof l=="number"?c=l:typeof l=="boolean"?c=t.key:c=Ir(l),i[a]=c}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];t.node&&uF(i,t,t.node)}},dF=()=>({style:fF(),classlist:M1()}),pF=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],R1=!1,N1=(e,t)=>{let r=t.document||(t.parent&&t.parent.documentElement?t.parent:null)||document,n=t.initOptions||{},o=t.registry||dF(),s=t.designSystem?fe(ge(t.designSystem),Ri):ge(Ri),i={};for(let p of pF)t[p]!==void 0&&(i[p]=t[p]);let a,l=R1&&!t.skipDesignSystemInit,c=l?`[data-smbls-app="${e}"]`:":root";t.scopeSelector=c;let u=c===":root"?":root:not([data-theme])":`${c}:not([data-theme])`;if(t.skipDesignSystemInit){if(a=T(e)||T(),a&&(a.document=r),a?.CSS_VARS){Oe(a);try{if(we({[c]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let p={};for(let h in a.CSS_MEDIA_VARS)h.startsWith("@media")?p[h]={[u]:a.CSS_MEDIA_VARS[h]}:p[h]=a.CSS_MEDIA_VARS[h];we(p)}}finally{_e()}}}else if(l){let p=yg(e,s,{cleanBase:!0});for(let g in i)p[g]=i[g];p.document=r;let h=e.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);t.cssPrefix=h,p.varPrefix=h,Oe(p);try{a=po(p,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...nu,...i,...n})}finally{_e()}}else{let p=T();p&&(p.document=r),a=po(s,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...nu,...i,...n}),a&&a!==p&&(a.document=r),R1=!0}let d=a?.CONFIG||a,f=d?.font;if(f){Oe(d);try{for(let p in f){let h=f[p];if(!h?.fontFace)continue;let g=Array.isArray(h.fontFace)?h.fontFace:[h.fontFace];for(let m of g)typeof m=="string"&&m.includes("font-family")&&we(`@font-face { ${m} }`)}}finally{_e()}}return[a,o]},B1=(e,t)=>{let r={};t.state&&fe(r,t.state),e&&e.state&&fe(r,e.state);let n=t.polyglot;if(n?.translations){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(n.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=o||r.lang||n.defaultLang||"en";o&&o!==r.lang&&(r.lang=o);let i=n.translations[s];if(i&&typeof i=="object")for(let l in i)r[l]=i[l];let a=new Set(n.languages||[]);for(let l in n.translations)!a.has(l)&&r[l]===void 0&&(r[l]=n.translations[l])}return r.isRootState=!0,ge(r)},V1=(e,t)=>{S(e.routes)&&S(t.pages)&&ye(e.routes,t.pages);let r=e.routes||t.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n==="index"?"":n;r["/"+o]=r[n],delete r[n]}return r},z1=e=>{ri(e,e.sharedLibraries)};D();var W1="smbls_lang",hF="smbls_t_",gF="smbls_tv_",go={get(e){try{return window?.localStorage.getItem(e)}catch{return null}},set(e,t){try{window?.localStorage.setItem(e,t)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(e){try{window?.localStorage.removeItem(e)}catch(t){console.warn("[polyglot] localStorage unavailable:",t.message)}}},Di={};function Li(){let e=this?.context,t=e?.polyglot;return(this?.state?.root||e?.state?.root)?.lang||t?.defaultLang||"en"}function su(){let e=this?.context?.polyglot;return e?e.languages?e.languages:e.translations?Object.keys(e.translations):[]:[]}var ou=(e,t)=>{if(!e||!t)return;if(e[t]!==void 0)return e[t];if(t.indexOf(".")===-1)return;let r=t.split("."),n=e;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},U1=(e,t,r)=>{let n=t.lastIndexOf(".");if(n===-1)return e[t+"_"+r];let o=ou(e,t.substring(0,n));if(o!=null)return o[t.substring(n+1)+"_"+r]};function iu(e,t){if(!e)return"";let r=this?.context,n=r?.polyglot,o=t||this.call("getActiveLang"),s=this?.state;if(s){let c=U1(s,e,o);if(c!==void 0)return c}if(n?.translations){let c=n.translations[o];if(c){let u=ou(c,e);if(u!==void 0)return u}}let a=(s?.root||r?.state?.root)?.translations;if(a){let c=a[o];if(c){let u=ou(c,e);if(u!==void 0)return u}}let l=n?.defaultLang||"en";if(s){let c=U1(s,e,l);if(c!==void 0)return c}if(n?.translations){let c=n.translations[l];if(c){let u=ou(c,e);if(u!==void 0)return u}}return e}async function au(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!r||!n)return;let o=r.storagePrefix||hF,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):gF);if(r.translations&&r.translations[e]&&!r.fetch||!r.fetch||r._fetchFailed?.[e])return;if(!n.translations?.[e]){let l=go.get(o+e);if(l)try{let c=JSON.parse(l),u={translations:{...n.translations||{}}};u.translations[e]=c,n.update&&n.update(u)}catch(c){console.warn("[polyglot] Failed to apply language update:",c.message)}}let i=(r.storagePrefix||"smbls")+":"+e;if(Di[i])return Di[i];let a=this;return Di[i]=(async()=>{try{let l=r.fetch,c=parseInt(go.get(s+e),10)||0,u,d,f;if(O(l)){let h=await l(e,c,a);if(!h||h.changed===!1)return;u=h.translations||h.data||h,d=h.version||0,f=!0}else if(S(l)){let h=a.getDB||(()=>t.fetch),g=O(h)?await h.call(a):t.fetch;if(!g)return;let m=l.rpc||l.from||"get_translations_if_changed",y={p_lang:e,p_cached_version:c,...l.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[e]=!0,b.error;let v=b.data;if(!v||!v.changed)return;u=v.translations||{},d=v.version||0,f=!0}else return;if(!f||!u)return;go.set(o+e,JSON.stringify(u)),d&&go.set(s+e,String(d));let p={translations:{...n.translations||{}}};p.translations[e]=u,n.update&&n.update(p)}catch(l){if(r.verbose!==!1){let c=l?.message||l?.details||(typeof l=="object"?JSON.stringify(l):String(l));console.warn("[polyglot] Failed to load translations for",e,"-",c)}}finally{delete Di[i]}})(),Di[i]}async function lu(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!n||this.call("getActiveLang")===e)return;let o=r?.storageLangKey||W1;go.set(o,e),r?.fetch&&await this.call("loadTranslations",e),t?.state&&(t.state.lang=e);let s=r?.translations?.[e],i={lang:e};if(s&&typeof s=="object")for(let l in s){let c=s[l];(Array.isArray(c)||typeof c=="string"||typeof c=="number")&&(i[l]=c)}if(n.update&&n.update(i),s&&typeof s=="object")for(let l in s){let c=s[l];if(c&&typeof c=="object"&&!Array.isArray(c)&&n[l]&&typeof n[l]=="object"&&!Array.isArray(n[l]))for(let u in c)n[l][u]=c[u]}let a=this?.context?.document||globalThis.document;if(a&&s){let l=a.querySelectorAll("[data-key]");for(let c of l){let u=c.ref;if(!u)continue;let d=u.__ref?.__exec?.text;if(typeof d=="string"&&d.includes("{{"))try{let f=u.call("replaceLiteralsWithObjectFields",d,u.state);f!=null&&c.textContent!==f&&(c.textContent=f)}catch{}}}}async function cu(e,t,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[t]&&(s.translations[t][e]=r),o?.translations?.[t]&&(o.translations[t][e]=r),o?.fetch&&S(o.fetch)){let i=this.getDB||(()=>n.fetch),a=O(i)?await i.call(this):n.fetch;if(!a)return;let l=o.fetch.table||"translations",c=await a.upsert({from:l,data:{key:e,lang:t,text:r}});if(c?.error)throw c.error;return c.data}}async function dy(){let e=this?.context,t=e?.polyglot;if(!t)return;let r=this?.state?.root||e?.state?.root;if(!r)return;let n=t.storageLangKey||W1,s=go.get(n)||t.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),t.fetch&&!(t.translations&&t.translations[s])&&await this.call("loadTranslations",s)}function uu(e){try{let t=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||t?.defaultLang||"en",o=this?.state;if(!o)return"";let s=e.lastIndexOf(".");if(s===-1)return o[e+n]??"";let i=e.substring(0,s).split("."),a=o;for(let l=0;l<i.length;l++){if(a==null)return"";a=a[i[l]]}return a==null?"":a[e.substring(s+1)+n]??""}catch{return""}}var fu={name:"polyglot",render(e){e.parent&&e.parent.parent||e.__polyglotInitialized||(e.__polyglotInitialized=!0,dy.call(e))}};var Mi={polyglot:iu,getLocalStateLang:uu,getActiveLang:Li,getLang:Li,setLang:lu,getLanguages:su,loadTranslations:au,upsertTranslation:cu};sn();var du={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},pu=e=>parseFloat(e.toFixed(4)),mF=(e,t,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=t,l=Math.abs(o),c=n+l+s,u=r!==void 0?r:c/i*e,d=u/e,f=c/i,p=(n-a+s/2)/i-(d-f)/2,h=(l+s/2)/i-(d-f)/2;return{fontSize:`${pu(e/16)}rem`,lineHeight:`${pu(u)}px`,capHeightTrim:`${pu(-p)}em`,baselineTrim:`${pu(-h)}em`}},yF=(e,t)=>{if(typeof e=="number")return e;let r=t?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(e).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(e);return isNaN(o)?null:typeof e=="string"&&e.endsWith("rem")?o*(r.typography?.browserDefault||16):o},bF=(e,t)=>{let n=t?.designSystem?.font_family||{};if(e){let s=n[e];if(s?.metrics)return s.metrics;let i=String(e).toLowerCase().replace(/['"]/g,"").trim();if(du[i])return du[i]}let o=n.default||Object.keys(n)[0];if(o){let s=n[o];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(du[a])return du[a]}}return null},H1=(e,t,r,n)=>{if(!e)return;let o=yF(t.fontSize,n);if(!o)return;let s=bF(t.fontFamily,n);if(!s)return;let i=t.lineHeight?parseFloat(t.lineHeight):void 0,{lineHeight:a,capHeightTrim:l,baselineTrim:c}=mF(o,s,i),u={};return t.lineHeight||(u.lineHeight=a),u["::before"]={content:'""',marginBottom:l,display:"table"},u["::after"]={content:'""',marginTop:c,display:"table"},u},q1={name:"capsize",init(e){e.useCapsize===void 0&&e.fontSize&&(e.useCapsize=!0)}};var Ni={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},yt=Object.create(null);for(let e in Ni)yt[Ni[e]]=e;var py=Object.create(null);for(let e in Ni){let t=Ni[e];if(py[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${py[t]}"`);py[t]=e}var Nr=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Bi(e){return/^[A-Z]/.test(e)}function Vi(e){return/^[:@.!$>&]/.test(e)||e.startsWith("> ")}function xF(e){return e.trim().split(/\s+/).filter(Boolean)}function G1(e){return e.replace(/_/g," ")}function vF(e){if(!e||typeof e!="string")return{};let t={},r=xF(e);for(let n of r){if(n.startsWith("!")){let l=n.slice(1),c=yt[l]||l;t[c]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=yt[n]||n;t[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=yt[s]||s;if(i.includes(",")){t[a]=i.split(",").map(G1);continue}t[a]=G1(i)}return t}function zi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?zi(r):r});let t={};for(let r in e){let n=e[r];if(Bi(r)){t[r]=hy(n);continue}let o=yt[r]||r;if(Vi(r)&&o===r){t[r]=hy(n);continue}if(Nr.has(o)||Nr.has(r)){t[o]=n;continue}t[o]=hy(n)}return t}function hy(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?zi(t):t}):typeof e=="object"?zi(e):e}function Ui(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Ui(r):r});let t={};if(typeof e.in=="string"){let r=vF(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Bi(r)){t[r]=gy(n);continue}let o=yt[r]||r;if(Vi(r)&&o===r){t[r]=gy(n);continue}if(Nr.has(o)||Nr.has(r)){t[o]=n;continue}t[o]=gy(n)}return t}function gy(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Ui(t):t}):typeof e=="object"?Ui(e):e}function _F(e){let t="",r=0;for(;r<e.length;){if(e[r]==="\\"&&r+1<e.length){let n=e[r+1];if(n===","||n==="_"||n==="\\"){t+=n,r+=2;continue}}e[r]==="_"?t+=" ":t+=e[r],r++}return t}function wF(e){let t=[],r="",n=0;for(;n<e.length;){if(e[n]==="\\"&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}if(e[n]===","){t.push(r),r="",n++;continue}r+=e[n],n++}return t.push(r),t}function K1(e){return e.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(e)?Number(e.slice(1)):_F(e)}function my(e){if(!e||typeof e!="string")return{};let t={},r=e.trim().split(/\s+/).filter(Boolean);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),u=yt[c]||c;t[u]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=yt[n]||n;t[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=yt[s]||s,l=wF(i);if(l.length>1){t[a]=l.map(K1);continue}t[a]=K1(i)}return t}function Wi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Wi(r):r});let t={};if(typeof e.in=="string"){let r=my(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Bi(r)){typeof n=="string"?t[r]=my(n):t[r]=yy(n);continue}let o=yt[r]||r;if(Vi(r)&&o===r){typeof n=="string"?t[r]=my(n):t[r]=yy(n);continue}if(Nr.has(o)||Nr.has(r)){t[o]=n;continue}t[o]=yy(n)}return t}function yy(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Wi(t):t}):typeof e=="object"?Wi(e):e}var SF={shorten:zi,stringify:Ui,stringifyFurther:Wi};function kF(e,t){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>t(n));let r={};for(let n in e){let o=e[n];r[n]=o&&typeof o=="object"?t(o):o}return r}var CF=["components","pages","snippets"],hu={name:"shorthand",prepareContext(e){let t=e.shorthand;if(!t)return;let n=SF[t===!0?"shorten":t];if(n){for(let o of CF)e[o]&&(e[o]=kF(e[o],n));e.app&&typeof e.app=="object"&&(e.app=n(e.app))}}};var AF=0,EF=()=>`${Date.now().toString(36)}-${(AF++).toString(36)}`,ae=(e,t,r={})=>({id:EF(),ts:Date.now(),type:e,level:t,...r}),OF=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},mo=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:OF(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null;var yo=e=>e?.context?.analyze,TF={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},RF=(e,{category:t,type:r,level:n})=>o=>{let s=yo(o);!s||!s.shouldCapture(t)||s.emit(ae(r,n,{hook:e,element:mo(o)}))},X1=e=>(t,r)=>{let n=yo(t);!n||!n.shouldCapture("state")||n.emit(ae("state","debug",{hook:e,element:mo(t),changedKeys:r?.changedKeys||null}))},Hi={name:"analyze",error(e,t){let r=yo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(ae("error","error",{hook:t?.hook||"error",element:mo(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=yo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(ae("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=yo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=yo(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(ae("update","debug",{hook:"update",element:mo(e),durationMs:r}))},beforeStateUpdate:X1("beforeStateUpdate"),stateUpdate:X1("stateUpdate")};for(let[e,t]of Object.entries(TF))Hi[e]=RF(e,t);D();var gu={error:0,warn:1,info:2,debug:3,trace:4};var by=(e,t)=>{let r=gu[e],n=gu[t];return r==null||n==null?!0:r<=n},mu=e=>gu[e]!=null?e:"warn";D();var yu=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var PF=(e,t)=>{for(let r of t)if(r instanceof RegExp){if(r.test(e))return!0}else if(typeof r=="string"&&e.toLowerCase().includes(r.toLowerCase()))return!0;return!1},$F=(e,t)=>{if(t!=="redact"){if(t==="hash"){let r=0,n=String(e);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},xy=(e,t,r,n)=>{if(n>6||e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(s=>xy(s,t,r,n+1));let o={};for(let s of Object.keys(e))if(PF(s,t)||yu.test(s)){let a=$F(e[s],r);a!==void 0&&(o[s]=a)}else o[s]=xy(e[s],t,r,n+1);return o},vy=(e=[],t="mask")=>{let r=Array.isArray(e)?e:[e];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...h}=n,g=xy(h,r,t,0);return{id:o,ts:s,type:i,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...g}}};var Y1=e=>{let t=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,n=e.config.buildHash||null,o=e.config.appId||null;return s=>{if(!s)return s;let i=e.context?.routerOptions?.currentRoute||null,a=A,l=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:t,app:{id:o,build:n,route:i},meta:{ua:r,viewport:l}}}},J1=()=>e=>{if(!e)return e;if(e.element&&typeof e.element=="object"){let t=e.element;(t.node||t.parent||t.__ref)&&(e={...e,element:{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,tag:t.tag||null,component:t.component||null}})}return e.error instanceof Error&&(e={...e,error:{name:e.error.name,message:e.error.message,stack:e.error.stack}}),e},Z1=(e=1e3,t=500)=>{let r=new Map;return n=>{if(!n)return n;let o=`${n.type}:${n.level}:${n.message||""}:${n.error?.message||""}`,s=r.get(o),i=n.ts||Date.now();if(s&&i-s<e)return null;if(r.set(o,i),r.size>t){let a=Math.ceil(t/10),l=0;for(let c of r.keys()){if(l++>=a)break;r.delete(c)}}return n}},Q1=e=>t=>{if(!t)return t;let r=e[t.type];return r==null||r>=1?t:Math.random()>r?null:t},eC={redact:e=>vy(e.config.redact||[],e.config.maskStrategy),enrich:e=>Y1(e),summarize:()=>J1(),dedupe:e=>Z1(e.config.cache?.dedupeWindowMs||1e3),sample:e=>Q1(e.config.sample||{})},IF=(e,t)=>{if(typeof e=="function")return e;if(typeof e=="string"){let r=eC[e];return r?r(t):null}return null},_y=e=>{let t=e.config,r=Array.isArray(t.transformers)?t.transformers.slice():[],n=r.findIndex(s=>s==="redact");n>=0&&r.splice(n,1);let o=[];t.redact!==!1&&o.push(eC.redact(e));for(let s of r){let i=IF(s,e);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let l=a(i);if(l==null)return null;if(Array.isArray(l)){let c=o.slice(o.indexOf(a)+1),u=[];for(let d of l){let f=d,p=!1;for(let h of c)if(f=h(f),f==null){p=!0;break}!p&&f!=null&&u.push(f)}return u}i=l}return i}};D();D();var bu=typeof A<"u"&&typeof A.document<"u",FF=5e3,jF=50,DF=3,LF=1500,MF=1e3,tC=e=>e?e.level==="error"||e.type==="error"?"bug":e.type==="network"?"network":e.type==="console"?e.level==="error"||e.level==="warn"?"bug":"log":e.level==="warn"?"bug":e.level==="info"?"log":"verbose":"verbose",NF=e=>{try{return JSON.stringify(e)}catch{return null}},BF=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},VF=e=>{if(!e)return null;let t=String(e),r;return(r=t.match(/Edg\/([\d.]+)/))?{name:"Edge",version:r[1]}:(r=t.match(/OPR\/([\d.]+)/))?{name:"Opera",version:r[1]}:(r=t.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:r[1]}:/Chrome\/([\d.]+)/.test(t)&&/Safari\//.test(t)?(r=t.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:r[1]}):(r=t.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:r[1]}:{name:null,version:null}},zF=()=>{if(!bu)return null;try{let e=A.document?.documentElement?.getAttribute("data-theme")||null,t=typeof A.matchMedia=="function"?A.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:e||(t?"dark":t===!1?"light":null),forced:e||null,prefers:t==null?null:t?"dark":"light"}}catch{return null}},UF=()=>{if(!bu)return null;let e=A.location,t=typeof navigator<"u"?navigator:null,r=typeof screen<"u"?screen:null;return{url:e?.href||null,path:e?.pathname||null,referrer:A.document?.referrer||null,title:A.document?.title||null,ua:t?.userAgent||null,browser:VF(t?.userAgent),language:t?.language||null,languages:t?.languages||null,timezone:BF(),viewport:A.innerWidth?{w:A.innerWidth,h:A.innerHeight,dpr:A.devicePixelRatio||1}:null,screen:r?{w:r.width||null,h:r.height||null,availW:r.availWidth||null,availH:r.availHeight||null,colorDepth:r.colorDepth||null,orientation:r.orientation?.type||null}:null,theme:zF()}},wy=(e={})=>{let t=e.url,r=typeof e.transport=="function"?e.transport:null;if(!t&&!r)return()=>{};let n=e.apiKey||null,o=e.appKey||e.appId||null,s=e.tenantKey||e.tenant||null,i=e.release||null,a=e.env||null,l=e.sdk||null,c=typeof e.getAuth=="function"?e.getAuth:null,u=typeof e.getContext=="function"?e.getContext:null,d=typeof e.classify=="function"?e.classify:tC,f=typeof e.beforeSend=="function"?e.beforeSend:null,p=e.batchMs!=null?e.batchMs:FF,h=e.maxBatch||jF,g=e.maxRetries!=null?e.maxRetries:DF,m=e.backoffMs||LF,y=e.queueLimit||MF,b=e.sampleRate!=null?e.sampleRate:1,v=e.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),x=[],_=[],C=null,E=null,F=()=>{C||!x.length||(C=setTimeout(te,p))},w=I=>{if(E)return;let Q=m*Math.pow(2,Math.max(0,I-1));E=setTimeout(()=>{if(E=null,!_.length)return;let oe=_.shift();q(oe.envelope,oe.attempt)},Q)},$=I=>{let Q=u?WF(u):null,oe={v:1,session:{id:v,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:l,page:UF(),user:Q?.user||null,traits:Q?.traits||null,tags:Q?.tags||null,events:I};if(f)try{return f(oe)||null}catch{return oe}return oe},q=async(I,Q=1)=>{if(I)try{let oe=!0;if(r){let ie=await r(I);oe=ie!==!1&&ie?.ok!==!1}else oe=await HF(t,I,{apiKey:n,getAuth:c});!oe&&Q<g&&(_.push({envelope:I,attempt:Q+1}),w(Q+1))}catch{Q<g&&(_.push({envelope:I,attempt:Q+1}),w(Q+1))}},te=(I=!1)=>{if(C&&(clearTimeout(C),C=null),!x.length)return;let Q=x;x=[];let oe=$(Q);if(oe){if(I&&bu&&navigator.sendBeacon&&t){let ie=NF(oe);if(ie)try{navigator.sendBeacon(t,new A.Blob([ie],{type:"application/json"}));return}catch{}}q(oe)}};bu&&(A.addEventListener("pagehide",()=>te(!0),{passive:!0}),A.addEventListener("beforeunload",()=>te(!0),{passive:!0}),A.addEventListener("visibilitychange",()=>{A.document.visibilityState==="hidden"&&te(!0)},{passive:!0}));let j=I=>{if(!I||b<1&&Math.random()>b)return;let Q={...I,log_type:d(I)};x.push(Q),x.length>y&&(x=x.slice(-y)),x.length>=h?te():F()};return j.flush=()=>te(!1),j.sessionId=v,j},WF=e=>{try{return e()}catch{return null}},HF=async(e,t,{apiKey:r,getAuth:n})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(r&&(o["X-Analyze-Key"]=r),n)try{let s=await n();s&&(o.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(e,{method:"POST",headers:o,body:JSON.stringify(t),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var qF={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},GF="\x1B[0m",xu=typeof A<"u"&&typeof A.document<"u",nC=(e={})=>{let t=e.minLevel||null,r=console.error.bind(console),n=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?n:o,a=`[analyze:${s.type}]`;if(xu)i(a,s);else{let l=qF[s.level]||"";i(`${l}${a}${GF}`,s)}}},oC=(e,t={})=>{let r=t.max||e.config.cache?.max||500,n=new Array(r),o=0,s=0,i=a=>{n[o]=a,o=(o+1)%r,s<r&&s++};return e.__memory={push:i,snapshot:()=>{let a=new Array(s),l=(o-s+r)%r;for(let c=0;c<s;c++)a[c]=n[(l+c)%r];return a},query:(a={})=>{let l=e.__memory.snapshot(),c=a.sinceMs?Date.now()-a.sinceMs:0;return l.filter(u=>!(!u||a.level&&u.level!==a.level||a.type&&u.type!==a.type||c&&u.ts<c))},clear:()=>{o=0,s=0}},i},sC=(e={})=>{let t=e.url,r=e.batchMs!=null?e.batchMs:5e3,n=e.maxBatch||50;if(!t)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let l=JSON.stringify({events:o});o=[];let c=xu?new A.Blob([l],{type:"application/json"}):l;if(xu&&navigator.sendBeacon)try{navigator.sendBeacon(t,c);return}catch{}typeof fetch<"u"&&fetch(t,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:l,keepalive:!0}).catch(()=>{})};xu&&(A.addEventListener("pagehide",i,{passive:!0}),A.addEventListener("beforeunload",i,{passive:!0}));let a=l=>{l&&(o.push(l),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},rC={console:nC,memory:oC,beacon:sC,remote:wy},Sy=e=>{let t=Array.isArray(e.config.sinks)?e.config.sinks:["console"],r=[];for(let n of t)if(typeof n=="function")r.push(n);else if(typeof n=="string"){let o=rC[n];if(!o)continue;r.push(n==="memory"?o(e,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=rC[n.type];if(!o)continue;r.push(n.type==="memory"?o(e,n):o(n))}return r};D();var KF=typeof A<"u"&&typeof A.document<"u",XF=new Set(["password","hidden"]),iC=(e,t)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=t?(r=i,e(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(e(...o),o=null)},t-(i-r))))}},ky="__analyzeKeyPath",bo=e=>{let t=e.target;if(!t)return{selector:null,key:null,path:null};if(t[ky])return t[ky];let r=[],n=t,o=0,s=null;for(;n&&o<64;){if(n.getAttribute){let a=n.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}n=n.parentNode,o++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:t.tagName?.toLowerCase()||null};else{let a=(t.tagName||"unknown").toLowerCase(),l=t.id?`#${t.id}`:"",c=t.className&&typeof t.className=="string"?"."+t.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${l}${c}`,key:null,path:null}}try{t[ky]=i}catch{}return i},YF=(e,t)=>{if(t==="mask")return"***";if(t!=="redact"){if(t==="hash"){let r=0,n=String(e||"");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},JF=e=>!!(!e||e.tagName==="INPUT"&&XF.has(e.type)||yu.test(e.name||"")||yu.test(e.id||"")||e.dataset?.analyze==="skip"),Cy=e=>{if(!KF)return;let t=e.config.capture,r=e.config.throttle,n=e.__teardown,o=(s,i,a,l)=>{s.addEventListener(i,a,l),n.push(()=>s.removeEventListener(i,a,l))};if(t.errors&&(o(A,"error",s=>{e.emit(ae("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),o(A,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;e.emit(ae("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),t.pointer){o(A,"click",i=>{e.emit(ae("pointer","info",{hook:"click",target:bo(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:aC(i)}))},{passive:!0,capture:!0}),o(A,"dblclick",i=>{e.emit(ae("pointer","info",{hook:"dblclick",target:bo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(A,"contextmenu",i=>{e.emit(ae("pointer","info",{hook:"contextmenu",target:bo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=iC(i=>{e.emit(ae("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);o(A,"pointermove",s,{passive:!0})}if(t.keyboard&&o(A,"keydown",s=>{e.emit(ae("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:aC(s),target:bo(s)}))},{passive:!0,capture:!0}),t.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let c=JF(a),u=a.dataset?.analyze==="track",d=null;u&&!c?d=a.value:e.config.maskFormValues!==!1&&(d=YF(a.value,e.config.maskStrategy)),e.emit(ae("forms","info",{hook:i.type,target:bo(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:d}))};o(A,"input",s,{passive:!0,capture:!0}),o(A,"change",s,{passive:!0,capture:!0}),o(A,"submit",i=>{e.emit(ae("forms","info",{hook:"submit",target:bo(i)}))},{passive:!0,capture:!0})}if(t.scroll){let s=iC(()=>{e.emit(ae("scroll","trace",{hook:"scroll",x:A.scrollX,y:A.scrollY}))},r.scroll);o(A,"scroll",s,{passive:!0,capture:!0})}if(t.viewport){let s=gs(()=>{e.emit(ae("viewport","info",{hook:"resize",w:A.innerWidth,h:A.innerHeight,dpr:A.devicePixelRatio||1}))},r.resize);o(A,"resize",s,{passive:!0}),o(A,"orientationchange",()=>{e.emit(ae("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(A.document,"visibilitychange",()=>{e.emit(ae("viewport","info",{hook:"visibilitychange",hidden:A.document.hidden}))},{passive:!0}),e.emit(ae("viewport","info",{hook:"initial",w:A.innerWidth,h:A.innerHeight,dpr:A.devicePixelRatio||1}))}if(t.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{e.emit(ae("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(lC)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(t.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let l of a.getEntries())e.emit(ae("performance","info",{hook:l.entryType,name:l.name,startTime:l.startTime,duration:l.duration,value:l.value!=null?l.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}n.push(()=>s.disconnect())}catch{}},aC=e=>({shift:!!e.shiftKey,ctrl:!!e.ctrlKey,alt:!!e.altKey,meta:!!e.metaKey}),ZF=e=>{let t={name:e.name||"Error",message:typeof e.message=="string"?e.message:String(e),stack:typeof e.stack=="string"?e.stack:null};return e.cause!==void 0&&(t.cause=lC(e.cause)),t},lC=e=>{if(e==null)return e;if(e instanceof Error)return ZF(e);if(typeof e=="object")try{return JSON.parse(JSON.stringify(e))}catch{return String(e)}return e};D();var QF=typeof A<"u"&&typeof A.document<"u";var Ay=e=>{if(QF&&e.config.capture.network){if(typeof A.fetch=="function"){let t=A.fetch.bind(A),r=function(n,o){if(o?.headers?.["X-Analyze-Beacon"])return t(n,o);let s=typeof n=="string"?n:n&&n.url||"",i=(o?.method||typeof n=="object"&&n?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return e.emit(ae("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),t(n,o).then(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;return e.emit(ae("network",l.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:l.status,ok:l.ok,durationMs:c})),l}).catch(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;throw e.emit(ae("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:l,durationMs:c})),l})};A.fetch=r,e.__teardown.push(()=>{A.fetch=t})}if(typeof A.XMLHttpRequest=="function"){let t=A.XMLHttpRequest,r=t.prototype.open,n=t.prototype.send;t.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},t.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();e.emit(ae("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-i,u=this.status>=200&&this.status<400;e.emit(ae("network",u?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:u,durationMs:c}))},l=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-i;e.emit(ae("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:c}))};return this.addEventListener("loadend",a),this.addEventListener("error",l),n.apply(this,arguments)},e.__teardown.push(()=>{t.prototype.open=r,t.prototype.send=n})}}};var ej={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},tj={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},rj={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},nj={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},oj=e=>{let t={...ej,...e};return t.replay&&Object.assign(t,tj),t.telemetry&&Object.assign(t,rj),t.remote&&Object.assign(t,nj),t},sj=64,ij=()=>{if(typeof A>"u"||!A.location)return null;try{let t=new URLSearchParams(A.location.search).get("analyze");return t||null}catch{return null}},Ey=(e={})=>{let t=e===!0?{}:{...e};t.capture=oj(t.capture||{});let r=ij();(r==="debug"||t.debug)&&(t.level="debug",t.debug=!0,t.capture={...t.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r==="off"&&(t.enabled=!1),t.level=mu(t.level||"warn"),t.cache={max:500,dedupeWindowMs:1e3,...t.cache||{}},t.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...t.throttle||{}},t.maskFormValues==null&&(t.maskFormValues=!0),t.maskStrategy||(t.maskStrategy="mask"),Array.isArray(t.sinks)||(t.sinks=["console","memory"]),Array.isArray(t.transformers)||(t.transformers=["enrich","summarize"]);let n={config:t,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=_y(n),n.__sinks=Sy(n))};return n.shouldCapture=s=>n.config.enabled===!1?!1:!!n.config.capture[s],n.emit=s=>{if(s&&n.config.enabled!==!1&&!n.__paused&&by(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<sj&&n.__preBuffer.push(s);return}o(),cC(n,s)}},n.activate=s=>{if(n.context==null&&(n.context=s||null),n.__ready)return;n.__ready=!0;let i=n.__preBuffer;if(n.__preBuffer=[],i.length){o();for(let a of i)cC(n,a)}try{Cy(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{Ay(n)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of n.__onActivate||[])try{a(n)}catch(l){console.error("[analyze] onActivate error:",l)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=mu(s)},n.setCapture=(s,i)=>{n.config.capture[s]=!!i},n.query=s=>n.__memory?n.__memory.query(s):[],n.snapshot=()=>n.__memory?n.__memory.snapshot():[],n.emitNetwork=s=>{if(!n.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},n.flush=()=>{if(n.__sinks)for(let s of n.__sinks)typeof s.flush=="function"&&s.flush()},n.replay=()=>({initialSnapshot:n.__initialSnapshot,events:n.snapshot()}),n.destroy=()=>{for(let s of n.__teardown)try{s()}catch{}n.__teardown=[],n.__ready=!1,n.__paused=!0},n.__onActivate=[],n.onActivate=s=>{n.__onActivate.push(s)},n},cC=(e,t)=>{let r=e.__pipeline(t);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof e.config.onEvent=="function")try{e.config.onEvent(o)}catch{}for(let s of e.__sinks)try{s(o)}catch(i){console.error("[analyze] sink error:",i)}}};var It=Object.create(null);It.open="0";It.close="1";It.ping="2";It.pong="3";It.message="4";It.upgrade="5";It.noop="6";var qi=Object.create(null);Object.keys(It).forEach(e=>{qi[It[e]]=e});var Gi={type:"error",data:"parser error"};var dC=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",pC=typeof ArrayBuffer=="function",hC=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Ki=({type:e,data:t},r,n)=>dC&&t instanceof Blob?r?n(t):uC(t,n):pC&&(t instanceof ArrayBuffer||hC(t))?r?n(t):uC(new Blob([t]),n):n(It[e]+(t||"")),uC=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function fC(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Oy;function gC(e,t){if(dC&&e.data instanceof Blob)return e.data.arrayBuffer().then(fC).then(t);if(pC&&(e.data instanceof ArrayBuffer||hC(e.data)))return t(fC(e.data));Ki(e,!1,r=>{Oy||(Oy=new TextEncoder),t(Oy.encode(r))})}var mC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<mC.length;e++)Xi[mC.charCodeAt(e)]=e;var yC=e=>{let t=e.length*.75,r=e.length,n,o=0,s,i,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)s=Xi[e.charCodeAt(n)],i=Xi[e.charCodeAt(n+1)],a=Xi[e.charCodeAt(n+2)],l=Xi[e.charCodeAt(n+3)],u[o++]=s<<2|i>>4,u[o++]=(i&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c};var aj=typeof ArrayBuffer=="function",Yi=(e,t)=>{if(typeof e!="string")return{type:"message",data:bC(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:lj(e.substring(1),t)}:qi[r]?e.length>1?{type:qi[r],data:e.substring(1)}:{type:qi[r]}:Gi},lj=(e,t)=>{if(aj){let r=yC(e);return bC(r,t)}else return{base64:!0,data:e}},bC=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;var xC="",vC=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{Ki(s,!1,a=>{n[i]=a,++o===r&&t(n.join(xC))})})},_C=(e,t)=>{let r=e.split(xC),n=[];for(let o=0;o<r.length;o++){let s=Yi(r[o],t);if(n.push(s),s.type==="error")break}return n};function wC(){return new TransformStream({transform(e,t){gC(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var Ty;function vu(e){return e.reduce((t,r)=>t+r.length,0)}function _u(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function SC(e,t){Ty||(Ty=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(vu(r)<1)break;let l=_u(r,1);s=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(vu(r)<2)break;let l=_u(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(vu(r)<8)break;let l=_u(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Gi);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(vu(r)<o)break;let l=_u(r,o);a.enqueue(Yi(s?l:Ty.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(Gi);break}}}})}var Ry=4;function he(e){if(e)return cj(e)}function cj(e){for(var t in he.prototype)e[t]=he.prototype[t];return e}he.prototype.on=he.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};he.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};he.prototype.off=he.prototype.removeListener=he.prototype.removeAllListeners=he.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};he.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};he.prototype.emitReserved=he.prototype.emit;he.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};he.prototype.hasListeners=function(e){return!!this.listeners(e).length};var ur=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),Ve=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),kC="arraybuffer";function wu(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var uj=Ve.setTimeout,fj=Ve.clearTimeout;function fr(e,t){t.useNativeTimers?(e.setTimeoutFn=uj.bind(Ve),e.clearTimeoutFn=fj.bind(Ve)):(e.setTimeoutFn=Ve.setTimeout.bind(Ve),e.clearTimeoutFn=Ve.clearTimeout.bind(Ve))}var dj=1.33;function CC(e){return typeof e=="string"?pj(e):Math.ceil((e.byteLength||e.size)*dj)}function pj(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function Su(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function AC(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function EC(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var ku=class extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}},dr=class extends he{constructor(t){super(),this.writable=!1,fr(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,n){return super.emitReserved("error",new ku(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let r=Yi(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let r=AC(t);return r.length?"?"+r:""}};var Ji=class extends dr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};_C(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,vC(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Su()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var OC=!1;try{OC=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var TC=OC;function hj(){}var Py=class extends Ji{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Br=class e extends he{constructor(t,r,n){super(),this.createRequest=t,fr(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=wu(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=hj,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Br.requestsCount=0;Br.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",RC);else if(typeof addEventListener=="function"){let e="onpagehide"in Ve?"pagehide":"unload";addEventListener(e,RC,!1)}}function RC(){for(let e in Br.requests)Br.requests.hasOwnProperty(e)&&Br.requests[e].abort()}var gj=(function(){let e=PC({xdomain:!1});return e&&e.responseType!==null})(),Vr=class extends Py{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=gj&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Br(PC,this.uri(),t)}};function PC(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||TC))return new XMLHttpRequest}catch{}if(!t)try{return new Ve[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var $C=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Iy=class extends dr{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=$C?{}:wu(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;Ki(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&ur(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Su()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},$y=Ve.WebSocket||Ve.MozWebSocket,zr=class extends Iy{createSocket(t,r,n){return $C?new $y(t,r,n):r?new $y(t,r):new $y(t)}doWrite(t,r){this.ws.send(r)}};var xo=class extends dr{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=SC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=wC();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:l})=>{a||(this.onPacket(l),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;this._writer.write(n).then(()=>{o&&ur(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var Fy={websocket:zr,webtransport:xo,polling:Vr};var mj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,yj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function vo(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=mj.exec(e||""),s={},i=14;for(;i--;)s[yj[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=bj(s,s.path),s.queryKey=xj(s,s.query),s}function bj(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function xj(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var jy=typeof addEventListener=="function"&&typeof removeEventListener=="function",Cu=[];jy&&addEventListener("offline",()=>{Cu.forEach(e=>e())},!1);var wn=class e extends he{constructor(t,r){if(super(),this.binaryType=kC,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=vo(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=vo(r.host).host);fr(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=EC(this.opts.query)),jy&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Cu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=Ry,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=CC(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,ur(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:t,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),jy&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Cu.indexOf(this._offlineEventListener);n!==-1&&Cu.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};wn.protocol=Ry;var Au=class extends wn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),n=!1;wn.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;wn.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let f=new Error("probe error");f.transport=r.name,this.emitReserved("upgradeError",f)}}))};function s(){n||(n=!0,u(),r.close(),r=null)}let i=d=>{let f=new Error("probe error: "+d);f.transport=r.name,s(),this.emitReserved("upgradeError",f)};function a(){i("transport closed")}function l(){i("socket closed")}function c(d){r&&d.name!==r.name&&s()}let u=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}},_o=class extends Au{constructor(t,r={}){let n=typeof t=="object"?t:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>Fy[o]).filter(o=>!!o)),super(t,n)}};var c7=_o.protocol;function IC(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=vo(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let s=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+t,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var zy={};K(zy,{Decoder:()=>By,Encoder:()=>Ny,PacketType:()=>Z,isPacketValid:()=>Bj,protocol:()=>WC});var _j=typeof ArrayBuffer=="function",wj=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,FC=Object.prototype.toString,Sj=typeof Blob=="function"||typeof Blob<"u"&&FC.call(Blob)==="[object BlobConstructor]",kj=typeof File=="function"||typeof File<"u"&&FC.call(File)==="[object FileConstructor]";function Qi(e){return _j&&(e instanceof ArrayBuffer||wj(e))||Sj&&e instanceof Blob||kj&&e instanceof File}function Zi(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Zi(e[r]))return!0;return!1}if(Qi(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Zi(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Zi(e[r]))return!0;return!1}function jC(e){let t=[],r=e.data,n=e;return n.data=Dy(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Dy(e,t){if(!e)return e;if(Qi(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=Dy(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Dy(e[n],t));return r}return e}function DC(e,t){return e.data=Ly(e.data,t),delete e.attachments,e}function Ly(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Ly(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Ly(e[r],t));return e}var zC=E0(VC(),1),My=(0,zC.default)("socket.io-parser"),UC=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],WC=5,Z;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Z||(Z={}));var Ny=class{constructor(t){this.replacer=t}encode(t){return My("encoding packet %j",t),(t.type===Z.EVENT||t.type===Z.ACK)&&Zi(t)?this.encodeAsBinary({type:t.type===Z.EVENT?Z.BINARY_EVENT:Z.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===Z.BINARY_EVENT||t.type===Z.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),My("encoded %j as %s",t,r),r}encodeAsBinary(t){let r=jC(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},By=class e extends he{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===Z.BINARY_EVENT;n||r.type===Z.BINARY_ACK?(r.type=n?Z.EVENT:Z.ACK,this.reconstructor=new Vy(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Qi(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(Z[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===Z.BINARY_EVENT||n.type===Z.BINARY_ACK){let s=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let i=t.substring(s,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!HC(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(s,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if(e.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return My("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case Z.CONNECT:return Tu(r);case Z.DISCONNECT:return r===void 0;case Z.CONNECT_ERROR:return typeof r=="string"||Tu(r);case Z.EVENT:case Z.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&UC.indexOf(r[0])===-1);case Z.ACK:case Z.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Vy=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let r=DC(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Lj(e){return typeof e=="string"}var HC=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function Mj(e){return e===void 0||HC(e)}function Tu(e){return Object.prototype.toString.call(e)==="[object Object]"}function Nj(e,t){switch(e){case Z.CONNECT:return t===void 0||Tu(t);case Z.DISCONNECT:return t===void 0;case Z.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&UC.indexOf(t[0])===-1);case Z.ACK:return Array.isArray(t);case Z.CONNECT_ERROR:return typeof t=="string"||Tu(t);default:return!1}}function Bj(e){return Lj(e.nsp)&&Mj(e.id)&&Nj(e.type,e.data)}function rt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var Vj=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Co=class extends he{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[rt(t,"open",this.onopen.bind(this)),rt(t,"packet",this.onpacket.bind(this)),rt(t,"error",this.onerror.bind(this)),rt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var n,o,s;if(Vj.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:Z.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let u=this.ids++,d=r.pop();this._registerAckCallback(u,d),i.id=u}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[t]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[t]=i}emitWithAck(t,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...s)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...s)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Z.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Z.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Z.EVENT:case Z.BINARY_EVENT:this.onevent(t);break;case Z.ACK:case Z.BINARY_ACK:this.onack(t);break;case Z.DISCONNECT:this.ondisconnect();break;case Z.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:Z.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Z.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,t.data)}}};function kn(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}kn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};kn.prototype.reset=function(){this.attempts=0};kn.prototype.setMin=function(e){this.ms=e};kn.prototype.setMax=function(e){this.max=e};kn.prototype.setJitter=function(e){this.jitter=e};var Ao=class extends he{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,fr(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new kn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||zy;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new _o(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=rt(r,"open",function(){n.onopen(),t&&t()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},i=rt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,l=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(rt(t,"ping",this.onping.bind(this)),rt(t,"data",this.ondata.bind(this)),rt(t,"error",this.onerror.bind(this)),rt(t,"close",this.onclose.bind(this)),rt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){ur(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new Co(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var ea={};function Eo(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=IC(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=ea[o]&&s in ea[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new Ao(n,t):(ea[o]||(ea[o]=new Ao(n,t)),l=ea[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Eo,{Manager:Ao,Socket:Co,io:Eo,connect:Eo});D();var zj=new Set(["__proto__","constructor","prototype"]),qC=e=>{if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(zj.has(e[t]))return!1;return!0},Uj=(e,t)=>{!e||!qC(t)||t.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},e)},Wj=(e,t,r,n=!1)=>{!e||!qC(t)||t.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},e)},GC=(e,t)=>{let r=new Set;if(!Array.isArray(t))return r;for(let[n,o,s]of t)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":Uj(e,o);break;case"update":case"set":Wj(e,o,s,!0);break;default:break}return r};var Hj=Object.create,Ib=Object.defineProperty,qj=Object.getOwnPropertyDescriptor,Gj=Object.getOwnPropertyNames,Kj=Object.getPrototypeOf,Xj=Object.prototype.hasOwnProperty,X=(e,t)=>()=>(e&&(t=e(e=0)),t),Fb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Y=(e,t)=>{for(var r in t)Ib(e,r,{get:t[r],enumerable:!0})},Yj=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Gj(t))!Xj.call(e,o)&&o!==r&&Ib(e,o,{get:()=>t[o],enumerable:!(n=qj(t,o))||n.enumerable});return e},Jj=(e,t,r)=>(r=e!=null?Hj(Kj(e)):{},Yj(t||!e||!e.__esModule?Ib(r,"default",{value:e,enumerable:!0}):r,e)),jb,Db,le,be,Gf=X(()=>{"use strict";jb=globalThis,Db=globalThis,le=globalThis,be=le.document}),Wa,Kf,st,Xf=X(()=>{"use strict";Gf(),Wa=e=>(typeof Node=="object"?e instanceof le.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,Kf=e=>(typeof HTMLElement=="object"?e instanceof le.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,st=e=>typeof le<"u"&&(le.Node&&e instanceof le.Node||le.Window&&e instanceof le.Window||e===le||e===document)}),M,R,Pn,L,Zu,Qu,W,ef,ce,zo,Nt,da,Zt,Lb,Fe=X(()=>{"use strict";Xf(),M=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,R=e=>typeof e=="string",Pn=e=>typeof e=="number",L=e=>typeof e=="function",Zu=e=>e===!0||e===!1,Qu=e=>e===null,W=e=>Array.isArray(e),ef=e=>e instanceof Date,ce=e=>e===null?!1:typeof e=="object",zo=e=>e!==void 0,Nt=e=>e===void 0,da={boolean:Zu,array:W,object:M,string:R,date:ef,number:Pn,null:Qu,function:L,objectLike:ce,node:Wa,htmlElement:Kf,defined:zo},Zt=e=>(...t)=>t.some(r=>da[r](e)),Lb=e=>(...t)=>!t.some(r=>da[r](e))}),Mb,Nb,Bb,Vb,Fa,Yf,zb,Ub,Jf,Wb,Hb,qb,Gb,Kb,Xb,Yb,ja,Zf,Ha=X(()=>{"use strict";Gr(),Fe(),Mb=(e,t)=>t.every(r=>e.includes(r)),Nb=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Bb=(e,t)=>{if(R(t)&&(t=parseInt(t)),Pn(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},Vb=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Fa=(...e)=>[].concat(...e),Yf=(e,t=[])=>e.reduce((r,n)=>tr(r,at(n,{exclude:t}),t),{}),zb=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},Ub=(e,t)=>{if(!W(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},Jf=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Wb=(e,t)=>e.filter(r=>r!==t),Hb=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},qb=(e,t,r)=>{let n=[...e],o=n.indexOf(t),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},Gb=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},Kb=(e,t)=>e.filter(r=>!t.includes(r)),Xb=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Yb=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},ja=e=>W(e)?[...new Set(e)]:e,Zf=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function nE(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let s=oE[n],i=t||this.state||{},a=this;return e.replace(s,(l,c,u,d)=>{let f=u.trim();if(d){let p=a?.context,h=p?.functions?.[d]||p?.utils?.[d]||p?.methods?.[d]||p?.snippets?.[d]||a?.[d];if(h&&typeof h=="function")try{return String(h.call(a,f)??"")}catch{return""}return""}if(c){let p=(c.match(/\.\.\//g)||[]).length,h=i;for(let m=0;m<p;m++){if(!h||!h.parent)return"";h=h.parent}if(f==="parent")return String(h.value??"");let g=Fo(h,f);return String(g??"")}else{let p=Fo(i,f);if(p!=null)return String(p);let h=a?.context?.polyglot;if(h?.translations){let g=i?.root?.lang||i?.lang||a?.context?.state?.lang||h.defaultLang||"en",m=h.translations[g];if(m){let b=Fo(m,f);if(b!=null&&typeof b!="object")return String(b);for(let v in m){let x=m[v];if(x&&typeof x=="object"&&!Array.isArray(x)){let _=Fo(x,f);if(_!=null&&typeof _!="object")return String(_)}}}let y=Fo(h.translations,f);if(y!=null&&typeof y!="object")return String(y)}return""}})}var Qf,Jb,oE,Fo,qa,Zb,KC,Qb,ex,tx,XC,rx,nx,ed=X(()=>{"use strict";Qf=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},Jb=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},oE={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Fo=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e),qa=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Zb=(e,t)=>{let r=e.split(`
73
+ `),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,s=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,i=r[u].indexOf("{}")+3;break}let d=r[u].slice(s+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,i=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,i=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},KC=/\\([0-7]{1,3})/g,Qb=e=>e.replace(KC,(t,r)=>String.fromCharCode(parseInt(r,8))),ex=e=>e.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),tx=e=>e.replace(/\/\/\/\/\/n/g,`
74
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),XC=/[^a-zA-Z0-9\s]/g,rx=e=>e.replace(XC,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),nx=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))}),qo,td,ox,On,Tn,Da,rd,sx,Ga=X(()=>{"use strict";qo=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),td=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),ox=["ref","parent","__element","__depends","__ref","__children","root"],On=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),Tn=new Set(["update","__element"]),Da=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),rd=new Set(["node","context","extends","__element","__ref",...Da,...On,...Tn]),sx=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])}),Uy,Ur,Ne,ix,it,tr,Wy,ax,at,pa,YC,ha,JC,ZC,QC,Do,eA,tA,Hy,lx,rA,nA,oA,cx,ux,fx,tf,dx,px,nd,od,$n,rf,sA,hx,gx,nf,mx,yx,bx,xx,vx,_x,wx,Gr=X(()=>{"use strict";Gf(),Fe(),Ha(),ed(),Xf(),Ga(),Uy="production",Ur=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,Ne=(e,t,r,n)=>{if(L(e))return t?typeof e.call!="function"?e:e.call(t,t,r||t.state,n||t.context):void 0;if(e!=null&&t?.context?.plugins&&(W(e)||M(e)&&!st(e))){let o=t.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(e,t);if(typeof i=="function")return Ne(i,t,r,n)}}return e},ix=(e,t,r)=>{for(let n in t)e[n]=Ne(t[n],r)},it=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Ur(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},tr=(e,t,r=rd)=>Wy(e,t,r,null),Wy=(e,t,r,n)=>{if(e===t)return e;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===e&&n[s+1]===t)return e}let o=r instanceof Set;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||Ur(s)||s==="constructor"||s==="prototype"||(o?r.has(s):r.includes(s)))continue;let i=e[s],a=t[s];if(ce(i)&&ce(a)){let l=n||[];l.push(e,t),Wy(i,a,r,l),l.length-=2}else i===void 0&&(e[s]=a)}return e},ax=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Ur(o)||(r?t.has(o):t.includes(o))||(n[o]=e[o]));return n},at=(e,t={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=t;if(!ce(e)||st(e))return e;if(s.has(e))return s.get(e);let a=r instanceof Set?r:r.length>3?new Set(r):null,l=d=>a?a.has(d):r.includes(d),c=W(e)?[]:{};s.set(e,c);let u=[[e,c]];for(;u.length;){let[d,f]=u.pop();for(let p in d){if(!Object.prototype.hasOwnProperty.call(d,p)||Ur(p)||p==="__proto__"||l(p))continue;let h=d[p];if(!(n&&h===void 0)&&!(o&&h===null)){if(st(h)){f[p]=h;continue}if(i&&p==="extends"&&W(h)){f[p]=Yf(h,r);continue}if(L(h)){f[p]=h;continue}if(ce(h))if(s.has(h))f[p]=s.get(h);else{let g=W(h)?[]:{};s.set(h,g),f[p]=g,u.push([h,g])}else f[p]=h}}}return c},pa=(e,t={})=>{(e.node||e.__ref||e.parent||e.__element||e.parse)&&((e.__element||e.parent?.__element).warn("Trying to clone element or state at",e),e=e.parse?.());for(let r in e){let n=e[r];if(L(n))t[r]=n.toString();else if(M(n))t[r]={},pa(n,t[r]);else if(W(n)){let o=t[r]=[];for(let s=0;s<n.length;s++){let i=n[s];M(i)?(o[s]={},pa(i,o[s])):L(i)?o[s]=i.toString():o[s]=i}}else t[r]=n}return t},YC=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),ha=(e={},t=0)=>{if(e===null||typeof e!="object")return String(e);let r=!1;for(let s in e){r=!0;break}if(!r)return"{}";let n=" ".repeat(t),o=`{
75
+ `;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=e[s],a=!1;for(let c=0;c<s.length;c++)if(YC.has(s[c])){a=!0;break}let l=a?`'${s}'`:s;if(o+=`${n} ${l}: `,W(i)){o+=`[
76
+ `;for(let c of i)ce(c)&&c!==null?o+=`${n} ${ha(c,t+2)},
77
+ `:R(c)?o+=`${n} '${c}',
78
78
  `:o+=`${n} ${c},
79
- `;o+=`${n} ]`}else ce(s)?o+=ba(s,t+1):I(s)?o+=hd(s,[`
80
- `,"'"])?`\`${s}\``:`'${s}'`:o+=s;o+=`,
81
- `}return o+=`${n}}`,o},TT=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],OT=/^["[{]/,RT=/^(export|import)\s/,Uo=e=>{if(!e)return!1;let t=e.trim().replace(/\n\s*/g," ").trim();if(t===""||t==="{}"||t==="[]"||RT.test(t)||!TT.some(o=>o.test(t)))return!1;let r=t.charCodeAt(0),n=t.includes("=>");return!(r===123&&!n||r===91||OT.test(t)&&!n)},PT=e=>(0,eval)(e),$T=(e,t)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(e);if(!r)return null;let n=r[0].length,o=[],i=n,s=1,a=null,l=e.length,c=new RegExp("^(?:const|let|var)\\s+"+t+"\\b");for(;i<l&&s>0;){let d=e[i];if(d==="/"&&e[i+1]==="/"){let f=e.indexOf(`
82
- `,i);i=f===-1?l:f;continue}if(d==="/"&&e[i+1]==="*"){let f=e.indexOf("*/",i+2);i=f===-1?l:f+2;continue}if(d==='"'||d==="'"||d==="`"){let f=d;for(i++;i<l;){if(e[i]==="\\"){i+=2;continue}if(e[i]===f){i++;break}if(f==="`"&&e[i]==="$"&&e[i+1]==="{"){i+=2;let p=1;for(;i<l&&p>0;)e[i]==="{"?p++:e[i]==="}"&&p--,i++;continue}i++}continue}if(d==="{"){s++,i++;continue}if(d==="}"){s--,i++;continue}if(s===1&&c.test(e.slice(i))){let f=i,p=0,h=i;for(;h<l;){let g=e[h];if(g==='"'||g==="'"||g==="`"){let m=g;for(h++;h<l;){if(e[h]==="\\"){h+=2;continue}if(e[h]===m){h++;break}h++}continue}if(g==="("||g==="["||g==="{"){p++,h++;continue}if(g===")"||g==="]"||g==="}"){if(p===0)break;p--,h++;continue}if(p===0&&(g===";"||g===`
83
- `)){h++;break}h++}o.push([f,h]),i=h;continue}i++}if(!o.length)return null;let u=e;for(let d=o.length-1;d>=0;d--)u=u.slice(0,o[d][0])+u.slice(o[d][1]);return u},Mb=(e,t,r)=>{try{return r.window.eval(`(${e})`)}catch(n){let o=n&&n.message?n.message:String(n),i=/await is only valid in async/.test(o),s=/Identifier '([^']+)' has already been declared/.exec(o),a=null;if(i){let l=String(e).trim();if(/^function[\s(]/.test(l))try{a=r.window.eval("(async "+l+")")}catch{}}else if(s){let l=String(e),c=s[1];for(let u=0;u<5;u++){let d=$T(l,c);if(!d||d===l)break;l=d;try{a=r.window.eval("("+l+")");break}catch(f){let p=/Identifier '([^']+)' has already been declared/.exec(f&&f.message||String(f));if(!p||p[1]!==c)break}}}return a||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${t} \u2014 value will be left as a string. Reason: `+o+`.
84
- First 200 chars of source: `+String(e).slice(0,200)),e)}},e0=(e,t={},r={window:{eval:PT}})=>{if(!e||typeof e!="object")return t;let n=[[e,t]];for(;n.length;){let[o,i]=n.pop();for(let s in o){if(!Object.prototype.hasOwnProperty.call(o,s))continue;let a=o[s];if(I(a))Uo(a)?i[s]=Mb(a,`"${s}"`,r):i[s]=a;else if(q(a)){let l=i[s]=[];for(let c=0;c<a.length;c++){let u=a[c];if(I(u))l.push(Uo(u)?Mb(u,`array index ${c} (prop "${s}")`,r):u);else if(B(u)){let d={};l.push(d),n.push([u,d])}else l.push(u)}}else if(B(a)){let l=i[s]&&typeof i[s]=="object"&&!q(i[s])?i[s]:i[s]={};n.push([a,l])}else i[s]=a}}return t},IT="Set",jT="Map",FT=e=>!e||typeof e!="object"?e:e.__type===IT&&Array.isArray(e.values)?new Set(e.values):e.__type===jT&&Array.isArray(e.entries)?new Map(e.entries):e,t0=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];I(o)&&Uo(o)?r.push([n,o]):t[n]=FT(o)}for(let[n,o]of r)try{let i=Object.keys(t).map(s=>`var ${s} = __gs__[${JSON.stringify(s)}];`).join(`
85
- `);t[n]=le.eval(`(function(__gs__) { ${i}
86
- return (${o}); })`)(t)}catch{try{t[n]=le.eval(`(${o})`)}catch{t[n]=o}}return t},r0=(e,t={verbose:!0})=>{try{return e?le.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},n0=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),hf=e=>{for(let t in e)return!1;return!0},o0=e=>B(e)&&hf(e),i0=()=>Object.create(null),bd=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let i in t)n.includes(i)||!o&&qr(i)||i==="constructor"||i==="prototype"||t[i]!==void 0&&(e[i]=t[i]);return e},vd=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)qr(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Bn=(e,t,r={},n=new WeakMap)=>{if(!ce(e)||!ce(t)||at(e)||at(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,i=o?o instanceof Set?o:new Set(o):null,s=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||i&&i.has(a)||s&&qr(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];at(c)?e[a]=c:ce(l)&&ce(c)?e[a]=Bn(l,c,r,n):c!==void 0&&(e[a]=c)}return e},gf=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let i=0;i<n.length;i++){let s=n[i];if(!Object.prototype.hasOwnProperty.call(t,s)||!gf(e[s],t[s],r))return!1}return!0},DT=new Set(["node","__ref"]),s0=(e,t,r=DT)=>{if(e===t)return!0;if(!ce(e)||!ce(t)||at(e)||at(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function i(s,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(s,l))return!1;let c=a[l],u=s[l];if(at(c)||at(u)){if(c!==u)return!1}else if(ce(c)&&ce(u)){if(!i(u,c))return!1}else if(c!==u)return!1}return!0}return i(e,t)},a0=(e,t)=>{if(t==null)return e;if(tr(t)("string","number"))delete e[t];else if(q(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},mf=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=mf(e[r]));return t},l0=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},c0=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},u0=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},f0=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},d0=e=>{let t=[],r=0;for(let n=0;n<e.length;n++)if(t.length<2)t.push(e[n]);else if(e[n]===t[n%2]?r++:(t=[e[n-1],e[n]],r=1),r>=20)return(Db==="test"||Db==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",t),!0},p0=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},h0=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}}),va,xd,wd,g0=Z(()=>{Zr(),va=(function(){let e=0;function t(){return e++,e}return t})(),xd=va,wd=(e,t,r)=>(De(r,e)||r||e.key||va()).toString()}),Wt,m0,Yo,yf,y0,b0,v0,Sd,x0,Qa,DO=Z(()=>{Wt="production",m0=Wt,Yo=(e=Wt)=>e==="production",yf=(e=Wt)=>e==="testing"||e==="test",y0=yf,b0=(e=Wt)=>e==="staging",v0=(e=Wt)=>e==="local",Sd=(e=Wt)=>e==="development"||e==="dev"||e==="local",x0=(e,t=Wt)=>t[e],Qa=(e=Wt)=>!Yo(e)});function LO(e,t,r){let n;return function(){let o=this,i=arguments,s=function(){n=null,r||e.apply(o,i)},a=r&&!n;clearTimeout(n),n=setTimeout(s,t),a&&e.apply(o,i)}}function MO(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var w0,S0,LT,_0,el,za,Wa,k0=Z(()=>{w0=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},S0=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},LT=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,_0=e=>LT.test(e),el=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},za=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},Wa=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let i of n)typeof i[e]=="function"&&(i[e](t,...r),o=!0);return o}}),C0,H5=Z(()=>{Me(),Zr(),C0=(e,t)=>{let{__ref:r}=e,n=e.if;if(M(n)){let o;try{o=n(e,e.state,e.context)}catch(i){typeof console<"u"&&console.warn("[DOMQL] if condition error:",i),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?De(n,e)?r.__if=!0:delete r.__if:r.__if=!0}}),A0,E0,V5=Z(()=>{A0=(e,...t)=>{e&&t.map(r=>console.log(r))},E0=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function BO(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function NO(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var T0,O0,R0,P0,U5=Z(()=>{Me(),ld(),T0=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),O0=(e,t,r=365)=>{if(Et(ve)||Et(ve.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;ve.cookie=`${e}=${t};${o};path=/`},R0=e=>{if(Et(ve)||Et(ve.cookie))return;let t=`${e}=`,r=decodeURIComponent(ve.cookie).split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return""},P0=e=>{Et(ve)||Et(ve.cookie)||(ve.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}}),Ha,$0,I0,zO=Z(()=>{Ha={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},$0=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),I0=e=>Ha.body.has(e)}),zu,Bb,Va,_d,tt,j0,bf,xa,F0,wa,vf,xf,Sa,wf,qo,MT,er,Nb,_a,ka,D0,Ca,L0,M0,Sf,_f,kf,Cf,Af,Ef,B0,N0=Z(()=>{Za(),UO(),Zr(),Me(),zu="production",Bb=e=>e.sourcemap!==!1&&zu!=="production",Va=e=>{if(e.includes("+"))return e.split("+").filter(In);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!In(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},_d=(e,t,r)=>{let n=[],o=Va(r);o&&(n=[...o]);let i=e.extends;return i&&(n=q(i)?[...n,...i]:[...n,i]),n},tt=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,i=t.context;if(o&&i?.components&&!Array.isArray(e)&&typeof e=="string"){let s=`${e}.${o}`;i.components[s]&&(e=s)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},j0=(e,t)=>{if(!e)return t;let{extends:r}=t,n=q(r)?r:[r],o=q(e)?e:[e];return{...t,extends:Ma(o,n)}},bf=()=>Math.random().toString(36).substring(2),xa={},F0={},wa=e=>xa[e.__hash],vf=(e,t)=>{let r=bf();return I(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(xa[r]=t),t},xf=(e,t)=>e.__hash?t.concat(wa(e)):vf(e,t),Sa=(e,t,r,n=new Set,o,i)=>{for(let s of e)q(s)?Sa(s,t,r,n,o,i):qo(s,t,r,n,o,void 0,i);return t},wf=(e,t,r,n=new Set,o,i,s)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(i)),a&&qo(a,t,r,n,o,i,s),t},qo=(e,t,r,n=new Set,o,i,s)=>{if(!e||n.has(e))return t;if(q(e))return Sa(e,t,r,n,o,s);let a=i;return I(e)?(a=e,e=ka(e,r)):s&&B(e)&&s.has(e)&&(a=s.get(e)),n.add(e),e?.extends?wf(e,t,r,n,o,a,s):e&&(t.push(e),o&&o.push(a)),t},MT=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),er=(e,t,r,n,o)=>{t=ut(t);for(let i in t){if(MT.has(i))continue;let s=e[i],a=t[i];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,i)&&i!=="__proto__"&&i!=="constructor"&&i!=="prototype"){if(s===void 0)e[i]=a,r&&n?B(a)&&!q(a)?(r[i]=r[i]||{},Nb(r[i],a,n)):r[i]=n:r&&o?.[i]&&(r[i]=o[i]);else if(B(s)&&B(a)){let l=r?r[i]=r[i]||{}:void 0,c=o?.[i];In(i)?e[i]=er(s,a,l,n,c):er(s,a,l,n,c)}if(i==="extends"||i==="childExtends"||i==="childExtendsRecursive"){if(q(s)&&q(a))e[i]=s.concat(a);else if(q(s)&&B(a)){let l=er({},s);e[i]=er(l,a)}}}}return e},Nb=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let i=t[o];B(i)&&!q(i)?(e[o]=e[o]||{},Nb(e[o],i,r,n)):e[o]=r}}},_a=(e,t,r)=>e.reduce((n,o,i)=>{let s=ut(o),a=r?r[i]:void 0;return er(n,s,t,a)},{}),ka=(e,t,r={},n)=>{let o=t?.components||r.components,i=t?.pages||r.pages;if(I(e)){let s=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=i&&e.charCodeAt(0)===47&&i[e];if(s)return s;if(a)return a;r.verbose&&(zu==="test"||zu==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},D0=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),Ca=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return wa(e)||[];let o=qo(e,[],t,new Set,r,void 0,n);return r?o:xf(e,o)},L0=(e,t)=>{if(!e)return t;let r=q(e)?e:[e];return Ma(r,t)},M0=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(In(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},Sf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,i=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[s,...a]=e.extends;if(typeof s=="string"&&i&&o?.components){let l=`${s}.${i}`;o.components[l]?tt([l,...a],e):tt(e.extends,e)}else tt(e.extends,e)}else if(typeof e.extends=="string"&&i&&o?.components){let s=`${e.extends}.${i}`;o.components[s]?tt(s,e):tt(e.extends,e)}else tt(e.extends,e);return _f(e,t,r),kf(e,t,r),Cf(e,t,r),e.component&&tt(De(e.component,e),e),o.defaultExtends&&tt(o.defaultExtends,e),Ba(n.__extends)},_f=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&tt(t.childProps.extends,e),n.__extends},kf=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,i=t.childExtends;return!o&&i&&tt(i,e),n.__extends},Cf=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,i=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,s=e.key==="__text";return o&&!s&&!i&&tt(o,e),n.__extends},Af=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,i=e.variant,s=Bb(r),a=s?[...n.__extends]:null,l=Ba(n.__extends.map((c,u)=>ka(c,o,r,u===0&&i)));if(s){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&B(p)&&I(h)&&c.set(p,h)}let u=[],d=Ca(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=Ca(l,o);n.__extendsStack=c}return n.__extendsStack},Ef=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Bb(r)){let i={},s=n.__extendsNames||[],a=_a(o,i,s),l={};er(e,a,l,void 0,i),n.__sourcemap=l}else{let i=_a(o);er(e,i)}return e},B0=(e,t,r={})=>(Sf(e,t,r),Af(e,t,r),Ef(e,t,r),e)});function WO(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function HO(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function VO(e,t,r){let{context:n}=t||{},[o]=Va(r),i=r||o;return n?.components?.[i]||n?.pages?.[i]}var In,UO=Z(()=>{N0(),Me(),In=e=>{if(!I(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function q5(e,t){let{props:r,on:n}=t,o=Ya(e.split("on")[1]),i=n[o],s=r[e];M(i)?n[o]=(...a)=>{if(i(...a)!==!1&&M(s))return s(...a)}:n[o]=s}var G5=Z(()=>{gd(),Me()});function z0(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(M(o)||o!=null&&el(this.context))){let f=Ya(n.slice(2));e.on&&(e.on[f]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let i=this.define?.[n],s=this.context?.define?.[n],a=B(i)||M(i),l=B(s)||M(s);if(a||l)continue;let c=n.charAt(0);if(q0.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=Of.test(n)||U0.test(n)||GO(o),d=Qo.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function W0(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],i=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,s=M(o)||o!=null&&el(this.context);if(i&&s){q5(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(q0.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=B(l)||M(l),d=B(c)||M(c),f=Of.test(n)||U0.test(n),p=Qo.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function H0(e=this){let t=[];return z0.call(this,e,{cachedKeys:t}),W0.call(this,e,{cachedKeys:t}),e}function qO(e={}){return e.on||(e.on={}),e.props||(e.props={}),H0.call(this,e)}function V0(e,t){this.__element.update({props:e},t)}function Tf(e){let t={update:V0.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Of,U0,q0,BT,GO,kd,Aa,G0,Ea,Ta,Oa,Rf,Ra,K0,X0,KO=Z(()=>{Ja(),G5(),Zr(),Me(),gd(),k0(),Of=/^[A-Z]/,U0=/^\d+$/,q0=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),BT=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),GO=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(BT.has(t)||Of.test(t))return!0;return!1},kd=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return ce(n)?{...n}:(o.__propsStack.push(n),{})},Aa=e=>tr(e)("string","number")?{inheritedString:e}:e,G0=(e,t)=>!e||!t.length?!1:t.includes(e),Ea=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let i=o[e.key],s=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(s&&!a){let l=Aa(s);n.unshift(l)}if(i){let l=Aa(i);n.unshift(l)}return n},Ta=e=>{let t=new Set;return e.filter(r=>!r||Fn.has(r)||t.has(r)?!1:(t.add(r),!0))},Oa=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(Fn.has(o))return n;for(;M(o);)o=De(o,t);return nr(n,ut(o,{exclude:Fn}))},{}),Tf(t),t.props),Rf=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Ea(e,t)]),B(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),q(n.__extendsStack))for(let i=0;i<n.__extendsStack.length;i++){let s=n.__extendsStack[i];s.props&&s.props!==r&&o.push(s.props)}return n.__propsStack=Ta(o),n.__propsStack},Ra=(e,t)=>{let{__ref:r}=e,n=Rf(e,t);n.length?Oa(n,e):(r.__propsStack=[],e.props={})},K0=function(e,t,r){let{__ref:n}=e;if(n.__if)Ra(e,t);else try{Ra(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return Tf(e),e},X0=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],i=Ea(t,r);return i.length&&(o=[...i,...o]),e&&(o=[e,...o]),n.__propsStack=Ta(o),n.__propsStack.length&&Oa(n.__propsStack,t),t}}),zb,Pf,$f,If,jf,Z0,Ff,Df,Lf,Y0,K5=Z(()=>{N0(),g0(),ud(),KO(),zO(),Me(),zb="production",Pf=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,i=Ha.body.has(r)&&r;return{text:e,tag:n||o||i||"string"}},$f=(e,t,r)=>{if(e===void 0)return(zb==="test"||zb==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:tr(e)("string","number")?Pf(e,t,r):M(e)?{props:e}:e},If=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},jf=(e,t,r,n,o)=>{if(!t)return o;if(Xa(t)){let i={key:":root",node:t};return o[`${r}_parent`]=i,i}return t},Z0=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Ff=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},Df=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),Lf=(e,t,r)=>{let n=If(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=_d(e,t,r),n.path=Ff(e,t,r),n},Y0=(e,t,r,n,o)=>{let i=e?.__hash?{extends:[e]}:$f(e,t,r);if(!i)return;let s=jf(i,t,r,n,o),a=wd(i,s,r);Lf(i,s,a);let l=kd(i,s,a),c=Df(i,s,a,n,o),u=i.on||{};return{...i,key:a,props:l,parent:s,context:c,on:u}}}),J0,Mf,Bf,Nf,zf,Q0,Wf,ex,tx,rx,nx,X5=Z(()=>{Za(),Ja(),Zr(),Me(),J0=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return tr(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Mf=(e,t)=>{if(e.includes("~/")&&e.split("~/").length>1)return t.root},Bf=(e,t)=>{if(!e.includes("../"))return;let r=e.split("../").length-1;for(let n=0;n<r;n++){if(!t.parent)return null;t=t.parent}return t},Nf=(e,t,r={})=>{let n=I(e)?e.split("/"):[e],o=n.length-1;for(let i=0;i<o;i++){let s=n[i],a=n[i+1];if(s==="__proto__"||a==="__proto__")return;let l=t[s];l||(l=t[s]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},zf=(e,t,r={})=>{let n=e.__ref.__state;if(!Wf(e))return;let o=Mf(n,t.state),i=t.state;if(o)i=o,n=n.replaceAll("~/","");else{let s=Bf(n,t.state);s&&(i=s,n=n.replaceAll("../",""))}if(i)return Nf(n,i,r)},Q0=(e,t)=>{let r=e.__ref,n=zf(e,t);if(n===void 0)return e.state;if(tr(n)("object","array"))return ut(n);if(tr(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Wf=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&tr(r)("number","string","boolean"))},ex=function(e){return ce(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},tx=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,i=r.length-1;for(let s=0;s<=i;s++)o[r[s]]=s===i?t||{}:{},o=o[r[s]];return n},rx=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=ut(n,jn),i={[e.key]:o},s=B(n.__depends)?{...n.__depends,...i}:i;return Array.isArray(n)?pd(n,{...Object.getPrototypeOf(n),__depends:s}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:s}),o},nx=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){nr(e,t,jn);return}(o?vd:Bn)(e,t,jn)}}),ox,Z5=Z(()=>{ox=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,i=n?.globalScope;if(!e.scope)o?e.scope=o:i?e.scope=Object.create(i):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let s=o||i;s&&Object.setPrototypeOf(e.scope,s)}}}),Wb,Hf,Jo,Vf,ix,XO=Z(()=>{Me(),k0(),Wb=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Hf=(e,t,r,n,o)=>{if(e=za(e,t),!!M(e))try{let i=e.call(t,t,r||t.state,n||t.context,o);return i&&typeof i.then=="function"&&i.catch(s=>{t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",s.message):console.error("[DOMQL] Async event error:",s)}),i}catch(i){if(t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",i.message):console.error("[DOMQL] Event handler error:",i),t.context?.strictMode)throw i}},Jo=(e,t,r)=>{if(!t)throw new Error("Element is required");Wa(e,t,r);let n=Wb(e,t);if(n){let{state:o,context:i}=t;return Hf(n,t,o,i,r)}},Vf=(e,t,r,n,o,i)=>{if(e=za(e,r),!!M(e))try{let s=e.call(r,t,r,n||r.state,o||r.context,i);return s&&typeof s.then=="function"&&s.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),s}catch(s){if(r.error=s,console.error("[DOMQL] Event update error:",s),r.context?.strictMode)throw s}},ix=(e,t,r,n)=>{Wa(e,r,t,n);let o=Wb(e,r);if(o){let{state:i,context:s}=r;return Vf(o,t,r,i,s,n)}}}),sx,Cd,ZO=Z(()=>{sx={},Cd={}}),YO={};$(YO,{setup:()=>JO,supabaseAdapter:()=>lv});var Hb,NT,JO,Wu,zT,lv,Y5=Z(()=>{"use strict";Hb=new Map,NT=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,JO=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:i,adapter:s,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=NT(l,t,o===!1),u=Hb.get(c);return u||(u=await n(l,t,a),u?.auth&&Hb.set(c,u)),!u||!u.auth?null:lv(u)},Wu=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},zT=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let i of n){let s=typeof i=="string"?i:i.by;e=e.order(s,{ascending:i.asc!==!1})}else{let i=typeof n=="string"?n:n.by;e=e.order(i,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},lv=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:i,...s})=>{let a=(r?e.schema(r):e).from(t).select(n||"*");if(a=Wu(a,o),a=zT(a,s),i)try{for(let l in i)a.setHeader?a=a.setHeader(l,i[l]):e.rest&&(e.rest.headers[l]=i[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return a},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:i})=>{let s=(r?e.schema(r):e).from(t).update(n);return s=Wu(s,o),s.select(i||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=Wu(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let i=n||"*",s=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:i,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(s)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})}),QO={};$(QO,{restAdapter:()=>cv,setup:()=>eR});var WT,gr,eR,cv,J5=Z(()=>{"use strict";WT=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let i in r){let s=r[i];s!=null&&o.searchParams.set(i,typeof s=="object"?JSON.stringify(s):s)}return o.toString()},gr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},eR=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return cv(e,t,r,n)},cv=(e,t={},r,n={})=>{let o=r?.token||null,i=c=>{let u={...t,...c};return o&&(u.Authorization=`Bearer ${o}`),u},s=c=>({...i(c),"Content-Type":"application/json"}),a=c=>({...n,...c}),l=(c,u)=>{let d=u||e;if(c&&(c.startsWith("http://")||c.startsWith("https://")))return c;let f=c&&!c.startsWith("/")?"/":"";return`${d}${f}${c||""}`};return{name:"rest",setToken:c=>{o=c},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let c=await gr(l(r.sessionUrl,r.baseUrl),a({headers:i()}));return c.error?null:c.data},signIn:async c=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await gr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:s(),body:JSON.stringify(c)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await gr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:i()})),o=null,{error:null}),select:({from:c,params:u,select:d,limit:f,offset:p,order:h,single:g,headers:m,baseUrl:y})=>{let b={...u};return d&&(b.select=d),f&&(b.limit=f),p&&(b.offset=p),g&&(b.single=!0),h&&(typeof h=="string"?b.order=h:Array.isArray(h)?b.order=h.map(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):h.by&&(b.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),gr(WT(y||e,c||"",b),a({headers:i(m)}))},rpc:({from:c,params:u,headers:d,baseUrl:f})=>gr(l(`rpc/${c}`,f),a({method:"POST",headers:s(d),body:JSON.stringify(u)})),insert:({from:c,data:u,headers:d,baseUrl:f})=>gr(l(c,f),a({method:"POST",headers:s(d),body:JSON.stringify(u)})),update:({from:c,data:u,params:d,method:f,headers:p,baseUrl:h})=>{let g=d?.id||u?.id,m=g?`${c}/${g}`:c;return gr(l(m,h),a({method:f||"PATCH",headers:s(p),body:JSON.stringify(u)}))},delete:({from:c,params:u,headers:d,baseUrl:f})=>{let p=u?.id,h=p?`${c}/${p}`:c;return gr(l(h,f),a({method:"DELETE",headers:i(d)}))}}}}),tR={};$(tR,{localAdapter:()=>uv,setup:()=>rR});var Hu,HT,rR,uv,Q5=Z(()=>{"use strict";Hu=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},HT=(e,{order:t,limit:r,offset:n,single:o})=>{let i=[...e];if(t){let s=typeof t=="string"?t:t.by,a=t.asc!==!1;i.sort((l,c)=>l[s]<c[s]?a?-1:1:l[s]>c[s]?a?1:-1:0)}return n&&(i=i.slice(n)),r&&(i=i.slice(0,r)),o?{data:i[0]||null,error:null}:{data:i,error:null}},rR=async({data:e,...t})=>uv(e,t),uv=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",i=t.prefix||"smbls_db_",s=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(i+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(i+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let p=s(u).filter(h=>Hu(h,d));return HT(p,f)},insert:async({from:u,data:d})=>{let f=s(u),p=(Array.isArray(d)?d:[d]).map(h=>{let g={id:h.id||++c,...h};return f.push(g),g});a(u);for(let h of p)l(u,"INSERT",h,null);return{data:Array.isArray(d)?p:p[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=s(u),h=[];for(let g=0;g<p.length;g++)if(Hu(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=s(u),p=[];for(let h=f.length-1;h>=0;h--)Hu(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}}),fa={};$(fa,{createAdapter:()=>oR,default:()=>aR,executeFetch:()=>ef,fetchPlugin:()=>sR,initAdapterAuth:()=>da,parseDuration:()=>Vo,queryClient:()=>iR,registerAdapter:()=>nR,resolveDb:()=>fv});var VT,UT,ia,Vb,nR,oR,fv,Vo,We,Ub,Do,qT,Lo,Mo,Bo,sa,Vu,aa,GT,qb,Uu,Gb,Kb,Pn,Xb,KT,Zb,XT,la,Yb,da,qu,it,_t,No,Gr,Nt,mr,ZT,YT,JT,Gu,QT,ef,iR,sR,aR,Go=Z(()=>{"use strict";L(),VT=["select","rpc","insert","update","delete","subscribe"],UT={supabase:()=>Promise.resolve().then(()=>(Y5(),YO)),rest:()=>Promise.resolve().then(()=>(J5(),QO)),local:()=>Promise.resolve().then(()=>(Q5(),tR))},ia=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),Vb=(()=>{if(typeof globalThis<"u"&&globalThis[ia])return globalThis[ia];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,ia,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[ia]}catch{}return e})(),nR=(e,t)=>{Vb[e]=t},oR=e=>{let t={};for(let r of VT)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},fv=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=Vb[n]||UT[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let i=await o();if(!i||typeof i.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(i||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return i.setup(r)},Vo=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},We=new Map,Ub=new Map,Do=new Map,qT=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=XT(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Lo=e=>We.get(e)||null,Mo=(e,t,r)=>{let n=We.get(e),o={data:t,error:r,time:Date.now(),stale:!1};We.set(e,o);let i=Ub.get(e);if(i)for(let s of i)M(s)&&s(o);return o},Bo=e=>{if(e){let t=We.get(e);t&&(t.stale=!0);return}for(let[,t]of We)t.stale=!0},sa=e=>{if(e){We.delete(e);return}We.clear()},Vu=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:I(e)?{staleTime:Vo(e),gcTime:3e5}:{staleTime:Vo(e.stale||e.staleTime)||6e4,gcTime:Vo(e.gc||e.gcTime||e.expire)||3e5,key:e.key},aa=null,GT=()=>{aa||(aa=setInterval(()=>{let e=Date.now();for(let[t,r]of We){let n=Ub.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&We.delete(t)}},3e4),aa.unref&&aa.unref())},GT(),qb=3,Uu=e=>Math.min(1e3*2**e,3e4),Gb=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:qb,delay:Uu}:typeof t=="number"?{count:t,delay:Uu}:{count:t.count??qb,delay:M(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:Uu}},Kb=async(e,t)=>{let{count:r,delay:n}=t,o;for(let i=0;i<=r;i++)try{let s=await e();if(s?.error){if(o=s.error,i<r){let a=M(n)?n(i,o):n;await new Promise(l=>setTimeout(l,a));continue}return s}return s}catch(s){if(o=s,i<r){let a=M(n)?n(i,s):n;await new Promise(l=>setTimeout(l,a));continue}throw s}return{data:null,error:o}},Pn={focus:new Set,online:new Set},Xb=!1,KT=()=>{if(Xb||typeof window>"u")return;Xb=!0;let e=()=>{for(let r of Pn.focus)r()},t=()=>{for(let r of Pn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},Zb=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(I(e))return{from:e,method:"select",query:!0,on:"create"};if(B(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},XT=e=>(!e||M(e),e),la=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},Yb=(e,t,r)=>{let n;if(!e)n=void 0;else if(M(e))n=e(t,t.state);else{n={};for(let o in e){let i=e[o];n[o]=M(i)?i(t,t.state):i}}return n},da=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let i=t.state?.root;i?.update&&i.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},qu=async(e,t)=>{if(M(e.select))return e.auth!==!1&&await da(e,t),e;if(e.__resolved)return e.auth!==!1&&await da(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=fv(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await da(r,t),r):null},it=(e,t,...r)=>{let n=M(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},_t=(e,t,r,...n)=>{let o=e&&M(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},No=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[i,s]of o.entries())t[i]=s;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let i=n[o],s=i.name||i.getAttribute("name");s&&(i.type==="checkbox"?t[s]=i.checked:i.type==="file"?t[s]=i.files:t[s]=i.value)}return t},Gr=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),i=o&&e.state?.root||e.state;if(i?.update)if(o){let s=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&s in t?i.update(t,{preventFetch:!0,...n}):i.update({[s]:t},{preventFetch:!0,...n})}else{let s=r?{[r]:t}:t;i.update(s,{preventFetch:!0,...n})}},Nt=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},mr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||M(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||M(e.skip)&&e.skip(t,t.state))return;let i=await qu(o,r);if(!i||!t.__ref)return;let s=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:x,headers:v,baseUrl:S,page:k,cursor:E,getNextPageParam:T,getPreviousPageParam:w,infinite:j,placeholderData:K,initialData:Q,select:W,keepPreviousData:H}=e,ee=I(W)?W:void 0;if(c&&M(t.getQuery)){let ue=t.getQuery(i.name||"paths");ue&&(ee=ue.select||ue.length&&ue.join(",")||ee)}let oe=Yb(u,t,r),se=Vu(d),qt=Gb(e),Jr=la(t,r),Md=Jr?`:${Jr}`:"",Y=se?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${j?":infinite":""}${k?":p"+JSON.stringify(k):""}${Md}`:null;if(!s.__fetchInitialized&&Y&&(s.__fetchInitialized=!0,Q!==void 0)){let ue=M(Q)?Q():Q;Mo(Y,ue,null)}if((l==="select"||l==="rpc")&&Y&&se){let ue=Lo(Y);if(ue&&!ue.error){let z=Date.now()-ue.time,V=ue.stale||z>(se.staleTime||0),N=ue.data;if(M(W)&&(N=W(N,t,t.state)),f&&(N=f(N,t,t.state)),Gr(t,N,m),!V){Nt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(K!==void 0){let z=M(K)?K(t,t.state):K;z!==void 0&&Gr(t,z,m)}}if(Y&&Do.has(Y)&&!n.force){let ue=Do.get(Y);try{let z=await Promise.race([ue,new Promise((V,N)=>setTimeout(()=>N("DEDUP_TIMEOUT"),15e3))]);if(z?.data!==void 0){let V=z.data;M(W)&&(V=W(V,t,t.state)),f&&(V=f(V,t,t.state)),Gr(t,V,m),it(t,"onFetchComplete",V),_t(e,t,"onFetchComplete",V)}}catch{}return}let Bd=!Lo(Y)?.data;Nt(t,{isFetching:!0,isLoading:Bd,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),it(t,"onFetchStart"),_t(e,t,"onFetchStart");let Te=r?.analyze?.emitNetwork,Qr=Te?typeof performance<"u"?performance.now():Date.now():0;Te&&Te({phase:"start",mode:"query",from:a,method:l,cacheKey:Y,lang:Jr});let Nd=Kb(async()=>{if(h!==!1&&i.auth!==!1&&i.getSession){let N=await i.getSession();if(h===!0&&!N){let U={message:"Not authenticated"};return Nt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:U,status:"error",fetchStatus:"idle"}),it(t,"onFetchError",U),_t(e,t,"onFetchError",U),{data:null,error:U}}}let ue=i[l];if(!M(ue))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let z={from:a,select:ee,params:oe,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:S},V=la(t,r);if(V&&(z.headers={...z.headers,"Accept-Language":V}),k!==void 0){if(B(k))k.offset!==void 0&&(z.offset=k.offset),k.limit!==void 0&&(z.limit=k.limit),k.cursor!==void 0&&(z.params={...z.params,cursor:k.cursor});else if(typeof k=="number"){let N=e.pageSize||y||20;z.offset=(k-1)*N,z.limit=N}}if(E!==void 0&&(z.params={...z.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let N;if(g===!0||e.on==="submit")N=No(t);else if(q(g)){let U=No(t);N={};for(let Oe of g)N[Oe]=U[Oe]}else t.state?.parse?N=t.state.parse():B(t.state)&&(N={...t.state});f&&(N=f(N,t,t.state)),z.data=N}if(l==="rpc"){let N=oe;if(e.on==="submit"){let U=No(t);N=e.transformParams?e.transformParams(U,t,t.state):U}z.params=N}if(l==="subscribe"){let N=i.subscribe({from:a,params:oe,on:e.subscribeOn},(U,Oe,sl)=>{Gr(t,U,m),it(t,"onFetchComplete",U),_t(e,t,"onFetchComplete",U)});return s.__unsubscribe=N,{data:null,error:null,subscribed:!0}}return ue(z)},qt);Y&&Do.set(Y,Nd);try{let ue=await Nd;if(ue?.subscribed)return;let{data:z,error:V}=ue||{};if(V){Y&&Mo(Y,null,V),Nt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:V,status:"error",fetchStatus:"idle"}),it(t,"onFetchError",V),_t(e,t,"onFetchError",V),Te&&Te({phase:"error",mode:"query",from:a,method:l,cacheKey:Y,error:V.message||V,durationMs:(typeof performance<"u"?performance.now():Date.now())-Qr});return}if(z!==void 0){if((l==="select"||l==="rpc")&&Y){let U=Mo(Y,z,null);U.gcTime=se?.gcTime||3e5}let N=z;j&&q(z)&&(s.__pages||(s.__pages=[]),n.direction==="previous"?s.__pages.unshift(z):s.__pages.push(z),N=s.__pages.flat(),T&&(s.__nextPageParam=T(z,s.__pages),s.__hasNextPage=s.__nextPageParam!=null),w&&(s.__prevPageParam=w(z,s.__pages),s.__hasPreviousPage=s.__prevPageParam!=null)),M(W)&&(N=W(N,t,t.state)),f&&(N=f(N,t,t.state)),(!H||N!==void 0)&&Gr(t,N,m),Nt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),it(t,"onFetchComplete",N),_t(e,t,"onFetchComplete",N),Te&&Te({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:Y,durationMs:(typeof performance<"u"?performance.now():Date.now())-Qr})}}catch(ue){Nt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ue,status:"error",fetchStatus:"idle"}),it(t,"onFetchError",ue),_t(e,t,"onFetchError",ue),Te&&Te({phase:"error",mode:"query",from:a,method:l,cacheKey:Y,error:ue.message||String(ue),durationMs:(typeof performance<"u"?performance.now():Date.now())-Qr})}finally{Y&&Do.delete(Y)}},ZT=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let i=e.__runner||mr;if(n==="submit"){let s=l=>{l.preventDefault(),i(e,t,r)},a=t.node;a&&(a.addEventListener("submit",s),o.__fetchListeners.push(()=>a.removeEventListener("submit",s)))}else if(n==="click"){let s=()=>i(e,t,r),a=t.node;a&&(a.addEventListener("click",s),o.__fetchListeners.push(()=>a.removeEventListener("click",s)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>i(e,t,r))},YT=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),KT();let o=e.refetchInterval;if(o){let i=typeof o=="number"?o:Vo(o);if(i>0){let s=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&mr(e,t,r,{force:!0})},i);n.__fetchCleanups.push(()=>clearInterval(s))}}if(e.refetchOnWindowFocus!==!1){let i=()=>{let s=la(t,r),a=qT(e,s),l=Lo(a),c=Vu(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&mr(e,t,r,{force:!0})};Pn.focus.add(i),n.__fetchCleanups.push(()=>Pn.focus.delete(i))}if(e.refetchOnReconnect!==!1){let i=()=>mr(e,t,r,{force:!0});Pn.online.add(i),n.__fetchCleanups.push(()=>Pn.online.delete(i))}},JT=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,i=e.state?.parse?e.state.parse():B(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=i;let s=M(t.optimistic)?t.optimistic(r,i,e):t.optimistic;return s!==void 0&&Gr(e,s,o),i},Gu=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Gr(e,n,t.as),delete r.__optimisticSnapshot)},QT=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await qu(n,r);if(!o)return;let i=t.__ref,{method:s,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:v}=e,S;if(l===!0||d==="submit")S=No(t);else if(q(l)){let w=No(t);S={};for(let j of l)S[j]=w[j]}else t.state?.parse?S=t.state.parse():B(t.state)&&(S={...t.state});c&&(S=c(S,t,t.state)),M(y)&&y(S,t,t.state);let k=m?JT(t,e,S):null;i.__fetching=!0,Nt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),it(t,"onFetchStart"),_t(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,T=E?typeof performance<"u"?performance.now():Date.now():0;E&&E({phase:"start",mode:"mutation",from:a,method:s});try{if(f!==!1&&o.auth!==!1&&o.getSession){let oe=await o.getSession();if(f===!0&&!oe){k!==void 0&&Gu(t,e);let se={message:"Not authenticated"};it(t,"onFetchError",se),_t(e,t,"onFetchError",se);return}}let w=o[s];if(!M(w))return;let j={from:a,data:S,headers:p,baseUrl:h};e.params&&(j.params=Yb(e.params,t,r));let K=la(t,r);K&&(j.headers={...j.headers,"Accept-Language":K});let Q=Gb(e),W=await Kb(()=>w(j),Q),{data:H,error:ee}=W||{};if(ee){k!==void 0&&Gu(t,e),Nt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ee,status:"error",fetchStatus:"idle"}),it(t,"onFetchError",ee),M(x)&&x(ee,S,t),M(v)&&v(null,ee,S,t),E&&E({phase:"error",mode:"mutation",from:a,method:s,error:ee.message||String(ee),durationMs:(typeof performance<"u"?performance.now():Date.now())-T});return}if(delete i.__optimisticSnapshot,H!==void 0){let oe=u?{[u]:H}:H;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(Nt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),it(t,"onFetchComplete",H),_t(e,t,"onFetchComplete",H),M(b)&&b(H,S,t),M(v)&&v(H,null,S,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:s,durationMs:(typeof performance<"u"?performance.now():Date.now())-T}),g){let oe=q(g)?g:[g];for(let se of oe)if(se===!0||se==="*")for(let[qt]of We)qt.startsWith(a+":")&&Bo(qt);else Bo(se)}}catch(w){k!==void 0&&Gu(t,e),Nt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:w,status:"error",fetchStatus:"idle"}),it(t,"onFetchError",w),_t(e,t,"onFetchError",w),M(x)&&x(w,S,t),M(v)&&v(null,w,S,t),E&&E({phase:"error",mode:"mutation",from:a,method:s,error:w.message||String(w),durationMs:(typeof performance<"u"?performance.now():Date.now())-T})}finally{i.__fetching=!1}},ef=(e,t,r,n)=>{if(!e||!n?.fetch)return;let o=De(e,t);if(!o)return;let i=q(o)?o.map(a=>Zb(De(a,t),t)).filter(Boolean):[Zb(o,t)].filter(Boolean);for(let a of i){let l=a.method==="insert"||a.method==="update"||a.method==="upsert"||a.method==="delete",c=l?QT:mr;a.on==="create"?c(a,t,n):Promise.resolve().then(()=>{ZT({...a,__runner:c},t,n)}),!l&&a.on==="create"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&YT(a,t,n)}let s=t.__ref;s.refetch=a=>{for(let l of i)mr(l,t,n,{force:!0,...a})},s.fetchNextPage=()=>{let a=i[0];if(!a||!a.infinite)return;let l=s.__nextPageParam;if(l==null)return;let c={...a,cursor:l};mr(c,t,n,{direction:"next",force:!0})},s.fetchPreviousPage=()=>{let a=i[0];if(!a||!a.infinite)return;let l=s.__prevPageParam;if(l==null)return;let c={...a,cursor:l};mr(c,t,n,{direction:"previous",force:!0})}},iR={invalidateQueries:e=>{if(!e){Bo();return}if(I(e))for(let[t]of We)(t.startsWith(e)||t.includes(e))&&Bo(t);else if(q(e)){let t=e.join(":");for(let[r]of We)r.includes(t)&&Bo(r)}},removeQueries:e=>{if(!e){sa();return}if(I(e))for(let[t]of We)(t.startsWith(e)||t.includes(e))&&sa(t)},getQueryData:e=>Lo(e)?.data??void 0,setQueryData:(e,t)=>{let r=Lo(e),n=M(t)?t(r?.data):t;Mo(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await qu(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,i=n[e.method||"select"];if(!M(i))return;let s=await i({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(s?.data!==void 0&&!s?.error){let a=Mo(o,s.data,null);a.gcTime=Vu(e.cache)?.gcTime||3e5}return s},getCache:()=>We,clear:()=>sa(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of We)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||sa(r))}},sR={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Do.clear(),ef(t,e,e.state,e.context))}},aR=ef});function lR(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function cR(e){let t=this,{parent:r}=t;if(M(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function uR(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let i=n[o],s=t[i];if(i===e)return s;if(M(e)){let l=e(s,s.state,s.context);if(s.state&&l)return s}let a=s?.lookdown?.(e);if(a)return a}}function fR(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let i=0;i<o.length;i++){let s=o[i],a=r[s];if(s===e)t.push(a);else if(M(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function ax(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(B(n)&&o)ax.call(o,n);else if(n!=null){let i=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),s=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(i,s,"important")}}return t}}function dR(e){let t=this;if(Jo("beforeRemove",t,e)===!1)return t;M(t.node.remove)?t.node.remove():Yo()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=dd(t.parent.__ref.__children,t.key)),Jo("remove",t,e)}function pR(e){return this[e]}function hR(e,t){let r=this;if(e)return r.update(e,t),r}function gR(e){return e?this.__ref&&this.__ref[e]:this.__ref}function mR(){return this.getRef("__children").map(e=>this[e])}function yR(){return this.getRef().path}function bR(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=dv();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=M(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=dv()),e?t?.[e]:t}function vR(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function xR(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function wR(e){let t=this.getRoot()?.context;return e?t[e]:t}function SR(e){let t=this.context;return e?t[e]:t}function lx(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||Qo.has(r)&&!md.has(r)||t.push(r);return t}function cx(e=[]){let t=this,r={},n=lx.call(t),o=n.includes("children"),i=e.length?new Set(e):null;for(let s=0;s<n.length;s++){let a=n[s];if(i&&i.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=M(l&&l.parse)?l.parse():l;r[a]=M(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else Mn(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Uf(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=cx.call(r,e),o=e.length?new Set(e):null;for(let i in n){if(o&&o.has(i)||!Object.prototype.hasOwnProperty.call(r,i))continue;let s=n[i];Array.isArray(s)?n[i]=s.map(a=>ce(a)?Uf.call(a,e,t):a):ce(s)&&(n[i]=Uf.call(s,e,t))}return n}function ux(...e){if(vr!=="test"&&vr!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
87
- `,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(n=>console.log(`%c${n}:`,"font-weight: bold",t[n]))),console.log(t),console.groupEnd(t.key),t}function _R(...e){(vr==="test"||vr==="development")&&console.log(...e)}function kR(...e){(vr==="test"||vr==="development")&&console.warn(...e)}function qf(...e){if(vr==="test"||vr==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&ux.call(this),new Error(...e)}}function CR(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),i=n[o+1];return r[i]}function AR(e){let t=e||this,{key:r,parent:n}=t,{__children:o}=n.__ref;if(!o)return;let i=o.indexOf(r);return n[o[i-1]]}function ER(e={}){let t=this;t.data||(t.data={}),t.data.varCaches||(t.data.varCaches={});let r=t.data.varCaches,n={},o;for(let i in e)e[i]!==r[i]&&(o=!0,n[i]=e[i]);return{changed:i=>{if(!o)return;let s=i(n,ut(r));for(let a in n)r[a]=n[a];return s},timeout:(i,s)=>{if(!o)return;let a=setTimeout(()=>{i(n),clearTimeout(a)},s)}}}function TR(e,...t){let r=this.context,n=r.utils?.[e]||r.functions?.[e]||r.methods?.[e]||r.snippets?.[e];if(n)try{let o=n.call(this,...t);return o&&typeof o.then=="function"&&o.catch(i=>{qf.call(this,i)}),o}catch(o){if(qf.call(this,o),r?.strictMode)throw o}}async function OR(){let e=this,t=e.context?.fetch;if(!t)return null;if(typeof t.select=="function"){if(!t.__authInitialized&&t.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Go(),fa));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Go(),fa));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(Go(),fa)).then(({resolveDb:o})=>o(t));t.__resolving=r;let n=await r;if(t.__resolved=n,e.context.fetch=n,delete t.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Go(),fa));await o(n,e.context)}return n}function RR(e){let t=this,r=e||Cd.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(tf(t,n),r===!0)return n;let o=$R[r];return o?o(n):n}function PR(e,t){return!!(Na.has(e)||t?.context?.methods?.[e])}var vr,Jb,fx,dv,dx,tf,eO,Qb,tO,rO,nO,oO,iO,sO,$R,e3=Z(()=>{XO(),Ja(),Me(),Zr(),DO(),Za(),ZO(),vr="production",Jb=null,fx=e=>{Jb=e||null},dv=()=>Jb||null,dx=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n}),tf=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&eO(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&tf(l,t)}let i=r.contentElementKey||"content",s=e[i];s&&s.__ref&&tf(s,t)},eO=(e,t)=>{let r=t.replaceAll("../","").replaceAll("~/","").split("/"),n=e;for(let o=0;o<r.length;o++){let i=r[o];o===r.length-1?n[i]||(n[i]=!0):(n[i]===!0&&(n[i]={}),n[i]||(n[i]={}),n=n[i])}},Qb=(e,t=0)=>{let r=" ".repeat(t),n=Object.entries(e);return n.length?n.map(([o,i])=>i===!0?`${r}${o}`:`${r}${o} {
88
- ${Qb(i,t+1)}
79
+ `;o+=`${n} ]`}else ce(i)?o+=ha(i,t+1):R(i)?o+=Qf(i,[`
80
+ `,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
81
+ `}return o+=`${n}}`,o},JC=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],ZC=/^["[{]/,QC=/^(export|import)\s/,Do=e=>{if(!e)return!1;let t=e.trim().replace(/\n\s*/g," ").trim();if(t===""||t==="{}"||t==="[]"||QC.test(t)||!JC.some(o=>o.test(t)))return!1;let r=t.charCodeAt(0),n=t.includes("=>");return!(r===123&&!n||r===91||ZC.test(t)&&!n)},eA=e=>(0,eval)(e),tA=(e,t)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(e);if(!r)return null;let n=r[0].length,o=[],s=n,i=1,a=null,l=e.length,c=new RegExp("^(?:const|let|var)\\s+"+t+"\\b");for(;s<l&&i>0;){let d=e[s];if(d==="/"&&e[s+1]==="/"){let f=e.indexOf(`
82
+ `,s);s=f===-1?l:f;continue}if(d==="/"&&e[s+1]==="*"){let f=e.indexOf("*/",s+2);s=f===-1?l:f+2;continue}if(d==='"'||d==="'"||d==="`"){let f=d;for(s++;s<l;){if(e[s]==="\\"){s+=2;continue}if(e[s]===f){s++;break}if(f==="`"&&e[s]==="$"&&e[s+1]==="{"){s+=2;let p=1;for(;s<l&&p>0;)e[s]==="{"?p++:e[s]==="}"&&p--,s++;continue}s++}continue}if(d==="{"){i++,s++;continue}if(d==="}"){i--,s++;continue}if(i===1&&c.test(e.slice(s))){let f=s,p=0,h=s;for(;h<l;){let g=e[h];if(g==='"'||g==="'"||g==="`"){let m=g;for(h++;h<l;){if(e[h]==="\\"){h+=2;continue}if(e[h]===m){h++;break}h++}continue}if(g==="("||g==="["||g==="{"){p++,h++;continue}if(g===")"||g==="]"||g==="}"){if(p===0)break;p--,h++;continue}if(p===0&&(g===";"||g===`
83
+ `)){h++;break}h++}o.push([f,h]),s=h;continue}s++}if(!o.length)return null;let u=e;for(let d=o.length-1;d>=0;d--)u=u.slice(0,o[d][0])+u.slice(o[d][1]);return u},Hy=(e,t,r)=>{try{return r.window.eval(`(${e})`)}catch(n){let o=n&&n.message?n.message:String(n),s=/await is only valid in async/.test(o),i=/Identifier '([^']+)' has already been declared/.exec(o),a=null;if(s){let l=String(e).trim();if(/^function[\s(]/.test(l))try{a=r.window.eval("(async "+l+")")}catch{}}else if(i){let l=String(e),c=i[1];for(let u=0;u<5;u++){let d=tA(l,c);if(!d||d===l)break;l=d;try{a=r.window.eval("("+l+")");break}catch(f){let p=/Identifier '([^']+)' has already been declared/.exec(f&&f.message||String(f));if(!p||p[1]!==c)break}}}return a||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${t} \u2014 value will be left as a string. Reason: `+o+`.
84
+ First 200 chars of source: `+String(e).slice(0,200)),e)}},lx=(e,t={},r={window:{eval:eA}})=>{if(!e||typeof e!="object")return t;let n=[[e,t]];for(;n.length;){let[o,s]=n.pop();for(let i in o){if(!Object.prototype.hasOwnProperty.call(o,i))continue;let a=o[i];if(R(a))Do(a)?s[i]=Hy(a,`"${i}"`,r):s[i]=a;else if(W(a)){let l=s[i]=[];for(let c=0;c<a.length;c++){let u=a[c];if(R(u))l.push(Do(u)?Hy(u,`array index ${c} (prop "${i}")`,r):u);else if(M(u)){let d={};l.push(d),n.push([u,d])}else l.push(u)}}else if(M(a)){let l=s[i]&&typeof s[i]=="object"&&!W(s[i])?s[i]:s[i]={};n.push([a,l])}else s[i]=a}}return t},rA="Set",nA="Map",oA=e=>!e||typeof e!="object"?e:e.__type===rA&&Array.isArray(e.values)?new Set(e.values):e.__type===nA&&Array.isArray(e.entries)?new Map(e.entries):e,cx=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];R(o)&&Do(o)?r.push([n,o]):t[n]=oA(o)}for(let[n,o]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
85
+ `);t[n]=le.eval(`(function(__gs__) { ${s}
86
+ return (${o}); })`)(t)}catch{try{t[n]=le.eval(`(${o})`)}catch{t[n]=o}}return t},ux=(e,t={verbose:!0})=>{try{return e?le.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},fx=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),tf=e=>{for(let t in e)return!1;return!0},dx=e=>M(e)&&tf(e),px=()=>Object.create(null),nd=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&Ur(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},od=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Ur(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},$n=(e,t,r={},n=new WeakMap)=>{if(!ce(e)||!ce(t)||st(e)||st(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&Ur(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];st(c)?e[a]=c:ce(l)&&ce(c)?e[a]=$n(l,c,r,n):c!==void 0&&(e[a]=c)}return e},rf=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!rf(e[i],t[i],r))return!1}return!0},sA=new Set(["node","__ref"]),hx=(e,t,r=sA)=>{if(e===t)return!0;if(!ce(e)||!ce(t)||st(e)||st(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(i,l))return!1;let c=a[l],u=i[l];if(st(c)||st(u)){if(c!==u)return!1}else if(ce(c)&&ce(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},gx=(e,t)=>{if(t==null)return e;if(Zt(t)("string","number"))delete e[t];else if(W(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},nf=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=nf(e[r]));return t},mx=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},yx=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},bx=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},xx=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},vx=e=>{let t=[],r=0;for(let n=0;n<e.length;n++)if(t.length<2)t.push(e[n]);else if(e[n]===t[n%2]?r++:(t=[e[n-1],e[n]],r=1),r>=20)return(Uy==="test"||Uy==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",t),!0},_x=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},wx=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}}),ga,sd,id,Sx=X(()=>{"use strict";Gr(),ga=(function(){let e=0;function t(){return e++,e}return t})(),sd=ga,id=(e,t,r)=>(Ne(r,e)||r||e.key||ga()).toString()}),Dt,kx,Uo,of,Cx,Ax,Ex,ad,Ox,Ka,sE=X(()=>{"use strict";Dt="production",kx=Dt,Uo=(e=Dt)=>e==="production",of=(e=Dt)=>e==="testing"||e==="test",Cx=of,Ax=(e=Dt)=>e==="staging",Ex=(e=Dt)=>e==="local",ad=(e=Dt)=>e==="development"||e==="dev"||e==="local",Ox=(e,t=Dt)=>t[e],Ka=(e=Dt)=>!Uo(e)});function iE(e,t,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||e.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,t),a&&e.apply(o,s)}}function aE(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Tx,Rx,iA,Px,Xa,La,Ma,Ya=X(()=>{"use strict";Tx=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Rx=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},iA=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Px=e=>iA.test(e),Xa=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},La=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},Ma=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o}}),$x,Zj=X(()=>{"use strict";Fe(),Gr(),$x=(e,t)=>{let{__ref:r}=e,n=e.if;if(L(n)){let o;try{o=n(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?Ne(n,e)?r.__if=!0:delete r.__if:r.__if=!0}}),Ix,Fx,Qj=X(()=>{"use strict";Ix=(e,...t)=>{e&&t.map(r=>console.log(r))},Fx=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function lE(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function cE(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var jx,Dx,Lx,Mx,eD=X(()=>{"use strict";Fe(),Gf(),jx=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Dx=(e,t,r=365)=>{if(Nt(be)||Nt(be.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;be.cookie=`${e}=${t};${o};path=/`},Lx=e=>{if(Nt(be)||Nt(be.cookie))return;let t=`${e}=`,r=decodeURIComponent(be.cookie).split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return""},Mx=e=>{Nt(be)||Nt(be.cookie)||(be.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}}),Na,Nx,Bx,uE=X(()=>{"use strict";Na={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},Nx=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),Bx=e=>Na.body.has(e)}),Ru,qy,Ba,ld,Qe,Vx,sf,ma,zx,ya,af,lf,ba,cf,Lo,aA,Jt,Gy,xa,va,Ux,_a,Wx,Hx,uf,ff,df,pf,hf,gf,qx,Gx=X(()=>{"use strict";Ha(),hE(),Gr(),Fe(),Ru="production",qy=e=>e.sourcemap!==!1&&Ru!=="production",Ba=e=>{if(e.includes("+"))return e.split("+").filter(En);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!En(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},ld=(e,t,r)=>{let n=[],o=Ba(r);o&&(n=[...o]);let s=e.extends;return s&&(n=W(s)?[...n,...s]:[...n,s]),n},Qe=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},Vx=(e,t)=>{if(!e)return t;let{extends:r}=t,n=W(r)?r:[r],o=W(e)?e:[e];return{...t,extends:Fa(o,n)}},sf=()=>Math.random().toString(36).substring(2),ma={},zx={},ya=e=>ma[e.__hash],af=(e,t)=>{let r=sf();return R(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(ma[r]=t),t},lf=(e,t)=>e.__hash?t.concat(ya(e)):af(e,t),ba=(e,t,r,n=new Set,o,s)=>{for(let i of e)W(i)?ba(i,t,r,n,o,s):Lo(i,t,r,n,o,void 0,s);return t},cf=(e,t,r,n=new Set,o,s,i)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(s)),a&&Lo(a,t,r,n,o,s,i),t},Lo=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(W(e))return ba(e,t,r,n,o,i);let a=s;return R(e)?(a=e,e=va(e,r)):i&&M(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?cf(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},aA=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Jt=(e,t,r,n,o)=>{t=at(t);for(let s in t){if(aA.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&n?M(a)&&!W(a)?(r[s]=r[s]||{},Gy(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(M(i)&&M(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];En(s)?e[s]=Jt(i,a,l,n,c):Jt(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(W(i)&&W(a))e[s]=i.concat(a);else if(W(i)&&M(a)){let l=Jt({},i);e[s]=Jt(l,a)}}}}return e},Gy=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=t[o];M(s)&&!W(s)?(e[o]=e[o]||{},Gy(e[o],s,r,n)):e[o]=r}}},xa=(e,t,r)=>e.reduce((n,o,s)=>{let i=at(o),a=r?r[s]:void 0;return Jt(n,i,t,a)},{}),va=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(R(e)){let i=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Ru==="test"||Ru==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Ux=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),_a=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return ya(e)||[];let o=Lo(e,[],t,new Set,r,void 0,n);return r?o:lf(e,o)},Wx=(e,t)=>{if(!e)return t;let r=W(e)?e:[e];return Fa(r,t)},Hx=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(En(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},uf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&o?.components){let l=`${i}.${s}`;o.components[l]?Qe([l,...a],e):Qe(e.extends,e)}else Qe(e.extends,e)}else if(typeof e.extends=="string"&&s&&o?.components){let i=`${e.extends}.${s}`;o.components[i]?Qe(i,e):Qe(e.extends,e)}else Qe(e.extends,e);return ff(e,t,r),df(e,t,r),pf(e,t,r),e.component&&Qe(Ne(e.component,e),e),o.defaultExtends&&Qe(o.defaultExtends,e),ja(n.__extends)},ff=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Qe(t.childProps.extends,e),n.__extends},df=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Qe(s,e),n.__extends},pf=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return o&&!i&&!s&&Qe(o,e),n.__extends},hf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=qy(r),a=i?[...n.__extends]:null,l=ja(n.__extends.map((c,u)=>va(c,o,r,u===0&&s)));if(i){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&M(p)&&R(h)&&c.set(p,h)}let u=[],d=_a(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=_a(l,o);n.__extendsStack=c}return n.__extendsStack},gf=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(qy(r)){let s={},i=n.__extendsNames||[],a=xa(o,s,i),l={};Jt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=xa(o);Jt(e,s)}return e},qx=(e,t,r={})=>(uf(e,t,r),hf(e,t,r),gf(e,t,r),e)});function fE(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function dE(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function pE(e,t,r){let{context:n}=t||{},[o]=Ba(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var En,hE=X(()=>{"use strict";Gx(),Fe(),En=e=>{if(!R(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function tD(e,t){let{props:r,on:n}=t,o=qa(e.split("on")[1]),s=n[o],i=r[e];L(s)?n[o]=(...a)=>{if(s(...a)!==!1&&L(i))return i(...a)}:n[o]=i}var rD=X(()=>{"use strict";ed(),Fe()});function Kx(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(L(o)||o!=null&&Xa(this.context))){let f=qa(n.slice(2));e.on&&(e.on[f]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let s=this.define?.[n],i=this.context?.define?.[n],a=M(s)||L(s),l=M(i)||L(i);if(a||l)continue;let c=n.charAt(0);if(Qx.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=yf.test(n)||Zx.test(n)||mE(o),d=qo.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function Xx(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=L(o)||o!=null&&Xa(this.context);if(s&&i){tD(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Qx.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=M(l)||L(l),d=M(c)||L(c),f=yf.test(n)||Zx.test(n),p=qo.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function Yx(e=this){let t=[];return Kx.call(this,e,{cachedKeys:t}),Xx.call(this,e,{cachedKeys:t}),e}function gE(e={}){return e.on||(e.on={}),e.props||(e.props={}),Yx.call(this,e)}function Jx(e,t){this.__element.update({props:e},t)}function mf(e){let t={update:Jx.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var yf,Zx,Qx,lA,mE,cd,wa,ev,Sa,ka,Ca,bf,Aa,tv,rv,yE=X(()=>{"use strict";Ga(),rD(),Gr(),Fe(),ed(),Ya(),yf=/^[A-Z]/,Zx=/^\d+$/,Qx=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),lA=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),mE=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(lA.has(t)||yf.test(t))return!0;return!1},cd=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return ce(n)?{...n}:(o.__propsStack.push(n),{})},wa=e=>Zt(e)("string","number")?{inheritedString:e}:e,ev=(e,t)=>!e||!t.length?!1:t.includes(e),Sa=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let s=o[e.key],i=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let l=wa(i);n.unshift(l)}if(s){let l=wa(s);n.unshift(l)}return n},ka=e=>{let t=new Set;return e.filter(r=>!r||Tn.has(r)||t.has(r)?!1:(t.add(r),!0))},Ca=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(Tn.has(o))return n;for(;L(o);)o=Ne(o,t);return tr(n,at(o,{exclude:Tn}))},{}),mf(t),t.props),bf=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Sa(e,t)]),M(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),W(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=ka(o),n.__propsStack},Aa=(e,t)=>{let{__ref:r}=e,n=bf(e,t);n.length?Ca(n,e):(r.__propsStack=[],e.props={})},tv=function(e,t,r){let{__ref:n}=e;if(n.__if)Aa(e,t);else try{Aa(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return mf(e),e},rv=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],s=Sa(t,r);return s.length&&(o=[...s,...o]),e&&(o=[e,...o]),n.__propsStack=ka(o),n.__propsStack.length&&Ca(n.__propsStack,t),t}}),Ky,xf,vf,_f,wf,nv,Sf,kf,Cf,ov,nD=X(()=>{"use strict";Gx(),Sx(),Xf(),yE(),uE(),Fe(),Ky="production",xf=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Na.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},vf=(e,t,r)=>{if(e===void 0)return(Ky==="test"||Ky==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Zt(e)("string","number")?xf(e,t,r):L(e)?{props:e}:e},_f=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},wf=(e,t,r,n,o)=>{if(!t)return o;if(Wa(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},nv=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Sf=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},kf=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),Cf=(e,t,r)=>{let n=_f(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=ld(e,t,r),n.path=Sf(e,t,r),n},ov=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:vf(e,t,r);if(!s)return;let i=wf(s,t,r,n,o),a=id(s,i,r);Cf(s,i,a);let l=cd(s,i,a),c=kf(s,i,a,n,o),u=s.on||{};return{...s,key:a,props:l,parent:i,context:c,on:u}}}),sv,Af,Ef,Of,Tf,iv,Rf,av,lv,cv,uv,oD=X(()=>{"use strict";Ha(),Ga(),Gr(),Fe(),sv=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Zt(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Af=(e,t)=>{if(e.includes("~/")&&e.split("~/").length>1)return t.root},Ef=(e,t)=>{if(!e.includes("../"))return;let r=e.split("../").length-1;for(let n=0;n<r;n++){if(!t.parent)return null;t=t.parent}return t},Of=(e,t,r={})=>{let n=R(e)?e.split("/"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Tf=(e,t,r={})=>{let n=e.__ref.__state;if(!Rf(e))return;let o=Af(n,t.state),s=t.state;if(o)s=o,n=n.replaceAll("~/","");else{let i=Ef(n,t.state);i&&(s=i,n=n.replaceAll("../",""))}if(s)return Of(n,s,r)},iv=(e,t)=>{let r=e.__ref,n=Tf(e,t);if(n===void 0)return e.state;if(Zt(n)("object","array"))return at(n);if(Zt(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Rf=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Zt(r)("number","string","boolean"))},av=function(e){return ce(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},lv=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?t||{}:{},o=o[r[i]];return n},cv=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=at(n,On),s={[e.key]:o},i=M(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Zf(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},uv=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){tr(e,t,On);return}(o?od:$n)(e,t,On)}}),fv,sD=X(()=>{"use strict";fv=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,s=n?.globalScope;if(!e.scope)o?e.scope=o:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(e.scope,i)}}}),Xy,Pf,Wo,$f,dv,bE=X(()=>{"use strict";Fe(),Ya(),Xy=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Pf=(e,t,r,n,o)=>{if(e=La(e,t),!!L(e))try{let s=e.call(t,t,r||t.state,n||t.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},Wo=(e,t,r)=>{if(!t)throw new Error("Element is required");Ma(e,t,r);let n=Xy(e,t);if(n){let{state:o,context:s}=t;return Pf(n,t,o,s,r)}},$f=(e,t,r,n,o,s)=>{if(e=La(e,r),!!L(e))try{let i=e.call(r,t,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},dv=(e,t,r,n)=>{Ma(e,r,t,n);let o=Xy(e,r);if(o){let{state:s,context:i}=r;return $f(o,t,r,s,i,n)}}}),pv,ud,xE=X(()=>{"use strict";pv={},ud={}}),vE={};Y(vE,{setup:()=>_E,supabaseAdapter:()=>gb});var Yy,cA,_E,Pu,uA,gb,iD=X(()=>{"use strict";Yy=new Map,cA=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,_E=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=cA(l,t,o===!1),u=Yy.get(c);return u||(u=await n(l,t,a),u?.auth&&Yy.set(c,u)),!u||!u.auth?null:gb(u)},Pu=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},uA=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;e=e.order(s,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},gb=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:s,...i})=>{let a=(r?e.schema(r):e).from(t).select(n||"*");if(a=Pu(a,o),a=uA(a,i),s)try{for(let l in s)a.setHeader?a=a.setHeader(l,s[l]):e.rest&&(e.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return a},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:s})=>{let i=(r?e.schema(r):e).from(t).update(n);return i=Pu(i,o),i.select(s||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=Pu(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})}),wE={};Y(wE,{restAdapter:()=>mb,setup:()=>SE});var fA,pr,SE,mb,aD=X(()=>{"use strict";fA=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},pr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},SE=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return mb(e,t,r,n)},mb=(e,t={},r,n={})=>{let o=r?.token||null,s=c=>{let u={...t,...c};return o&&(u.Authorization=`Bearer ${o}`),u},i=c=>({...s(c),"Content-Type":"application/json"}),a=c=>({...n,...c}),l=(c,u)=>{let d=u||e;if(c&&(c.startsWith("http://")||c.startsWith("https://")))return c;let f=c&&!c.startsWith("/")?"/":"";return`${d}${f}${c||""}`};return{name:"rest",setToken:c=>{o=c},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let c=await pr(l(r.sessionUrl,r.baseUrl),a({headers:s()}));return c.error?null:c.data},signIn:async c=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await pr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(c)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await pr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:c,params:u,select:d,limit:f,offset:p,order:h,single:g,headers:m,baseUrl:y})=>{let b={...u};return d&&(b.select=d),f&&(b.limit=f),p&&(b.offset=p),g&&(b.single=!0),h&&(typeof h=="string"?b.order=h:Array.isArray(h)?b.order=h.map(v=>`${v.by}:${v.asc===!1?"desc":"asc"}`).join(","):h.by&&(b.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),pr(fA(y||e,c||"",b),a({headers:s(m)}))},rpc:({from:c,params:u,headers:d,baseUrl:f})=>pr(l(`rpc/${c}`,f),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),insert:({from:c,data:u,headers:d,baseUrl:f})=>pr(l(c,f),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),update:({from:c,data:u,params:d,method:f,headers:p,baseUrl:h})=>{let g=d?.id||u?.id,m=g?`${c}/${g}`:c;return pr(l(m,h),a({method:f||"PATCH",headers:i(p),body:JSON.stringify(u)}))},delete:({from:c,params:u,headers:d,baseUrl:f})=>{let p=u?.id,h=p?`${c}/${p}`:c;return pr(l(h,f),a({method:"DELETE",headers:s(d)}))}}}}),kE={};Y(kE,{localAdapter:()=>yb,setup:()=>CE});var $u,dA,CE,yb,lD=X(()=>{"use strict";$u=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},dA=(e,{order:t,limit:r,offset:n,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((l,c)=>l[i]<c[i]?a?-1:1:l[i]>c[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},CE=async({data:e,...t})=>yb(e,t),yb=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(s+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(s+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let p=i(u).filter(h=>$u(h,d));return dA(p,f)},insert:async({from:u,data:d})=>{let f=i(u),p=(Array.isArray(d)?d:[d]).map(h=>{let g={id:h.id||++c,...h};return f.push(g),g});a(u);for(let h of p)l(u,"INSERT",h,null);return{data:Array.isArray(d)?p:p[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=i(u),h=[];for(let g=0;g<p.length;g++)if($u(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=i(u),p=[];for(let h=f.length-1;h>=0;h--)$u(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}}),aa={};Y(aa,{createAdapter:()=>EE,default:()=>RE,executeFetch:()=>zu,fetchPlugin:()=>TE,initAdapterAuth:()=>la,parseDuration:()=>jo,queryClient:()=>OE,registerAdapter:()=>AE,resolveDb:()=>bb});var pA,hA,ta,Jy,AE,EE,bb,jo,Me,Zy,Oo,gA,To,Ro,Po,ra,Iu,na,mA,Qy,Fu,eb,tb,Cn,rb,yA,nb,bA,oa,ob,la,ju,nt,bt,$o,Wr,Ft,hr,xA,vA,_A,Du,wA,zu,OE,TE,RE,Mo=X(()=>{"use strict";N(),pA=["select","rpc","insert","update","delete","subscribe"],hA={supabase:()=>Promise.resolve().then(()=>(iD(),vE)),rest:()=>Promise.resolve().then(()=>(aD(),wE)),local:()=>Promise.resolve().then(()=>(lD(),kE))},ta=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),Jy=(()=>{if(typeof globalThis<"u"&&globalThis[ta])return globalThis[ta];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,ta,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[ta]}catch{}return e})(),AE=(e,t)=>{Jy[e]=t},EE=e=>{let t={};for(let r of pA)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},bb=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=Jy[n]||hA[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},jo=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},Me=new Map,Zy=new Map,Oo=new Map,gA=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=bA(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},To=e=>Me.get(e)||null,Ro=(e,t,r)=>{let n=Me.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Me.set(e,o);let s=Zy.get(e);if(s)for(let i of s)L(i)&&i(o);return o},Po=e=>{if(e){let t=Me.get(e);t&&(t.stale=!0);return}for(let[,t]of Me)t.stale=!0},ra=e=>{if(e){Me.delete(e);return}Me.clear()},Iu=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:R(e)?{staleTime:jo(e),gcTime:3e5}:{staleTime:jo(e.stale||e.staleTime)||6e4,gcTime:jo(e.gc||e.gcTime||e.expire)||3e5,key:e.key},na=null,mA=()=>{na||(na=setInterval(()=>{let e=Date.now();for(let[t,r]of Me){let n=Zy.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Me.delete(t)}},3e4),na.unref&&na.unref())},mA(),Qy=3,Fu=e=>Math.min(1e3*2**e,3e4),eb=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:Qy,delay:Fu}:typeof t=="number"?{count:t,delay:Fu}:{count:t.count??Qy,delay:L(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:Fu}},tb=async(e,t)=>{let{count:r,delay:n}=t,o;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(o=i.error,s<r){let a=L(n)?n(s,o):n;await new Promise(l=>setTimeout(l,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=L(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},Cn={focus:new Set,online:new Set},rb=!1,yA=()=>{if(rb||typeof window>"u")return;rb=!0;let e=()=>{for(let r of Cn.focus)r()},t=()=>{for(let r of Cn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},nb=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(R(e))return{from:e,method:"select",query:!0,on:"create"};if(M(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},bA=e=>(!e||L(e),e),oa=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},ob=(e,t,r)=>{let n;if(!e)n=void 0;else if(L(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=L(s)?s(t,t.state):s}}return n},la=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},ju=async(e,t)=>{if(L(e.select))return e.auth!==!1&&await la(e,t),e;if(e.__resolved)return e.auth!==!1&&await la(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=bb(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await la(r,t),r):null},nt=(e,t,...r)=>{let n=L(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},bt=(e,t,r,...n)=>{let o=e&&L(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},$o=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())t[s]=i;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},Wr=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...n}):s.update({[i]:t},{preventFetch:!0,...n})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...n})}},Ft=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},hr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||L(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||L(e.skip)&&e.skip(t,t.state))return;let s=await ju(o,r);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:v,headers:x,baseUrl:_,page:C,cursor:E,getNextPageParam:F,getPreviousPageParam:w,infinite:$,placeholderData:q,initialData:te,select:j,keepPreviousData:I}=e,Q=R(j)?j:void 0;if(c&&L(t.getQuery)){let ue=t.getQuery(s.name||"paths");ue&&(Q=ue.select||ue.length&&ue.join(",")||Q)}let oe=ob(u,t,r),ie=Iu(d),Vt=eb(e),Xr=oa(t,r),Cd=Xr?`:${Xr}`:"",J=ie?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${$?":infinite":""}${C?":p"+JSON.stringify(C):""}${Cd}`:null;if(!i.__fetchInitialized&&J&&(i.__fetchInitialized=!0,te!==void 0)){let ue=L(te)?te():te;Ro(J,ue,null)}if((l==="select"||l==="rpc")&&J&&ie){let ue=To(J);if(ue&&!ue.error){let V=Date.now()-ue.time,z=ue.stale||V>(ie.staleTime||0),B=ue.data;if(L(j)&&(B=j(B,t,t.state)),f&&(B=f(B,t,t.state)),Wr(t,B,m),!z){Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(q!==void 0){let V=L(q)?q(t,t.state):q;V!==void 0&&Wr(t,V,m)}}if(J&&Oo.has(J)&&!n.force){let ue=Oo.get(J);try{let V=await Promise.race([ue,new Promise((z,B)=>setTimeout(()=>B("DEDUP_TIMEOUT"),15e3))]);if(V?.data!==void 0){let z=V.data;L(j)&&(z=j(z,t,t.state)),f&&(z=f(z,t,t.state)),Wr(t,z,m),nt(t,"onFetchComplete",z),bt(e,t,"onFetchComplete",z)}}catch{}return}let Ad=!To(J)?.data;Ft(t,{isFetching:!0,isLoading:Ad,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),nt(t,"onFetchStart"),bt(e,t,"onFetchStart");let Ce=r?.analyze?.emitNetwork,Yr=Ce?typeof performance<"u"?performance.now():Date.now():0;Ce&&Ce({phase:"start",mode:"query",from:a,method:l,cacheKey:J,lang:Xr});let Ed=tb(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let B=await s.getSession();if(h===!0&&!B){let U={message:"Not authenticated"};return Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:U,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",U),bt(e,t,"onFetchError",U),{data:null,error:U}}}let ue=s[l];if(!L(ue))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let V={from:a,select:Q,params:oe,single:p,limit:y,offset:b,order:v,headers:x,baseUrl:_},z=oa(t,r);if(z&&(V.headers={...V.headers,"Accept-Language":z}),C!==void 0){if(M(C))C.offset!==void 0&&(V.offset=C.offset),C.limit!==void 0&&(V.limit=C.limit),C.cursor!==void 0&&(V.params={...V.params,cursor:C.cursor});else if(typeof C=="number"){let B=e.pageSize||y||20;V.offset=(C-1)*B,V.limit=B}}if(E!==void 0&&(V.params={...V.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let B;if(g===!0||e.on==="submit")B=$o(t);else if(W(g)){let U=$o(t);B={};for(let Ae of g)B[Ae]=U[Ae]}else t.state?.parse?B=t.state.parse():M(t.state)&&(B={...t.state});f&&(B=f(B,t,t.state)),V.data=B}if(l==="rpc"){let B=oe;if(e.on==="submit"){let U=$o(t);B=e.transformParams?e.transformParams(U,t,t.state):U}V.params=B}if(l==="subscribe"){let B=s.subscribe({from:a,params:oe,on:e.subscribeOn},(U,Ae,el)=>{Wr(t,U,m),nt(t,"onFetchComplete",U),bt(e,t,"onFetchComplete",U)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return ue(V)},Vt);J&&Oo.set(J,Ed);try{let ue=await Ed;if(ue?.subscribed)return;let{data:V,error:z}=ue||{};if(z){J&&Ro(J,null,z),Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:z,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",z),bt(e,t,"onFetchError",z),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:J,error:z.message||z,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr});return}if(V!==void 0){if((l==="select"||l==="rpc")&&J){let U=Ro(J,V,null);U.gcTime=ie?.gcTime||3e5}let B=V;$&&W(V)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(V):i.__pages.push(V),B=i.__pages.flat(),F&&(i.__nextPageParam=F(V,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),w&&(i.__prevPageParam=w(V,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),L(j)&&(B=j(B,t,t.state)),f&&(B=f(B,t,t.state)),(!I||B!==void 0)&&Wr(t,B,m),Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),nt(t,"onFetchComplete",B),bt(e,t,"onFetchComplete",B),Ce&&Ce({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:J,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}}catch(ue){Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ue,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",ue),bt(e,t,"onFetchError",ue),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:J,error:ue.message||String(ue),durationMs:(typeof performance<"u"?performance.now():Date.now())-Yr})}finally{J&&Oo.delete(J)}},xA=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||hr;if(n==="submit"){let i=l=>{l.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,r))},vA=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),yA();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:jo(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&hr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=oa(t,r),a=gA(e,i),l=To(a),c=Iu(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&hr(e,t,r,{force:!0})};Cn.focus.add(s),n.__fetchCleanups.push(()=>Cn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>hr(e,t,r,{force:!0});Cn.online.add(s),n.__fetchCleanups.push(()=>Cn.online.delete(s))}},_A=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():M(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=L(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&Wr(e,i,o),s},Du=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Wr(e,n,t.as),delete r.__optimisticSnapshot)},wA=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await ju(n,r);if(!o)return;let s=t.__ref,{method:i,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:v,onSettled:x}=e,_;if(l===!0||d==="submit")_=$o(t);else if(W(l)){let w=$o(t);_={};for(let $ of l)_[$]=w[$]}else t.state?.parse?_=t.state.parse():M(t.state)&&(_={...t.state});c&&(_=c(_,t,t.state)),L(y)&&y(_,t,t.state);let C=m?_A(t,e,_):null;s.__fetching=!0,Ft(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),nt(t,"onFetchStart"),bt(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,F=E?typeof performance<"u"?performance.now():Date.now():0;E&&E({phase:"start",mode:"mutation",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let oe=await o.getSession();if(f===!0&&!oe){C!==void 0&&Du(t,e);let ie={message:"Not authenticated"};nt(t,"onFetchError",ie),bt(e,t,"onFetchError",ie);return}}let w=o[i];if(!L(w))return;let $={from:a,data:_,headers:p,baseUrl:h};e.params&&($.params=ob(e.params,t,r));let q=oa(t,r);q&&($.headers={...$.headers,"Accept-Language":q});let te=eb(e),j=await tb(()=>w($),te),{data:I,error:Q}=j||{};if(Q){C!==void 0&&Du(t,e),Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",Q),L(v)&&v(Q,_,t),L(x)&&x(null,Q,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-F});return}if(delete s.__optimisticSnapshot,I!==void 0){let oe=u?{[u]:I}:I;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),nt(t,"onFetchComplete",I),bt(e,t,"onFetchComplete",I),L(b)&&b(I,_,t),L(x)&&x(I,null,_,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-F}),g){let oe=W(g)?g:[g];for(let ie of oe)if(ie===!0||ie==="*")for(let[Vt]of Me)Vt.startsWith(a+":")&&Po(Vt);else Po(ie)}}catch(w){C!==void 0&&Du(t,e),Ft(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:w,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",w),bt(e,t,"onFetchError",w),L(v)&&v(w,_,t),L(x)&&x(null,w,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:w.message||String(w),durationMs:(typeof performance<"u"?performance.now():Date.now())-F})}finally{s.__fetching=!1}},zu=(e,t,r,n)=>{if(!e||!n?.fetch)return;let o=Ne(e,t);if(!o)return;let s=W(o)?o.map(a=>nb(Ne(a,t),t)).filter(Boolean):[nb(o,t)].filter(Boolean);for(let a of s){let l=a.method==="insert"||a.method==="update"||a.method==="upsert"||a.method==="delete",c=l?wA:hr;a.on==="create"?c(a,t,n):Promise.resolve().then(()=>{xA({...a,__runner:c},t,n)}),!l&&a.on==="create"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&vA(a,t,n)}let i=t.__ref;i.refetch=a=>{for(let l of s)hr(l,t,n,{force:!0,...a})},i.fetchNextPage=()=>{let a=s[0];if(!a||!a.infinite)return;let l=i.__nextPageParam;if(l==null)return;let c={...a,cursor:l};hr(c,t,n,{direction:"next",force:!0})},i.fetchPreviousPage=()=>{let a=s[0];if(!a||!a.infinite)return;let l=i.__prevPageParam;if(l==null)return;let c={...a,cursor:l};hr(c,t,n,{direction:"previous",force:!0})}},OE={invalidateQueries:e=>{if(!e){Po();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&Po(t);else if(W(e)){let t=e.join(":");for(let[r]of Me)r.includes(t)&&Po(r)}},removeQueries:e=>{if(!e){ra();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&ra(t)},getQueryData:e=>To(e)?.data??void 0,setQueryData:(e,t)=>{let r=To(e),n=L(t)?t(r?.data):t;Ro(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await ju(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=n[e.method||"select"];if(!L(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=Ro(o,i.data,null);a.gcTime=Iu(e.cache)?.gcTime||3e5}return i},getCache:()=>Me,clear:()=>ra(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Me)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||ra(r))}},TE={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Oo.clear(),zu(t,e,e.state,e.context))}},RE=zu});function PE(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function $E(e){let t=this,{parent:r}=t;if(L(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function IE(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=t[s];if(s===e)return i;if(L(e)){let l=e(i,i.state,i.context);if(i.state&&l)return i}let a=i?.lookdown?.(e);if(a)return a}}function FE(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===e)t.push(a);else if(L(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function hv(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(M(n)&&o)hv.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function jE(e){let t=this;if(Wo("beforeRemove",t,e)===!1)return t;L(t.node.remove)?t.node.remove():Uo()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=Jf(t.parent.__ref.__children,t.key)),Wo("remove",t,e)}function DE(e){return this[e]}function LE(e,t){let r=this;if(e)return r.update(e,t),r}function ME(e){return e?this.__ref&&this.__ref[e]:this.__ref}function NE(){return this.getRef("__children").map(e=>this[e])}function BE(){return this.getRef().path}function VE(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=xb();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=L(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=xb()),e?t?.[e]:t}function zE(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function UE(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function WE(e){let t=this.getRoot()?.context;return e?t[e]:t}function HE(e){let t=this.context;return e?t[e]:t}function gv(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||qo.has(r)&&!td.has(r)||t.push(r);return t}function mv(e=[]){let t=this,r={},n=gv.call(t),o=n.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=L(l&&l.parse)?l.parse():l;r[a]=L(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else zo(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function If(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=mv.call(r,e),o=e.length?new Set(e):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>ce(a)?If.call(a,e,t):a):ce(i)&&(n[s]=If.call(i,e,t))}return n}function yv(...e){if(yr!=="test"&&yr!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
87
+ `,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(n=>console.log(`%c${n}:`,"font-weight: bold",t[n]))),console.log(t),console.groupEnd(t.key),t}function qE(...e){(yr==="test"||yr==="development")&&console.log(...e)}function GE(...e){(yr==="test"||yr==="development")&&console.warn(...e)}function Ff(...e){if(yr==="test"||yr==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&yv.call(this),new Error(...e)}}function KE(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),s=n[o+1];return r[s]}function XE(e){let t=e||this,{key:r,parent:n}=t,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function YE(e={}){let t=this;t.data||(t.data={}),t.data.varCaches||(t.data.varCaches={});let r=t.data.varCaches,n={},o;for(let s in e)e[s]!==r[s]&&(o=!0,n[s]=e[s]);return{changed:s=>{if(!o)return;let i=s(n,at(r));for(let a in n)r[a]=n[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(n),clearTimeout(a)},i)}}}function JE(e,...t){let r=this.context,n=r.utils?.[e]||r.functions?.[e]||r.methods?.[e]||r.snippets?.[e];if(n)try{let o=n.call(this,...t);return o&&typeof o.then=="function"&&o.catch(s=>{Ff.call(this,s)}),o}catch(o){if(Ff.call(this,o),r?.strictMode)throw o}}async function ZE(){let e=this,t=e.context?.fetch;if(!t)return null;if(typeof t.select=="function"){if(!t.__authInitialized&&t.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Mo(),aa));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Mo(),aa));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(Mo(),aa)).then(({resolveDb:o})=>o(t));t.__resolving=r;let n=await r;if(t.__resolved=n,e.context.fetch=n,delete t.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Mo(),aa));await o(n,e.context)}return n}function QE(e){let t=this,r=e||ud.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(Uu(t,n),r===!0)return n;let o=tO[r];return o?o(n):n}function eO(e,t){return!!(Da.has(e)||t?.context?.methods?.[e])}var yr,sb,bv,xb,xv,Uu,SA,ib,kA,CA,AA,EA,OA,TA,tO,cD=X(()=>{"use strict";bE(),Ga(),Fe(),Gr(),sE(),Ha(),xE(),yr="production",sb=null,bv=e=>{sb=e||null},xb=()=>sb||null,xv=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n}),Uu=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&SA(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&Uu(l,t)}let s=r.contentElementKey||"content",i=e[s];i&&i.__ref&&Uu(i,t)},SA=(e,t)=>{let r=t.replaceAll("../","").replaceAll("~/","").split("/"),n=e;for(let o=0;o<r.length;o++){let s=r[o];o===r.length-1?n[s]||(n[s]=!0):(n[s]===!0&&(n[s]={}),n[s]||(n[s]={}),n=n[s])}},ib=(e,t=0)=>{let r=" ".repeat(t),n=Object.entries(e);return n.length?n.map(([o,s])=>s===!0?`${r}${o}`:`${r}${o} {
88
+ ${ib(s,t+1)}
89
89
  ${r}}`).join(`
90
- `):""},tO=e=>`{
91
- ${Qb(e,1)}
92
- }`,rO=e=>{let t={fields:{},include:[]},r=(n,o)=>{let i=[];for(let s in n)if(n[s]===!0)i.push(s);else{let a=o?`${o}.${s}`:s;t.include.push(a),r(n[s],a)}i.length&&(t.fields[o||"_root"]=i)};return r(e,""),t},nO=e=>{let t=i=>{let s=[],a=[];for(let l in i)if(i[l]===!0)s.push(l);else{let c=t(i[l]),u=[];c.select&&u.push(`$select=${c.select}`),c.expand&&u.push(`$expand=${c.expand}`),a.push(u.length?`${l}(${u.join(";")})`:l)}return{select:s.length?s.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=t(e),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},oO=(e,t)=>{let r=[],n=[],o=new Set,i=(u,d,f)=>{o.add(d),f&&n.push(`LEFT JOIN ${d} ON ${d}.${f}_id = ${f}.id`);for(let p in u)u[p]===!0?r.push(`${d}.${p}`):i(u[p],p,d)},s=Object.keys(e);s.length===1&&e[s[0]]!==!0?i(e[s[0]],s[0],null):i(e,"_root",null);let a=[...o][0]||"_root",l=r.length?r.join(", "):"*",c=n.length?`
90
+ `):""},kA=e=>`{
91
+ ${ib(e,1)}
92
+ }`,CA=e=>{let t={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;t.include.push(a),r(n[i],a)}s.length&&(t.fields[o||"_root"]=s)};return r(e,""),t},AA=e=>{let t=s=>{let i=[],a=[];for(let l in s)if(s[l]===!0)i.push(l);else{let c=t(s[l]),u=[];c.select&&u.push(`$select=${c.select}`),c.expand&&u.push(`$expand=${c.expand}`),a.push(u.length?`${l}(${u.join(";")})`:l)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=t(e),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},EA=(e,t)=>{let r=[],n=[],o=new Set,s=(u,d,f)=>{o.add(d),f&&n.push(`LEFT JOIN ${d} ON ${d}.${f}_id = ${f}.id`);for(let p in u)u[p]===!0?r.push(`${d}.${p}`):s(u[p],p,d)},i=Object.keys(e);i.length===1&&e[i[0]]!==!0?s(e[i[0]],i[0],null):s(e,"_root",null);let a=[...o][0]||"_root",l=r.length?r.join(", "):"*",c=n.length?`
93
93
  `+n.join(`
94
94
  `):"";return`SELECT ${l}
95
- FROM ${a}${c}`},iO=e=>{let t=[],r=(n,o)=>{for(let i in n){let s=o?`${o}/${i}`:i;n[i]===!0?t.push(s):r(n[i],s)}};return r(e,""),t},sO=e=>{let t=n=>{let o=[];for(let i in n)n[i]===!0?o.push(i):o.push(`${i}(${t(n[i])})`);return o.join(", ")},r=Object.keys(e);return r.length===1&&e[r[0]]!==!0?{from:r[0],select:t(e[r[0]])}:{from:null,select:t(e)}},$R={graphql:tO,"json-api":rO,odata:nO,sql:oO,supabase:sO,paths:iO}}),aO,px,t3=Z(()=>{g0(),aO={snapshotId:xd},px=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let s=aO.snapshotId();return r.__currentSnapshot=s,[s,e]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}}),Gf,hx,r3=Z(()=>{Gf=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),hx=e=>typeof e=="string"&&Gf.has(e)});async function IR(e){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(t){console.warn(`Error attempting to enable fullscreen mode: ${t.message} (${t.name})`)}}var n3=Z(()=>{});function o3(e){return/^[0-9.]+$/.test(e)&&e!==""}var Ht,Kf,gx,Xf,mx,i3=Z(()=>{Ht={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${Ht.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${Ht.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${Ht.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${Ht.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!o3(t)?`${Ht.symbols.url}/${e}`:`${Ht.symbols.url}/${e}/${t}.js`}},Kf={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},gx=(e={})=>{let{packageManager:t}=e;return Kf[t]||null},Xf=(e,t="latest",r="esmsh")=>(Ht[r]||Ht.esmsh).formatUrl(e,t),mx=(e,t="skypack")=>{let r=e.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let i of n){let s=r[i]||"latest";o[i]=Xf(i,s,t)}return`<script type="importmap">{
95
+ FROM ${a}${c}`},OA=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?t.push(i):r(n[s],i)}};return r(e,""),t},TA=e=>{let t=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${t(n[s])})`);return o.join(", ")},r=Object.keys(e);return r.length===1&&e[r[0]]!==!0?{from:r[0],select:t(e[r[0]])}:{from:null,select:t(e)}},tO={graphql:kA,"json-api":CA,odata:AA,sql:EA,supabase:TA,paths:OA}}),RA,vv,uD=X(()=>{"use strict";Sx(),RA={snapshotId:sd},vv=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let i=RA.snapshotId();return r.__currentSnapshot=i,[i,e]}let s=o.__ref.__currentSnapshot;return n<s?[s,o,!0]:[s,o]}}),jf,_v,fD=X(()=>{jf=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),_v=e=>typeof e=="string"&&jf.has(e)});async function rO(e){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(t){console.warn(`Error attempting to enable fullscreen mode: ${t.message} (${t.name})`)}}var dD=X(()=>{"use strict"});function pD(e){return/^[0-9.]+$/.test(e)&&e!==""}var Lt,Df,wv,Lf,Sv,hD=X(()=>{"use strict";Lt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${Lt.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${Lt.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${Lt.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${Lt.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!pD(t)?`${Lt.symbols.url}/${e}`:`${Lt.symbols.url}/${e}/${t}.js`}},Df={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},wv=(e={})=>{let{packageManager:t}=e;return Df[t]||null},Lf=(e,t="latest",r="esmsh")=>(Lt[r]||Lt.esmsh).formatUrl(e,t),Sv=(e,t="skypack")=>{let r=e.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=Lf(s,i,t)}return`<script type="importmap">{
96
96
  "imports": ${JSON.stringify(o,null,2)}
97
- }<\/script>`}}),yx,s3=Z(()=>{yx=e=>{if(!e)return"";let t=new Date(e),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),n=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)} ${n}, ${r}`}}),bx,a3=Z(()=>{bx=(e,t)=>{let r=setTimeout(()=>{let{props:n}=e;if(!t.clientHeight){let{node:{clientHeight:o}}=e;o&&(t.clientHeight=o)}if(t.active){if(n.height==="auto")return;e.update({height:t.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{e.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else e.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}}),vx,l3=Z(()=>{vx=function(e){let t=[0,1];for(let r=2;r<=e;r++)t[r]=t[r-1]+t[r-2];return t[e]}}),xx,c3=Z(()=>{xx=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function jR(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,i)=>{let s=n.querySelector(`script[src="${e}"]`);if(s)return o(s);let a=n.createElement("script");a.src=e,a.async=t.async===!0,a.type=t.type||"text/javascript",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,i(new Error(`Failed to load script: ${e}`))},n.head.appendChild(a)})}async function FR(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,i)=>{let s=n.querySelector(`link[href="${e}"]`);if(s)return o(s);let a=n.createElement("link");a.href=e,a.rel=t.rel||"stylesheet",a.type="text/css",a.media=t.media||"all",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,i(new Error(`Failed to load stylesheet: ${e}`))},n.head.appendChild(a)})}var wx,Sx,_x,kx,Cx,u3=Z(()=>{wx=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,i)=>{try{let s=r.createElement("script");s.type=n,s.async=t,s.src=e,s.addEventListener("load",a=>{o({status:!0})}),s.addEventListener("error",a=>{i(new Error({status:!1,message:`Failed to load the script ${e}`}))}),r.body.appendChild(s)}catch(s){i(s)}}),Sx=(e,t=document,r="text/javascript")=>new Promise((n,o)=>{let i=t.createElement("script");i.type=r,i.src=e;let s=t.createElement("div");s.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",t.body.appendChild(s),i.onload=()=>{console.log(`Successfully loaded: ${e}`),t.body.removeChild(s),n()},i.onerror=()=>{t.body.removeChild(s),o(new Error(`Failed to load: ${e}`))},t.body.appendChild(i)}),_x=(e,t=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",e,!1),o.send(),o.status===200){let i=t.createElement("script");i.type=n,i.text=o.responseText,t.body.appendChild(i),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${e}`)},kx=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,i)=>{try{let s=r.createElement("link");s.rel="stylesheet",s.href=e,s.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(s)}catch(s){i(s)}}),Cx=(e,t=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let i=r.createElement("script");i.type=n,i.async=t,i.id=o,i.innerHTML=e,r.body.appendChild(i)}catch(i){console.warn(i)}}});function f3(e,t){if(!t||typeof t!="object")return e;let r=o=>{if(!LR(o))return o;let i=t[o];return i?.src?i.src:o},n={...e};for(let[o,i]of Object.entries(n))typeof i=="string"?n[o]=r(i):Array.isArray(i)&&(n[o]=i.map(s=>typeof s=="string"?r(s):s));return n}function Ku(e,t){if(!e||!t)return;let r=t.split("."),n=e;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function d3(e,t,r){let n=(t.config||t.settings||{}).polyglot||t.polyglot,o=r?.lang||n?.defaultLang||"en",i=(n?.translations||{})[o]||{},s=r?.state||{},a={...e};for(let[l,c]of Object.entries(a))typeof c!="string"||!c.includes("{{")||(a[l]=c.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(u,d,f)=>{let p=d.trim();if(f==="polyglot")return i[p]??Ku(i,p)??u;if(f==="getLocalStateLang")return Ku(s,p+o)??u;let h=Ku(s,p);return h!==void 0?h:i[p]??Ku(i,p)??u}));return a}function lO(e){let t={...e};for(let[r,n]of Object.entries(t))if(typeof n=="function"){let o=n.toString(),i=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | getLocalStateLang }}`;continue}let s=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){t[r]=`{{ ${a[1]} }}`;continue}delete t[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){t[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let i=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let s=n.match(/s\.(\w+(?:\.\w+)+)/);if(s){t[r]=`{{ ${s[1]} }}`;continue}}}return t}function DR(e,t,r,{isProduction:n=!1,channel:o="production"}={}){let i=e.pages?.[t],s=B(i?.state)&&i?.state,a=i?.metadata||i?.helmet||s||{},l=lO(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=lO(u),f={};if(e.integrations?.seo?f={...e.integrations.seo,...d,...l}:Object.keys(d).length?f={...d,...l}:f={...l},!f.title){let g=e.name||e.key;g?n?f.title=g:o==="development"?f.title=`${g} / dev:symbo.ls`:o==="staging"?f.title=`${g} / staging:symbo.ls`:f.title=`${g} / symbo.ls`:f.title="Symbols demo"}f=d3(f,e,r),f.title&&(c.has("title")||!f["og:title"])&&(c.has("og:title")||(f["og:title"]=f.title)),f.description&&(c.has("description")||!f["og:description"])&&(c.has("og:description")||(f["og:description"]=f.description)),f.title&&!f["twitter:title"]&&(f["twitter:title"]=f.title),f.description&&!f["twitter:description"]&&(f["twitter:description"]=f.description);let p=r?.actualPathname||t;if(f["og:url"]||f.url){let g=(f["og:url"]||f.url||"").replace(/\/$/,"");if(g&&p&&p!=="/"){let m=p.startsWith("/")?p:"/"+p;f["og:url"]=g+m}}f=f3(f,e.files);let h=e.name||e.app?.metadata?.title||e.app?.name||"";for(let[g,m]of Object.entries(f))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?f[g]=y:g==="title"?f[g]=h:delete f[g]}return f}var st,cO,Ax,LR,p3=Z(()=>{Me(),st=e=>{if(e==null)return"";let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.toString().replace(/[&<>"']/g,r=>t[r])},cO=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${st(r)}"`).join(" "),Ax=(e,t)=>(t||(e={...e,robots:"noindex"}),Object.entries(e).reduce((r,[n,o])=>{if(!o&&o!==0&&o!==!1)return r;if(n==="title")return r.push(`<title>${st(o)}</title>`),r;if(n==="canonical")return r.push(`<link rel="canonical" href="${st(o)}">`),r;if(n==="manifest")return r.push(`<link rel="manifest" href="${st(o)}">`),r;if(n==="favicon"||n==="favicons"||n==="icon"||n==="icons")return(Array.isArray(o)?o:[o]).forEach(a=>{if(typeof a=="string")r.push(`<link rel="icon" href="${st(a)}">`);else if(typeof a=="object"){let l=cO(a);/rel=/.test(l)?r.push(`<link ${l}>`):r.push(`<link rel="icon" ${l}>`)}}),r;if(n==="alternate")return(Array.isArray(o)?o:[o]).forEach(a=>{if(typeof a=="object"){let l=Object.entries(a).filter(([c,u])=>u!==void 0).map(([c,u])=>`${c}="${st(u)}"`).join(" ");r.push(`<link rel="alternate" ${l}>`)}}),r;let i=(a,l,c="name")=>{if(typeof l=="string"||typeof l=="number"||typeof l=="boolean")r.push(`<meta ${c}="${st(a)}" content="${st(l)}">`);else if(Array.isArray(l))l.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")r.push(`<meta ${c}="${st(a)}" content="${st(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([f,p])=>p!==void 0).map(([f,p])=>`${f}="${st(p)}"`).join(" ");r.push(`<meta ${d}>`)}});else if(typeof l=="object"){let u=Object.entries(l).filter(([d,f])=>f!==void 0).map(([d,f])=>`${d}="${st(f)}"`).join(" ");r.push(`<meta ${u}>`)}};if(n.startsWith("http-equiv:")){let a=n.replace("http-equiv:","");return i(a,o,"http-equiv"),r}if(n.startsWith("itemprop:")){let a=n.replace("itemprop:","");return i(a,o,"itemprop"),r}let s=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(a=>n.startsWith(a));if(s){let a=n.replace(s,"");return i(`${s.replace(":","")}:${a}`,o,s==="twitter:"||s==="DC:"||s==="DCTERMS:"?"name":"property"),r}if(n.startsWith("apple:")||n.startsWith("msapplication:")){let a=n.startsWith("apple:")?"apple-":"msapplication-",l=n.replace(/^apple:|^msapplication:/,"");return i(`${a}${l}`,o,"name"),r}return i(n,o),r},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
98
- `)),LR=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")}),Zf,Ex,h3=Z(()=>{Me(),Zf=(e,t)=>(q(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Ex=(e,t)=>(e=parseFloat(e),B(t)&&(t=Object.values(t)),Zf(e,t))});function Ua(e){let t=String(e||"").trim();if(!t)return{owner:pv,key:"",full:""};let r=null,n=t;if(t.includes("/")){let i=t.indexOf("/");r=t.slice(0,i),n=t.slice(i+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=pv);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function Tx(e,t={}){return(t.provider||"kv")==="api"?uO(e,t):await g3(e,t)||uO(e,t)}async function g3(e,t={}){let r=t.kvBaseUrl||BR,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let i=await fetch(o,{method:"GET"});return i.ok&&(await i.json())?.value||null}catch{return null}}async function uO(e,t={}){let r=t.apiBaseUrl||NR,{key:n}=Ua(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,i=await fetch(o,{method:"GET"});if(!i.ok)return null;let s=await i.json(),a=(s?.items||s?.data||(Array.isArray(s)?s:[])).find(f=>{let{key:p}=Ua(f?.key);return p.toLowerCase()===n.toLowerCase()});if(!a?.id&&!a?._id)return null;let l=a.id||a._id,c=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(c,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function MR(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(B(r))return r;if(I(r)){let{full:n}=Ua(r);if(!n)return null;try{let o=await Tx(n,t);return o||console.warn(`[smbls] Shared library "${n}" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,o.message),null}}return null}))).filter(Boolean)}var pv,BR,NR,Pa,Ox,m3=Z(()=>{Me(),pv="system",BR="https://smbls-kv.nika-980.workers.dev",NR="https://api.symbols.app",Pa=(e,t)=>{for(let r in t)r in e?B(e[r])&&B(t[r])&&Pa(e[r],t[r]):e[r]=t[r]},Ox=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(B(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(B(n[o])&&B(e[o]))if(o==="designSystem")Pa(e[o],n[o]);else for(let i in n[o])i in e[o]||(e[o][i]=n[o][i]);else o in e||(e[o]=n[o])}}}}),Rx,Px,$x,Ad,Ix,Ed,jx,tl,y3=Z(()=>{Me(),Rx=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},Px=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},$x=e=>e.replace(/[^a-zA-Z0-9_]/g,""),Ad=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),Ix=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),Ed=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),jx=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},tl=e=>{if(q(e))return e;if(I(e))return e.split(" ");if(B(e))return Object.values(e);if(Ln(e))return[e]}}),Fx,b3=Z(()=>{Fx=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}}),Le,Ko,rl,nl,v3=Z(()=>{Le=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},Ko=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},rl=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return Ko(t,{keepOneX:!1})},nl=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:Ko(l,{keepOneX:!0})}});let o=r.get(e.type)||[],i=Ko(o,{keepOneX:!1}),s={src:e.src,alt:t||""};return i&&(s.srcset=i),[...n,{tag:"img",attr:s}]}}),x3={};$(x3,{CDN_PROVIDERS:()=>Ht,DOMQL_EVENTS:()=>Yv,DOMQ_PROPERTIES:()=>Qo,ENV:()=>m0,HTML_TAGS:()=>Ha,METHODS:()=>Na,METHODS_EXL:()=>yd,NODE_ENV:()=>Wt,OPTIONS:()=>Cd,PACKAGE_MANAGER_TO_CDN:()=>Kf,PARSED_DOMQ_PROPERTIES:()=>md,PROPS_METHODS:()=>Fn,STATE_METHODS:()=>jn,STATE_PROPERTIES:()=>Zv,SVG_TAGS:()=>$0,TYPES:()=>ma,UNIVERSAL_RESERVED_KEYS:()=>Gf,addCaching:()=>Lf,addContext:()=>Df,addExtend:()=>L0,addExtends:()=>tt,addItemAfterEveryElement:()=>Lv,addProtoToArray:()=>pd,addRef:()=>If,applyDependentState:()=>rx,applyEvent:()=>Hf,applyEventUpdate:()=>Vf,applyExtends:()=>B0,applyProps:()=>Ra,arrayContainsOtherArray:()=>Rv,arraysEqual:()=>Bv,arrayzeValue:()=>tl,buildImgSrcset:()=>rl,buildSourcesAndImg:()=>nl,cache:()=>sx,call:()=>TR,captureSnapshot:()=>px,checkForStateTypes:()=>J0,checkIfInherits:()=>Wf,checkIfStringIsInArray:()=>Wv,clone:()=>Qv,cloneAndMergeArrayExtend:()=>_a,cloneFunction:()=>MO,concatAddExtends:()=>j0,copyJavaScriptToClipboard:()=>Px,copyStringToClipboard:()=>Rx,createBasedOnType:()=>$f,createElement:()=>Y0,createElementExtends:()=>Sf,createExtends:()=>_d,createExtendsFromKeys:()=>Va,createExtendsStack:()=>Af,createIfConditionFlag:()=>C0,createInheritedState:()=>Q0,createKey:()=>wd,createNestedObject:()=>l0,createNestedObjectByKeyPath:()=>tx,createObjectWithoutPrototype:()=>mf,createParent:()=>jf,createPath:()=>Ff,createProps:()=>kd,createPropsStack:()=>Rf,createRoot:()=>Z0,createScope:()=>ox,createSnapshotId:()=>xd,customDecodeURIComponent:()=>Xv,customEncodeURIComponent:()=>Kv,cutArrayAfterValue:()=>Fv,cutArrayBeforeValue:()=>jv,debounce:()=>LO,debounceOnContext:()=>w0,decodeNewlines:()=>Gv,deepClone:()=>ut,deepContains:()=>s0,deepDefaults:()=>Pa,deepDestringifyFunctions:()=>e0,deepExtend:()=>wf,deepMerge:()=>nr,deepMergeExtends:()=>er,deepStringifyFunctions:()=>ya,defineSetter:()=>dx,destringifyGlobalScope:()=>t0,detectHeightOnInit:()=>bx,detectInfiniteLoop:()=>d0,document:()=>ve,encodeNewlines:()=>qv,error:()=>qf,excludeKeysFromObject:()=>h0,exec:()=>De,extendCachedRegistry:()=>F0,extendStackRegistry:()=>xa,extractArrayExtend:()=>Sa,fetchLibraryData:()=>Tx,fibonacciNumberByIndex:()=>vx,filterArrays:()=>Nv,filterArraysFast:()=>zv,finalizeExtends:()=>Ef,findClosestNumber:()=>Zf,findClosestNumberInFactory:()=>Ex,findInheritedState:()=>zf,findKeyPosition:()=>Vv,flattenExtend:()=>qo,formatDate:()=>yx,generateHash:()=>bf,generateKey:()=>va,generateMetaTags:()=>Ax,get:()=>pR,getCDNUrl:()=>Xf,getCapitalCaseKeys:()=>WO,getCdnProviderFromConfig:()=>gx,getChildStateInKey:()=>Nf,getChildren:()=>mR,getContext:()=>SR,getCookie:()=>R0,getDB:()=>OR,getEmotionStylesheet:()=>Fx,getExtendsInElement:()=>M0,getExtendsStack:()=>Ca,getExtendsStackRegistry:()=>xf,getFrequencyInArray:()=>Pv,getHashedExtend:()=>wa,getImportMapScript:()=>mx,getInObjectByPath:()=>f0,getLocalStorage:()=>BO,getNev:()=>x0,getPageMetadata:()=>DR,getParentStateInKey:()=>Bf,getPath:()=>yR,getQuery:()=>RR,getRef:()=>gR,getRoot:()=>vR,getRootContext:()=>wR,getRootData:()=>xR,getRootState:()=>bR,getRootStateInKey:()=>Mf,getSpreadChildren:()=>HO,global:()=>Ev,hasFunction:()=>Uo,hasHandlerPlugin:()=>el,hasOwnProperty:()=>n0,inheritChildExtends:()=>kf,inheritChildPropsExtends:()=>_f,inheritParentProps:()=>Ea,inheritRecursiveChildExtends:()=>Cf,initProps:()=>K0,is:()=>tr,isArray:()=>q,isBoolean:()=>ff,isContextComponent:()=>VO,isCyclic:()=>p0,isDOMNode:()=>at,isDate:()=>pf,isDefined:()=>Mn,isDevelopment:()=>Sd,isEmpty:()=>hf,isEmptyObject:()=>o0,isEqualDeep:()=>gf,isFunction:()=>M,isHtmlElement:()=>cd,isLocal:()=>v0,isMethod:()=>PR,isMobile:()=>T0,isNode:()=>Xa,isNot:()=>Ov,isNotProduction:()=>Qa,isNull:()=>df,isNumber:()=>Ln,isObject:()=>B,isObjectLike:()=>ce,isPhoto:()=>xx,isProduction:()=>Yo,isStaging:()=>b0,isState:()=>ex,isString:()=>I,isStringFunction:()=>_0,isTest:()=>yf,isTesting:()=>y0,isUndefined:()=>Et,isUniversallyReservedKey:()=>hx,isValidHtmlTag:()=>I0,joinArrays:()=>Ma,jointStacks:()=>D0,keys:()=>lx,loadCssFile:()=>kx,loadJavascript:()=>Cx,loadJavascriptFile:()=>wx,loadJavascriptFileEmbedSync:()=>_x,loadJavascriptFileSync:()=>Sx,loadRemoteCSS:()=>FR,loadRemoteScript:()=>jR,log:()=>_R,logGroupIf:()=>E0,logIf:()=>A0,lookdown:()=>uR,lookdownAll:()=>fR,lookup:()=>cR,lowercaseFirstLetter:()=>Ya,makeObjectWithoutPrototype:()=>i0,map:()=>Jv,mapStringsWithContextComponents:()=>ka,matchesComponentNaming:()=>In,memoize:()=>S0,merge:()=>ct,mergeSharedLibraries:()=>Ox,nextElement:()=>CR,normalizeLibraryKey:()=>Ua,objectToString:()=>ba,objectizeStringProperty:()=>Aa,overwrite:()=>bd,overwriteDeep:()=>Bn,overwriteShallow:()=>vd,overwriteState:()=>nx,parse:()=>cx,parseDeep:()=>Uf,pickupElementFromProps:()=>W0,pickupPropsFromElement:()=>z0,previousElement:()=>AR,propExists:()=>G0,propertizeElement:()=>H0,propertizeUpdate:()=>qO,remove:()=>dR,removeChars:()=>$x,removeCookie:()=>P0,removeDuplicateProps:()=>Ta,removeDuplicatesInArray:()=>Ba,removeFromArray:()=>$v,removeFromObject:()=>a0,removeNestedKeyByPath:()=>c0,removeValueFromArray:()=>dd,removeValueFromArrayAll:()=>Dv,reorderArrayByValues:()=>Mv,replaceLiteralsWithObjectFields:()=>jO,replaceOctalEscapeSequences:()=>Uv,resolveAsset:()=>Le,resolveHandler:()=>za,resolveSharedLibraries:()=>MR,returnValueAsText:()=>Pf,runPluginHook:()=>Wa,self:()=>Tv,setActiveRootState:()=>fx,setCookie:()=>O0,setHashedExtend:()=>vf,setInObjectByPath:()=>u0,setLocalStorage:()=>NO,setNodeStyles:()=>ax,setProps:()=>hR,setPropsPrototype:()=>Tf,spotByPath:()=>lR,srcsetFor:()=>Ko,stringIncludesAny:()=>hd,stringToObject:()=>r0,swapItemsInArray:()=>Iv,syncProps:()=>Oa,toCamelCase:()=>Ad,toDashCase:()=>Ed,toDescriptionCase:()=>jx,toTitleCase:()=>Ix,toggleFullscreen:()=>IR,triggerEventOn:()=>Jo,triggerEventOnUpdate:()=>ix,trimStringFromSymbols:()=>Hv,unstackArrayOfObjects:()=>fd,update:()=>V0,updateProps:()=>X0,variables:()=>ER,verbose:()=>ux,warn:()=>kR,window:()=>le});var L=Z(()=>{g0(),DO(),Me(),Zr(),k0(),Za(),ud(),H5(),V5(),gd(),ld(),U5(),zO(),UO(),KO(),N0(),K5(),X5(),Ja(),Z5(),e3(),ZO(),t3(),XO(),r3(),n3(),i3(),s3(),a3(),l3(),c3(),u3(),p3(),h3(),m3(),y3(),b3(),v3()}),w3=Av((e,t)=>{var r=1e3,n=r*60,o=n*60,i=o*24,s=i*7,a=i*365.25;t.exports=function(f,p){p=p||{};var h=typeof f;if(h==="string"&&f.length>0)return l(f);if(h==="number"&&isFinite(f))return p.long?u(f):c(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function l(f){if(f=String(f),!(f.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(p){var h=parseFloat(p[1]),g=(p[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return h*a;case"weeks":case"week":case"w":return h*s;case"days":case"day":case"d":return h*i;case"hours":case"hour":case"hrs":case"hr":case"h":return h*o;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function c(f){var p=Math.abs(f);return p>=i?Math.round(f/i)+"d":p>=o?Math.round(f/o)+"h":p>=n?Math.round(f/n)+"m":p>=r?Math.round(f/r)+"s":f+"ms"}function u(f){var p=Math.abs(f);return p>=i?d(f,p,i,"day"):p>=o?d(f,p,o,"hour"):p>=n?d(f,p,n,"minute"):p>=r?d(f,p,r,"second"):f+" ms"}function d(f,p,h,g){var m=p>=h*1.5;return Math.round(f/h)+" "+g+(m?"s":"")}}),S3=Av((e,t)=>{function r(n){i.debug=i,i.default=i,i.coerce=d,i.disable=c,i.enable=a,i.enabled=u,i.humanize=w3(),i.destroy=f,Object.keys(n).forEach(p=>{i[p]=n[p]}),i.names=[],i.skips=[],i.formatters={};function o(p){let h=0;for(let g=0;g<p.length;g++)h=(h<<5)-h+p.charCodeAt(g),h|=0;return i.colors[Math.abs(h)%i.colors.length]}i.selectColor=o;function i(p){let h,g=null,m,y;function b(...x){if(!b.enabled)return;let v=b,S=Number(new Date),k=S-(h||S);v.diff=k,v.prev=h,v.curr=S,h=S,x[0]=i.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let E=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(T,w)=>{if(T==="%%")return"%";E++;let j=i.formatters[w];if(typeof j=="function"){let K=x[E];T=j.call(v,K),x.splice(E,1),E--}return T}),i.formatArgs.call(v,x),(v.log||i.log).apply(v,x)}return b.namespace=p,b.useColors=i.useColors(),b.color=i.selectColor(p),b.extend=s,b.destroy=i.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==i.namespaces&&(m=i.namespaces,y=i.enabled(p)),y),set:x=>{g=x}}),typeof i.init=="function"&&i.init(b),b}function s(p,h){let g=i(this.namespace+(typeof h>"u"?":":h)+p);return g.log=this.log,g}function a(p){i.save(p),i.namespaces=p,i.names=[],i.skips=[];let h=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let g of h)g[0]==="-"?i.skips.push(g.slice(1)):i.names.push(g)}function l(p,h){let g=0,m=0,y=-1,b=0;for(;g<p.length;)if(m<h.length&&(h[m]===p[g]||h[m]==="*"))h[m]==="*"?(y=m,b=g,m++):(g++,m++);else if(y!==-1)m=y+1,b++,g=b;else return!1;for(;m<h.length&&h[m]==="*";)m++;return m===h.length}function c(){let p=[...i.names,...i.skips.map(h=>"-"+h)].join(",");return i.enable(""),p}function u(p){for(let h of i.skips)if(l(p,h))return!1;for(let h of i.names)if(l(p,h))return!0;return!1}function d(p){return p instanceof Error?p.stack||p.message:p}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.enable(i.load()),i}t.exports=r}),_3=Av((e,t)=>{e.formatArgs=n,e.save=o,e.load=i,e.useColors=r,e.storage=s(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function o(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function i(){let l;try{l=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function s(){try{return localStorage}catch{}}t.exports=S3()(e);var{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}});var zR={};$(zR,{CSS_NATIVE_COLOR_REGEX:()=>Wn,CSS_UNITS:()=>Lx,applyMediaSequenceVars:()=>Jf,applySequenceGlobalVars:()=>Kx,applySequenceVars:()=>Pd,changeLightness:()=>O3,colorStringToRgbaArray:()=>Nn,convertSvgToSymbol:()=>uP,findHeadingLetter:()=>sP,findHeadings:()=>aP,generateSequence:()=>xr,generateSequencePosition:()=>pN,generateSprite:()=>hv,generateSubSequence:()=>qx,getColorShade:()=>qR,getDefaultOrFirstKey:()=>Mx,getFnPrefixAndValue:()=>il,getFontFace:()=>$3,getFontFaceEach:()=>Od,getFontFaceEachString:()=>ZR,getFontFaceString:()=>YR,getFontFormat:()=>KR,getRgbTone:()=>$a,getSequenceValue:()=>Gx,getSequenceValueBySymbols:()=>iP,getSequenceValuePropertyPair:()=>Ka,getSubratio:()=>nP,getSubratioDifference:()=>Ux,hexToRgb:()=>C3,hexToRgbArray:()=>WR,hexToRgba:()=>E3,hslToRgb:()=>UR,isCSSVar:()=>Ge,isGoogleFontsUrl:()=>Bx,isResolvedColor:()=>ei,isScalingUnit:()=>Dx,mixTwoColors:()=>k3,mixTwoRgb:()=>T3,mixTwoRgba:()=>GR,numToLetterMap:()=>Kr,opacify:()=>qa,parseColorToken:()=>ol,resolveFileUrl:()=>br,returnSubThemeOrDefault:()=>P3,rgbArrayToHex:()=>HR,rgbToHSL:()=>VR,rgbToHex:()=>A3,setCustomFont:()=>zx,setCustomFontMedia:()=>Ga,setFontImport:()=>Nx,setInCustomFontMedia:()=>XR,setScalingVar:()=>Vx,setSubScalingVar:()=>rP,setVariables:()=>hN,splitTopLevelCommas:()=>Td});var Dx=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Lx=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];L();var Nn=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&ve&&le){let t=ve.body.appendChild(ve.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){ve.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return ve.body.removeChild(t),[0,0,0,0];e=le.getComputedStyle(t).color,ve.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},k3=(e,t,r=.5)=>(e=Nn(e),t=Nn(t),GR(e,t,r)),C3=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(i=>parseInt(i,16));return`rgb(${r},${n},${o})`},WR=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(i=>parseInt(i,16));return[r,n,o]},A3=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),HR=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),E3=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(i=>parseInt(i,16));return`rgba(${r},${n},${o},${t})`},T3=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},O3=(e,t)=>{let[r,n,o]=t,i=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,i]},VR=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),i=1-Math.abs(n+n-o-1),s=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(s<0?s+6:s),i?o/i:0,(n+n-o)/2]},UR=(e,t,r,n=t*Math.min(r,1-r),o=(i,s=(i+e/30)%12)=>r-n*Math.max(Math.min(s-3,9-s,1),-1))=>[o(0),o(8),o(4)],qR=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let i=(r&255)+t;return i>255?i=255:i<0&&(i=0),((i|o<<8|n<<16)+16777216).toString(16).slice(1)},GR=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let i=o===3?s=>s:Math.round;n[o]=i(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},qa=(e,t)=>{let r=Nn(e);if(!r){Qa()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},Ge=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Wn=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,R3=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,ol=e=>{if(!I(e))return null;if(Wn.test(e))return{passthrough:e};if(Ge(e))return{cssVar:e};let t=e.match(R3);if(!t)return null;let[,r,n,o]=t,i=n!==void 0?`0.${n}`:void 0,s=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:i,tone:s}},ei=e=>I(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),Td=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},$a=(e,t)=>{I(e)&&e.includes("rgb")&&(e=Nn(e).join(", ")),I(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Ln(t)&&(t+="");let r=HR(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=qR(r,parseFloat(t));return WR(o).join(", ")}else{let[o,i,s]=e,a=VR(o,i,s),[l,c,u]=a;return UR(l,c,parseFloat(t)/100*255)}},P3=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e},br=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},Mx=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},KR=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},Bx=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),Nx=e=>`@import url('${e}');`,XR=e=>`@font-face { ${e} }`,zx=(e,t,r,n={})=>{let o=(Array.isArray(t)?t:[t]).filter(i=>typeof i=="string"&&i).map(i=>{let s=KR(i),a=s?` format('${s}')`:"";return`url('${i}')${a}`}).join(`,
97
+ }<\/script>`}}),kv,gD=X(()=>{"use strict";kv=e=>{if(!e)return"";let t=new Date(e),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),n=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)} ${n}, ${r}`}}),Cv,mD=X(()=>{"use strict";Cv=(e,t)=>{let r=setTimeout(()=>{let{props:n}=e;if(!t.clientHeight){let{node:{clientHeight:o}}=e;o&&(t.clientHeight=o)}if(t.active){if(n.height==="auto")return;e.update({height:t.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{e.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else e.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}}),Av,yD=X(()=>{"use strict";Av=function(e){let t=[0,1];for(let r=2;r<=e;r++)t[r]=t[r-1]+t[r-2];return t[e]}}),Ev,bD=X(()=>{"use strict";Ev=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function nO(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${e}"]`);if(i)return o(i);let a=n.createElement("script");a.src=e,a.async=t.async===!0,a.type=t.type||"text/javascript",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${e}`))},n.head.appendChild(a)})}async function oO(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${e}"]`);if(i)return o(i);let a=n.createElement("link");a.href=e,a.rel=t.rel||"stylesheet",a.type="text/css",a.media=t.media||"all",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${e}`))},n.head.appendChild(a)})}var Ov,Tv,Rv,Pv,$v,xD=X(()=>{"use strict";Ov=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=t,i.src=e,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${e}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),Tv=(e,t=document,r="text/javascript")=>new Promise((n,o)=>{let s=t.createElement("script");s.type=r,s.src=e;let i=t.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",t.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${e}`),t.body.removeChild(i),n()},s.onerror=()=>{t.body.removeChild(i),o(new Error(`Failed to load: ${e}`))},t.body.appendChild(s)}),Rv=(e,t=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",e,!1),o.send(),o.status===200){let s=t.createElement("script");s.type=n,s.text=o.responseText,t.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${e}`)},Pv=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=e,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),$v=(e,t=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=t,s.id=o,s.innerHTML=e,r.body.appendChild(s)}catch(s){console.warn(s)}}});function vD(e,t){if(!t||typeof t!="object")return e;let r=o=>{if(!iO(o))return o;let s=t[o];return s?.src?s.src:o},n={...e};for(let[o,s]of Object.entries(n))typeof s=="string"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i=="string"?r(i):i));return n}function Lu(e,t){if(!e||!t)return;let r=t.split("."),n=e;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function _D(e,t,r){let n=(t.config||t.settings||{}).polyglot||t.polyglot,o=r?.lang||n?.defaultLang||"en",s=(n?.translations||{})[o]||{},i=r?.state||{},a={...e};for(let[l,c]of Object.entries(a))typeof c!="string"||!c.includes("{{")||(a[l]=c.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(u,d,f)=>{let p=d.trim();if(f==="polyglot")return s[p]??Lu(s,p)??u;if(f==="getLocalStateLang")return Lu(i,p+o)??u;let h=Lu(i,p);return h!==void 0?h:s[p]??Lu(s,p)??u}));return a}function PA(e){let t={...e};for(let[r,n]of Object.entries(t))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){t[r]=`{{ ${a[1]} }}`;continue}delete t[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){t[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){t[r]=`{{ ${i[1]} }}`;continue}}}return t}function sO(e,t,r,{isProduction:n=!1,channel:o="production"}={}){let s=e.pages?.[t],i=M(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},l=PA(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=PA(u),f={};if(e.integrations?.seo?f={...e.integrations.seo,...d,...l}:Object.keys(d).length?f={...d,...l}:f={...l},!f.title){let g=e.name||e.key;g?n?f.title=g:o==="development"?f.title=`${g} / dev:symbo.ls`:o==="staging"?f.title=`${g} / staging:symbo.ls`:f.title=`${g} / symbo.ls`:f.title="Symbols demo"}f=_D(f,e,r),f.title&&(c.has("title")||!f["og:title"])&&(c.has("og:title")||(f["og:title"]=f.title)),f.description&&(c.has("description")||!f["og:description"])&&(c.has("og:description")||(f["og:description"]=f.description)),f.title&&!f["twitter:title"]&&(f["twitter:title"]=f.title),f.description&&!f["twitter:description"]&&(f["twitter:description"]=f.description);let p=r?.actualPathname||t;if(f["og:url"]||f.url){let g=(f["og:url"]||f.url||"").replace(/\/$/,"");if(g&&p&&p!=="/"){let m=p.startsWith("/")?p:"/"+p;f["og:url"]=g+m}}f=vD(f,e.files);let h=e.name||e.app?.metadata?.title||e.app?.name||"";for(let[g,m]of Object.entries(f))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?f[g]=y:g==="title"?f[g]=h:delete f[g]}return f}var ot,$A,Iv,iO,wD=X(()=>{"use strict";Fe(),ot=e=>{if(e==null)return"";let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.toString().replace(/[&<>"']/g,r=>t[r])},$A=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${ot(r)}"`).join(" "),Iv=(e,t)=>(t||(e={...e,robots:"noindex"}),Object.entries(e).reduce((r,[n,o])=>{if(!o&&o!==0&&o!==!1)return r;if(n==="title")return r.push(`<title>${ot(o)}</title>`),r;if(n==="canonical")return r.push(`<link rel="canonical" href="${ot(o)}">`),r;if(n==="manifest")return r.push(`<link rel="manifest" href="${ot(o)}">`),r;if(n==="favicon"||n==="favicons"||n==="icon"||n==="icons")return(Array.isArray(o)?o:[o]).forEach(a=>{if(typeof a=="string")r.push(`<link rel="icon" href="${ot(a)}">`);else if(typeof a=="object"){let l=$A(a);/rel=/.test(l)?r.push(`<link ${l}>`):r.push(`<link rel="icon" ${l}>`)}}),r;if(n==="alternate")return(Array.isArray(o)?o:[o]).forEach(a=>{if(typeof a=="object"){let l=Object.entries(a).filter(([c,u])=>u!==void 0).map(([c,u])=>`${c}="${ot(u)}"`).join(" ");r.push(`<link rel="alternate" ${l}>`)}}),r;let s=(a,l,c="name")=>{if(typeof l=="string"||typeof l=="number"||typeof l=="boolean")r.push(`<meta ${c}="${ot(a)}" content="${ot(l)}">`);else if(Array.isArray(l))l.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")r.push(`<meta ${c}="${ot(a)}" content="${ot(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([f,p])=>p!==void 0).map(([f,p])=>`${f}="${ot(p)}"`).join(" ");r.push(`<meta ${d}>`)}});else if(typeof l=="object"){let u=Object.entries(l).filter(([d,f])=>f!==void 0).map(([d,f])=>`${d}="${ot(f)}"`).join(" ");r.push(`<meta ${u}>`)}};if(n.startsWith("http-equiv:")){let a=n.replace("http-equiv:","");return s(a,o,"http-equiv"),r}if(n.startsWith("itemprop:")){let a=n.replace("itemprop:","");return s(a,o,"itemprop"),r}let i=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(a=>n.startsWith(a));if(i){let a=n.replace(i,"");return s(`${i.replace(":","")}:${a}`,o,i==="twitter:"||i==="DC:"||i==="DCTERMS:"?"name":"property"),r}if(n.startsWith("apple:")||n.startsWith("msapplication:")){let a=n.startsWith("apple:")?"apple-":"msapplication-",l=n.replace(/^apple:|^msapplication:/,"");return s(`${a}${l}`,o,"name"),r}return s(n,o),r},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
98
+ `)),iO=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")}),Mf,Fv,SD=X(()=>{"use strict";Fe(),Mf=(e,t)=>(W(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Fv=(e,t)=>(e=parseFloat(e),M(t)&&(t=Object.values(t)),Mf(e,t))});function Va(e){let t=String(e||"").trim();if(!t)return{owner:vb,key:"",full:""};let r=null,n=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=vb);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function jv(e,t={}){return(t.provider||"kv")==="api"?IA(e,t):await kD(e,t)||IA(e,t)}async function kD(e,t={}){let r=t.kvBaseUrl||lO,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function IA(e,t={}){let r=t.apiBaseUrl||cO,{key:n}=Va(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),a=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(f=>{let{key:p}=Va(f?.key);return p.toLowerCase()===n.toLowerCase()});if(!a?.id&&!a?._id)return null;let l=a.id||a._id,c=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(c,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function aO(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(M(r))return r;if(R(r)){let{full:n}=Va(r);if(!n)return null;try{let o=await jv(n,t);return o||console.warn(`[smbls] Shared library "${n}" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,o.message),null}}return null}))).filter(Boolean)}var vb,lO,cO,Ea,Dv,CD=X(()=>{"use strict";Fe(),vb="system",lO="https://smbls-kv.nika-980.workers.dev",cO="https://api.symbols.app",Ea=(e,t)=>{for(let r in t)r in e?M(e[r])&&M(t[r])&&Ea(e[r],t[r]):e[r]=t[r]},Dv=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(M(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(M(n[o])&&M(e[o]))if(o==="designSystem")Ea(e[o],n[o]);else for(let s in n[o])s in e[o]||(e[o][s]=n[o][s]);else o in e||(e[o]=n[o])}}}}),Lv,Mv,Nv,fd,Bv,dd,Vv,Ja,AD=X(()=>{"use strict";Fe(),Lv=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},Mv=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},Nv=e=>e.replace(/[^a-zA-Z0-9_]/g,""),fd=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),Bv=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),dd=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Vv=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},Ja=e=>{if(W(e))return e;if(R(e))return e.split(" ");if(M(e))return Object.values(e);if(Pn(e))return[e]}}),zv,ED=X(()=>{"use strict";zv=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}}),Qt,No,pd,hd,OD=X(()=>{"use strict";Qt=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},No=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},pd=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return No(t,{keepOneX:!1})},hd=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:No(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=No(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}}),TD={};Y(TD,{CDN_PROVIDERS:()=>Lt,DOMQL_EVENTS:()=>sx,DOMQ_PROPERTIES:()=>qo,ENV:()=>kx,HTML_TAGS:()=>Na,METHODS:()=>Da,METHODS_EXL:()=>rd,NODE_ENV:()=>Dt,OPTIONS:()=>ud,PACKAGE_MANAGER_TO_CDN:()=>Df,PARSED_DOMQ_PROPERTIES:()=>td,PROPS_METHODS:()=>Tn,STATE_METHODS:()=>On,STATE_PROPERTIES:()=>ox,SVG_TAGS:()=>Nx,TYPES:()=>da,UNIVERSAL_RESERVED_KEYS:()=>jf,addCaching:()=>Cf,addContext:()=>kf,addExtend:()=>Wx,addExtends:()=>Qe,addItemAfterEveryElement:()=>Hb,addProtoToArray:()=>Zf,addRef:()=>_f,applyDependentState:()=>cv,applyEvent:()=>Pf,applyEventUpdate:()=>$f,applyExtends:()=>qx,applyProps:()=>Aa,arrayContainsOtherArray:()=>Mb,arraysEqual:()=>Gb,arrayzeValue:()=>Ja,buildImgSrcset:()=>pd,buildSourcesAndImg:()=>hd,cache:()=>pv,call:()=>JE,captureSnapshot:()=>vv,checkForStateTypes:()=>sv,checkIfInherits:()=>Rf,checkIfStringIsInArray:()=>Yb,clone:()=>ax,cloneAndMergeArrayExtend:()=>xa,cloneFunction:()=>aE,concatAddExtends:()=>Vx,copyJavaScriptToClipboard:()=>Mv,copyStringToClipboard:()=>Lv,createBasedOnType:()=>vf,createElement:()=>ov,createElementExtends:()=>uf,createExtends:()=>ld,createExtendsFromKeys:()=>Ba,createExtendsStack:()=>hf,createIfConditionFlag:()=>$x,createInheritedState:()=>iv,createKey:()=>id,createNestedObject:()=>mx,createNestedObjectByKeyPath:()=>lv,createObjectWithoutPrototype:()=>nf,createParent:()=>wf,createPath:()=>Sf,createProps:()=>cd,createPropsStack:()=>bf,createRoot:()=>nv,createScope:()=>fv,createSnapshotId:()=>sd,customDecodeURIComponent:()=>nx,customEncodeURIComponent:()=>rx,cutArrayAfterValue:()=>Ub,cutArrayBeforeValue:()=>zb,debounce:()=>iE,debounceOnContext:()=>Tx,decodeNewlines:()=>tx,deepClone:()=>at,deepContains:()=>hx,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>lx,deepExtend:()=>cf,deepMerge:()=>tr,deepMergeExtends:()=>Jt,deepStringifyFunctions:()=>pa,defineSetter:()=>xv,destringifyGlobalScope:()=>cx,detectHeightOnInit:()=>Cv,detectInfiniteLoop:()=>vx,document:()=>be,encodeNewlines:()=>ex,error:()=>Ff,excludeKeysFromObject:()=>wx,exec:()=>Ne,extendCachedRegistry:()=>zx,extendStackRegistry:()=>ma,extractArrayExtend:()=>ba,fetchLibraryData:()=>jv,fibonacciNumberByIndex:()=>Av,filterArrays:()=>Kb,filterArraysFast:()=>Xb,finalizeExtends:()=>gf,findClosestNumber:()=>Mf,findClosestNumberInFactory:()=>Fv,findInheritedState:()=>Tf,findKeyPosition:()=>Zb,flattenExtend:()=>Lo,formatDate:()=>kv,generateHash:()=>sf,generateKey:()=>ga,generateMetaTags:()=>Iv,get:()=>DE,getCDNUrl:()=>Lf,getCapitalCaseKeys:()=>fE,getCdnProviderFromConfig:()=>wv,getChildStateInKey:()=>Of,getChildren:()=>NE,getContext:()=>HE,getCookie:()=>Lx,getDB:()=>ZE,getEmotionStylesheet:()=>zv,getExtendsInElement:()=>Hx,getExtendsStack:()=>_a,getExtendsStackRegistry:()=>lf,getFrequencyInArray:()=>Nb,getHashedExtend:()=>ya,getImportMapScript:()=>Sv,getInObjectByPath:()=>xx,getLocalStorage:()=>lE,getNev:()=>Ox,getPageMetadata:()=>sO,getParentStateInKey:()=>Ef,getPath:()=>BE,getQuery:()=>QE,getRef:()=>ME,getRoot:()=>zE,getRootContext:()=>WE,getRootData:()=>UE,getRootState:()=>VE,getRootStateInKey:()=>Af,getSpreadChildren:()=>dE,global:()=>jb,hasFunction:()=>Do,hasHandlerPlugin:()=>Xa,hasOwnProperty:()=>fx,inheritChildExtends:()=>df,inheritChildPropsExtends:()=>ff,inheritParentProps:()=>Sa,inheritRecursiveChildExtends:()=>pf,initProps:()=>tv,is:()=>Zt,isArray:()=>W,isBoolean:()=>Zu,isContextComponent:()=>pE,isCyclic:()=>_x,isDOMNode:()=>st,isDate:()=>ef,isDefined:()=>zo,isDevelopment:()=>ad,isEmpty:()=>tf,isEmptyObject:()=>dx,isEqualDeep:()=>rf,isFunction:()=>L,isHtmlElement:()=>Kf,isLocal:()=>Ex,isMethod:()=>eO,isMobile:()=>jx,isNode:()=>Wa,isNot:()=>Lb,isNotProduction:()=>Ka,isNull:()=>Qu,isNumber:()=>Pn,isObject:()=>M,isObjectLike:()=>ce,isPhoto:()=>Ev,isProduction:()=>Uo,isStaging:()=>Ax,isState:()=>av,isString:()=>R,isStringFunction:()=>Px,isTest:()=>of,isTesting:()=>Cx,isUndefined:()=>Nt,isUniversallyReservedKey:()=>_v,isValidHtmlTag:()=>Bx,joinArrays:()=>Fa,jointStacks:()=>Ux,keys:()=>gv,loadCssFile:()=>Pv,loadJavascript:()=>$v,loadJavascriptFile:()=>Ov,loadJavascriptFileEmbedSync:()=>Rv,loadJavascriptFileSync:()=>Tv,loadRemoteCSS:()=>oO,loadRemoteScript:()=>nO,log:()=>qE,logGroupIf:()=>Fx,logIf:()=>Ix,lookdown:()=>IE,lookdownAll:()=>FE,lookup:()=>$E,lowercaseFirstLetter:()=>qa,makeObjectWithoutPrototype:()=>px,map:()=>ix,mapStringsWithContextComponents:()=>va,matchesComponentNaming:()=>En,memoize:()=>Rx,merge:()=>it,mergeSharedLibraries:()=>Dv,nextElement:()=>KE,normalizeLibraryKey:()=>Va,objectToString:()=>ha,objectizeStringProperty:()=>wa,overwrite:()=>nd,overwriteDeep:()=>$n,overwriteShallow:()=>od,overwriteState:()=>uv,parse:()=>mv,parseDeep:()=>If,pickupElementFromProps:()=>Xx,pickupPropsFromElement:()=>Kx,previousElement:()=>XE,propExists:()=>ev,propertizeElement:()=>Yx,propertizeUpdate:()=>gE,remove:()=>jE,removeChars:()=>Nv,removeCookie:()=>Mx,removeDuplicateProps:()=>ka,removeDuplicatesInArray:()=>ja,removeFromArray:()=>Bb,removeFromObject:()=>gx,removeNestedKeyByPath:()=>yx,removeValueFromArray:()=>Jf,removeValueFromArrayAll:()=>Wb,reorderArrayByValues:()=>qb,replaceLiteralsWithObjectFields:()=>nE,replaceOctalEscapeSequences:()=>Qb,resolveAsset:()=>Qt,resolveHandler:()=>La,resolveSharedLibraries:()=>aO,returnValueAsText:()=>xf,runPluginHook:()=>Ma,self:()=>Db,setActiveRootState:()=>bv,setCookie:()=>Dx,setHashedExtend:()=>af,setInObjectByPath:()=>bx,setLocalStorage:()=>cE,setNodeStyles:()=>hv,setProps:()=>LE,setPropsPrototype:()=>mf,spotByPath:()=>PE,srcsetFor:()=>No,stringIncludesAny:()=>Qf,stringToObject:()=>ux,swapItemsInArray:()=>Vb,syncProps:()=>Ca,toCamelCase:()=>fd,toDashCase:()=>dd,toDescriptionCase:()=>Vv,toTitleCase:()=>Bv,toggleFullscreen:()=>rO,triggerEventOn:()=>Wo,triggerEventOnUpdate:()=>dv,trimStringFromSymbols:()=>Jb,unstackArrayOfObjects:()=>Yf,update:()=>Jx,updateProps:()=>rv,variables:()=>YE,verbose:()=>yv,warn:()=>GE,window:()=>le});var N=X(()=>{"use strict";Sx(),sE(),Fe(),Gr(),Ya(),Ha(),Xf(),Zj(),Qj(),ed(),Gf(),eD(),uE(),hE(),yE(),Gx(),nD(),oD(),Ga(),sD(),cD(),xE(),uD(),bE(),fD(),dD(),hD(),gD(),mD(),yD(),bD(),xD(),wD(),SD(),CD(),AD(),ED(),OD()}),RD=Fb((e,t)=>{var r=1e3,n=r*60,o=n*60,s=o*24,i=s*7,a=s*365.25;t.exports=function(f,p){p=p||{};var h=typeof f;if(h==="string"&&f.length>0)return l(f);if(h==="number"&&isFinite(f))return p.long?u(f):c(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function l(f){if(f=String(f),!(f.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(p){var h=parseFloat(p[1]),g=(p[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return h*a;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*s;case"hours":case"hour":case"hrs":case"hr":case"h":return h*o;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function c(f){var p=Math.abs(f);return p>=s?Math.round(f/s)+"d":p>=o?Math.round(f/o)+"h":p>=n?Math.round(f/n)+"m":p>=r?Math.round(f/r)+"s":f+"ms"}function u(f){var p=Math.abs(f);return p>=s?d(f,p,s,"day"):p>=o?d(f,p,o,"hour"):p>=n?d(f,p,n,"minute"):p>=r?d(f,p,r,"second"):f+" ms"}function d(f,p,h,g){var m=p>=h*1.5;return Math.round(f/h)+" "+g+(m?"s":"")}}),PD=Fb((e,t)=>{function r(n){s.debug=s,s.default=s,s.coerce=d,s.disable=c,s.enable=a,s.enabled=u,s.humanize=RD(),s.destroy=f,Object.keys(n).forEach(p=>{s[p]=n[p]}),s.names=[],s.skips=[],s.formatters={};function o(p){let h=0;for(let g=0;g<p.length;g++)h=(h<<5)-h+p.charCodeAt(g),h|=0;return s.colors[Math.abs(h)%s.colors.length]}s.selectColor=o;function s(p){let h,g=null,m,y;function b(...v){if(!b.enabled)return;let x=b,_=Number(new Date),C=_-(h||_);x.diff=C,x.prev=h,x.curr=_,h=_,v[0]=s.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let E=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(F,w)=>{if(F==="%%")return"%";E++;let $=s.formatters[w];if(typeof $=="function"){let q=v[E];F=$.call(x,q),v.splice(E,1),E--}return F}),s.formatArgs.call(x,v),(x.log||s.log).apply(x,v)}return b.namespace=p,b.useColors=s.useColors(),b.color=s.selectColor(p),b.extend=i,b.destroy=s.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==s.namespaces&&(m=s.namespaces,y=s.enabled(p)),y),set:v=>{g=v}}),typeof s.init=="function"&&s.init(b),b}function i(p,h){let g=s(this.namespace+(typeof h>"u"?":":h)+p);return g.log=this.log,g}function a(p){s.save(p),s.namespaces=p,s.names=[],s.skips=[];let h=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let g of h)g[0]==="-"?s.skips.push(g.slice(1)):s.names.push(g)}function l(p,h){let g=0,m=0,y=-1,b=0;for(;g<p.length;)if(m<h.length&&(h[m]===p[g]||h[m]==="*"))h[m]==="*"?(y=m,b=g,m++):(g++,m++);else if(y!==-1)m=y+1,b++,g=b;else return!1;for(;m<h.length&&h[m]==="*";)m++;return m===h.length}function c(){let p=[...s.names,...s.skips.map(h=>"-"+h)].join(",");return s.enable(""),p}function u(p){for(let h of s.skips)if(l(p,h))return!1;for(let h of s.names)if(l(p,h))return!0;return!1}function d(p){return p instanceof Error?p.stack||p.message:p}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s.enable(s.load()),s}t.exports=r}),$D=Fb((e,t)=>{e.formatArgs=n,e.save=o,e.load=s,e.useColors=r,e.storage=i(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function o(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function s(){let l;try{l=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function i(){try{return localStorage}catch{}}t.exports=PD()(e);var{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}});var uO={};Y(uO,{CSS_NATIVE_COLOR_REGEX:()=>Fn,CSS_UNITS:()=>Wv,applyMediaSequenceVars:()=>Bf,applySequenceGlobalVars:()=>t0,applySequenceVars:()=>bd,changeLightness:()=>MD,colorStringToRgbaArray:()=>In,convertSvgToSymbol:()=>IO,findHeadingLetter:()=>TO,findHeadings:()=>RO,generateSequence:()=>br,generateSequencePosition:()=>wL,generateSprite:()=>wb,generateSubSequence:()=>Qv,getColorShade:()=>gO,getDefaultOrFirstKey:()=>Hv,getFnPrefixAndValue:()=>Qa,getFontFace:()=>VD,getFontFaceEach:()=>md,getFontFaceEachString:()=>xO,getFontFaceString:()=>vO,getFontFormat:()=>yO,getRgbTone:()=>Oa,getSequenceValue:()=>e0,getSequenceValueBySymbols:()=>OO,getSequenceValuePropertyPair:()=>Ua,getSubratio:()=>AO,getSubratioDifference:()=>Zv,hexToRgb:()=>FD,hexToRgbArray:()=>fO,hexToRgba:()=>DD,hslToRgb:()=>hO,isCSSVar:()=>Ue,isGoogleFontsUrl:()=>qv,isResolvedColor:()=>Go,isScalingUnit:()=>Uv,mixTwoColors:()=>ID,mixTwoRgb:()=>LD,mixTwoRgba:()=>mO,numToLetterMap:()=>Hr,opacify:()=>_b,parseColorToken:()=>Za,resolveFileUrl:()=>mr,returnSubThemeOrDefault:()=>BD,rgbArrayToHex:()=>dO,rgbToHSL:()=>pO,rgbToHex:()=>jD,setCustomFont:()=>Kv,setCustomFontMedia:()=>za,setFontImport:()=>Gv,setInCustomFontMedia:()=>bO,setScalingVar:()=>Jv,setSubScalingVar:()=>CO,setVariables:()=>SL,splitTopLevelCommas:()=>gd});var Uv=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Wv=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];N();var In=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&be&&le){let t=be.body.appendChild(be.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){be.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return be.body.removeChild(t),[0,0,0,0];e=le.getComputedStyle(t).color,be.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},ID=(e,t,r=.5)=>(e=In(e),t=In(t),mO(e,t,r)),FD=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},fO=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},jD=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),dO=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),DD=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},LD=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},MD=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},pO=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),s=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},hO=(e,t,r,n=t*Math.min(r,1-r),o=(s,i=(s+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],gO=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},mO=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},_b=(e,t)=>{let r=In(e);if(!r){Ka()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},Ue=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Fn=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,ND=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Za=e=>{if(!R(e))return null;if(Fn.test(e))return{passthrough:e};if(Ue(e))return{cssVar:e};let t=e.match(ND);if(!t)return null;let[,r,n,o]=t,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},Go=e=>R(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),gd=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},Oa=(e,t)=>{R(e)&&e.includes("rgb")&&(e=In(e).join(", ")),R(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Pn(t)&&(t+="");let r=dO(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=gO(r,parseFloat(t));return fO(o).join(", ")}else{let[o,s,i]=e,a=pO(o,s,i),[l,c,u]=a;return hO(l,c,parseFloat(t)/100*255)}},BD=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e},mr=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},Hv=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},yO=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},qv=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),Gv=e=>`@import url('${e}');`,bO=e=>`@font-face { ${e} }`,Kv=(e,t,r,n={})=>{let o=(Array.isArray(t)?t:[t]).filter(s=>typeof s=="string"&&s).map(s=>{let i=yO(s),a=i?` format('${i}')`:"";return`url('${s}')${a}`}).join(`,
99
99
  `);return`
100
100
  font-family: '${e}';
101
101
  font-style: ${n.fontStyle||"normal"};${r?`
102
102
  font-weight: ${r};`:""}${n.fontStretch?`
103
103
  font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
104
104
  font-display: ${n.fontDisplay};`:""}
105
- src: ${o};`},Ga=(e,t,r,n)=>`@font-face {${zx(e,t,r,n)}
106
- }`,Od=(e,t,r)=>Object.keys(t).map(n=>{let{url:o,fontWeight:i,fontStyle:s,fontDisplay:a,fontStretch:l}=t[n],c=Array.isArray(o)?o.map(u=>br(u,r)||u):br(o,r)||o;return zx(e,c,i,{fontStyle:s,fontDisplay:a,fontStretch:l})}),$3=e=>Object.keys(e).map(t=>Od(t,e[t].value)),ZR=(e,t,r)=>{if(t&&t.isVariable){let o=br(t.url,r)||t.url;return Bx(o)?Nx(o):Ga(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return Od(e,t,r).map(XR);let n=Array.isArray(t.url)?t.url.map(o=>br(o,r)||o):br(t.url,r)||t.url;return Ga(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},YR=(e,t)=>Object.keys(e).map(r=>ZR(r,e[r].value,t));L();L();L();var JR={};$(JR,{animation:()=>Q3,breakpoints:()=>Y3,class:()=>iN,color:()=>W3,devices:()=>J3,document:()=>Z3,font:()=>F3,fontFace:()=>M3,fontFamily:()=>D3,fontFamilyTypes:()=>L3,gradient:()=>H3,grid:()=>oN,icons:()=>q3,media:()=>B3,reset:()=>sN,semanticIcons:()=>G3,sequence:()=>Rd,shadow:()=>U3,spacing:()=>z3,svg:()=>eN,svgData:()=>tN,templates:()=>rN,theme:()=>V3,timing:()=>X3,typography:()=>QR,unit:()=>I3,vars:()=>aN});var Rd={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4},I3={default:"em"},j3={browserDefault:16,base:16,type:"font-size",ratio:Rd["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},QR=j3,F3={},D3={},L3={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},M3={},B3={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"},N3={base:QR.base,type:"spacing",ratio:Rd.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},z3=N3,W3={},H3={},V3={},U3={},q3={},G3={},K3={default:150,base:150,type:"timing",ratio:Rd["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},X3=K3,Z3={},Y3={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},J3={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]},Q3={},eN={},tN={},rN={},nN={},oN=nN,iN={},sN={},aN={},fO={},dO={},Xu=JR,rf={},eP=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in Xu){let t=e.toLowerCase();rf[t]=Xu[e];let r=eP(t);r!==t&&(rf[r]=Xu[e]),t!==e&&(rf[e]=Xu[e])}var Wx={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:fO,cssMediaVars:dO,CSS_VARS:fO,CSS_MEDIA_VARS:dO,_scratchConfig:!0,...rf},lN=ut(Wx),Yf={active:"0",0:Wx};var Ia=[],cN=e=>{e&&e._scratchConfig&&Ia.push(e)},uN=()=>{Ia.pop()},G=e=>Ia.length?Ia[Ia.length-1]:Yf[e||Yf.active]||Wx,fN=e=>{if(B(e))return Yf.active="1",Yf[1]=nr(e,ut(lN)),e};var Kr={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},Hx=(e,t)=>{let{key:r,variable:n,value:o,scaling:i,index:s,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:i,index:s,scalingVariable:a,variable:n},t.scales[r]=i;let l=tP.has(t.unit)?"rem":t.unit;t.vars[n]=i+l},il=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},tP=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Vx=(e,t)=>{let{base:r,type:n,unit:o}=t,i=tP.has(o)?"rem":o,s=(Dx(i)?1:r)+i;if(e===0)return s;let a="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${a}-ratio`;if(e>0){let c=Kr[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Kr[e+1],u=Math.abs(e),d=Math.pow(oP,2*u),f=Kr[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},rP=(e,t,r,n)=>{let{type:o}=n,i=e===2&&t.length===2?e+1:e,s=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${s+i}))`},Ux=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,i=(n+o)/2;return[n,i,o]},nP=(e,t)=>Ux(e,t).map(r=>r/e),qx=(e,t)=>{let{key:r,base:n,value:o,ratio:i,variable:s,index:a}=e,l=~~(o*i)-~~o,c,[u,d,f]=Ux(o,i);l>16?c=[u,d,f]:c=[u,f],c.forEach((p,h)=>{let g=~~(p/n*1e3)/1e3,m=s+(h+1),y=a+(h+1)/10,b=rP(h+1,c,s,t),x={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};Hx(x,t)})},oP=1.618,dN=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),i=t*Math.pow(r,n)/Math.pow(oP,2*n);return Math.max(o,i)},xr=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:i}=e,s=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let l=0;l<=s;l++){let c=o[1]-l,u=Kr[c],d=dN(c,r,n),f=~~(d/r*100)/100,p=a+u,h=Vx(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};Hx(g,e),i&&qx(g,e)}return e},pN=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:i}=e,s=I(t)?t:Kr[t],a=I(t)?Object.entries(Kr).find(([,h])=>h===t)?.[0]:t;if(!s)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,d="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+s,f=Vx(a,e),p={key:s,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return Hx(p,l),i&&qx(p,l),l},Gx=(e="A",t)=>{let r=G(),{unit:n}=r;if(I(e)&&Ge(e))return`var(${e})`;let{sequence:o,unit:i=n.default,useVariable:s}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Lx.some(m=>e.includes(m))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let c=`--${t.varPrefix?t.varPrefix+"-":""}${Ed(t.type.replace(".","-"))}-`,u=e.toUpperCase(),d=u.slice(0,1)==="-"?"-":"",f=d?u.slice(1):u,p="";f.includes("_")&&(p="_"+f.split("_")[1].toLowerCase(),f=f.split("_")[0]);let h=m=>a.test(m)?`var(${c}${m}${p})`:m;if(f.includes("+")){let[m,y]=f.split("+"),b=`${h(m)} + ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("*")){let[m,y]=f.split("*"),b=`${h(m)} * ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("-")){let[m,y]=f.split("-"),b=`${h(m)} - ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}if(!o[f]&&f.length===2&&(r.verbose&&console.warn(f,"- value is not found because `subSequence` is set to false"),f=f.slice(0,1)),s||r.useVariable){let m=`var(${c}${f}${p})`;return d?`calc(${m} * -1)`:m}let g=o?o[f]:null;return g?i==="ms"||i==="s"?d+g.val+i:d+g.scaling+i:console.warn("can't find",o,f)},iP=(e,t)=>{if(!["+","-","*","/",","].filter(n=>e.includes(n+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(n=>{let o=n.trim();return!o||["+","-","*","/",","].includes(o)?n:Gx(o,t)}).join("")},Ka=(e,t,r,n)=>{if(typeof e!="string")return G().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=il(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=iP(e,r):e=Gx(e,r),{[t]:n?`${n}(${e})`:e}},sP=(e,t)=>Kr[e-t],aP=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let i=sP(t,o);return r[i]})};L();var hN=(e,t)=>{let r=G(),{cssVars:n}=r;ce(e.value)||(n[e.var]=e.value)},Kx=(e,t,r)=>{let n=G(),{unit:o}=n,i=t.unit||o.default,{base:s,ratio:a,type:l}=t,c="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${c}-base`]=s,e[`${c}-unit`]=i;let u=`${c}-ratio`;e[u]=a;let[d,f,p]=nP(s,a);e[`${c}-sub-ratio-1`]=`calc(var(${c}-ratio) * ${d/a})`,e[`${c}-sub-ratio-2`]=`calc(var(${c}-ratio) * ${f/a})`,e[`${c}-sub-ratio-3`]=`calc(var(${c}-ratio) * ${p/a})`},lP=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Pd=(e,t={})=>{let r=G(),{unit:n,timing:o,cssVars:i}=r,s=e.unit||n.default,a=lP.has(s)?"rem":s,{mediaRegenerate:l,sequence:c,scales:u}=e;l||Kx(i,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){i[f.variable+"_default"]=p,i[f.variable]=f.scalingVariable;continue}t.useDefault===!1?i[f.variable]=p:(i[f.variable+"_default"]=p,i[f.variable]=`var(${f.variable+"_default"})`)}},Jf=(e,t,r={})=>{let n=G(),{unit:o,media:i,cssVars:s}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=lP.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=i[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=s[`@media ${h}`];g||(g=s[`@media ${h}`]={}),Kx(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],x=p[y]+u;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in f){let m=f[g],y=(Dx(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=s[`@media ${h}`];b||(b=s[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,s[m.variable+"_"+a]=y}};L();var cP=Qa(),hv=e=>{let t=G(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},gN=e=>{let t=e&&(e.default||e);if(!I(t))return cP&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((o,i)=>{let[s,a]=i.split("=");return o[s]=a.replace(/['"]/g,""),o},{}):{}},mN=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,i)=>(r.push(i),o)),!r.length)return e;let n=e;for(let o of r){let i=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=`${t}-${o}`;n=n.replace(new RegExp(`id="${i}"`,"g"),`id="${s}"`).replace(new RegExp(`url\\(#${i}\\)`,"g"),`url(#${s})`).replace(new RegExp(`xlink:href="#${i}"`,"g"),`xlink:href="#${s}"`).replace(new RegExp(`href="#${i}"`,"g"),`href="#${s}"`)}return n},pO=new Set,uP=(e,t)=>{let r=t&&t.default?t.default:t;if(!I(r))return cP&&!pO.has(e)&&(pO.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=gN(t),{width:o,height:i}=n,s=n.viewBox||`0 0 ${o||24} ${i||24}`,a=mN(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return a=a.replace(/width="[^"]*"/,""),a=a.replace(/height="[^"]*"/,""),a=a.replace("</svg","</symbol"),a=vN(a),a},yN="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",bN=new RegExp(`<(${yN})\\b([^>]*?)\\s*/>`,"g"),vN=e=>e.replace(bN,"<$1$2></$1>"),fP={};$(fP,{appendSVGSprite:()=>AP,appendSvgIconsSprite:()=>TP,applyDocument:()=>CP,applyHeadings:()=>yP,applyReset:()=>RP,applySpacingSequence:()=>wP,applyTimingSequence:()=>kP,applyTypographySequence:()=>bP,checkIfBoxSize:()=>xP,getColor:()=>xe,getFontFamily:()=>gP,getFontSizeByKey:()=>vP,getMediaColor:()=>lt,getMediaTheme:()=>Xr,getShadow:()=>_P,getSpacingBasedOnRatio:()=>zn,getSpacingByKey:()=>qe,getTheme:()=>Xx,getTimingByKey:()=>yr,getTimingFunction:()=>Dn,runThroughMedia:()=>mP,setColor:()=>ja,setFont:()=>hP,setFontFamily:()=>yv,setGradient:()=>Fa,setMediaTheme:()=>Zx,setSVG:()=>Jx,setShadow:()=>Da,setSvgIcon:()=>EP,setTheme:()=>dP,splitSpacedValue:()=>SP});L();var xe=(e,t,r)=>{let n=r||G();if(!I(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ge(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,i,s;if(q(e))[o,i,s]=e;else{let d=ol(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,i=d.alpha,s=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(s&&!c[s]&&(u=$a(u,s),c[s]={rgb:u,var:`${c.var}-${s}`}),c[s]&&(u=c[s].rgb),i?`rgba(${u}, ${i})`:s?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},lt=(e,t,r)=>{let n=r||G();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!I(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ge(e))return`var(${e})`;let o;if(q(e))o=e[0];else{let c=ol(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:i,gradient:s}=n,a=i[o]||s[o],l=B(a);if(l&&a.value)return xe(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return xe(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=xe(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},ja=(e,t,r)=>{let n=G();if(I(e)&&Ge(e)){let h=e.slice(2);if(e=xe(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=h.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(I(m)||q(m)||B(m))&&(n.color[g[0]]=ja(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",x=g[2];x&&(y=$a(y,x)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let x=Nn(g[0]);x&&x.length>=3?e=`rgba(${$a(x.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(q(e)&&(e={"@light":e[0],"@dark":e[1]}),B(e)){let h={};for(let g in e)h[g]=ja(e[g],t,g.slice(0,1)==="@"?g.slice(1):g);if(n.useVariable){let g=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,m,y={};for(let b in h){if(b.charCodeAt(0)!==64)continue;let x=b.slice(1),v=h[b],S=v&&(v.value||v);!S||typeof S!="string"||(y[x]=S,(x==="light"||m===void 0)&&(m=S))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let x=`[data-theme="${b}"]`;if(n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b],b==="light"||b==="dark"){let v=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b]}}h.var=g}}return h}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),i=e.value||e;if(I(i)&&i.includes(".")&&!i.includes("(")){let[h,g]=i.split("."),m=n.color[h];m&&m.rgb&&(i=`rgba(${m.rgb}, ${parseFloat("0."+g)||1})`)}if(I(i)&&!i.includes("(")&&!i.startsWith("#")){let h=ol(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(I(g)||q(g)||B(g))&&(n.color[h.name]=ja(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=$a(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;i=`rgba(${y}, ${b})`}}}let s=Nn(i),[a,l,c,u=1]=s,d=parseFloat(u.toFixed(2)),f=`${a}, ${l}, ${c}`,p=`rgba(${f}, ${d})`;return n.useVariable&&(n.cssVars[o]=p),{var:o,rgb:f,alpha:d,value:p}},Fa=(e,t,r)=>{let n=G();if(I(e)&&Ge(e)&&(e=xe(e.slice(2))),q(e))return{"@light":Fa(e[0],t,"light"),"@dark":Fa(e[0],t,"dark")};if(B(e)){let i={};for(let s in e)i[s]=Fa(e[s],t,s.slice(0,1)==="@"?s.slice(1):s);return i}let o=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[o]=e.value||e),{var:o,value:e.value||e}};L();var xN=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),hO=["color","Color","background","Background","fill","Fill","stroke","Stroke"],wN=e=>{for(let t=0;t<hO.length;t++)if(e.includes(hO[t]))return!0;return!1},$d=e=>{let t={},{state:r,media:n,helpers:o,...i}=e;return Object.keys(i).map(s=>{let a=["color","Color","background","border"].some(l=>s.includes(l));return t[s]=a?xe(e[s]):e[s]}),t},pa=e=>(e.value||(e.value=$d(e)),e.value),Xx=(e,t)=>{let r=G();if(r.useVariable)return Xr(e,t);let n=r.theme;if(I(e)){let[o,i]=e.split(" "),s=n[o];if(s){if(!i&&!t)return pa(s);e=[o,i||t]}}if(ce(e)&&e[1]){let o=e[0],i=e[1],{helpers:s,media:a,state:l}=n[o];if(a&&a[i])return pa(a[i]);if(s&&s[i])return pa(s[i]);if(l&&l[i])return pa(l[i])}else if(B(e))return $d(e)},SN=(e,t,r)=>{if(B(t))e.variants.inverse.value=$d(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},_N=(e,t,r,n)=>{let o=Xx(r);n[`&:${t}`]=o,B(r)&&!r.value&&(r.value=o)},kN=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return _N(e,n,o,t),e}),e):void 0},CN=(e,t,r,n)=>{let o=Xx(r);n[`@media (prefers-color-scheme: ${t})`]=o,B(r)&&!r.value&&(r.value=o)},AN=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&CN(e,n,o,t),n==="inverse"&&SN(e,o,t),e}),e):void 0},EN=(e,t)=>{let r=G(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let i=n[o];return I(i)?n[o]=r.theme[i]:pa(n[o]),e}),e):void 0},dP=(e,t)=>{let r=G();if(r.useVariable)return Zx(e,t);let{state:n,media:o,helpers:i}=e,s=$d(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return kN(e,s),AN(e,s),EN(e,s),{var:a,value:s,state:n,media:o,helpers:i}},gv=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,i=r.globalTheme!==void 0?r.globalTheme:"auto",s={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&wN(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=xe(f,`@${d}`);p!==void 0&&I(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!xN.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>ce(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);s[c]=gv(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);s[c]=gv(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let f=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,p=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,h;for(let g in e){if(l.has(g))continue;let m=e[g]?.[c];if(m===void 0)continue;let y=xe(m,`@${g}`);if(y===void 0)continue;(p&&g===p||!p&&(g==="light"||h===void 0))&&(h=y);let b=`[data-theme="${g}"]`;if(o[b]||(o[b]={}),o[b][f]=y,g==="dark"||g==="light"){let x=`@media (prefers-color-scheme: ${g})`;o[x]||(o[x]={}),o[x][f]=y}}h!==void 0&&(n[f]=h),s[c]=`var(${f})`,s[`.${c}`]={[c]:s[c]}}}return(s.background||s.color||s.backgroundColor)&&(s[".inversed"]={color:s.background||s.backgroundColor,background:s.color}),s},Zx=(e,t,r,n)=>{let o=G(),{cssVars:i}=o,s={value:e},a=!r&&!n;if(ce(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&ce(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=gv(l,t,o);Object.assign(s,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;s[l]=Zx(u,t,l,n||d)}else if(!a){let d=xe(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],p=f.length?"-"+f.join("-"):"",h=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(i[h]=d),s[l]=`var(${h})`):s[l]=d,s[`.${l}`]={[l]:s[l]}}}!s[".inversed"]&&(s.background||s.color||s.backgroundColor)&&(s[".inversed"]={color:s.background||s.backgroundColor,background:s.color})}if(I(e)&&Ge(e)){let l=o.theme[e.slice(2)];return Xr(l,n)}return s},mv=e=>{let t=G(),r={};for(let n in e){let o=n.slice(0,1);if(ce(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=mv(e[n]):o==="."&&(r[`&${n}`]=mv(e[n]))}else r[n]=e[n]}return r},pP=(e,t)=>{let r=t.shift();return e[r]?pP(e[r],t):e},gO=(e,t)=>q(t)?pP(e,t):I(t)&&e[t]?e[t]:e,Xr=(e,t)=>{let r=G();if(I(e)&&Ge(e)&&(e=Xr(e.slice(2))),!e||!I(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=q(e)?e:e.split(" "),i=r.theme[n];return i&&o.length?i=gO(i,o):i&&t&&(i=gO(i,t)),mv(i)};L();L();var hP=(e,t)=>{let r=G(),n=`--font-${t}`;if(!e||q(e)&&!e[0])return;let o;if(e.isVariable){let i=br(e.url,r.files)||e.url;Bx(i)?o=Nx(i):o=Ga(t,i,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=Od(t,e,r.files);else{let i=Array.isArray(e.url)?e.url.map(s=>br(s,r.files)||s):br(e.url,r.files)||e.url;o=Ga(t,i,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},gP=(e,t)=>{let r=G(),{fontFamily:n}=r;return Mx(t||n,e)},yv=(e,t)=>{let r=G(),{fontFamily:n,fontFamilyTypes:o}=r,{value:i,type:s}=e;e.isDefault&&(n.default=t),B(i)&&(i=tl(i));let a=`--font-family-${t}`,l=`${i.join(", ")}, ${o[s]}`;return{var:a,value:l,arr:i,type:s}};L();var mP=e=>{let t=G(),{typography:r,media:n}=t;for(let o in e){let i=o.slice(0,1)==="@",s=e[o];if(!i)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;ct(s,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=s.unit||g,b=!s.unit&&m.has(g)?"rem":y,x=n[l],v="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[v]={fontSize:s.base/r.browserDefault+b},!a){ct(s,{sequence:{},scales:{},vars:{}}),xr(s),Jf(e,o);continue}ct(s,{sequence:{},scales:{},templates:{},vars:{}}),xr(s),Jf(e,o)}},yP=e=>{let t=G();if(e.h1Matches){let r=e.unit,n=aP(e),{templates:o}=e;for(let i in n){let s=`h${parseInt(i)+1}`,a=o[s];o[s]={fontSize:t.useVariable?`var(${n[i]?.variable})`:`${n[i]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-i*100}}}},bP=()=>{let e=G(),{typography:t}=e;xr(t),yP(t),Pd(t),mP(t)},vP=e=>{let t=G(),{typography:r}=t;return Ka(e,"fontSize",r)};L();L();var TN=e=>{let t=G().spacing||{},r=parseFloat(e.spacingRatio),n={...t,ratio:Number.isFinite(r)?r:t.ratio,sequence:{},scales:{}};return xr(n),n},ON=e=>{for(let t in e){let r=e[t];if(t.slice(0,1)!=="@")continue;let{type:n,base:o,ratio:i,range:s,subSequence:a,h1Matches:l,unit:c}=e;ct(r,{type:n,base:o,ratio:i,range:s,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),xr(r),Jf(e,t)}},xP=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},wP=()=>{let e=G(),{spacing:t}=e;xr(t),Pd(t),ON(t)},RN=e=>{let t=G(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:xr(e)},qe=(e,t="padding",r,n)=>{let o=RN(r);if(I(e)&&!n&&e.includes("(")){let s=il(e);n=s[0],e=s[1]}let i=n?[e]:tl(e);if(q(i)){if(i.length>1){let s="";t==="borderWidth"&&(t="border",s="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>Ka(i[u],t+c+s,o,n);return a[i.length].map((c,u)=>l(c,u))}return Ka(e,t,o,n)}},zn=(e,t,r,n)=>{let o=G(),{spacing:i}=o,s=r||e[t];if(!n&&I(s)&&s.includes("(")){let a=il(s);n=a[0],s=a[1]}if(e.spacingRatio){let a=TN(e);return qe(s,t,a,n)}return qe(s,t,i,n)},SP=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Lx.some(i=>e.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};L();var Da=(e,t,r,n)=>{let o=G();if(q(e))return{"@light":Da(e[0],t,"light"),"@dark":Da(e[1],t,"dark")};if(B(e)){let s={};for(let a in e)s[a]=Da(e[a],t,a.startsWith("@")?a.slice(1):a);return s}I(e)&&!Wn.test(e)&&(e=Td(e).map(s=>(s=s.trim(),s.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let l=xe(a);if(ei(l))return l;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let c=qe(a,"shadow");return c&&c.shadow?c.shadow:a}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=e),{var:i,value:e}},_P=(e,t)=>{let r=G();if(t||(t=r.globalTheme),!I(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(Ge(e))return`var(${e})`;let[n]=q(e)?e:e.split(" "),o=r.shadow[n],i=B(o);if(!o)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(o[t])return o[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(i&&o.value)return o.value;if(i){let s={};for(let a in o){let l=r.media[a.slice(1)],c="@media "+(l==="print"?`${l}`:`screen and ${l}`);s[c]=o.value}return s}return r.verbose&&console.warn("Can't find color",e),e};L();var kP=()=>{let e=G(),{timing:t}=e;xr(t),Pd(t)},Dn=e=>{let t=G(),{timing:r}=t;return r[e]||r[Ad(e)]||e},yr=(e,t="timing")=>{let r=G(),{timing:n}=r;return Ka(e,t,n)};L();var CP=()=>{let e=G(),{document:t,fontFamily:r,theme:n,typography:o}=e;return ct(t,{theme:n.document,fontFamily:Mx(r),fontSize:o.base,lineHeight:o.lineHeight})};L();var Yx={document:ve},Jx=(e,t)=>{let r=G();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?uP(t,e):e},AP=(e,t=Yx)=>{let r=G(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];OP(n,t)},EP=(e,t)=>{let r=G();return r.useIconSprite&&!r.semanticIcons?.[t]?Jx(e,t):e},TP=(e,t=Yx)=>{let r=G(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];OP(n,t)},ev=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},PN=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,o=new r().parseFromString(n,"image/svg+xml");return o.querySelector("parsererror")?null:o.documentElement}return null},mO=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},OP=(e,t=Yx)=>{let r=G(),n=t.document||ve;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),hv(e);let o=n.querySelector("#svgSprite"),i=hv(e),s=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${i}</svg>`,a=PN(n,i);if(o)if(a)mO(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",i);else{let l=ev(n,{isRoot:!1});l.innerHTML=i,o.append(...l.children)}else if(a){let l=ev(n);l&&l.nodeType&&(mO(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",s);else{let l=ev(n);l&&l.nodeType&&(l.innerHTML=i,n.body.prepend(l))}};L();var RP=(e={})=>{let t=G(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Xr("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:i,...s}=n.templates,a=t.useDocumentTheme?Xr("document"):{};if(r.html&&Bn(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return nr(ct(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...s,...i},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};L();var $N=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),IN=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),jN=e=>$N.has(e),$n=e=>{let t=e+"";if(Wn.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ge(n))return`var(${n})`;if(jN(n)||/^\d/.test(n)||n==="0")return n;let o=xe(n);if(ei(o))return o;let i=qe(n,"border");return i&&i.border?i.border:n}).join(" ")},FN=e=>Wn.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(Ge(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=xe(t);return ei(r)?r:t}).join(" "),DN=(e,t)=>_P(e,t),yO=(e,t)=>Wn.test(e)?e:Td(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ge(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=xe(n);if(ei(o)){let s=lt(n,t);return B(s)?Object.values(s).filter(a=>a.includes(": "+t))[0]:s}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let i=qe(n,"shadow");return i&&i.shadow?i.shadow:n}).join(" "):"")).join(", "),PP=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),i=")",s=Td(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||IN.has(l)||l==="transparent"||Wn.test(l))return l;let c=xe(l);return ei(c)?c:l}).join(" ")));return n+s.join(", ")+i},LN=(e,t)=>{let r=G();return e.split(", ").map(n=>Ge(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?PP(n,t):r.gradient[e]?{backgroundImage:lt(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!ol(n)?`url(${n})`:n).join(" ")},MN=e=>I(e)&&e.split(" ").map(t=>qe(t,"gap").gap).join(" "),BN=e=>{let t=e.split(" ");return t.length?t.map(r=>Ge(r)?`var(${r})`:r.length<3||r.includes("ms")?yr(r).timing||r:Dn(r)?Dn(r):r).join(" "):e},bO=(e,t,r)=>{if(I(e))return e.split(",").map(n=>yr(n).timing||n).join(",")},NN=e=>{let t=e.split(",");if(t.length)return t.map(BN).join(",")};function Ie(e,t,r={},n={}){let o=De.call(this,t||r[e]);if(o==null)return;let i;if(I(o)){if(o.includes("(")){let l=il(o);i=l[0],o=l[1]}let s=r.scaleBoxSize,a=xP(e);!s&&a&&!n.ratio&&(o=SP(o))}return n.ratio?zn(r,e,o,i):qe(o,e,void 0,i)}var ie=(e,t=null,r)=>Ie(e,t,r,{ratio:!0}),vO=(e,t,r)=>{if(I(e))return{borderRadius:e.split(" ").map((n,o)=>zn(t,r,n)[r]).join(" ")}};L();var zN=(e,t)=>{let r=G(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},kt=e=>e,xO={color:ja,gradient:Fa,font:hP,fontFamily:yv,fontfamily:yv,theme:dP,icons:EP,semanticIcons:kt,semanticicons:kt,svg:Jx,svgData:kt,typography:kt,shadow:Da,spacing:kt,media:kt,grid:kt,class:kt,timing:kt,reset:kt,unit:kt,animation:kt,vars:zN},WN=(e,t,r)=>{let n=G(),o=eP(e),i=o.toLowerCase(),s=n[o]||n[i]||n[e],a=xO[o]||xO[i];if(a)try{let l=a(t,r);return s&&(s[r]=l),s}catch(l){n.verbose&&console.warn("Error setting",i,"value",t,r,l)}n.verbose&&console.warn("Can not find",i,"method in scratch")},HN=(e,t)=>{let r=G(),n=e.toLowerCase();return Object.keys(t).sort((o,i)=>{let s=B(t[o])||q(t[o])?1:0,a=B(t[i])||q(t[i])?1:0;return s-a}).forEach(o=>{try{return WN(n,t[o],o)}catch(i){r.verbose&&console.warn("Error setting",n,"value",t[o],o,i)}}),r[n]||r[e]};var VN={},Qx=(e,t=VN)=>{let r=t.config||G(),{version:n,verbose:o,useVariable:i,useReset:s,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=fN(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),i!==void 0&&(r.useVariable=i),s!==void 0&&(r.useReset=s),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let b=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=b&&b.defaultView||(typeof window<"u"?window:null),v=b&&(r.themeRoot||b.documentElement);if(v&&typeof v.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")v.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?v.style.colorScheme=r.globalTheme:v.style.colorScheme="light dark";else if(x&&x.matchMedia){let T=j=>{v.setAttribute("data-theme",j.matches?"dark":"light")},w=x.matchMedia("(prefers-color-scheme: dark)");if(T(w),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=T;try{w.addEventListener("change",T)}catch{w.addListener(T)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let S=Object.keys(y),k=new Set(S);if(S.forEach(T=>{let w=T.toLowerCase();w!==T&&k.has(w)&&nr(y[w],y[T])}),S.map(T=>{let w=T.toLowerCase();if(!(w!==T&&k.has(w)))return HN(T,y[T])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{bP()}catch(T){r.verbose&&console.warn("Error applying typography sequence",T)}if(y.spacing)try{wP()}catch(T){r.verbose&&console.warn("Error applying spacing sequence",T)}if(y.timing)try{kP()}catch(T){r.verbose&&console.warn("Error applying timing sequence",T)}CP();let E=RP();return E&&(r.reset=E),r};var UN=null,qN=null,GN=null;function KN(e){e.batchAtomicCss&&(qN=e.batchAtomicCss),e.compoundCssClass&&(GN=e.compoundCssClass)}function XN(){try{let e=G();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}function nf(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}var wO=new WeakMap;function ha(e,t){let r=$P(t);if(!r)return;let n=wO.get(r);if(n||(n=new Set,wO.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var SO=new WeakMap;function $P(e){let t=e||XN();if(!t||!t.head)return null;let r=SO.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return SO.set(t,o),UN=o,o}function Ut(e){if($P(),typeof e=="string"){ha(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let i=n.startsWith("@media"),s=o.startsWith("@media");return!i&&!s?0:i?s?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let i in o){let s=o[i];if(typeof s=="object"&&s!==null){let a="";for(let l in s){let c=l.startsWith("--")?l:nf(l);a+=`${c}:${s[l]};`}ha(`${n}{${i}{${a}}}`)}else{let a=i.startsWith("--")?i:nf(i);ha(`${n}{${a}:${s};}`)}}else{let i="",s=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)s=!0;else{let c=a.startsWith("--")?a:nf(a);i+=`${c}:${l};`}}if(i&&ha(`${n}{${i}}`),s){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)Ut({[`${n} ${c}`]:o[c]});for(let c of a)Ut({[c]:{[n]:o[c]}})}}}}function _O(e,t){let r="";for(let n in t){let o="";for(let i in t[n])o+=`${nf(i)}:${t[n][i]};`;r+=`${n}{${o}}`}return ha(`@keyframes ${e}{${r}}`),e}L();L();L();var ZN=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],YN=["none","forwards","backwards","both"],JN=["normal","reverse","alternate","alternate-reverse"],QN=["running","paused"],e4=e=>/^[\d.]+m?s$/.test(e),t4=0,tv=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(B(e)){let o=`smbls-anim-${t4++}`;return{animationName:_O(o,e)}}let n=r&&r[e];return B(n)?_O(e,n):e},r4=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,i=[],s=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:e4(d)?i.push(d):ZN.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?s=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):JN.includes(d)?l=d:YN.includes(d)?c=d:QN.includes(d)?u=d:o||(o=d);return{name:o,durations:i,timingFunction:s,iterationCount:a,direction:l,fillMode:c,playState:u}},n4={animation:(e,t)=>{if(I(e)&&e.includes(" ")){let r=r4(e,t);return{animationName:tv(r.name||e,t),animationDuration:r.durations[0]||yr(t.animationDuration||"A").timing,animationDelay:r.durations[1]||yr(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Dn(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:tv(e,t),animationDuration:yr(t.animationDuration||"A").timing,animationDelay:yr(t.animationDelay||"0s").timing,animationTimingFunction:Dn(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:tv(e,t)}),animationDuration:e=>({animationDuration:yr(e).timing}),animationDelay:e=>({animationDelay:yr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Dn(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};L();var o4={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>ie("height",e,t),width:(e,t)=>ie("width",e,t),boxSizing:e=>Et(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Ie("height",t),...Ie("width",r||t)}},inlineSize:(e,t)=>ie("inlineSize",e,t),blockSize:(e,t)=>ie("blockSize",e,t),minWidth:(e,t)=>ie("minWidth",e,t),maxWidth:(e,t)=>ie("maxWidth",e,t),widthRange:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Ie("minWidth",t),...Ie("maxWidth",r||t)}},minHeight:(e,t)=>ie("minHeight",e,t),maxHeight:(e,t)=>ie("maxHeight",e,t),heightRange:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Ie("minHeight",t),...Ie("maxHeight",r||t)}},size:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...ie("inlineSize",t),...ie("blockSize",r||t)}},minBlockSize:(e,t)=>ie("minBlockSize",e,t),minInlineSize:(e,t)=>ie("minInlineSize",e,t),maxBlockSize:(e,t)=>ie("maxBlockSize",e,t),maxInlineSize:(e,t)=>ie("maxInlineSize",e,t),minSize:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Ie("minInlineSize",t),...Ie("minBlockSize",r||t)}},maxSize:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Ie("maxInlineSize",t),...Ie("maxBlockSize",r||t)}},borderWidth:(e,t)=>ie("borderWidth",e,t),padding:(e,t)=>ie("padding",e,t),scrollPadding:(e,t)=>ie("scrollPadding",e,t),paddingInline:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Ie("paddingInlineStart",t),...Ie("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Ie("paddingBlockStart",t),...Ie("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>ie("paddingBlockStart",e,t),paddingBottom:(e,t)=>ie("paddingBlockEnd",e,t),paddingLeft:(e,t)=>ie("paddingInlineStart",e,t),paddingRight:(e,t)=>ie("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>ie("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>ie("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>ie("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>ie("paddingInlineEnd",e,t),margin:(e,t)=>ie("margin",e,t),marginInline:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{...Ie("marginInlineStart",t),...Ie("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!I(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...Ie("marginBlockStart",r),...Ie("marginBlockEnd",n||r)}},marginTop:(e,t)=>ie("marginBlockStart",e,t),marginBottom:(e,t)=>ie("marginBlockEnd",e,t),marginLeft:(e,t)=>ie("marginInlineStart",e,t),marginRight:(e,t)=>ie("marginInlineEnd",e,t),marginInlineStart:(e,t)=>ie("marginInlineStart",e,t),marginInlineEnd:(e,t)=>ie("marginInlineEnd",e,t),marginBlockStart:(e,t)=>ie("marginBlockStart",e,t),marginBlockEnd:(e,t)=>ie("marginBlockEnd",e,t),gap:e=>({gap:MN(e)}),columnGap:(e,t)=>zn(t,"columnGap",e),rowGap:(e,t)=>zn(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!I(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!I(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>vO(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>vO(e??t.round,t,"borderRadius")},i4={fontSize:e=>vP(e)||e,fontFamily:e=>({fontFamily:gP(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})},s4={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let i=n.files&&n.files[e];i&&i.content&&(e=`url(${i.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0},a4={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>qe(r,"k").k).join(" ")}},left:e=>qe(e,"left"),top:e=>qe(e,"top"),right:e=>qe(e,"right"),bottom:e=>qe(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>qe(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>qe(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};L();var zt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},l4={theme:(e,t)=>{if(e)return t.themeModifier?Xr(e,`@${t.themeModifier}`):Xr(e)},color:(e,t)=>{let r=zt(t);if(e)return{color:lt(e,r)}},background:(e,t)=>{let r=zt(t);if(e)return I(e)&&e.includes("gradient")?{background:PP(e,r)}:{background:lt(e,r)}},backgroundColor:(e,t)=>{let r=zt(t);if(e)return{backgroundColor:lt(e,r)}},backgroundImage:(e,t,r,n)=>{let o=zt(t);if(!e)return;let i=n.assets&&n.assets[e];if(i&&i.content)e=i.content.src;else{let s=n.files&&n.files[e];s&&s.content&&(e=s.content.src)}return{backgroundImage:LN(e,o)}},textStroke:e=>({WebkitTextStroke:FN(e)}),outline:e=>({outline:$n(e)}),outlineOffset:(e,t)=>ie("outlineOffset",e,t),border:e=>({border:$n(e)}),borderColor:(e,t)=>{let r=zt(t);if(e)return{borderColor:lt(e,r)}},borderTopColor:(e,t)=>{let r=zt(t);if(e)return{borderTopColor:lt(e,r)}},borderBottomColor:(e,t)=>{let r=zt(t);if(e)return{borderBottomColor:lt(e,r)}},borderLeftColor:(e,t)=>{let r=zt(t);if(e)return{borderLeftColor:lt(e,r)}},borderRightColor:(e,t)=>{let r=zt(t);if(e)return{borderRightColor:lt(e,r)}},borderLeft:e=>({borderLeft:$n(e)}),borderTop:e=>({borderTop:$n(e)}),borderRight:e=>({borderRight:$n(e)}),borderBottom:e=>({borderBottom:$n(e)}),shadow:(e,t)=>{let r=zt(t);if(e)return{boxShadow:DN(e,r)}},boxShadow:(e,t)=>{if(!I(e))return;let[r,n]=e.split("!importan"),o=zt(t),i=n?" !important":"";return{boxShadow:yO(r.trim(),o)+i}},textShadow:(e,{context:t})=>({textShadow:yO(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:$n(e)})},ew={transition:e=>({transition:NN(e)}),transitionDuration:e=>({transitionDuration:bO(e)}),transitionDelay:e=>({transitionDelay:bO(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Dn(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};L();var c4={flow:(e,t)=>{let r=t.reverse;if(!I(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}},u4={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})},kO={...n4,...o4,...i4,...s4,...a4,...l4,...ew,...c4,...u4},f4=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);L();var d4=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,p4=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),i=n.designSystem.media[o],s=wr(t,r);if(!i)return{[e]:s};if(i==="print")return{"@media print":s};if(i[0]==="(")return{[`@media screen and ${i}`]:s};let a=i.match(d4),l=a?a[1]||a[2]:o,c={[`${i} &`]:s};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:s}}return c},CO=(e,t,r)=>({[e]:wr(t,r)}),ca=(e,t,r)=>{let n=`&${e}`,o=wr(t,r);if(e.includes(",")&&o){let i={},s={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?s[a]=o[a]:i[a]=o[a];if(Object.keys(s).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(i).length&&(l[n]=i);for(let c in s){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=s[c]}return l}}return{[n]:o}},tw=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return M(r)?r.call(t,t):!!r},h4=(e,t,r)=>{let n=e.slice(1),o=tw(n,r);if(o===void 0&&(o=!!r[n]),!!o)return wr(t,r)},g4=(e,t,r)=>({[e]:t}),m4=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let i=tw(n,r);i!==void 0&&(o=i)}if(o)return wr(t,r)},y4=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let i=tw(n,r);i!==void 0&&(o=i)}if(!o)return wr(t,r)},b4=(e,t)=>wr(e,t),v4={"@":p4,":":ca,"[":ca,"*":ca,"+":ca,"~":ca,"&":CO,">":CO,$:h4,"-":g4,".":m4,"!":y4},rv=Yo(),x4=(e,t,r)=>{let n=t?.context?.designSystem;n&&cN(n);try{let o={},i={},s=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>ct(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=De(l,t);ct(o,b4(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=M(c)?c(t,t.state,t.context):c;u&&s(a,u),!rv&&B(o[a])&&(o[a].label=a)}else if(kO[a]){let c=De(l,t);q(c)&&(c=c.reduce((d,f)=>ct(d,f),{}));let u=kO[a](c,t,t.state,t.context);q(u)&&(u=u.reduce((d,f)=>ct(d,f),{})),u&&s(a,u),!rv&&B(o[a])&&(o[a].label=a)}else if(f4.has(a)){let c=De(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),s(a,{[a]:c}),!rv&&B(o[a])&&(o[a].label=a)}else i[a]=l}return[o,i]}finally{n&&uN()}},w4=(e,t)=>{let r={};for(let n in e){let o=v4[n.slice(0,1)];if(o){let i=o(n,e[n],t);if(i)for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]&&typeof r[s]=="object"&&typeof i[s]=="object"?Bn(r[s],i[s]):r[s]=i[s])}}return r},wr=(e,t,r={unpack:!0})=>{let[n,o]=x4(e,t,r),i=w4(o,t),s=!1;for(let a in i){s=!0;break}if(s){if(r.unpack)return bd(n,i);n._selectors=i}return n};L();L();L();var DY=new Proxy(Object.create(null),{get(){},has(){return!1}});L();var Qf=(e,t)=>{let r=e.call("exec",t,e);if(r)return I(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r};var S4={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},_4={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},k4={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},LY={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...S4,..._4,...k4,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var C4={};$(C4,{A:()=>h$,AssetPicture:()=>i2,Audio:()=>f2,Avatar:()=>j$,B:()=>P2,Block:()=>jP,Box:()=>F2,Br:()=>L2,Button:()=>v$,ButtonSet:()=>_$,COMPONENTS:()=>D4,Caption:()=>S2,Checkbox:()=>Z2,CheckboxHgroup:()=>Y2,Circle:()=>t2,CircleButton:()=>w$,Clickable:()=>XP,Data:()=>I2,Dialog:()=>A$,DialogFooter:()=>T$,DialogHeader:()=>E$,Dropdown:()=>M$,DropdownList:()=>B$,DropdownParent:()=>N$,DropdownParentFocus:()=>z$,DropdownSiblingFocus:()=>W$,FileIcon:()=>u$,Flex:()=>DP,Focusable:()=>ZP,FocusableComponent:()=>YP,Footnote:()=>R2,Form:()=>VP,Grid:()=>MP,Gutter:()=>NP,H1:()=>g2,H2:()=>m2,H3:()=>y2,H4:()=>b2,H5:()=>v2,H6:()=>x2,Headline:()=>T2,Hgroup:()=>W2,HgroupButton:()=>V2,HgroupRows:()=>H2,Hoverable:()=>KP,Hr:()=>D2,I:()=>$2,Icon:()=>l$,IconButton:()=>k$,IconText:()=>c$,Iframe:()=>qP,Img:()=>WP,Inline:()=>FP,InlineFlex:()=>LP,InlineGrid:()=>BP,Input:()=>q2,Italic:()=>A2,KangorooButton:()=>S$,Li:()=>M2,Link:()=>cw,Notification:()=>V$,NumberInput:()=>K2,Ol:()=>N2,P:()=>w2,Picture:()=>n2,Radio:()=>Q2,RadioHgroup:()=>e$,Range:()=>D$,RouteLink:()=>g$,RouterLink:()=>uw,SHAPES:()=>ed,Select:()=>y$,Shape:()=>nw,Span:()=>h2,SquareButton:()=>x$,Strong:()=>_2,Subhead:()=>O2,Svg:()=>a2,Text:()=>p2,Textarea:()=>i$,TextareaWithButton:()=>s$,Theme:()=>r2,Title:()=>E2,Toggle:()=>r$,ToggleHgroup:()=>n$,Tooltip:()=>R$,TooltipHidden:()=>P$,TooltipParent:()=>$$,U:()=>k2,Ul:()=>B2,Underline:()=>C2,Video:()=>c2,depth:()=>rw,getSystemGlobalTheme:()=>td});var IP={};$(IP,{Block:()=>jP,Flex:()=>DP,Grid:()=>MP,Gutter:()=>NP,Inline:()=>FP,InlineFlex:()=>LP,InlineGrid:()=>BP});var jP={display:"block"},FP={display:"inline"},DP={display:"flex"},LP={display:"inline-flex"},MP={display:"grid"},BP={display:"inline-grid"},NP={boxSize:"C1"},zP={};$(zP,{Img:()=>WP});L();var WP={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Le(e);return t&&t.src||e.src},srcset:e=>{let t=Le(e);return(t?rl(t):"")||e.srcset}}},HP={};$(HP,{Form:()=>VP});var VP={tag:"form"},UP={};$(UP,{Iframe:()=>qP});var qP={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},GP={};$(GP,{Clickable:()=>XP,Focusable:()=>ZP,FocusableComponent:()=>YP,Hoverable:()=>KP});var A4={appearance:"none",cursor:"pointer",fontFamily:"inherit"},KP={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},XP={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},ZP={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},YP={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:A4},JP={};$(JP,{Picture:()=>n2});var QP={};$(QP,{Theme:()=>r2,getSystemGlobalTheme:()=>td});var e2={};$(e2,{Circle:()=>t2,SHAPES:()=>ed,Shape:()=>nw,default:()=>E4,depth:()=>rw});L();var Ct=G(),rw={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Ct.unit.default} 4${Ct.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Ct.unit.default} 6${Ct.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Ct.unit.default} 10${Ct.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Ct.unit.default} 16${Ct.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Ct.unit.default} 26${Ct.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Ct.unit.default} 42${Ct.unit.default}`}},zo=e=>xe(e.shapeDirectionColor)||xe(e.borderColor)||xe(e.backgroundColor)||xe(e.background),Zu=e=>{let t=ew.transition(e.transition,e);return t&&t.transition},ed={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:zo(e),transition:Zu(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:zo(e),transition:Zu(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:zo(e),transition:Zu(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Zu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${zo(e)} 25%, transparent 25%), linear-gradient(315deg, ${zo(e)} 25%, transparent 25%)`},"&:after":{background:zo(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},nw={deps:{exec:De,getSpacingBasedOnRatio:zn,getMediaColor:lt},classlist:{shape:e=>e.deps.exec(ed[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=ed[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},t2={round:"100%"},E4=nw;L();var td=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},r2={deps:{depth:rw},classlist:{depth:e=>!Et(e.depth)&&e.deps.depth[e.depth]}},n2={deps:{getSystemGlobalTheme:td},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:td},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,i=n.getSystemGlobalTheme(e),s=(e.media||t).slice(1);return s===i?"(min-width: 0px)":s==="dark"||s==="light"?"(max-width: 0px)":o[s]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}},o2={};$(o2,{AssetPicture:()=>i2});L();var i2={tag:"picture",children:e=>{let t=Le(e);if(t)return nl(t,e.alt)}},s2={};$(s2,{Svg:()=>a2});var a2={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,i=e.spriteId||r&&r.useSvgSprite,s=e.call("exec",e.src,e);if(!i&&s)return s;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[s])return a(s);let c=Symbol.for(s),u=o[c];if(u&&o[u])return a(u);if(!s)return a("");if(typeof s=="string"&&!s.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${s}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${s}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<s.length;f++)d=(d<<5)-d+s.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:s}},{document:t.document,emotion:t.emotion}),a(u)}},l2={};$(l2,{Video:()=>c2});L();var c2={tag:"video",controls:!0,attr:{src:e=>{let t=Le(e);return t&&t.src||e.src}},children:e=>{let t=Le(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},u2={};$(u2,{Audio:()=>f2});L();var f2={tag:"audio",controls:!0,attr:{src:e=>{let t=Le(e);return t&&t.src||e.src}},children:e=>{let t=Le(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},d2={};$(d2,{B:()=>P2,Caption:()=>S2,Data:()=>I2,Footnote:()=>R2,H1:()=>g2,H2:()=>m2,H3:()=>y2,H4:()=>b2,H5:()=>v2,H6:()=>x2,Headline:()=>T2,I:()=>$2,Italic:()=>A2,P:()=>w2,Span:()=>h2,Strong:()=>_2,Subhead:()=>O2,Text:()=>p2,Title:()=>E2,U:()=>k2,Underline:()=>C2});var p2={},h2={tag:"span"},g2={tag:"h1"},m2={tag:"h2"},y2={tag:"h3"},b2={tag:"h4"},v2={tag:"h5"},x2={tag:"h6"},w2={tag:"p"},S2={tag:"caption"},_2={tag:"strong",fontWeight:"700"},k2={tag:"u"},C2={tag:"u"},A2={tag:"i"},E2={},T2={tag:"h6",fontSize:"B",fontWeight:500},O2={tag:"span",fontSize:"Z1"},R2={tag:"span",fontSize:"Z"},P2={tag:"b"},$2={tag:"i"},I2={tag:"data"},j2={};$(j2,{Box:()=>F2,Br:()=>L2,Hr:()=>D2,Li:()=>M2,Ol:()=>N2,Ul:()=>B2});var T4=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=wr(t,e,{unpack:!1});r.__class=n},F2={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:T4},D2={tag:"hr",margin:"C1 0"},L2={tag:"br"},M2={tag:"li"},B2={tag:"ul",childExtends:{extends:"Li"}},N2={tag:"ol",childExtends:{extends:"Li"}},z2={};$(z2,{Hgroup:()=>W2,HgroupButton:()=>V2,HgroupRows:()=>H2});var AO=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},W2={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:AO,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:AO,margin:"0",color:"paragraph"}},H2={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},V2={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},U2={};$(U2,{Input:()=>q2});var q2={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}},G2={};$(G2,{NumberInput:()=>K2});var K2={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}},X2={};$(X2,{Checkbox:()=>Z2,CheckboxHgroup:()=>Y2});var Z2={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},Y2={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},J2={};$(J2,{Radio:()=>Q2,RadioHgroup:()=>e$});var Q2={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},e$={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},t$={};$(t$,{Toggle:()=>r$,ToggleHgroup:()=>n$});var r$={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},n$={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}},o$={};$(o$,{Textarea:()=>i$,TextareaWithButton:()=>s$});var i$={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},s$={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}},a$={};$(a$,{FileIcon:()=>u$,Icon:()=>l$,IconText:()=>c$});var l$={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:i,verbose:s}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=v=>{let S=v[".isActive"];if(S)return v.call("exec",S.name||S.icon)},c=(v,S,k)=>{let{semanticIcons:E}=k&&k.designSystem,{toCamelCase:T}=k&&k.utils,w=u(v,S),j=T(w).split(/([a-z])([A-Z])/g),K=j[1]?j[0]:w.split(".")[0].split(" ")[0],Q=E&&E[K];if(Q){let W=w.includes(".")?"sfsymbols."+w.split(".").slice(1).join("."):"sfsymbols";return w=Q[W]||Q[w.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${w}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(v,S)=>{let{key:k}=v,E=v.call("exec",v.name||v.icon||k,v);return v.call("isString",E)&&E.includes("{{")&&(E=v.call("replaceLiteralsWithObjectFields",E)),v.call("isString",E)?E:k},d=u(e,t);if(d.includes(" ")){let v=d.split(" ");d=v[0]+v.slice(1).map(S=>S.charAt(0).toUpperCase()+S.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:s&&e.warn("Can't find icon:",d,y);let b=o[y],x=n&&n.src||e.src;Object.assign(e,{spriteId:i&&y,src:b||x||o.noIcon})},attr:{viewBox:"0 0 24 24"}},c$={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},u$={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},f$={};$(f$,{A:()=>h$,Link:()=>cw,RouteLink:()=>g$,RouterLink:()=>uw});var O4={};$(O4,{default:()=>j4,getActiveRoute:()=>lw,lastLevel:()=>Id,lastPathname:()=>rd,matchRoute:()=>iw,parseQuery:()=>sw,parseRoutePattern:()=>ow,router:()=>Yr,runGuards:()=>aw});L();var d$=/^:(.+)/,p$=/^\*$/,EO=new Map,ow=e=>{let t=EO.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let s=0;s<r.length;s++){let a=r[s].match(d$);a?n.push({index:s,name:a[1]}):p$.test(r[s])&&(o=!0)}let i={segments:r,params:n,hasWildcard:o,pattern:e};return EO.set(e,i),i},iw=(e,t,r=0)=>{let n=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),o="/"+(n[0]||"");if(!t)return{key:null,content:null,params:{},routePath:o};let i=null,s=-1,a={};for(let l in t){if(l==="/*")continue;let c=ow(l),u=R4(n,c);u>s&&(s=u,i=l,a=P4(n,c))}return!i&&t["/*"]&&(i="/*"),{key:i,content:i?t[i]:null,params:a,routePath:o}},R4=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,i=Math.min(r.length,e.length);for(let s=0;s<i;s++)if(r[s]===e[s])o+=3;else if(d$.test(r[s]))o+=1;else if(p$.test(r[s]))o+=.5;else return-1;return o},P4=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},sw=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((r,n)=>{t[n]!==void 0?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(r)):t[n]=r}),t},aw=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},lw=(e=0,t)=>{t||(t=typeof le<"u"?le.location.pathname:"/");let r=t.split("/")[e+1];if(r)return`/${r}`},rd,Id=0,$4=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,I4={level:Id,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:ve&&ve.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Yr=async(e,t,r={},n={})=>{let o=t||void 0,i=o?.context?.window||le,s=o?.context?.document||ve,a={...I4,...o.context.routerOptions,...n};Id=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=i.location.origin!=="null"?i.location.origin:"http://localhost";e=$4(e);let d=typeof i.URL=="function"?i.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=sw(h),y=o.node,b=g&&g!==i.location.hash.slice(1),x=p!==rd;rd=p;let v,S,k,E;if(a.useParamsMatching){let w=iw(p,o.routes,a.level);v=w.key,S=w.routePath,k=w.content,E=w.params}else{v=lw(a.level,p),S=v;let w=o.routes;k=w?w[v||"/"]||w["/*"]:null,E={}}let T=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!k){a.onNotFound?a.onNotFound({pathname:p,route:v,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let w={pathname:p,route:v,params:E,query:m,hash:g,element:o,state:r},j=await aw(a.guards,w);if(j===!1)return;if(typeof j=="string")return Yr(j,t,r,{...n,guards:[]})}if(a.pushState)try{i.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(x||!b){let w={route:v,routePath:S,hash:g,debugging:!1};Object.keys(E).length&&(w.params=E),Object.keys(m).length&&(w.query=m),a.updateState&&o.state.update(w,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let j=o.__ref?.origin?.content,K={};if(j)for(let W in j){let H=j[W];W==="__ref"||W==="props"||W==="node"||W==="parent"||W==="key"||(typeof H=="string"||typeof H=="number"||typeof H=="boolean"||typeof H=="object"&&H!==null&&!H.node&&!H.__ref)&&(K[W]=H)}let Q={...K,...typeof k=="object"?k:{extends:k}};a.useFragment&&(Q.tag="fragment");try{o.set(Q,{contentElementKey:c})}catch(W){console.error("[smbls/router] failed to render route content",p,W)}}if(a.scrollToTop&&T?.scrollTo&&T.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&k[c]?.node?.scrollTo&&k[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let w=s.getElementById(g);if(w&&T?.scrollTo){let j=w.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);T.scrollTo({...a.scrollToOptions||{},top:j,left:0})}}Jo("routeChanged",o,a)},j4=Yr,F4=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:i,stopPropagation:s}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),s&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Yr)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",i)?i:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},cw={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Qf(e,e.href)||Qf(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:F4},h$={extends:"Link"},uw={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:i,stopPropagation:s}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),s&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Yr)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",i)?i:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},g$={extends:[cw,uw]},m$={};$(m$,{Select:()=>y$});var y$={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}},b$={};$(b$,{Button:()=>v$,ButtonSet:()=>_$,CircleButton:()=>w$,IconButton:()=>k$,KangorooButton:()=>S$,SquareButton:()=>x$});var v$={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},x$={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},w$={extends:"SquareButton",round:"C"},S$={extends:"Button",childExtends:"IconText"},_$={tag:"nav",display:"flex",childExtends:"SquareButton"},k$={extends:["SquareButton","ClickableItem"],round:"Z"},C$={};$(C$,{Dialog:()=>A$,DialogFooter:()=>T$,DialogHeader:()=>E$});var A$={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},E$={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},T$={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}},O$={};$(O$,{Tooltip:()=>R$,TooltipHidden:()=>P$,TooltipParent:()=>$$});L();var R$={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>Mn(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},P$={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},$$={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}},I$={};$(I$,{Avatar:()=>j$});var j$={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`},F$={};$(F$,{Range:()=>D$});var D$={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:qa("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:qa("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}},L$={};$(L$,{Dropdown:()=>M$,DropdownList:()=>B$,DropdownParent:()=>N$,DropdownParentFocus:()=>z$,DropdownSiblingFocus:()=>W$});var M$={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},B$={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},N$={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},z$={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},W$={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}},H$={};$(H$,{Notification:()=>V$});var V$={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}},D4=Object.assign({},IP,zP,HP,UP,GP,JP,o2,s2,e2,l2,u2,QP,d2,j2,z2,U2,G2,X2,J2,t$,o$,a$,f$,m$,b$,C$,O$,I$,F$,L$,H$);var L4=null;function M4(e){L4=e}L();var B4={};$(B4,{CDN_PROVIDERS:()=>Ht,DOMQL_EVENTS:()=>Yv,DOMQ_PROPERTIES:()=>Qo,ENV:()=>m0,HTML_TAGS:()=>Ha,METHODS:()=>Na,METHODS_EXL:()=>yd,NODE_ENV:()=>Wt,OPTIONS:()=>Cd,PACKAGE_MANAGER_TO_CDN:()=>Kf,PARSED_DOMQ_PROPERTIES:()=>md,PROPS_METHODS:()=>Fn,STATE_METHODS:()=>jn,STATE_PROPERTIES:()=>Zv,SVG_TAGS:()=>$0,TYPES:()=>ma,UNIVERSAL_RESERVED_KEYS:()=>Gf,addCaching:()=>Lf,addContext:()=>Df,addExtend:()=>L0,addExtends:()=>tt,addItemAfterEveryElement:()=>Lv,addProtoToArray:()=>pd,addRef:()=>If,applyCSS:()=>H4,applyDependentState:()=>rx,applyEvent:()=>Hf,applyEventUpdate:()=>Vf,applyExtends:()=>B0,applyProps:()=>Ra,arrayContainsOtherArray:()=>Rv,arraysEqual:()=>Bv,arrayzeValue:()=>tl,buildImgSrcset:()=>rl,buildSourcesAndImg:()=>nl,cache:()=>sx,call:()=>TR,captureSnapshot:()=>px,checkForStateTypes:()=>J0,checkIfInherits:()=>Wf,checkIfStringIsInArray:()=>Wv,clone:()=>Qv,cloneAndMergeArrayExtend:()=>_a,cloneFunction:()=>MO,concatAddExtends:()=>j0,copyJavaScriptToClipboard:()=>Px,copyStringToClipboard:()=>Rx,createBasedOnType:()=>$f,createElement:()=>Y0,createElementExtends:()=>Sf,createExtends:()=>_d,createExtendsFromKeys:()=>Va,createExtendsStack:()=>Af,createIfConditionFlag:()=>C0,createInheritedState:()=>Q0,createKey:()=>wd,createNestedObject:()=>l0,createNestedObjectByKeyPath:()=>tx,createObjectWithoutPrototype:()=>mf,createParent:()=>jf,createPath:()=>Ff,createProps:()=>kd,createPropsStack:()=>Rf,createRoot:()=>Z0,createScope:()=>ox,createSnapshotId:()=>xd,customDecodeURIComponent:()=>Xv,customEncodeURIComponent:()=>Kv,cutArrayAfterValue:()=>Fv,cutArrayBeforeValue:()=>jv,debounce:()=>LO,debounceOnContext:()=>w0,decodeNewlines:()=>Gv,deepClone:()=>ut,deepContains:()=>s0,deepDefaults:()=>Pa,deepDestringifyFunctions:()=>e0,deepExtend:()=>wf,deepMerge:()=>nr,deepMergeExtends:()=>er,deepStringifyFunctions:()=>ya,defineSetter:()=>dx,destringifyGlobalScope:()=>t0,detectHeightOnInit:()=>bx,detectInfiniteLoop:()=>d0,document:()=>ve,encodeNewlines:()=>qv,error:()=>qf,excludeKeysFromObject:()=>h0,exec:()=>De,extendCachedRegistry:()=>F0,extendStackRegistry:()=>xa,extractArrayExtend:()=>Sa,fetchLibraryData:()=>Tx,fibonacciNumberByIndex:()=>vx,filterArrays:()=>Nv,filterArraysFast:()=>zv,finalizeExtends:()=>Ef,findClosestNumber:()=>Zf,findClosestNumberInFactory:()=>Ex,findInheritedState:()=>zf,findKeyPosition:()=>Vv,flattenExtend:()=>qo,formatDate:()=>yx,generateHash:()=>bf,generateKey:()=>va,generateMetaTags:()=>Ax,get:()=>pR,getActiveRoute:()=>lw,getCDNUrl:()=>Xf,getCapitalCaseKeys:()=>WO,getCdnProviderFromConfig:()=>gx,getChildStateInKey:()=>Nf,getChildren:()=>mR,getContext:()=>SR,getCookie:()=>R0,getDB:()=>OR,getEmotionStylesheet:()=>Fx,getExtendsInElement:()=>M0,getExtendsStack:()=>Ca,getExtendsStackRegistry:()=>xf,getFrequencyInArray:()=>Pv,getHashedExtend:()=>wa,getImportMapScript:()=>mx,getInObjectByPath:()=>f0,getLocalStorage:()=>BO,getNev:()=>x0,getPageMetadata:()=>DR,getParentStateInKey:()=>Bf,getPath:()=>yR,getQuery:()=>RR,getRef:()=>gR,getRoot:()=>vR,getRootContext:()=>wR,getRootData:()=>xR,getRootState:()=>bR,getRootStateInKey:()=>Mf,getSpreadChildren:()=>HO,global:()=>Ev,hasFunction:()=>Uo,hasHandlerPlugin:()=>el,hasOwnProperty:()=>n0,inheritChildExtends:()=>kf,inheritChildPropsExtends:()=>_f,inheritParentProps:()=>Ea,inheritRecursiveChildExtends:()=>Cf,init:()=>jd,initProps:()=>K0,is:()=>tr,isArray:()=>q,isBoolean:()=>ff,isContextComponent:()=>VO,isCyclic:()=>p0,isDOMNode:()=>at,isDate:()=>pf,isDefined:()=>Mn,isDevelopment:()=>Sd,isEmpty:()=>hf,isEmptyObject:()=>o0,isEqualDeep:()=>gf,isFunction:()=>M,isHtmlElement:()=>cd,isLocal:()=>v0,isMethod:()=>PR,isMobile:()=>T0,isNode:()=>Xa,isNot:()=>Ov,isNotProduction:()=>Qa,isNull:()=>df,isNumber:()=>Ln,isObject:()=>B,isObjectLike:()=>ce,isPhoto:()=>xx,isProduction:()=>Yo,isStaging:()=>b0,isState:()=>ex,isString:()=>I,isStringFunction:()=>_0,isTest:()=>yf,isTesting:()=>y0,isUndefined:()=>Et,isUniversallyReservedKey:()=>hx,isValidHtmlTag:()=>I0,joinArrays:()=>Ma,jointStacks:()=>D0,keys:()=>lx,lastLevel:()=>Id,lastPathname:()=>rd,loadCssFile:()=>kx,loadJavascript:()=>Cx,loadJavascriptFile:()=>wx,loadJavascriptFileEmbedSync:()=>_x,loadJavascriptFileSync:()=>Sx,loadRemoteCSS:()=>FR,loadRemoteScript:()=>jR,log:()=>_R,logGroupIf:()=>E0,logIf:()=>A0,lookdown:()=>uR,lookdownAll:()=>fR,lookup:()=>cR,lowercaseFirstLetter:()=>Ya,makeObjectWithoutPrototype:()=>i0,map:()=>Jv,mapStringsWithContextComponents:()=>ka,matchRoute:()=>iw,matchesComponentNaming:()=>In,memoize:()=>S0,merge:()=>ct,mergeSharedLibraries:()=>Ox,nextElement:()=>CR,normalizeLibraryKey:()=>Ua,objectToString:()=>ba,objectizeStringProperty:()=>Aa,overwrite:()=>bd,overwriteDeep:()=>Bn,overwriteShallow:()=>vd,overwriteState:()=>nx,parse:()=>cx,parseDeep:()=>Uf,parseQuery:()=>sw,parseRoutePattern:()=>ow,pickupElementFromProps:()=>W0,pickupPropsFromElement:()=>z0,previousElement:()=>AR,propExists:()=>G0,propertizeElement:()=>H0,propertizeUpdate:()=>qO,reinit:()=>W4,remove:()=>dR,removeChars:()=>$x,removeCookie:()=>P0,removeDuplicateProps:()=>Ta,removeDuplicatesInArray:()=>Ba,removeFromArray:()=>$v,removeFromObject:()=>a0,removeNestedKeyByPath:()=>c0,removeValueFromArray:()=>dd,removeValueFromArrayAll:()=>Dv,reorderArrayByValues:()=>Mv,replaceLiteralsWithObjectFields:()=>jO,replaceOctalEscapeSequences:()=>Uv,resolveAsset:()=>Le,resolveHandler:()=>za,resolveSharedLibraries:()=>MR,returnValueAsText:()=>Pf,router:()=>Yr,runGuards:()=>aw,runPluginHook:()=>Wa,scratchSystem:()=>fP,scratchUtils:()=>zR,self:()=>Tv,set:()=>Qx,setActiveRootState:()=>fx,setCookie:()=>O0,setHashedExtend:()=>vf,setInObjectByPath:()=>u0,setLocalStorage:()=>NO,setNodeStyles:()=>ax,setProps:()=>hR,setPropsPrototype:()=>Tf,spotByPath:()=>lR,srcsetFor:()=>Ko,stringIncludesAny:()=>hd,stringToObject:()=>r0,swapItemsInArray:()=>Iv,syncProps:()=>Oa,toCamelCase:()=>Ad,toDashCase:()=>Ed,toDescriptionCase:()=>jx,toTitleCase:()=>Ix,toggleFullscreen:()=>IR,triggerEventOn:()=>Jo,triggerEventOnUpdate:()=>ix,trimStringFromSymbols:()=>Hv,unstackArrayOfObjects:()=>fd,update:()=>V0,updateProps:()=>X0,variables:()=>ER,verbose:()=>ux,warn:()=>kR,window:()=>le});L();L();var N4=G(),U$=(e=N4,t)=>{let r=B(t.localFile)?t.localFile:{},n=ut(r.designSystem||{});return nr(e,n)},z4={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},jd=(e,t=z4)=>{let r=U$(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,i=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(i=m)}let s=Qx({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:i,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});s&&(s.scopeSelector=n);let a=YR(s.font,s.files),l=s.useReset,c=s.useVariable,u=s.useFontImport,d=s.useSvgSprite,f=e.svg,p=s.useIconSprite,h=e.icons;if(u&&Ut(a),c&&(Ut({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS)){let m={};for(let y in s.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:s.CSS_MEDIA_VARS[y]}:m[y]=s.CSS_MEDIA_VARS[y];Ut(m)}l&&Ut(s.reset);let g=s.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];Ut(m)}return(f||d)&&AP(s.svg,{document:t.document}),(h||p)&&TP(s.icons,{document:t.document}),s},q$={},W4=(e,t=q$)=>{let r=U$(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,i=Qx({verbose:!1,...r});if(!t.preventInject){if(Ut({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS){let s={};for(let a in i.CSS_MEDIA_VARS)a.startsWith("@media")?s[a]={[o]:i.CSS_MEDIA_VARS[a]}:s[a]=i.CSS_MEDIA_VARS[a];Ut(s)}Ut(i.reset)}return i},H4=(e,t=q$)=>{Ut(e)};L();L();var MY=le&&le.location?le.location.host.includes("dev."):Sd();L();Go();var V4={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},U4={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},BY={...V4,router:U4};var q4={};$(q4,{A:()=>Aj,AssetPicture:()=>vI,Audio:()=>CI,Avatar:()=>qj,B:()=>UI,Block:()=>K$,Box:()=>XI,Br:()=>YI,Button:()=>Pj,ButtonSet:()=>Fj,COMPONENTS:()=>Y4,Caption:()=>DI,Checkbox:()=>uj,CheckboxHgroup:()=>fj,Circle:()=>gI,CircleButton:()=>Ij,Clickable:()=>cI,Data:()=>GI,Dialog:()=>Mj,DialogFooter:()=>Nj,DialogHeader:()=>Bj,Dropdown:()=>Zj,DropdownList:()=>Yj,DropdownParent:()=>Jj,DropdownParentFocus:()=>Qj,DropdownSiblingFocus:()=>eF,FileIcon:()=>kj,Flex:()=>Z$,Focusable:()=>uI,FocusableComponent:()=>fI,Footnote:()=>VI,Form:()=>oI,Grid:()=>J$,Gutter:()=>eI,H1:()=>OI,H2:()=>RI,H3:()=>PI,H4:()=>$I,H5:()=>II,H6:()=>jI,Headline:()=>WI,Hgroup:()=>rj,HgroupButton:()=>oj,HgroupRows:()=>nj,Hoverable:()=>lI,Hr:()=>ZI,I:()=>qI,Icon:()=>Sj,IconButton:()=>Dj,IconText:()=>_j,Iframe:()=>sI,Img:()=>rI,Inline:()=>X$,InlineFlex:()=>Y$,InlineGrid:()=>Q$,Input:()=>sj,Italic:()=>NI,KangorooButton:()=>jj,Li:()=>JI,Link:()=>pw,Notification:()=>rF,NumberInput:()=>lj,Ol:()=>ej,P:()=>FI,Picture:()=>yI,Radio:()=>pj,RadioHgroup:()=>hj,Range:()=>Kj,RouteLink:()=>Ej,RouterLink:()=>hw,SHAPES:()=>nd,Select:()=>Oj,Shape:()=>dw,Span:()=>TI,SquareButton:()=>$j,Strong:()=>LI,Subhead:()=>HI,Svg:()=>wI,Text:()=>EI,Textarea:()=>vj,TextareaWithButton:()=>xj,Theme:()=>mI,Title:()=>zI,Toggle:()=>mj,ToggleHgroup:()=>yj,Tooltip:()=>Wj,TooltipHidden:()=>Hj,TooltipParent:()=>Vj,U:()=>MI,Ul:()=>QI,Underline:()=>BI,Video:()=>_I,depth:()=>fw,getSystemGlobalTheme:()=>od});var G$={};$(G$,{Block:()=>K$,Flex:()=>Z$,Grid:()=>J$,Gutter:()=>eI,Inline:()=>X$,InlineFlex:()=>Y$,InlineGrid:()=>Q$});var K$={display:"block"},X$={display:"inline"},Z$={display:"flex"},Y$={display:"inline-flex"},J$={display:"grid"},Q$={display:"inline-grid"},eI={boxSize:"C1"},tI={};$(tI,{Img:()=>rI});L();var rI={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Le(e);return t&&t.src||e.src},srcset:e=>{let t=Le(e);return(t?rl(t):"")||e.srcset}}},nI={};$(nI,{Form:()=>oI});var oI={tag:"form"},iI={};$(iI,{Iframe:()=>sI});var sI={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},aI={};$(aI,{Clickable:()=>cI,Focusable:()=>uI,FocusableComponent:()=>fI,Hoverable:()=>lI});var G4={appearance:"none",cursor:"pointer",fontFamily:"inherit"},lI={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},cI={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},uI={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},fI={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:G4},dI={};$(dI,{Picture:()=>yI});var pI={};$(pI,{Theme:()=>mI,getSystemGlobalTheme:()=>od});var hI={};$(hI,{Circle:()=>gI,SHAPES:()=>nd,Shape:()=>dw,default:()=>K4,depth:()=>fw});L();var At=G(),fw={4:{boxShadow:`rgba(0,0,0,.10) 0 2${At.unit.default} 4${At.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${At.unit.default} 6${At.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${At.unit.default} 10${At.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${At.unit.default} 16${At.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${At.unit.default} 26${At.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${At.unit.default} 42${At.unit.default}`}},Wo=e=>xe(e.shapeDirectionColor)||xe(e.borderColor)||xe(e.backgroundColor)||xe(e.background),Yu=e=>{let t=ew.transition(e.transition,e);return t&&t.transition},nd={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Wo(e),transition:Yu(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:Wo(e),transition:Yu(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Wo(e),transition:Yu(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Yu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Wo(e)} 25%, transparent 25%), linear-gradient(315deg, ${Wo(e)} 25%, transparent 25%)`},"&:after":{background:Wo(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},dw={deps:{exec:De,getSpacingBasedOnRatio:zn,getMediaColor:lt},classlist:{shape:e=>e.deps.exec(nd[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=nd[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},gI={round:"100%"},K4=dw;L();var od=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},mI={deps:{depth:fw},classlist:{depth:e=>!Et(e.depth)&&e.deps.depth[e.depth]}},yI={deps:{getSystemGlobalTheme:od},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:od},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,i=n.getSystemGlobalTheme(e),s=(e.media||t).slice(1);return s===i?"(min-width: 0px)":s==="dark"||s==="light"?"(max-width: 0px)":o[s]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}},bI={};$(bI,{AssetPicture:()=>vI});L();var vI={tag:"picture",children:e=>{let t=Le(e);if(t)return nl(t,e.alt)}},xI={};$(xI,{Svg:()=>wI});var wI={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,i=e.spriteId||r&&r.useSvgSprite,s=e.call("exec",e.src,e);if(!i&&s)return s;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[s])return a(s);let c=Symbol.for(s),u=o[c];if(u&&o[u])return a(u);if(!s)return a("");if(typeof s=="string"&&!s.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${s}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${s}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<s.length;f++)d=(d<<5)-d+s.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:s}},{document:t.document,emotion:t.emotion}),a(u)}},SI={};$(SI,{Video:()=>_I});L();var _I={tag:"video",controls:!0,attr:{src:e=>{let t=Le(e);return t&&t.src||e.src}},children:e=>{let t=Le(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},kI={};$(kI,{Audio:()=>CI});L();var CI={tag:"audio",controls:!0,attr:{src:e=>{let t=Le(e);return t&&t.src||e.src}},children:e=>{let t=Le(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},AI={};$(AI,{B:()=>UI,Caption:()=>DI,Data:()=>GI,Footnote:()=>VI,H1:()=>OI,H2:()=>RI,H3:()=>PI,H4:()=>$I,H5:()=>II,H6:()=>jI,Headline:()=>WI,I:()=>qI,Italic:()=>NI,P:()=>FI,Span:()=>TI,Strong:()=>LI,Subhead:()=>HI,Text:()=>EI,Title:()=>zI,U:()=>MI,Underline:()=>BI});var EI={},TI={tag:"span"},OI={tag:"h1"},RI={tag:"h2"},PI={tag:"h3"},$I={tag:"h4"},II={tag:"h5"},jI={tag:"h6"},FI={tag:"p"},DI={tag:"caption"},LI={tag:"strong",fontWeight:"700"},MI={tag:"u"},BI={tag:"u"},NI={tag:"i"},zI={},WI={tag:"h6",fontSize:"B",fontWeight:500},HI={tag:"span",fontSize:"Z1"},VI={tag:"span",fontSize:"Z"},UI={tag:"b"},qI={tag:"i"},GI={tag:"data"},KI={};$(KI,{Box:()=>XI,Br:()=>YI,Hr:()=>ZI,Li:()=>JI,Ol:()=>ej,Ul:()=>QI});var X4=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=wr(t,e,{unpack:!1});r.__class=n},XI={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:X4},ZI={tag:"hr",margin:"C1 0"},YI={tag:"br"},JI={tag:"li"},QI={tag:"ul",childExtends:{extends:"Li"}},ej={tag:"ol",childExtends:{extends:"Li"}},tj={};$(tj,{Hgroup:()=>rj,HgroupButton:()=>oj,HgroupRows:()=>nj});var TO=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},rj={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:TO,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:TO,margin:"0",color:"paragraph"}},nj={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},oj={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},ij={};$(ij,{Input:()=>sj});var sj={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}},aj={};$(aj,{NumberInput:()=>lj});var lj={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}},cj={};$(cj,{Checkbox:()=>uj,CheckboxHgroup:()=>fj});var uj={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},fj={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},dj={};$(dj,{Radio:()=>pj,RadioHgroup:()=>hj});var pj={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},hj={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},gj={};$(gj,{Toggle:()=>mj,ToggleHgroup:()=>yj});var mj={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},yj={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}},bj={};$(bj,{Textarea:()=>vj,TextareaWithButton:()=>xj});var vj={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},xj={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}},wj={};$(wj,{FileIcon:()=>kj,Icon:()=>Sj,IconText:()=>_j});var Sj={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:i,verbose:s}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=v=>{let S=v[".isActive"];if(S)return v.call("exec",S.name||S.icon)},c=(v,S,k)=>{let{semanticIcons:E}=k&&k.designSystem,{toCamelCase:T}=k&&k.utils,w=u(v,S),j=T(w).split(/([a-z])([A-Z])/g),K=j[1]?j[0]:w.split(".")[0].split(" ")[0],Q=E&&E[K];if(Q){let W=w.includes(".")?"sfsymbols."+w.split(".").slice(1).join("."):"sfsymbols";return w=Q[W]||Q[w.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${w}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(v,S)=>{let{key:k}=v,E=v.call("exec",v.name||v.icon||k,v);return v.call("isString",E)&&E.includes("{{")&&(E=v.call("replaceLiteralsWithObjectFields",E)),v.call("isString",E)?E:k},d=u(e,t);if(d.includes(" ")){let v=d.split(" ");d=v[0]+v.slice(1).map(S=>S.charAt(0).toUpperCase()+S.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:s&&e.warn("Can't find icon:",d,y);let b=o[y],x=n&&n.src||e.src;Object.assign(e,{spriteId:i&&y,src:b||x||o.noIcon})},attr:{viewBox:"0 0 24 24"}},_j={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},kj={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},Cj={};$(Cj,{A:()=>Aj,Link:()=>pw,RouteLink:()=>Ej,RouterLink:()=>hw});var Z4=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:i,stopPropagation:s}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),s&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Yr)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",i)?i:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},pw={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Qf(e,e.href)||Qf(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:Z4},Aj={extends:"Link"},hw={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:i,stopPropagation:s}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),s&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Yr)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",i)?i:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},Ej={extends:[pw,hw]},Tj={};$(Tj,{Select:()=>Oj});var Oj={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}},Rj={};$(Rj,{Button:()=>Pj,ButtonSet:()=>Fj,CircleButton:()=>Ij,IconButton:()=>Dj,KangorooButton:()=>jj,SquareButton:()=>$j});var Pj={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},$j={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},Ij={extends:"SquareButton",round:"C"},jj={extends:"Button",childExtends:"IconText"},Fj={tag:"nav",display:"flex",childExtends:"SquareButton"},Dj={extends:["SquareButton","ClickableItem"],round:"Z"},Lj={};$(Lj,{Dialog:()=>Mj,DialogFooter:()=>Nj,DialogHeader:()=>Bj});var Mj={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Bj={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Nj={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}},zj={};$(zj,{Tooltip:()=>Wj,TooltipHidden:()=>Hj,TooltipParent:()=>Vj});L();var Wj={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>Mn(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},Hj={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},Vj={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}},Uj={};$(Uj,{Avatar:()=>qj});var qj={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`},Gj={};$(Gj,{Range:()=>Kj});var Kj={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:qa("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:qa("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}},Xj={};$(Xj,{Dropdown:()=>Zj,DropdownList:()=>Yj,DropdownParent:()=>Jj,DropdownParentFocus:()=>Qj,DropdownSiblingFocus:()=>eF});var Zj={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},Yj={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Jj={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Qj={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},eF={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}},tF={};$(tF,{Notification:()=>rF});var rF={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}},Y4=Object.assign({},G$,tI,nI,iI,aI,dI,bI,xI,hI,SI,kI,pI,AI,KI,tj,ij,aj,cj,dj,gj,bj,wj,Cj,Tj,Rj,Lj,zj,Uj,Gj,Xj,tF);L();L();L();L();Go();var id={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},J4=Object.create(null);for(let e in id)J4[id[e]]=e;var nv=Object.create(null);for(let e in id){let t=id[e];if(nv[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${nv[t]}"`);nv[t]=e}var Q4=0,ez=()=>`${Date.now().toString(36)}-${(Q4++).toString(36)}`,La=(e,t,r={})=>({id:ez(),ts:Date.now(),type:e,level:t,...r}),tz=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},sd=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:tz(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null,Xo=e=>e?.context?.analyze,rz={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},nz=(e,{category:t,type:r,level:n})=>o=>{let i=Xo(o);!i||!i.shouldCapture(t)||i.emit(La(r,n,{hook:e,element:sd(o)}))},OO=e=>(t,r)=>{let n=Xo(t);!n||!n.shouldCapture("state")||n.emit(La("state","debug",{hook:e,element:sd(t),changedKeys:r?.changedKeys||null}))},oz={name:"analyze",error(e,t){let r=Xo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(La("error","error",{hook:t?.hook||"error",element:sd(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Xo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(La("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Xo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Xo(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(La("update","debug",{hook:"update",element:sd(e),durationMs:r}))},beforeStateUpdate:OO("beforeStateUpdate"),stateUpdate:OO("stateUpdate")};for(let[e,t]of Object.entries(rz))oz[e]=nz(e,t);L();L();L();L();var NY=typeof le<"u"&&typeof le.document<"u";var zY=typeof le<"u"&&typeof le.document<"u";L();var WY=typeof le<"u"&&typeof le.document<"u";L();var HY=typeof le<"u"&&typeof le.document<"u";var rr=Object.create(null);rr.open="0";rr.close="1";rr.ping="2";rr.pong="3";rr.message="4";rr.upgrade="5";rr.noop="6";var of=Object.create(null);Object.keys(rr).forEach(e=>{of[rr[e]]=e});var bv={type:"error",data:"parser error"},nF=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",oF=typeof ArrayBuffer=="function",iF=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,gw=({type:e,data:t},r,n)=>nF&&t instanceof Blob?r?n(t):RO(t,n):oF&&(t instanceof ArrayBuffer||iF(t))?r?n(t):RO(new Blob([t]),n):n(rr[e]+(t||"")),RO=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function PO(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var ov;function iz(e,t){if(nF&&e.data instanceof Blob)return e.data.arrayBuffer().then(PO).then(t);if(oF&&(e.data instanceof ArrayBuffer||iF(e.data)))return t(PO(e.data));gw(e,!1,r=>{ov||(ov=new TextEncoder),t(ov.encode(r))})}var $O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ga=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<$O.length;e++)ga[$O.charCodeAt(e)]=e;var sz=e=>{let t=e.length*.75,r=e.length,n,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)i=ga[e.charCodeAt(n)],s=ga[e.charCodeAt(n+1)],a=ga[e.charCodeAt(n+2)],l=ga[e.charCodeAt(n+3)],u[o++]=i<<2|s>>4,u[o++]=(s&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c},az=typeof ArrayBuffer=="function",mw=(e,t)=>{if(typeof e!="string")return{type:"message",data:sF(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:lz(e.substring(1),t)}:of[r]?e.length>1?{type:of[r],data:e.substring(1)}:{type:of[r]}:bv},lz=(e,t)=>{if(az){let r=sz(e);return sF(r,t)}else return{base64:!0,data:e}},sF=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,aF="",cz=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((i,s)=>{gw(i,!1,a=>{n[s]=a,++o===r&&t(n.join(aF))})})},uz=(e,t)=>{let r=e.split(aF),n=[];for(let o=0;o<r.length;o++){let i=mw(r[o],t);if(n.push(i),i.type==="error")break}return n};function fz(){return new TransformStream({transform(e,t){iz(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{o=new Uint8Array(9);let i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var iv;function Ju(e){return e.reduce((t,r)=>t+r.length,0)}function Qu(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function dz(e,t){iv||(iv=new TextDecoder);let r=[],n=0,o=-1,i=!1;return new TransformStream({transform(s,a){for(r.push(s);;){if(n===0){if(Ju(r)<1)break;let l=Qu(r,1);i=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Ju(r)<2)break;let l=Qu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Ju(r)<8)break;let l=Qu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(bv);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Ju(r)<o)break;let l=Qu(r,o);a.enqueue(mw(i?l:iv.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(bv);break}}}})}var lF=4;function Ee(e){if(e)return pz(e)}function pz(e){for(var t in Ee.prototype)e[t]=Ee.prototype[t];return e}Ee.prototype.on=Ee.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ee.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Ee.prototype.off=Ee.prototype.removeListener=Ee.prototype.removeAllListeners=Ee.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};Ee.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};Ee.prototype.emitReserved=Ee.prototype.emit;Ee.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Ee.prototype.hasListeners=function(e){return!!this.listeners(e).length};var Fd=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Tt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),hz="arraybuffer";function cF(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var gz=Tt.setTimeout,mz=Tt.clearTimeout;function Dd(e,t){t.useNativeTimers?(e.setTimeoutFn=gz.bind(Tt),e.clearTimeoutFn=mz.bind(Tt)):(e.setTimeoutFn=Tt.setTimeout.bind(Tt),e.clearTimeoutFn=Tt.clearTimeout.bind(Tt))}var yz=1.33;function bz(e){return typeof e=="string"?vz(e):Math.ceil((e.byteLength||e.size)*yz)}function vz(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function uF(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function xz(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function wz(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let i=r[n].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}var Sz=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}},yw=class extends Ee{constructor(e){super(),this.writable=!1,Dd(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new Sz(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=mw(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=xz(e);return t.length?"?"+t:""}},_z=class extends yw{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};uz(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,cz(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=uF()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},fF=!1;try{fF=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var kz=fF;function Cz(){}var Az=class extends _z{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}},Zo=class sf extends Ee{constructor(t,r,n){super(),this.createRequest=t,Dd(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=cF(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=sf.requestsCount++,sf.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Cz,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete sf.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Zo.requestsCount=0;Zo.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",IO);else if(typeof addEventListener=="function"){let e="onpagehide"in Tt?"pagehide":"unload";addEventListener(e,IO,!1)}}function IO(){for(let e in Zo.requests)Zo.requests.hasOwnProperty(e)&&Zo.requests[e].abort()}var Ez=(function(){let e=dF({xdomain:!1});return e&&e.responseType!==null})(),Tz=class extends Az{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=Ez&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Zo(dF,this.uri(),e)}};function dF(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||kz))return new XMLHttpRequest}catch{}if(!t)try{return new Tt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var pF=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Oz=class extends yw{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=pF?{}:cF(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;gw(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&Fd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=uF()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},sv=Tt.WebSocket||Tt.MozWebSocket,Rz=class extends Oz{createSocket(e,t,r){return pF?new sv(e,t,r):t?new sv(e,t):new sv(e)}doWrite(e,t){this.ws.send(t)}},Pz=class extends yw{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=dz(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=fz();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let o=()=>{r.read().then(({done:s,value:a})=>{s||(this.onPacket(a),o())}).catch(s=>{})};o();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&Fd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},$z={websocket:Rz,webtransport:Pz,polling:Tz},Iz=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,jz=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function vv(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=Iz.exec(e||""),i={},s=14;for(;s--;)i[jz[s]]=o[s]||"";return r!=-1&&n!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Fz(i,i.path),i.queryKey=Dz(i,i.query),i}function Fz(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Dz(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,i){o&&(r[o]=i)}),r}var xv=typeof addEventListener=="function"&&typeof removeEventListener=="function",af=[];xv&&addEventListener("offline",()=>{af.forEach(e=>e())},!1);var lf=class cf extends Ee{constructor(t,r){if(super(),this.binaryType=hz,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=vv(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=vv(r.host).host);Dd(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=wz(this.opts.query)),xv&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},af.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=lF,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&cf.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",cf.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){let n=this.writeBuffer[r].data;if(n&&(t+=bz(n)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Fd(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let i={type:t,data:r,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(cf.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),xv&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=af.indexOf(this._offlineEventListener);n!==-1&&af.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};lf.protocol=lF;var Lz=class extends lf{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;lf.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;lf.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=t.name,this.emitReserved("upgradeError",d)}}))};function o(){r||(r=!0,c(),t.close(),t=null)}let i=u=>{let d=new Error("probe error: "+u);d.transport=t.name,o(),this.emitReserved("upgradeError",d)};function s(){i("transport closed")}function a(){i("socket closed")}function l(u){t&&u.name!==t.name&&o()}let c=()=>{t.removeListener("open",n),t.removeListener("error",i),t.removeListener("close",s),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",i),t.once("close",s),this.once("close",a),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}},hF=class extends Lz{constructor(e,t={}){let r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(n=>$z[n]).filter(n=>!!n)),super(e,r)}},VY=hF.protocol;function Mz(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=vv(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let o=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+t,n.href=n.protocol+"://"+o+(r&&r.port===n.port?"":":"+n.port),n}var gF={};$(gF,{Decoder:()=>Kz,Encoder:()=>Gz,PacketType:()=>te,isPacketValid:()=>Qz,protocol:()=>qz});var Bz=typeof ArrayBuffer=="function",Nz=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,mF=Object.prototype.toString,zz=typeof Blob=="function"||typeof Blob<"u"&&mF.call(Blob)==="[object BlobConstructor]",Wz=typeof File=="function"||typeof File<"u"&&mF.call(File)==="[object FileConstructor]";function bw(e){return Bz&&(e instanceof ArrayBuffer||Nz(e))||zz&&e instanceof Blob||Wz&&e instanceof File}function uf(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(uf(e[r]))return!0;return!1}if(bw(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return uf(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&uf(e[r]))return!0;return!1}function Hz(e){let t=[],r=e.data,n=e;return n.data=wv(r,t),n.attachments=t.length,{packet:n,buffers:t}}function wv(e,t){if(!e)return e;if(bw(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=wv(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=wv(e[n],t));return r}return e}function Vz(e,t){return e.data=Sv(e.data,t),delete e.attachments,e}function Sv(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Sv(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Sv(e[r],t));return e}var Uz=W5(_3(),1),_v=(0,Uz.default)("socket.io-parser"),yF=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],qz=5,te;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(te||(te={}));var Gz=class{constructor(e){this.replacer=e}encode(e){return _v("encoding packet %j",e),(e.type===te.EVENT||e.type===te.ACK)&&uf(e)?this.encodeAsBinary({type:e.type===te.EVENT?te.BINARY_EVENT:te.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===te.BINARY_EVENT||e.type===te.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),_v("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=Hz(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},Kz=class bF extends Ee{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===te.BINARY_EVENT;n||r.type===te.BINARY_ACK?(r.type=n?te.EVENT:te.ACK,this.reconstructor=new Xz(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(bw(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(te[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===te.BINARY_EVENT||n.type===te.BINARY_ACK){let i=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let s=t.substring(i,r);if(s!=Number(s)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(s);if(!vF(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let i=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(i,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let i=r+1;for(;++r;){let s=t.charAt(r);if(s==null||Number(s)!=s){--r;break}if(r===t.length)break}n.id=Number(t.substring(i,r+1))}if(t.charAt(++r)){let i=this.tryParse(t.substr(r));if(bF.isPayloadValid(n.type,i))n.data=i;else throw new Error("invalid payload")}return _v("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case te.CONNECT:return ad(r);case te.DISCONNECT:return r===void 0;case te.CONNECT_ERROR:return typeof r=="string"||ad(r);case te.EVENT:case te.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&yF.indexOf(r[0])===-1);case te.ACK:case te.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Xz=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=Vz(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Zz(e){return typeof e=="string"}var vF=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function Yz(e){return e===void 0||vF(e)}function ad(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jz(e,t){switch(e){case te.CONNECT:return t===void 0||ad(t);case te.DISCONNECT:return t===void 0;case te.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&yF.indexOf(t[0])===-1);case te.ACK:return Array.isArray(t);case te.CONNECT_ERROR:return typeof t=="string"||ad(t);default:return!1}}function Qz(e){return Zz(e.nsp)&&Yz(e.id)&&Jz(e.type,e.data)}function Vt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var e6=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),xF=class extends Ee{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Vt(e,"open",this.onopen.bind(this)),Vt(e,"packet",this.onpacket.bind(this)),Vt(e,"error",this.onerror.bind(this)),Vt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,o;if(e6.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let i={type:te.EVENT,data:t};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let l=this.ids++,c=t.pop();this._registerAckCallback(l,c),i.id=l}let s=(n=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||n===void 0?void 0:n.writable,a=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!s||(a?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){var r;let n=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===e&&this.sendBuffer.splice(s,1);t.call(this,new Error("operation has timed out"))},n),i=(...s)=>{this.io.clearTimeoutFn(o),t.apply(this,s)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((r,n)=>{let o=(i,s)=>i?n(i):r(s);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...o)=>(this._queue[0],n!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(n)):(this._queue.shift(),t&&t(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:te.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case te.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case te.EVENT:case te.BINARY_EVENT:this.onevent(e);break;case te.ACK:case te.BINARY_ACK:this.onack(e);break;case te.DISCONNECT:this.ondisconnect();break;case te.CONNECT_ERROR:this.destroy();let t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:te.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:te.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let r of t)r.apply(this,e.data)}}};function ti(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ti.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};ti.prototype.reset=function(){this.attempts=0};ti.prototype.setMin=function(e){this.ms=e};ti.prototype.setMax=function(e){this.max=e};ti.prototype.setJitter=function(e){this.jitter=e};var kv=class extends Ee{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,Dd(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new ti({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||gF;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new hF(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=Vt(t,"open",function(){r.onopen(),e&&e()}),o=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),e?e(s):this.maybeReconnectOnOpen()},i=Vt(t,"error",o);if(this._timeout!==!1){let s=this._timeout,a=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),t.close()},s);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(n),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Vt(e,"ping",this.onping.bind(this)),Vt(e,"data",this.ondata.bind(this)),Vt(e,"error",this.onerror.bind(this)),Vt(e,"close",this.onclose.bind(this)),Vt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Fd(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new xF(this,e,t),this.nsps[e]=r),r}_destroy(e){let t=Object.keys(this.nsps);for(let r of t)if(this.nsps[r].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}},ua={};function av(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=Mz(e,t.path||"/socket.io"),n=r.source,o=r.id,i=r.path,s=ua[o]&&i in ua[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s,l;return a?l=new kv(n,t):(ua[o]||(ua[o]=new kv(n,t)),l=ua[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(av,{Manager:kv,Socket:xF,io:av,connect:av});L();L();L();M4(KN);D();var wF=(e,t,r)=>(n={})=>{let{data:o}=n,{schema:i}=n;o&&(o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([s,a])=>{r[s]&&typeof r[s]=="object"?s==="designSystem"?jd(a):sn(r[s],a):r[s]=a}),i&&(r.schema=i))},SF=(e,t,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let i=kT(r,o);if(i.has("state")&&t.update(r.state),["pages","components","snippets","functions","assets"].some(s=>i.has(s))){let{pathname:s,search:a,hash:l}=r.window.location;e.call("router",s+a+l,e.__ref.root,{},{scrollToTop:!1})}i.has("designSystem")&&jd(r.designSystem)};var t6={success:"green",error:"red",warning:"yellow"},_F=(e,t,r)=>{if(e.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected&&t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},kF={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:t6[e.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(t,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(t,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(t,r,n)}}),IconText:null,childrenAs:"state",children:({state:e})=>e.notifications}};var r6=!1,n6=()=>r6?"http://localhost:8080":"https://api.symbols.app",o6=e=>{let t=e&&e.editor&&e.editor.socketUrl||e&&e.settings&&e.settings.socketUrl;return typeof t=="string"&&t?{mode:"collab",baseUrl:t}:e&&e.editor&&e.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},i6=async e=>{try{let t=e||n6(),r=await C.fetch(`${t}/service-token`,{method:"GET"}),n;try{let o=await r.clone().json();if(o&&typeof o.token=="string")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},EF=(e,t,r,n)=>{e.on("snapshot",wF(t,r,n)),e.on("ops",SF(t,r,n)),e.on("clients",o=>{n.editor?.verbose&&_F(o,t,r)}),e.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},s6=async(e,t,r,n)=>{let o=await i6(n);if(!o)return console.warn("[sync] no service token \u2014 collab disabled"),null;let i=r.key;if(!i)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let s=r.editor?.projectId||null,a=Fo(n,{path:"/collab-socket",transports:["websocket"],auth:{token:o,projectId:s,projectKey:i,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),EF(a,e,t,r),a},a6=(e,t,r)=>{let n=Fo({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),EF(n,e,t,r),n.on("reload",()=>{typeof C<"u"&&C.location&&C.location.reload()}),n},l6=async(e,t,r)=>{let{mode:n,baseUrl:o}=o6(r);return n?n==="collab"?s6(e,t,r,o):n==="runner"?a6(e,t,r):null:null},c6={onInit:l6};var TF=e=>typeof e>"u",CF=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),AF=e=>e?.editor?.runtime==="runner",OF=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},RF={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!TF(r.liveSync)?r.liveSync:CF(t)||AF(t))&&(CF(t)&&!AF(t)&&!t?.key||OF(e,c6))}},PF={name:"notifications",beforeCreate(e,t){if(!t)return;let r=TF(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&OF(e,kF)}};D();function $F(e){return A(e)?e:F(e)?e.find(t=>A(t)):""}function xw(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&$F(e.extends),n=e.parent&&e.parent.childExtends&&$F(e.parent.childExtends);return(t||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function Ld(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=xw(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?Ld(e.parent):o&&(t[o]||r[o])?e:Ld(e.parent)}var u6=(e,t,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&e.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{e.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(e.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),e.Inspector.state.update({area:!1}))}},vw={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:u6,onMousemove:(e,t,r)=>{let n=e.target.ref,o=Ld(n),i=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return i.update({area:!1});let s=xw(o),a=c=>{i.update({area:c,focusKey:s})},l=()=>{if(e.altKey&&e.shiftKey){let{x:c,y:u,width:d,height:f}=o.node.getBoundingClientRect(),p={x:c,y:u,width:d,height:f};if(!i.area)return a(p);i.area.x!==p.x&&a(p)}else i.area&&i.update({area:!1})};window.requestAnimationFrame(()=>{l(),window.requestAnimationFrame(l)})},onMousedown:(e,t,r)=>{if(!r.debugging)return;let n=e.target.ref,o=Ld(n);if(!o)return;let i=xw(o);if(!i)return;let s=n.context.editor;if(s&&s.onInspect)return s.onInspect(i,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${i}`});return n.context.socket?.emit&&n.context.socket.emit("route",a),e.preventDefault(),e.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(e,t)=>!(t.area&&t.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:e})=>{let{components:t}=e;if(_(t)){let{Content:r,...n}=t;for(let o in n)hu[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(e,t,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,i;if(!o)i="display: none !important";else if(n){let{x:s,y:a,width:l,height:c}=n;i=`
105
+ src: ${o};`},za=(e,t,r,n)=>`@font-face {${Kv(e,t,r,n)}
106
+ }`,md=(e,t,r)=>Object.keys(t).map(n=>{let{url:o,fontWeight:s,fontStyle:i,fontDisplay:a,fontStretch:l}=t[n],c=Array.isArray(o)?o.map(u=>mr(u,r)||u):mr(o,r)||o;return Kv(e,c,s,{fontStyle:i,fontDisplay:a,fontStretch:l})}),VD=e=>Object.keys(e).map(t=>md(t,e[t].value)),xO=(e,t,r)=>{if(t&&t.isVariable){let o=mr(t.url,r)||t.url;return qv(o)?Gv(o):za(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return md(e,t,r).map(bO);let n=Array.isArray(t.url)?t.url.map(o=>mr(o,r)||o):mr(t.url,r)||t.url;return za(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},vO=(e,t)=>Object.keys(e).map(r=>xO(r,e[r].value,t));N();N();N();var _O={};Y(_O,{animation:()=>lL,breakpoints:()=>iL,class:()=>hL,color:()=>JD,devices:()=>aL,document:()=>sL,font:()=>WD,fontFace:()=>GD,fontFamily:()=>HD,fontFamilyTypes:()=>qD,gradient:()=>ZD,grid:()=>pL,icons:()=>tL,media:()=>KD,reset:()=>gL,semanticIcons:()=>rL,sequence:()=>yd,shadow:()=>eL,spacing:()=>YD,svg:()=>cL,svgData:()=>uL,templates:()=>fL,theme:()=>QD,timing:()=>oL,typography:()=>wO,unit:()=>zD,vars:()=>mL});var yd={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4},zD={default:"em"},UD={browserDefault:16,base:16,type:"font-size",ratio:yd["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},wO=UD,WD={},HD={},qD={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},GD={},KD={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"},XD={base:wO.base,type:"spacing",ratio:yd.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},YD=XD,JD={},ZD={},QD={},eL={},tL={},rL={},nL={default:150,base:150,type:"timing",ratio:yd["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},oL=nL,sL={},iL={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},aL={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]},lL={},cL={},uL={},fL={},dL={},pL=dL,hL={},gL={},mL={},FA={},jA={},Mu=_O,Wu={},SO=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in Mu){let t=e.toLowerCase();Wu[t]=Mu[e];let r=SO(t);r!==t&&(Wu[r]=Mu[e]),t!==e&&(Wu[e]=Mu[e])}var Xv={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:FA,cssMediaVars:jA,CSS_VARS:FA,CSS_MEDIA_VARS:jA,_scratchConfig:!0,...Wu},yL=at(Xv),Nf={active:"0",0:Xv};var Ta=[],bL=e=>{e&&e._scratchConfig&&Ta.push(e)},xL=()=>{Ta.pop()},H=e=>Ta.length?Ta[Ta.length-1]:Nf[e||Nf.active]||Xv,vL=e=>{if(M(e))return Nf.active="1",Nf[1]=tr(e,at(yL)),e};var Hr={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},Yv=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=kO.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Qa=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},kO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Jv=(e,t)=>{let{base:r,type:n,unit:o}=t,s=kO.has(o)?"rem":o,i=(Uv(s)?1:r)+s;if(e===0)return i;let a="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${a}-ratio`;if(e>0){let c=Hr[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Hr[e+1],u=Math.abs(e),d=Math.pow(EO,2*u),f=Hr[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},CO=(e,t,r,n)=>{let{type:o}=n,s=e===2&&t.length===2?e+1:e,i=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${i+s}))`},Zv=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,s=(n+o)/2;return[n,s,o]},AO=(e,t)=>Zv(e,t).map(r=>r/e),Qv=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,c,[u,d,f]=Zv(o,s);l>16?c=[u,d,f]:c=[u,f],c.forEach((p,h)=>{let g=~~(p/n*1e3)/1e3,m=i+(h+1),y=a+(h+1)/10,b=CO(h+1,c,i,t),v={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};Yv(v,t)})},EO=1.618,_L=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(EO,2*n);return Math.max(o,s)},br=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let l=0;l<=i;l++){let c=o[1]-l,u=Hr[c],d=_L(c,r,n),f=~~(d/r*100)/100,p=a+u,h=Jv(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};Yv(g,e),s&&Qv(g,e)}return e},wL=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=R(t)?t:Hr[t],a=R(t)?Object.entries(Hr).find(([,h])=>h===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,d="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,f=Jv(a,e),p={key:i,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return Yv(p,l),s&&Qv(p,l),l},e0=(e="A",t)=>{let r=H(),{unit:n}=r;if(R(e)&&Ue(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Wv.some(m=>e.includes(m))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let c=`--${t.varPrefix?t.varPrefix+"-":""}${dd(t.type.replace(".","-"))}-`,u=e.toUpperCase(),d=u.slice(0,1)==="-"?"-":"",f=d?u.slice(1):u,p="";f.includes("_")&&(p="_"+f.split("_")[1].toLowerCase(),f=f.split("_")[0]);let h=m=>a.test(m)?`var(${c}${m}${p})`:m;if(f.includes("+")){let[m,y]=f.split("+"),b=`${h(m)} + ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("*")){let[m,y]=f.split("*"),b=`${h(m)} * ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("-")){let[m,y]=f.split("-"),b=`${h(m)} - ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}if(!o[f]&&f.length===2&&(r.verbose&&console.warn(f,"- value is not found because `subSequence` is set to false"),f=f.slice(0,1)),i||r.useVariable){let m=`var(${c}${f}${p})`;return d?`calc(${m} * -1)`:m}let g=o?o[f]:null;return g?s==="ms"||s==="s"?d+g.val+s:d+g.scaling+s:console.warn("can't find",o,f)},OO=(e,t)=>{if(!["+","-","*","/",","].filter(n=>e.includes(n+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(n=>{let o=n.trim();return!o||["+","-","*","/",","].includes(o)?n:e0(o,t)}).join("")},Ua=(e,t,r,n)=>{if(typeof e!="string")return H().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=Qa(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=OO(e,r):e=e0(e,r),{[t]:n?`${n}(${e})`:e}},TO=(e,t)=>Hr[e-t],RO=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=TO(t,o);return r[s]})};N();var SL=(e,t)=>{let r=H(),{cssVars:n}=r;ce(e.value)||(n[e.var]=e.value)},t0=(e,t,r)=>{let n=H(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,c="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${c}-base`]=i,e[`${c}-unit`]=s;let u=`${c}-ratio`;e[u]=a;let[d,f,p]=AO(i,a);e[`${c}-sub-ratio-1`]=`calc(var(${c}-ratio) * ${d/a})`,e[`${c}-sub-ratio-2`]=`calc(var(${c}-ratio) * ${f/a})`,e[`${c}-sub-ratio-3`]=`calc(var(${c}-ratio) * ${p/a})`},PO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),bd=(e,t={})=>{let r=H(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=PO.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||t0(s,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=p,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=p:(s[f.variable+"_default"]=p,s[f.variable]=`var(${f.variable+"_default"})`)}},Bf=(e,t,r={})=>{let n=H(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=PO.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),t0(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],v=p[y]+u;g[b.variable+"_default"]=v,g[b.variable]=v}return}for(let g in f){let m=f[g],y=(Uv(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};N();var $O=Ka(),wb=e=>{let t=H(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},kL=e=>{let t=e&&(e.default||e);if(!R(t))return $O&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((o,s)=>{let[i,a]=s.split("=");return o[i]=a.replace(/['"]/g,""),o},{}):{}},CL=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},DA=new Set,IO=(e,t)=>{let r=t&&t.default?t.default:t;if(!R(r))return $O&&!DA.has(e)&&(DA.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=kL(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,a=CL(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return a=a.replace(/width="[^"]*"/,""),a=a.replace(/height="[^"]*"/,""),a=a.replace("</svg","</symbol"),a=OL(a),a},AL="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",EL=new RegExp(`<(${AL})\\b([^>]*?)\\s*/>`,"g"),OL=e=>e.replace(EL,"<$1$2></$1>"),FO={};Y(FO,{appendSVGSprite:()=>XO,appendSvgIconsSprite:()=>JO,applyDocument:()=>KO,applyHeadings:()=>BO,applyReset:()=>QO,applySpacingSequence:()=>WO,applyTimingSequence:()=>GO,applyTypographySequence:()=>VO,checkIfBoxSize:()=>UO,getColor:()=>Pe,getFontFamily:()=>MO,getFontSizeByKey:()=>zO,getMediaColor:()=>_t,getMediaTheme:()=>qr,getShadow:()=>qO,getSpacingBasedOnRatio:()=>Ho,getSpacingByKey:()=>ze,getTheme:()=>r0,getTimingByKey:()=>gr,getTimingFunction:()=>Rn,runThroughMedia:()=>NO,setColor:()=>Ra,setFont:()=>LO,setFontFamily:()=>Cb,setGradient:()=>Pa,setMediaTheme:()=>n0,setSVG:()=>s0,setShadow:()=>$a,setSvgIcon:()=>YO,setTheme:()=>jO,splitSpacedValue:()=>HO});N();var Pe=(e,t,r)=>{let n=r||H();if(!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(W(e))[o,s,i]=e;else{let d=Za(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(i&&!c[i]&&(u=Oa(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},_t=(e,t,r)=>{let n=r||H();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;let o;if(W(e))o=e[0];else{let c=Za(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:s,gradient:i}=n,a=s[o]||i[o],l=M(a);if(l&&a.value)return Pe(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return Pe(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=Pe(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},Ra=(e,t,r)=>{let n=H();if(R(e)&&Ue(e)){let h=e.slice(2);if(e=Pe(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=h.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(R(m)||W(m)||M(m))&&(n.color[g[0]]=Ra(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",v=g[2];v&&(y=Oa(y,v)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let v=In(g[0]);v&&v.length>=3?e=`rgba(${Oa(v.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(W(e)&&(e={"@light":e[0],"@dark":e[1]}),M(e)){let h={};for(let g in e)h[g]=Ra(e[g],t,g.slice(0,1)==="@"?g.slice(1):g);if(n.useVariable){let g=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,m,y={};for(let b in h){if(b.charCodeAt(0)!==64)continue;let v=b.slice(1),x=h[b],_=x&&(x.value||x);!_||typeof _!="string"||(y[v]=_,(v==="light"||m===void 0)&&(m=_))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let v=`[data-theme="${b}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b],b==="light"||b==="dark"){let x=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b]}}h.var=g}}return h}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),s=e.value||e;if(R(s)&&s.includes(".")&&!s.includes("(")){let[h,g]=s.split("."),m=n.color[h];m&&m.rgb&&(s=`rgba(${m.rgb}, ${parseFloat("0."+g)||1})`)}if(R(s)&&!s.includes("(")&&!s.startsWith("#")){let h=Za(s);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(R(g)||W(g)||M(g))&&(n.color[h.name]=Ra(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=Oa(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;s=`rgba(${y}, ${b})`}}}let i=In(s),[a,l,c,u=1]=i,d=parseFloat(u.toFixed(2)),f=`${a}, ${l}, ${c}`,p=`rgba(${f}, ${d})`;return n.useVariable&&(n.cssVars[o]=p),{var:o,rgb:f,alpha:d,value:p}},Pa=(e,t,r)=>{let n=H();if(R(e)&&Ue(e)&&(e=Pe(e.slice(2))),W(e))return{"@light":Pa(e[0],t,"light"),"@dark":Pa(e[0],t,"dark")};if(M(e)){let s={};for(let i in e)s[i]=Pa(e[i],t,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[o]=e.value||e),{var:o,value:e.value||e}};N();var TL=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),LA=["color","Color","background","Background","fill","Fill","stroke","Stroke"],RL=e=>{for(let t=0;t<LA.length;t++)if(e.includes(LA[t]))return!0;return!1},xd=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(i=>{let a=["color","Color","background","border"].some(l=>i.includes(l));return t[i]=a?Pe(e[i]):e[i]}),t},ca=e=>(e.value||(e.value=xd(e)),e.value),r0=(e,t)=>{let r=H();if(r.useVariable)return qr(e,t);let n=r.theme;if(R(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return ca(i);e=[o,s||t]}}if(ce(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return ca(a[s]);if(i&&i[s])return ca(i[s]);if(l&&l[s])return ca(l[s])}else if(M(e))return xd(e)},PL=(e,t,r)=>{if(M(t))e.variants.inverse.value=xd(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},$L=(e,t,r,n)=>{let o=r0(r);n[`&:${t}`]=o,M(r)&&!r.value&&(r.value=o)},IL=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return $L(e,n,o,t),e}),e):void 0},FL=(e,t,r,n)=>{let o=r0(r);n[`@media (prefers-color-scheme: ${t})`]=o,M(r)&&!r.value&&(r.value=o)},jL=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&FL(e,n,o,t),n==="inverse"&&PL(e,o,t),e}),e):void 0},DL=(e,t)=>{let r=H(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let s=n[o];return R(s)?n[o]=r.theme[s]:ca(n[o]),e}),e):void 0},jO=(e,t)=>{let r=H();if(r.useVariable)return n0(e,t);let{state:n,media:o,helpers:s}=e,i=xd(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return IL(e,i),jL(e,i),DL(e,i),{var:a,value:i,state:n,media:o,helpers:s}},Sb=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&RL(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=Pe(f,`@${d}`);p!==void 0&&R(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!TL.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>ce(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=Sb(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=Sb(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let f=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,p=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,h;for(let g in e){if(l.has(g))continue;let m=e[g]?.[c];if(m===void 0)continue;let y=Pe(m,`@${g}`);if(y===void 0)continue;(p&&g===p||!p&&(g==="light"||h===void 0))&&(h=y);let b=`[data-theme="${g}"]`;if(o[b]||(o[b]={}),o[b][f]=y,g==="dark"||g==="light"){let v=`@media (prefers-color-scheme: ${g})`;o[v]||(o[v]={}),o[v][f]=y}}h!==void 0&&(n[f]=h),i[c]=`var(${f})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},n0=(e,t,r,n)=>{let o=H(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(ce(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&ce(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=Sb(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=n0(u,t,l,n||d)}else if(!a){let d=Pe(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],p=f.length?"-"+f.join("-"):"",h=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=d),i[l]=`var(${h})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(R(e)&&Ue(e)){let l=o.theme[e.slice(2)];return qr(l,n)}return i},kb=e=>{let t=H(),r={};for(let n in e){let o=n.slice(0,1);if(ce(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=kb(e[n]):o==="."&&(r[`&${n}`]=kb(e[n]))}else r[n]=e[n]}return r},DO=(e,t)=>{let r=t.shift();return e[r]?DO(e[r],t):e},MA=(e,t)=>W(t)?DO(e,t):R(t)&&e[t]?e[t]:e,qr=(e,t)=>{let r=H();if(R(e)&&Ue(e)&&(e=qr(e.slice(2))),!e||!R(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=W(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=MA(s,o):s&&t&&(s=MA(s,t)),kb(s)};N();N();var LO=(e,t)=>{let r=H(),n=`--font-${t}`;if(!e||W(e)&&!e[0])return;let o;if(e.isVariable){let s=mr(e.url,r.files)||e.url;qv(s)?o=Gv(s):o=za(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=md(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>mr(i,r.files)||i):mr(e.url,r.files)||e.url;o=za(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},MO=(e,t)=>{let r=H(),{fontFamily:n}=r;return Hv(t||n,e)},Cb=(e,t)=>{let r=H(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),M(s)&&(s=Ja(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};N();var NO=e=>{let t=H(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;it(i,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,v=n[l],x="@media "+(v==="print"?`${v}`:`screen and ${v}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){it(i,{sequence:{},scales:{},vars:{}}),br(i),Bf(e,o);continue}it(i,{sequence:{},scales:{},templates:{},vars:{}}),br(i),Bf(e,o)}},BO=e=>{let t=H();if(e.h1Matches){let r=e.unit,n=RO(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},VO=()=>{let e=H(),{typography:t}=e;br(t),BO(t),bd(t),NO(t)},zO=e=>{let t=H(),{typography:r}=t;return Ua(e,"fontSize",r)};N();N();var LL=e=>{let t=H().spacing||{},r=parseFloat(e.spacingRatio),n={...t,ratio:Number.isFinite(r)?r:t.ratio,sequence:{},scales:{}};return br(n),n},ML=e=>{for(let t in e){let r=e[t];if(t.slice(0,1)!=="@")continue;let{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c}=e;it(r,{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),br(r),Bf(e,t)}},UO=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},WO=()=>{let e=H(),{spacing:t}=e;br(t),bd(t),ML(t)},NL=e=>{let t=H(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:br(e)},ze=(e,t="padding",r,n)=>{let o=NL(r);if(R(e)&&!n&&e.includes("(")){let i=Qa(e);n=i[0],e=i[1]}let s=n?[e]:Ja(e);if(W(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>Ua(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return Ua(e,t,o,n)}},Ho=(e,t,r,n)=>{let o=H(),{spacing:s}=o,i=r||e[t];if(!n&&R(i)&&i.includes("(")){let a=Qa(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=LL(e);return ze(i,t,a,n)}return ze(i,t,s,n)},HO=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Wv.some(s=>e.includes(s));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};N();var $a=(e,t,r,n)=>{let o=H();if(W(e))return{"@light":$a(e[0],t,"light"),"@dark":$a(e[1],t,"dark")};if(M(e)){let i={};for(let a in e)i[a]=$a(e[a],t,a.startsWith("@")?a.slice(1):a);return i}R(e)&&!Fn.test(e)&&(e=gd(e).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let l=Pe(a);if(Go(l))return l;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let c=ze(a,"shadow");return c&&c.shadow?c.shadow:a}).join(" "))).join(", "));let s=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=e),{var:s,value:e}},qO=(e,t)=>{let r=H();if(t||(t=r.globalTheme),!R(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;let[n]=W(e)?e:e.split(" "),o=r.shadow[n],s=M(o);if(!o)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(o[t])return o[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(s&&o.value)return o.value;if(s){let i={};for(let a in o){let l=r.media[a.slice(1)],c="@media "+(l==="print"?`${l}`:`screen and ${l}`);i[c]=o.value}return i}return r.verbose&&console.warn("Can't find color",e),e};N();var GO=()=>{let e=H(),{timing:t}=e;br(t),bd(t)},Rn=e=>{let t=H(),{timing:r}=t;return r[e]||r[fd(e)]||e},gr=(e,t="timing")=>{let r=H(),{timing:n}=r;return Ua(e,t,n)};N();var KO=()=>{let e=H(),{document:t,fontFamily:r,theme:n,typography:o}=e;return it(t,{theme:n.document,fontFamily:Hv(r),fontSize:o.base,lineHeight:o.lineHeight})};N();var o0={document:be},s0=(e,t)=>{let r=H();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?IO(t,e):e},XO=(e,t=o0)=>{let r=H(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];ZO(n,t)},YO=(e,t)=>{let r=H();return r.useIconSprite&&!r.semanticIcons?.[t]?s0(e,t):e},JO=(e,t=o0)=>{let r=H(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];ZO(n,t)},ab=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},BL=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,o=new r().parseFromString(n,"image/svg+xml");return o.querySelector("parsererror")?null:o.documentElement}return null},NA=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},ZO=(e,t=o0)=>{let r=H(),n=t.document||be;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),wb(e);let o=n.querySelector("#svgSprite"),s=wb(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=BL(n,s);if(o)if(a)NA(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=ab(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=ab(n);l&&l.nodeType&&(NA(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=ab(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};N();var QO=(e={})=>{let t=H(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?qr("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?qr("document"):{};if(r.html&&$n(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return tr(it(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};N();var VL=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),zL=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),UL=e=>VL.has(e),An=e=>{let t=e+"";if(Fn.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ue(n))return`var(${n})`;if(UL(n)||/^\d/.test(n)||n==="0")return n;let o=Pe(n);if(Go(o))return o;let s=ze(n,"border");return s&&s.border?s.border:n}).join(" ")},WL=e=>Fn.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(Ue(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=Pe(t);return Go(r)?r:t}).join(" "),HL=(e,t)=>qO(e,t),BA=(e,t)=>Fn.test(e)?e:gd(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ue(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Pe(n);if(Go(o)){let i=_t(n,t);return M(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=ze(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),eT=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",i=gd(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||zL.has(l)||l==="transparent"||Fn.test(l))return l;let c=Pe(l);return Go(c)?c:l}).join(" ")));return n+i.join(", ")+s},qL=(e,t)=>{let r=H();return e.split(", ").map(n=>Ue(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?eT(n,t):r.gradient[e]?{backgroundImage:_t(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Za(n)?`url(${n})`:n).join(" ")},GL=e=>R(e)&&e.split(" ").map(t=>ze(t,"gap").gap).join(" "),KL=e=>{let t=e.split(" ");return t.length?t.map(r=>Ue(r)?`var(${r})`:r.length<3||r.includes("ms")?gr(r).timing||r:Rn(r)?Rn(r):r).join(" "):e},VA=(e,t,r)=>{if(R(e))return e.split(",").map(n=>gr(n).timing||n).join(",")},XL=e=>{let t=e.split(",");if(t.length)return t.map(KL).join(",")};function Re(e,t,r={},n={}){let o=Ne.call(this,t||r[e]);if(o==null)return;let s;if(R(o)){if(o.includes("(")){let l=Qa(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=UO(e);!i&&a&&!n.ratio&&(o=HO(o))}return n.ratio?Ho(r,e,o,s):ze(o,e,void 0,s)}var se=(e,t=null,r)=>Re(e,t,r,{ratio:!0}),zA=(e,t,r)=>{if(R(e))return{borderRadius:e.split(" ").map((n,o)=>Ho(t,r,n)[r]).join(" ")}};N();var YL=(e,t)=>{let r=H(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},xt=e=>e,UA={color:Ra,gradient:Pa,font:LO,fontFamily:Cb,fontfamily:Cb,theme:jO,icons:YO,semanticIcons:xt,semanticicons:xt,svg:s0,svgData:xt,typography:xt,shadow:$a,spacing:xt,media:xt,grid:xt,class:xt,timing:xt,reset:xt,unit:xt,animation:xt,vars:YL},JL=(e,t,r)=>{let n=H(),o=SO(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=UA[o]||UA[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},ZL=(e,t)=>{let r=H(),n=e.toLowerCase();return Object.keys(t).sort((o,s)=>{let i=M(t[o])||W(t[o])?1:0,a=M(t[s])||W(t[s])?1:0;return i-a}).forEach(o=>{try{return JL(n,t[o],o)}catch(s){r.verbose&&console.warn("Error setting",n,"value",t[o],o,s)}}),r[n]||r[e]};var QL={},i0=(e,t=QL)=>{let r=t.config||H(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=vL(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let b=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),v=b&&b.defaultView||(typeof window<"u"?window:null),x=b&&(r.themeRoot||b.documentElement);if(x&&typeof x.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")x.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?x.style.colorScheme=r.globalTheme:x.style.colorScheme="light dark";else if(v&&v.matchMedia){let F=$=>{x.setAttribute("data-theme",$.matches?"dark":"light")},w=v.matchMedia("(prefers-color-scheme: dark)");if(F(w),x.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=F;try{w.addEventListener("change",F)}catch{w.addListener(F)}}}else x.setAttribute("data-theme","light"),x.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let _=Object.keys(y),C=new Set(_);if(_.forEach(F=>{let w=F.toLowerCase();w!==F&&C.has(w)&&tr(y[w],y[F])}),_.map(F=>{let w=F.toLowerCase();if(!(w!==F&&C.has(w)))return ZL(F,y[F])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{VO()}catch(F){r.verbose&&console.warn("Error applying typography sequence",F)}if(y.spacing)try{WO()}catch(F){r.verbose&&console.warn("Error applying spacing sequence",F)}if(y.timing)try{GO()}catch(F){r.verbose&&console.warn("Error applying timing sequence",F)}KO();let E=QO();return E&&(r.reset=E),r};var eM=null,tM=null,rM=null;function nM(e){e.batchAtomicCss&&(tM=e.batchAtomicCss),e.compoundCssClass&&(rM=e.compoundCssClass)}function oM(){try{let e=H();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}function Hu(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}var WA=new WeakMap;function ua(e,t){let r=tT(t);if(!r)return;let n=WA.get(r);if(n||(n=new Set,WA.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var HA=new WeakMap;function tT(e){let t=e||oM();if(!t||!t.head)return null;let r=HA.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return HA.set(t,o),eM=o,o}function Bt(e){if(tT(),typeof e=="string"){ua(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:Hu(l);a+=`${c}:${i[l]};`}ua(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Hu(s);ua(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:Hu(a);s+=`${c}:${l};`}}if(s&&ua(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)Bt({[`${n} ${c}`]:o[c]});for(let c of a)Bt({[c]:{[n]:o[c]}})}}}}function qA(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${Hu(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ua(`@keyframes ${e}{${r}}`),e}N();Ya();N();N();var sM=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],iM=["none","forwards","backwards","both"],aM=["normal","reverse","alternate","alternate-reverse"],lM=["running","paused"],cM=e=>/^[\d.]+m?s$/.test(e),uM=0,lb=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(M(e)){let o=`smbls-anim-${uM++}`;return{animationName:qA(o,e)}}let n=r&&r[e];return M(n)?qA(e,n):e},fM=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:cM(d)?s.push(d):sM.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):aM.includes(d)?l=d:iM.includes(d)?c=d:lM.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},dM={animation:(e,t)=>{if(R(e)&&e.includes(" ")){let r=fM(e,t);return{animationName:lb(r.name||e,t),animationDuration:r.durations[0]||gr(t.animationDuration||"A").timing,animationDelay:r.durations[1]||gr(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Rn(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:lb(e,t),animationDuration:gr(t.animationDuration||"A").timing,animationDelay:gr(t.animationDelay||"0s").timing,animationTimingFunction:Rn(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:lb(e,t)}),animationDuration:e=>({animationDuration:gr(e).timing}),animationDelay:e=>({animationDelay:gr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Rn(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};N();var pM={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>se("height",e,t),width:(e,t)=>se("width",e,t),boxSizing:e=>Nt(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("height",t),...Re("width",r||t)}},inlineSize:(e,t)=>se("inlineSize",e,t),blockSize:(e,t)=>se("blockSize",e,t),minWidth:(e,t)=>se("minWidth",e,t),maxWidth:(e,t)=>se("maxWidth",e,t),widthRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("minWidth",t),...Re("maxWidth",r||t)}},minHeight:(e,t)=>se("minHeight",e,t),maxHeight:(e,t)=>se("maxHeight",e,t),heightRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("minHeight",t),...Re("maxHeight",r||t)}},size:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...se("inlineSize",t),...se("blockSize",r||t)}},minBlockSize:(e,t)=>se("minBlockSize",e,t),minInlineSize:(e,t)=>se("minInlineSize",e,t),maxBlockSize:(e,t)=>se("maxBlockSize",e,t),maxInlineSize:(e,t)=>se("maxInlineSize",e,t),minSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("minInlineSize",t),...Re("minBlockSize",r||t)}},maxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("maxInlineSize",t),...Re("maxBlockSize",r||t)}},borderWidth:(e,t)=>se("borderWidth",e,t),padding:(e,t)=>se("padding",e,t),scrollPadding:(e,t)=>se("scrollPadding",e,t),paddingInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("paddingInlineStart",t),...Re("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("paddingBlockStart",t),...Re("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>se("paddingBlockStart",e,t),paddingBottom:(e,t)=>se("paddingBlockEnd",e,t),paddingLeft:(e,t)=>se("paddingInlineStart",e,t),paddingRight:(e,t)=>se("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>se("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>se("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>se("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>se("paddingInlineEnd",e,t),margin:(e,t)=>se("margin",e,t),marginInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("marginInlineStart",t),...Re("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!R(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...Re("marginBlockStart",r),...Re("marginBlockEnd",n||r)}},marginTop:(e,t)=>se("marginBlockStart",e,t),marginBottom:(e,t)=>se("marginBlockEnd",e,t),marginLeft:(e,t)=>se("marginInlineStart",e,t),marginRight:(e,t)=>se("marginInlineEnd",e,t),marginInlineStart:(e,t)=>se("marginInlineStart",e,t),marginInlineEnd:(e,t)=>se("marginInlineEnd",e,t),marginBlockStart:(e,t)=>se("marginBlockStart",e,t),marginBlockEnd:(e,t)=>se("marginBlockEnd",e,t),gap:e=>({gap:GL(e)}),columnGap:(e,t)=>Ho(t,"columnGap",e),rowGap:(e,t)=>Ho(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>zA(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>zA(e??t.round,t,"borderRadius")},hM={fontSize:e=>zO(e)||e,fontFamily:e=>({fontFamily:MO(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})},gM={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0},mM={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>ze(r,"k").k).join(" ")}},left:e=>ze(e,"left"),top:e=>ze(e,"top"),right:e=>ze(e,"right"),bottom:e=>ze(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ze(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ze(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};N();var jt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},yM={theme:(e,t)=>{if(e)return t.themeModifier?qr(e,`@${t.themeModifier}`):qr(e)},color:(e,t)=>{let r=jt(t);if(e)return{color:_t(e,r)}},background:(e,t)=>{let r=jt(t);if(e)return R(e)&&e.includes("gradient")?{background:eT(e,r)}:{background:_t(e,r)}},backgroundColor:(e,t)=>{let r=jt(t);if(e)return{backgroundColor:_t(e,r)}},backgroundImage:(e,t,r,n)=>{let o=jt(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:qL(e,o)}},textStroke:e=>({WebkitTextStroke:WL(e)}),outline:e=>({outline:An(e)}),outlineOffset:(e,t)=>se("outlineOffset",e,t),border:e=>({border:An(e)}),borderColor:(e,t)=>{let r=jt(t);if(e)return{borderColor:_t(e,r)}},borderTopColor:(e,t)=>{let r=jt(t);if(e)return{borderTopColor:_t(e,r)}},borderBottomColor:(e,t)=>{let r=jt(t);if(e)return{borderBottomColor:_t(e,r)}},borderLeftColor:(e,t)=>{let r=jt(t);if(e)return{borderLeftColor:_t(e,r)}},borderRightColor:(e,t)=>{let r=jt(t);if(e)return{borderRightColor:_t(e,r)}},borderLeft:e=>({borderLeft:An(e)}),borderTop:e=>({borderTop:An(e)}),borderRight:e=>({borderRight:An(e)}),borderBottom:e=>({borderBottom:An(e)}),shadow:(e,t)=>{let r=jt(t);if(e)return{boxShadow:HL(e,r)}},boxShadow:(e,t)=>{if(!R(e))return;let[r,n]=e.split("!importan"),o=jt(t),s=n?" !important":"";return{boxShadow:BA(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:BA(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:An(e)})},rT={transition:e=>({transition:XL(e)}),transitionDuration:e=>({transitionDuration:VA(e)}),transitionDelay:e=>({transitionDelay:VA(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Rn(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};N();var bM={flow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}},xM={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})},GA={...dM,...pM,...hM,...gM,...mM,...yM,...rT,...bM,...xM},vM=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);N();var _M=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,wM=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=Kr(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(_M),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},KA=(e,t,r)=>({[e]:Kr(t,r)}),sa=(e,t,r)=>{let n=`&${e}`,o=Kr(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},a0=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return L(r)?r.call(t,t):!!r},SM=(e,t,r)=>{let n=e.slice(1),o=a0(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Kr(t,r)},kM=(e,t,r)=>({[e]:t}),CM=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=a0(n,r);s!==void 0&&(o=s)}if(o)return Kr(t,r)},AM=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=a0(n,r);s!==void 0&&(o=s)}if(!o)return Kr(t,r)},EM=(e,t)=>Kr(e,t),OM={"@":wM,":":sa,"[":sa,"*":sa,"+":sa,"~":sa,"&":KA,">":KA,$:SM,"-":kM,".":CM,"!":AM},cb=Uo(),TM=(e,t,r)=>{let n=t?.context?.designSystem;n&&bL(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>it(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=Ne(l,t);it(o,EM(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=L(c)?c(t,t.state,t.context):c;u&&i(a,u),!cb&&M(o[a])&&(o[a].label=a)}else if(GA[a]){let c=Ne(l,t);W(c)&&(c=c.reduce((d,f)=>it(d,f),{}));let u=GA[a](c,t,t.state,t.context);W(u)&&(u=u.reduce((d,f)=>it(d,f),{})),u&&i(a,u),!cb&&M(o[a])&&(o[a].label=a)}else if(vM.has(a)){let c=Ne(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!cb&&M(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&xL()}},RM=(e,t)=>{let r={};for(let n in e){let o=OM[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?$n(r[i],s[i]):r[i]=s[i])}}return r},Kr=(e,t,r={unpack:!0})=>{let[n,o]=TM(e,t,r),s=RM(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return nd(n,s);n._selectors=s}return n};N();N();N();Ya();var Z7=new Proxy(Object.create(null),{get(){},has(){return!1}});N();var XA=(e,t)=>{let r=e.call("exec",t,e);if(r)return R(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r};var PM={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},$M={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},IM={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},Q7={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...PM,...$M,...IM,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var FM={};Y(FM,{A:()=>MR,AssetPicture:()=>TT,Audio:()=>jT,Avatar:()=>oP,B:()=>tR,Block:()=>oT,Box:()=>sR,Br:()=>aR,Button:()=>UR,ButtonSet:()=>GR,COMPONENTS:()=>HM,Caption:()=>qT,Checkbox:()=>vR,CheckboxHgroup:()=>_R,Circle:()=>CT,CircleButton:()=>HR,Clickable:()=>xT,Data:()=>nR,Dialog:()=>YR,DialogFooter:()=>ZR,DialogHeader:()=>JR,Dropdown:()=>lP,DropdownList:()=>cP,DropdownParent:()=>uP,DropdownParentFocus:()=>fP,DropdownSiblingFocus:()=>dP,FileIcon:()=>FR,Flex:()=>iT,Focusable:()=>vT,FocusableComponent:()=>_T,Footnote:()=>eR,Form:()=>hT,Grid:()=>lT,Gutter:()=>uT,H1:()=>NT,H2:()=>BT,H3:()=>VT,H4:()=>zT,H5:()=>UT,H6:()=>WT,Headline:()=>ZT,Hgroup:()=>dR,HgroupButton:()=>hR,HgroupRows:()=>pR,Hoverable:()=>bT,Hr:()=>iR,I:()=>rR,Icon:()=>$R,IconButton:()=>KR,IconText:()=>IR,Iframe:()=>mT,Img:()=>dT,Inline:()=>sT,InlineFlex:()=>aT,InlineGrid:()=>cT,Input:()=>mR,Italic:()=>YT,KangorooButton:()=>qR,Li:()=>lR,Link:()=>g0,Notification:()=>hP,NumberInput:()=>bR,Ol:()=>uR,P:()=>HT,Picture:()=>ET,Radio:()=>SR,RadioHgroup:()=>kR,Range:()=>iP,RouteLink:()=>NR,RouterLink:()=>m0,SHAPES:()=>Vf,Select:()=>VR,Shape:()=>c0,Span:()=>MT,SquareButton:()=>WR,Strong:()=>GT,Subhead:()=>QT,Svg:()=>PT,Text:()=>LT,Textarea:()=>TR,TextareaWithButton:()=>RR,Theme:()=>AT,Title:()=>JT,Toggle:()=>AR,ToggleHgroup:()=>ER,Tooltip:()=>eP,TooltipHidden:()=>tP,TooltipParent:()=>rP,U:()=>KT,Ul:()=>cR,Underline:()=>XT,Video:()=>IT,depth:()=>l0,getSystemGlobalTheme:()=>zf});var nT={};Y(nT,{Block:()=>oT,Flex:()=>iT,Grid:()=>lT,Gutter:()=>uT,Inline:()=>sT,InlineFlex:()=>aT,InlineGrid:()=>cT});var oT={display:"block"},sT={display:"inline"},iT={display:"flex"},aT={display:"inline-flex"},lT={display:"grid"},cT={display:"inline-grid"},uT={boxSize:"C1"},fT={};Y(fT,{Img:()=>dT});N();var dT={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Qt(e);return t&&t.src||e.src},srcset:e=>{let t=Qt(e);return(t?pd(t):"")||e.srcset}}},pT={};Y(pT,{Form:()=>hT});var hT={tag:"form"},gT={};Y(gT,{Iframe:()=>mT});var mT={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},yT={};Y(yT,{Clickable:()=>xT,Focusable:()=>vT,FocusableComponent:()=>_T,Hoverable:()=>bT});var jM={appearance:"none",cursor:"pointer",fontFamily:"inherit"},bT={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},xT={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},vT={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},_T={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:jM},wT={};Y(wT,{Picture:()=>ET});var ST={};Y(ST,{Theme:()=>AT,getSystemGlobalTheme:()=>zf});var kT={};Y(kT,{Circle:()=>CT,SHAPES:()=>Vf,Shape:()=>c0,default:()=>DM,depth:()=>l0});N();var vt=H(),l0={4:{boxShadow:`rgba(0,0,0,.10) 0 2${vt.unit.default} 4${vt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${vt.unit.default} 6${vt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${vt.unit.default} 10${vt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${vt.unit.default} 16${vt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${vt.unit.default} 26${vt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${vt.unit.default} 42${vt.unit.default}`}},Io=e=>Pe(e.shapeDirectionColor)||Pe(e.borderColor)||Pe(e.backgroundColor)||Pe(e.background),Nu=e=>{let t=rT.transition(e.transition,e);return t&&t.transition},Vf={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Io(e),transition:Nu(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:Io(e),transition:Nu(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Io(e),transition:Nu(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Nu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Io(e)} 25%, transparent 25%), linear-gradient(315deg, ${Io(e)} 25%, transparent 25%)`},"&:after":{background:Io(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},c0={deps:{exec:Ne,getSpacingBasedOnRatio:Ho,getMediaColor:_t},classlist:{shape:e=>e.deps.exec(Vf[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Vf[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},CT={round:"100%"},DM=c0;N();var zf=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},AT={deps:{depth:l0},classlist:{depth:e=>!Nt(e.depth)&&e.deps.depth[e.depth]}},ET={deps:{getSystemGlobalTheme:zf},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:zf},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}},OT={};Y(OT,{AssetPicture:()=>TT});N();var TT={tag:"picture",children:e=>{let t=Qt(e);if(t)return hd(t,e.alt)}},RT={};Y(RT,{Svg:()=>PT});var PT={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}},$T={};Y($T,{Video:()=>IT});N();var IT={tag:"video",controls:!0,attr:{src:e=>{let t=Qt(e);return t&&t.src||e.src}},children:e=>{let t=Qt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},FT={};Y(FT,{Audio:()=>jT});N();var jT={tag:"audio",controls:!0,attr:{src:e=>{let t=Qt(e);return t&&t.src||e.src}},children:e=>{let t=Qt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},DT={};Y(DT,{B:()=>tR,Caption:()=>qT,Data:()=>nR,Footnote:()=>eR,H1:()=>NT,H2:()=>BT,H3:()=>VT,H4:()=>zT,H5:()=>UT,H6:()=>WT,Headline:()=>ZT,I:()=>rR,Italic:()=>YT,P:()=>HT,Span:()=>MT,Strong:()=>GT,Subhead:()=>QT,Text:()=>LT,Title:()=>JT,U:()=>KT,Underline:()=>XT});var LT={},MT={tag:"span"},NT={tag:"h1"},BT={tag:"h2"},VT={tag:"h3"},zT={tag:"h4"},UT={tag:"h5"},WT={tag:"h6"},HT={tag:"p"},qT={tag:"caption"},GT={tag:"strong",fontWeight:"700"},KT={tag:"u"},XT={tag:"u"},YT={tag:"i"},JT={},ZT={tag:"h6",fontSize:"B",fontWeight:500},QT={tag:"span",fontSize:"Z1"},eR={tag:"span",fontSize:"Z"},tR={tag:"b"},rR={tag:"i"},nR={tag:"data"},oR={};Y(oR,{Box:()=>sR,Br:()=>aR,Hr:()=>iR,Li:()=>lR,Ol:()=>uR,Ul:()=>cR});var LM=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Kr(t,e,{unpack:!1});r.__class=n},sR={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:LM},iR={tag:"hr",margin:"C1 0"},aR={tag:"br"},lR={tag:"li"},cR={tag:"ul",childExtends:{extends:"Li"}},uR={tag:"ol",childExtends:{extends:"Li"}},fR={};Y(fR,{Hgroup:()=>dR,HgroupButton:()=>hR,HgroupRows:()=>pR});var YA=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},dR={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:YA,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:YA,margin:"0",color:"paragraph"}},pR={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},hR={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},gR={};Y(gR,{Input:()=>mR});var mR={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}},yR={};Y(yR,{NumberInput:()=>bR});var bR={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}},xR={};Y(xR,{Checkbox:()=>vR,CheckboxHgroup:()=>_R});var vR={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},_R={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},wR={};Y(wR,{Radio:()=>SR,RadioHgroup:()=>kR});var SR={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},kR={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},CR={};Y(CR,{Toggle:()=>AR,ToggleHgroup:()=>ER});var AR={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},ER={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}},OR={};Y(OR,{Textarea:()=>TR,TextareaWithButton:()=>RR});var TR={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},RR={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}},PR={};Y(PR,{FileIcon:()=>FR,Icon:()=>$R,IconText:()=>IR});var $R={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let _=x[".isActive"];if(_)return x.call("exec",_.name||_.icon)},c=(x,_,C)=>{let{semanticIcons:E}=C&&C.designSystem,{toCamelCase:F}=C&&C.utils,w=u(x,_),$=F(w).split(/([a-z])([A-Z])/g),q=$[1]?$[0]:w.split(".")[0].split(" ")[0],te=E&&E[q];if(te){let j=w.includes(".")?"sfsymbols."+w.split(".").slice(1).join("."):"sfsymbols";return w=te[j]||te[w.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${w}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,_)=>{let{key:C}=x,E=x.call("exec",x.name||x.icon||C,x);return x.call("isString",E)&&E.includes("{{")&&(E=x.call("replaceLiteralsWithObjectFields",E)),x.call("isString",E)?E:C},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(_=>_.charAt(0).toUpperCase()+_.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},IR={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},FR={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},jR={};Y(jR,{A:()=>MR,Link:()=>g0,RouteLink:()=>NR,RouterLink:()=>m0});var MM={};Y(MM,{default:()=>UM,getActiveRoute:()=>h0,lastLevel:()=>vd,lastPathname:()=>Uf,matchRoute:()=>f0,parseQuery:()=>d0,parseRoutePattern:()=>u0,router:()=>Ko,runGuards:()=>p0});N();var DR=/^:(.+)/,LR=/^\*$/,JA=new Map,u0=e=>{let t=JA.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(DR);a?n.push({index:i,name:a[1]}):LR.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return JA.set(e,s),s},f0=(e,t,r=0)=>{let n=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),o="/"+(n[0]||"");if(!t)return{key:null,content:null,params:{},routePath:o};let s=null,i=-1,a={};for(let l in t){if(l==="/*")continue;let c=u0(l),u=NM(n,c);u>i&&(i=u,s=l,a=BM(n,c))}return!s&&t["/*"]&&(s="/*"),{key:s,content:s?t[s]:null,params:a,routePath:o}},NM=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(DR.test(r[i]))o+=1;else if(LR.test(r[i]))o+=.5;else return-1;return o},BM=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},d0=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((r,n)=>{t[n]!==void 0?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(r)):t[n]=r}),t},p0=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},h0=(e=0,t)=>{t||(t=typeof le<"u"?le.location.pathname:"/");let r=t.split("/")[e+1];if(r)return`/${r}`},Uf,vd=0,VM=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,zM={level:vd,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:be&&be.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Ko=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||le,i=o?.context?.document||be,a={...zM,...o.context.routerOptions,...n};vd=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=VM(e);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=d0(h),y=o.node,b=g&&g!==s.location.hash.slice(1),v=p!==Uf;Uf=p;let x,_,C,E;if(a.useParamsMatching){let w=f0(p,o.routes,a.level);x=w.key,_=w.routePath,C=w.content,E=w.params}else{x=h0(a.level,p),_=x;let w=o.routes;C=w?w[x||"/"]||w["/*"]:null,E={}}let F=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!C){a.onNotFound?a.onNotFound({pathname:p,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let w={pathname:p,route:x,params:E,query:m,hash:g,element:o,state:r},$=await p0(a.guards,w);if($===!1)return;if(typeof $=="string")return Ko($,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(v||!b){let w={route:x,routePath:_,hash:g,debugging:!1};Object.keys(E).length&&(w.params=E),Object.keys(m).length&&(w.query=m),a.updateState&&o.state.update(w,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let $=o.__ref?.origin?.content,q={};if($)for(let j in $){let I=$[j];j==="__ref"||j==="props"||j==="node"||j==="parent"||j==="key"||(typeof I=="string"||typeof I=="number"||typeof I=="boolean"||typeof I=="object"&&I!==null&&!I.node&&!I.__ref)&&(q[j]=I)}let te={...q,...typeof C=="object"?C:{extends:C}};a.useFragment&&(te.tag="fragment");try{o.set(te,{contentElementKey:c})}catch(j){console.error("[smbls/router] failed to render route content",p,j)}}if(a.scrollToTop&&F?.scrollTo&&F.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&C[c]?.node?.scrollTo&&C[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let w=i.getElementById(g);if(w&&F?.scrollTo){let $=w.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);F.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}Wo("routeChanged",o,a)},UM=Ko,WM=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Ko)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},g0={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>XA(e,e.href)||XA(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:WM},MR={extends:"Link"},m0={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Ko)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},NR={extends:[g0,m0]},BR={};Y(BR,{Select:()=>VR});var VR={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}},zR={};Y(zR,{Button:()=>UR,ButtonSet:()=>GR,CircleButton:()=>HR,IconButton:()=>KR,KangorooButton:()=>qR,SquareButton:()=>WR});var UR={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},WR={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},HR={extends:"SquareButton",round:"C"},qR={extends:"Button",childExtends:"IconText"},GR={tag:"nav",display:"flex",childExtends:"SquareButton"},KR={extends:["SquareButton","ClickableItem"],round:"Z"},XR={};Y(XR,{Dialog:()=>YR,DialogFooter:()=>ZR,DialogHeader:()=>JR});var YR={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},JR={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},ZR={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}},QR={};Y(QR,{Tooltip:()=>eP,TooltipHidden:()=>tP,TooltipParent:()=>rP});N();var eP={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>zo(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},tP={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},rP={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}},nP={};Y(nP,{Avatar:()=>oP});var oP={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`},sP={};Y(sP,{Range:()=>iP});var iP={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:_b("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:_b("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}},aP={};Y(aP,{Dropdown:()=>lP,DropdownList:()=>cP,DropdownParent:()=>uP,DropdownParentFocus:()=>fP,DropdownSiblingFocus:()=>dP});var lP={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},cP={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},uP={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},fP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},dP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}},pP={};Y(pP,{Notification:()=>hP});var hP={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}},HM=Object.assign({},nT,fT,pT,gT,yT,wT,OT,RT,kT,$T,FT,ST,DT,oR,fR,gR,yR,xR,wR,CR,OR,PR,jR,BR,zR,XR,QR,nP,sP,aP,pP);var qM=null;function GM(e){qM=e}N();var KM={};Y(KM,{CDN_PROVIDERS:()=>Lt,DOMQL_EVENTS:()=>sx,DOMQ_PROPERTIES:()=>qo,ENV:()=>kx,HTML_TAGS:()=>Na,METHODS:()=>Da,METHODS_EXL:()=>rd,NODE_ENV:()=>Dt,OPTIONS:()=>ud,PACKAGE_MANAGER_TO_CDN:()=>Df,PARSED_DOMQ_PROPERTIES:()=>td,PROPS_METHODS:()=>Tn,STATE_METHODS:()=>On,STATE_PROPERTIES:()=>ox,SVG_TAGS:()=>Nx,TYPES:()=>da,UNIVERSAL_RESERVED_KEYS:()=>jf,addCaching:()=>Cf,addContext:()=>kf,addExtend:()=>Wx,addExtends:()=>Qe,addItemAfterEveryElement:()=>Hb,addProtoToArray:()=>Zf,addRef:()=>_f,applyCSS:()=>ZM,applyDependentState:()=>cv,applyEvent:()=>Pf,applyEventUpdate:()=>$f,applyExtends:()=>qx,applyProps:()=>Aa,arrayContainsOtherArray:()=>Mb,arraysEqual:()=>Gb,arrayzeValue:()=>Ja,buildImgSrcset:()=>pd,buildSourcesAndImg:()=>hd,cache:()=>pv,call:()=>JE,captureSnapshot:()=>vv,checkForStateTypes:()=>sv,checkIfInherits:()=>Rf,checkIfStringIsInArray:()=>Yb,clone:()=>ax,cloneAndMergeArrayExtend:()=>xa,cloneFunction:()=>aE,concatAddExtends:()=>Vx,copyJavaScriptToClipboard:()=>Mv,copyStringToClipboard:()=>Lv,createBasedOnType:()=>vf,createElement:()=>ov,createElementExtends:()=>uf,createExtends:()=>ld,createExtendsFromKeys:()=>Ba,createExtendsStack:()=>hf,createIfConditionFlag:()=>$x,createInheritedState:()=>iv,createKey:()=>id,createNestedObject:()=>mx,createNestedObjectByKeyPath:()=>lv,createObjectWithoutPrototype:()=>nf,createParent:()=>wf,createPath:()=>Sf,createProps:()=>cd,createPropsStack:()=>bf,createRoot:()=>nv,createScope:()=>fv,createSnapshotId:()=>sd,customDecodeURIComponent:()=>nx,customEncodeURIComponent:()=>rx,cutArrayAfterValue:()=>Ub,cutArrayBeforeValue:()=>zb,debounce:()=>iE,debounceOnContext:()=>Tx,decodeNewlines:()=>tx,deepClone:()=>at,deepContains:()=>hx,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>lx,deepExtend:()=>cf,deepMerge:()=>tr,deepMergeExtends:()=>Jt,deepStringifyFunctions:()=>pa,defineSetter:()=>xv,destringifyGlobalScope:()=>cx,detectHeightOnInit:()=>Cv,detectInfiniteLoop:()=>vx,document:()=>be,encodeNewlines:()=>ex,error:()=>Ff,excludeKeysFromObject:()=>wx,exec:()=>Ne,extendCachedRegistry:()=>zx,extendStackRegistry:()=>ma,extractArrayExtend:()=>ba,fetchLibraryData:()=>jv,fibonacciNumberByIndex:()=>Av,filterArrays:()=>Kb,filterArraysFast:()=>Xb,finalizeExtends:()=>gf,findClosestNumber:()=>Mf,findClosestNumberInFactory:()=>Fv,findInheritedState:()=>Tf,findKeyPosition:()=>Zb,flattenExtend:()=>Lo,formatDate:()=>kv,generateHash:()=>sf,generateKey:()=>ga,generateMetaTags:()=>Iv,get:()=>DE,getActiveRoute:()=>h0,getCDNUrl:()=>Lf,getCapitalCaseKeys:()=>fE,getCdnProviderFromConfig:()=>wv,getChildStateInKey:()=>Of,getChildren:()=>NE,getContext:()=>HE,getCookie:()=>Lx,getDB:()=>ZE,getEmotionStylesheet:()=>zv,getExtendsInElement:()=>Hx,getExtendsStack:()=>_a,getExtendsStackRegistry:()=>lf,getFrequencyInArray:()=>Nb,getHashedExtend:()=>ya,getImportMapScript:()=>Sv,getInObjectByPath:()=>xx,getLocalStorage:()=>lE,getNev:()=>Ox,getPageMetadata:()=>sO,getParentStateInKey:()=>Ef,getPath:()=>BE,getQuery:()=>QE,getRef:()=>ME,getRoot:()=>zE,getRootContext:()=>WE,getRootData:()=>UE,getRootState:()=>VE,getRootStateInKey:()=>Af,getSpreadChildren:()=>dE,global:()=>jb,hasFunction:()=>Do,hasHandlerPlugin:()=>Xa,hasOwnProperty:()=>fx,inheritChildExtends:()=>df,inheritChildPropsExtends:()=>ff,inheritParentProps:()=>Sa,inheritRecursiveChildExtends:()=>pf,init:()=>_d,initProps:()=>tv,is:()=>Zt,isArray:()=>W,isBoolean:()=>Zu,isContextComponent:()=>pE,isCyclic:()=>_x,isDOMNode:()=>st,isDate:()=>ef,isDefined:()=>zo,isDevelopment:()=>ad,isEmpty:()=>tf,isEmptyObject:()=>dx,isEqualDeep:()=>rf,isFunction:()=>L,isHtmlElement:()=>Kf,isLocal:()=>Ex,isMethod:()=>eO,isMobile:()=>jx,isNode:()=>Wa,isNot:()=>Lb,isNotProduction:()=>Ka,isNull:()=>Qu,isNumber:()=>Pn,isObject:()=>M,isObjectLike:()=>ce,isPhoto:()=>Ev,isProduction:()=>Uo,isStaging:()=>Ax,isState:()=>av,isString:()=>R,isStringFunction:()=>Px,isTest:()=>of,isTesting:()=>Cx,isUndefined:()=>Nt,isUniversallyReservedKey:()=>_v,isValidHtmlTag:()=>Bx,joinArrays:()=>Fa,jointStacks:()=>Ux,keys:()=>gv,lastLevel:()=>vd,lastPathname:()=>Uf,loadCssFile:()=>Pv,loadJavascript:()=>$v,loadJavascriptFile:()=>Ov,loadJavascriptFileEmbedSync:()=>Rv,loadJavascriptFileSync:()=>Tv,loadRemoteCSS:()=>oO,loadRemoteScript:()=>nO,log:()=>qE,logGroupIf:()=>Fx,logIf:()=>Ix,lookdown:()=>IE,lookdownAll:()=>FE,lookup:()=>$E,lowercaseFirstLetter:()=>qa,makeObjectWithoutPrototype:()=>px,map:()=>ix,mapStringsWithContextComponents:()=>va,matchRoute:()=>f0,matchesComponentNaming:()=>En,memoize:()=>Rx,merge:()=>it,mergeSharedLibraries:()=>Dv,nextElement:()=>KE,normalizeLibraryKey:()=>Va,objectToString:()=>ha,objectizeStringProperty:()=>wa,overwrite:()=>nd,overwriteDeep:()=>$n,overwriteShallow:()=>od,overwriteState:()=>uv,parse:()=>mv,parseDeep:()=>If,parseQuery:()=>d0,parseRoutePattern:()=>u0,pickupElementFromProps:()=>Xx,pickupPropsFromElement:()=>Kx,previousElement:()=>XE,propExists:()=>ev,propertizeElement:()=>Yx,propertizeUpdate:()=>gE,reinit:()=>JM,remove:()=>jE,removeChars:()=>Nv,removeCookie:()=>Mx,removeDuplicateProps:()=>ka,removeDuplicatesInArray:()=>ja,removeFromArray:()=>Bb,removeFromObject:()=>gx,removeNestedKeyByPath:()=>yx,removeValueFromArray:()=>Jf,removeValueFromArrayAll:()=>Wb,reorderArrayByValues:()=>qb,replaceLiteralsWithObjectFields:()=>nE,replaceOctalEscapeSequences:()=>Qb,resolveAsset:()=>Qt,resolveHandler:()=>La,resolveSharedLibraries:()=>aO,returnValueAsText:()=>xf,router:()=>Ko,runGuards:()=>p0,runPluginHook:()=>Ma,scratchSystem:()=>FO,scratchUtils:()=>uO,self:()=>Db,set:()=>i0,setActiveRootState:()=>bv,setCookie:()=>Dx,setHashedExtend:()=>af,setInObjectByPath:()=>bx,setLocalStorage:()=>cE,setNodeStyles:()=>hv,setProps:()=>LE,setPropsPrototype:()=>mf,spotByPath:()=>PE,srcsetFor:()=>No,stringIncludesAny:()=>Qf,stringToObject:()=>ux,swapItemsInArray:()=>Vb,syncProps:()=>Ca,toCamelCase:()=>fd,toDashCase:()=>dd,toDescriptionCase:()=>Vv,toTitleCase:()=>Bv,toggleFullscreen:()=>rO,triggerEventOn:()=>Wo,triggerEventOnUpdate:()=>dv,trimStringFromSymbols:()=>Jb,unstackArrayOfObjects:()=>Yf,update:()=>Jx,updateProps:()=>rv,variables:()=>YE,verbose:()=>yv,warn:()=>GE,window:()=>le});N();N();var XM=H(),gP=(e=XM,t)=>{let r=M(t.localFile)?t.localFile:{},n=at(r.designSystem||{});return tr(e,n)},YM={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},_d=(e,t=YM)=>{let r=gP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=i0({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=n);let a=vO(i.font,i.files),l=i.useReset,c=i.useVariable,u=i.useFontImport,d=i.useSvgSprite,f=e.svg,p=i.useIconSprite,h=e.icons;if(u&&Bt(a),c&&(Bt({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];Bt(m)}l&&Bt(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];Bt(m)}return(f||d)&&XO(i.svg,{document:t.document}),(h||p)&&JO(i.icons,{document:t.document}),i},mP={},JM=(e,t=mP)=>{let r=gP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=i0({verbose:!1,...r});if(!t.preventInject){if(Bt({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];Bt(i)}Bt(s.reset)}return s},ZM=(e,t=mP)=>{Bt(e)};N();N();var e8=le&&le.location?le.location.host.includes("dev."):ad();N();Mo();var QM={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},eN={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},t8={...QM,router:eN};N();N();N();N();Mo();var Wf={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},tN=Object.create(null);for(let e in Wf)tN[Wf[e]]=e;var ub=Object.create(null);for(let e in Wf){let t=Wf[e];if(ub[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${ub[t]}"`);ub[t]=e}var rN=0,nN=()=>`${Date.now().toString(36)}-${(rN++).toString(36)}`,Ia=(e,t,r={})=>({id:nN(),ts:Date.now(),type:e,level:t,...r}),oN=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},Hf=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:oN(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null,Bo=e=>e?.context?.analyze,sN={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},iN=(e,{category:t,type:r,level:n})=>o=>{let s=Bo(o);!s||!s.shouldCapture(t)||s.emit(Ia(r,n,{hook:e,element:Hf(o)}))},ZA=e=>(t,r)=>{let n=Bo(t);!n||!n.shouldCapture("state")||n.emit(Ia("state","debug",{hook:e,element:Hf(t),changedKeys:r?.changedKeys||null}))},aN={name:"analyze",error(e,t){let r=Bo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(Ia("error","error",{hook:t?.hook||"error",element:Hf(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Bo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(Ia("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Bo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Bo(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(Ia("update","debug",{hook:"update",element:Hf(e),durationMs:r}))},beforeStateUpdate:ZA("beforeStateUpdate"),stateUpdate:ZA("stateUpdate")};for(let[e,t]of Object.entries(sN))aN[e]=iN(e,t);N();N();N();N();var r8=typeof le<"u"&&typeof le.document<"u";var n8=typeof le<"u"&&typeof le.document<"u";N();var o8=typeof le<"u"&&typeof le.document<"u";N();var s8=typeof le<"u"&&typeof le.document<"u";var er=Object.create(null);er.open="0";er.close="1";er.ping="2";er.pong="3";er.message="4";er.upgrade="5";er.noop="6";var qu=Object.create(null);Object.keys(er).forEach(e=>{qu[er[e]]=e});var Ab={type:"error",data:"parser error"},yP=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",bP=typeof ArrayBuffer=="function",xP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,y0=({type:e,data:t},r,n)=>yP&&t instanceof Blob?r?n(t):QA(t,n):bP&&(t instanceof ArrayBuffer||xP(t))?r?n(t):QA(new Blob([t]),n):n(er[e]+(t||"")),QA=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function eE(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var fb;function lN(e,t){if(yP&&e.data instanceof Blob)return e.data.arrayBuffer().then(eE).then(t);if(bP&&(e.data instanceof ArrayBuffer||xP(e.data)))return t(eE(e.data));y0(e,!1,r=>{fb||(fb=new TextEncoder),t(fb.encode(r))})}var tE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<tE.length;e++)fa[tE.charCodeAt(e)]=e;var cN=e=>{let t=e.length*.75,r=e.length,n,o=0,s,i,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)s=fa[e.charCodeAt(n)],i=fa[e.charCodeAt(n+1)],a=fa[e.charCodeAt(n+2)],l=fa[e.charCodeAt(n+3)],u[o++]=s<<2|i>>4,u[o++]=(i&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c},uN=typeof ArrayBuffer=="function",b0=(e,t)=>{if(typeof e!="string")return{type:"message",data:vP(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:fN(e.substring(1),t)}:qu[r]?e.length>1?{type:qu[r],data:e.substring(1)}:{type:qu[r]}:Ab},fN=(e,t)=>{if(uN){let r=cN(e);return vP(r,t)}else return{base64:!0,data:e}},vP=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,_P="",dN=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{y0(s,!1,a=>{n[i]=a,++o===r&&t(n.join(_P))})})},pN=(e,t)=>{let r=e.split(_P),n=[];for(let o=0;o<r.length;o++){let s=b0(r[o],t);if(n.push(s),s.type==="error")break}return n};function hN(){return new TransformStream({transform(e,t){lN(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var db;function Bu(e){return e.reduce((t,r)=>t+r.length,0)}function Vu(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function gN(e,t){db||(db=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Bu(r)<1)break;let l=Vu(r,1);s=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Bu(r)<2)break;let l=Vu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Bu(r)<8)break;let l=Vu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Ab);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Bu(r)<o)break;let l=Vu(r,o);a.enqueue(b0(s?l:db.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(Ab);break}}}})}var wP=4;function ke(e){if(e)return mN(e)}function mN(e){for(var t in ke.prototype)e[t]=ke.prototype[t];return e}ke.prototype.on=ke.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ke.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ke.prototype.off=ke.prototype.removeListener=ke.prototype.removeAllListeners=ke.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};ke.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};ke.prototype.emitReserved=ke.prototype.emit;ke.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ke.prototype.hasListeners=function(e){return!!this.listeners(e).length};var wd=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),wt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),yN="arraybuffer";function SP(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var bN=wt.setTimeout,xN=wt.clearTimeout;function Sd(e,t){t.useNativeTimers?(e.setTimeoutFn=bN.bind(wt),e.clearTimeoutFn=xN.bind(wt)):(e.setTimeoutFn=wt.setTimeout.bind(wt),e.clearTimeoutFn=wt.clearTimeout.bind(wt))}var vN=1.33;function _N(e){return typeof e=="string"?wN(e):Math.ceil((e.byteLength||e.size)*vN)}function wN(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function kP(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function SN(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function kN(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var CN=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}},x0=class extends ke{constructor(e){super(),this.writable=!1,Sd(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new CN(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=b0(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=SN(e);return t.length?"?"+t:""}},AN=class extends x0{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};pN(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,dN(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=kP()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},CP=!1;try{CP=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var EN=CP;function ON(){}var TN=class extends AN{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}},Vo=class Gu extends ke{constructor(t,r,n){super(),this.createRequest=t,Sd(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=SP(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Gu.requestsCount++,Gu.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=ON,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Gu.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Vo.requestsCount=0;Vo.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",rE);else if(typeof addEventListener=="function"){let e="onpagehide"in wt?"pagehide":"unload";addEventListener(e,rE,!1)}}function rE(){for(let e in Vo.requests)Vo.requests.hasOwnProperty(e)&&Vo.requests[e].abort()}var RN=(function(){let e=AP({xdomain:!1});return e&&e.responseType!==null})(),PN=class extends TN{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=RN&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Vo(AP,this.uri(),e)}};function AP(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||EN))return new XMLHttpRequest}catch{}if(!t)try{return new wt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var EP=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",$N=class extends x0{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=EP?{}:SP(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;y0(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&wd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=kP()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},pb=wt.WebSocket||wt.MozWebSocket,IN=class extends $N{createSocket(e,t,r){return EP?new pb(e,t,r):t?new pb(e,t):new pb(e)}doWrite(e,t){this.ws.send(t)}},FN=class extends x0{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=gN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=hN();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let o=()=>{r.read().then(({done:i,value:a})=>{i||(this.onPacket(a),o())}).catch(i=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&wd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},jN={websocket:IN,webtransport:FN,polling:PN},DN=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,LN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Eb(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=DN.exec(e||""),s={},i=14;for(;i--;)s[LN[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=MN(s,s.path),s.queryKey=NN(s,s.query),s}function MN(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function NN(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ob=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ku=[];Ob&&addEventListener("offline",()=>{Ku.forEach(e=>e())},!1);var Xu=class Yu extends ke{constructor(t,r){if(super(),this.binaryType=yN,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=Eb(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Eb(r.host).host);Sd(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=kN(this.opts.query)),Ob&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ku.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=wP,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&Yu.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Yu.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){let n=this.writeBuffer[r].data;if(n&&(t+=_N(n)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,wd(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:t,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(Yu.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ob&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Ku.indexOf(this._offlineEventListener);n!==-1&&Ku.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};Xu.protocol=wP;var BN=class extends Xu{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;Xu.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Xu.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=t.name,this.emitReserved("upgradeError",d)}}))};function o(){r||(r=!0,c(),t.close(),t=null)}let s=u=>{let d=new Error("probe error: "+u);d.transport=t.name,o(),this.emitReserved("upgradeError",d)};function i(){s("transport closed")}function a(){s("socket closed")}function l(u){t&&u.name!==t.name&&o()}let c=()=>{t.removeListener("open",n),t.removeListener("error",s),t.removeListener("close",i),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",s),t.once("close",i),this.once("close",a),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}},OP=class extends BN{constructor(e,t={}){let r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(n=>jN[n]).filter(n=>!!n)),super(e,r)}},i8=OP.protocol;function VN(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=Eb(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let o=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+t,n.href=n.protocol+"://"+o+(r&&r.port===n.port?"":":"+n.port),n}var TP={};Y(TP,{Decoder:()=>JN,Encoder:()=>YN,PacketType:()=>ee,isPacketValid:()=>rB,protocol:()=>XN});var zN=typeof ArrayBuffer=="function",UN=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,RP=Object.prototype.toString,WN=typeof Blob=="function"||typeof Blob<"u"&&RP.call(Blob)==="[object BlobConstructor]",HN=typeof File=="function"||typeof File<"u"&&RP.call(File)==="[object FileConstructor]";function v0(e){return zN&&(e instanceof ArrayBuffer||UN(e))||WN&&e instanceof Blob||HN&&e instanceof File}function Ju(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Ju(e[r]))return!0;return!1}if(v0(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Ju(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Ju(e[r]))return!0;return!1}function qN(e){let t=[],r=e.data,n=e;return n.data=Tb(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Tb(e,t){if(!e)return e;if(v0(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=Tb(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Tb(e[n],t));return r}return e}function GN(e,t){return e.data=Rb(e.data,t),delete e.attachments,e}function Rb(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Rb(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Rb(e[r],t));return e}var KN=Jj($D(),1),Pb=(0,KN.default)("socket.io-parser"),PP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],XN=5,ee;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(ee||(ee={}));var YN=class{constructor(e){this.replacer=e}encode(e){return Pb("encoding packet %j",e),(e.type===ee.EVENT||e.type===ee.ACK)&&Ju(e)?this.encodeAsBinary({type:e.type===ee.EVENT?ee.BINARY_EVENT:ee.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===ee.BINARY_EVENT||e.type===ee.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),Pb("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=qN(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},JN=class $P extends ke{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===ee.BINARY_EVENT;n||r.type===ee.BINARY_ACK?(r.type=n?ee.EVENT:ee.ACK,this.reconstructor=new ZN(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(v0(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(ee[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===ee.BINARY_EVENT||n.type===ee.BINARY_ACK){let s=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let i=t.substring(s,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!IP(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(s,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if($P.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return Pb("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case ee.CONNECT:return qf(r);case ee.DISCONNECT:return r===void 0;case ee.CONNECT_ERROR:return typeof r=="string"||qf(r);case ee.EVENT:case ee.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&PP.indexOf(r[0])===-1);case ee.ACK:case ee.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},ZN=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=GN(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function QN(e){return typeof e=="string"}var IP=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function eB(e){return e===void 0||IP(e)}function qf(e){return Object.prototype.toString.call(e)==="[object Object]"}function tB(e,t){switch(e){case ee.CONNECT:return t===void 0||qf(t);case ee.DISCONNECT:return t===void 0;case ee.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&PP.indexOf(t[0])===-1);case ee.ACK:return Array.isArray(t);case ee.CONNECT_ERROR:return typeof t=="string"||qf(t);default:return!1}}function rB(e){return QN(e.nsp)&&eB(e.id)&&tB(e.type,e.data)}function Mt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var nB=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),FP=class extends ke{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Mt(e,"open",this.onopen.bind(this)),Mt(e,"packet",this.onpacket.bind(this)),Mt(e,"error",this.onerror.bind(this)),Mt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,o;if(nB.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let s={type:ee.EVENT,data:t};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let l=this.ids++,c=t.pop();this._registerAckCallback(l,c),s.id=l}let i=(n=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||n===void 0?void 0:n.writable,a=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!i||(a?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var r;let n=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let i=0;i<this.sendBuffer.length;i++)this.sendBuffer[i].id===e&&this.sendBuffer.splice(i,1);t.call(this,new Error("operation has timed out"))},n),s=(...i)=>{this.io.clearTimeoutFn(o),t.apply(this,i)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...t){return new Promise((r,n)=>{let o=(s,i)=>s?n(s):r(i);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...o)=>(this._queue[0],n!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(n)):(this._queue.shift(),t&&t(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:ee.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ee.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ee.EVENT:case ee.BINARY_EVENT:this.onevent(e);break;case ee.ACK:case ee.BINARY_ACK:this.onack(e);break;case ee.DISCONNECT:this.ondisconnect();break;case ee.CONNECT_ERROR:this.destroy();let t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:ee.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ee.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let r of t)r.apply(this,e.data)}}};function Xo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Xo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Xo.prototype.reset=function(){this.attempts=0};Xo.prototype.setMin=function(e){this.ms=e};Xo.prototype.setMax=function(e){this.max=e};Xo.prototype.setJitter=function(e){this.jitter=e};var $b=class extends ke{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,Sd(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Xo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||TP;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new OP(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=Mt(t,"open",function(){r.onopen(),e&&e()}),o=i=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",i),e?e(i):this.maybeReconnectOnOpen()},s=Mt(t,"error",o);if(this._timeout!==!1){let i=this._timeout,a=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),t.close()},i);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(n),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Mt(e,"ping",this.onping.bind(this)),Mt(e,"data",this.ondata.bind(this)),Mt(e,"error",this.onerror.bind(this)),Mt(e,"close",this.onclose.bind(this)),Mt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){wd(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new FP(this,e,t),this.nsps[e]=r),r}_destroy(e){let t=Object.keys(this.nsps);for(let r of t)if(this.nsps[r].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}},ia={};function hb(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=VN(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=ia[o]&&s in ia[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new $b(n,t):(ia[o]||(ia[o]=new $b(n,t)),l=ia[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(hb,{Manager:$b,Socket:FP,io:hb,connect:hb});N();N();N();GM(nM);D();var jP=(e,t,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?_d(a):rn(r[i],a):r[i]=a}),s&&(r.schema=s))},DP=(e,t,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=GC(r,o);if(s.has("state")&&t.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:l}=r.window.location;e.call("router",i+a+l,e.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&_d(r.designSystem)};var oB={success:"green",error:"red",warning:"yellow"},LP=(e,t,r)=>{if(e.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected&&t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},MP={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:oB[e.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(t,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(t,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(t,r,n)}}),IconText:null,childrenAs:"state",children:({state:e})=>e.notifications}};var sB=!1,iB=()=>sB?"http://localhost:8080":"https://api.symbols.app",aB=e=>{let t=e&&e.editor&&e.editor.socketUrl||e&&e.settings&&e.settings.socketUrl;return typeof t=="string"&&t?{mode:"collab",baseUrl:t}:e&&e.editor&&e.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},lB=async e=>{try{let t=e||iB(),r=await A.fetch(`${t}/service-token`,{method:"GET"}),n;try{let o=await r.clone().json();if(o&&typeof o.token=="string")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},VP=(e,t,r,n)=>{e.on("snapshot",jP(t,r,n)),e.on("ops",DP(t,r,n)),e.on("clients",o=>{n.editor?.verbose&&LP(o,t,r)}),e.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},cB=async(e,t,r,n)=>{let o=await lB(n);if(!o)return console.warn("[sync] no service token \u2014 collab disabled"),null;let s=r.key;if(!s)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let i=r.editor?.projectId||null,a=Eo(n,{path:"/collab-socket",transports:["websocket"],auth:{token:o,projectId:i,projectKey:s,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),VP(a,e,t,r),a},uB=(e,t,r)=>{let n=Eo({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),VP(n,e,t,r),n.on("reload",()=>{typeof A<"u"&&A.location&&A.location.reload()}),n},fB=async(e,t,r)=>{let{mode:n,baseUrl:o}=aB(r);return n?n==="collab"?cB(e,t,r,o):n==="runner"?uB(e,t,r):null:null},dB={onInit:fB};var zP=e=>typeof e>"u",NP=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),BP=e=>e?.editor?.runtime==="runner",UP=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},WP={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!zP(r.liveSync)?r.liveSync:NP(t)||BP(t))&&(NP(t)&&!BP(t)&&!t?.key||UP(e,dB))}},HP={name:"notifications",beforeCreate(e,t){if(!t)return;let r=zP(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&UP(e,MP)}};D();function qP(e){return k(e)?e:P(e)?e.find(t=>k(t)):""}function w0(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&qP(e.extends),n=e.parent&&e.parent.childExtends&&qP(e.parent.childExtends);return(t||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function kd(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=w0(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?kd(e.parent):o&&(t[o]||r[o])?e:kd(e.parent)}var pB=(e,t,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&e.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{e.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(e.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),e.Inspector.state.update({area:!1}))}},_0={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:pB,onMousemove:(e,t,r)=>{let n=e.target.ref,o=kd(n),s=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=w0(o),a=c=>{s.update({area:c,focusKey:i})},l=()=>{if(e.altKey&&e.shiftKey){let{x:c,y:u,width:d,height:f}=o.node.getBoundingClientRect(),p={x:c,y:u,width:d,height:f};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{l(),window.requestAnimationFrame(l)})},onMousedown:(e,t,r)=>{if(!r.debugging)return;let n=e.target.ref,o=kd(n);if(!o)return;let s=w0(o);if(!s)return;let i=n.context.editor;if(i&&i.onInspect)return i.onInspect(s,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return n.context.socket?.emit&&n.context.socket.emit("route",a),e.preventDefault(),e.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(e,t)=>!(t.area&&t.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:e})=>{let{components:t}=e;if(S(t)){let{Content:r,...n}=t;for(let o in n)uo[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(e,t,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,s;if(!o)s="display: none !important";else if(n){let{x:i,y:a,width:l,height:c}=n;s=`
107
107
  display: block !important;
108
108
  top: ${a-6}px;
109
- left: ${s-6}px;
109
+ left: ${i-6}px;
110
110
  width: ${l+12}px;
111
111
  height: ${c+12}px;
112
- `}return t.node.style=i,t.Span.node.innerText=r.focusKey,!1}}},IF={name:"inspect",beforeCreate(e,t){Array.isArray(e.extends)?e.extends.push(vw):e.extends?e.extends=[e.extends,vw]:e.extends=[vw]}};var f6=async(e,t={})=>{let r=t.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=t.key=t.key||n||(A(e)?e:"smblsapp");if(t.define=t.define||xo,t.cssPropsRegistry=Ae,t.window=lE(t),t.sharedLibraries&&t.sharedLibraries.length){if(t.sharedLibraries.some(p=>typeof p=="string")){let{resolveSharedLibraries:p}=await Promise.resolve().then(()=>(D(),MS));t.sharedLibraries=await p(t.sharedLibraries)}vE(t)}let[i,s]=mE(o,t);t.designSystem=i,t.registry=s,t.cases||(t.cases={}),t.shorthand&&Cu.prepareContext(t);let a=yE(e,t);t.state=a,Xi(a),t.pages=bE(e,t),t.components=cE(t),t.utils=uE(t),Pr[t.packageManager]&&(t.dependencies=await dE(t)),t.methods=fE(t),t.routerOptions=gC(e,t),t.defaultExtends=[pu],t.snippets=t.snippets||{},t.functions=t.functions||{},t.plugins=t.plugins||[],t.globalScope&&_(t.globalScope)&&(t.globalScope=mi(t.globalScope));let l=(f,p)=>{let h=p?f[p]:f;if(!_(h))return;let g=Xt(h);try{Object.assign(h,g)}catch(m){if(p)f[p]=g;else throw m}};l(e),l(t,"components"),l(t,"pages"),l(t,"functions"),l(t,"methods"),l(t,"snippets"),l(t,"app");let c=f=>f&&typeof f.select=="function";t.fetch?.__resolved&&!c(t.fetch.__resolved)&&delete t.fetch.__resolved,t.db?.__resolved&&!c(t.db.__resolved)&&delete t.db.__resolved;let u=f=>t.plugins.some(p=>p.name===f);if(t.polyglot&&!u("polyglot")){t.plugins.push(Su);for(let f in Ws)f in t.functions||(t.functions[f]=Ws[f])}if(u("helmet")||t.plugins.push(xC),t.fetch&&!u("fetch")&&t.plugins.push(Dh),t.designSystem?.typography?.useCapsize!==!1&&!u("capsize")&&(t.plugins.push(_E),t.cssPropsRegistry.useCapsize=SE),t.shorthand&&!u("shorthand")&&t.plugins.push(Cu),t.analyze&&!u("analyze")){let f=t.analyze===!0?{}:t.analyze;t.analyze=xb(f),t.plugins.push(Xs)}return t.sync!==!1&&!u("sync")&&t.plugins.push(RF),t.inspect&&!u("inspect")&&t.plugins.push(IF),(t.notifications===!0||t.editor&&t.editor.verbose===!0)&&t.notifications!==!1&&!u("notifications")&&t.plugins.push(PF),t},ww=async(e,t)=>{_(t)||(t={}),or(e)?(e={},t.parent=e):A(e)?(e={},t.key=e):_(e)||(e={});let r=t.window||(typeof window<"u"?window:null),n=r?.__BRENDER__,o=null;if(n){let l=t.document||(typeof document<"u"?document:null);l&&(o=Array.from(l.head.querySelectorAll("style")))}if(await f6(e,t),t.useReset!==!1){let l=t.document||(typeof document<"u"?document:null);if(l){let c=l.head.querySelector("style[data-smbls]");c||(c=l.createElement("style"),c.setAttribute("data-smbls",""),l.head.appendChild(c));let u=c.sheet;if(u){try{u.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{u.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(t.app&&_(t.app))for(let l in t.app)e[l]===void 0&&(e[l]=t.app[l]);e.extends=oE(e,t),t.router!==!1&&(e.routes=t.pages),e.state=t.state,e.context=t,e.data=e.data||{},t.skipDesignSystemInit||await pE({functions:t.functions,utils:t.utils,snippets:t.snippets,...t.files},t);for(let l of t.plugins)if(typeof l.beforeCreate=="function")try{l.beforeCreate(e,t)}catch(c){console.error(`[smbls] plugin "${l.name||"?"}" beforeCreate error:`,c)}let i=t.document;if(!i||!i.createElement)return e;let s=t.parent||i.body;if(n)return d6(Dt,e,s,t,r,o);let a=Dt(e,s,t.key,{verbose:t.verbose,context:t,...t.domqlOptions});return typeof window<"u"&&!t.document&&(window.__smblsApp=a),a},d6=async(e,t,r,n,o,i)=>{let s=r.ownerDocument||document;i&&i.forEach(c=>{c.parentNode&&c.remove()});let a=[];for(let c of r.childNodes){if(c.nodeType===1){let u=c.tagName.toLowerCase();if(u==="script"||u==="link"||u==="style"||u==="svg"&&c.id)continue}a.push(c)}a.forEach(c=>c.remove()),s.querySelectorAll("[data-br]").forEach(c=>c.removeAttribute("data-br"));let l=e(t,r,n.key,{verbose:n.verbose,context:n,...n.domqlOptions});return p6(o),l},p6=e=>{e&&(delete e.__BRENDER__,delete e.__BR_REGISTRY__)};var Sw=(e,t)=>fe(e,_(t)?t:{}),h6=e=>{if(typeof document>"u")return;let t=e.themeRoot||e.document&&e.document.documentElement||document.documentElement;if(!t||typeof t.setAttribute!="function")return;let r=e.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let i=new URLSearchParams(window.location.search).get("globalTheme");i&&(r=i)}}catch{}let n=e.themeStorageKey;if(r==="auto"&&n&&typeof localStorage<"u")try{let i=localStorage.getItem(n);i&&(r=i)}catch{}let o=r==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():r;t.setAttribute("data-theme",o),e.globalTheme=r,e.themeRoot=t},g6=()=>{if(typeof document>"u")return null;try{let e=document.querySelector('meta[name="symbols-runtime"]'),t=e&&e.getAttribute("content");return typeof t=="string"&&t?t:null}catch{return null}},jF=e=>{let t=g6();t&&(e.editor||(e.editor={}),e.editor.runtime||(e.editor.runtime=t),t==="runner"&&typeof e.editor.livesync>"u"&&(e.editor.livesync=!0))},_w=(e,t=zr,r)=>{let n={...zr,...Sw(t,r)};return jF(n),h6(n),ww(e,n).then(i=>{if(Sy(i,n),i.destroy=()=>Ms(i),i.navigate=(s,a={})=>{let l=i,c=i.context&&i.context.routerOptions;if(c&&c.customRouterElement){let u=Ls(i,c.customRouterElement);u&&(l=u)}return l.call("router",s,l,a.state||{},{pushState:!0,...a})},i.onCreate&&i.onCreate(i,i.state,i.context,n),i.context?.analyze?.activate)try{i.context.analyze.activate(i.context)}catch(s){console.error("[analyze] activate error:",s)}return i}).catch(i=>{throw console.error("[smbls] create error:",i),i})},m6=(e,t=zr,r)=>{let n=_w(e,t,r),o={...zr,...Sw(t,r)},i=o.key;return vC(n,i,{utils:Ds,...o}),n},y6=async(e,t=zr,r)=>{let n={...zr,...Sw(t,r)};jF(n);let o=t.key;await bC(o,n);let i=await ww(e,n);return Sy(i,n),i.destroy=()=>Ms(i),i.navigate=(s,a={})=>{let l=i,c=i.context&&i.context.routerOptions;if(c&&c.customRouterElement){let u=Ls(i,c.customRouterElement);u&&(l=u)}return l.call("router",s,l,a.state||{},{pushState:!0,...a})},n.onCreate&&await n.onCreate(i,i.state,i.context,n),i},b6=(e={},t=zr,r)=>_w({deps:{isUndefined:_e},...e},fe({domqlOptions:{onlyResolveExtends:!0}},t),r);ou(qc);
112
+ `}return t.node.style=s,t.Span.node.innerText=r.focusKey,!1}}},GP={name:"inspect",beforeCreate(e,t){Array.isArray(e.extends)?e.extends.push(_0):e.extends?e.extends=[e.extends,_0]:e.extends=[_0]}};var hB=async(e,t={})=>{let r=t.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=t.key=t.key||n||(k(e)?e:"smblsapp");if(t.define=t.define||ho,t.cssPropsRegistry=Se,t.window=P1(t),t.sharedLibraries&&t.sharedLibraries.length){if(t.sharedLibraries.some(p=>typeof p=="string")){let{resolveSharedLibraries:p}=await Promise.resolve().then(()=>(D(),B_));t.sharedLibraries=await p(t.sharedLibraries)}z1(t)}let[s,i]=N1(o,t);t.designSystem=s,t.registry=i,t.cases||(t.cases={}),t.shorthand&&hu.prepareContext(t);let a=B1(e,t);t.state=a,Us(a),t.pages=V1(e,t),t.components=$1(t),t.utils=I1(t),Or[t.packageManager]&&(t.dependencies=await j1(t)),t.methods=F1(t),t.routerOptions=m1(e,t),t.defaultExtends=[qc],t.snippets=t.snippets||{},t.functions=t.functions||{},t.plugins=t.plugins||[],t.globalScope&&S(t.globalScope)&&(t.globalScope=us(t.globalScope));let l=(f,p)=>{let h=p?f[p]:f;if(!S(h))return;let g=Wt(h);try{Object.assign(h,g)}catch(m){if(p)f[p]=g;else throw m}};l(e),l(t,"components"),l(t,"pages"),l(t,"functions"),l(t,"methods"),l(t,"snippets"),l(t,"app");let c=f=>f&&typeof f.select=="function";t.fetch?.__resolved&&!c(t.fetch.__resolved)&&delete t.fetch.__resolved,t.db?.__resolved&&!c(t.db.__resolved)&&delete t.db.__resolved;let u=f=>t.plugins.some(p=>p.name===f);if(t.polyglot&&!u("polyglot")){t.plugins.push(fu);for(let f in Mi)f in t.functions||(t.functions[f]=Mi[f])}if(u("helmet")||t.plugins.push(w1),t.fetch&&!u("fetch")&&t.plugins.push(Sh),t.designSystem?.typography?.useCapsize!==!1&&!u("capsize")&&(t.plugins.push(q1),t.cssPropsRegistry.useCapsize=H1),t.shorthand&&!u("shorthand")&&t.plugins.push(hu),t.analyze&&!u("analyze")){let f=t.analyze===!0?{}:t.analyze;t.analyze=Ey(f),t.plugins.push(Hi)}return t.sync!==!1&&!u("sync")&&t.plugins.push(WP),t.inspect&&!u("inspect")&&t.plugins.push(GP),(t.notifications===!0||t.editor&&t.editor.verbose===!0)&&t.notifications!==!1&&!u("notifications")&&t.plugins.push(HP),t},S0=async(e,t)=>{S(t)||(t={}),rr(e)?(e={},t.parent=e):k(e)?(e={},t.key=e):S(e)||(e={});let r=t.window||(typeof window<"u"?window:null),n=r?.__BRENDER__,o=null;if(n){let l=t.document||(typeof document<"u"?document:null);l&&(o=Array.from(l.head.querySelectorAll("style")))}if(await hB(e,t),t.useReset!==!1){let l=t.document||(typeof document<"u"?document:null);if(l){let c=l.head.querySelector("style[data-smbls]");c||(c=l.createElement("style"),c.setAttribute("data-smbls",""),l.head.appendChild(c));let u=c.sheet;if(u){try{u.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{u.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(t.app&&S(t.app))for(let l in t.app)e[l]===void 0&&(e[l]=t.app[l]);e.extends=E1(e,t),t.router!==!1&&(e.routes=t.pages),e.state=t.state,e.context=t,e.data=e.data||{},t.skipDesignSystemInit||await D1({functions:t.functions,utils:t.utils,snippets:t.snippets,...t.files},t);for(let l of t.plugins)if(typeof l.beforeCreate=="function")try{l.beforeCreate(e,t)}catch(c){console.error(`[smbls] plugin "${l.name||"?"}" beforeCreate error:`,c)}let s=t.document;if(!s||!s.createElement)return e;let i=t.parent||s.body;if(n)return gB(Pt,e,i,t,r,o);let a=Pt(e,i,t.key,{verbose:t.verbose,context:t,...t.domqlOptions});return typeof window<"u"&&!t.document&&(window.__smblsApp=a),a},gB=async(e,t,r,n,o,s)=>{let i=r.ownerDocument||document;s&&s.forEach(c=>{c.parentNode&&c.remove()});let a=[];for(let c of r.childNodes){if(c.nodeType===1){let u=c.tagName.toLowerCase();if(u==="script"||u==="link"||u==="style"||u==="svg"&&c.id)continue}a.push(c)}a.forEach(c=>c.remove()),i.querySelectorAll("[data-br]").forEach(c=>c.removeAttribute("data-br"));let l=e(t,r,n.key,{verbose:n.verbose,context:n,...n.domqlOptions});return mB(o),l},mB=e=>{e&&(delete e.__BRENDER__,delete e.__BR_REGISTRY__)};var k0=(e,t)=>fe(e,S(t)?t:{}),yB=e=>{if(typeof document>"u")return;let t=e.themeRoot||e.document&&e.document.documentElement||document.documentElement;if(!t||typeof t.setAttribute!="function")return;let r=e.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(r=s)}}catch{}let n=e.themeStorageKey;if(r==="auto"&&n&&typeof localStorage<"u")try{let s=localStorage.getItem(n);s&&(r=s)}catch{}let o=r==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():r;t.setAttribute("data-theme",o),e.globalTheme=r,e.themeRoot=t},bB=()=>{if(typeof document>"u")return null;try{let e=document.querySelector('meta[name="symbols-runtime"]'),t=e&&e.getAttribute("content");return typeof t=="string"&&t?t:null}catch{return null}},KP=e=>{let t=bB();t&&(e.editor||(e.editor={}),e.editor.runtime||(e.editor.runtime=t),t==="runner"&&typeof e.editor.livesync>"u"&&(e.editor.livesync=!0))},C0=(e,t=Mr,r)=>{let n={...Mr,...k0(t,r)};return KP(n),yB(n),S0(e,n).then(s=>{if(ly(s,n),s.destroy=()=>ji(s),s.navigate=(i,a={})=>{let l=s,c=s.context&&s.context.routerOptions;if(c&&c.customRouterElement){let u=Fi(s,c.customRouterElement);u&&(l=u)}return l.call("router",i,l,a.state||{},{pushState:!0,...a})},s.onCreate&&s.onCreate(s,s.state,s.context,n),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},xB=(e,t=Mr,r)=>{let n=C0(e,t,r),o={...Mr,...k0(t,r)},s=o.key;return v1(n,s,{utils:Ii,...o}),n},vB=async(e,t=Mr,r)=>{let n={...Mr,...k0(t,r)};KP(n);let o=t.key;await x1(o,n);let s=await S0(e,n);return ly(s,n),s.destroy=()=>ji(s),s.navigate=(i,a={})=>{let l=s,c=s.context&&s.context.routerOptions;if(c&&c.customRouterElement){let u=Fi(s,c.customRouterElement);u&&(l=u)}return l.call("router",i,l,a.state||{},{pushState:!0,...a})},n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},_B=(e={},t=Mr,r)=>C0({deps:{isUndefined:$e},...e},fe({domqlOptions:{onlyResolveExtends:!0}},t),r);Zc(Nc);