smbls 3.14.47 → 3.14.49

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.esm.js CHANGED
@@ -1,31 +1,30 @@
1
- var ex=Object.create;var gi=Object.defineProperty;var rx=Object.getOwnPropertyDescriptor;var nx=Object.getOwnPropertyNames;var ox=Object.getPrototypeOf,sx=Object.prototype.hasOwnProperty;var $=(t,e)=>()=>(t&&(e=t(t=0)),e);var mi=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),F=(t,e)=>{for(var r in e)gi(t,r,{get:e[r],enumerable:!0})},ix=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of nx(e))!sx.call(t,o)&&o!==r&&gi(t,o,{get:()=>e[o],enumerable:!(n=rx(e,o))||n.enumerable});return t};var ax=(t,e,r)=>(r=t!=null?ex(ox(t)):{},ix(e||!t||!t.__esModule?gi(r,"default",{value:t,enumerable:!0}):r,t));var xf,Sf,w,X,qr=$(()=>{"use strict";xf=globalThis,Sf=globalThis,w=globalThis,X=w.document});var he,Zn,kt,Gr=$(()=>{"use strict";qr();he=t=>(typeof Node=="object"?t instanceof w.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,Zn=t=>(typeof HTMLElement=="object"?t instanceof w.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,kt=t=>typeof w<"u"&&(w.Node&&t instanceof w.Node||w.Window&&t instanceof w.Window||t===w||t===document)});var _,k,se,C,ki,vi,T,Ci,N,vt,ht,Jn,Ct,_f,ut=$(()=>{"use strict";Gr();_=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,k=t=>typeof t=="string",se=t=>typeof t=="number",C=t=>typeof t=="function",ki=t=>t===!0||t===!1,vi=t=>t===null,T=t=>Array.isArray(t),Ci=t=>t instanceof Date,N=t=>t===null?!1:typeof t=="object",vt=t=>t!==void 0,ht=t=>t===void 0,Jn={boolean:ki,array:T,object:_,string:k,date:Ci,number:se,null:vi,function:C,objectLike:N,node:he,htmlElement:Zn,defined:vt},Ct=t=>(...e)=>e.some(r=>Jn[r](t)),_f=t=>(...e)=>!e.some(r=>Jn[r](t))});var wf,kf,vf,Cf,Kr,Qn,Af,Ef,to,Tf,Of,Rf,Pf,If,$f,Ff,Xr,eo,er=$(()=>{"use strict";ie();ut();wf=(t,e)=>e.every(r=>t.includes(r)),kf=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},vf=(t,e)=>{if(k(e)&&(e=parseInt(e)),se(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},Cf=(t,e,r)=>{e<0||r<0||e>=t.length||r>=t.length||([t[e],t[r]]=[t[r],t[e]])},Kr=(...t)=>[].concat(...t),Qn=(t,e=[])=>t.reduce((r,n)=>q(r,J(n,{exclude:e}),e),{}),Af=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},Ef=(t,e)=>{if(!T(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},to=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},Tf=(t,e)=>t.filter(r=>r!==e),Of=(t,e)=>{let r=[];for(let n=0;n<t.length;n++)r.push(t[n]),n<t.length-1&&r.push(e);return r},Rf=(t,e,r)=>{let n=[...t],o=n.indexOf(e),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},Pf=(t,e)=>{if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},If=(t,e)=>t.filter(r=>!e.includes(r)),$f=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},Ff=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},Xr=t=>T(t)?[...new Set(t)]:t,eo=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function rr(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=dx[n],i=e||this.state||{},a=this;return t.replace(s,(c,l,f,u)=>{let p=f.trim();if(u){let d=a?.context,h=d?.functions?.[u]||d?.utils?.[u]||d?.methods?.[u]||d?.snippets?.[u]||a?.[u];if(h&&typeof h=="function")try{return String(h.call(a,p)??"")}catch{return""}return""}if(l){let d=(l.match(/\.\.\//g)||[]).length,h=i;for(let m=0;m<d;m++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let g=Yr(h,p);return String(g??"")}else{let d=Yr(i,p);if(d!=null)return String(d);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=Yr(m,p);if(b!=null&&typeof b!="object")return String(b);for(let S in m){let x=m[S];if(x&&typeof x=="object"&&!Array.isArray(x)){let v=Yr(x,p);if(v!=null&&typeof v!="object")return String(v)}}}let y=Yr(h.translations,p);if(y!=null&&typeof y!="object")return String(y)}return""}})}var ro,Df,dx,Yr,nr,Lf,hx,Mf,Nf,jf,gx,Bf,Vf,Zr=$(()=>{"use strict";ro=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},Df=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},dx={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Yr=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);nr=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Lf=(t,e)=>{let r=t.split(`
2
- `),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<r.length;f++)if(a.test(r[f])&&!l){if(l=!0,n=f+1,s=r[f].indexOf(e)+1,r[f].includes("{}")){o=n,i=r[f].indexOf("{}")+3;break}let u=r[f].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=f+1,i=r[f].length+1;break}}else if(l&&(c+=(r[f].match(/{/g)||[]).length,c+=(r[f].match(/\[/g)||[]).length,c-=(r[f].match(/}/g)||[]).length,c-=(r[f].match(/]/g)||[]).length,c===0)){o=f+1,i=r[f].lastIndexOf("}")!==-1?r[f].lastIndexOf("}")+2:r[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},hx=/\\([0-7]{1,3})/g,Mf=t=>t.replace(hx,(e,r)=>String.fromCharCode(parseInt(r,8))),Nf=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),jf=t=>t.replace(/\/\/\/\/\/n/g,`
3
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),gx=/[^a-zA-Z0-9\s]/g,Bf=t=>t.replace(gx,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Vf=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var Fe,no,zf,De,Le,Jr,oo,Uf,or=$(()=>{"use strict";Fe=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"]),no=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),zf=["ref","parent","__element","__depends","__ref","__children","root"],De=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"]),Le=new Set(["update","__element"]),Jr=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"]),oo=new Set(["node","context","extends","__element","__ref",...Jr,...De,...Le]),Uf=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Wf,Me,Y,Hf,et,q,qf,Gf,J,so,mx,io,yx,bx,xx,Qr,Sx,_x,Bt,wx,kx,vx,ao,Kf,Xf,Ai,Yf,Zf,co,sr,At,Ei,Cx,Jf,Qf,Ti,tu,eu,ru,nu,ou,su,iu,ie=$(()=>{"use strict";qr();ut();er();Zr();Gr();or();Wf="production",Me=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,Y=(t,e,r,n)=>{if(C(t))return e?typeof t.call!="function"?t:t.call(e,e,r||e.state,n||e.context):void 0;if(t!=null&&e?.context?.plugins&&(T(t)||_(t)&&!kt(t))){let o=e.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i=="function")return Y(i,e,r,n)}}return t},Hf=(t,e,r)=>{for(let n in e)t[n]=Y(e[n],r)},et=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Me(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},q=(t,e,r=oo)=>qf(t,e,r,null),qf=(t,e,r,n)=>{if(t===e)return t;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===t&&n[s+1]===e)return t}let o=r instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Me(s)||s==="constructor"||s==="prototype"||(o?r.has(s):r.includes(s)))continue;let i=t[s],a=e[s];if(N(i)&&N(a)){let c=n||[];c.push(t,e),qf(i,a,r,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},Gf=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Me(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},J=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=e,c=s||w||globalThis;if(!N(t)||kt(t))return t;if(i.has(t))return i.get(t);let f=T(t)?[]:{};i.set(t,f);let u=r instanceof Set?r:r.length>3?new Set(r):null;for(let p in t){if(!Object.prototype.hasOwnProperty.call(t,p)||Me(p)||p==="__proto__"||(u?u.has(p):r.includes(p)))continue;let d=t[p];if(!(n&&d===void 0)&&!(o&&d===null)){if(kt(d)){f[p]=d;continue}if(a&&p==="extends"&&T(d)){f[p]=Qn(d,r);continue}if(C(d)){f[p]=d;continue}N(d)?f[p]=J(d,{...e,visited:i}):f[p]=d}}return f},so=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let r in t){let n=t[r];if(C(n))e[r]=n.toString();else if(_(n))e[r]={},so(n,e[r]);else if(T(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];_(i)?(o[s]={},so(i,o[s])):C(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},mx=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),io=(t={},e=0)=>{if(t===null||typeof t!="object")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return"{}";let n=" ".repeat(e),o=`{
4
- `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let l=0;l<s.length;l++)if(mx.has(s[l])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,T(i)){o+=`[
1
+ var rx=Object.create;var gi=Object.defineProperty;var nx=Object.getOwnPropertyDescriptor;var ox=Object.getOwnPropertyNames;var sx=Object.getPrototypeOf,ix=Object.prototype.hasOwnProperty;var $=(t,e)=>()=>(t&&(e=t(t=0)),e);var mi=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),F=(t,e)=>{for(var r in e)gi(t,r,{get:e[r],enumerable:!0})},ax=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ox(e))!ix.call(t,o)&&o!==r&&gi(t,o,{get:()=>e[o],enumerable:!(n=nx(e,o))||n.enumerable});return t};var cx=(t,e,r)=>(r=t!=null?rx(sx(t)):{},ax(e||!t||!t.__esModule?gi(r,"default",{value:t,enumerable:!0}):r,t));var xf,Sf,w,X,qr=$(()=>{"use strict";xf=globalThis,Sf=globalThis,w=globalThis,X=w.document});var he,Zn,kt,Gr=$(()=>{"use strict";qr();he=t=>(typeof Node=="object"?t instanceof w.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,Zn=t=>(typeof HTMLElement=="object"?t instanceof w.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,kt=t=>typeof w<"u"&&(w.Node&&t instanceof w.Node||w.Window&&t instanceof w.Window||t===w||t===document)});var _,k,oe,C,ki,vi,E,Ci,N,vt,ht,Jn,Ct,_f,ut=$(()=>{"use strict";Gr();_=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,k=t=>typeof t=="string",oe=t=>typeof t=="number",C=t=>typeof t=="function",ki=t=>t===!0||t===!1,vi=t=>t===null,E=t=>Array.isArray(t),Ci=t=>t instanceof Date,N=t=>t===null?!1:typeof t=="object",vt=t=>t!==void 0,ht=t=>t===void 0,Jn={boolean:ki,array:E,object:_,string:k,date:Ci,number:oe,null:vi,function:C,objectLike:N,node:he,htmlElement:Zn,defined:vt},Ct=t=>(...e)=>e.some(r=>Jn[r](t)),_f=t=>(...e)=>!e.some(r=>Jn[r](t))});var wf,kf,vf,Cf,Kr,Qn,Af,Ef,to,Tf,Of,Rf,Pf,If,$f,Ff,Xr,eo,er=$(()=>{"use strict";se();ut();wf=(t,e)=>e.every(r=>t.includes(r)),kf=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},vf=(t,e)=>{if(k(e)&&(e=parseInt(e)),oe(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},Cf=(t,e,r)=>{e<0||r<0||e>=t.length||r>=t.length||([t[e],t[r]]=[t[r],t[e]])},Kr=(...t)=>[].concat(...t),Qn=(t,e=[])=>t.reduce((r,n)=>q(r,Q(n,{exclude:e}),e),{}),Af=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},Ef=(t,e)=>{if(!E(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},to=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},Tf=(t,e)=>t.filter(r=>r!==e),Of=(t,e)=>{let r=[];for(let n=0;n<t.length;n++)r.push(t[n]),n<t.length-1&&r.push(e);return r},Rf=(t,e,r)=>{let n=[...t],o=n.indexOf(e),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},Pf=(t,e)=>{if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},If=(t,e)=>t.filter(r=>!e.includes(r)),$f=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},Ff=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},Xr=t=>E(t)?[...new Set(t)]:t,eo=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function rr(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=hx[n],i=e||this.state||{},a=this;return t.replace(s,(c,l,f,u)=>{let p=f.trim();if(u){let d=a?.context,h=d?.functions?.[u]||d?.utils?.[u]||d?.methods?.[u]||d?.snippets?.[u]||a?.[u];if(h&&typeof h=="function")try{return String(h.call(a,p)??"")}catch{return""}return""}if(l){let d=(l.match(/\.\.\//g)||[]).length,h=i;for(let m=0;m<d;m++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let g=Yr(h,p);return String(g??"")}else{let d=Yr(i,p);if(d!=null)return String(d);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=Yr(m,p);if(b!=null&&typeof b!="object")return String(b);for(let S in m){let x=m[S];if(x&&typeof x=="object"&&!Array.isArray(x)){let v=Yr(x,p);if(v!=null&&typeof v!="object")return String(v)}}}let y=Yr(h.translations,p);if(y!=null&&typeof y!="object")return String(y)}return""}})}var ro,Df,hx,Yr,nr,Lf,gx,Mf,Nf,jf,mx,Bf,Vf,Zr=$(()=>{"use strict";ro=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},Df=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},hx={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Yr=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);nr=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Lf=(t,e)=>{let r=t.split(`
2
+ `),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<r.length;f++)if(a.test(r[f])&&!l){if(l=!0,n=f+1,s=r[f].indexOf(e)+1,r[f].includes("{}")){o=n,i=r[f].indexOf("{}")+3;break}let u=r[f].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=f+1,i=r[f].length+1;break}}else if(l&&(c+=(r[f].match(/{/g)||[]).length,c+=(r[f].match(/\[/g)||[]).length,c-=(r[f].match(/}/g)||[]).length,c-=(r[f].match(/]/g)||[]).length,c===0)){o=f+1,i=r[f].lastIndexOf("}")!==-1?r[f].lastIndexOf("}")+2:r[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},gx=/\\([0-7]{1,3})/g,Mf=t=>t.replace(gx,(e,r)=>String.fromCharCode(parseInt(r,8))),Nf=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),jf=t=>t.replace(/\/\/\/\/\/n/g,`
3
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),mx=/[^a-zA-Z0-9\s]/g,Bf=t=>t.replace(mx,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Vf=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var Fe,no,zf,De,Le,Jr,oo,Uf,or=$(()=>{"use strict";Fe=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"]),no=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),zf=["ref","parent","__element","__depends","__ref","__children","root"],De=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"]),Le=new Set(["update","__element"]),Jr=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"]),oo=new Set(["node","context","extends","__element","__ref",...Jr,...De,...Le]),Uf=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Wf,Me,Y,qf,et,q,Gf,Kf,Q,so,yx,io,bx,xx,Sx,Qr,_x,wx,Hf,ie,kx,vx,Cx,ao,Xf,Yf,Ai,Zf,Jf,co,sr,At,Ei,Ax,Qf,tu,Ti,eu,ru,nu,ou,su,iu,au,se=$(()=>{"use strict";qr();ut();er();Zr();Gr();or();Wf="production",Me=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,Y=(t,e,r,n)=>{if(C(t))return e?typeof t.call!="function"?t:t.call(e,e,r||e.state,n||e.context):void 0;if(t!=null&&e?.context?.plugins&&(E(t)||_(t)&&!kt(t))){let o=e.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i=="function")return Y(i,e,r,n)}}return t},qf=(t,e,r)=>{for(let n in e)t[n]=Y(e[n],r)},et=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Me(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},q=(t,e,r=oo)=>Gf(t,e,r,null),Gf=(t,e,r,n)=>{if(t===e)return t;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===t&&n[s+1]===e)return t}let o=r instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Me(s)||s==="constructor"||s==="prototype"||(o?r.has(s):r.includes(s)))continue;let i=t[s],a=e[s];if(N(i)&&N(a)){let c=n||[];c.push(t,e),Gf(i,a,r,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},Kf=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Me(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},Q=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!N(t)||kt(t))return t;if(s.has(t))return s.get(t);let a=r instanceof Set?r:r.length>3?new Set(r):null,c=u=>a?a.has(u):r.includes(u),l=E(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,p]=f.pop();for(let d in u){if(!Object.prototype.hasOwnProperty.call(u,d)||Me(d)||d==="__proto__"||c(d))continue;let h=u[d];if(!(n&&h===void 0)&&!(o&&h===null)){if(kt(h)){p[d]=h;continue}if(i&&d==="extends"&&E(h)){p[d]=Qn(h,r);continue}if(C(h)){p[d]=h;continue}if(N(h))if(s.has(h))p[d]=s.get(h);else{let g=E(h)?[]:{};s.set(h,g),p[d]=g,f.push([h,g])}else p[d]=h}}}return l},so=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let r in t){let n=t[r];if(C(n))e[r]=n.toString();else if(_(n))e[r]={},so(n,e[r]);else if(E(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];_(i)?(o[s]={},so(i,o[s])):C(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},yx=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),io=(t={},e=0)=>{if(t===null||typeof t!="object")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return"{}";let n=" ".repeat(e),o=`{
4
+ `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let l=0;l<s.length;l++)if(yx.has(s[l])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,E(i)){o+=`[
5
5
  `;for(let l of i)N(l)&&l!==null?o+=`${n} ${io(l,e+2)},
6
6
  `:k(l)?o+=`${n} '${l}',
7
7
  `:o+=`${n} ${l},
8
8
  `;o+=`${n} ]`}else N(i)?o+=io(i,e+1):k(i)?o+=ro(i,[`
9
9
  `,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
10
- `}return o+=`${n}}`,o},yx=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],bx=/^["[{]/,xx=/^(export|import)\s/,Qr=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||xx.test(e)||!yx.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||bx.test(e)&&!o)},Sx=t=>(0,eval)(t),_x=(t,e)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(t);if(!r)return null;let n=r[0].length,o=[],s=n,i=1,a=null,c=t.length,l=new RegExp("^(?:const|let|var)\\s+"+e+"\\b");for(;s<c&&i>0;){let u=t[s];if(u==="/"&&t[s+1]==="/"){let p=t.indexOf(`
10
+ `}return o+=`${n}}`,o},bx=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],xx=/^["[{]/,Sx=/^(export|import)\s/,Qr=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||Sx.test(e)||!bx.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||xx.test(e)&&!o)},_x=t=>(0,eval)(t),wx=(t,e)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(t);if(!r)return null;let n=r[0].length,o=[],s=n,i=1,a=null,c=t.length,l=new RegExp("^(?:const|let|var)\\s+"+e+"\\b");for(;s<c&&i>0;){let u=t[s];if(u==="/"&&t[s+1]==="/"){let p=t.indexOf(`
11
11
  `,s);s=p===-1?c:p;continue}if(u==="/"&&t[s+1]==="*"){let p=t.indexOf("*/",s+2);s=p===-1?c:p+2;continue}if(u==='"'||u==="'"||u==="`"){let p=u;for(s++;s<c;){if(t[s]==="\\"){s+=2;continue}if(t[s]===p){s++;break}if(p==="`"&&t[s]==="$"&&t[s+1]==="{"){s+=2;let d=1;for(;s<c&&d>0;)t[s]==="{"?d++:t[s]==="}"&&d--,s++;continue}s++}continue}if(u==="{"){i++,s++;continue}if(u==="}"){i--,s++;continue}if(i===1&&l.test(t.slice(s))){let p=s,d=0,h=s;for(;h<c;){let g=t[h];if(g==='"'||g==="'"||g==="`"){let m=g;for(h++;h<c;){if(t[h]==="\\"){h+=2;continue}if(t[h]===m){h++;break}h++}continue}if(g==="("||g==="["||g==="{"){d++,h++;continue}if(g===")"||g==="]"||g==="}"){if(d===0)break;d--,h++;continue}if(d===0&&(g===";"||g===`
12
- `)){h++;break}h++}o.push([p,h]),s=h;continue}s++}if(!o.length)return null;let f=t;for(let u=o.length-1;u>=0;u--)f=f.slice(0,o[u][0])+f.slice(o[u][1]);return f},Bt=(t,e={},r={window:{eval:Sx}})=>{for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];if(k(o))if(Qr(o))try{e[n]=r.window.eval(`(${o})`)}catch(s){let i=s&&s.message?s.message:String(s),a=/await is only valid in async/.test(i),c=/Identifier '([^']+)' has already been declared/.exec(i),l=null;if(a){let f=String(o).trim();if(/^function[\s(]/.test(f))try{l=r.window.eval("(async "+f+")")}catch{}}else if(c){let f=String(o),u=c[1];for(let p=0;p<5;p++){let d=_x(f,u);if(!d||d===f)break;f=d;try{l=r.window.eval("("+f+")");break}catch(h){let g=/Identifier '([^']+)' has already been declared/.exec(h&&h.message||String(h));if(!g||g[1]!==u)break}}}l?e[n]=l:(typeof console<"u"&&console.warn&&console.warn('[smbls] deepDestringifyFunctions: eval failed on "'+n+'" \u2014 function will be left as a string and el.call("'+n+'") will silently no-op. Reason: '+i+`.
13
- First 200 chars of source: `+String(o).slice(0,200)),e[n]=o)}else e[n]=o;else if(T(o)){let s=e[n]=[];for(let i=0;i<o.length;i++){let a=o[i];if(k(a))if(Qr(a))try{s.push(r.window.eval(`(${a})`))}catch(c){typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed in array at index ${i} (prop "${n}"). Reason: ${c&&c.message?c.message:String(c)}.
14
- First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else _(a)?s.push(Bt(a)):s.push(a)}}else _(o)?e[n]=Bt(o,e[n]):e[n]=o}return e},wx="Set",kx="Map",vx=t=>!t||typeof t!="object"?t:t.__type===wx&&Array.isArray(t.values)?new Set(t.values):t.__type===kx&&Array.isArray(t.entries)?new Map(t.entries):t,ao=t=>{if(!t||typeof t!="object")return t;let e={},r=[];for(let n of Object.keys(t)){let o=t[n];k(o)&&Qr(o)?r.push([n,o]):e[n]=vx(o)}for(let[n,o]of r)try{let s=Object.keys(e).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
12
+ `)){h++;break}h++}o.push([p,h]),s=h;continue}s++}if(!o.length)return null;let f=t;for(let u=o.length-1;u>=0;u--)f=f.slice(0,o[u][0])+f.slice(o[u][1]);return f},Hf=(t,e,r)=>{try{return r.window.eval(`(${t})`)}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 c=String(t).trim();if(/^function[\s(]/.test(c))try{a=r.window.eval("(async "+c+")")}catch{}}else if(i){let c=String(t),l=i[1];for(let f=0;f<5;f++){let u=wx(c,l);if(!u||u===c)break;c=u;try{a=r.window.eval("("+c+")");break}catch(p){let d=/Identifier '([^']+)' has already been declared/.exec(p&&p.message||String(p));if(!d||d[1]!==l)break}}}return a||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \u2014 value will be left as a string. Reason: `+o+`.
13
+ First 200 chars of source: `+String(t).slice(0,200)),t)}},ie=(t,e={},r={window:{eval:_x}})=>{if(!t||typeof t!="object")return e;let n=[[t,e]];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))Qr(a)?s[i]=Hf(a,`"${i}"`,r):s[i]=a;else if(E(a)){let c=s[i]=[];for(let l=0;l<a.length;l++){let f=a[l];if(k(f))c.push(Qr(f)?Hf(f,`array index ${l} (prop "${i}")`,r):f);else if(_(f)){let u={};c.push(u),n.push([f,u])}else c.push(f)}}else if(_(a)){let c=s[i]&&typeof s[i]=="object"&&!E(s[i])?s[i]:s[i]={};n.push([a,c])}else s[i]=a}}return e},kx="Set",vx="Map",Cx=t=>!t||typeof t!="object"?t:t.__type===kx&&Array.isArray(t.values)?new Set(t.values):t.__type===vx&&Array.isArray(t.entries)?new Map(t.entries):t,ao=t=>{if(!t||typeof t!="object")return t;let e={},r=[];for(let n of Object.keys(t)){let o=t[n];k(o)&&Qr(o)?r.push([n,o]):e[n]=Cx(o)}for(let[n,o]of r)try{let s=Object.keys(e).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
15
14
  `);e[n]=w.eval(`(function(__gs__) { ${s}
16
- return (${o}); })`)(e)}catch{try{e[n]=w.eval(`(${o})`)}catch{e[n]=o}}return e},Kf=(t,e={verbose:!0})=>{try{return t?w.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Xf=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Ai=t=>{for(let e in t)return!1;return!0},Yf=t=>_(t)&&Ai(t),Zf=()=>Object.create(null),co=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&Me(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},sr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Me(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},At=(t,e,r={},n=new WeakMap)=>{if(!N(t)||!N(e)||kt(t)||kt(e))return e;if(n.has(t))return n.get(t);n.set(t,t);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Me(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];kt(l)?t[a]=l:N(c)&&N(l)?t[a]=At(c,l,r,n):l!==void 0&&(t[a]=l)}return t},Ei=(t,e,r=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Ei(t[i],e[i],r))return!1}return!0},Cx=new Set(["node","__ref"]),Jf=(t,e,r=Cx)=>{if(t===e)return!0;if(!N(t)||!N(e)||kt(t)||kt(e))return t===e;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 c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(kt(l)||kt(f)){if(l!==f)return!1}else if(N(l)&&N(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},Qf=(t,e)=>{if(e==null)return t;if(Ct(e)("string","number"))delete t[e];else if(T(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Ti=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=Ti(t[r]));return e},tu=(t,e)=>{if(t.length===0)return e;let r={},n=r;for(let o=0;o<t.length;o++)o===t.length-1&&e?n[t[o]]=e:(n[t[o]]={},n=n[t[o]]);return r},eu=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++){if(r[e[o]]===void 0)return;r=r[e[o]]}let n=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},ru=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++)(!n[e[o]]||typeof n[e[o]]!="object")&&(n[e[o]]={}),n=n[e[o]];return n[e[e.length-1]]=r,t},nu=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length;n++){if(r==null)return;r=r[e[n]]}return r},ou=t=>{let r=[],n=0;for(let o=0;o<t.length;o++)if(r.length<2)r.push(t[o]);else if(t[o]===r[o%2]?n++:(r=[t[o-1],t[o]],n=1),n>=20)return(Wf==="test"||Wf==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},su=t=>{let e=new WeakSet;function r(n){if(n&&typeof n=="object"){if(e.has(n))return!0;e.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(t)},iu=(t,e)=>{let r=e instanceof Set?e:new Set(e),n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!r.has(o)&&(n[o]=t[o]);return n}});var lo,fo,uo,po=$(()=>{"use strict";ie();lo=(function(){let t=0;function e(){return t++,t}return e})(),fo=lo,uo=(t,e,r)=>(Y(r,t)||r||t.key||lo()).toString()});var Kt,au,Ne,Oi,cu,lu,fu,je,uu,ir,Ri=$(()=>{"use strict";Kt="production",au=Kt,Ne=(t=Kt)=>t==="production",Oi=(t=Kt)=>t==="testing"||t==="test",cu=Oi,lu=(t=Kt)=>t==="staging",fu=(t=Kt)=>t==="local",je=(t=Kt)=>t==="development"||t==="dev"||t==="local",uu=(t,e=Kt)=>e[t],ir=(t=Kt)=>!Ne(t)});function ho(t,e,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||t.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,e),a&&t.apply(o,s)}}function gu(t,e=window){let r=function(){return t.apply(e,arguments)};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var pu,du,Ax,hu,tn,en,Xt,ar=$(()=>{"use strict";pu=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},du=t=>{let e={};return(...r)=>{let n=r[0];if(n in e)return e[n];{let o=t(n);return e[n]=o,o}}},Ax=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,hu=t=>Ax.test(t),tn=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},en=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(t,e);if(typeof o=="function")return o}return t},Xt=(t,e,...r)=>{let n=e?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[t]=="function"&&(s[t](e,...r),o=!0);return o}});var mu,yu=$(()=>{"use strict";ut();ie();mu=(t,e)=>{let{__ref:r}=t,n=t.if;if(C(n)){let o;try{o=n(t,t.state,t.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"?Y(n,t)?r.__if=!0:delete r.__if:r.__if=!0}});var bu,xu,Su=$(()=>{"use strict";bu=(t,...e)=>{t&&e.map(r=>console.log(r))},xu=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function Cu(t){let e;try{if(!window.localStorage)return;e=window.localStorage.getItem(t)}catch{return}if(e!==null)try{return JSON.parse(e)}catch{return}}function Au(t,e){if(e!=null)try{if(!window.localStorage)return;let r=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,r)}catch{}}var _u,wu,ku,vu,Eu=$(()=>{"use strict";ut();qr();_u=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),wu=(t,e,r=365)=>{if(ht(X)||ht(X.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;X.cookie=`${t}=${e};${o};path=/`},ku=t=>{if(ht(X)||ht(X.cookie))return;let e=`${t}=`,n=decodeURIComponent(X.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(e)===0)return s.substring(e.length,s.length)}return""},vu=t=>{ht(X)||ht(X.cookie)||(X.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var rn,Tu,Ou,Pi=$(()=>{"use strict";rn={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"])},Tu=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"]),Ou=t=>rn.body.has(t)});var Ii,Ru,nn,yo,Et,Pu,$i,bo,Iu,xo,Fi,Di,So,Li,on,Ex,ae,$u,go,_o,Fu,mo,Du,Lu,Mi,Ni,ji,Bi,Vi,zi,Mu,wo=$(()=>{"use strict";er();Ui();ie();ut();Ii="production",Ru=t=>t.sourcemap!==!1&&Ii!=="production",nn=t=>{if(t.includes("+"))return t.split("+").filter(ce);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!ce(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},yo=(t,e,r)=>{let n=[],o=nn(r);o&&(n=[...o]);let s=t.extends;return s&&(n=T(s)?[...n,...s]:[...n,s]),n},Et=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return n.includes(t)||(n=Array.isArray(t)?[...n,...t]:[...n,t],r.__extends=n),n},Pu=(t,e)=>{if(!t)return e;let{extends:r}=e,n=T(r)?r:[r],o=T(t)?t:[t];return{...e,extends:Kr(o,n)}},$i=()=>Math.random().toString(36).substring(2),bo={},Iu={},xo=t=>bo[t.__hash],Fi=(t,e)=>{let r=$i();return k(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(bo[r]=e),e},Di=(t,e)=>t.__hash?e.concat(xo(t)):Fi(t,e),So=(t,e,r,n=new Set,o,s)=>{for(let i of t)T(i)?So(i,e,r,n,o,s):on(i,e,r,n,o,void 0,s);return e},Li=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends,c={...t};delete c.extends;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),o&&o.push(s)),a&&on(a,e,r,n,o,s,i),e},on=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(T(t))return So(t,e,r,n,o,i);let a=s;return k(t)?(a=t,t=_o(t,r)):i&&_(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends?Li(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},Ex=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),ae=(t,e,r,n,o)=>{e=J(e);for(let s in e){if(Ex.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,r&&n?_(a)&&!T(a)?(r[s]=r[s]||{},$u(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(_(i)&&_(a)){let c=r?r[s]=r[s]||{}:void 0,l=o?.[s];ce(s)?t[s]=ae(i,a,c,n,l):ae(i,a,c,n,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(T(i)&&T(a))t[s]=i.concat(a);else if(T(i)&&_(a)){let c=ae({},i);t[s]=ae(c,a)}}}}return t},$u=(t,e,r,n)=>{if(n||(n=new WeakSet),!n.has(e)){n.add(e);for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=e[o];_(s)&&!T(s)?(t[o]=t[o]||{},$u(t[o],s,r,n)):t[o]=r}}},go=(t,e,r)=>t.reduce((n,o,s)=>{let i=J(o),a=r?r[s]:void 0;return ae(n,i,e,a)},{}),_o=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(k(t)){let i=o&&(o[t+"."+n]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(Ii==="test"||Ii==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},Fu=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),mo=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return xo(t)||[];let s=on(t,[],e,new Set,r,void 0,n);return r?s:Di(t,s)},Du=(t,e)=>{if(!t)return e;let r=T(t)?t:[t];return Kr(r,e)},Lu=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(ce(o)&&e.push(o),o==="extends"&&(typeof n[o]=="string"?e.push(n[o]):Array.isArray(n[o])&&(e=e.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(t),e},Mi=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant;if(t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i=="string"&&s&&o?.components){let c=`${i}.${s}`;o.components[c]?Et([c,...a],t):Et(t.extends,t)}else Et(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Et(i,t):Et(t.extends,t)}else Et(t.extends,t);return Ni(t,e,r),ji(t,e,r),Bi(t,e,r),t.component&&Et(Y(t.component,t),t),o.defaultExtends&&Et(o.defaultExtends,t),Xr(n.__extends)},Ni=(t,e,r={})=>{let{__ref:n}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Et(e.childProps.extends,t),n.__extends},ji=(t,e,r={})=>{let{__ref:n}=t,o=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Et(s,t),n.__extends},Bi=(t,e,r={})=>{let{__ref:n}=t,o=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&Et(o,t),n.__extends},Vi=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=Ru(r),a=i?[...n.__extends]:null,c=Xr(n.__extends.map((l,f)=>_o(l,o,r,f===0&&s)));if(i){let l=new WeakMap;for(let p=0;p<c.length;p++){let d=c[p],h=a[p];d&&_(d)&&k(h)&&l.set(d,h)}let f=[],u=mo(c,o,f,l);n.__extendsStack=u,n.__extendsNames=f}else{let l=mo(c,o);n.__extendsStack=l}return n.__extendsStack},zi=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Ru(r)){let s={},i=n.__extendsNames||[],a=go(o,s,i),c={};ae(t,a,c,void 0,s),n.__sourcemap=c}else{let s=go(o);ae(t,s)}return t},Mu=(t,e,r={})=>(Mi(t,e,r),Vi(t,e,r),zi(t,e,r),t)});function Nu(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function ju(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Bu(t,e,r){let{context:n}=e||{},[o]=nn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var ce,Ui=$(()=>{"use strict";wo();ut();ce=t=>{if(!k(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Vu(t,e){let{props:r,on:n}=e,o=nr(t.split("on")[1]),s=n[o],i=r[t];C(s)?n[o]=(...a)=>{if(s(...a)!==!1&&C(i))return i(...a)}:n[o]=i}var zu=$(()=>{"use strict";Zr();ut()});function Hi(t,e={}){let r=e.cachedKeys||[];for(let n in t){let o=t[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(C(o)||o!=null&&tn(this.context))){let h=nr(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],l=_(a)||C(a),f=_(c)||C(c);if(l||f)continue;let u=n.charAt(0);if(Wu.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=Wi.test(n)||Uu.test(n)||Ox(o),d=Fe.has(n);!p&&!d&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function qi(t=this,e){let r=e.cachedKeys||[];for(let n in t.props){let o=t.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=C(o)||o!=null&&tn(this.context);if(s&&i){Vu(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Wu.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=_(c)||C(c),u=_(l)||C(l),p=Wi.test(n)||Uu.test(n),d=Fe.has(n);(p||d||f||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function Gi(t=this){let e=[];return Hi.call(this,t,{cachedKeys:e}),qi.call(this,t,{cachedKeys:e}),t}function Hu(t={}){return t.on||(t.on={}),t.props||(t.props={}),Gi.call(this,t)}function Ki(t,e){this.__element.update({props:t},e)}function Eo(t){let e={update:Ki.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Wi,Uu,Wu,Tx,Ox,Co,ko,qu,Ao,To,Oo,Xi,vo,Gu,Ku,Yi=$(()=>{"use strict";or();zu();ie();ut();Zr();ar();Wi=/^[A-Z]/,Uu=/^\d+$/,Wu=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),Tx=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),Ox=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(Tx.has(e)||Wi.test(e))return!0;return!1},Co=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return N(n)?{...n}:(o.__propsStack.push(n),{})};ko=t=>Ct(t)("string","number")?{inheritedString:t}:t,qu=(t,e)=>!t||!e.length?!1:e.includes(t),Ao=(t,e)=>{let{__ref:r}=t,n=r.__propsStack||[],o=e.props;if(!o)return n;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=ko(i);n.unshift(c)}if(s){let c=ko(s);n.unshift(c)}return n};To=t=>{let e=new Set;return t.filter(r=>!r||Le.has(r)||e.has(r)?!1:(e.add(r),!0))},Oo=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(Le.has(o))return n;for(;C(o);)o=Y(o,e);return q(n,J(o,{exclude:Le}))},{}),Eo(e),e.props),Xi=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Ao(t,e)]),_(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),T(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=To(o),n.__propsStack},vo=(t,e)=>{let{__ref:r}=t,n=Xi(t,e);n.length?Oo(n,t):(r.__propsStack=[],t.props={})},Gu=function(t,e,r){let{__ref:n}=t;if(n.__if)vo(t,e);else try{vo(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return Eo(t),t},Ku=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Ao(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=To(s),n.__propsStack.length&&Oo(n.__propsStack,e),e}});var Xu,Zi,Ji,Qi,ta,Yu,ea,ra,na,Zu,Ju=$(()=>{"use strict";wo();po();Gr();Yi();Pi();ut();Xu="production",Zi=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=rn.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},Ji=(t,e,r)=>{if(t===void 0)return(Xu==="test"||Xu==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Ct(t)("string","number")?Zi(t,e,r):C(t)?{props:t}:t},Qi=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},ta=(t,e,r,n,o)=>{if(!e)return o;if(he(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Yu=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},ea=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},ra=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),na=(t,e,r)=>{let n=Qi(t,e);return t.__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=yo(t,e,r),n.path=ea(t,e,r),n},Zu=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:Ji(t,e,r);if(!i)return;let a=ta(i,e,r,n,o),c=uo(i,a,r);na(i,a,c);let l=Co(i,a,c),f=ra(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var Qu,oa,sa,ia,aa,tp,ca,ep,rp,np,op,sp=$(()=>{"use strict";er();or();ie();ut();Qu=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Ct(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},oa=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},sa=(t,e)=>{if(!t.includes("../"))return;let n=t.split("../").length-1;for(let o=0;o<n;o++){if(!e.parent)return null;e=e.parent}return e},ia=(t,e,r={})=>{let n=k(t)?t.split("/"):[t],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 c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},aa=(t,e,r={})=>{let o=t.__ref.__state;if(!ca(t))return;let s=oa(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=sa(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return ia(o,i,r)},tp=(t,e)=>{let r=t.__ref,n=aa(t,e);if(n===void 0)return t.state;if(Ct(n)("object","array"))return J(n);if(Ct(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},ca=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Ct(r)("number","string","boolean"))},ep=function(t){return N(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},rp=(t,e)=>{if(!t)return e||{};let r=t.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?e||{}:{},o=o[r[i]];return n},np=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=J(n,De),s={[t.key]:o},i=_(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?eo(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},op=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){q(t,e,De);return}(o?sr:At)(t,e,De)}});var ip,ap=$(()=>{"use strict";ip=(t,e)=>{let{__ref:r}=t,n=t.context||e.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=e.scope||r.root?.scope,s=n?.globalScope;if(!t.scope)o?t.scope=o:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(t.scope,i)}}});var cp,la,Be,fa,lp,ua=$(()=>{"use strict";ut();ar();cp=(t,e)=>{let r="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},la=(t,e,r,n,o)=>{if(t=en(t,e),!!C(t))try{let s=t.call(e,e,r||e.state,n||e.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},Be=(t,e,r)=>{if(!e)throw new Error("Element is required");Xt(t,e,r);let n=cp(t,e);if(n){let{state:o,context:s}=e;return la(n,e,o,s,r)}},fa=(t,e,r,n,o,s)=>{if(t=en(t,r),!!C(t))try{let i=t.call(r,e,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}},lp=(t,e,r,n)=>{Xt(t,r,e,n);let o=cp(t,r);if(o){let{state:s,context:i}=r;return fa(o,e,r,s,i,n)}}});var fp,Ro,pa=$(()=>{"use strict";fp={},Ro={}});var dp={};F(dp,{setup:()=>Px,supabaseAdapter:()=>pp});var up,Rx,Px,da,Ix,pp,hp=$(()=>{"use strict";up=new Map,Rx=(t,e,r)=>`${t}|${e}|${r?"off":"on"}`,Px=async({url:t,key:e,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let c=t||r&&`https://${r}.supabase.co`;if(!c||!e)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 l=Rx(c,e,o===!1),f=up.get(l);return f||(f=await n(c,e,a),f?.auth&&up.set(l,f)),!f||!f.auth?null:pp(f)},da=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},Ix=(t,{limit:e,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;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},pp=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,schema:r,select:n,params:o,headers:s,...i})=>{let c=(r?t.schema(r):t).from(e).select(n||"*");if(c=da(c,o),c=Ix(c,i),s)try{for(let l in s)c.setHeader?c=c.setHeader(l,s[l]):t.rest&&(t.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return c},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).insert(n).select(o||"*"),update:({from:e,schema:r,data:n,params:o,select:s})=>{let a=(r?t.schema(r):t).from(e).update(n);return a=da(a,o),a.select(s||"*")},upsert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).upsert(n).select(o||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=da(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var mp={};F(mp,{restAdapter:()=>gp,setup:()=>Fx});var $x,ge,Fx,gp,yp=$(()=>{"use strict";$x=(t,e,r)=>{let n=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${n}${e}`);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()},ge=async(t,e)=>{let r=await globalThis.fetch(t,e),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}},Fx=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return gp(t,e,r,n)},gp=(t,e={},r,n={})=>{let o=r?.token||null,s=f=>{let u={...e,...f};return o&&(u.Authorization=`Bearer ${o}`),u},i=f=>({...s(f),"Content-Type":"application/json"}),a=f=>({...n,...f}),c=(f,u)=>{let p=u||t;if(f&&(f.startsWith("http://")||f.startsWith("https://")))return f;let d=f&&!f.startsWith("/")?"/":"";return`${p}${d}${f||""}`};return{name:"rest",setToken:f=>{o=f},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let f=await ge(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return f.error?null:f.data},signIn:async f=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await ge(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(f)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await ge(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:f,params:u,select:p,limit:d,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let S={...u};return p&&(S.select=p),d&&(S.limit=d),h&&(S.offset=h),m&&(S.single=!0),g&&(typeof g=="string"?S.order=g:Array.isArray(g)?S.order=g.map(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):g.by&&(S.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),ge($x(b||t,f||"",S),a({headers:s(y)}))},rpc:({from:f,params:u,headers:p,baseUrl:d})=>ge(c(`rpc/${f}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:f,data:u,headers:p,baseUrl:d})=>ge(c(f,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:f,data:u,params:p,method:d,headers:h,baseUrl:g})=>{let m=p?.id||u?.id,y=m?`${f}/${m}`:f;return ge(c(y,g),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(u)}))},delete:({from:f,params:u,headers:p,baseUrl:d})=>{let h=u?.id,g=h?`${f}/${h}`:f;return ge(c(g,d),a({method:"DELETE",headers:s(p)}))}}}});var xp={};F(xp,{localAdapter:()=>bp,setup:()=>Lx});var ha,Dx,Lx,bp,Sp=$(()=>{"use strict";ha=(t,e)=>{if(!e)return!0;for(let r in e){let n=e[r];if(n===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(t[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(t[r]>n[o])||o==="gte"&&!(t[r]>=n[o])||o==="lt"&&!(t[r]<n[o])||o==="lte"&&!(t[r]<=n[o])||o==="neq"&&t[r]===n[o]||o==="like"&&!String(t[r]).includes(n[o]))return!1}else if(t[r]!==n)return!1}return!0},Dx=(t,{order:e,limit:r,offset:n,single:o})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[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}},Lx=async({data:t,...e})=>bp(t,e),bp=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!r[f])if(o)try{let u=localStorage.getItem(s+f);r[f]=u?JSON.parse(u):t[f]||[]}catch{r[f]=t[f]||[]}else r[f]=t[f]||[];return r[f]},a=f=>{if(o)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},c=(f,u,p,d)=>{let h=n[f];if(h)for(let g of h)g(p,d,{event:u,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:u,...p})=>{let h=i(f).filter(g=>ha(g,u));return Dx(h,p)},insert:async({from:f,data:u})=>{let p=i(f),h=(Array.isArray(u)?u:[u]).map(g=>{let m={id:g.id||++l,...g};return p.push(m),m});a(f);for(let g of h)c(f,"INSERT",g,null);return{data:Array.isArray(u)?h:h[0],error:null}},update:async({from:f,data:u,params:p})=>{let d=i(f),h=[];for(let g=0;g<d.length;g++)if(ha(d[g],p)){let m={...d[g]};Object.assign(d[g],u),h.push(d[g]),c(f,"UPDATE",d[g],m)}return a(f),{data:h,error:null}},delete:async({from:f,params:u})=>{let p=i(f),d=[];for(let h=p.length-1;h>=0;h--)ha(p[h],u)&&(d.push(p[h]),p.splice(h,1),c(f,"DELETE",null,d[d.length-1]));return a(f),{data:d,error:null}},subscribe:({from:f,on:u},p)=>{n[f]||(n[f]=[]);let d=(h,g,m)=>{u&&u!=="*"&&u!==m.event||p(h,g,m)};return n[f].push(d),()=>{let h=n[f].indexOf(d);h>-1&&n[f].splice(h,1)}}}}});var dn={};F(dn,{createAdapter:()=>jx,default:()=>Xx,executeFetch:()=>pn,fetchPlugin:()=>xa,initAdapterAuth:()=>Fo,parseDuration:()=>an,queryClient:()=>Kx,registerAdapter:()=>Nx,resolveDb:()=>Cp});var Mx,Po,vp,Nx,jx,Cp,an,yt,Ap,sn,Bx,un,cn,ln,Io,ya,$o,Vx,_p,ga,Ep,Tp,cr,wp,zx,kp,Ux,Do,Op,Fo,ba,Pt,Vt,fn,Ve,Yt,me,Wx,Hx,qx,ma,Gx,pn,Kx,xa,Xx,ze=$(()=>{"use strict";P();Mx=["select","rpc","insert","update","delete","subscribe"],Po=Symbol.for("@symbo.ls/fetch:BUILTIN_ADAPTERS"),vp=(()=>{if(typeof globalThis<"u"&&globalThis[Po])return globalThis[Po];let t={supabase:()=>Promise.resolve().then(()=>(hp(),dp)),rest:()=>Promise.resolve().then(()=>(yp(),mp)),local:()=>Promise.resolve().then(()=>(Sp(),xp))};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Po,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Po]}catch{}return t})(),Nx=(t,e)=>{vp[t]=e},jx=t=>{let e={};for(let r of Mx)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},Cp=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,n=typeof e=="string"?e:typeof t=="string"?t:null;if(!n)return null;let o=vp[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},an=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),n=e[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},yt=new Map,Ap=new Map,sn=new Map,Bx=(t,e)=>{if(t.cache?.key)return t.cache.key;let r=Ux(t.params),n=`${t.from}:${t.method}:${JSON.stringify(r||"")}`;return e?`${n}:${e}`:n},un=t=>yt.get(t)||null,cn=(t,e,r)=>{let n=yt.get(t),o={data:e,error:r,time:Date.now(),stale:!1};yt.set(t,o);let s=Ap.get(t);if(s)for(let i of s)C(i)&&i(o);return o},ln=t=>{if(t){let e=yt.get(t);e&&(e.stale=!0);return}for(let[,e]of yt)e.stale=!0},Io=t=>{if(t){yt.delete(t);return}yt.clear()},ya=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:k(t)?{staleTime:an(t),gcTime:3e5}:{staleTime:an(t.stale||t.staleTime)||6e4,gcTime:an(t.gc||t.gcTime||t.expire)||3e5,key:t.key},$o=null,Vx=()=>{$o||($o=setInterval(()=>{let t=Date.now();for(let[e,r]of yt){let n=Ap.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&yt.delete(e)}},3e4),$o.unref&&$o.unref())};Vx();_p=3,ga=t=>Math.min(1e3*2**t,3e4),Ep=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:_p,delay:ga}:typeof e=="number"?{count:e,delay:ga}:{count:e.count??_p,delay:C(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:ga}},Tp=async(t,e)=>{let{count:r,delay:n}=e,o;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(o=i.error,s<r){let a=C(n)?n(s,o):n;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=C(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},cr={focus:new Set,online:new Set},wp=!1,zx=()=>{if(wp||typeof window>"u")return;wp=!0;let t=()=>{for(let r of cr.focus)r()},e=()=>{for(let r of cr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},kp=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(k(t))return{from:t,method:"select",query:!0,on:"create"};if(_(t)){let n={...t};return n.from=n.from||r.__state||e.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},Ux=t=>(!t||C(t),t),Do=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},Op=(t,e,r)=>{let n;if(!t)n=void 0;else if(C(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=C(s)?s(e,e.state):s}}return n},Fo=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(n,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await t.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},ba=async(t,e)=>{if(C(t.select))return t.auth!==!1&&await Fo(t,e),t;if(t.__resolved)return t.auth!==!1&&await Fo(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=Cp(t);let r=await t.__resolving;return delete t.__resolving,r?(r.auth=t.auth,r.url=t.url,r.key=t.key,t.__resolved=r,e.fetch=r,t.auth!==!1&&await Fo(r,e),r):null},Pt=(t,e,...r)=>{let n=C(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},Vt=(t,e,r,...n)=>{let o=t&&C(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},fn=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())e[s]=i;return e}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"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},Ve=(t,e,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=r.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&i in e?s.update(e,{preventFetch:!0,...n}):s.update({[i]:e},{preventFetch:!0,...n})}else{let i=r?{[r]:e}:e;s.update(i,{preventFetch:!0,...n})}},Yt=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},me=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||!e||!e.__ref||t.enabled===!1||C(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||C(t.skip)&&t.skip(e,e.state))return;let s=await ba(o,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:u,transform:p,single:d,auth:h,fields:g,as:m,limit:y,offset:b,order:S,headers:x,baseUrl:v,page:O,cursor:R,getNextPageParam:W,getPreviousPageParam:E,infinite:L,placeholderData:V,initialData:Q,select:M,keepPreviousData:I}=t,H=k(M)?M:void 0;if(l&&C(e.getQuery)){let K=e.getQuery(s.name||"paths");K&&(H=K.select||K.length&&K.join(",")||H)}let G=Op(f,e,r),it=ya(u),zr=Ep(t),pi=Do(e,r),Qb=pi?`:${pi}`:"",nt=it?u?.key||`${a}:${c}:${JSON.stringify(G||"")}${L?":infinite":""}${O?":p"+JSON.stringify(O):""}${Qb}`:null;if(!i.__fetchInitialized&&nt&&(i.__fetchInitialized=!0,Q!==void 0)){let K=C(Q)?Q():Q;cn(nt,K,null)}if((c==="select"||c==="rpc")&&nt&&it){let K=un(nt);if(K&&!K.error){let z=Date.now()-K.time,rt=K.stale||z>(it.staleTime||0),B=K.data;if(C(M)&&(B=M(B,e,e.state)),p&&(B=p(B,e,e.state)),Ve(e,B,m),!rt){Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(V!==void 0){let z=C(V)?V(e,e.state):V;z!==void 0&&Ve(e,z,m)}}if(nt&&sn.has(nt)&&!n.force){let K=sn.get(nt);try{let z=await Promise.race([K,new Promise((rt,B)=>setTimeout(()=>B("DEDUP_TIMEOUT"),15e3))]);if(z?.data!==void 0){let rt=z.data;C(M)&&(rt=M(rt,e,e.state)),p&&(rt=p(rt,e,e.state)),Ve(e,rt,m),Pt(e,"onFetchComplete",rt),Vt(t,e,"onFetchComplete",rt)}}catch{}return}let tx=!un(nt)?.data;Yt(e,{isFetching:!0,isLoading:tx,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart"),Vt(t,e,"onFetchStart");let ne=r?.analyze?.emitNetwork,di=ne?typeof performance<"u"?performance.now():Date.now():0;ne&&ne({phase:"start",mode:"query",from:a,method:c,cacheKey:nt,lang:pi});let mf=Tp(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let B=await s.getSession();if(h===!0&&!B){let gt={message:"Not authenticated"};return Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:gt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",gt),Vt(t,e,"onFetchError",gt),{data:null,error:gt}}}let K=s[c];if(!C(K))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let z={from:a,select:H,params:G,single:d,limit:y,offset:b,order:S,headers:x,baseUrl:v},rt=Do(e,r);if(rt&&(z.headers={...z.headers,"Accept-Language":rt}),O!==void 0){if(_(O))O.offset!==void 0&&(z.offset=O.offset),O.limit!==void 0&&(z.limit=O.limit),O.cursor!==void 0&&(z.params={...z.params,cursor:O.cursor});else if(typeof O=="number"){let B=t.pageSize||y||20;z.offset=(O-1)*B,z.limit=B}}if(R!==void 0&&(z.params={...z.params,cursor:R}),c==="insert"||c==="update"||c==="upsert"){let B;if(g===!0||t.on==="submit")B=fn(e);else if(T(g)){let gt=fn(e);B={};for(let hi of g)B[hi]=gt[hi]}else e.state?.parse?B=e.state.parse():_(e.state)&&(B={...e.state});p&&(B=p(B,e,e.state)),z.data=B}if(c==="rpc"){let B=G;if(t.on==="submit"){let gt=fn(e);B=t.transformParams?t.transformParams(gt,e,e.state):gt}z.params=B}if(c==="subscribe"){let B=s.subscribe({from:a,params:G,on:t.subscribeOn},(gt,hi,ev)=>{Ve(e,gt,m),Pt(e,"onFetchComplete",gt),Vt(t,e,"onFetchComplete",gt)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return K(z)},zr);nt&&sn.set(nt,mf);try{let K=await mf;if(K?.subscribed)return;let{data:z,error:rt}=K||{};if(rt){nt&&cn(nt,null,rt),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:rt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",rt),Vt(t,e,"onFetchError",rt),ne&&ne({phase:"error",mode:"query",from:a,method:c,cacheKey:nt,error:rt.message||rt,durationMs:(typeof performance<"u"?performance.now():Date.now())-di});return}if(z!==void 0){if((c==="select"||c==="rpc")&&nt){let gt=cn(nt,z,null);gt.gcTime=it?.gcTime||3e5}let B=z;L&&T(z)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(z):i.__pages.push(z),B=i.__pages.flat(),W&&(i.__nextPageParam=W(z,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),E&&(i.__prevPageParam=E(z,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),C(M)&&(B=M(B,e,e.state)),p&&(B=p(B,e,e.state)),(!I||B!==void 0)&&Ve(e,B,m),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",B),Vt(t,e,"onFetchComplete",B),ne&&ne({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:nt,durationMs:(typeof performance<"u"?performance.now():Date.now())-di})}}catch(K){Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:K,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",K),Vt(t,e,"onFetchError",K),ne&&ne({phase:"error",mode:"query",from:a,method:c,cacheKey:nt,error:K.message||String(K),durationMs:(typeof performance<"u"?performance.now():Date.now())-di})}finally{nt&&sn.delete(nt)}},Wx=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||me;if(n==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(t,e,r))},Hx=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),zx();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:an(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&me(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Do(e,r),a=Bx(t,i),c=un(a),l=ya(t.cache);(!c||c.stale||Date.now()-c.time>(l?.staleTime||0))&&me(t,e,r,{force:!0})};cr.focus.add(s),n.__fetchCleanups.push(()=>cr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>me(t,e,r,{force:!0});cr.online.add(s),n.__fetchCleanups.push(()=>cr.online.delete(s))}},qx=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():_(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=C(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Ve(t,i,o),s},ma=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Ve(t,n,e.as),delete r.__optimisticSnapshot)},Gx=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await ba(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:p,headers:d,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:S,onSettled:x}=t,v;if(c===!0||u==="submit")v=fn(e);else if(T(c)){let E=fn(e);v={};for(let L of c)v[L]=E[L]}else e.state?.parse?v=e.state.parse():_(e.state)&&(v={...e.state});l&&(v=l(v,e,e.state)),C(y)&&y(v,e,e.state);let O=m?qx(e,t,v):null;s.__fetching=!0,Yt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart"),Vt(t,e,"onFetchStart");let R=r?.analyze?.emitNetwork,W=R?typeof performance<"u"?performance.now():Date.now():0;R&&R({phase:"start",mode:"mutation",from:a,method:i});try{if(p!==!1&&o.auth!==!1&&o.getSession){let G=await o.getSession();if(p===!0&&!G){O!==void 0&&ma(e,t);let it={message:"Not authenticated"};Pt(e,"onFetchError",it),Vt(t,e,"onFetchError",it);return}}let E=o[i];if(!C(E))return;let L={from:a,data:v,headers:d,baseUrl:h};t.params&&(L.params=Op(t.params,e,r));let V=Do(e,r);V&&(L.headers={...L.headers,"Accept-Language":V});let Q=Ep(t),M=await Tp(()=>E(L),Q),{data:I,error:H}=M||{};if(H){O!==void 0&&ma(e,t),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:H,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",H),C(S)&&S(H,v,e),C(x)&&x(null,H,v,e),R&&R({phase:"error",mode:"mutation",from:a,method:i,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-W});return}if(delete s.__optimisticSnapshot,I!==void 0){let G=f?{[f]:I}:I;e.state?.update&&e.state.update(G,{preventFetch:!0})}if(Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",I),Vt(t,e,"onFetchComplete",I),C(b)&&b(I,v,e),C(x)&&x(I,null,v,e),R&&R({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-W}),g){let G=T(g)?g:[g];for(let it of G)if(it===!0||it==="*")for(let[zr]of yt)zr.startsWith(a+":")&&ln(zr);else ln(it)}}catch(E){O!==void 0&&ma(e,t),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:E,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",E),Vt(t,e,"onFetchError",E),C(S)&&S(E,v,e),C(x)&&x(null,E,v,e),R&&R({phase:"error",mode:"mutation",from:a,method:i,error:E.message||String(E),durationMs:(typeof performance<"u"?performance.now():Date.now())-W})}finally{s.__fetching=!1}},pn=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=Y(t,e);if(!s)return;let i=T(s)?s.map(c=>kp(Y(c,e),e)).filter(Boolean):[kp(s,e)].filter(Boolean);for(let c of i){let l=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",f=l?Gx:me;c.on==="create"?f(c,e,n):Promise.resolve().then(()=>{Wx({...c,__runner:f},e,n)}),!l&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Hx(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let l of i)me(l,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__nextPageParam;if(l==null)return;let f={...c,cursor:l};me(f,e,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__prevPageParam;if(l==null)return;let f={...c,cursor:l};me(f,e,n,{direction:"previous",force:!0})}},Kx={invalidateQueries:t=>{if(!t){ln();return}if(k(t))for(let[e]of yt)(e.startsWith(t)||e.includes(t))&&ln(e);else if(T(t)){let e=t.join(":");for(let[r]of yt)r.includes(e)&&ln(r)}},removeQueries:t=>{if(!t){Io();return}if(k(t))for(let[e]of yt)(e.startsWith(t)||e.includes(t))&&Io(e)},getQueryData:t=>un(t)?.data??void 0,setQueryData:(t,e)=>{let r=un(t),n=C(e)?e(r?.data):e;cn(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await ba(r,e);if(!n)return;let o=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=n[t.method||"select"];if(!C(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let a=cn(o,i.data,null);a.gcTime=ya(t.cache)?.gcTime||3e5}return i},getCache:()=>yt,clear:()=>Io(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of yt)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||Io(r))}},xa={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||sn.clear(),pn(e,t,t.state,t.context))}},Xx=pn});function Mo(t){let e=this,{__ref:r}=e,n=[].concat(t),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",e.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function Pp(t){let e=this,{parent:r}=e;if(C(t))return r.state&&t(r,r.state,r.context)?r:r.parent?r.lookup(t):void 0;if(e[t])return e[t];for(;r.param!==t;){if(r[t])return r[t];if(r=r.parent,!r)return}return r}function Ip(t){let e=this,{__ref:r}=e,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=e[s];if(s===t)return i;if(C(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function $p(t,e=[]){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===t)e.push(a);else if(C(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function _a(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];if(_(n)&&o)_a.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function Fp(t){let e=this;if(Be("beforeRemove",e,t)===!1)return e;C(e.node.remove)?e.node.remove():Ne()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=to(e.parent.__ref.__children,e.key)),Be("remove",e,t)}function Dp(t){return this[t]}function Lp(t,e){let r=this;if(t)return r.update(t,e),r}function Mp(t){return t?this.__ref&&this.__ref[t]:this.__ref}function No(){return this.getRef("__children").map(e=>this[e])}function jo(){return this.getRef().path}function Vo(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=Rp();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=C(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=Rp()),t?e?.[t]:e}function zo(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function Uo(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Wo(t){let e=this.getRoot()?.context;return t?e[t]:e}function Ho(t){let e=this.context;return t?e[t]:e}function wa(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Fe.has(r)&&!no.has(r)||e.push(r);return e}function ka(t=[]){let e=this,r={},n=wa.call(e),o=n.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=C(c&&c.parse)?c.parse():c;r[a]=C(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...u}=e[a];r[a]=u}else vt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Lo(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=ka.call(r,t),o=t.length?new Set(t):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=>N(a)?Lo.call(a,t,e):a):N(i)&&(n[s]=Lo.call(i,t,e))}return n}function hn(...t){if(ye!=="test"&&ye!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
17
- `,"font-weight: bold",e[n])):(console.log(r.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function Bp(...t){(ye==="test"||ye==="development")&&console.log(...t)}function qo(...t){(ye==="test"||ye==="development")&&console.warn(...t)}function lr(...t){if(ye==="test"||ye==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&hn.call(this),new Error(...t)}}function Go(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function Ko(t){let e=t||this,{key:r,parent:n}=e,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function Xo(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,n={},o;for(let s in t)t[s]!==r[s]&&(o=!0,n[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(n,J(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 Vp(t,...e){let r=this.context,n=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(n)try{let o=n.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{lr.call(this,s)}),o}catch(o){if(lr.call(this,o),r?.strictMode)throw o}}async function Yo(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ze(),dn));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ze(),dn));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(ze(),dn)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.fetch=n,delete e.__resolving,n.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ze(),dn));await o(n,t.context)}return n}function Zo(t){let e=this,r=t||Ro.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(Sa(e,n),r===!0)return n;let o=nS[r];return o?o(n):n}function Up(t,e){return!!(Jr.has(t)||e?.context?.methods?.[t])}var ye,Np,Bo,Rp,jp,Sa,Yx,zp,Zx,Jx,Qx,tS,eS,rS,nS,Wp=$(()=>{"use strict";ua();or();ut();ie();Ri();er();pa();ye="production";Np=null,Bo=t=>{Np=t||null},Rp=()=>Np||null;jp=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});Sa=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&Yx(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&Sa(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&Sa(i,e)},Yx=(t,e)=>{let n=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;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])}},zp=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
18
- ${zp(i,e+1)}
15
+ return (${o}); })`)(e)}catch{try{e[n]=w.eval(`(${o})`)}catch{e[n]=o}}return e},Xf=(t,e={verbose:!0})=>{try{return t?w.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Yf=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Ai=t=>{for(let e in t)return!1;return!0},Zf=t=>_(t)&&Ai(t),Jf=()=>Object.create(null),co=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&Me(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},sr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Me(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},At=(t,e,r={},n=new WeakMap)=>{if(!N(t)||!N(e)||kt(t)||kt(e))return e;if(n.has(t))return n.get(t);n.set(t,t);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Me(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];kt(l)?t[a]=l:N(c)&&N(l)?t[a]=At(c,l,r,n):l!==void 0&&(t[a]=l)}return t},Ei=(t,e,r=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Ei(t[i],e[i],r))return!1}return!0},Ax=new Set(["node","__ref"]),Qf=(t,e,r=Ax)=>{if(t===e)return!0;if(!N(t)||!N(e)||kt(t)||kt(e))return t===e;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 c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(kt(l)||kt(f)){if(l!==f)return!1}else if(N(l)&&N(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},tu=(t,e)=>{if(e==null)return t;if(Ct(e)("string","number"))delete t[e];else if(E(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Ti=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=Ti(t[r]));return e},eu=(t,e)=>{if(t.length===0)return e;let r={},n=r;for(let o=0;o<t.length;o++)o===t.length-1&&e?n[t[o]]=e:(n[t[o]]={},n=n[t[o]]);return r},ru=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++){if(r[e[o]]===void 0)return;r=r[e[o]]}let n=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},nu=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++)(!n[e[o]]||typeof n[e[o]]!="object")&&(n[e[o]]={}),n=n[e[o]];return n[e[e.length-1]]=r,t},ou=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length;n++){if(r==null)return;r=r[e[n]]}return r},su=t=>{let r=[],n=0;for(let o=0;o<t.length;o++)if(r.length<2)r.push(t[o]);else if(t[o]===r[o%2]?n++:(r=[t[o-1],t[o]],n=1),n>=20)return(Wf==="test"||Wf==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},iu=t=>{let e=new WeakSet;function r(n){if(n&&typeof n=="object"){if(e.has(n))return!0;e.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(t)},au=(t,e)=>{let r=e instanceof Set?e:new Set(e),n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!r.has(o)&&(n[o]=t[o]);return n}});var lo,fo,uo,po=$(()=>{"use strict";se();lo=(function(){let t=0;function e(){return t++,t}return e})(),fo=lo,uo=(t,e,r)=>(Y(r,t)||r||t.key||lo()).toString()});var Gt,cu,Ne,Oi,lu,fu,uu,je,pu,ir,Ri=$(()=>{"use strict";Gt="production",cu=Gt,Ne=(t=Gt)=>t==="production",Oi=(t=Gt)=>t==="testing"||t==="test",lu=Oi,fu=(t=Gt)=>t==="staging",uu=(t=Gt)=>t==="local",je=(t=Gt)=>t==="development"||t==="dev"||t==="local",pu=(t,e=Gt)=>e[t],ir=(t=Gt)=>!Ne(t)});function ho(t,e,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||t.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,e),a&&t.apply(o,s)}}function mu(t,e=window){let r=function(){return t.apply(e,arguments)};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var du,hu,Ex,gu,tn,en,Kt,ar=$(()=>{"use strict";du=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},hu=t=>{let e={};return(...r)=>{let n=r[0];if(n in e)return e[n];{let o=t(n);return e[n]=o,o}}},Ex=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,gu=t=>Ex.test(t),tn=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},en=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(t,e);if(typeof o=="function")return o}return t},Kt=(t,e,...r)=>{let n=e?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[t]=="function"&&(s[t](e,...r),o=!0);return o}});var yu,bu=$(()=>{"use strict";ut();se();yu=(t,e)=>{let{__ref:r}=t,n=t.if;if(C(n)){let o;try{o=n(t,t.state,t.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"?Y(n,t)?r.__if=!0:delete r.__if:r.__if=!0}});var xu,Su,_u=$(()=>{"use strict";xu=(t,...e)=>{t&&e.map(r=>console.log(r))},Su=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function Au(t){let e;try{if(!window.localStorage)return;e=window.localStorage.getItem(t)}catch{return}if(e!==null)try{return JSON.parse(e)}catch{return}}function Eu(t,e){if(e!=null)try{if(!window.localStorage)return;let r=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,r)}catch{}}var wu,ku,vu,Cu,Tu=$(()=>{"use strict";ut();qr();wu=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),ku=(t,e,r=365)=>{if(ht(X)||ht(X.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;X.cookie=`${t}=${e};${o};path=/`},vu=t=>{if(ht(X)||ht(X.cookie))return;let e=`${t}=`,n=decodeURIComponent(X.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(e)===0)return s.substring(e.length,s.length)}return""},Cu=t=>{ht(X)||ht(X.cookie)||(X.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var rn,Ou,Ru,Pi=$(()=>{"use strict";rn={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"])},Ou=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"]),Ru=t=>rn.body.has(t)});var Ii,Pu,nn,yo,Et,Iu,$i,bo,$u,xo,Fi,Di,So,Li,on,Tx,ae,Fu,go,_o,Du,mo,Lu,Mu,Mi,Ni,ji,Bi,Vi,zi,Nu,wo=$(()=>{"use strict";er();Ui();se();ut();Ii="production",Pu=t=>t.sourcemap!==!1&&Ii!=="production",nn=t=>{if(t.includes("+"))return t.split("+").filter(ce);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!ce(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},yo=(t,e,r)=>{let n=[],o=nn(r);o&&(n=[...o]);let s=t.extends;return s&&(n=E(s)?[...n,...s]:[...n,s]),n},Et=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return n.includes(t)||(n=Array.isArray(t)?[...n,...t]:[...n,t],r.__extends=n),n},Iu=(t,e)=>{if(!t)return e;let{extends:r}=e,n=E(r)?r:[r],o=E(t)?t:[t];return{...e,extends:Kr(o,n)}},$i=()=>Math.random().toString(36).substring(2),bo={},$u={},xo=t=>bo[t.__hash],Fi=(t,e)=>{let r=$i();return k(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(bo[r]=e),e},Di=(t,e)=>t.__hash?e.concat(xo(t)):Fi(t,e),So=(t,e,r,n=new Set,o,s)=>{for(let i of t)E(i)?So(i,e,r,n,o,s):on(i,e,r,n,o,void 0,s);return e},Li=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends,c={...t};delete c.extends;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),o&&o.push(s)),a&&on(a,e,r,n,o,s,i),e},on=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(E(t))return So(t,e,r,n,o,i);let a=s;return k(t)?(a=t,t=_o(t,r)):i&&_(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends?Li(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},Tx=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),ae=(t,e,r,n,o)=>{e=Q(e);for(let s in e){if(Tx.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,r&&n?_(a)&&!E(a)?(r[s]=r[s]||{},Fu(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(_(i)&&_(a)){let c=r?r[s]=r[s]||{}:void 0,l=o?.[s];ce(s)?t[s]=ae(i,a,c,n,l):ae(i,a,c,n,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(E(i)&&E(a))t[s]=i.concat(a);else if(E(i)&&_(a)){let c=ae({},i);t[s]=ae(c,a)}}}}return t},Fu=(t,e,r,n)=>{if(n||(n=new WeakSet),!n.has(e)){n.add(e);for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=e[o];_(s)&&!E(s)?(t[o]=t[o]||{},Fu(t[o],s,r,n)):t[o]=r}}},go=(t,e,r)=>t.reduce((n,o,s)=>{let i=Q(o),a=r?r[s]:void 0;return ae(n,i,e,a)},{}),_o=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(k(t)){let i=o&&(o[t+"."+n]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(Ii==="test"||Ii==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},Du=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),mo=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return xo(t)||[];let s=on(t,[],e,new Set,r,void 0,n);return r?s:Di(t,s)},Lu=(t,e)=>{if(!t)return e;let r=E(t)?t:[t];return Kr(r,e)},Mu=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(ce(o)&&e.push(o),o==="extends"&&(typeof n[o]=="string"?e.push(n[o]):Array.isArray(n[o])&&(e=e.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(t),e},Mi=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant;if(t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i=="string"&&s&&o?.components){let c=`${i}.${s}`;o.components[c]?Et([c,...a],t):Et(t.extends,t)}else Et(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Et(i,t):Et(t.extends,t)}else Et(t.extends,t);return Ni(t,e,r),ji(t,e,r),Bi(t,e,r),t.component&&Et(Y(t.component,t),t),o.defaultExtends&&Et(o.defaultExtends,t),Xr(n.__extends)},Ni=(t,e,r={})=>{let{__ref:n}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Et(e.childProps.extends,t),n.__extends},ji=(t,e,r={})=>{let{__ref:n}=t,o=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Et(s,t),n.__extends},Bi=(t,e,r={})=>{let{__ref:n}=t,o=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&Et(o,t),n.__extends},Vi=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=Pu(r),a=i?[...n.__extends]:null,c=Xr(n.__extends.map((l,f)=>_o(l,o,r,f===0&&s)));if(i){let l=new WeakMap;for(let p=0;p<c.length;p++){let d=c[p],h=a[p];d&&_(d)&&k(h)&&l.set(d,h)}let f=[],u=mo(c,o,f,l);n.__extendsStack=u,n.__extendsNames=f}else{let l=mo(c,o);n.__extendsStack=l}return n.__extendsStack},zi=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Pu(r)){let s={},i=n.__extendsNames||[],a=go(o,s,i),c={};ae(t,a,c,void 0,s),n.__sourcemap=c}else{let s=go(o);ae(t,s)}return t},Nu=(t,e,r={})=>(Mi(t,e,r),Vi(t,e,r),zi(t,e,r),t)});function ju(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Bu(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Vu(t,e,r){let{context:n}=e||{},[o]=nn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var ce,Ui=$(()=>{"use strict";wo();ut();ce=t=>{if(!k(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function zu(t,e){let{props:r,on:n}=e,o=nr(t.split("on")[1]),s=n[o],i=r[t];C(s)?n[o]=(...a)=>{if(s(...a)!==!1&&C(i))return i(...a)}:n[o]=i}var Uu=$(()=>{"use strict";Zr();ut()});function Hi(t,e={}){let r=e.cachedKeys||[];for(let n in t){let o=t[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(C(o)||o!=null&&tn(this.context))){let h=nr(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],l=_(a)||C(a),f=_(c)||C(c);if(l||f)continue;let u=n.charAt(0);if(Hu.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=Wi.test(n)||Wu.test(n)||Rx(o),d=Fe.has(n);!p&&!d&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function qi(t=this,e){let r=e.cachedKeys||[];for(let n in t.props){let o=t.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=C(o)||o!=null&&tn(this.context);if(s&&i){zu(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Hu.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=_(c)||C(c),u=_(l)||C(l),p=Wi.test(n)||Wu.test(n),d=Fe.has(n);(p||d||f||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function Gi(t=this){let e=[];return Hi.call(this,t,{cachedKeys:e}),qi.call(this,t,{cachedKeys:e}),t}function qu(t={}){return t.on||(t.on={}),t.props||(t.props={}),Gi.call(this,t)}function Ki(t,e){this.__element.update({props:t},e)}function Eo(t){let e={update:Ki.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Wi,Wu,Hu,Ox,Rx,Co,ko,Gu,Ao,To,Oo,Xi,vo,Ku,Xu,Yi=$(()=>{"use strict";or();Uu();se();ut();Zr();ar();Wi=/^[A-Z]/,Wu=/^\d+$/,Hu=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),Ox=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),Rx=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(Ox.has(e)||Wi.test(e))return!0;return!1},Co=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return N(n)?{...n}:(o.__propsStack.push(n),{})};ko=t=>Ct(t)("string","number")?{inheritedString:t}:t,Gu=(t,e)=>!t||!e.length?!1:e.includes(t),Ao=(t,e)=>{let{__ref:r}=t,n=r.__propsStack||[],o=e.props;if(!o)return n;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=ko(i);n.unshift(c)}if(s){let c=ko(s);n.unshift(c)}return n};To=t=>{let e=new Set;return t.filter(r=>!r||Le.has(r)||e.has(r)?!1:(e.add(r),!0))},Oo=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(Le.has(o))return n;for(;C(o);)o=Y(o,e);return q(n,Q(o,{exclude:Le}))},{}),Eo(e),e.props),Xi=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Ao(t,e)]),_(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),E(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=To(o),n.__propsStack},vo=(t,e)=>{let{__ref:r}=t,n=Xi(t,e);n.length?Oo(n,t):(r.__propsStack=[],t.props={})},Ku=function(t,e,r){let{__ref:n}=t;if(n.__if)vo(t,e);else try{vo(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return Eo(t),t},Xu=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Ao(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=To(s),n.__propsStack.length&&Oo(n.__propsStack,e),e}});var Yu,Zi,Ji,Qi,ta,Zu,ea,ra,na,Ju,Qu=$(()=>{"use strict";wo();po();Gr();Yi();Pi();ut();Yu="production",Zi=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=rn.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},Ji=(t,e,r)=>{if(t===void 0)return(Yu==="test"||Yu==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Ct(t)("string","number")?Zi(t,e,r):C(t)?{props:t}:t},Qi=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},ta=(t,e,r,n,o)=>{if(!e)return o;if(he(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Zu=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},ea=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},ra=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),na=(t,e,r)=>{let n=Qi(t,e);return t.__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=yo(t,e,r),n.path=ea(t,e,r),n},Ju=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:Ji(t,e,r);if(!i)return;let a=ta(i,e,r,n,o),c=uo(i,a,r);na(i,a,c);let l=Co(i,a,c),f=ra(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var tp,oa,sa,ia,aa,ep,ca,rp,np,op,sp,ip=$(()=>{"use strict";er();or();se();ut();tp=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Ct(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},oa=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},sa=(t,e)=>{if(!t.includes("../"))return;let n=t.split("../").length-1;for(let o=0;o<n;o++){if(!e.parent)return null;e=e.parent}return e},ia=(t,e,r={})=>{let n=k(t)?t.split("/"):[t],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 c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},aa=(t,e,r={})=>{let o=t.__ref.__state;if(!ca(t))return;let s=oa(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=sa(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return ia(o,i,r)},ep=(t,e)=>{let r=t.__ref,n=aa(t,e);if(n===void 0)return t.state;if(Ct(n)("object","array"))return Q(n);if(Ct(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},ca=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Ct(r)("number","string","boolean"))},rp=function(t){return N(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},np=(t,e)=>{if(!t)return e||{};let r=t.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?e||{}:{},o=o[r[i]];return n},op=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=Q(n,De),s={[t.key]:o},i=_(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?eo(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},sp=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){q(t,e,De);return}(o?sr:At)(t,e,De)}});var ap,cp=$(()=>{"use strict";ap=(t,e)=>{let{__ref:r}=t,n=t.context||e.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=e.scope||r.root?.scope,s=n?.globalScope;if(!t.scope)o?t.scope=o:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(t.scope,i)}}});var lp,la,Be,fa,fp,ua=$(()=>{"use strict";ut();ar();lp=(t,e)=>{let r="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},la=(t,e,r,n,o)=>{if(t=en(t,e),!!C(t))try{let s=t.call(e,e,r||e.state,n||e.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},Be=(t,e,r)=>{if(!e)throw new Error("Element is required");Kt(t,e,r);let n=lp(t,e);if(n){let{state:o,context:s}=e;return la(n,e,o,s,r)}},fa=(t,e,r,n,o,s)=>{if(t=en(t,r),!!C(t))try{let i=t.call(r,e,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}},fp=(t,e,r,n)=>{Kt(t,r,e,n);let o=lp(t,r);if(o){let{state:s,context:i}=r;return fa(o,e,r,s,i,n)}}});var up,Ro,pa=$(()=>{"use strict";up={},Ro={}});var hp={};F(hp,{setup:()=>Ix,supabaseAdapter:()=>dp});var pp,Px,Ix,da,$x,dp,gp=$(()=>{"use strict";pp=new Map,Px=(t,e,r)=>`${t}|${e}|${r?"off":"on"}`,Ix=async({url:t,key:e,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let c=t||r&&`https://${r}.supabase.co`;if(!c||!e)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 l=Px(c,e,o===!1),f=pp.get(l);return f||(f=await n(c,e,a),f?.auth&&pp.set(l,f)),!f||!f.auth?null:dp(f)},da=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},$x=(t,{limit:e,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;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},dp=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,schema:r,select:n,params:o,headers:s,...i})=>{let c=(r?t.schema(r):t).from(e).select(n||"*");if(c=da(c,o),c=$x(c,i),s)try{for(let l in s)c.setHeader?c=c.setHeader(l,s[l]):t.rest&&(t.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return c},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).insert(n).select(o||"*"),update:({from:e,schema:r,data:n,params:o,select:s})=>{let a=(r?t.schema(r):t).from(e).update(n);return a=da(a,o),a.select(s||"*")},upsert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).upsert(n).select(o||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=da(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var yp={};F(yp,{restAdapter:()=>mp,setup:()=>Dx});var Fx,ge,Dx,mp,bp=$(()=>{"use strict";Fx=(t,e,r)=>{let n=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${n}${e}`);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()},ge=async(t,e)=>{let r=await globalThis.fetch(t,e),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}},Dx=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return mp(t,e,r,n)},mp=(t,e={},r,n={})=>{let o=r?.token||null,s=f=>{let u={...e,...f};return o&&(u.Authorization=`Bearer ${o}`),u},i=f=>({...s(f),"Content-Type":"application/json"}),a=f=>({...n,...f}),c=(f,u)=>{let p=u||t;if(f&&(f.startsWith("http://")||f.startsWith("https://")))return f;let d=f&&!f.startsWith("/")?"/":"";return`${p}${d}${f||""}`};return{name:"rest",setToken:f=>{o=f},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let f=await ge(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return f.error?null:f.data},signIn:async f=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await ge(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(f)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await ge(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:f,params:u,select:p,limit:d,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let S={...u};return p&&(S.select=p),d&&(S.limit=d),h&&(S.offset=h),m&&(S.single=!0),g&&(typeof g=="string"?S.order=g:Array.isArray(g)?S.order=g.map(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):g.by&&(S.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),ge(Fx(b||t,f||"",S),a({headers:s(y)}))},rpc:({from:f,params:u,headers:p,baseUrl:d})=>ge(c(`rpc/${f}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:f,data:u,headers:p,baseUrl:d})=>ge(c(f,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:f,data:u,params:p,method:d,headers:h,baseUrl:g})=>{let m=p?.id||u?.id,y=m?`${f}/${m}`:f;return ge(c(y,g),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(u)}))},delete:({from:f,params:u,headers:p,baseUrl:d})=>{let h=u?.id,g=h?`${f}/${h}`:f;return ge(c(g,d),a({method:"DELETE",headers:s(p)}))}}}});var Sp={};F(Sp,{localAdapter:()=>xp,setup:()=>Mx});var ha,Lx,Mx,xp,_p=$(()=>{"use strict";ha=(t,e)=>{if(!e)return!0;for(let r in e){let n=e[r];if(n===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(t[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(t[r]>n[o])||o==="gte"&&!(t[r]>=n[o])||o==="lt"&&!(t[r]<n[o])||o==="lte"&&!(t[r]<=n[o])||o==="neq"&&t[r]===n[o]||o==="like"&&!String(t[r]).includes(n[o]))return!1}else if(t[r]!==n)return!1}return!0},Lx=(t,{order:e,limit:r,offset:n,single:o})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[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}},Mx=async({data:t,...e})=>xp(t,e),xp=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!r[f])if(o)try{let u=localStorage.getItem(s+f);r[f]=u?JSON.parse(u):t[f]||[]}catch{r[f]=t[f]||[]}else r[f]=t[f]||[];return r[f]},a=f=>{if(o)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},c=(f,u,p,d)=>{let h=n[f];if(h)for(let g of h)g(p,d,{event:u,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:u,...p})=>{let h=i(f).filter(g=>ha(g,u));return Lx(h,p)},insert:async({from:f,data:u})=>{let p=i(f),h=(Array.isArray(u)?u:[u]).map(g=>{let m={id:g.id||++l,...g};return p.push(m),m});a(f);for(let g of h)c(f,"INSERT",g,null);return{data:Array.isArray(u)?h:h[0],error:null}},update:async({from:f,data:u,params:p})=>{let d=i(f),h=[];for(let g=0;g<d.length;g++)if(ha(d[g],p)){let m={...d[g]};Object.assign(d[g],u),h.push(d[g]),c(f,"UPDATE",d[g],m)}return a(f),{data:h,error:null}},delete:async({from:f,params:u})=>{let p=i(f),d=[];for(let h=p.length-1;h>=0;h--)ha(p[h],u)&&(d.push(p[h]),p.splice(h,1),c(f,"DELETE",null,d[d.length-1]));return a(f),{data:d,error:null}},subscribe:({from:f,on:u},p)=>{n[f]||(n[f]=[]);let d=(h,g,m)=>{u&&u!=="*"&&u!==m.event||p(h,g,m)};return n[f].push(d),()=>{let h=n[f].indexOf(d);h>-1&&n[f].splice(h,1)}}}}});var dn={};F(dn,{createAdapter:()=>Bx,default:()=>Yx,executeFetch:()=>pn,fetchPlugin:()=>xa,initAdapterAuth:()=>Fo,parseDuration:()=>an,queryClient:()=>Xx,registerAdapter:()=>jx,resolveDb:()=>Ap});var Nx,Po,Cp,jx,Bx,Ap,an,yt,Ep,sn,Vx,un,cn,ln,Io,ya,$o,zx,wp,ga,Tp,Op,cr,kp,Ux,vp,Wx,Do,Rp,Fo,ba,Pt,Bt,fn,Ve,Xt,me,Hx,qx,Gx,ma,Kx,pn,Xx,xa,Yx,ze=$(()=>{"use strict";P();Nx=["select","rpc","insert","update","delete","subscribe"],Po=Symbol.for("@symbo.ls/fetch:BUILTIN_ADAPTERS"),Cp=(()=>{if(typeof globalThis<"u"&&globalThis[Po])return globalThis[Po];let t={supabase:()=>Promise.resolve().then(()=>(gp(),hp)),rest:()=>Promise.resolve().then(()=>(bp(),yp)),local:()=>Promise.resolve().then(()=>(_p(),Sp))};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Po,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Po]}catch{}return t})(),jx=(t,e)=>{Cp[t]=e},Bx=t=>{let e={};for(let r of Nx)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},Ap=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,n=typeof e=="string"?e:typeof t=="string"?t:null;if(!n)return null;let o=Cp[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},an=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),n=e[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},yt=new Map,Ep=new Map,sn=new Map,Vx=(t,e)=>{if(t.cache?.key)return t.cache.key;let r=Wx(t.params),n=`${t.from}:${t.method}:${JSON.stringify(r||"")}`;return e?`${n}:${e}`:n},un=t=>yt.get(t)||null,cn=(t,e,r)=>{let n=yt.get(t),o={data:e,error:r,time:Date.now(),stale:!1};yt.set(t,o);let s=Ep.get(t);if(s)for(let i of s)C(i)&&i(o);return o},ln=t=>{if(t){let e=yt.get(t);e&&(e.stale=!0);return}for(let[,e]of yt)e.stale=!0},Io=t=>{if(t){yt.delete(t);return}yt.clear()},ya=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:k(t)?{staleTime:an(t),gcTime:3e5}:{staleTime:an(t.stale||t.staleTime)||6e4,gcTime:an(t.gc||t.gcTime||t.expire)||3e5,key:t.key},$o=null,zx=()=>{$o||($o=setInterval(()=>{let t=Date.now();for(let[e,r]of yt){let n=Ep.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&yt.delete(e)}},3e4),$o.unref&&$o.unref())};zx();wp=3,ga=t=>Math.min(1e3*2**t,3e4),Tp=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:wp,delay:ga}:typeof e=="number"?{count:e,delay:ga}:{count:e.count??wp,delay:C(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:ga}},Op=async(t,e)=>{let{count:r,delay:n}=e,o;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(o=i.error,s<r){let a=C(n)?n(s,o):n;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=C(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},cr={focus:new Set,online:new Set},kp=!1,Ux=()=>{if(kp||typeof window>"u")return;kp=!0;let t=()=>{for(let r of cr.focus)r()},e=()=>{for(let r of cr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},vp=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(k(t))return{from:t,method:"select",query:!0,on:"create"};if(_(t)){let n={...t};return n.from=n.from||r.__state||e.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},Wx=t=>(!t||C(t),t),Do=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},Rp=(t,e,r)=>{let n;if(!t)n=void 0;else if(C(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=C(s)?s(e,e.state):s}}return n},Fo=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(n,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await t.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},ba=async(t,e)=>{if(C(t.select))return t.auth!==!1&&await Fo(t,e),t;if(t.__resolved)return t.auth!==!1&&await Fo(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=Ap(t);let r=await t.__resolving;return delete t.__resolving,r?(r.auth=t.auth,r.url=t.url,r.key=t.key,t.__resolved=r,e.fetch=r,t.auth!==!1&&await Fo(r,e),r):null},Pt=(t,e,...r)=>{let n=C(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},Bt=(t,e,r,...n)=>{let o=t&&C(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},fn=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())e[s]=i;return e}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"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},Ve=(t,e,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=r.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&i in e?s.update(e,{preventFetch:!0,...n}):s.update({[i]:e},{preventFetch:!0,...n})}else{let i=r?{[r]:e}:e;s.update(i,{preventFetch:!0,...n})}},Xt=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},me=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||!e||!e.__ref||t.enabled===!1||C(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||C(t.skip)&&t.skip(e,e.state))return;let s=await ba(o,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:u,transform:p,single:d,auth:h,fields:g,as:m,limit:y,offset:b,order:S,headers:x,baseUrl:v,page:O,cursor:R,getNextPageParam:W,getPreviousPageParam:T,infinite:L,placeholderData:V,initialData:J,select:M,keepPreviousData:I}=t,H=k(M)?M:void 0;if(l&&C(e.getQuery)){let K=e.getQuery(s.name||"paths");K&&(H=K.select||K.length&&K.join(",")||H)}let G=Rp(f,e,r),it=ya(u),zr=Tp(t),pi=Do(e,r),tx=pi?`:${pi}`:"",nt=it?u?.key||`${a}:${c}:${JSON.stringify(G||"")}${L?":infinite":""}${O?":p"+JSON.stringify(O):""}${tx}`:null;if(!i.__fetchInitialized&&nt&&(i.__fetchInitialized=!0,J!==void 0)){let K=C(J)?J():J;cn(nt,K,null)}if((c==="select"||c==="rpc")&&nt&&it){let K=un(nt);if(K&&!K.error){let z=Date.now()-K.time,rt=K.stale||z>(it.staleTime||0),B=K.data;if(C(M)&&(B=M(B,e,e.state)),p&&(B=p(B,e,e.state)),Ve(e,B,m),!rt){Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(V!==void 0){let z=C(V)?V(e,e.state):V;z!==void 0&&Ve(e,z,m)}}if(nt&&sn.has(nt)&&!n.force){let K=sn.get(nt);try{let z=await Promise.race([K,new Promise((rt,B)=>setTimeout(()=>B("DEDUP_TIMEOUT"),15e3))]);if(z?.data!==void 0){let rt=z.data;C(M)&&(rt=M(rt,e,e.state)),p&&(rt=p(rt,e,e.state)),Ve(e,rt,m),Pt(e,"onFetchComplete",rt),Bt(t,e,"onFetchComplete",rt)}}catch{}return}let ex=!un(nt)?.data;Xt(e,{isFetching:!0,isLoading:ex,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart"),Bt(t,e,"onFetchStart");let re=r?.analyze?.emitNetwork,di=re?typeof performance<"u"?performance.now():Date.now():0;re&&re({phase:"start",mode:"query",from:a,method:c,cacheKey:nt,lang:pi});let mf=Op(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let B=await s.getSession();if(h===!0&&!B){let gt={message:"Not authenticated"};return Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:gt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",gt),Bt(t,e,"onFetchError",gt),{data:null,error:gt}}}let K=s[c];if(!C(K))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let z={from:a,select:H,params:G,single:d,limit:y,offset:b,order:S,headers:x,baseUrl:v},rt=Do(e,r);if(rt&&(z.headers={...z.headers,"Accept-Language":rt}),O!==void 0){if(_(O))O.offset!==void 0&&(z.offset=O.offset),O.limit!==void 0&&(z.limit=O.limit),O.cursor!==void 0&&(z.params={...z.params,cursor:O.cursor});else if(typeof O=="number"){let B=t.pageSize||y||20;z.offset=(O-1)*B,z.limit=B}}if(R!==void 0&&(z.params={...z.params,cursor:R}),c==="insert"||c==="update"||c==="upsert"){let B;if(g===!0||t.on==="submit")B=fn(e);else if(E(g)){let gt=fn(e);B={};for(let hi of g)B[hi]=gt[hi]}else e.state?.parse?B=e.state.parse():_(e.state)&&(B={...e.state});p&&(B=p(B,e,e.state)),z.data=B}if(c==="rpc"){let B=G;if(t.on==="submit"){let gt=fn(e);B=t.transformParams?t.transformParams(gt,e,e.state):gt}z.params=B}if(c==="subscribe"){let B=s.subscribe({from:a,params:G,on:t.subscribeOn},(gt,hi,rv)=>{Ve(e,gt,m),Pt(e,"onFetchComplete",gt),Bt(t,e,"onFetchComplete",gt)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return K(z)},zr);nt&&sn.set(nt,mf);try{let K=await mf;if(K?.subscribed)return;let{data:z,error:rt}=K||{};if(rt){nt&&cn(nt,null,rt),Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:rt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",rt),Bt(t,e,"onFetchError",rt),re&&re({phase:"error",mode:"query",from:a,method:c,cacheKey:nt,error:rt.message||rt,durationMs:(typeof performance<"u"?performance.now():Date.now())-di});return}if(z!==void 0){if((c==="select"||c==="rpc")&&nt){let gt=cn(nt,z,null);gt.gcTime=it?.gcTime||3e5}let B=z;L&&E(z)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(z):i.__pages.push(z),B=i.__pages.flat(),W&&(i.__nextPageParam=W(z,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),T&&(i.__prevPageParam=T(z,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),C(M)&&(B=M(B,e,e.state)),p&&(B=p(B,e,e.state)),(!I||B!==void 0)&&Ve(e,B,m),Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",B),Bt(t,e,"onFetchComplete",B),re&&re({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:nt,durationMs:(typeof performance<"u"?performance.now():Date.now())-di})}}catch(K){Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:K,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",K),Bt(t,e,"onFetchError",K),re&&re({phase:"error",mode:"query",from:a,method:c,cacheKey:nt,error:K.message||String(K),durationMs:(typeof performance<"u"?performance.now():Date.now())-di})}finally{nt&&sn.delete(nt)}},Hx=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||me;if(n==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(t,e,r))},qx=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),Ux();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:an(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&me(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Do(e,r),a=Vx(t,i),c=un(a),l=ya(t.cache);(!c||c.stale||Date.now()-c.time>(l?.staleTime||0))&&me(t,e,r,{force:!0})};cr.focus.add(s),n.__fetchCleanups.push(()=>cr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>me(t,e,r,{force:!0});cr.online.add(s),n.__fetchCleanups.push(()=>cr.online.delete(s))}},Gx=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():_(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=C(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Ve(t,i,o),s},ma=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Ve(t,n,e.as),delete r.__optimisticSnapshot)},Kx=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await ba(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:p,headers:d,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:S,onSettled:x}=t,v;if(c===!0||u==="submit")v=fn(e);else if(E(c)){let T=fn(e);v={};for(let L of c)v[L]=T[L]}else e.state?.parse?v=e.state.parse():_(e.state)&&(v={...e.state});l&&(v=l(v,e,e.state)),C(y)&&y(v,e,e.state);let O=m?Gx(e,t,v):null;s.__fetching=!0,Xt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart"),Bt(t,e,"onFetchStart");let R=r?.analyze?.emitNetwork,W=R?typeof performance<"u"?performance.now():Date.now():0;R&&R({phase:"start",mode:"mutation",from:a,method:i});try{if(p!==!1&&o.auth!==!1&&o.getSession){let G=await o.getSession();if(p===!0&&!G){O!==void 0&&ma(e,t);let it={message:"Not authenticated"};Pt(e,"onFetchError",it),Bt(t,e,"onFetchError",it);return}}let T=o[i];if(!C(T))return;let L={from:a,data:v,headers:d,baseUrl:h};t.params&&(L.params=Rp(t.params,e,r));let V=Do(e,r);V&&(L.headers={...L.headers,"Accept-Language":V});let J=Tp(t),M=await Op(()=>T(L),J),{data:I,error:H}=M||{};if(H){O!==void 0&&ma(e,t),Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:H,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",H),C(S)&&S(H,v,e),C(x)&&x(null,H,v,e),R&&R({phase:"error",mode:"mutation",from:a,method:i,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-W});return}if(delete s.__optimisticSnapshot,I!==void 0){let G=f?{[f]:I}:I;e.state?.update&&e.state.update(G,{preventFetch:!0})}if(Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",I),Bt(t,e,"onFetchComplete",I),C(b)&&b(I,v,e),C(x)&&x(I,null,v,e),R&&R({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-W}),g){let G=E(g)?g:[g];for(let it of G)if(it===!0||it==="*")for(let[zr]of yt)zr.startsWith(a+":")&&ln(zr);else ln(it)}}catch(T){O!==void 0&&ma(e,t),Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:T,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",T),Bt(t,e,"onFetchError",T),C(S)&&S(T,v,e),C(x)&&x(null,T,v,e),R&&R({phase:"error",mode:"mutation",from:a,method:i,error:T.message||String(T),durationMs:(typeof performance<"u"?performance.now():Date.now())-W})}finally{s.__fetching=!1}},pn=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=Y(t,e);if(!s)return;let i=E(s)?s.map(c=>vp(Y(c,e),e)).filter(Boolean):[vp(s,e)].filter(Boolean);for(let c of i){let l=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",f=l?Kx:me;c.on==="create"?f(c,e,n):Promise.resolve().then(()=>{Hx({...c,__runner:f},e,n)}),!l&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&qx(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let l of i)me(l,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__nextPageParam;if(l==null)return;let f={...c,cursor:l};me(f,e,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__prevPageParam;if(l==null)return;let f={...c,cursor:l};me(f,e,n,{direction:"previous",force:!0})}},Xx={invalidateQueries:t=>{if(!t){ln();return}if(k(t))for(let[e]of yt)(e.startsWith(t)||e.includes(t))&&ln(e);else if(E(t)){let e=t.join(":");for(let[r]of yt)r.includes(e)&&ln(r)}},removeQueries:t=>{if(!t){Io();return}if(k(t))for(let[e]of yt)(e.startsWith(t)||e.includes(t))&&Io(e)},getQueryData:t=>un(t)?.data??void 0,setQueryData:(t,e)=>{let r=un(t),n=C(e)?e(r?.data):e;cn(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await ba(r,e);if(!n)return;let o=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=n[t.method||"select"];if(!C(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let a=cn(o,i.data,null);a.gcTime=ya(t.cache)?.gcTime||3e5}return i},getCache:()=>yt,clear:()=>Io(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of yt)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||Io(r))}},xa={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||sn.clear(),pn(e,t,t.state,t.context))}},Yx=pn});function Mo(t){let e=this,{__ref:r}=e,n=[].concat(t),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",e.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function Ip(t){let e=this,{parent:r}=e;if(C(t))return r.state&&t(r,r.state,r.context)?r:r.parent?r.lookup(t):void 0;if(e[t])return e[t];for(;r.param!==t;){if(r[t])return r[t];if(r=r.parent,!r)return}return r}function $p(t){let e=this,{__ref:r}=e,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=e[s];if(s===t)return i;if(C(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function Fp(t,e=[]){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===t)e.push(a);else if(C(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function _a(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];if(_(n)&&o)_a.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function Dp(t){let e=this;if(Be("beforeRemove",e,t)===!1)return e;C(e.node.remove)?e.node.remove():Ne()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=to(e.parent.__ref.__children,e.key)),Be("remove",e,t)}function Lp(t){return this[t]}function Mp(t,e){let r=this;if(t)return r.update(t,e),r}function Np(t){return t?this.__ref&&this.__ref[t]:this.__ref}function No(){return this.getRef("__children").map(e=>this[e])}function jo(){return this.getRef().path}function Vo(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=Pp();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=C(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=Pp()),t?e?.[t]:e}function zo(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function Uo(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Wo(t){let e=this.getRoot()?.context;return t?e[t]:e}function Ho(t){let e=this.context;return t?e[t]:e}function wa(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Fe.has(r)&&!no.has(r)||e.push(r);return e}function ka(t=[]){let e=this,r={},n=wa.call(e),o=n.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=C(c&&c.parse)?c.parse():c;r[a]=C(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...u}=e[a];r[a]=u}else vt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Lo(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=ka.call(r,t),o=t.length?new Set(t):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=>N(a)?Lo.call(a,t,e):a):N(i)&&(n[s]=Lo.call(i,t,e))}return n}function hn(...t){if(ye!=="test"&&ye!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
16
+ `,"font-weight: bold",e[n])):(console.log(r.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function Vp(...t){(ye==="test"||ye==="development")&&console.log(...t)}function qo(...t){(ye==="test"||ye==="development")&&console.warn(...t)}function lr(...t){if(ye==="test"||ye==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&hn.call(this),new Error(...t)}}function Go(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function Ko(t){let e=t||this,{key:r,parent:n}=e,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function Xo(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,n={},o;for(let s in t)t[s]!==r[s]&&(o=!0,n[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(n,Q(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 zp(t,...e){let r=this.context,n=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(n)try{let o=n.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{lr.call(this,s)}),o}catch(o){if(lr.call(this,o),r?.strictMode)throw o}}async function Yo(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ze(),dn));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ze(),dn));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(ze(),dn)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.fetch=n,delete e.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ze(),dn));await o(n,t.context)}return n}function Zo(t){let e=this,r=t||Ro.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(Sa(e,n),r===!0)return n;let o=oS[r];return o?o(n):n}function Wp(t,e){return!!(Jr.has(t)||e?.context?.methods?.[t])}var ye,jp,Bo,Pp,Bp,Sa,Zx,Up,Jx,Qx,tS,eS,rS,nS,oS,Hp=$(()=>{"use strict";ua();or();ut();se();Ri();er();pa();ye="production";jp=null,Bo=t=>{jp=t||null},Pp=()=>jp||null;Bp=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});Sa=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&Zx(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&Sa(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&Sa(i,e)},Zx=(t,e)=>{let n=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;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])}},Up=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
17
+ ${Up(i,e+1)}
19
18
  ${r}}`).join(`
20
- `):""},Zx=t=>`{
21
- ${zp(t,1)}
22
- }`,Jx=t=>{let e={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;e.include.push(a),r(n[i],a)}s.length&&(e.fields[o||"_root"]=s)};return r(t,""),e},Qx=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=e(t),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},tS=(t,e)=>{let r=[],n=[],o=new Set,s=(f,u,p)=>{o.add(u),p&&n.push(`LEFT JOIN ${u} ON ${u}.${p}_id = ${p}.id`);for(let d in f)f[d]===!0?r.push(`${u}.${d}`):s(f[d],d,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...o][0]||"_root",c=r.length?r.join(", "):"*",l=n.length?`
19
+ `):""},Jx=t=>`{
20
+ ${Up(t,1)}
21
+ }`,Qx=t=>{let e={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;e.include.push(a),r(n[i],a)}s.length&&(e.fields[o||"_root"]=s)};return r(t,""),e},tS=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=e(t),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},eS=(t,e)=>{let r=[],n=[],o=new Set,s=(f,u,p)=>{o.add(u),p&&n.push(`LEFT JOIN ${u} ON ${u}.${p}_id = ${p}.id`);for(let d in f)f[d]===!0?r.push(`${u}.${d}`):s(f[d],d,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...o][0]||"_root",c=r.length?r.join(", "):"*",l=n.length?`
23
22
  `+n.join(`
24
23
  `):"";return`SELECT ${c}
25
- FROM ${a}${l}`},eS=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?e.push(i):r(n[s],i)}};return r(t,""),e},rS=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},nS={graphql:Zx,"json-api":Jx,odata:Qx,sql:tS,supabase:rS,paths:eS}});var oS,Hp,qp=$(()=>{"use strict";po();oS={snapshotId:fo},Hp=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=oS.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var va,Gp,Kp=$(()=>{va=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Gp=t=>typeof t=="string"&&va.has(t)});async function Xp(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}var Yp=$(()=>{"use strict"});function sS(t){return/^[0-9.]+$/.test(t)&&t!==""}var Zt,Ue,gn,Jt,Zp,Jp=$(()=>{"use strict";Zt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${Zt.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${Zt.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${Zt.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${Zt.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!sS(e)?`${Zt.symbols.url}/${t}`:`${Zt.symbols.url}/${t}/${e}.js`}},Ue={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},gn=(t={})=>{let{packageManager:e}=t;return Ue[e]||null},Jt=(t,e="latest",r="esmsh")=>(Zt[r]||Zt.esmsh).formatUrl(t,e),Zp=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=Jt(s,i,e)}return`<script type="importmap">{
24
+ FROM ${a}${l}`},rS=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?e.push(i):r(n[s],i)}};return r(t,""),e},nS=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},oS={graphql:Jx,"json-api":Qx,odata:tS,sql:eS,supabase:nS,paths:rS}});var sS,qp,Gp=$(()=>{"use strict";po();sS={snapshotId:fo},qp=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=sS.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var va,Kp,Xp=$(()=>{va=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Kp=t=>typeof t=="string"&&va.has(t)});async function Yp(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}var Zp=$(()=>{"use strict"});function iS(t){return/^[0-9.]+$/.test(t)&&t!==""}var Yt,Ue,gn,Zt,Jp,Qp=$(()=>{"use strict";Yt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${Yt.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${Yt.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${Yt.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${Yt.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!iS(e)?`${Yt.symbols.url}/${t}`:`${Yt.symbols.url}/${t}/${e}.js`}},Ue={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},gn=(t={})=>{let{packageManager:e}=t;return Ue[e]||null},Zt=(t,e="latest",r="esmsh")=>(Yt[r]||Yt.esmsh).formatUrl(t,e),Jp=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=Zt(s,i,e)}return`<script type="importmap">{
26
25
  "imports": ${JSON.stringify(o,null,2)}
27
- }<\/script>`}});var Qp,td=$(()=>{"use strict";Qp=t=>{if(!t)return"";let e=new Date(t),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),n=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${n}, ${r}`}});var ed,rd=$(()=>{"use strict";ed=(t,e)=>{let r=setTimeout(()=>{let{props:n}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(n.height==="auto")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{t.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else t.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var nd,od=$(()=>{"use strict";nd=function(e){let r=[0,1];for(let n=2;n<=e;n++)r[n]=r[n-1]+r[n-2];return r[e]}});var sd,id=$(()=>{"use strict";sd=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function mn(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=n.createElement("script");a.src=t,a.async=e.async===!0,a.type=e.type||"text/javascript",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},n.head.appendChild(a)})}async function pd(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=n.createElement("link");a.href=t,a.rel=e.rel||"stylesheet",a.type="text/css",a.media=e.media||"all",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},n.head.appendChild(a)})}var ad,cd,ld,fd,ud,dd=$(()=>{"use strict";ad=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=e,i.src=t,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),cd=(t,e=document,r="text/javascript")=>new Promise((n,o)=>{let s=e.createElement("script");s.type=r,s.src=t;let i=e.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;",e.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),n()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),ld=(t,e=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",t,!1),o.send(),o.status===200){let s=e.createElement("script");s.type=n,s.text=o.responseText,e.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${t}`)},fd=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),ud=(t,e=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=e,s.id=o,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}}});function cS(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!aS(o))return o;let s=e[o];return s?.src?s.src:o},n={...t};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 Jo(t,e){if(!t||!e)return;let r=e.split("."),n=t;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function lS(t,e,r){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=r?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=r?.state||{},l={...t};for(let[f,u]of Object.entries(l))typeof u!="string"||!u.includes("{{")||(l[f]=u.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,d,h)=>{let g=d.trim();if(h==="polyglot")return a[g]??Jo(a,g)??p;if(h==="getLocalStateLang")return Jo(c,g+s)??p;let m=Jo(c,g);return m!==void 0?m:a[g]??Jo(a,g)??p}));return l}function hd(t){let e={...t};for(let[r,n]of Object.entries(e))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function md(t,e,r,{isProduction:n=!1,channel:o="production"}={}){let s=t.pages?.[e],i=_(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=hd(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=hd(f),p={};if(t.integrations?.seo?p={...t.integrations.seo,...u,...c}:Object.keys(u).length?p={...u,...c}:p={...c},!p.title){let g=t.name||t.key;g?n?p.title=g:o==="development"?p.title=`${g} / dev:symbo.ls`:o==="staging"?p.title=`${g} / staging:symbo.ls`:p.title=`${g} / symbo.ls`:p.title="Symbols demo"}p=lS(p,t,r),p.title&&(l.has("title")||!p["og:title"])&&(l.has("og:title")||(p["og:title"]=p.title)),p.description&&(l.has("description")||!p["og:description"])&&(l.has("og:description")||(p["og:description"]=p.description)),p.title&&!p["twitter:title"]&&(p["twitter:title"]=p.title),p.description&&!p["twitter:description"]&&(p["twitter:description"]=p.description);let d=r?.actualPathname||e;if(p["og:url"]||p.url){let g=(p["og:url"]||p.url||"").replace(/\/$/,"");if(g&&d&&d!=="/"){let m=d.startsWith("/")?d:"/"+d;p["og:url"]=g+m}}p=cS(p,t.files);let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[g,m]of Object.entries(p))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?p[g]=y:g==="title"?p[g]=h:delete p[g]}return p}var It,iS,gd,aS,yd=$(()=>{"use strict";ut();It=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},iS=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${It(r)}"`).join(" "),gd=(t,e)=>(e||(t={...t,robots:"noindex"}),Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${It(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${It(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${It(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="string")n.push(`<link rel="icon" href="${It(f)}">`);else if(typeof f=="object"){let u=iS(f);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel="icon" ${u}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).filter(([p,d])=>d!==void 0).map(([p,d])=>`${p}="${It(d)}"`).join(" ");n.push(`<link rel="alternate" ${u}>`)}}),n;let i=(l,f,u="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${u}="${It(l)}" content="${It(f)}">`);else if(Array.isArray(f))f.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")n.push(`<meta ${u}="${It(l)}" content="${It(p)}">`);else if(typeof p=="object"){let d=Object.entries(p).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${It(g)}"`).join(" ");n.push(`<meta ${d}>`)}});else if(typeof f=="object"){let p=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${It(h)}"`).join(" ");n.push(`<meta ${p}>`)}};if(o.startsWith("http-equiv:")){let l=o.replace("http-equiv:","");return i(l,s,"http-equiv"),n}if(o.startsWith("itemprop:")){let l=o.replace("itemprop:","");return i(l,s,"itemprop"),n}let c=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(l=>o.startsWith(l));if(c){let l=o.replace(c,"");return i(`${c.replace(":","")}:${l}`,s,c==="twitter:"||c==="DC:"||c==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let l=o.startsWith("apple:")?"apple-":"msapplication-",f=o.replace(/^apple:|^msapplication:/,"");return i(`${l}${f}`,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(`
28
- `)),aS=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var Ca,bd,xd=$(()=>{"use strict";ut();Ca=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),bd=(t,e)=>(t=parseFloat(t),_(e)&&(e=Object.values(e)),Ca(t,e))});function yn(t){let e=String(t||"").trim();if(!e)return{owner:Sd,key:"",full:""};let r=null,n=e;if(e.includes("/")){let s=e.indexOf("/");r=e.slice(0,s),n=e.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=Sd);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function Aa(t,e={}){if((e.provider||"kv")==="api")return _d(t,e);let n=await pS(t,e);return n||_d(t,e)}async function pS(t,e={}){let r=e.kvBaseUrl||fS,n=e.env||"production",o=`${r}/kv/${encodeURIComponent(t)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function _d(t,e={}){let r=e.apiBaseUrl||uS,{key:n}=yn(t);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(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(d=>{let{key:h}=yn(d?.key);return h.toLowerCase()===n.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(f,{method:"GET"});if(!u.ok)return null;let p=await u.json();return p?.data||p||null}catch{return null}}async function wd(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(_(n))return n;if(k(n)){let{full:o}=yn(n);if(!o)return null;try{let s=await Aa(o,e);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 Sd,fS,uS,Qo,ts,kd=$(()=>{"use strict";ut();Sd="system",fS="https://smbls-kv.nika-980.workers.dev",uS="https://api.symbols.app";Qo=(t,e)=>{for(let r in e)r in t?_(t[r])&&_(e[r])&&Qo(t[r],e[r]):t[r]=e[r]},ts=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r];if(_(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(_(n[o])&&_(t[o]))if(o==="designSystem")Qo(t[o],n[o]);else for(let s in n[o])s in t[o]||(t[o][s]=n[o][s]);else o in t||(t[o]=n[o])}}}});var vd,Cd,Ad,es,Ed,rs,Td,fr,Od=$(()=>{"use strict";ut();vd=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Cd=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},Ad=t=>t.replace(/[^a-zA-Z0-9_]/g,""),es=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),Ed=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),rs=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Td=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},fr=t=>{if(T(t))return t;if(k(t))return t.split(" ");if(_(t))return Object.values(t);if(se(t))return[t]}});var Rd,Pd=$(()=>{"use strict";Rd=()=>{let t=document.styleSheets[0],e="";if(t)try{let r=t.cssRules||t.rules;for(let n=0;n<r.length;n++)e+=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 e}});var Tt,bn,ns,os,Id=$(()=>{"use strict";Tt=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let r=t.context;if(!r)return null;let n=r.assets&&r.assets[e]||r.files&&r.files[e];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},bn=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let r=t.some(o=>typeof o.width=="number"),n=[];for(let o of t)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&e?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},ns=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return bn(e,{keepOneX:!1})},os=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let r=new Map;for(let a of t.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,c]of r)a!==t.type&&n.push({tag:"source",attr:{type:a,srcset:bn(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=bn(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var $d={};F($d,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>Uf,DOMQ_PROPERTIES:()=>Fe,ENV:()=>au,HTML_TAGS:()=>rn,METHODS:()=>Jr,METHODS_EXL:()=>oo,NODE_ENV:()=>Kt,OPTIONS:()=>Ro,PACKAGE_MANAGER_TO_CDN:()=>Ue,PARSED_DOMQ_PROPERTIES:()=>no,PROPS_METHODS:()=>Le,STATE_METHODS:()=>De,STATE_PROPERTIES:()=>zf,SVG_TAGS:()=>Tu,TYPES:()=>Jn,UNIVERSAL_RESERVED_KEYS:()=>va,addCaching:()=>na,addContext:()=>ra,addExtend:()=>Du,addExtends:()=>Et,addItemAfterEveryElement:()=>Of,addProtoToArray:()=>eo,addRef:()=>Qi,applyDependentState:()=>np,applyEvent:()=>la,applyEventUpdate:()=>fa,applyExtends:()=>Mu,applyProps:()=>vo,arrayContainsOtherArray:()=>wf,arraysEqual:()=>Pf,arrayzeValue:()=>fr,buildImgSrcset:()=>ns,buildSourcesAndImg:()=>os,cache:()=>fp,call:()=>Vp,captureSnapshot:()=>Hp,checkForStateTypes:()=>Qu,checkIfInherits:()=>ca,checkIfStringIsInArray:()=>Ff,clone:()=>Gf,cloneAndMergeArrayExtend:()=>go,cloneFunction:()=>gu,concatAddExtends:()=>Pu,copyJavaScriptToClipboard:()=>Cd,copyStringToClipboard:()=>vd,createBasedOnType:()=>Ji,createElement:()=>Zu,createElementExtends:()=>Mi,createExtends:()=>yo,createExtendsFromKeys:()=>nn,createExtendsStack:()=>Vi,createIfConditionFlag:()=>mu,createInheritedState:()=>tp,createKey:()=>uo,createNestedObject:()=>tu,createNestedObjectByKeyPath:()=>rp,createObjectWithoutPrototype:()=>Ti,createParent:()=>ta,createPath:()=>ea,createProps:()=>Co,createPropsStack:()=>Xi,createRoot:()=>Yu,createScope:()=>ip,createSnapshotId:()=>fo,customDecodeURIComponent:()=>Vf,customEncodeURIComponent:()=>Bf,cutArrayAfterValue:()=>Ef,cutArrayBeforeValue:()=>Af,debounce:()=>ho,debounceOnContext:()=>pu,decodeNewlines:()=>jf,deepClone:()=>J,deepContains:()=>Jf,deepDefaults:()=>Qo,deepDestringifyFunctions:()=>Bt,deepExtend:()=>Li,deepMerge:()=>q,deepMergeExtends:()=>ae,deepStringifyFunctions:()=>so,defineSetter:()=>jp,destringifyGlobalScope:()=>ao,detectHeightOnInit:()=>ed,detectInfiniteLoop:()=>ou,document:()=>X,encodeNewlines:()=>Nf,error:()=>lr,excludeKeysFromObject:()=>iu,exec:()=>Y,extendCachedRegistry:()=>Iu,extendStackRegistry:()=>bo,extractArrayExtend:()=>So,fetchLibraryData:()=>Aa,fibonacciNumberByIndex:()=>nd,filterArrays:()=>If,filterArraysFast:()=>$f,finalizeExtends:()=>zi,findClosestNumber:()=>Ca,findClosestNumberInFactory:()=>bd,findInheritedState:()=>aa,findKeyPosition:()=>Lf,flattenExtend:()=>on,formatDate:()=>Qp,generateHash:()=>$i,generateKey:()=>lo,generateMetaTags:()=>gd,get:()=>Dp,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>Nu,getCdnProviderFromConfig:()=>gn,getChildStateInKey:()=>ia,getChildren:()=>No,getContext:()=>Ho,getCookie:()=>ku,getDB:()=>Yo,getEmotionStylesheet:()=>Rd,getExtendsInElement:()=>Lu,getExtendsStack:()=>mo,getExtendsStackRegistry:()=>Di,getFrequencyInArray:()=>kf,getHashedExtend:()=>xo,getImportMapScript:()=>Zp,getInObjectByPath:()=>nu,getLocalStorage:()=>Cu,getNev:()=>uu,getPageMetadata:()=>md,getParentStateInKey:()=>sa,getPath:()=>jo,getQuery:()=>Zo,getRef:()=>Mp,getRoot:()=>zo,getRootContext:()=>Wo,getRootData:()=>Uo,getRootState:()=>Vo,getRootStateInKey:()=>oa,getSpreadChildren:()=>ju,global:()=>xf,hasFunction:()=>Qr,hasHandlerPlugin:()=>tn,hasOwnProperty:()=>Xf,inheritChildExtends:()=>ji,inheritChildPropsExtends:()=>Ni,inheritParentProps:()=>Ao,inheritRecursiveChildExtends:()=>Bi,initProps:()=>Gu,is:()=>Ct,isArray:()=>T,isBoolean:()=>ki,isContextComponent:()=>Bu,isCyclic:()=>su,isDOMNode:()=>kt,isDate:()=>Ci,isDefined:()=>vt,isDevelopment:()=>je,isEmpty:()=>Ai,isEmptyObject:()=>Yf,isEqualDeep:()=>Ei,isFunction:()=>C,isHtmlElement:()=>Zn,isLocal:()=>fu,isMethod:()=>Up,isMobile:()=>_u,isNode:()=>he,isNot:()=>_f,isNotProduction:()=>ir,isNull:()=>vi,isNumber:()=>se,isObject:()=>_,isObjectLike:()=>N,isPhoto:()=>sd,isProduction:()=>Ne,isStaging:()=>lu,isState:()=>ep,isString:()=>k,isStringFunction:()=>hu,isTest:()=>Oi,isTesting:()=>cu,isUndefined:()=>ht,isUniversallyReservedKey:()=>Gp,isValidHtmlTag:()=>Ou,joinArrays:()=>Kr,jointStacks:()=>Fu,keys:()=>wa,loadCssFile:()=>fd,loadJavascript:()=>ud,loadJavascriptFile:()=>ad,loadJavascriptFileEmbedSync:()=>ld,loadJavascriptFileSync:()=>cd,loadRemoteCSS:()=>pd,loadRemoteScript:()=>mn,log:()=>Bp,logGroupIf:()=>xu,logIf:()=>bu,lookdown:()=>Ip,lookdownAll:()=>$p,lookup:()=>Pp,lowercaseFirstLetter:()=>nr,makeObjectWithoutPrototype:()=>Zf,map:()=>Hf,mapStringsWithContextComponents:()=>_o,matchesComponentNaming:()=>ce,memoize:()=>du,merge:()=>et,mergeSharedLibraries:()=>ts,nextElement:()=>Go,normalizeLibraryKey:()=>yn,objectToString:()=>io,objectizeStringProperty:()=>ko,overwrite:()=>co,overwriteDeep:()=>At,overwriteShallow:()=>sr,overwriteState:()=>op,parse:()=>ka,parseDeep:()=>Lo,pickupElementFromProps:()=>qi,pickupPropsFromElement:()=>Hi,previousElement:()=>Ko,propExists:()=>qu,propertizeElement:()=>Gi,propertizeUpdate:()=>Hu,remove:()=>Fp,removeChars:()=>Ad,removeCookie:()=>vu,removeDuplicateProps:()=>To,removeDuplicatesInArray:()=>Xr,removeFromArray:()=>vf,removeFromObject:()=>Qf,removeNestedKeyByPath:()=>eu,removeValueFromArray:()=>to,removeValueFromArrayAll:()=>Tf,reorderArrayByValues:()=>Rf,replaceLiteralsWithObjectFields:()=>rr,replaceOctalEscapeSequences:()=>Mf,resolveAsset:()=>Tt,resolveHandler:()=>en,resolveSharedLibraries:()=>wd,returnValueAsText:()=>Zi,runPluginHook:()=>Xt,self:()=>Sf,setActiveRootState:()=>Bo,setCookie:()=>wu,setHashedExtend:()=>Fi,setInObjectByPath:()=>ru,setLocalStorage:()=>Au,setNodeStyles:()=>_a,setProps:()=>Lp,setPropsPrototype:()=>Eo,spotByPath:()=>Mo,srcsetFor:()=>bn,stringIncludesAny:()=>ro,stringToObject:()=>Kf,swapItemsInArray:()=>Cf,syncProps:()=>Oo,toCamelCase:()=>es,toDashCase:()=>rs,toDescriptionCase:()=>Td,toTitleCase:()=>Ed,toggleFullscreen:()=>Xp,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>lp,trimStringFromSymbols:()=>Df,unstackArrayOfObjects:()=>Qn,update:()=>Ki,updateProps:()=>Ku,variables:()=>Xo,verbose:()=>hn,warn:()=>qo,window:()=>w});var P=$(()=>{"use strict";po();Ri();ut();ie();ar();er();Gr();yu();Su();Zr();qr();Eu();Pi();Ui();Yi();wo();Ju();sp();or();ap();Wp();pa();qp();ua();Kp();Yp();Jp();td();rd();od();id();dd();yd();xd();kd();Od();Pd();Id()});var Tb=mi((gF,Eb)=>{var Lr=1e3,Mr=Lr*60,Nr=Mr*60,Qe=Nr*24,xk=Qe*7,Sk=Qe*365.25;Eb.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return _k(t);if(r==="number"&&isFinite(t))return e.long?kk(t):wk(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function _k(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Sk;case"weeks":case"week":case"w":return r*xk;case"days":case"day":case"d":return r*Qe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Nr;case"minutes":case"minute":case"mins":case"min":case"m":return r*Mr;case"seconds":case"second":case"secs":case"sec":case"s":return r*Lr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function wk(t){var e=Math.abs(t);return e>=Qe?Math.round(t/Qe)+"d":e>=Nr?Math.round(t/Nr)+"h":e>=Mr?Math.round(t/Mr)+"m":e>=Lr?Math.round(t/Lr)+"s":t+"ms"}function kk(t){var e=Math.abs(t);return e>=Qe?ci(t,e,Qe,"day"):e>=Nr?ci(t,e,Nr,"hour"):e>=Mr?ci(t,e,Mr,"minute"):e>=Lr?ci(t,e,Lr,"second"):t+" ms"}function ci(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var Rb=mi((mF,Ob)=>{function vk(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=Tb(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let u=0;for(let p=0;p<f.length;p++)u=(u<<5)-u+f.charCodeAt(p),u|=0;return r.colors[Math.abs(u)%r.colors.length]}r.selectColor=e;function r(f){let u,p=null,d,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),S=b-(u||b);y.diff=S,y.prev=u,y.curr=b,u=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,(O,R)=>{if(O==="%%")return"%";x++;let W=r.formatters[R];if(typeof W=="function"){let E=m[x];O=W.call(y,E),m.splice(x,1),x--}return O}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=f,g.useColors=r.useColors(),g.color=r.selectColor(f),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(f)),h),set:m=>{p=m}}),typeof r.init=="function"&&r.init(g),g}function n(f,u){let p=r(this.namespace+(typeof u>"u"?":":u)+f);return p.log=this.log,p}function o(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let u=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let p of u)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function s(f,u){let p=0,d=0,h=-1,g=0;for(;p<f.length;)if(d<u.length&&(u[d]===f[p]||u[d]==="*"))u[d]==="*"?(h=d,g=p,d++):(p++,d++);else if(h!==-1)d=h+1,g++,p=g;else return!1;for(;d<u.length&&u[d]==="*";)d++;return d===u.length}function i(){let f=[...r.names,...r.skips.map(u=>"-"+u)].join(",");return r.enable(""),f}function a(f){for(let u of r.skips)if(s(f,u))return!1;for(let u of r.names)if(s(f,u))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function l(){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}Ob.exports=vk});var Pb=mi((wt,li)=>{wt.formatArgs=Ak;wt.save=Ek;wt.load=Tk;wt.useColors=Ck;wt.storage=Ok();wt.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})();wt.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 Ck(){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 t;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&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Ak(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+li.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),t.splice(n,0,e)}wt.log=console.debug||console.log||(()=>{});function Ek(t){try{t?wt.storage.setItem("debug",t):wt.storage.removeItem("debug")}catch{}}function Tk(){let t;try{t=wt.storage.getItem("debug")||wt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Ok(){try{return localStorage}catch{}}li.exports=Rb()(wt);var{formatters:Rk}=li.exports;Rk.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var _t=null,Kn=0,Xn=[],Ur=()=>_t,cx=t=>{_t=t};function oe(t){let e=new Set;function r(){return _t&&(e.add(_t),_t._sources.add(s)),t}function n(i){i!==t&&(t=i,bf(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:"signal"};return s}function lx(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){xi(o);let s=_t;_t=o;try{let i=t();i!==e?(e=i,r=!1,bf(n)):r=!1}finally{_t=s}},_notify(){r=!0,n.size>0&&o._execute()},get(){return _t&&(n.add(_t),_t._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var yi=new Set,bi=!1;function ft(t,e){let r=e?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;xi(n);let o=_t;_t=n;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{_t=o}},_notify(){n._disposed||(Kn>0?Xn.push(n):yf(n))},dispose(){n._disposed=!0,xi(n)}};return n._execute(),n}function Ie(t){Kn++;try{t()}finally{Kn--,Kn===0&&ux()}}function yf(t){yi.add(t),bi||(bi=!0,queueMicrotask(fx))}function fx(){bi=!1;let t=Array.from(yi).sort((e,r)=>e._depth-r._depth);yi=new Set;for(let e=0;e<t.length;e++){let r=t[e];r._disposed||r._execute()}}function ux(){for(let t=0;t<Xn.length;t++)yf(Xn[t]);Xn.length=0}function bf(t){let e=Array.from(t);for(let r=0;r<e.length;r++)e[r]._notify()}function xi(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var $e=Symbol("store"),Yn=Symbol("signals"),Si=t=>!t||typeof t!="object"||Array.isArray(t)||t[$e]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function jt(t,e,r){r===void 0&&(r=0);let n={},o={},s=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let y in t){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(t,y))continue;let b=t[y];r<s&&b&&typeof b=="object"&&!Si(b)?(o[y]=b,n[y]=oe(jt(b,e,r+1))):(o[y]=b,n[y]=oe(b))}let i=new Proxy(o,{get(y,b){if(b===$e)return!0;if(b===Yn)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return u;if(b==="values")return p;if(b==="replace")return d;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return c;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"&&Ur()!=null)return n[b]=oe(void 0),n[b].get()},set(y,b,S){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=S,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=S,S&&typeof S=="object"&&!Si(S)?n[b].set(jt(S,e,r+1)):n[b].set(S)):(y[b]=S,S&&typeof S=="object"&&!Si(S)?n[b]=oe(jt(S,e,r+1)):n[b]=oe(S)),!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){Ie(()=>{for(let x in y)x!=="__proto__"&&(i[x]=y[x])});let S=o.__element;return S&&S.onUpdate&&!b?.quiet&&S.onUpdate(S,i,S.context),i}function c(y){return a(y,{quiet:!0})}function l(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let S in n){if(S==="parent"||S==="root"||S.startsWith("__"))continue;let x=n[S].peek();x&&x[$e]?b[S]=x.parse(y):b[S]=x}return b}function f(){return Ie(()=>{for(let y in n)delete i[y]}),i}function u(){return Object.keys(n)}function p(){return Object.keys(n).map(y=>n[y].peek())}function d(y){return Ie(()=>{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(){f(),o.__element=null,o.parent=null}return i}function mt(t){return t&&t[$e]===!0}function px(t){return t[Yn]}function wi(t,e){let r={},n={};if(t&&typeof t=="object")for(let i in t)n[i]=t[i],r[i]=oe(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[Yn];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[$e]?a[_i]:null}return null};return new Proxy(n,{get(i,a){return a===$e?!0:a===Yn?r:a===_i?e:a==="__raw"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():e&&a!=="then"&&a!=="constructor"?e[a]:i[a]},set(i,a,c){let l=o(a);return l?(l===r&&(i[a]=c),l[a].set(c),!0):(i[a]=c,r[a]=oe(c),!0)},has(i,a){if(a in r||a in i)return!0;let c=e;for(;c;){if(a in c)return!0;c=c[$e]?c[_i]: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 _i=Symbol("scope.parent");var gr={};F(gr,{CSS_NATIVE_COLOR_REGEX:()=>le,CSS_UNITS:()=>Hr,applyMediaSequenceVars:()=>hr,applySequenceGlobalVars:()=>ja,applySequenceVars:()=>Ge,changeLightness:()=>bS,colorStringToRgbaArray:()=>be,convertSvgToSymbol:()=>Ba,findHeadingLetter:()=>Jd,findHeadings:()=>Na,generateSequence:()=>$t,generateSequencePosition:()=>e_,generateSprite:()=>us,generateSubSequence:()=>La,getColorShade:()=>Nd,getDefaultOrFirstKey:()=>xn,getFnPrefixAndValue:()=>qe,getFontFace:()=>_S,getFontFaceEach:()=>Sn,getFontFaceEachString:()=>zd,getFontFaceString:()=>Ta,getFontFormat:()=>Bd,getRgbTone:()=>pr,getSequenceValue:()=>Ma,getSequenceValueBySymbols:()=>Zd,getSequenceValuePropertyPair:()=>we,getSubratio:()=>Da,getSubratioDifference:()=>Fa,hexToRgb:()=>hS,hexToRgbArray:()=>Fd,hexToRgba:()=>mS,hslToRgb:()=>Md,isCSSVar:()=>ot,isGoogleFontsUrl:()=>is,isResolvedColor:()=>xe,isScalingUnit:()=>Wr,mixTwoColors:()=>dS,mixTwoRgb:()=>yS,mixTwoRgba:()=>jd,numToLetterMap:()=>_e,opacify:()=>ss,parseColorToken:()=>We,resolveFileUrl:()=>Qt,returnSubThemeOrDefault:()=>SS,rgbArrayToHex:()=>Dd,rgbToHSL:()=>Ld,rgbToHex:()=>gS,setCustomFont:()=>Ea,setCustomFontMedia:()=>dr,setFontImport:()=>as,setInCustomFontMedia:()=>Vd,setScalingVar:()=>$a,setSubScalingVar:()=>Xd,setVariables:()=>r_,splitTopLevelCommas:()=>ur});var Wr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Hr=["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"];P();var be=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&X&&w){let e=X.body.appendChild(X.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){X.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return X.body.removeChild(e),[0,0,0,0];t=w.getComputedStyle(e).color,X.body.removeChild(e)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(e=>+e)):[0,0,0,0]},dS=(t,e,r=.5)=>(t=be(t),e=be(e),jd(t,e,r)),hS=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},Fd=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},gS=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Dd=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),mS=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},yS=(t,e,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(t[o]+(e[o]-t[o])*r);return`rgb(${n})`},bS=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},Ld=(t,e,r)=>{let n=Math.max(t,e,r),o=n-Math.min(t,e,r),s=1-Math.abs(n+n-o-1),i=o&&(n==t?(e-r)/o:n==e?2+(r-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},Md=(t,e,r,n=e*Math.min(r,1-r),o=(s,i=(s+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],Nd=(t,e)=>{let r=parseInt(t,16),n=(r>>16)+e;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},jd=(t,e,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(t[o]+(e[o]-t[o])*r)}return`rgba(${n})`},ss=(t,e)=>{let r=be(t);if(!r){ir()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},ot=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,le=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,xS=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,We=t=>{if(!k(t))return null;if(le.test(t))return{passthrough:t};if(ot(t))return{cssVar:t};let e=t.match(xS);if(!e)return null;let[,r,n,o]=e,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},xe=t=>k(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),ur=t=>{let e=[],r="",n=0;for(let o of t){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){e.push(r),r="";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},pr=(t,e)=>{k(t)&&t.includes("rgb")&&(t=be(t).join(", ")),k(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),se(e)&&(e+="");let r=Dd(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=Nd(r,parseFloat(e));return Fd(o).join(", ")}else{let[o,s,i]=t,a=Ld(o,s,i),[c,l,f]=a;return Md(c,l,parseFloat(e)/100*255)}};var SS=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Qt=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let r=e[t];return r?r.content&&r.content.src:null},xn=(t,e)=>{if(t[e])return t[e].value;if(t.default)return t[t.default].value;let r=Object.keys(t)[0];return r&&t[r]&&t[r].value},Bd=t=>{if(typeof t!="string"||!t)return null;let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},is=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),as=t=>`@import url('${t}');`,Vd=t=>`@font-face { ${t} }`,Ea=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Bd(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
26
+ }<\/script>`}});var td,ed=$(()=>{"use strict";td=t=>{if(!t)return"";let e=new Date(t),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),n=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${n}, ${r}`}});var rd,nd=$(()=>{"use strict";rd=(t,e)=>{let r=setTimeout(()=>{let{props:n}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(n.height==="auto")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{t.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else t.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var od,sd=$(()=>{"use strict";od=function(e){let r=[0,1];for(let n=2;n<=e;n++)r[n]=r[n-1]+r[n-2];return r[e]}});var id,ad=$(()=>{"use strict";id=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function mn(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=n.createElement("script");a.src=t,a.async=e.async===!0,a.type=e.type||"text/javascript",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},n.head.appendChild(a)})}async function dd(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=n.createElement("link");a.href=t,a.rel=e.rel||"stylesheet",a.type="text/css",a.media=e.media||"all",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},n.head.appendChild(a)})}var cd,ld,fd,ud,pd,hd=$(()=>{"use strict";cd=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=e,i.src=t,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),ld=(t,e=document,r="text/javascript")=>new Promise((n,o)=>{let s=e.createElement("script");s.type=r,s.src=t;let i=e.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;",e.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),n()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),fd=(t,e=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",t,!1),o.send(),o.status===200){let s=e.createElement("script");s.type=n,s.text=o.responseText,e.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${t}`)},ud=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),pd=(t,e=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=e,s.id=o,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}}});function lS(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!cS(o))return o;let s=e[o];return s?.src?s.src:o},n={...t};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 Jo(t,e){if(!t||!e)return;let r=e.split("."),n=t;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function fS(t,e,r){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=r?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=r?.state||{},l={...t};for(let[f,u]of Object.entries(l))typeof u!="string"||!u.includes("{{")||(l[f]=u.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,d,h)=>{let g=d.trim();if(h==="polyglot")return a[g]??Jo(a,g)??p;if(h==="getLocalStateLang")return Jo(c,g+s)??p;let m=Jo(c,g);return m!==void 0?m:a[g]??Jo(a,g)??p}));return l}function gd(t){let e={...t};for(let[r,n]of Object.entries(e))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function yd(t,e,r,{isProduction:n=!1,channel:o="production"}={}){let s=t.pages?.[e],i=_(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=gd(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=gd(f),p={};if(t.integrations?.seo?p={...t.integrations.seo,...u,...c}:Object.keys(u).length?p={...u,...c}:p={...c},!p.title){let g=t.name||t.key;g?n?p.title=g:o==="development"?p.title=`${g} / dev:symbo.ls`:o==="staging"?p.title=`${g} / staging:symbo.ls`:p.title=`${g} / symbo.ls`:p.title="Symbols demo"}p=fS(p,t,r),p.title&&(l.has("title")||!p["og:title"])&&(l.has("og:title")||(p["og:title"]=p.title)),p.description&&(l.has("description")||!p["og:description"])&&(l.has("og:description")||(p["og:description"]=p.description)),p.title&&!p["twitter:title"]&&(p["twitter:title"]=p.title),p.description&&!p["twitter:description"]&&(p["twitter:description"]=p.description);let d=r?.actualPathname||e;if(p["og:url"]||p.url){let g=(p["og:url"]||p.url||"").replace(/\/$/,"");if(g&&d&&d!=="/"){let m=d.startsWith("/")?d:"/"+d;p["og:url"]=g+m}}p=lS(p,t.files);let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[g,m]of Object.entries(p))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?p[g]=y:g==="title"?p[g]=h:delete p[g]}return p}var It,aS,md,cS,bd=$(()=>{"use strict";ut();It=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},aS=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${It(r)}"`).join(" "),md=(t,e)=>(e||(t={...t,robots:"noindex"}),Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${It(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${It(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${It(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="string")n.push(`<link rel="icon" href="${It(f)}">`);else if(typeof f=="object"){let u=aS(f);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel="icon" ${u}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="object"){let u=Object.entries(f).filter(([p,d])=>d!==void 0).map(([p,d])=>`${p}="${It(d)}"`).join(" ");n.push(`<link rel="alternate" ${u}>`)}}),n;let i=(l,f,u="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${u}="${It(l)}" content="${It(f)}">`);else if(Array.isArray(f))f.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")n.push(`<meta ${u}="${It(l)}" content="${It(p)}">`);else if(typeof p=="object"){let d=Object.entries(p).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${It(g)}"`).join(" ");n.push(`<meta ${d}>`)}});else if(typeof f=="object"){let p=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${It(h)}"`).join(" ");n.push(`<meta ${p}>`)}};if(o.startsWith("http-equiv:")){let l=o.replace("http-equiv:","");return i(l,s,"http-equiv"),n}if(o.startsWith("itemprop:")){let l=o.replace("itemprop:","");return i(l,s,"itemprop"),n}let c=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(l=>o.startsWith(l));if(c){let l=o.replace(c,"");return i(`${c.replace(":","")}:${l}`,s,c==="twitter:"||c==="DC:"||c==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let l=o.startsWith("apple:")?"apple-":"msapplication-",f=o.replace(/^apple:|^msapplication:/,"");return i(`${l}${f}`,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
+ `)),cS=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var Ca,xd,Sd=$(()=>{"use strict";ut();Ca=(t,e)=>(E(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),xd=(t,e)=>(t=parseFloat(t),_(e)&&(e=Object.values(e)),Ca(t,e))});function yn(t){let e=String(t||"").trim();if(!e)return{owner:_d,key:"",full:""};let r=null,n=e;if(e.includes("/")){let s=e.indexOf("/");r=e.slice(0,s),n=e.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=_d);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function Aa(t,e={}){if((e.provider||"kv")==="api")return wd(t,e);let n=await dS(t,e);return n||wd(t,e)}async function dS(t,e={}){let r=e.kvBaseUrl||uS,n=e.env||"production",o=`${r}/kv/${encodeURIComponent(t)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function wd(t,e={}){let r=e.apiBaseUrl||pS,{key:n}=yn(t);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(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(d=>{let{key:h}=yn(d?.key);return h.toLowerCase()===n.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(f,{method:"GET"});if(!u.ok)return null;let p=await u.json();return p?.data||p||null}catch{return null}}async function kd(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(_(n))return n;if(k(n)){let{full:o}=yn(n);if(!o)return null;try{let s=await Aa(o,e);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 _d,uS,pS,Qo,ts,vd=$(()=>{"use strict";ut();_d="system",uS="https://smbls-kv.nika-980.workers.dev",pS="https://api.symbols.app";Qo=(t,e)=>{for(let r in e)r in t?_(t[r])&&_(e[r])&&Qo(t[r],e[r]):t[r]=e[r]},ts=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r];if(_(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(_(n[o])&&_(t[o]))if(o==="designSystem")Qo(t[o],n[o]);else for(let s in n[o])s in t[o]||(t[o][s]=n[o][s]);else o in t||(t[o]=n[o])}}}});var Cd,Ad,Ed,es,Td,rs,Od,fr,Rd=$(()=>{"use strict";ut();Cd=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Ad=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},Ed=t=>t.replace(/[^a-zA-Z0-9_]/g,""),es=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),Td=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),rs=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Od=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},fr=t=>{if(E(t))return t;if(k(t))return t.split(" ");if(_(t))return Object.values(t);if(oe(t))return[t]}});var Pd,Id=$(()=>{"use strict";Pd=()=>{let t=document.styleSheets[0],e="";if(t)try{let r=t.cssRules||t.rules;for(let n=0;n<r.length;n++)e+=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 e}});var Tt,bn,ns,os,$d=$(()=>{"use strict";Tt=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let r=t.context;if(!r)return null;let n=r.assets&&r.assets[e]||r.files&&r.files[e];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},bn=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let r=t.some(o=>typeof o.width=="number"),n=[];for(let o of t)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&e?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},ns=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return bn(e,{keepOneX:!1})},os=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let r=new Map;for(let a of t.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,c]of r)a!==t.type&&n.push({tag:"source",attr:{type:a,srcset:bn(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=bn(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var Fd={};F(Fd,{CDN_PROVIDERS:()=>Yt,DOMQL_EVENTS:()=>Uf,DOMQ_PROPERTIES:()=>Fe,ENV:()=>cu,HTML_TAGS:()=>rn,METHODS:()=>Jr,METHODS_EXL:()=>oo,NODE_ENV:()=>Gt,OPTIONS:()=>Ro,PACKAGE_MANAGER_TO_CDN:()=>Ue,PARSED_DOMQ_PROPERTIES:()=>no,PROPS_METHODS:()=>Le,STATE_METHODS:()=>De,STATE_PROPERTIES:()=>zf,SVG_TAGS:()=>Ou,TYPES:()=>Jn,UNIVERSAL_RESERVED_KEYS:()=>va,addCaching:()=>na,addContext:()=>ra,addExtend:()=>Lu,addExtends:()=>Et,addItemAfterEveryElement:()=>Of,addProtoToArray:()=>eo,addRef:()=>Qi,applyDependentState:()=>op,applyEvent:()=>la,applyEventUpdate:()=>fa,applyExtends:()=>Nu,applyProps:()=>vo,arrayContainsOtherArray:()=>wf,arraysEqual:()=>Pf,arrayzeValue:()=>fr,buildImgSrcset:()=>ns,buildSourcesAndImg:()=>os,cache:()=>up,call:()=>zp,captureSnapshot:()=>qp,checkForStateTypes:()=>tp,checkIfInherits:()=>ca,checkIfStringIsInArray:()=>Ff,clone:()=>Kf,cloneAndMergeArrayExtend:()=>go,cloneFunction:()=>mu,concatAddExtends:()=>Iu,copyJavaScriptToClipboard:()=>Ad,copyStringToClipboard:()=>Cd,createBasedOnType:()=>Ji,createElement:()=>Ju,createElementExtends:()=>Mi,createExtends:()=>yo,createExtendsFromKeys:()=>nn,createExtendsStack:()=>Vi,createIfConditionFlag:()=>yu,createInheritedState:()=>ep,createKey:()=>uo,createNestedObject:()=>eu,createNestedObjectByKeyPath:()=>np,createObjectWithoutPrototype:()=>Ti,createParent:()=>ta,createPath:()=>ea,createProps:()=>Co,createPropsStack:()=>Xi,createRoot:()=>Zu,createScope:()=>ap,createSnapshotId:()=>fo,customDecodeURIComponent:()=>Vf,customEncodeURIComponent:()=>Bf,cutArrayAfterValue:()=>Ef,cutArrayBeforeValue:()=>Af,debounce:()=>ho,debounceOnContext:()=>du,decodeNewlines:()=>jf,deepClone:()=>Q,deepContains:()=>Qf,deepDefaults:()=>Qo,deepDestringifyFunctions:()=>ie,deepExtend:()=>Li,deepMerge:()=>q,deepMergeExtends:()=>ae,deepStringifyFunctions:()=>so,defineSetter:()=>Bp,destringifyGlobalScope:()=>ao,detectHeightOnInit:()=>rd,detectInfiniteLoop:()=>su,document:()=>X,encodeNewlines:()=>Nf,error:()=>lr,excludeKeysFromObject:()=>au,exec:()=>Y,extendCachedRegistry:()=>$u,extendStackRegistry:()=>bo,extractArrayExtend:()=>So,fetchLibraryData:()=>Aa,fibonacciNumberByIndex:()=>od,filterArrays:()=>If,filterArraysFast:()=>$f,finalizeExtends:()=>zi,findClosestNumber:()=>Ca,findClosestNumberInFactory:()=>xd,findInheritedState:()=>aa,findKeyPosition:()=>Lf,flattenExtend:()=>on,formatDate:()=>td,generateHash:()=>$i,generateKey:()=>lo,generateMetaTags:()=>md,get:()=>Lp,getCDNUrl:()=>Zt,getCapitalCaseKeys:()=>ju,getCdnProviderFromConfig:()=>gn,getChildStateInKey:()=>ia,getChildren:()=>No,getContext:()=>Ho,getCookie:()=>vu,getDB:()=>Yo,getEmotionStylesheet:()=>Pd,getExtendsInElement:()=>Mu,getExtendsStack:()=>mo,getExtendsStackRegistry:()=>Di,getFrequencyInArray:()=>kf,getHashedExtend:()=>xo,getImportMapScript:()=>Jp,getInObjectByPath:()=>ou,getLocalStorage:()=>Au,getNev:()=>pu,getPageMetadata:()=>yd,getParentStateInKey:()=>sa,getPath:()=>jo,getQuery:()=>Zo,getRef:()=>Np,getRoot:()=>zo,getRootContext:()=>Wo,getRootData:()=>Uo,getRootState:()=>Vo,getRootStateInKey:()=>oa,getSpreadChildren:()=>Bu,global:()=>xf,hasFunction:()=>Qr,hasHandlerPlugin:()=>tn,hasOwnProperty:()=>Yf,inheritChildExtends:()=>ji,inheritChildPropsExtends:()=>Ni,inheritParentProps:()=>Ao,inheritRecursiveChildExtends:()=>Bi,initProps:()=>Ku,is:()=>Ct,isArray:()=>E,isBoolean:()=>ki,isContextComponent:()=>Vu,isCyclic:()=>iu,isDOMNode:()=>kt,isDate:()=>Ci,isDefined:()=>vt,isDevelopment:()=>je,isEmpty:()=>Ai,isEmptyObject:()=>Zf,isEqualDeep:()=>Ei,isFunction:()=>C,isHtmlElement:()=>Zn,isLocal:()=>uu,isMethod:()=>Wp,isMobile:()=>wu,isNode:()=>he,isNot:()=>_f,isNotProduction:()=>ir,isNull:()=>vi,isNumber:()=>oe,isObject:()=>_,isObjectLike:()=>N,isPhoto:()=>id,isProduction:()=>Ne,isStaging:()=>fu,isState:()=>rp,isString:()=>k,isStringFunction:()=>gu,isTest:()=>Oi,isTesting:()=>lu,isUndefined:()=>ht,isUniversallyReservedKey:()=>Kp,isValidHtmlTag:()=>Ru,joinArrays:()=>Kr,jointStacks:()=>Du,keys:()=>wa,loadCssFile:()=>ud,loadJavascript:()=>pd,loadJavascriptFile:()=>cd,loadJavascriptFileEmbedSync:()=>fd,loadJavascriptFileSync:()=>ld,loadRemoteCSS:()=>dd,loadRemoteScript:()=>mn,log:()=>Vp,logGroupIf:()=>Su,logIf:()=>xu,lookdown:()=>$p,lookdownAll:()=>Fp,lookup:()=>Ip,lowercaseFirstLetter:()=>nr,makeObjectWithoutPrototype:()=>Jf,map:()=>qf,mapStringsWithContextComponents:()=>_o,matchesComponentNaming:()=>ce,memoize:()=>hu,merge:()=>et,mergeSharedLibraries:()=>ts,nextElement:()=>Go,normalizeLibraryKey:()=>yn,objectToString:()=>io,objectizeStringProperty:()=>ko,overwrite:()=>co,overwriteDeep:()=>At,overwriteShallow:()=>sr,overwriteState:()=>sp,parse:()=>ka,parseDeep:()=>Lo,pickupElementFromProps:()=>qi,pickupPropsFromElement:()=>Hi,previousElement:()=>Ko,propExists:()=>Gu,propertizeElement:()=>Gi,propertizeUpdate:()=>qu,remove:()=>Dp,removeChars:()=>Ed,removeCookie:()=>Cu,removeDuplicateProps:()=>To,removeDuplicatesInArray:()=>Xr,removeFromArray:()=>vf,removeFromObject:()=>tu,removeNestedKeyByPath:()=>ru,removeValueFromArray:()=>to,removeValueFromArrayAll:()=>Tf,reorderArrayByValues:()=>Rf,replaceLiteralsWithObjectFields:()=>rr,replaceOctalEscapeSequences:()=>Mf,resolveAsset:()=>Tt,resolveHandler:()=>en,resolveSharedLibraries:()=>kd,returnValueAsText:()=>Zi,runPluginHook:()=>Kt,self:()=>Sf,setActiveRootState:()=>Bo,setCookie:()=>ku,setHashedExtend:()=>Fi,setInObjectByPath:()=>nu,setLocalStorage:()=>Eu,setNodeStyles:()=>_a,setProps:()=>Mp,setPropsPrototype:()=>Eo,spotByPath:()=>Mo,srcsetFor:()=>bn,stringIncludesAny:()=>ro,stringToObject:()=>Xf,swapItemsInArray:()=>Cf,syncProps:()=>Oo,toCamelCase:()=>es,toDashCase:()=>rs,toDescriptionCase:()=>Od,toTitleCase:()=>Td,toggleFullscreen:()=>Yp,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>fp,trimStringFromSymbols:()=>Df,unstackArrayOfObjects:()=>Qn,update:()=>Ki,updateProps:()=>Xu,variables:()=>Xo,verbose:()=>hn,warn:()=>qo,window:()=>w});var P=$(()=>{"use strict";po();Ri();ut();se();ar();er();Gr();bu();_u();Zr();qr();Tu();Pi();Ui();Yi();wo();Qu();ip();or();cp();Hp();pa();Gp();ua();Xp();Zp();Qp();ed();nd();sd();ad();hd();bd();Sd();vd();Rd();Id();$d()});var Ob=mi((mF,Tb)=>{var Lr=1e3,Mr=Lr*60,Nr=Mr*60,Qe=Nr*24,Sk=Qe*7,_k=Qe*365.25;Tb.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return wk(t);if(r==="number"&&isFinite(t))return e.long?vk(t):kk(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function wk(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*_k;case"weeks":case"week":case"w":return r*Sk;case"days":case"day":case"d":return r*Qe;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Nr;case"minutes":case"minute":case"mins":case"min":case"m":return r*Mr;case"seconds":case"second":case"secs":case"sec":case"s":return r*Lr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function kk(t){var e=Math.abs(t);return e>=Qe?Math.round(t/Qe)+"d":e>=Nr?Math.round(t/Nr)+"h":e>=Mr?Math.round(t/Mr)+"m":e>=Lr?Math.round(t/Lr)+"s":t+"ms"}function vk(t){var e=Math.abs(t);return e>=Qe?ci(t,e,Qe,"day"):e>=Nr?ci(t,e,Nr,"hour"):e>=Mr?ci(t,e,Mr,"minute"):e>=Lr?ci(t,e,Lr,"second"):t+" ms"}function ci(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var Pb=mi((yF,Rb)=>{function Ck(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=Ob(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let u=0;for(let p=0;p<f.length;p++)u=(u<<5)-u+f.charCodeAt(p),u|=0;return r.colors[Math.abs(u)%r.colors.length]}r.selectColor=e;function r(f){let u,p=null,d,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),S=b-(u||b);y.diff=S,y.prev=u,y.curr=b,u=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,(O,R)=>{if(O==="%%")return"%";x++;let W=r.formatters[R];if(typeof W=="function"){let T=m[x];O=W.call(y,T),m.splice(x,1),x--}return O}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=f,g.useColors=r.useColors(),g.color=r.selectColor(f),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(f)),h),set:m=>{p=m}}),typeof r.init=="function"&&r.init(g),g}function n(f,u){let p=r(this.namespace+(typeof u>"u"?":":u)+f);return p.log=this.log,p}function o(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let u=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let p of u)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function s(f,u){let p=0,d=0,h=-1,g=0;for(;p<f.length;)if(d<u.length&&(u[d]===f[p]||u[d]==="*"))u[d]==="*"?(h=d,g=p,d++):(p++,d++);else if(h!==-1)d=h+1,g++,p=g;else return!1;for(;d<u.length&&u[d]==="*";)d++;return d===u.length}function i(){let f=[...r.names,...r.skips.map(u=>"-"+u)].join(",");return r.enable(""),f}function a(f){for(let u of r.skips)if(s(f,u))return!1;for(let u of r.names)if(s(f,u))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function l(){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}Rb.exports=Ck});var Ib=mi((wt,li)=>{wt.formatArgs=Ek;wt.save=Tk;wt.load=Ok;wt.useColors=Ak;wt.storage=Rk();wt.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})();wt.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 Ak(){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 t;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&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Ek(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+li.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),t.splice(n,0,e)}wt.log=console.debug||console.log||(()=>{});function Tk(t){try{t?wt.storage.setItem("debug",t):wt.storage.removeItem("debug")}catch{}}function Ok(){let t;try{t=wt.storage.getItem("debug")||wt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Rk(){try{return localStorage}catch{}}li.exports=Pb()(wt);var{formatters:Pk}=li.exports;Pk.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var _t=null,Kn=0,Xn=[],Ur=()=>_t,lx=t=>{_t=t};function ne(t){let e=new Set;function r(){return _t&&(e.add(_t),_t._sources.add(s)),t}function n(i){i!==t&&(t=i,bf(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:"signal"};return s}function fx(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){xi(o);let s=_t;_t=o;try{let i=t();i!==e?(e=i,r=!1,bf(n)):r=!1}finally{_t=s}},_notify(){r=!0,n.size>0&&o._execute()},get(){return _t&&(n.add(_t),_t._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var yi=new Set,bi=!1;function ft(t,e){let r=e?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;xi(n);let o=_t;_t=n;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{_t=o}},_notify(){n._disposed||(Kn>0?Xn.push(n):yf(n))},dispose(){n._disposed=!0,xi(n)}};return n._execute(),n}function Ie(t){Kn++;try{t()}finally{Kn--,Kn===0&&px()}}function yf(t){yi.add(t),bi||(bi=!0,queueMicrotask(ux))}function ux(){bi=!1;let t=Array.from(yi).sort((e,r)=>e._depth-r._depth);yi=new Set;for(let e=0;e<t.length;e++){let r=t[e];r._disposed||r._execute()}}function px(){for(let t=0;t<Xn.length;t++)yf(Xn[t]);Xn.length=0}function bf(t){let e=Array.from(t);for(let r=0;r<e.length;r++)e[r]._notify()}function xi(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var $e=Symbol("store"),Yn=Symbol("signals"),Si=t=>!t||typeof t!="object"||Array.isArray(t)||t[$e]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function jt(t,e,r){r===void 0&&(r=0);let n={},o={},s=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let y in t){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(t,y))continue;let b=t[y];r<s&&b&&typeof b=="object"&&!Si(b)?(o[y]=b,n[y]=ne(jt(b,e,r+1))):(o[y]=b,n[y]=ne(b))}let i=new Proxy(o,{get(y,b){if(b===$e)return!0;if(b===Yn)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return u;if(b==="values")return p;if(b==="replace")return d;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return c;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"&&Ur()!=null)return n[b]=ne(void 0),n[b].get()},set(y,b,S){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=S,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=S,S&&typeof S=="object"&&!Si(S)?n[b].set(jt(S,e,r+1)):n[b].set(S)):(y[b]=S,S&&typeof S=="object"&&!Si(S)?n[b]=ne(jt(S,e,r+1)):n[b]=ne(S)),!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){Ie(()=>{for(let x in y)x!=="__proto__"&&(i[x]=y[x])});let S=o.__element;return S&&S.onUpdate&&!b?.quiet&&S.onUpdate(S,i,S.context),i}function c(y){return a(y,{quiet:!0})}function l(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let S in n){if(S==="parent"||S==="root"||S.startsWith("__"))continue;let x=n[S].peek();x&&x[$e]?b[S]=x.parse(y):b[S]=x}return b}function f(){return Ie(()=>{for(let y in n)delete i[y]}),i}function u(){return Object.keys(n)}function p(){return Object.keys(n).map(y=>n[y].peek())}function d(y){return Ie(()=>{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(){f(),o.__element=null,o.parent=null}return i}function mt(t){return t&&t[$e]===!0}function dx(t){return t[Yn]}function wi(t,e){let r={},n={};if(t&&typeof t=="object")for(let i in t)n[i]=t[i],r[i]=ne(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[Yn];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[$e]?a[_i]:null}return null};return new Proxy(n,{get(i,a){return a===$e?!0:a===Yn?r:a===_i?e:a==="__raw"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():e&&a!=="then"&&a!=="constructor"?e[a]:i[a]},set(i,a,c){let l=o(a);return l?(l===r&&(i[a]=c),l[a].set(c),!0):(i[a]=c,r[a]=ne(c),!0)},has(i,a){if(a in r||a in i)return!0;let c=e;for(;c;){if(a in c)return!0;c=c[$e]?c[_i]: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 _i=Symbol("scope.parent");var gr={};F(gr,{CSS_NATIVE_COLOR_REGEX:()=>le,CSS_UNITS:()=>Hr,applyMediaSequenceVars:()=>hr,applySequenceGlobalVars:()=>ja,applySequenceVars:()=>Ge,changeLightness:()=>xS,colorStringToRgbaArray:()=>be,convertSvgToSymbol:()=>Ba,findHeadingLetter:()=>Qd,findHeadings:()=>Na,generateSequence:()=>$t,generateSequencePosition:()=>r_,generateSprite:()=>us,generateSubSequence:()=>La,getColorShade:()=>jd,getDefaultOrFirstKey:()=>xn,getFnPrefixAndValue:()=>qe,getFontFace:()=>wS,getFontFaceEach:()=>Sn,getFontFaceEachString:()=>Ud,getFontFaceString:()=>Ta,getFontFormat:()=>Vd,getRgbTone:()=>pr,getSequenceValue:()=>Ma,getSequenceValueBySymbols:()=>Jd,getSequenceValuePropertyPair:()=>we,getSubratio:()=>Da,getSubratioDifference:()=>Fa,hexToRgb:()=>gS,hexToRgbArray:()=>Dd,hexToRgba:()=>yS,hslToRgb:()=>Nd,isCSSVar:()=>ot,isGoogleFontsUrl:()=>is,isResolvedColor:()=>xe,isScalingUnit:()=>Wr,mixTwoColors:()=>hS,mixTwoRgb:()=>bS,mixTwoRgba:()=>Bd,numToLetterMap:()=>_e,opacify:()=>ss,parseColorToken:()=>We,resolveFileUrl:()=>Jt,returnSubThemeOrDefault:()=>_S,rgbArrayToHex:()=>Ld,rgbToHSL:()=>Md,rgbToHex:()=>mS,setCustomFont:()=>Ea,setCustomFontMedia:()=>dr,setFontImport:()=>as,setInCustomFontMedia:()=>zd,setScalingVar:()=>$a,setSubScalingVar:()=>Yd,setVariables:()=>n_,splitTopLevelCommas:()=>ur});var Wr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Hr=["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"];P();var be=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&X&&w){let e=X.body.appendChild(X.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){X.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return X.body.removeChild(e),[0,0,0,0];t=w.getComputedStyle(e).color,X.body.removeChild(e)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(e=>+e)):[0,0,0,0]},hS=(t,e,r=.5)=>(t=be(t),e=be(e),Bd(t,e,r)),gS=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},Dd=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},mS=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Ld=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),yS=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},bS=(t,e,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(t[o]+(e[o]-t[o])*r);return`rgb(${n})`},xS=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},Md=(t,e,r)=>{let n=Math.max(t,e,r),o=n-Math.min(t,e,r),s=1-Math.abs(n+n-o-1),i=o&&(n==t?(e-r)/o:n==e?2+(r-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},Nd=(t,e,r,n=e*Math.min(r,1-r),o=(s,i=(s+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],jd=(t,e)=>{let r=parseInt(t,16),n=(r>>16)+e;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},Bd=(t,e,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(t[o]+(e[o]-t[o])*r)}return`rgba(${n})`},ss=(t,e)=>{let r=be(t);if(!r){ir()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},ot=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,le=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,SS=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,We=t=>{if(!k(t))return null;if(le.test(t))return{passthrough:t};if(ot(t))return{cssVar:t};let e=t.match(SS);if(!e)return null;let[,r,n,o]=e,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},xe=t=>k(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),ur=t=>{let e=[],r="",n=0;for(let o of t){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){e.push(r),r="";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},pr=(t,e)=>{k(t)&&t.includes("rgb")&&(t=be(t).join(", ")),k(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),oe(e)&&(e+="");let r=Ld(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=jd(r,parseFloat(e));return Dd(o).join(", ")}else{let[o,s,i]=t,a=Md(o,s,i),[c,l,f]=a;return Nd(c,l,parseFloat(e)/100*255)}};var _S=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Jt=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let r=e[t];return r?r.content&&r.content.src:null},xn=(t,e)=>{if(t[e])return t[e].value;if(t.default)return t[t.default].value;let r=Object.keys(t)[0];return r&&t[r]&&t[r].value},Vd=t=>{if(typeof t!="string"||!t)return null;let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},is=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),as=t=>`@import url('${t}');`,zd=t=>`@font-face { ${t} }`,Ea=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Vd(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
29
28
  `);return`
30
29
  font-family: '${t}';
31
30
  font-style: ${n.fontStyle||"normal"};${r?`
@@ -33,13 +32,13 @@ FROM ${a}${l}`},eS=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
33
32
  font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
34
33
  font-display: ${n.fontDisplay};`:""}
35
34
  src: ${i};`},dr=(t,e,r,n)=>`@font-face {${Ea(t,e,r,n)}
36
- }`,Sn=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=e[o],f=Array.isArray(s)?s.map(u=>Qt(u,r)||u):Qt(s,r)||s;return Ea(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),_S=t=>Object.keys(t).map(r=>Sn(r,t[r].value)),zd=(t,e,r)=>{if(e&&e.isVariable){let s=Qt(e.url,r)||e.url;return is(s)?as(s):dr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return Sn(t,e,r).map(Vd);let o=Array.isArray(e.url)?e.url.map(s=>Qt(s,r)||s):Qt(e.url,r)||e.url;return dr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Ta=(t,e)=>Object.keys(t).map(n=>zd(n,t[n].value,e));P();P();P();var cs={};F(cs,{animation:()=>zS,breakpoints:()=>BS,class:()=>KS,color:()=>PS,devices:()=>VS,document:()=>jS,font:()=>vS,fontFace:()=>ES,fontFamily:()=>CS,fontFamilyTypes:()=>AS,gradient:()=>IS,grid:()=>GS,icons:()=>DS,media:()=>TS,reset:()=>XS,semanticIcons:()=>LS,sequence:()=>He,shadow:()=>FS,spacing:()=>RS,svg:()=>US,svgData:()=>WS,templates:()=>HS,theme:()=>$S,timing:()=>NS,typography:()=>Oa,unit:()=>wS,vars:()=>YS});var He={"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 wS={default:"em"};var kS={browserDefault:16,base:16,type:"font-size",ratio:He["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Oa=kS;var vS={};var CS={},AS={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},ES={};var TS={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var OS={base:Oa.base,type:"spacing",ratio:He.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},RS=OS;var PS={},IS={};var $S={};var FS={};var DS={},LS={};var MS={default:150,base:150,type:"timing",ratio:He["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},NS=MS;var jS={};var BS={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},VS={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 zS={};var US={},WS={};var HS={};var qS={},GS=qS;var KS={};var XS={},YS={};var Ud={},Wd={},ls=cs,fs={},Ra=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in ls){let e=t.toLowerCase();fs[e]=ls[t];let r=Ra(e);r!==e&&(fs[r]=ls[t]),e!==t&&(fs[t]=ls[t])}var Pa={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Ud,cssMediaVars:Wd,CSS_VARS:Ud,CSS_MEDIA_VARS:Wd,_scratchConfig:!0,...fs},Hd=J(Pa),Se={active:"0",0:Pa},TE=t=>(vt(t)&&(Se.active=t),Se[t||Se.active]),_n=[],pt=t=>{t&&t._scratchConfig&&_n.push(t)},at=()=>{_n.pop()},A=t=>_n.length?_n[_n.length-1]:Se[t||Se.active]||Pa,qd=t=>{if(_(t))return Se.active="1",Se[1]=q(t,J(Hd)),t},ZS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],JS=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],QS=t=>{for(let e of JS){let r;for(let n of e){let o=t[n];_(o)&&(r=r?q(o,r):o)}if(r)for(let n of e)_(t[n])&&(t[n]=r)}},Gd=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:A(),o=J(!r&&n&&n._scratchConfig?n:Hd);for(let i of ZS)delete o[i];let s=q(e||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,QS(s),t&&(Se[t]=s),s};var _e={"-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"},Ia=(t,e)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},e.scales[r]=s;let c=Kd.has(e.unit)?"rem":e.unit;e.vars[n]=s+c},qe=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Kd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),$a=(t,e)=>{let{base:r,type:n,unit:o}=e,s=Kd.has(o)?"rem":o,i=(Wr(s)?1:r)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=_e[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=_e[t+1],u=Math.abs(t),p=Math.pow(Yd,2*u),d=_e[u];return d?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${d}) / ${p.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Xd=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,l=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},Fa=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Da=(t,e)=>Fa(t,e).map(r=>r/t),La=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,p,d]=Fa(o,s);l>16?f=[u,p,d]:f=[u,d],f.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,S=Xd(g+1,f,i,e),x={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:S,index:b};Ia(x,e)})},Yd=1.618,t_=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let n=Math.abs(t),o=e*Math.pow(r,t),s=e*Math.pow(r,n)/Math.pow(Yd,2*n);return Math.max(o,s)},$t=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=o[1]-l,u=_e[f],p=t_(f,r,n),d=~~(p/r*100)/100,h=c+u,g=$a(f,t),m={key:u,variable:h,value:p,base:r,scaling:d,scalingVariable:g,ratio:n,index:f};Ia(m,t),s&&La(m,t)}return t},e_=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=k(e)?e:_e[e],a=k(e)?Object.entries(_e).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=n*Math.pow(o,a),f=~~(l/n*100)/100,d="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=$a(a,t),g={key:i,variable:d,value:l,base:n,scaling:f,scalingVariable:h,ratio:o,index:a};return Ia(g,c),s&&La(g,c),c},Ma=(t="A",e)=>{let r=A(),{unit:n}=r;if(k(t)&&ot(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Hr.some(S=>t.includes(S))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let p=`--${e.varPrefix?e.varPrefix+"-":""}${rs(e.type.replace(".","-"))}-`,d=t.toUpperCase(),h=d.slice(0,1)==="-"?"-":"",g=h?d.slice(1):d,m="";g.includes("_")&&(m="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=S=>a.test(S)?`var(${p}${S}${m})`:S;if(g.includes("+")){let[S,x]=g.split("+"),v=`${y(S)} + ${y(x)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("*")){let[S,x]=g.split("*"),v=`${y(S)} * ${y(x)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("-")){let[S,x]=g.split("-"),v=`${y(S)} - ${y(x)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}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 S=`var(${p}${g}${m})`;return h?`calc(${S} * -1)`:S}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)},Zd=(t,e)=>{if(!["+","-","*","/",","].filter(s=>t.includes(s+" ")).length)return t;let n=/(\s*[+\-*/,]\s*)/;return t.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Ma(i,e)}).join("")},we=(t,e,r,n)=>{if(typeof t!="string")return A().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=qe(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Zd(t,r):t=Ma(t,r),{[e]:n?`${n}(${t})`:t}},Jd=(t,e)=>_e[t-e],Na=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Jd(e,o);return r[s]})};P();var r_=(t,e)=>{let r=A(),{cssVars:n}=r;N(t.value)||(n[t.var]=t.value)},ja=(t,e,r)=>{let n=A(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let u=`${f}-ratio`;t[u]=a;let[p,d,h]=Da(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${h/a})`},Qd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ge=(t,e={})=>{let r=A(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=Qd.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||ja(s,t,e);for(let u in l){let p=l[u],d=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[p.variable+"_default"]=d,s[p.variable]=p.scalingVariable;continue}e.useDefault===!1?s[p.variable]=d:(s[p.variable+"_default"]=d,s[p.variable]=`var(${p.variable+"_default"})`)}},hr=(t,e,r={})=>{let n=A(),{unit:o,media:s,cssVars:i}=n,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=Qd.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:p,scales:d}=c,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!u){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),ja(g,c,r);let m=t.unit||o.default;if(f!==m&&p)for(let y in p){let b=p[y],S=d[y]+f;g[b.variable+"_default"]=S,g[b.variable]=S}return}for(let g in p){let m=p[g],y=(Wr(f)?d[g]:p[g].val)+f;!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}};P();var eh=ir(),us=t=>{let e=A(),r="";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},n_=t=>{let e=t&&(t.default||t);if(!k(e))return eh&&console.warn("parseRootAttributes:",e,"is not a string"),{};let r=e.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,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},o_=(t,e)=>{let r=[];if(t.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return t;let n=t;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${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},th=new Set,Ba=(t,e)=>{let r=e&&e.default?e.default:e;if(!k(r))return eh&&!th.has(t)&&(th.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=r;let n=n_(e),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,l=o_(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return l=l.replace(/width="[^"]*"/,""),l=l.replace(/height="[^"]*"/,""),l=l.replace("</svg","</symbol"),l=a_(l),l},s_="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",i_=new RegExp(`<(${s_})\\b([^>]*?)\\s*/>`,"g"),a_=t=>t.replace(i_,"<$1$2></$1>");var gs={};F(gs,{appendSVGSprite:()=>oc,appendSvgIconsSprite:()=>ic,applyDocument:()=>ec,applyHeadings:()=>ih,applyReset:()=>ac,applySpacingSequence:()=>Za,applyTimingSequence:()=>tc,applyTypographySequence:()=>Ka,checkIfBoxSize:()=>Ya,getColor:()=>tt,getFontFamily:()=>Ga,getFontSizeByKey:()=>Xa,getMediaColor:()=>bt,getMediaTheme:()=>te,getShadow:()=>Qa,getSpacingBasedOnRatio:()=>fe,getSpacingByKey:()=>dt,getTheme:()=>Ua,getTimingByKey:()=>zt,getTimingFunction:()=>ee,runThroughMedia:()=>sh,setColor:()=>mr,setFont:()=>qa,setFontFamily:()=>ds,setGradient:()=>yr,setMediaTheme:()=>Ha,setSVG:()=>hs,setShadow:()=>br,setSvgIcon:()=>sc,setTheme:()=>Wa,splitSpacedValue:()=>Ja});P();var tt=(t,e,r)=>{let n=r||A();if(!k(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(T(t))[o,s,i]=t;else{let u=We(t);if(!u){let{color:p,gradient:d}=n,h=d[t]||p[t];return h?n.useVariable?`var(${h.var})`:h.value:t}if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}let{color:a,gradient:c}=n,l=a[o]||c[o];if(!l)return n.verbose&&console.warn("Can't find color ",o),t;e&&(l[e]?l=l[e]:n.verbose&&console.warn(t," - does not have ",e));let f=l.rgb;return f?(i&&!l[i]&&(f=pr(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:n.useVariable?`var(${l.var})`:`rgb(${f})`):n.useVariable?`var(${l.var})`:l.value},bt=(t,e,r)=>{let n=r||A();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!k(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let o;if(T(t))o=t[0];else{let l=We(t);if(!l)return t;if(l.passthrough)return l.passthrough;if(l.cssVar)return`var(${l.cssVar})`;o=l.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=_(a);if(c&&a.value)return tt(t,`@${e}`,r);if(c){if(n.useVariable&&a.var)return`var(${a.var})`;if(e)return tt(t,`@${e}`,r);{let l={};for(let f in a){if(f.charCodeAt(0)!==64)continue;let u=n.media[f.slice(1)];if(!u)continue;let p="@media "+(u==="print"?`${u}`:`screen and ${u}`);l[p]=tt(t,f,r)}return l}}else return n.verbose&&console.warn("Can't find color",t),t},mr=(t,e,r)=>{let n=A();if(k(t)&&ot(t)){let g=t.slice(2);if(t=tt(g),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=g.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(k(y)||T(y)||_(y))&&(n.color[m[0]]=mr(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,S=m[1]!==void 0?m[1]:"1",x=m[2];x&&(b=pr(b,x)),t=`rgba(${b}, ${S})`}else{let b=m[2],S=m[1]!==void 0?m[1]:"1";if(b)try{let x=be(m[0]);x&&x.length>=3?t=`rgba(${pr(x.slice(0,3).join(", "),b)}, ${S})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(T(t)&&(t={"@light":t[0],"@dark":t[1]}),_(t)){let g={};for(let m in t)g[m]=mr(t[m],e,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`,b,S={};for(let x in g){if(x.charCodeAt(0)!==64)continue;let v=x.slice(1),O=g[x],R=O&&(O.value||O);!R||typeof R!="string"||(S[v]=R,(v==="light"||b===void 0)&&(b=R))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let x in S){let v=`[data-theme="${x}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][y]=S[x],x==="light"||x==="dark"){let O=`@media (prefers-color-scheme: ${x})`;n.cssMediaVars[O]||(n.cssMediaVars[O]={}),n.cssMediaVars[O][y]=S[x]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;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=We(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(k(m)||T(m)||_(m))&&(n.color[g.name]=mr(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=pr(b,g.tone));let S=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${S})`}}}let a=be(i),[c,l,f,u=1]=a,p=parseFloat(u.toFixed(2)),d=`${c}, ${l}, ${f}`,h=`rgba(${d}, ${p})`;return n.useVariable&&(n.cssVars[s]=h),{var:s,rgb:d,alpha:p,value:h}},yr=(t,e,r)=>{let n=A();if(k(t)&&ot(t)&&(t=tt(t.slice(2))),T(t))return{"@light":yr(t[0],e,"light"),"@dark":yr(t[0],e,"dark")};if(_(t)){let i={};for(let a in t)i[a]=yr(t[a],e,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[s]=t.value||t),{var:s,value:t.value||t}};P();var c_=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"]),rh=["color","Color","background","Background","fill","Fill","stroke","Stroke"],l_=t=>{for(let e=0;e<rh.length;e++)if(t.includes(rh[e]))return!0;return!1},ps=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let l=["color","Color","background","border"].some(f=>a.includes(f));return e[a]=l?tt(t[a]):t[a]}),e},wn=t=>(t.value||(t.value=ps(t)),t.value),Ua=(t,e)=>{let r=A();if(r.useVariable)return te(t,e);let n=r.theme;if(k(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return wn(i);t=[o,s||e]}}if(N(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return wn(a[s]);if(i&&i[s])return wn(i[s]);if(c&&c[s])return wn(c[s])}else if(_(t))return ps(t)},f_=(t,e,r)=>{if(_(e))t.variants.inverse.value=ps(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},u_=(t,e,r,n)=>{let o=Ua(r);n[`&:${e}`]=o,_(r)&&!r.value&&(r.value=o)},p_=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return u_(t,o,s,e),t}),t):void 0},d_=(t,e,r,n)=>{let o=Ua(r);n[`@media (prefers-color-scheme: ${e})`]=o,_(r)&&!r.value&&(r.value=o)},h_=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&d_(t,o,s,e),o==="inverse"&&f_(t,s,e),t}),t):void 0},g_=(t,e)=>{let r=A(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return k(i)?n[s]=r.theme[i]:wn(n[s]),t}),t):void 0},Wa=(t,e)=>{let r=A();if(r.useVariable)return Ha(t,e);let{state:n,media:o,helpers:s}=t,i=ps(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return p_(t,i),h_(t,i),g_(t,i),{var:c,value:i,state:n,media:o,helpers:s}};var Va=(t,e,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 l in t)if(t[l])for(let f of Object.keys(t[l]))a.add(f);let c=new Set;for(let l of a){let f=l.slice(0,1);if(!(f==="@"||f==="."||f===":")&&l_(l))for(let u in t){if(c.has(u))continue;let p=t[u]?.[l];if(p===void 0)continue;let d=tt(p,`@${u}`);d!==void 0&&k(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!c_.has(d)&&c.add(u)}}for(let l of a){let f=l.slice(0,1),u=Object.values(t).some(p=>N(p?.[l]));if(f==="."&&u){let p=l.slice(1),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=Va(d,`${e}-${p}`,r)}else if(f===":"&&u){let p=l.replace(/^:+/,""),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=Va(d,`${e}-${p}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let d=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}-${l}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,g;for(let m in t){if(c.has(m))continue;let y=t[m]?.[l];if(y===void 0)continue;let b=tt(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let S=`[data-theme="${m}"]`;if(o[S]||(o[S]={}),o[S][d]=b,m==="dark"||m==="light"){let x=`@media (prefers-color-scheme: ${m})`;o[x]||(o[x]={}),o[x][d]=b}}g!==void 0&&(n[d]=g),i[l]=`var(${d})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Ha=(t,e,r,n)=>{let o=A(),{cssVars:s}=o,i={value:t},a=!r&&!n;if(N(t)){if(a&&o.useVariable){let c={};for(let l in t)l.startsWith("@")&&N(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=Va(c,e,o);Object.assign(i,l)}}for(let c in t){let l=c.slice(0,1),f=t[c];if(l==="@"||l===":"||l==="."){let u=l==="@"&&c;i[c]=Ha(f,e,c,n||u)}else if(!a){let u=tt(f,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?"-"+p.join("-"):"",g=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=u),i[c]=`var(${g})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(k(t)&&ot(t)){let l=o.theme[t.slice(2)];return te(l,n)}return i},za=t=>{let e=A(),r={};for(let n in t){let o=n.slice(0,1);if(N(t[n])){if(o==="@")continue;o===":"?r[`&${n}`]=za(t[n]):o==="."&&(r[`&${n}`]=za(t[n]))}else r[n]=t[n]}return r},oh=(t,e)=>{let r=e.shift();return t[r]?oh(t[r],e):t},nh=(t,e)=>T(e)?oh(t,e):k(e)&&t[e]?t[e]:t;var te=(t,e)=>{let r=A();if(k(t)&&ot(t)&&(t=te(t.slice(2))),!t||!k(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=T(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=nh(s,o):s&&e&&(s=nh(s,e)),za(s)};P();P();var qa=(t,e)=>{let r=A(),n=`--font-${e}`;if(!t||T(t)&&!t[0])return;let o;if(t.isVariable){let s=Qt(t.url,r.files)||t.url;is(s)?o=as(s):o=dr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=Sn(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Qt(i,r.files)||i):Qt(t.url,r.files)||t.url;o=dr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},Ga=(t,e)=>{let r=A(),{fontFamily:n}=r;return xn(e||n,t)},ds=(t,e)=>{let r=A(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),_(s)&&(s=fr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};P();var sh=t=>{let e=A(),{typography:r,media:n}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:l,base:f,ratio:u,range:p,subSequence:d,h1Matches:h,unit:g}=t;et(i,{type:l,base:f,ratio:u,range:p,subSequence:d,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,S=n[c],x="@media "+(S==="print"?`${S}`:`screen and ${S}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){et(i,{sequence:{},scales:{},vars:{}}),$t(i),hr(t,o);continue}et(i,{sequence:{},scales:{},templates:{},vars:{}}),$t(i),hr(t,o)}},ih=t=>{let e=A();if(t.h1Matches){let r=t.unit,n=Na(t),{templates:o}=t;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Ka=()=>{let t=A(),{typography:e}=t;$t(e),ih(e),Ge(e),sh(e)},Xa=t=>{let e=A(),{typography:r}=e;return we(t,"fontSize",r)};P();P();var m_=t=>{let r=A().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return $t(o),o},y_=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;et(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),$t(r),hr(t,e)}},Ya=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},Za=()=>{let t=A(),{spacing:e}=t;$t(e),Ge(e),y_(e)},b_=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:$t(t)},dt=(t,e="padding",r,n)=>{let o=b_(r);if(k(t)&&!n&&t.includes("(")){let i=qe(t);n=i[0],t=i[1]}let s=n?[t]:fr(t);if(T(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,f)=>we(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return we(t,e,o,n)}},fe=(t,e,r,n)=>{let o=A(),{spacing:s}=o,i=r||t[e];if(!n&&k(i)&&i.includes("(")){let a=qe(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=m_(t);return dt(i,e,a,n)}return dt(i,e,s,n)},Ja=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=Hr.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};P();var br=(t,e,r,n)=>{let o=A();if(T(t))return{"@light":br(t[0],e,"light"),"@dark":br(t[1],e,"dark")};if(_(t)){let a={};for(let c in t)a[c]=br(t[c],e,c.startsWith("@")?c.slice(1):c);return a}k(t)&&!le.test(t)&&(t=ur(t).map(a=>(a=a.trim(),a.split(/\s+/).map(c=>{if(c=c.trim(),!c)return"";if(c.startsWith("--"))return`var(${c})`;let l=tt(c);if(xe(l))return l;if(/^\d/.test(c)||c==="0"||c.includes("px")||c.slice(-2)==="em"||c==="inset"||c==="none")return c;let f=dt(c,"shadow");return f&&f.shadow?f.shadow:c}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},Qa=(t,e)=>{let r=A();if(e||(e=r.globalTheme),!k(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let[n]=T(t)?t:t.split(" "),s=r.shadow[n],i=_(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let l=r.media[c.slice(1)],f="@media "+(l==="print"?`${l}`:`screen and ${l}`);a[f]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};P();var tc=()=>{let t=A(),{timing:e}=t;$t(e),Ge(e)},ee=t=>{let e=A(),{timing:r}=e;return r[t]||r[es(t)]||t},zt=(t,e="timing")=>{let r=A(),{timing:n}=r;return we(t,e,n)};P();var ec=()=>{let t=A(),{document:e,fontFamily:r,theme:n,typography:o}=t;return et(e,{theme:n.document,fontFamily:xn(r),fontSize:o.base,lineHeight:o.lineHeight})};P();var nc={document:X},hs=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?Ba(e,t):t},oc=(t,e=nc)=>{let r=A(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];ch(n,e)},sc=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?hs(t,e):t},ic=(t,e=nc)=>{let r=A(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];ch(n,e)},rc=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let r=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},x_=(t,e)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new r().parseFromString(n,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},ah=(t,e,r)=>{for(;e.firstChild;){let n=e.firstChild;r.appendChild(t.importNode(n,!0)),n.remove()}},ch=(t,e=nc)=>{let r=A(),n=e.document||X;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),us(t);let o=n.querySelector("#svgSprite"),s=us(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=x_(n,s);if(o)if(a)ah(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let c=rc(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=rc(n);c&&c.nodeType&&(ah(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let c=rc(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};P();var ac=(t={})=>{let e=A(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,l=n.templates;c.body={...e.useDocumentTheme?te("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?te("document"):{};if(r.html&&At(r.html,a),n.unit){let{media:c}=e;for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let u=f.unit,p=f.base||n.base,d=f.browserDefault||n.browserDefault,h=l.slice(1),g=c[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=p/d+u}}return q(et(r,t),{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+e.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}})}};P();var S_=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),__=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),w_=t=>S_.has(t),ke=t=>{let e=t+"";if(le.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(ot(o))return`var(${o})`;if(w_(o)||/^\d/.test(o)||o==="0")return o;let s=tt(o);if(xe(s))return s;let i=dt(o,"border");return i&&i.border?i.border:o}).join(" ")},lh=t=>le.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(ot(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=tt(e);return xe(r)?r:e}).join(" "),fh=(t,e)=>Qa(t,e),cc=(t,e)=>le.test(t)?t:ur(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(ot(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=tt(n);if(xe(o)){let i=bt(n,e);return _(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=dt(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),lc=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(")")),s=")",a=ur(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||__.has(f)||f==="transparent"||le.test(f))return f;let u=tt(f);return xe(u)?u:f}).join(" ")));return n+a.join(", ")+s},uh=(t,e)=>{let r=A();return t.split(", ").map(n=>ot(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?lc(n,e):r.gradient[t]?{backgroundImage:bt(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!We(n)?`url(${n})`:n).join(" ")},ph=t=>k(t)&&t.split(" ").map(e=>dt(e,"gap").gap).join(" "),k_=t=>{let e=t.split(" ");return e.length?e.map(r=>ot(r)?`var(${r})`:r.length<3||r.includes("ms")?zt(r).timing||r:ee(r)?ee(r):r).join(" "):t},fc=(t,e,r)=>{if(k(t))return t.split(",").map(n=>zt(n).timing||n).join(",")},dh=t=>{let e=t.split(",");if(e.length)return e.map(k_).join(",")};function st(t,e,r={},n={}){let o=Y.call(this,e||r[t]);if(o==null)return;let s;if(k(o)){if(o.includes("(")){let c=qe(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=Ya(t);!i&&a&&!n.ratio&&(o=Ja(o))}return n.ratio?fe(r,t,o,s):dt(o,t,void 0,s)}var j=(t,e=null,r)=>st(t,e,r,{ratio:!0}),uc=(t,e,r)=>{if(k(t))return{borderRadius:t.split(" ").map((n,o)=>fe(e,r,n)[r]).join(" ")}};P();var v_=(t,e)=>{let r=A(),{cssVars:n}=r,o=e.startsWith("--")?e:`--${e}`;return n[o]=t,t},Ft=t=>t,hh={color:mr,gradient:yr,font:qa,fontFamily:ds,fontfamily:ds,theme:Wa,icons:sc,semanticIcons:Ft,semanticicons:Ft,svg:hs,svgData:Ft,typography:Ft,shadow:br,spacing:Ft,media:Ft,grid:Ft,class:Ft,timing:Ft,reset:Ft,unit:Ft,animation:Ft,vars:v_},C_=(t,e,r)=>{let n=A(),o=Ra(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=hh[o]||hh[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){n.verbose&&console.warn("Error setting",s,"value",e,r,c)}n.verbose&&console.warn("Can not find",s,"method in scratch")},A_=(t,e)=>{let r=A(),n=t.toLowerCase();return Object.keys(e).sort((s,i)=>{let a=_(e[s])||T(e[s])?1:0,c=_(e[i])||T(e[i])?1:0;return a-c}).forEach(s=>{try{return C_(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},gh=(t,e)=>{let r=e||A();r.globalTheme=t;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(t&&t!=="auto")a.setAttribute("data-theme",t),t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=u=>{a.setAttribute("data-theme",u.matches?"dark":"light")},f=s.matchMedia("(prefers-color-scheme: dark)");if(l(f),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=l;try{f.addEventListener("change",l)}catch{f.addListener(l)}}}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",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let u=0;u<f.length;u++)if(f[u].selectorText===a){for(let p in r.cssVars)f[u].style.setProperty(p,r.cssVars[p]);return r}}catch{}}return r},E_={},kn=(t,e=E_)=>{let r=e.config||A(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:p,useDefaultConfig:d,semanticIcons:h,files:g,assets:m,...y}=t;e.newConfig&&(r=qd(e.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),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),l!==void 0&&(r.useIconSprite=l),p!==void 0&&(r.useDocumentTheme=p),f!==void 0&&(r.globalTheme=f),u!==void 0&&(r.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),d!==void 0&&(r.useDefaultConfig=d),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let S=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=S&&S.defaultView||(typeof window<"u"?window:null),v=S&&(r.themeRoot||S.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 L=Q=>{v.setAttribute("data-theme",Q.matches?"dark":"light")},V=x.matchMedia("(prefers-color-scheme: dark)");if(L(V),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=L;try{V.addEventListener("change",L)}catch{V.addListener(L)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let O=Object.keys(y),R=new Set(O);if(O.forEach(E=>{let L=E.toLowerCase();L!==E&&R.has(L)&&q(y[L],y[E])}),O.map(E=>{let L=E.toLowerCase();if(!(L!==E&&R.has(L)))return A_(E,y[E])}),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{Ka()}catch(E){r.verbose&&console.warn("Error applying typography sequence",E)}if(y.spacing)try{Za()}catch(E){r.verbose&&console.warn("Error applying spacing sequence",E)}if(y.timing)try{tc()}catch(E){r.verbose&&console.warn("Error applying timing sequence",E)}ec();let W=ac();return W&&(r.reset=W),r};var xr=new Map,T_=null,dc=null,O_=null;function hc(t){t.batchAtomicCss&&(dc=t.batchAtomicCss),t.compoundCssClass&&(O_=t.compoundCssClass)}var R_=new Set;function P_(t){try{let e=A();e&&(e.document=t)}catch{}t&&R_.add(t)}function xh(){try{let t=A();if(t?.document)return t.document}catch{}return typeof document<"u"?document:null}var I_={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 Ke(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function ms(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function $_(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():ms(e)}function mh(t,e,r){let n=(r?r+"":"")+t+":"+e,o=xr.get(n),s=o?null:Ke(t);if(!o){let a=I_[t]||ms(t),c=$_(e);o=r?`_${r}_${a}-${c}`:`_${a}-${c}`,xr.set(n,o)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return o;let i=`.${o}{${s||Ke(t)}:${e}}`;return Dt(i),o}var yh=new WeakMap;function Dt(t,e){let r=Sh(e);if(!r)return;let n=yh.get(r);if(n||(n=new Set,yh.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var bh=new WeakMap;function Sh(t){let e=t||xh();if(!e||!e.head)return null;let r=bh.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let n=e.head.querySelector("style[data-smbls]");n||(n=e.createElement("style"),n.setAttribute("data-smbls",""),e.head.appendChild(n));let o=n.sheet;return bh.set(e,o),T_=o,o}var F_=8;function Xe(t,e,r){if(!t||typeof t!="object")return"";let n=null,o=0,s=[],i=[];for(let c in t){let l=t[c];l==null||l===!1||l===""||(typeof l=="object"?i.push([c,l]):dc?(n||(n=[]),n.push(c,String(l)),o++):s.push(mh(c,String(l),r)))}if(n&&o>=F_){let c=n.join("\0"),l=dc(c),f=l.indexOf("\0"),u=l.substring(0,f),p=l.substring(f+1);if(p){let d=p.split(`
37
- `);for(let h=0;h<d.length;h++)d[h]&&Dt(d[h])}s.push(u)}else if(n)for(let c=0;c<n.length;c+=2)s.push(mh(n[c],n[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push(D_(i[c][0],i[c][1],r));return s.concat(a).join(" ").trim()}var pc=new Map;function D_(t,e,r){let n=(r?r+"":"")+t+JSON.stringify(e),o=xr.get(n);if(o){let p=pc.get(o);if(p)for(let d=0;d<p.length;d++)Dt(p[d]);return o}o=r?`_${r}_c${ms(n)}`:`_c${ms(n)}`;let s="",i=[],a=p=>typeof p=="string"&&(p.indexOf("{")!==-1||p.indexOf("}")!==-1),c=(p,d)=>{let h="";for(let g in d){let m=d[g];if(m!=null)if(typeof m=="object")c([...p,g],m);else{if(a(m))continue;h+=`${Ke(g)}:${m};`}}h&&(p.length===0?s+=h:i.push({chain:p,body:h}))};c([],e);let l=p=>{if(!p.length)return`.${o}`;let d=p[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<p.length;h++){let g=p[h].split(",").map(y=>y.trim()),m=[];for(let y of d)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);d=m}return d.join(", ")},f=[];if(t.startsWith("@media")||t.startsWith("@supports")){if(s){let p=`${t}{.${o}{${s}}}`;f.push(p),Dt(p)}for(let p of i){let d=l(p.chain),h=`${t}{${d}{${p.body}}}`;f.push(h),Dt(h)}return pc.set(o,f),xr.set(n,o),o}let u=l([t]);if(s){let p=`${u}{${s}}`;f.push(p),Dt(p)}for(let p of i){let h=`${l([t,...p.chain])}{${p.body}}`;f.push(h),Dt(h)}return pc.set(o,f),xr.set(n,o),o}function ct(t){if(Sh(),typeof t=="string"){Dt(t);return}let e=Object.keys(t),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};e.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 e){let o=t[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 c in i){let l=c.startsWith("--")?c:Ke(c);a+=`${l}:${i[c]};`}Dt(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Ke(s);Dt(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let c=o[a];if(typeof c=="object"&&c!==null)i=!0;else{let l=a.startsWith("--")?a:Ke(a);s+=`${l}:${c};`}}if(s&&Dt(`${n}{${s}}`),i){let a=[],c=[];for(let l in o)typeof o[l]=="object"&&o[l]!==null&&(l.startsWith("@media")||l.startsWith("@supports")?a.push(l):c.push(l));a.sort((l,f)=>{let u=p=>{let d=p.match(/max-width:\s*(\d+)/);return d?parseInt(d[1]):0};return u(f)-u(l)});for(let l of c)ct({[`${n} ${l}`]:o[l]});for(let l of a)ct({[l]:{[n]:o[l]}})}}}}function ys(t,e){let r="";for(let n in e){let o="";for(let s in e[n])o+=`${Ke(s)}:${e[n][s]};`;r+=`${n}{${o}}`}return Dt(`@keyframes ${t}{${r}}`),t}function L_(){return xr.size}P();var gc="http://www.w3.org/2000/svg",Ss=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"]),M_=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 bs(t){return M_.has(t)||Ss.has(t)}function _s(t){return Ss.has(t)}function Sr(t){let{tag:e,key:r}=t;if(typeof e=="function"&&(e=e(t)),e===!0&&(e=r),typeof e=="string"&&bs(e))return e;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]),bs(o)&&!n.has(o)?o:"div"}var _h={};function xs(t,e){let r=e?.context?.document||globalThis.document;if(!r)return null;if(t==="string")return r.createTextNode(e?.text||"");if(t==="fragment")return r.createDocumentFragment();if(_s(t)){let n=e?.parent;if(t==="svg"||n?.node?.namespaceURI===gc)return r.createElementNS(gc,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function _r(t){let e=t.tag=Sr(t),n=_s(e)&&(e==="svg"||t.parent?.node?.namespaceURI===gc)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=_h[n];if(s||(s=_h[n]=xs(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?xs(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var Ot=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"]),wh={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},wr=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"]),kh=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),ws=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 mc=new WeakMap,N_={passive:!0},j_={passive:!0,capture:!0},yc=(t,e)=>kh.has(t)?e?j_:N_:e||!1;function Ch(t){let e=mc.get(t);return e||(e={handlers:new Map,installed:new Set},mc.set(t,e)),e}function B_(t,e){let r=Ch(e);if(r.installed.has(t))return;r.installed.add(t);let n=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave",o=t==="mouseenter"||t==="mouseleave";e.addEventListener(t,s=>{let i=s.target;for(;i&&i!==e;){let a=r.handlers.get(t);if(a){let c=a.get(i);if(c){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},yc(t,n))}function bc(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=Ch(n);B_(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function xc(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=mc.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function vh(t){return ws.has(t)&&!wr.has(t)}function ks(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o?.designSystem,i=a=>{s&&pt(s);try{let c=r.call(e,a,e,e.state,o);if(c&&typeof c.then=="function"){c.catch(l=>{e.error=l,console.error("[DOMQL] Async event error:",l)}).finally(()=>{s&&at()});return}}catch(c){if(e.error=c,console.error("[DOMQL] Event error:",c),o?.strictMode)throw c}s&&at()};if(vh(t)){let a=o?.rootNode||n.ownerDocument?.documentElement;bc(t,n,i,a)}else n.addEventListener(t,i,yc(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(vh(t)){let a=o?.rootNode||n.ownerDocument?.documentElement;xc(t,n,a)}else n.removeEventListener(t,i,yc(t,!1))})}function Ah(t){let e=[];return t.extends&&(Array.isArray(t.extends)?e.push(...t.extends):e.push(t.extends)),t.extend&&(Array.isArray(t.extend)?e.push(...t.extend):e.push(t.extend)),e}function vs(t,e,r){let n=Ah(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=Eh(n[i],s);a&&a!==e&&Th(t,a,r,new Set([e]))}}function Eh(t,e){if(typeof t=="string"){if(t.includes(">")){let r=t.split(">").map(o=>o.trim()),n=e[r[0]]||e[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function Th(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=Ah(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=Eh(o[a],i);c&&Th(t,c,r,n)}}for(let s in e){if(s==="extends"||s==="extend")continue;let i=e[s];t[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?t[s]={...i}:t[s]=i:typeof t[s]=="object"&&typeof i=="object"&&!Array.isArray(t[s])&&!Array.isArray(i)&&t[s]!==null&&i!==null?t[s]=Oh(t[s],i):t[s]=i}}function Oh(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Oh(o,s):r[n]=s}return r}ar();function Cs(t={},e={}){let r=this,n=r.__ref;if(n){if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,e)===!1)return r;if(Ie(()=>{if(t.state&&mt(r.state)&&r.state.update(t.state),t.text!==void 0&&(r.text=t.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=t.text??"":r.node.textContent=t.text??"")),t.html!==void 0&&(r.html=t.html,!n.__exec.html&&r.node&&(r.node.innerHTML=t.html)),t.style&&r.node?.style){if(!n.__exec.style)for(let o in t.style){let s=t.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let o in t.attr){let s=t.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,t.attr)}if(t.data&&r.node?.dataset){for(let o in t.data)r.node.dataset[o]=t.data[o];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let o in t){if(Ot.has(o)||o==="state")continue;let s=t[o],i=r[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,e);else if(typeof s=="object"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&Ut(s,r,o,e)}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 Xt("update",r),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}}function kr(t){if(!t)return;let e=t.__ref;if(e){try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){for(let r=0;r<e.__children.length;r++){let n=e.__children[r],o=t[n];o&&o.__ref&&kr(o)}e.__children.length=0}if(t.node?.parentNode&&t.node.remove(),t.state?.destroy&&t.state.__element===t&&t.state.destroy(),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(r){console.error("[smbls] onRemove error:",r)}t.node=null,t.parent=null,t.__ref=null}}function As(){kr(this)}P();P();var V_=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],z_=["none","forwards","backwards","both"],U_=["normal","reverse","alternate","alternate-reverse"],W_=["running","paused"],H_=t=>/^[\d.]+m?s$/.test(t),q_=0,Sc=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(_(t)){let o=`smbls-anim-${q_++}`;return{animationName:ys(o,t)}}let n=r&&r[t];return _(n)?ys(t,n):t},G_=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let u of n)r&&r[u]?o=u:H_(u)?s.push(u):V_.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):U_.includes(u)?c=u:z_.includes(u)?l=u:W_.includes(u)?f=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},Rh={animation:(t,e)=>{if(k(t)&&t.includes(" ")){let r=G_(t,e);return{animationName:Sc(r.name||t,e),animationDuration:r.durations[0]||zt(e.animationDuration||"A").timing,animationDelay:r.durations[1]||zt(e.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||ee(e.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.animationIterationCount||1,animationPlayState:r.playState||e.animationPlayState,animationDirection:r.direction||e.animationDirection}}return{animationName:Sc(t,e),animationDuration:zt(e.animationDuration||"A").timing,animationDelay:zt(e.animationDelay||"0s").timing,animationTimingFunction:ee(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||"both",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:Sc(t,e)}),animationDuration:t=>({animationDuration:zt(t).timing}),animationDelay:t=>({animationDelay:zt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:ee(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};P();var Ph={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>j("height",t,e),width:(t,e)=>j("width",t,e),boxSizing:t=>ht(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("height",e),...st("width",r||e)}},inlineSize:(t,e)=>j("inlineSize",t,e),blockSize:(t,e)=>j("blockSize",t,e),minWidth:(t,e)=>j("minWidth",t,e),maxWidth:(t,e)=>j("maxWidth",t,e),widthRange:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("minWidth",e),...st("maxWidth",r||e)}},minHeight:(t,e)=>j("minHeight",t,e),maxHeight:(t,e)=>j("maxHeight",t,e),heightRange:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("minHeight",e),...st("maxHeight",r||e)}},size:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...j("inlineSize",e),...j("blockSize",r||e)}},minBlockSize:(t,e)=>j("minBlockSize",t,e),minInlineSize:(t,e)=>j("minInlineSize",t,e),maxBlockSize:(t,e)=>j("maxBlockSize",t,e),maxInlineSize:(t,e)=>j("maxInlineSize",t,e),minSize:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("minInlineSize",e),...st("minBlockSize",r||e)}},maxSize:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("maxInlineSize",e),...st("maxBlockSize",r||e)}},borderWidth:(t,e)=>j("borderWidth",t,e),padding:(t,e)=>j("padding",t,e),scrollPadding:(t,e)=>j("scrollPadding",t,e),paddingInline:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("paddingInlineStart",e),...st("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("paddingBlockStart",e),...st("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>j("paddingBlockStart",t,e),paddingBottom:(t,e)=>j("paddingBlockEnd",t,e),paddingLeft:(t,e)=>j("paddingInlineStart",t,e),paddingRight:(t,e)=>j("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>j("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>j("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>j("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>j("paddingInlineEnd",t,e),margin:(t,e)=>j("margin",t,e),marginInline:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("marginInlineStart",e),...st("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!k(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...st("marginBlockStart",r),...st("marginBlockEnd",n||r)}},marginTop:(t,e)=>j("marginBlockStart",t,e),marginBottom:(t,e)=>j("marginBlockEnd",t,e),marginLeft:(t,e)=>j("marginInlineStart",t,e),marginRight:(t,e)=>j("marginInlineEnd",t,e),marginInlineStart:(t,e)=>j("marginInlineStart",t,e),marginInlineEnd:(t,e)=>j("marginInlineEnd",t,e),marginBlockStart:(t,e)=>j("marginBlockStart",t,e),marginBlockEnd:(t,e)=>j("marginBlockEnd",t,e),gap:t=>({gap:ph(t)}),columnGap:(t,e)=>fe(e,"columnGap",t),rowGap:(t,e)=>fe(e,"rowGap",t),flexWrap:t=>({display:"flex",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!k(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,e)=>uc(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>uc(t??e.round,e,"borderRadius")};var Ih={fontSize:t=>Xa(t)||t,fontFamily:t=>({fontFamily:Ga(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var $h={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.assets&&n.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=n.files&&n.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var Fh={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>dt(r,"k").k).join(" ")}},left:t=>dt(t,"left"),top:t=>dt(t,"top"),right:t=>dt(t,"right"),bottom:t=>dt(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>dt(r,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>dt(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};P();var Wt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Dh={theme:(t,e)=>{if(t)return e.themeModifier?te(t,`@${e.themeModifier}`):te(t)},color:(t,e)=>{let r=Wt(e);if(t)return{color:bt(t,r)}},background:(t,e)=>{let r=Wt(e);if(t)return k(t)&&t.includes("gradient")?{background:lc(t,r)}:{background:bt(t,r)}},backgroundColor:(t,e)=>{let r=Wt(e);if(t)return{backgroundColor:bt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Wt(e);if(!t)return;let s=n.assets&&n.assets[t];if(s&&s.content)t=s.content.src;else{let i=n.files&&n.files[t];i&&i.content&&(t=i.content.src)}return{backgroundImage:uh(t,o)}},textStroke:t=>({WebkitTextStroke:lh(t)}),outline:t=>({outline:ke(t)}),outlineOffset:(t,e)=>j("outlineOffset",t,e),border:t=>({border:ke(t)}),borderColor:(t,e)=>{let r=Wt(e);if(t)return{borderColor:bt(t,r)}},borderTopColor:(t,e)=>{let r=Wt(e);if(t)return{borderTopColor:bt(t,r)}},borderBottomColor:(t,e)=>{let r=Wt(e);if(t)return{borderBottomColor:bt(t,r)}},borderLeftColor:(t,e)=>{let r=Wt(e);if(t)return{borderLeftColor:bt(t,r)}},borderRightColor:(t,e)=>{let r=Wt(e);if(t)return{borderRightColor:bt(t,r)}},borderLeft:t=>({borderLeft:ke(t)}),borderTop:t=>({borderTop:ke(t)}),borderRight:t=>({borderRight:ke(t)}),borderBottom:t=>({borderBottom:ke(t)}),shadow:(t,e)=>{let r=Wt(e);if(t)return{boxShadow:fh(t,r)}},boxShadow:(t,e)=>{if(!k(t))return;let[r,n]=t.split("!importan"),o=Wt(e),s=n?" !important":"";return{boxShadow:cc(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:cc(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:ke(t)})};var Es={transition:t=>({transition:dh(t)}),transitionDuration:t=>({transitionDuration:fc(t)}),transitionDelay:t=>({transitionDelay:fc(t)}),transitionTimingFunction:t=>({transitionTimingFunction:ee(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};P();var Lh={flow:(t,e)=>{let r=e.reverse;if(!k(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(t,e)=>({display:"flex",flexWrap:t}),align:(t,e)=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var Mh={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var lt={...Rh,...Ph,...Ih,...$h,...Fh,...Dh,...Es,...Lh,...Mh};var xt=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"]);P();var K_=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,X_=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=Lt(e,r);if(!s)return{[t]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(K_),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=n.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},Nh=(t,e,r)=>({[t]:Lt(e,r)}),vn=(t,e,r)=>{let n=`&${t}`,o=Lt(e,r);if(t.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(l=>l.trim()),c={};Object.keys(s).length&&(c[n]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(", ");c[f]=i[l]}return c}}return{[n]:o}},_c=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},Y_=(t,e,r)=>{let n=t.slice(1),o=_c(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Lt(e,r)},Z_=(t,e,r)=>({[t]:e}),J_=(t,e,r)=>{let n=t.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=_c(n,r);s!==void 0&&(o=s)}if(o)return Lt(e,r)},Q_=(t,e,r)=>{let n=t.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=_c(n,r);s!==void 0&&(o=s)}if(!o)return Lt(e,r)},jh=(t,e)=>Lt(t,e),Bh={"@":X_,":":vn,"[":vn,"*":vn,"+":vn,"~":vn,"&":Nh,">":Nh,$:Y_,"-":Z_,".":J_,"!":Q_};var wc=Ne(),tw=(t,e,r)=>{let n=e?.context?.designSystem;n&&pt(n);try{let o={},s={},i=(a,c)=>{if(r.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(a==="class"&&e.call("isString",t.class)){let l=c.split(" ");if(l.length){let f=e.context.designSystem.class,u=l.reduce((p,d)=>et(p,f[d]),{});o.designSystemClass=u}}else if(a==="true"){let l=Y(c,e);et(o,jh(l,e))}else if(e.classlist[a]){let l=e.classlist[a],f=C(l)?l(e,e.state,e.context):l;f&&i(a,f),!wc&&_(o[a])&&(o[a].label=a)}else if(lt[a]){let l=Y(c,e);T(l)&&(l=l.reduce((u,p)=>et(u,p),{}));let f=lt[a](l,e,e.state,e.context);T(f)&&(f=f.reduce((u,p)=>et(u,p),{})),f&&i(a,f),!wc&&_(o[a])&&(o[a].label=a)}else if(xt.has(a)){let l=Y(c,e);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!wc&&_(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&at()}},ew=(t,e)=>{let r={};for(let n in t){let o=Bh[n.slice(0,1)];if(o){let s=o(n,t[n],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?At(r[i],s[i]):r[i]=s[i])}}return r},Lt=(t,e,r={unpack:!0})=>{let[n,o]=tw(t,e,r),s=ew(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return co(n,s);n._selectors=s}return n},IO=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};P();var rw=t=>{if(_(t))return Lt(t,t)},MO=(t,e)=>{let r=rw(t);return typeof e=="function"?e(r):Xe(r)};P();function Uh(t,e,r){let n=t?.context?.analyze;if(!n||!n.emit||e==="warn"&&!n.shouldCapture("warnings")||e==="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:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:o||null,args:r})}function nw(...t){return Uh(this,"warn",t),qo.apply(this,t)}function ow(...t){return Uh(this,"error",t),lr.apply(this,t)}var Vh={update:Cs,remove:As,getDB:Yo,getQuery:Zo,getRootData:Uo,getChildren:No,getPath:jo,nextElement:Go,previousElement:Ko,verbose:hn,warn:nw,error:ow,variables:Xo,spotByPath:Mo,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}this.__ref&&(this.__ref.contentManaged=!0)},reset(t){let e=this.context?.__create;if(!e)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),e(o,r,n,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let r of e.__children){let n=this[r];if(!n)continue;if(typeof t=="function"){if(t(n))return n}else if(typeof t=="string"&&n.key===t)return n;let o=n.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let r=this.__ref;if(!r?.__children)return e;for(let n of r.__children){let o=this[n];o&&(typeof t=="function"?t(o)&&e.push(o):typeof t=="string"&&o.key===t&&e.push(o),o.lookdownAll?.(t,e))}return e},getRef(){return this.__ref},getRoot:zo,getRootState:Vo,getRootContext:Wo,getContext:Ho,parse(t){let e={},r=t?new Set(t):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){e[o]=n[o];continue}typeof this[o]!="function"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(e[n]=this[n].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let r of t)e[r]=this[r];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let r=t[e];if(r==null)continue;let n=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(t,...e){let r=this.context,n=r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof n=="function")return n.call(this,...e)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let r=t.__children.indexOf("content");r!==-1&&t.__children.splice(r,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},zh=new WeakMap;function sw(t){if(!t)return Vh;let e=zh.get(t);if(e)return e;e=Object.create(Vh);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return zh.set(t,e),e}function Ts(t){let e=sw(t.context);Object.setPrototypeOf(t,e)}P();ar();var iw=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Ht=(t,e)=>{if(mt(e)){let o=e.__raw||e;e.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(o,"set",{value:function(s,i={}){return e.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.update(s,i),e},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(e);return e.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(e),e.update(e.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=e;for(;a?.parent&&mt(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(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=e;for(;s?.parent&&mt(s.parent);)s=s.parent;return s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let r=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},n={update(o){if(!o||typeof o!="object")return e;for(let s in o)e[s]=o[s];return e},apply(o){if(typeof o!="function")return e;let s=o(e);return s?e.update(s):e},parse(){return{...e}},toggle(o){return e[o]=!e[o],e},set(o){if(!o||typeof o!="object")return e;r();for(let s in o)e[s]=o[s];return e},replace(o){return e.set(o)},clean(){return r(),e}};for(let o in n)typeof e[o]!="function"&&iw(e,o,n[o])};var aw=function(t,e,r){return t.state=Wh(t,e,r),t.state},Wh=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Ht(t,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",cw(o,t,e);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=jt({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Ht(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!mt(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=jt({...o});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Ht(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,r),s}return mt(o)?(o.__element=t,o):e?.state||{}};function kc(t,e){if(!e)return t;let r=e.split("/"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function cw(t,e,r){if(!r?.state)return{};if(t===".")return r.state;if(t.startsWith("../")){let o=t.slice(3),s=r.state?.parent;return o&&s?kc(s,o):s??r.state??{}}if(t.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?kc(o,s):o??{}}let n=kc(r.state,t);if(n&&typeof n=="object"&&!mt(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 lw=(t,e)=>{if(!t)return qh;let r=pw(t,e);return!r||!r.state?qh:hw(r.state)},fw=()=>Ur()!=null,uw=128;function pw(t,e){let r=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,n=t,o=null;for(let s=0;s<uw&&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 dw={get(t,e){return t[e]}},Hh=new WeakMap,hw=t=>{let e=Hh.get(t);return e||(e=new Proxy(t,dw),Hh.set(t,e)),e},qh=new Proxy(Object.create(null),{get(){},has(){return!1}});P();var sR=["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"],vc={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"]},gw=["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"],Cc=t=>t.startsWith("aria")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"aria-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):t.startsWith("data")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"data-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):null,Ze=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||Cc(e)||vc.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(vc,t)?vc[t].includes(e):!1,Yh=t=>{if(!k(t))return!1;let e=t.toLowerCase();return gw.includes(e)},iR=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;if(o==="aria"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])vt(e[o][a])&&(n["aria-"+a]=e[o][a]);continue}if(o==="data"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])if(vt(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());n["data-"+c]=e[o][a]}continue}let s=Ze(t,o),i=Yh(o);if(vt(e[o])&&(s||i)){let a=Cc(o)||o;n[a]=e[o]}}return n},aR=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let n in t.aria){let o=t.aria[n];typeof o=="function"&&(r["aria-"+n]=o(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let n in t.data){let o=t.data[n];if(typeof o=="function"){let s=n.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=o(e,e.state,e.context)}}return r},Ye=(t,e)=>{let r=t.call("exec",e,t);if(r)return k(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},Gh=(t,e)=>{let r=(t.preSrc||"")+(Ye(t,e)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=t;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},Kh={src:t=>Gh(t,t.src),href:t=>Ye(t,t.href),action:t=>Ye(t,t.action),poster:t=>Gh(t,t.poster),data:t=>Ye(t,t.data)},Zh=t=>{let e=t.tag||"div",r={};for(let n in Kh)if(t[n]!==void 0&&Ze(e,n)){let o=Kh[n](t);o!==void 0&&(r[n]=o)}return r},Xh=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},mw=(t,e,r)=>{if(t==="$"){let o=Xh(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=Xh(e,r);o!==void 0&&(n=o)}return t==="."?!!n:!n},yw=new Set(["$",".","!"]),cR=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(mw(a,c,f))return C(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!yw.has(i))continue;let a=t[s];if(!a||typeof a!="object")continue;let c=s.slice(1);for(let l in a){if(r&&l in r)continue;if(l==="aria"&&a[l]&&typeof a[l]=="object"){for(let d in a[l])o("aria-"+d,a[l][d],i,c);continue}if(l==="data"&&a[l]&&typeof a[l]=="object"){for(let d in a[l]){let h=d.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());o("data-"+h,a[l][d],i,c)}continue}let f=Ze(e,l),u=Yh(l);if(!f&&!u)continue;let p=Cc(l)||l;o(p,a[l],i,c)}}return n};var bw=1;function Cr(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function xw(t){return t.charAt(2).toLowerCase()+t.slice(3)}function Sw(t){return t.toLowerCase()}function Tc(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Tc(o,s):r[n]=s}return r}function Ut(t,e,r,n={},o){if(t==null||t===!1)return null;(typeof t=="string"||typeof t=="number")&&(t={text:t});let s=Object.create(null);s.key=r||t.key||`_${bw++}`,s.parent=e||null,s.context=t.context||e?.context||n.context||{},s.context.__create||(s.context.__create=Ut);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||s,path:e?.__ref?.path?[...e.__ref.path,s.key]:[s.key]};if(r&&!t.extends&&!t.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(t={extends:m,...t})}}vs(s,t,n);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let g in t){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=t[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]=Tc(y,m):b&&a.has(g)?s[g]={...y,...m}:s[g]=m}function l(g){for(let m in g){let y=g[m],b=s[m],S=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";S&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=Tc(b,y):S&&a.has(m)?s[m]={...b,...y}:s[m]=y}}c&&l(c),t.props&&typeof t.props=="object"&&l(t.props),t.data!==void 0&&(s.data=t.data),t.classlist!==void 0&&(s.classlist=t.classlist),t.text!==void 0&&(s.text=t.text),t.html!==void 0&&(s.html=t.html);let f=s.scope&&typeof s.scope=="object"?s.scope:null,u=e?.scope,p=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,d=u||p||null;if(t.scope!==void 0||f){let g={};f&&Object.assign(g,f),t.scope!==void 0&&Object.assign(g,t.scope),s.scope=wi(g,d)}else d&&(s.scope=d);if(t.if!==void 0&&(s.if=t.if),Ts(s),_w(s,e,t),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 t.if=="function"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof t.if=="function"&&Oc(s,{if:t.if}),s;s.tag||(s.tag=Sr(s)),ve("Init",s,n);let h=s.node=_r(s);if(!h)return s;ve("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),Oc(s,t),Rc(s),Qh(s),tg(s,n);try{eg(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?`
35
+ }`,Sn=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=e[o],f=Array.isArray(s)?s.map(u=>Jt(u,r)||u):Jt(s,r)||s;return Ea(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),wS=t=>Object.keys(t).map(r=>Sn(r,t[r].value)),Ud=(t,e,r)=>{if(e&&e.isVariable){let s=Jt(e.url,r)||e.url;return is(s)?as(s):dr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return Sn(t,e,r).map(zd);let o=Array.isArray(e.url)?e.url.map(s=>Jt(s,r)||s):Jt(e.url,r)||e.url;return dr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Ta=(t,e)=>Object.keys(t).map(n=>Ud(n,t[n].value,e));P();P();P();var cs={};F(cs,{animation:()=>US,breakpoints:()=>VS,class:()=>XS,color:()=>IS,devices:()=>zS,document:()=>BS,font:()=>CS,fontFace:()=>TS,fontFamily:()=>AS,fontFamilyTypes:()=>ES,gradient:()=>$S,grid:()=>KS,icons:()=>LS,media:()=>OS,reset:()=>YS,semanticIcons:()=>MS,sequence:()=>He,shadow:()=>DS,spacing:()=>PS,svg:()=>WS,svgData:()=>HS,templates:()=>qS,theme:()=>FS,timing:()=>jS,typography:()=>Oa,unit:()=>kS,vars:()=>ZS});var He={"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 kS={default:"em"};var vS={browserDefault:16,base:16,type:"font-size",ratio:He["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Oa=vS;var CS={};var AS={},ES={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},TS={};var OS={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var RS={base:Oa.base,type:"spacing",ratio:He.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},PS=RS;var IS={},$S={};var FS={};var DS={};var LS={},MS={};var NS={default:150,base:150,type:"timing",ratio:He["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},jS=NS;var BS={};var VS={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},zS={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 US={};var WS={},HS={};var qS={};var GS={},KS=GS;var XS={};var YS={},ZS={};var Wd={},Hd={},ls=cs,fs={},Ra=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in ls){let e=t.toLowerCase();fs[e]=ls[t];let r=Ra(e);r!==e&&(fs[r]=ls[t]),e!==t&&(fs[t]=ls[t])}var Pa={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Wd,cssMediaVars:Hd,CSS_VARS:Wd,CSS_MEDIA_VARS:Hd,_scratchConfig:!0,...fs},qd=Q(Pa),Se={active:"0",0:Pa},OE=t=>(vt(t)&&(Se.active=t),Se[t||Se.active]),_n=[],pt=t=>{t&&t._scratchConfig&&_n.push(t)},at=()=>{_n.pop()},A=t=>_n.length?_n[_n.length-1]:Se[t||Se.active]||Pa,Gd=t=>{if(_(t))return Se.active="1",Se[1]=q(t,Q(qd)),t},JS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],QS=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],t_=t=>{for(let e of QS){let r;for(let n of e){let o=t[n];_(o)&&(r=r?q(o,r):o)}if(r)for(let n of e)_(t[n])&&(t[n]=r)}},Kd=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:A(),o=Q(!r&&n&&n._scratchConfig?n:qd);for(let i of JS)delete o[i];let s=q(e||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,t_(s),t&&(Se[t]=s),s};var _e={"-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"},Ia=(t,e)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},e.scales[r]=s;let c=Xd.has(e.unit)?"rem":e.unit;e.vars[n]=s+c},qe=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Xd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),$a=(t,e)=>{let{base:r,type:n,unit:o}=e,s=Xd.has(o)?"rem":o,i=(Wr(s)?1:r)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=_e[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=_e[t+1],u=Math.abs(t),p=Math.pow(Zd,2*u),d=_e[u];return d?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${d}) / ${p.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Yd=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,l=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},Fa=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Da=(t,e)=>Fa(t,e).map(r=>r/t),La=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,p,d]=Fa(o,s);l>16?f=[u,p,d]:f=[u,d],f.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,S=Yd(g+1,f,i,e),x={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:S,index:b};Ia(x,e)})},Zd=1.618,e_=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let n=Math.abs(t),o=e*Math.pow(r,t),s=e*Math.pow(r,n)/Math.pow(Zd,2*n);return Math.max(o,s)},$t=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=o[1]-l,u=_e[f],p=e_(f,r,n),d=~~(p/r*100)/100,h=c+u,g=$a(f,t),m={key:u,variable:h,value:p,base:r,scaling:d,scalingVariable:g,ratio:n,index:f};Ia(m,t),s&&La(m,t)}return t},r_=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=k(e)?e:_e[e],a=k(e)?Object.entries(_e).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=n*Math.pow(o,a),f=~~(l/n*100)/100,d="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=$a(a,t),g={key:i,variable:d,value:l,base:n,scaling:f,scalingVariable:h,ratio:o,index:a};return Ia(g,c),s&&La(g,c),c},Ma=(t="A",e)=>{let r=A(),{unit:n}=r;if(k(t)&&ot(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Hr.some(S=>t.includes(S))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let p=`--${e.varPrefix?e.varPrefix+"-":""}${rs(e.type.replace(".","-"))}-`,d=t.toUpperCase(),h=d.slice(0,1)==="-"?"-":"",g=h?d.slice(1):d,m="";g.includes("_")&&(m="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=S=>a.test(S)?`var(${p}${S}${m})`:S;if(g.includes("+")){let[S,x]=g.split("+"),v=`${y(S)} + ${y(x)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("*")){let[S,x]=g.split("*"),v=`${y(S)} * ${y(x)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("-")){let[S,x]=g.split("-"),v=`${y(S)} - ${y(x)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}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 S=`var(${p}${g}${m})`;return h?`calc(${S} * -1)`:S}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)},Jd=(t,e)=>{if(!["+","-","*","/",","].filter(s=>t.includes(s+" ")).length)return t;let n=/(\s*[+\-*/,]\s*)/;return t.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Ma(i,e)}).join("")},we=(t,e,r,n)=>{if(typeof t!="string")return A().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=qe(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Jd(t,r):t=Ma(t,r),{[e]:n?`${n}(${t})`:t}},Qd=(t,e)=>_e[t-e],Na=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Qd(e,o);return r[s]})};P();var n_=(t,e)=>{let r=A(),{cssVars:n}=r;N(t.value)||(n[t.var]=t.value)},ja=(t,e,r)=>{let n=A(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let u=`${f}-ratio`;t[u]=a;let[p,d,h]=Da(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${h/a})`},th=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ge=(t,e={})=>{let r=A(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=th.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||ja(s,t,e);for(let u in l){let p=l[u],d=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[p.variable+"_default"]=d,s[p.variable]=p.scalingVariable;continue}e.useDefault===!1?s[p.variable]=d:(s[p.variable+"_default"]=d,s[p.variable]=`var(${p.variable+"_default"})`)}},hr=(t,e,r={})=>{let n=A(),{unit:o,media:s,cssVars:i}=n,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=th.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:p,scales:d}=c,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!u){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),ja(g,c,r);let m=t.unit||o.default;if(f!==m&&p)for(let y in p){let b=p[y],S=d[y]+f;g[b.variable+"_default"]=S,g[b.variable]=S}return}for(let g in p){let m=p[g],y=(Wr(f)?d[g]:p[g].val)+f;!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}};P();var rh=ir(),us=t=>{let e=A(),r="";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},o_=t=>{let e=t&&(t.default||t);if(!k(e))return rh&&console.warn("parseRootAttributes:",e,"is not a string"),{};let r=e.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,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},s_=(t,e)=>{let r=[];if(t.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return t;let n=t;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${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},eh=new Set,Ba=(t,e)=>{let r=e&&e.default?e.default:e;if(!k(r))return rh&&!eh.has(t)&&(eh.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=r;let n=o_(e),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,l=s_(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return l=l.replace(/width="[^"]*"/,""),l=l.replace(/height="[^"]*"/,""),l=l.replace("</svg","</symbol"),l=c_(l),l},i_="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",a_=new RegExp(`<(${i_})\\b([^>]*?)\\s*/>`,"g"),c_=t=>t.replace(a_,"<$1$2></$1>");var gs={};F(gs,{appendSVGSprite:()=>oc,appendSvgIconsSprite:()=>ic,applyDocument:()=>ec,applyHeadings:()=>ah,applyReset:()=>ac,applySpacingSequence:()=>Za,applyTimingSequence:()=>tc,applyTypographySequence:()=>Ka,checkIfBoxSize:()=>Ya,getColor:()=>tt,getFontFamily:()=>Ga,getFontSizeByKey:()=>Xa,getMediaColor:()=>bt,getMediaTheme:()=>Qt,getShadow:()=>Qa,getSpacingBasedOnRatio:()=>fe,getSpacingByKey:()=>dt,getTheme:()=>Ua,getTimingByKey:()=>Vt,getTimingFunction:()=>te,runThroughMedia:()=>ih,setColor:()=>mr,setFont:()=>qa,setFontFamily:()=>ds,setGradient:()=>yr,setMediaTheme:()=>Ha,setSVG:()=>hs,setShadow:()=>br,setSvgIcon:()=>sc,setTheme:()=>Wa,splitSpacedValue:()=>Ja});P();var tt=(t,e,r)=>{let n=r||A();if(!k(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(E(t))[o,s,i]=t;else{let u=We(t);if(!u){let{color:p,gradient:d}=n,h=d[t]||p[t];return h?n.useVariable?`var(${h.var})`:h.value:t}if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}let{color:a,gradient:c}=n,l=a[o]||c[o];if(!l)return n.verbose&&console.warn("Can't find color ",o),t;e&&(l[e]?l=l[e]:n.verbose&&console.warn(t," - does not have ",e));let f=l.rgb;return f?(i&&!l[i]&&(f=pr(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:n.useVariable?`var(${l.var})`:`rgb(${f})`):n.useVariable?`var(${l.var})`:l.value},bt=(t,e,r)=>{let n=r||A();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!k(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let o;if(E(t))o=t[0];else{let l=We(t);if(!l)return t;if(l.passthrough)return l.passthrough;if(l.cssVar)return`var(${l.cssVar})`;o=l.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=_(a);if(c&&a.value)return tt(t,`@${e}`,r);if(c){if(n.useVariable&&a.var)return`var(${a.var})`;if(e)return tt(t,`@${e}`,r);{let l={};for(let f in a){if(f.charCodeAt(0)!==64)continue;let u=n.media[f.slice(1)];if(!u)continue;let p="@media "+(u==="print"?`${u}`:`screen and ${u}`);l[p]=tt(t,f,r)}return l}}else return n.verbose&&console.warn("Can't find color",t),t},mr=(t,e,r)=>{let n=A();if(k(t)&&ot(t)){let g=t.slice(2);if(t=tt(g),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=g.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(k(y)||E(y)||_(y))&&(n.color[m[0]]=mr(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,S=m[1]!==void 0?m[1]:"1",x=m[2];x&&(b=pr(b,x)),t=`rgba(${b}, ${S})`}else{let b=m[2],S=m[1]!==void 0?m[1]:"1";if(b)try{let x=be(m[0]);x&&x.length>=3?t=`rgba(${pr(x.slice(0,3).join(", "),b)}, ${S})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(E(t)&&(t={"@light":t[0],"@dark":t[1]}),_(t)){let g={};for(let m in t)g[m]=mr(t[m],e,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`,b,S={};for(let x in g){if(x.charCodeAt(0)!==64)continue;let v=x.slice(1),O=g[x],R=O&&(O.value||O);!R||typeof R!="string"||(S[v]=R,(v==="light"||b===void 0)&&(b=R))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let x in S){let v=`[data-theme="${x}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][y]=S[x],x==="light"||x==="dark"){let O=`@media (prefers-color-scheme: ${x})`;n.cssMediaVars[O]||(n.cssMediaVars[O]={}),n.cssMediaVars[O][y]=S[x]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;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=We(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(k(m)||E(m)||_(m))&&(n.color[g.name]=mr(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=pr(b,g.tone));let S=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${S})`}}}let a=be(i),[c,l,f,u=1]=a,p=parseFloat(u.toFixed(2)),d=`${c}, ${l}, ${f}`,h=`rgba(${d}, ${p})`;return n.useVariable&&(n.cssVars[s]=h),{var:s,rgb:d,alpha:p,value:h}},yr=(t,e,r)=>{let n=A();if(k(t)&&ot(t)&&(t=tt(t.slice(2))),E(t))return{"@light":yr(t[0],e,"light"),"@dark":yr(t[0],e,"dark")};if(_(t)){let i={};for(let a in t)i[a]=yr(t[a],e,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[s]=t.value||t),{var:s,value:t.value||t}};P();var l_=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"]),nh=["color","Color","background","Background","fill","Fill","stroke","Stroke"],f_=t=>{for(let e=0;e<nh.length;e++)if(t.includes(nh[e]))return!0;return!1},ps=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let l=["color","Color","background","border"].some(f=>a.includes(f));return e[a]=l?tt(t[a]):t[a]}),e},wn=t=>(t.value||(t.value=ps(t)),t.value),Ua=(t,e)=>{let r=A();if(r.useVariable)return Qt(t,e);let n=r.theme;if(k(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return wn(i);t=[o,s||e]}}if(N(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return wn(a[s]);if(i&&i[s])return wn(i[s]);if(c&&c[s])return wn(c[s])}else if(_(t))return ps(t)},u_=(t,e,r)=>{if(_(e))t.variants.inverse.value=ps(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},p_=(t,e,r,n)=>{let o=Ua(r);n[`&:${e}`]=o,_(r)&&!r.value&&(r.value=o)},d_=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return p_(t,o,s,e),t}),t):void 0},h_=(t,e,r,n)=>{let o=Ua(r);n[`@media (prefers-color-scheme: ${e})`]=o,_(r)&&!r.value&&(r.value=o)},g_=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&h_(t,o,s,e),o==="inverse"&&u_(t,s,e),t}),t):void 0},m_=(t,e)=>{let r=A(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return k(i)?n[s]=r.theme[i]:wn(n[s]),t}),t):void 0},Wa=(t,e)=>{let r=A();if(r.useVariable)return Ha(t,e);let{state:n,media:o,helpers:s}=t,i=ps(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return d_(t,i),g_(t,i),m_(t,i),{var:c,value:i,state:n,media:o,helpers:s}};var Va=(t,e,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 l in t)if(t[l])for(let f of Object.keys(t[l]))a.add(f);let c=new Set;for(let l of a){let f=l.slice(0,1);if(!(f==="@"||f==="."||f===":")&&f_(l))for(let u in t){if(c.has(u))continue;let p=t[u]?.[l];if(p===void 0)continue;let d=tt(p,`@${u}`);d!==void 0&&k(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!l_.has(d)&&c.add(u)}}for(let l of a){let f=l.slice(0,1),u=Object.values(t).some(p=>N(p?.[l]));if(f==="."&&u){let p=l.slice(1),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=Va(d,`${e}-${p}`,r)}else if(f===":"&&u){let p=l.replace(/^:+/,""),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=Va(d,`${e}-${p}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let d=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}-${l}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,g;for(let m in t){if(c.has(m))continue;let y=t[m]?.[l];if(y===void 0)continue;let b=tt(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let S=`[data-theme="${m}"]`;if(o[S]||(o[S]={}),o[S][d]=b,m==="dark"||m==="light"){let x=`@media (prefers-color-scheme: ${m})`;o[x]||(o[x]={}),o[x][d]=b}}g!==void 0&&(n[d]=g),i[l]=`var(${d})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Ha=(t,e,r,n)=>{let o=A(),{cssVars:s}=o,i={value:t},a=!r&&!n;if(N(t)){if(a&&o.useVariable){let c={};for(let l in t)l.startsWith("@")&&N(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=Va(c,e,o);Object.assign(i,l)}}for(let c in t){let l=c.slice(0,1),f=t[c];if(l==="@"||l===":"||l==="."){let u=l==="@"&&c;i[c]=Ha(f,e,c,n||u)}else if(!a){let u=tt(f,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?"-"+p.join("-"):"",g=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=u),i[c]=`var(${g})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(k(t)&&ot(t)){let l=o.theme[t.slice(2)];return Qt(l,n)}return i},za=t=>{let e=A(),r={};for(let n in t){let o=n.slice(0,1);if(N(t[n])){if(o==="@")continue;o===":"?r[`&${n}`]=za(t[n]):o==="."&&(r[`&${n}`]=za(t[n]))}else r[n]=t[n]}return r},sh=(t,e)=>{let r=e.shift();return t[r]?sh(t[r],e):t},oh=(t,e)=>E(e)?sh(t,e):k(e)&&t[e]?t[e]:t;var Qt=(t,e)=>{let r=A();if(k(t)&&ot(t)&&(t=Qt(t.slice(2))),!t||!k(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=E(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=oh(s,o):s&&e&&(s=oh(s,e)),za(s)};P();P();var qa=(t,e)=>{let r=A(),n=`--font-${e}`;if(!t||E(t)&&!t[0])return;let o;if(t.isVariable){let s=Jt(t.url,r.files)||t.url;is(s)?o=as(s):o=dr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=Sn(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Jt(i,r.files)||i):Jt(t.url,r.files)||t.url;o=dr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},Ga=(t,e)=>{let r=A(),{fontFamily:n}=r;return xn(e||n,t)},ds=(t,e)=>{let r=A(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),_(s)&&(s=fr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};P();var ih=t=>{let e=A(),{typography:r,media:n}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:l,base:f,ratio:u,range:p,subSequence:d,h1Matches:h,unit:g}=t;et(i,{type:l,base:f,ratio:u,range:p,subSequence:d,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,S=n[c],x="@media "+(S==="print"?`${S}`:`screen and ${S}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){et(i,{sequence:{},scales:{},vars:{}}),$t(i),hr(t,o);continue}et(i,{sequence:{},scales:{},templates:{},vars:{}}),$t(i),hr(t,o)}},ah=t=>{let e=A();if(t.h1Matches){let r=t.unit,n=Na(t),{templates:o}=t;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Ka=()=>{let t=A(),{typography:e}=t;$t(e),ah(e),Ge(e),ih(e)},Xa=t=>{let e=A(),{typography:r}=e;return we(t,"fontSize",r)};P();P();var y_=t=>{let r=A().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return $t(o),o},b_=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;et(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),$t(r),hr(t,e)}},Ya=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},Za=()=>{let t=A(),{spacing:e}=t;$t(e),Ge(e),b_(e)},x_=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:$t(t)},dt=(t,e="padding",r,n)=>{let o=x_(r);if(k(t)&&!n&&t.includes("(")){let i=qe(t);n=i[0],t=i[1]}let s=n?[t]:fr(t);if(E(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,f)=>we(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return we(t,e,o,n)}},fe=(t,e,r,n)=>{let o=A(),{spacing:s}=o,i=r||t[e];if(!n&&k(i)&&i.includes("(")){let a=qe(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=y_(t);return dt(i,e,a,n)}return dt(i,e,s,n)},Ja=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=Hr.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};P();var br=(t,e,r,n)=>{let o=A();if(E(t))return{"@light":br(t[0],e,"light"),"@dark":br(t[1],e,"dark")};if(_(t)){let a={};for(let c in t)a[c]=br(t[c],e,c.startsWith("@")?c.slice(1):c);return a}k(t)&&!le.test(t)&&(t=ur(t).map(a=>(a=a.trim(),a.split(/\s+/).map(c=>{if(c=c.trim(),!c)return"";if(c.startsWith("--"))return`var(${c})`;let l=tt(c);if(xe(l))return l;if(/^\d/.test(c)||c==="0"||c.includes("px")||c.slice(-2)==="em"||c==="inset"||c==="none")return c;let f=dt(c,"shadow");return f&&f.shadow?f.shadow:c}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},Qa=(t,e)=>{let r=A();if(e||(e=r.globalTheme),!k(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let[n]=E(t)?t:t.split(" "),s=r.shadow[n],i=_(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let l=r.media[c.slice(1)],f="@media "+(l==="print"?`${l}`:`screen and ${l}`);a[f]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};P();var tc=()=>{let t=A(),{timing:e}=t;$t(e),Ge(e)},te=t=>{let e=A(),{timing:r}=e;return r[t]||r[es(t)]||t},Vt=(t,e="timing")=>{let r=A(),{timing:n}=r;return we(t,e,n)};P();var ec=()=>{let t=A(),{document:e,fontFamily:r,theme:n,typography:o}=t;return et(e,{theme:n.document,fontFamily:xn(r),fontSize:o.base,lineHeight:o.lineHeight})};P();var nc={document:X},hs=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?Ba(e,t):t},oc=(t,e=nc)=>{let r=A(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];lh(n,e)},sc=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?hs(t,e):t},ic=(t,e=nc)=>{let r=A(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];lh(n,e)},rc=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let r=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},S_=(t,e)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new r().parseFromString(n,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},ch=(t,e,r)=>{for(;e.firstChild;){let n=e.firstChild;r.appendChild(t.importNode(n,!0)),n.remove()}},lh=(t,e=nc)=>{let r=A(),n=e.document||X;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),us(t);let o=n.querySelector("#svgSprite"),s=us(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=S_(n,s);if(o)if(a)ch(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let c=rc(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=rc(n);c&&c.nodeType&&(ch(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let c=rc(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};P();var ac=(t={})=>{let e=A(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,l=n.templates;c.body={...e.useDocumentTheme?Qt("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?Qt("document"):{};if(r.html&&At(r.html,a),n.unit){let{media:c}=e;for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let u=f.unit,p=f.base||n.base,d=f.browserDefault||n.browserDefault,h=l.slice(1),g=c[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=p/d+u}}return q(et(r,t),{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+e.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}})}};P();var __=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),w_=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),k_=t=>__.has(t),ke=t=>{let e=t+"";if(le.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(ot(o))return`var(${o})`;if(k_(o)||/^\d/.test(o)||o==="0")return o;let s=tt(o);if(xe(s))return s;let i=dt(o,"border");return i&&i.border?i.border:o}).join(" ")},fh=t=>le.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(ot(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=tt(e);return xe(r)?r:e}).join(" "),uh=(t,e)=>Qa(t,e),cc=(t,e)=>le.test(t)?t:ur(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(ot(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=tt(n);if(xe(o)){let i=bt(n,e);return _(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=dt(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),lc=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(")")),s=")",a=ur(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||w_.has(f)||f==="transparent"||le.test(f))return f;let u=tt(f);return xe(u)?u:f}).join(" ")));return n+a.join(", ")+s},ph=(t,e)=>{let r=A();return t.split(", ").map(n=>ot(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?lc(n,e):r.gradient[t]?{backgroundImage:bt(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!We(n)?`url(${n})`:n).join(" ")},dh=t=>k(t)&&t.split(" ").map(e=>dt(e,"gap").gap).join(" "),v_=t=>{let e=t.split(" ");return e.length?e.map(r=>ot(r)?`var(${r})`:r.length<3||r.includes("ms")?Vt(r).timing||r:te(r)?te(r):r).join(" "):t},fc=(t,e,r)=>{if(k(t))return t.split(",").map(n=>Vt(n).timing||n).join(",")},hh=t=>{let e=t.split(",");if(e.length)return e.map(v_).join(",")};function st(t,e,r={},n={}){let o=Y.call(this,e||r[t]);if(o==null)return;let s;if(k(o)){if(o.includes("(")){let c=qe(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=Ya(t);!i&&a&&!n.ratio&&(o=Ja(o))}return n.ratio?fe(r,t,o,s):dt(o,t,void 0,s)}var j=(t,e=null,r)=>st(t,e,r,{ratio:!0}),uc=(t,e,r)=>{if(k(t))return{borderRadius:t.split(" ").map((n,o)=>fe(e,r,n)[r]).join(" ")}};P();var C_=(t,e)=>{let r=A(),{cssVars:n}=r,o=e.startsWith("--")?e:`--${e}`;return n[o]=t,t},Ft=t=>t,gh={color:mr,gradient:yr,font:qa,fontFamily:ds,fontfamily:ds,theme:Wa,icons:sc,semanticIcons:Ft,semanticicons:Ft,svg:hs,svgData:Ft,typography:Ft,shadow:br,spacing:Ft,media:Ft,grid:Ft,class:Ft,timing:Ft,reset:Ft,unit:Ft,animation:Ft,vars:C_},A_=(t,e,r)=>{let n=A(),o=Ra(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=gh[o]||gh[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){n.verbose&&console.warn("Error setting",s,"value",e,r,c)}n.verbose&&console.warn("Can not find",s,"method in scratch")},E_=(t,e)=>{let r=A(),n=t.toLowerCase();return Object.keys(e).sort((s,i)=>{let a=_(e[s])||E(e[s])?1:0,c=_(e[i])||E(e[i])?1:0;return a-c}).forEach(s=>{try{return A_(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},mh=(t,e)=>{let r=e||A();r.globalTheme=t;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(t&&t!=="auto")a.setAttribute("data-theme",t),t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=u=>{a.setAttribute("data-theme",u.matches?"dark":"light")},f=s.matchMedia("(prefers-color-scheme: dark)");if(l(f),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=l;try{f.addEventListener("change",l)}catch{f.addListener(l)}}}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",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let u=0;u<f.length;u++)if(f[u].selectorText===a){for(let p in r.cssVars)f[u].style.setProperty(p,r.cssVars[p]);return r}}catch{}}return r},T_={},kn=(t,e=T_)=>{let r=e.config||A(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:p,useDefaultConfig:d,semanticIcons:h,files:g,assets:m,...y}=t;e.newConfig&&(r=Gd(e.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),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),l!==void 0&&(r.useIconSprite=l),p!==void 0&&(r.useDocumentTheme=p),f!==void 0&&(r.globalTheme=f),u!==void 0&&(r.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),d!==void 0&&(r.useDefaultConfig=d),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let S=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=S&&S.defaultView||(typeof window<"u"?window:null),v=S&&(r.themeRoot||S.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 L=J=>{v.setAttribute("data-theme",J.matches?"dark":"light")},V=x.matchMedia("(prefers-color-scheme: dark)");if(L(V),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=L;try{V.addEventListener("change",L)}catch{V.addListener(L)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let O=Object.keys(y),R=new Set(O);if(O.forEach(T=>{let L=T.toLowerCase();L!==T&&R.has(L)&&q(y[L],y[T])}),O.map(T=>{let L=T.toLowerCase();if(!(L!==T&&R.has(L)))return E_(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{Ka()}catch(T){r.verbose&&console.warn("Error applying typography sequence",T)}if(y.spacing)try{Za()}catch(T){r.verbose&&console.warn("Error applying spacing sequence",T)}if(y.timing)try{tc()}catch(T){r.verbose&&console.warn("Error applying timing sequence",T)}ec();let W=ac();return W&&(r.reset=W),r};var xr=new Map,O_=null,dc=null,R_=null;function hc(t){t.batchAtomicCss&&(dc=t.batchAtomicCss),t.compoundCssClass&&(R_=t.compoundCssClass)}var P_=new Set;function I_(t){try{let e=A();e&&(e.document=t)}catch{}t&&P_.add(t)}function Sh(){try{let t=A();if(t?.document)return t.document}catch{}return typeof document<"u"?document:null}var $_={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 Ke(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function ms(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function F_(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():ms(e)}function yh(t,e,r){let n=(r?r+"":"")+t+":"+e,o=xr.get(n),s=o?null:Ke(t);if(!o){let a=$_[t]||ms(t),c=F_(e);o=r?`_${r}_${a}-${c}`:`_${a}-${c}`,xr.set(n,o)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return o;let i=`.${o}{${s||Ke(t)}:${e}}`;return Dt(i),o}var bh=new WeakMap;function Dt(t,e){let r=_h(e);if(!r)return;let n=bh.get(r);if(n||(n=new Set,bh.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var xh=new WeakMap;function _h(t){let e=t||Sh();if(!e||!e.head)return null;let r=xh.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let n=e.head.querySelector("style[data-smbls]");n||(n=e.createElement("style"),n.setAttribute("data-smbls",""),e.head.appendChild(n));let o=n.sheet;return xh.set(e,o),O_=o,o}var D_=8;function Xe(t,e,r){if(!t||typeof t!="object")return"";let n=null,o=0,s=[],i=[];for(let c in t){let l=t[c];l==null||l===!1||l===""||(typeof l=="object"?i.push([c,l]):dc?(n||(n=[]),n.push(c,String(l)),o++):s.push(yh(c,String(l),r)))}if(n&&o>=D_){let c=n.join("\0"),l=dc(c),f=l.indexOf("\0"),u=l.substring(0,f),p=l.substring(f+1);if(p){let d=p.split(`
36
+ `);for(let h=0;h<d.length;h++)d[h]&&Dt(d[h])}s.push(u)}else if(n)for(let c=0;c<n.length;c+=2)s.push(yh(n[c],n[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push(L_(i[c][0],i[c][1],r));return s.concat(a).join(" ").trim()}var pc=new Map;function L_(t,e,r){let n=(r?r+"":"")+t+JSON.stringify(e),o=xr.get(n);if(o){let p=pc.get(o);if(p)for(let d=0;d<p.length;d++)Dt(p[d]);return o}o=r?`_${r}_c${ms(n)}`:`_c${ms(n)}`;let s="",i=[],a=p=>typeof p=="string"&&(p.indexOf("{")!==-1||p.indexOf("}")!==-1),c=(p,d)=>{let h="";for(let g in d){let m=d[g];if(m!=null)if(typeof m=="object")c([...p,g],m);else{if(a(m))continue;h+=`${Ke(g)}:${m};`}}h&&(p.length===0?s+=h:i.push({chain:p,body:h}))};c([],e);let l=p=>{if(!p.length)return`.${o}`;let d=p[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<p.length;h++){let g=p[h].split(",").map(y=>y.trim()),m=[];for(let y of d)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);d=m}return d.join(", ")},f=[];if(t.startsWith("@media")||t.startsWith("@supports")){if(s){let p=`${t}{.${o}{${s}}}`;f.push(p),Dt(p)}for(let p of i){let d=l(p.chain),h=`${t}{${d}{${p.body}}}`;f.push(h),Dt(h)}return pc.set(o,f),xr.set(n,o),o}let u=l([t]);if(s){let p=`${u}{${s}}`;f.push(p),Dt(p)}for(let p of i){let h=`${l([t,...p.chain])}{${p.body}}`;f.push(h),Dt(h)}return pc.set(o,f),xr.set(n,o),o}function ct(t){if(_h(),typeof t=="string"){Dt(t);return}let e=Object.keys(t),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};e.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 e){let o=t[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 c in i){let l=c.startsWith("--")?c:Ke(c);a+=`${l}:${i[c]};`}Dt(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Ke(s);Dt(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let c=o[a];if(typeof c=="object"&&c!==null)i=!0;else{let l=a.startsWith("--")?a:Ke(a);s+=`${l}:${c};`}}if(s&&Dt(`${n}{${s}}`),i){let a=[],c=[];for(let l in o)typeof o[l]=="object"&&o[l]!==null&&(l.startsWith("@media")||l.startsWith("@supports")?a.push(l):c.push(l));a.sort((l,f)=>{let u=p=>{let d=p.match(/max-width:\s*(\d+)/);return d?parseInt(d[1]):0};return u(f)-u(l)});for(let l of c)ct({[`${n} ${l}`]:o[l]});for(let l of a)ct({[l]:{[n]:o[l]}})}}}}function ys(t,e){let r="";for(let n in e){let o="";for(let s in e[n])o+=`${Ke(s)}:${e[n][s]};`;r+=`${n}{${o}}`}return Dt(`@keyframes ${t}{${r}}`),t}function M_(){return xr.size}P();var gc="http://www.w3.org/2000/svg",Ss=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"]),N_=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 bs(t){return N_.has(t)||Ss.has(t)}function _s(t){return Ss.has(t)}function Sr(t){let{tag:e,key:r}=t;if(typeof e=="function"&&(e=e(t)),e===!0&&(e=r),typeof e=="string"&&bs(e))return e;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]),bs(o)&&!n.has(o)?o:"div"}var wh={};function xs(t,e){let r=e?.context?.document||globalThis.document;if(!r)return null;if(t==="string")return r.createTextNode(e?.text||"");if(t==="fragment")return r.createDocumentFragment();if(_s(t)){let n=e?.parent;if(t==="svg"||n?.node?.namespaceURI===gc)return r.createElementNS(gc,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function _r(t){let e=t.tag=Sr(t),n=_s(e)&&(e==="svg"||t.parent?.node?.namespaceURI===gc)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=wh[n];if(s||(s=wh[n]=xs(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?xs(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var Ot=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"]),kh={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},wr=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"]),vh=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),ws=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 mc=new WeakMap,j_={passive:!0},B_={passive:!0,capture:!0},yc=(t,e)=>vh.has(t)?e?B_:j_:e||!1;function Ah(t){let e=mc.get(t);return e||(e={handlers:new Map,installed:new Set},mc.set(t,e)),e}function V_(t,e){let r=Ah(e);if(r.installed.has(t))return;r.installed.add(t);let n=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave",o=t==="mouseenter"||t==="mouseleave";e.addEventListener(t,s=>{let i=s.target;for(;i&&i!==e;){let a=r.handlers.get(t);if(a){let c=a.get(i);if(c){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},yc(t,n))}function bc(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=Ah(n);V_(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function xc(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=mc.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function Ch(t){return ws.has(t)&&!wr.has(t)}function ks(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o?.designSystem,i=a=>{s&&pt(s);try{let c=r.call(e,a,e,e.state,o);if(c&&typeof c.then=="function"){c.catch(l=>{e.error=l,console.error("[DOMQL] Async event error:",l)}).finally(()=>{s&&at()});return}}catch(c){if(e.error=c,console.error("[DOMQL] Event error:",c),o?.strictMode)throw c}s&&at()};if(Ch(t)){let a=o?.rootNode||n.ownerDocument?.documentElement;bc(t,n,i,a)}else n.addEventListener(t,i,yc(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(Ch(t)){let a=o?.rootNode||n.ownerDocument?.documentElement;xc(t,n,a)}else n.removeEventListener(t,i,yc(t,!1))})}function Eh(t){let e=[];return t.extends&&(Array.isArray(t.extends)?e.push(...t.extends):e.push(t.extends)),t.extend&&(Array.isArray(t.extend)?e.push(...t.extend):e.push(t.extend)),e}function vs(t,e,r){let n=Eh(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=Th(n[i],s);a&&a!==e&&Oh(t,a,r,new Set([e]))}}function Th(t,e){if(typeof t=="string"){if(t.includes(">")){let r=t.split(">").map(o=>o.trim()),n=e[r[0]]||e[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function Oh(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=Eh(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=Th(o[a],i);c&&Oh(t,c,r,n)}}for(let s in e){if(s==="extends"||s==="extend")continue;let i=e[s];t[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?t[s]={...i}:t[s]=i:typeof t[s]=="object"&&typeof i=="object"&&!Array.isArray(t[s])&&!Array.isArray(i)&&t[s]!==null&&i!==null?t[s]=Rh(t[s],i):t[s]=i}}function Rh(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Rh(o,s):r[n]=s}return r}ar();function Cs(t={},e={}){let r=this,n=r.__ref;if(n){if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,e)===!1)return r;if(Ie(()=>{if(t.state&&mt(r.state)&&r.state.update(t.state),t.text!==void 0&&(r.text=t.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=t.text??"":r.node.textContent=t.text??"")),t.html!==void 0&&(r.html=t.html,!n.__exec.html&&r.node&&(r.node.innerHTML=t.html)),t.style&&r.node?.style){if(!n.__exec.style)for(let o in t.style){let s=t.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let o in t.attr){let s=t.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,t.attr)}if(t.data&&r.node?.dataset){for(let o in t.data)r.node.dataset[o]=t.data[o];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let o in t){if(Ot.has(o)||o==="state")continue;let s=t[o],i=r[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,e);else if(typeof s=="object"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&zt(s,r,o,e)}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),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}}function kr(t){if(!t)return;let e=t.__ref;if(e){try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){for(let r=0;r<e.__children.length;r++){let n=e.__children[r],o=t[n];o&&o.__ref&&kr(o)}e.__children.length=0}if(t.node?.parentNode&&t.node.remove(),t.state?.destroy&&t.state.__element===t&&t.state.destroy(),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(r){console.error("[smbls] onRemove error:",r)}t.node=null,t.parent=null,t.__ref=null}}function As(){kr(this)}P();P();var z_=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],U_=["none","forwards","backwards","both"],W_=["normal","reverse","alternate","alternate-reverse"],H_=["running","paused"],q_=t=>/^[\d.]+m?s$/.test(t),G_=0,Sc=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(_(t)){let o=`smbls-anim-${G_++}`;return{animationName:ys(o,t)}}let n=r&&r[t];return _(n)?ys(t,n):t},K_=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let u of n)r&&r[u]?o=u:q_(u)?s.push(u):z_.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):W_.includes(u)?c=u:U_.includes(u)?l=u:H_.includes(u)?f=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},Ph={animation:(t,e)=>{if(k(t)&&t.includes(" ")){let r=K_(t,e);return{animationName:Sc(r.name||t,e),animationDuration:r.durations[0]||Vt(e.animationDuration||"A").timing,animationDelay:r.durations[1]||Vt(e.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||te(e.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.animationIterationCount||1,animationPlayState:r.playState||e.animationPlayState,animationDirection:r.direction||e.animationDirection}}return{animationName:Sc(t,e),animationDuration:Vt(e.animationDuration||"A").timing,animationDelay:Vt(e.animationDelay||"0s").timing,animationTimingFunction:te(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||"both",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:Sc(t,e)}),animationDuration:t=>({animationDuration:Vt(t).timing}),animationDelay:t=>({animationDelay:Vt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:te(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};P();var Ih={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>j("height",t,e),width:(t,e)=>j("width",t,e),boxSizing:t=>ht(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("height",e),...st("width",r||e)}},inlineSize:(t,e)=>j("inlineSize",t,e),blockSize:(t,e)=>j("blockSize",t,e),minWidth:(t,e)=>j("minWidth",t,e),maxWidth:(t,e)=>j("maxWidth",t,e),widthRange:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("minWidth",e),...st("maxWidth",r||e)}},minHeight:(t,e)=>j("minHeight",t,e),maxHeight:(t,e)=>j("maxHeight",t,e),heightRange:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("minHeight",e),...st("maxHeight",r||e)}},size:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...j("inlineSize",e),...j("blockSize",r||e)}},minBlockSize:(t,e)=>j("minBlockSize",t,e),minInlineSize:(t,e)=>j("minInlineSize",t,e),maxBlockSize:(t,e)=>j("maxBlockSize",t,e),maxInlineSize:(t,e)=>j("maxInlineSize",t,e),minSize:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("minInlineSize",e),...st("minBlockSize",r||e)}},maxSize:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("maxInlineSize",e),...st("maxBlockSize",r||e)}},borderWidth:(t,e)=>j("borderWidth",t,e),padding:(t,e)=>j("padding",t,e),scrollPadding:(t,e)=>j("scrollPadding",t,e),paddingInline:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("paddingInlineStart",e),...st("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("paddingBlockStart",e),...st("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>j("paddingBlockStart",t,e),paddingBottom:(t,e)=>j("paddingBlockEnd",t,e),paddingLeft:(t,e)=>j("paddingInlineStart",t,e),paddingRight:(t,e)=>j("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>j("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>j("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>j("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>j("paddingInlineEnd",t,e),margin:(t,e)=>j("margin",t,e),marginInline:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{...st("marginInlineStart",e),...st("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!k(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...st("marginBlockStart",r),...st("marginBlockEnd",n||r)}},marginTop:(t,e)=>j("marginBlockStart",t,e),marginBottom:(t,e)=>j("marginBlockEnd",t,e),marginLeft:(t,e)=>j("marginInlineStart",t,e),marginRight:(t,e)=>j("marginInlineEnd",t,e),marginInlineStart:(t,e)=>j("marginInlineStart",t,e),marginInlineEnd:(t,e)=>j("marginInlineEnd",t,e),marginBlockStart:(t,e)=>j("marginBlockStart",t,e),marginBlockEnd:(t,e)=>j("marginBlockEnd",t,e),gap:t=>({gap:dh(t)}),columnGap:(t,e)=>fe(e,"columnGap",t),rowGap:(t,e)=>fe(e,"rowGap",t),flexWrap:t=>({display:"flex",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!k(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!k(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,e)=>uc(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>uc(t??e.round,e,"borderRadius")};var $h={fontSize:t=>Xa(t)||t,fontFamily:t=>({fontFamily:Ga(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Fh={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.assets&&n.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=n.files&&n.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var Dh={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>dt(r,"k").k).join(" ")}},left:t=>dt(t,"left"),top:t=>dt(t,"top"),right:t=>dt(t,"right"),bottom:t=>dt(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>dt(r,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>dt(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};P();var Ut=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Lh={theme:(t,e)=>{if(t)return e.themeModifier?Qt(t,`@${e.themeModifier}`):Qt(t)},color:(t,e)=>{let r=Ut(e);if(t)return{color:bt(t,r)}},background:(t,e)=>{let r=Ut(e);if(t)return k(t)&&t.includes("gradient")?{background:lc(t,r)}:{background:bt(t,r)}},backgroundColor:(t,e)=>{let r=Ut(e);if(t)return{backgroundColor:bt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Ut(e);if(!t)return;let s=n.assets&&n.assets[t];if(s&&s.content)t=s.content.src;else{let i=n.files&&n.files[t];i&&i.content&&(t=i.content.src)}return{backgroundImage:ph(t,o)}},textStroke:t=>({WebkitTextStroke:fh(t)}),outline:t=>({outline:ke(t)}),outlineOffset:(t,e)=>j("outlineOffset",t,e),border:t=>({border:ke(t)}),borderColor:(t,e)=>{let r=Ut(e);if(t)return{borderColor:bt(t,r)}},borderTopColor:(t,e)=>{let r=Ut(e);if(t)return{borderTopColor:bt(t,r)}},borderBottomColor:(t,e)=>{let r=Ut(e);if(t)return{borderBottomColor:bt(t,r)}},borderLeftColor:(t,e)=>{let r=Ut(e);if(t)return{borderLeftColor:bt(t,r)}},borderRightColor:(t,e)=>{let r=Ut(e);if(t)return{borderRightColor:bt(t,r)}},borderLeft:t=>({borderLeft:ke(t)}),borderTop:t=>({borderTop:ke(t)}),borderRight:t=>({borderRight:ke(t)}),borderBottom:t=>({borderBottom:ke(t)}),shadow:(t,e)=>{let r=Ut(e);if(t)return{boxShadow:uh(t,r)}},boxShadow:(t,e)=>{if(!k(t))return;let[r,n]=t.split("!importan"),o=Ut(e),s=n?" !important":"";return{boxShadow:cc(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:cc(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:ke(t)})};var Es={transition:t=>({transition:hh(t)}),transitionDuration:t=>({transitionDuration:fc(t)}),transitionDelay:t=>({transitionDelay:fc(t)}),transitionTimingFunction:t=>({transitionTimingFunction:te(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};P();var Mh={flow:(t,e)=>{let r=e.reverse;if(!k(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(t,e)=>({display:"flex",flexWrap:t}),align:(t,e)=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var Nh={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var lt={...Ph,...Ih,...$h,...Fh,...Dh,...Lh,...Es,...Mh,...Nh};var xt=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"]);P();var X_=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,Y_=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=Lt(e,r);if(!s)return{[t]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(X_),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=n.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},jh=(t,e,r)=>({[t]:Lt(e,r)}),vn=(t,e,r)=>{let n=`&${t}`,o=Lt(e,r);if(t.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(l=>l.trim()),c={};Object.keys(s).length&&(c[n]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(", ");c[f]=i[l]}return c}}return{[n]:o}},_c=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},Z_=(t,e,r)=>{let n=t.slice(1),o=_c(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Lt(e,r)},J_=(t,e,r)=>({[t]:e}),Q_=(t,e,r)=>{let n=t.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=_c(n,r);s!==void 0&&(o=s)}if(o)return Lt(e,r)},tw=(t,e,r)=>{let n=t.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=_c(n,r);s!==void 0&&(o=s)}if(!o)return Lt(e,r)},Bh=(t,e)=>Lt(t,e),Vh={"@":Y_,":":vn,"[":vn,"*":vn,"+":vn,"~":vn,"&":jh,">":jh,$:Z_,"-":J_,".":Q_,"!":tw};var wc=Ne(),ew=(t,e,r)=>{let n=e?.context?.designSystem;n&&pt(n);try{let o={},s={},i=(a,c)=>{if(r.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(a==="class"&&e.call("isString",t.class)){let l=c.split(" ");if(l.length){let f=e.context.designSystem.class,u=l.reduce((p,d)=>et(p,f[d]),{});o.designSystemClass=u}}else if(a==="true"){let l=Y(c,e);et(o,Bh(l,e))}else if(e.classlist[a]){let l=e.classlist[a],f=C(l)?l(e,e.state,e.context):l;f&&i(a,f),!wc&&_(o[a])&&(o[a].label=a)}else if(lt[a]){let l=Y(c,e);E(l)&&(l=l.reduce((u,p)=>et(u,p),{}));let f=lt[a](l,e,e.state,e.context);E(f)&&(f=f.reduce((u,p)=>et(u,p),{})),f&&i(a,f),!wc&&_(o[a])&&(o[a].label=a)}else if(xt.has(a)){let l=Y(c,e);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!wc&&_(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&at()}},rw=(t,e)=>{let r={};for(let n in t){let o=Vh[n.slice(0,1)];if(o){let s=o(n,t[n],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?At(r[i],s[i]):r[i]=s[i])}}return r},Lt=(t,e,r={unpack:!0})=>{let[n,o]=ew(t,e,r),s=rw(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return co(n,s);n._selectors=s}return n},$O=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};P();var nw=t=>{if(_(t))return Lt(t,t)},NO=(t,e)=>{let r=nw(t);return typeof e=="function"?e(r):Xe(r)};P();function Wh(t,e,r){let n=t?.context?.analyze;if(!n||!n.emit||e==="warn"&&!n.shouldCapture("warnings")||e==="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:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:o||null,args:r})}function ow(...t){return Wh(this,"warn",t),qo.apply(this,t)}function sw(...t){return Wh(this,"error",t),lr.apply(this,t)}var zh={update:Cs,remove:As,getDB:Yo,getQuery:Zo,getRootData:Uo,getChildren:No,getPath:jo,nextElement:Go,previousElement:Ko,verbose:hn,warn:ow,error:sw,variables:Xo,spotByPath:Mo,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}this.__ref&&(this.__ref.contentManaged=!0)},reset(t){let e=this.context?.__create;if(!e)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),e(o,r,n,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let r of e.__children){let n=this[r];if(!n)continue;if(typeof t=="function"){if(t(n))return n}else if(typeof t=="string"&&n.key===t)return n;let o=n.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let r=this.__ref;if(!r?.__children)return e;for(let n of r.__children){let o=this[n];o&&(typeof t=="function"?t(o)&&e.push(o):typeof t=="string"&&o.key===t&&e.push(o),o.lookdownAll?.(t,e))}return e},getRef(){return this.__ref},getRoot:zo,getRootState:Vo,getRootContext:Wo,getContext:Ho,parse(t){let e={},r=t?new Set(t):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){e[o]=n[o];continue}typeof this[o]!="function"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(e[n]=this[n].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let r of t)e[r]=this[r];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let r=t[e];if(r==null)continue;let n=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(t,...e){let r=this.context,n=r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof n=="function")return n.call(this,...e)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let r=t.__children.indexOf("content");r!==-1&&t.__children.splice(r,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},Uh=new WeakMap;function iw(t){if(!t)return zh;let e=Uh.get(t);if(e)return e;e=Object.create(zh);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return Uh.set(t,e),e}function Ts(t){let e=iw(t.context);Object.setPrototypeOf(t,e)}P();ar();var aw=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Wt=(t,e)=>{if(mt(e)){let o=e.__raw||e;e.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(o,"set",{value:function(s,i={}){return e.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.update(s,i),e},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(e);return e.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(e),e.update(e.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=e;for(;a?.parent&&mt(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(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=e;for(;s?.parent&&mt(s.parent);)s=s.parent;return s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let r=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},n={update(o){if(!o||typeof o!="object")return e;for(let s in o)e[s]=o[s];return e},apply(o){if(typeof o!="function")return e;let s=o(e);return s?e.update(s):e},parse(){return{...e}},toggle(o){return e[o]=!e[o],e},set(o){if(!o||typeof o!="object")return e;r();for(let s in o)e[s]=o[s];return e},replace(o){return e.set(o)},clean(){return r(),e}};for(let o in n)typeof e[o]!="function"&&aw(e,o,n[o])};var cw=function(t,e,r){return t.state=Hh(t,e,r),t.state},Hh=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Wt(t,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",lw(o,t,e);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=jt({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Wt(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!mt(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=jt({...o});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Wt(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,r),s}return mt(o)?(o.__element=t,o):e?.state||{}};function kc(t,e){if(!e)return t;let r=e.split("/"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function lw(t,e,r){if(!r?.state)return{};if(t===".")return r.state;if(t.startsWith("../")){let o=t.slice(3),s=r.state?.parent;return o&&s?kc(s,o):s??r.state??{}}if(t.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?kc(o,s):o??{}}let n=kc(r.state,t);if(n&&typeof n=="object"&&!mt(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 fw=(t,e)=>{if(!t)return Gh;let r=dw(t,e);return!r||!r.state?Gh:gw(r.state)},uw=()=>Ur()!=null,pw=128;function dw(t,e){let r=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,n=t,o=null;for(let s=0;s<pw&&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 hw={get(t,e){return t[e]}},qh=new WeakMap,gw=t=>{let e=qh.get(t);return e||(e=new Proxy(t,hw),qh.set(t,e)),e},Gh=new Proxy(Object.create(null),{get(){},has(){return!1}});P();var iR=["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"],vc={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"]},mw=["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"],Cc=t=>t.startsWith("aria")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"aria-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):t.startsWith("data")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?"data-"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>"-"+e.toLowerCase()):null,Ze=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||Cc(e)||vc.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(vc,t)?vc[t].includes(e):!1,Zh=t=>{if(!k(t))return!1;let e=t.toLowerCase();return mw.includes(e)},aR=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;if(o==="aria"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])vt(e[o][a])&&(n["aria-"+a]=e[o][a]);continue}if(o==="data"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])if(vt(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());n["data-"+c]=e[o][a]}continue}let s=Ze(t,o),i=Zh(o);if(vt(e[o])&&(s||i)){let a=Cc(o)||o;n[a]=e[o]}}return n},cR=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let n in t.aria){let o=t.aria[n];typeof o=="function"&&(r["aria-"+n]=o(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let n in t.data){let o=t.data[n];if(typeof o=="function"){let s=n.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=o(e,e.state,e.context)}}return r},Ye=(t,e)=>{let r=t.call("exec",e,t);if(r)return k(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},Kh=(t,e)=>{let r=(t.preSrc||"")+(Ye(t,e)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=t;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},Xh={src:t=>Kh(t,t.src),href:t=>Ye(t,t.href),action:t=>Ye(t,t.action),poster:t=>Kh(t,t.poster),data:t=>Ye(t,t.data)},Jh=t=>{let e=t.tag||"div",r={};for(let n in Xh)if(t[n]!==void 0&&Ze(e,n)){let o=Xh[n](t);o!==void 0&&(r[n]=o)}return r},Yh=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},yw=(t,e,r)=>{if(t==="$"){let o=Yh(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=Yh(e,r);o!==void 0&&(n=o)}return t==="."?!!n:!n},bw=new Set(["$",".","!"]),lR=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(yw(a,c,f))return C(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!bw.has(i))continue;let a=t[s];if(!a||typeof a!="object")continue;let c=s.slice(1);for(let l in a){if(r&&l in r)continue;if(l==="aria"&&a[l]&&typeof a[l]=="object"){for(let d in a[l])o("aria-"+d,a[l][d],i,c);continue}if(l==="data"&&a[l]&&typeof a[l]=="object"){for(let d in a[l]){let h=d.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());o("data-"+h,a[l][d],i,c)}continue}let f=Ze(e,l),u=Zh(l);if(!f&&!u)continue;let p=Cc(l)||l;o(p,a[l],i,c)}}return n};var xw=1;function Cr(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function Sw(t){return t.charAt(2).toLowerCase()+t.slice(3)}function _w(t){return t.toLowerCase()}function Tc(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Tc(o,s):r[n]=s}return r}function zt(t,e,r,n={},o){if(t==null||t===!1)return null;(typeof t=="string"||typeof t=="number")&&(t={text:t});let s=Object.create(null);s.key=r||t.key||`_${xw++}`,s.parent=e||null,s.context=t.context||e?.context||n.context||{},s.context.__create||(s.context.__create=zt);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||s,path:e?.__ref?.path?[...e.__ref.path,s.key]:[s.key]};if(r&&!t.extends&&!t.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(t={extends:m,...t})}}vs(s,t,n);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let g in t){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=t[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]=Tc(y,m):b&&a.has(g)?s[g]={...y,...m}:s[g]=m}function l(g){for(let m in g){let y=g[m],b=s[m],S=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";S&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=Tc(b,y):S&&a.has(m)?s[m]={...b,...y}:s[m]=y}}c&&l(c),t.props&&typeof t.props=="object"&&l(t.props),t.data!==void 0&&(s.data=t.data),t.classlist!==void 0&&(s.classlist=t.classlist),t.text!==void 0&&(s.text=t.text),t.html!==void 0&&(s.html=t.html);let f=s.scope&&typeof s.scope=="object"?s.scope:null,u=e?.scope,p=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,d=u||p||null;if(t.scope!==void 0||f){let g={};f&&Object.assign(g,f),t.scope!==void 0&&Object.assign(g,t.scope),s.scope=wi(g,d)}else d&&(s.scope=d);if(t.if!==void 0&&(s.if=t.if),Ts(s),ww(s,e,t),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 t.if=="function"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof t.if=="function"&&Oc(s,{if:t.if}),s;s.tag||(s.tag=Sr(s)),ve("Init",s,n);let h=s.node=_r(s);if(!h)return s;ve("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),Oc(s,t),Rc(s),tg(s),eg(s,n);try{rg(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?`
38
37
  `+g.stack.split(`
39
38
  `).slice(0,6).join(`
40
- `):"")}}if($c(s,e,o),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let g=s.context?.designSystem;g&&pt(g);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}finally{g&&at()}}if(ve("Create",s,n),ve("Complete",s,n),ve("Render",s,n),ve("RenderRouter",s,n),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&pt(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&at()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function _w(t,e,r){let n=!e,o=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&t.context?.state,i=r.state!==void 0&&!s?r.state:t.state&&!mt(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,Ht(t,t.state);else if(t.context?.state){let a=t.context.state,c={...a},l=t.context?.polyglot;if(l?.translations){let f=a.lang||l.defaultLang||"en",u=l.translations[f];if(u&&typeof u=="object")for(let d in u)c[d]===void 0&&(c[d]=u[d]);let p=new Set(l.languages||[]);for(let d in l.translations)!p.has(d)&&c[d]===void 0&&(c[d]=l.translations[d])}t.state=mt(c)?c:jt(c),t.state.__element=t,t.state.root=t.state,Ht(t,t.state)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Ht(t,t.state);return}if(typeof i=="string"){if(t.state=Jh(i,e),t.state&&typeof t.state=="object"&&!mt(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}Ht(t,t.state);return}if(typeof i=="function"){let a=i(t,e?.state);t.state=jt(a||{})}else t.state=jt({...i});t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Ht(t,t.state)}function Ac(t,e){if(!e)return t;let r=e.split("/"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function Jh(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let o=t.slice(3);return o?Ac(e.state,o):e.state??{}}if(t.startsWith("~/")){let o=e.state?.root||e.state,s=t.slice(2);return s?Ac(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=Ac(e.state,t);if(r!=null&&Object.keys(r).length>0)return r;let n=e.context?.polyglot;if(n?.translations){let o=e.state?.root?.lang||n.defaultLang||"en",s=n.translations[o];if(s?.[t]!==void 0)return s[t];if(n.translations[t]!==void 0)return n.translations[t]}return{}}function ww(t){let e=t.__ref,r=t.tag||"div",n=t.context?.designSystem,o=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||Ot.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Cr(a)||lt[a]||xt&&xt.has(a)||Ze(r,a)||o.push({prop:a,fn:t[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:c}=o[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){n&&pt(n);try{return c(t,t.state,t.context)}catch{return}finally{n&&at()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Oc(t,e){let r=t.__ref;if(ww(t),typeof t.text=="function"){let o=t.text,s=ft(()=>{if(!r.contentManaged)try{let i=o(t,t.state,t.context);t.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=rr.call(t,i,t.state)),t.tag==="string"?t.node.nodeValue=i:t.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}else if(typeof t.text=="string"&&t.text.includes("{{")){let o=t.text,s=ft(()=>{if(r.contentManaged)return;let i=rr.call(t,o,t.state);i!=null&&(t.text=i),t.node&&(t.tag==="string"?t.node.nodeValue=i??"":t.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&typeof t[o]=="function"&&!Ot.has(o)&&!Cr(o)&&!r.__exec[o]){if(lt[o]){let s=t[o],i=o,a=ft(()=>{let c=t.context?.designSystem;c&&pt(c);try{let l=s(t,t.state,t.context),f=lt[i](l,t,t.state,t.context);f&&t.node?vr(t.node,f):t.node&&(i==="show"||i==="hide")&&(t.node.style.display="")}finally{c&&at()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}else if(xt&&xt.has(o)){let s=t[o],i=o,a=ft(()=>{let c=t.context?.designSystem;c&&pt(c);try{let l=s(t,t.state,t.context);t.node&&(l!=null?vr(t.node,{[i]:l}):t.node.style[i]="")}finally{c&&at()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}}if(typeof e.html=="function"){let o=e.html,s=ft(()=>{let i=t.context?.designSystem;i&&pt(i);try{let a=o(t,t.state,t.context);t.node&&a!=null&&typeof a!="function"&&(t.node.innerHTML=a)}finally{i&&at()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof e.value=="function"){let o=e.value,s=ft(()=>{try{let i=o(t,t.state,t.context);if(!t.node||!("value"in t.node))return;let a=i==null?"":String(i);if(t.node.value===a)return;let c=typeof document<"u"&&document.activeElement===t.node,l=c&&typeof t.node.selectionStart=="number"?t.node.selectionStart:null,f=c&&typeof t.node.selectionEnd=="number"?t.node.selectionEnd:null;if(t.node.value=a,c&&l!=null&&f!=null)try{t.node.setSelectionRange(l,f)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=o}if(typeof e.style=="function"){let o=e.style,s=ft(()=>{let i=o(t,t.state,t.context);vr(t.node,i)},{depth:r.path.length});r.__effects.push(s),r.__exec.style=o}else if(t.style&&typeof t.style=="object")for(let o in t.style){let s=t.style[o];if(typeof s!="function")continue;let i=ft(()=>{try{let a=s(t,t.state,t.context);t.node&&vr(t.node,{[o]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}if(t.attr&&typeof t.attr=="object"){for(let o in t.attr)if(typeof t.attr[o]=="function"){let s=t.attr[o],i=o,a=ft(()=>{try{let c=s(t,t.state,t.context);t.node?.setAttribute&&(c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let s=t.aria[o];if(typeof s!="function")continue;let i="aria-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=ft(()=>{try{let c=s(t,t.state,t.context);if(!t.node?.setAttribute)return;c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(t.data&&typeof t.data=="object")for(let o in t.data){let s=t.data[o];if(typeof s!="function")continue;let a="data-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),c=ft(()=>{try{let l=s(t,t.state,t.context);if(!t.node?.setAttribute)return;l==null||l===!1?t.node.removeAttribute(a):typeof l!="function"&&typeof l!="object"&&t.node.setAttribute(a,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(c)}let n=t.classlist&&typeof t.classlist=="object"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class=="object"&&!Array.isArray(t.class)?t.class:null;if(n)for(let o in n){let s=n[o];if(typeof s!="function")continue;let i=ft(()=>{try{let a=s(t,t.state,t.context);if(!t.node?.classList)return;typeof a=="string"?t.node.classList.add(a):a?t.node.classList.add(o):t.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof e.if=="function"){let o=e.if,s=ft(()=>{let i=o(t,t.state,t.context),a=r.__if;if(r.__if=!!i,a&&!r.__if&&t.node)t.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){t.node||(t.node=_r(t));let c=t.parent,l=c?.node;if(l&&t.node){let f=null,u=Object.keys(c),p=u.indexOf(t.key);for(let d=p+1;d<u.length;d++){let h=c[u[d]];if(h?.node?.parentNode===l){f=h.node;break}}f?l.insertBefore(t.node,f):l.appendChild(t.node)}else $c(t,t.parent);Rc(t)}else{if(r.__ifInitialized=!0,t.tag||(t.tag=Sr(t)),ve("Init",t,{}),t.node||(t.node=_r(t)),!t.node)return;ve("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id);let c=e.if;delete e.if;try{Oc(t,e)}finally{e.if=c}Rc(t),Qh(t),tg(t,{}),eg(t,{}),$c(t,t.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||Ot.has(o)||typeof t[o]!="function")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||Cr(o))continue;let i=t[o];r.__exec[o]=i;let a=t.tag||"div";if(Ze(a,o)&&!lt[o]&&!(xt&&xt.has(o))){let c=o,l=ft(()=>{try{let f=i(t,t.state,t.context);t.node?.setAttribute&&(f==null||f===!1?t.node.removeAttribute(c):typeof f!="function"&&typeof f!="object"&&(c==="src"&&"src"in t.node?t.node.src=f:t.node.setAttribute(c,f===!0?"":f)))}catch{}},{depth:r.path.length});r.__effects.push(l)}}Cw(t)}function Rc(t){let{node:e}=t;if(e){if(typeof t.text=="string"&&!t.text.includes("{{")?t.tag==="string"?e.nodeValue=t.text:e.textContent=t.text:typeof t.text=="number"&&(e.textContent=t.text),Aw(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&"value"in e){let r=String(t.value);e.value!==r&&(e.value=r)}if(t.style&&typeof t.style=="object"&&vr(e,t.style),t.attr&&typeof t.attr=="object")for(let r in t.attr){let n=t.attr[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||e.setAttribute&&e.setAttribute(r,n===!0?"":n)}if(t.data&&typeof t.data=="object")for(let r in t.data){let n=t.data[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||e.dataset&&(e.dataset[r]=n===!0?"":n)}if(t.classlist||t.class){let r=t.classlist||t.class;if(typeof r=="string")r.split(" ").forEach(n=>n&&e.classList.add(n));else if(typeof r=="object")for(let n in r){let o=typeof r[n]=="function"?r[n](t,t.state,t.context):r[n];o&&e.classList.add(typeof o=="string"?o:n)}}}}function vr(t,e){if(!t||!e||!t.style)return;let r=null;for(let n in e){let o=e[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,f=>"-"+f.toLowerCase()),a=s.trim(),c=/\s*!important\s*$/.test(a),l=a.replace(/\s*!important\s*$/,"");t.style.setProperty(i,l,c?"important":"")}catch{}}}r&&vw(t,r)}var kw=0;function vw(t,e){let r=`_ds${kw++}`;t.classList.add(r);let n=t.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 e){let a="."+r,c=i.replace(/&/g,a).split(",").map(f=>{let u=f.trim();return u.includes(a)?u:a+u}).join(", "),l=e[i];if(typeof l=="object"){let f="",u="";for(let p in l){let d=l[p];if(typeof d=="object"){let h=p.includes("&")?c.split(", ").map(m=>p.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${p}`).join(", "),g="";for(let m in d)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${d[m]};`;u+=`${h} { ${g} }
39
+ `):"")}}if($c(s,e,o),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let g=s.context?.designSystem;g&&pt(g);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}finally{g&&at()}}if(ve("Create",s,n),ve("Complete",s,n),ve("Render",s,n),ve("RenderRouter",s,n),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&pt(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&at()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function ww(t,e,r){let n=!e,o=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&t.context?.state,i=r.state!==void 0&&!s?r.state:t.state&&!mt(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,Wt(t,t.state);else if(t.context?.state){let a=t.context.state,c={...a},l=t.context?.polyglot;if(l?.translations){let f=a.lang||l.defaultLang||"en",u=l.translations[f];if(u&&typeof u=="object")for(let d in u)c[d]===void 0&&(c[d]=u[d]);let p=new Set(l.languages||[]);for(let d in l.translations)!p.has(d)&&c[d]===void 0&&(c[d]=l.translations[d])}t.state=mt(c)?c:jt(c),t.state.__element=t,t.state.root=t.state,Wt(t,t.state)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Wt(t,t.state);return}if(typeof i=="string"){if(t.state=Qh(i,e),t.state&&typeof t.state=="object"&&!mt(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}Wt(t,t.state);return}if(typeof i=="function"){let a=i(t,e?.state);t.state=jt(a||{})}else t.state=jt({...i});t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Wt(t,t.state)}function Ac(t,e){if(!e)return t;let r=e.split("/"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function Qh(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let o=t.slice(3);return o?Ac(e.state,o):e.state??{}}if(t.startsWith("~/")){let o=e.state?.root||e.state,s=t.slice(2);return s?Ac(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=Ac(e.state,t);if(r!=null&&Object.keys(r).length>0)return r;let n=e.context?.polyglot;if(n?.translations){let o=e.state?.root?.lang||n.defaultLang||"en",s=n.translations[o];if(s?.[t]!==void 0)return s[t];if(n.translations[t]!==void 0)return n.translations[t]}return{}}function kw(t){let e=t.__ref,r=t.tag||"div",n=t.context?.designSystem,o=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||Ot.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Cr(a)||lt[a]||xt&&xt.has(a)||Ze(r,a)||o.push({prop:a,fn:t[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:c}=o[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){n&&pt(n);try{return c(t,t.state,t.context)}catch{return}finally{n&&at()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Oc(t,e){let r=t.__ref;if(kw(t),typeof t.text=="function"){let o=t.text,s=ft(()=>{if(!r.contentManaged)try{let i=o(t,t.state,t.context);t.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=rr.call(t,i,t.state)),t.tag==="string"?t.node.nodeValue=i:t.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}else if(typeof t.text=="string"&&t.text.includes("{{")){let o=t.text,s=ft(()=>{if(r.contentManaged)return;let i=rr.call(t,o,t.state);i!=null&&(t.text=i),t.node&&(t.tag==="string"?t.node.nodeValue=i??"":t.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&typeof t[o]=="function"&&!Ot.has(o)&&!Cr(o)&&!r.__exec[o]){if(lt[o]){let s=t[o],i=o,a=ft(()=>{let c=t.context?.designSystem;c&&pt(c);try{let l=s(t,t.state,t.context),f=lt[i](l,t,t.state,t.context);f&&t.node?vr(t.node,f):t.node&&(i==="show"||i==="hide")&&(t.node.style.display="")}finally{c&&at()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}else if(xt&&xt.has(o)){let s=t[o],i=o,a=ft(()=>{let c=t.context?.designSystem;c&&pt(c);try{let l=s(t,t.state,t.context);t.node&&(l!=null?vr(t.node,{[i]:l}):t.node.style[i]="")}finally{c&&at()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}}if(typeof e.html=="function"){let o=e.html,s=ft(()=>{let i=t.context?.designSystem;i&&pt(i);try{let a=o(t,t.state,t.context);t.node&&a!=null&&typeof a!="function"&&(t.node.innerHTML=a)}finally{i&&at()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof e.value=="function"){let o=e.value,s=ft(()=>{try{let i=o(t,t.state,t.context);if(!t.node||!("value"in t.node))return;let a=i==null?"":String(i);if(t.node.value===a)return;let c=typeof document<"u"&&document.activeElement===t.node,l=c&&typeof t.node.selectionStart=="number"?t.node.selectionStart:null,f=c&&typeof t.node.selectionEnd=="number"?t.node.selectionEnd:null;if(t.node.value=a,c&&l!=null&&f!=null)try{t.node.setSelectionRange(l,f)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=o}if(typeof e.style=="function"){let o=e.style,s=ft(()=>{let i=o(t,t.state,t.context);vr(t.node,i)},{depth:r.path.length});r.__effects.push(s),r.__exec.style=o}else if(t.style&&typeof t.style=="object")for(let o in t.style){let s=t.style[o];if(typeof s!="function")continue;let i=ft(()=>{try{let a=s(t,t.state,t.context);t.node&&vr(t.node,{[o]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}if(t.attr&&typeof t.attr=="object"){for(let o in t.attr)if(typeof t.attr[o]=="function"){let s=t.attr[o],i=o,a=ft(()=>{try{let c=s(t,t.state,t.context);t.node?.setAttribute&&(c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let s=t.aria[o];if(typeof s!="function")continue;let i="aria-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=ft(()=>{try{let c=s(t,t.state,t.context);if(!t.node?.setAttribute)return;c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(t.data&&typeof t.data=="object")for(let o in t.data){let s=t.data[o];if(typeof s!="function")continue;let a="data-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),c=ft(()=>{try{let l=s(t,t.state,t.context);if(!t.node?.setAttribute)return;l==null||l===!1?t.node.removeAttribute(a):typeof l!="function"&&typeof l!="object"&&t.node.setAttribute(a,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(c)}let n=t.classlist&&typeof t.classlist=="object"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class=="object"&&!Array.isArray(t.class)?t.class:null;if(n)for(let o in n){let s=n[o];if(typeof s!="function")continue;let i=ft(()=>{try{let a=s(t,t.state,t.context);if(!t.node?.classList)return;typeof a=="string"?t.node.classList.add(a):a?t.node.classList.add(o):t.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof e.if=="function"){let o=e.if,s=ft(()=>{let i=o(t,t.state,t.context),a=r.__if;if(r.__if=!!i,a&&!r.__if&&t.node)t.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){t.node||(t.node=_r(t));let c=t.parent,l=c?.node;if(l&&t.node){let f=null,u=Object.keys(c),p=u.indexOf(t.key);for(let d=p+1;d<u.length;d++){let h=c[u[d]];if(h?.node?.parentNode===l){f=h.node;break}}f?l.insertBefore(t.node,f):l.appendChild(t.node)}else $c(t,t.parent);Rc(t)}else{if(r.__ifInitialized=!0,t.tag||(t.tag=Sr(t)),ve("Init",t,{}),t.node||(t.node=_r(t)),!t.node)return;ve("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id);let c=e.if;delete e.if;try{Oc(t,e)}finally{e.if=c}Rc(t),tg(t),eg(t,{}),rg(t,{}),$c(t,t.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||Ot.has(o)||typeof t[o]!="function")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||Cr(o))continue;let i=t[o];r.__exec[o]=i;let a=t.tag||"div";if(Ze(a,o)&&!lt[o]&&!(xt&&xt.has(o))){let c=o,l=ft(()=>{try{let f=i(t,t.state,t.context);t.node?.setAttribute&&(f==null||f===!1?t.node.removeAttribute(c):typeof f!="function"&&typeof f!="object"&&(c==="src"&&"src"in t.node?t.node.src=f:t.node.setAttribute(c,f===!0?"":f)))}catch{}},{depth:r.path.length});r.__effects.push(l)}}Aw(t)}function Rc(t){let{node:e}=t;if(e){if(typeof t.text=="string"&&!t.text.includes("{{")?t.tag==="string"?e.nodeValue=t.text:e.textContent=t.text:typeof t.text=="number"&&(e.textContent=t.text),Ew(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&"value"in e){let r=String(t.value);e.value!==r&&(e.value=r)}if(t.style&&typeof t.style=="object"&&vr(e,t.style),t.attr&&typeof t.attr=="object")for(let r in t.attr){let n=t.attr[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||e.setAttribute&&e.setAttribute(r,n===!0?"":n)}if(t.data&&typeof t.data=="object")for(let r in t.data){let n=t.data[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||e.dataset&&(e.dataset[r]=n===!0?"":n)}if(t.classlist||t.class){let r=t.classlist||t.class;if(typeof r=="string")r.split(" ").forEach(n=>n&&e.classList.add(n));else if(typeof r=="object")for(let n in r){let o=typeof r[n]=="function"?r[n](t,t.state,t.context):r[n];o&&e.classList.add(typeof o=="string"?o:n)}}}}function vr(t,e){if(!t||!e||!t.style)return;let r=null;for(let n in e){let o=e[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,f=>"-"+f.toLowerCase()),a=s.trim(),c=/\s*!important\s*$/.test(a),l=a.replace(/\s*!important\s*$/,"");t.style.setProperty(i,l,c?"important":"")}catch{}}}r&&Cw(t,r)}var vw=0;function Cw(t,e){let r=`_ds${vw++}`;t.classList.add(r);let n=t.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 e){let a="."+r,c=i.replace(/&/g,a).split(",").map(f=>{let u=f.trim();return u.includes(a)?u:a+u}).join(", "),l=e[i];if(typeof l=="object"){let f="",u="";for(let p in l){let d=l[p];if(typeof d=="object"){let h=p.includes("&")?c.split(", ").map(m=>p.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${p}`).join(", "),g="";for(let m in d)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${d[m]};`;u+=`${h} { ${g} }
41
40
  `}else f+=`${p.replace(/[A-Z]/g,h=>"-"+h.toLowerCase())}: ${d};`}f&&(s+=`${c} { ${f} }
42
- `),u&&(s+=u)}}s&&(o.textContent+=s)}function Cw(t){let e=t.__ref;e.__conditionalRunners=[];for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let s=t[r];if(!s||typeof s!="object")continue;let i=n==="!",a={lastMatch:!1,appliedKeys:null},c=()=>{if(!t.node)return;let f,u=t[o];if(u===void 0)if(t.state&&o in t.state)f=t.state[o];else{let h=t.context?.cases?.[o];if(h===void 0)return;f=typeof h=="function"?h.call(t,t):h}else typeof u=="function"?f=u(t,t.state,t.context):f=u;let p=i?!f:!!f;if(p===a.lastMatch)return;a.lastMatch=p;let d=t.context?.designSystem;d&&pt(d);try{if(p){let h={};for(let m in s){if(!Object.prototype.hasOwnProperty.call(s,m))continue;let y=typeof s[m]=="function"?s[m](t,t.state,t.context):s[m];if(y!=null)if(lt[m]){let b=lt[m](y,t,t.state,t.context);if(b){let S=Array.isArray(b)?b:[b];for(let x of S)x&&Object.assign(h,x)}}else xt&&xt.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(vr(t.node,h),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let h of a.appliedKeys)t.node.style[h]="";a.appliedKeys=null}}finally{d&&at()}};e.__conditionalRunners.push(c);let l=ft(c,{depth:e.path.length});e.__effects.push(l)}}var Ec=new WeakSet;function Aw(t){let{node:e}=t;if(!e)return;if(Ec.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Ec.add(t);let r=t.context?.designSystem;r&&pt(r);try{let n={},o=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]=="function"||Ot.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!Cr(s)){if(lt[s]){let a=t[s],c=lt[s](a,t,t.state,t.context);if(c){if(Array.isArray(c))for(let l of c)l&&Object.assign(n,l);else Object.assign(n,c);o=!0}}else if(xt&&xt.has(s)){let a=t[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=t[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="&"){let a=t[s];a&&typeof a=="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=t[s];if(a&&typeof a=="object"){let c={};for(let l in a){let f=a[l];if(typeof f=="function"&&(f=f(t,t.state,t.context)),!(f==null||typeof f=="function"))if(lt[l]){let u=lt[l](f,t,t.state,t.context);if(u)if(Array.isArray(u))for(let p of u)p&&Object.assign(c,p);else Object.assign(c,u)}else c[l]=f}if(Object.keys(c).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!t.context?.designSystem?.media?.[s.slice(1)])){let f={};for(let p in c){let d=c[p];f[p]=typeof d=="string"&&!d.includes("!important")?d+" !important":d}let u=s.slice(1);n[`[data-theme="${u}"] &`]=f}else{let f=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let p=s.slice(1),d=t.context?.designSystem?.media?.[p]||t.context?.designSystem?.media?.[p];d&&(f=`@media ${d}`)}let u={};for(let p in c){let d=c[p];if(d&&typeof d=="object"&&!Array.isArray(d)){let h={};for(let m in d)if(lt[m]){let y=lt[m](d[m],t,t.state,t.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]=d[m];let g=p.startsWith(":")?"":" ";if(f.includes(",")){let m=f.split(",").map(y=>`${y.trim()}${g}${p}`).join(", ");n[m]=h}else n[`${f}${g}${p}`]=h}else u[p]=d}Object.keys(u).length&&(n[f]=u)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(e.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let s=Xe(n,null,t.context?.cssPrefix);s&&e.classList&&s.split(" ").forEach(a=>a&&e.classList.add(a));let i=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i==="none"){let c=[];for(let l of e.classList)l.startsWith("_d-")&&l!=="_d-none"&&c.push(l);for(let l of c)e.classList.remove(l);e.classList.add("_d-none")}else e.style.display=t.display}}}finally{r&&at(),Ec.delete(t)}}function Qh(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let s=t.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());e.setAttribute(i,s===!0?"":s)}let r=Zh(t);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(o,s===!0?"":s)}let n=t.tag||"div";for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||typeof t[o]=="function"||Ot.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!Cr(o)&&!(lt[o]||xt&&xt.has(o))&&Ze(n,o)){let i=t[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=rr(i,t,t.state,t.context),t[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;e.setAttribute(o,i===!0?"":i)}}}function tg(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!Cr(r))continue;let n=t[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let s=n;n=function(a){return t.call(s,a)}}if(typeof n!="function")continue;let o=xw(r);wr.has(o)||ks(Sw(o),t,n)}}function Pc(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Pc(o,s):r[n]=s}return r}function Ic(t,e,r){if(!e||!t.node)return;let n=t.childExtends;if(Array.isArray(e)){let s=(t.context?.document||globalThis.document)?.createDocumentFragment();if(!s)return;let i=t.childProps,a=t.childrenAs;for(let c=0;c<e.length;c++){let l=e[c],f=l;(typeof l=="string"||typeof l=="number")&&(l={text:l});let u=i;if(typeof i=="function")try{u=i(t,l)}catch{u=null}if(a==="state"){let h=f;(typeof f=="string"||typeof f=="number")&&(h={value:f,text:f}),l=u?{...u,state:h}:{state:h}}else u&&(l=Pc(u,l));if(n&&!l.ignoreChildExtends)if(l.extends){let h=Array.isArray(l.extends)?l.extends:[l.extends],g=Array.isArray(n)?n:[n];l={...l,extends:[...g,...h]}}else l={extends:n,...l};let p=l?.key||`${c}`,d=Ut(l,t,p,r);d?.node&&s.appendChild(d.node)}t.node.appendChild(s);return}if(typeof e=="string"){let o=Jh(e,t);if(Array.isArray(o)){Ic(t,o,r);return}}if(typeof e=="object")for(let o in e){if(Ot.has(o))continue;let s=e[o];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),t.childProps&&(s=Pc(t.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};Ut(s,t,o,r)}}}function eg(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r=="function"){let i=r;r=i(t,t.state,t.context),t.children=r;let a=t.__ref,c=!1,l=ft(()=>{let f=i(t,t.state,t.context);if(!c){c=!0;return}if(f===t.children)return;if(t.children=f,Array.isArray(f)&&t.childrenAs==="state"){let d=t.childProps,h=[],g=new Map;for(let v=0;v<f.length;v++){let O=f[v],R=d;if(typeof d=="function")try{R=d(t,O)}catch{R=null}let W=R&&R.key||O&&O.key||`${v}`;h.push(W),g.set(W,{rawChild:O,childProps:R})}let m=new Set(h),y=a.__children.slice();for(let v of y)if(!m.has(v)){let O=t[v];O?.remove&&O.remove(),delete t[v]}let b=t.childExtends,x=(t.context?.document||globalThis.document)?.createDocumentFragment();for(let v of h){let O=g.get(v),R=O.rawChild,W=t[v];if(W&&W.state){if(R&&typeof R=="object"){let M=W.state;if(typeof M.replace=="function")M.replace(R);else if(typeof M.update=="function"){for(let I in M)if(!(I==="__element"||I==="root"||I==="parent"||I==="update")&&!Object.prototype.hasOwnProperty.call(R,I))try{M[I]=void 0}catch{}M.update(R)}else for(let I in R)M[I]=R[I]}continue}let E=R;(typeof R=="string"||typeof R=="number")&&(E={value:R,text:R});let L=O.childProps,V=L?{...L,state:E}:{state:E};if(b&&!V.ignoreChildExtends)if(V.extends){let M=Array.isArray(V.extends)?V.extends:[V.extends],I=Array.isArray(b)?b:[b];V={...V,extends:[...I,...M]}}else V={extends:b,...V};let Q=Ut(V,t,v,e);Q?.node&&x&&x.appendChild(Q.node)}x&&x.childNodes.length&&t.node&&t.node.appendChild(x),a.__children=h;return}for(let d of[...a.__children]){let h=t[d];h?.remove&&h.remove(),delete t[d]}a.__children=[],Ic(t,f,e)},{depth:a.path.length});a.__effects.push(l)}if(Ic(t,r||n,e),r||n)return;let s=t.context?.components||{};{let i=Object.keys(t);for(let a=0;a<i.length;a++){let c=i[a];if(!c.endsWith("Extends")||typeof t[c]!="string")continue;let l=c.slice(0,-7);if(!l||l.charCodeAt(0)<65||l.charCodeAt(0)>90)continue;let f={extends:t[c]};delete t[c];for(let u=a+1;u<i.length;u++){let p=i[u],d=p.charCodeAt(0);if(d>=65&&d<=90||Ot.has(p)||typeof t[p]=="function"&&(p.startsWith("on")||p.startsWith(".")))break;let h=t[p];h!==void 0&&(f[p]=h,delete t[p])}t[l]&&typeof t[l]=="object"?t[l]={...f,...t[l]}:t[l]=f}}for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||Ot.has(i)||typeof t[i]!="object"||t[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let c=t[i];if(!c.__ref){if(!c.extends&&!c.extend){let l=s[i]||s[`smbls.${i}`];l&&(c={extends:l,...c})}if(t.childProps&&(c={...t.childProps,...c}),o&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(o)?o:[o];c={...c,extends:[...f,...l]}}else c={extends:o,...c};Ut(c,t,i,e)}}}function $c(t,e,r){let{node:n}=t;if(!n)return;let o=e?.node||(e?.nodeType?e: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 ve(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Xt(n,e,r);let o="on"+t,s=e[o];if(typeof s=="function"){let i=e.context?.designSystem;i&&pt(i);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(a){if(e.context?.plugins?.length&&Xt("error",e,{hook:o,error:a})||console.error(`[DOMQL] Lifecycle "${o}" error:`,a),e.context?.strictMode)throw a}finally{i&&at()}}return!0}var rg={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"]},ng={"gradient-blue-light":`linear-gradient(to right,
41
+ `),u&&(s+=u)}}s&&(o.textContent+=s)}function Aw(t){let e=t.__ref;e.__conditionalRunners=[];for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let s=t[r];if(!s||typeof s!="object")continue;let i=n==="!",a={lastMatch:!1,appliedKeys:null},c=()=>{if(!t.node)return;let f,u=t[o];if(u===void 0)if(t.state&&o in t.state)f=t.state[o];else{let h=t.context?.cases?.[o];if(h===void 0)return;f=typeof h=="function"?h.call(t,t):h}else typeof u=="function"?f=u(t,t.state,t.context):f=u;let p=i?!f:!!f;if(p===a.lastMatch)return;a.lastMatch=p;let d=t.context?.designSystem;d&&pt(d);try{if(p){let h={};for(let m in s){if(!Object.prototype.hasOwnProperty.call(s,m))continue;let y=typeof s[m]=="function"?s[m](t,t.state,t.context):s[m];if(y!=null)if(lt[m]){let b=lt[m](y,t,t.state,t.context);if(b){let S=Array.isArray(b)?b:[b];for(let x of S)x&&Object.assign(h,x)}}else xt&&xt.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(vr(t.node,h),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let h of a.appliedKeys)t.node.style[h]="";a.appliedKeys=null}}finally{d&&at()}};e.__conditionalRunners.push(c);let l=ft(c,{depth:e.path.length});e.__effects.push(l)}}var Ec=new WeakSet;function Ew(t){let{node:e}=t;if(!e)return;if(Ec.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Ec.add(t);let r=t.context?.designSystem;r&&pt(r);try{let n={},o=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]=="function"||Ot.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!Cr(s)){if(lt[s]){let a=t[s],c=lt[s](a,t,t.state,t.context);if(c){if(Array.isArray(c))for(let l of c)l&&Object.assign(n,l);else Object.assign(n,c);o=!0}}else if(xt&&xt.has(s)){let a=t[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=t[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="&"){let a=t[s];a&&typeof a=="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=t[s];if(a&&typeof a=="object"){let c={};for(let l in a){let f=a[l];if(typeof f=="function"&&(f=f(t,t.state,t.context)),!(f==null||typeof f=="function"))if(lt[l]){let u=lt[l](f,t,t.state,t.context);if(u)if(Array.isArray(u))for(let p of u)p&&Object.assign(c,p);else Object.assign(c,u)}else c[l]=f}if(Object.keys(c).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!t.context?.designSystem?.media?.[s.slice(1)])){let f={};for(let p in c){let d=c[p];f[p]=typeof d=="string"&&!d.includes("!important")?d+" !important":d}let u=s.slice(1);n[`[data-theme="${u}"] &`]=f}else{let f=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let p=s.slice(1),d=t.context?.designSystem?.media?.[p]||t.context?.designSystem?.media?.[p];d&&(f=`@media ${d}`)}let u={};for(let p in c){let d=c[p];if(d&&typeof d=="object"&&!Array.isArray(d)){let h={};for(let m in d)if(lt[m]){let y=lt[m](d[m],t,t.state,t.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]=d[m];let g=p.startsWith(":")?"":" ";if(f.includes(",")){let m=f.split(",").map(y=>`${y.trim()}${g}${p}`).join(", ");n[m]=h}else n[`${f}${g}${p}`]=h}else u[p]=d}Object.keys(u).length&&(n[f]=u)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(e.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let s=Xe(n,null,t.context?.cssPrefix);s&&e.classList&&s.split(" ").forEach(a=>a&&e.classList.add(a));let i=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i==="none"){let c=[];for(let l of e.classList)l.startsWith("_d-")&&l!=="_d-none"&&c.push(l);for(let l of c)e.classList.remove(l);e.classList.add("_d-none")}else e.style.display=t.display}}}finally{r&&at(),Ec.delete(t)}}function tg(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let s=t.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());e.setAttribute(i,s===!0?"":s)}let r=Jh(t);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(o,s===!0?"":s)}let n=t.tag||"div";for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||typeof t[o]=="function"||Ot.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!Cr(o)&&!(lt[o]||xt&&xt.has(o))&&Ze(n,o)){let i=t[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=rr(i,t,t.state,t.context),t[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;e.setAttribute(o,i===!0?"":i)}}}function eg(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!Cr(r))continue;let n=t[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let s=n;n=function(a){return t.call(s,a)}}if(typeof n!="function")continue;let o=Sw(r);wr.has(o)||ks(_w(o),t,n)}}function Pc(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Pc(o,s):r[n]=s}return r}function Ic(t,e,r){if(!e||!t.node)return;let n=t.childExtends;if(Array.isArray(e)){let s=(t.context?.document||globalThis.document)?.createDocumentFragment();if(!s)return;let i=t.childProps,a=t.childrenAs;for(let c=0;c<e.length;c++){let l=e[c],f=l;(typeof l=="string"||typeof l=="number")&&(l={text:l});let u=i;if(typeof i=="function")try{u=i(t,l)}catch{u=null}if(a==="state"){let h=f;(typeof f=="string"||typeof f=="number")&&(h={value:f,text:f}),l=u?{...u,state:h}:{state:h}}else u&&(l=Pc(u,l));if(n&&!l.ignoreChildExtends)if(l.extends){let h=Array.isArray(l.extends)?l.extends:[l.extends],g=Array.isArray(n)?n:[n];l={...l,extends:[...g,...h]}}else l={extends:n,...l};let p=l?.key||`${c}`,d=zt(l,t,p,r);d?.node&&s.appendChild(d.node)}t.node.appendChild(s);return}if(typeof e=="string"){let o=Qh(e,t);if(Array.isArray(o)){Ic(t,o,r);return}}if(typeof e=="object")for(let o in e){if(Ot.has(o))continue;let s=e[o];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),t.childProps&&(s=Pc(t.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};zt(s,t,o,r)}}}function rg(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r=="function"){let i=r;r=i(t,t.state,t.context),t.children=r;let a=t.__ref,c=!1,l=ft(()=>{let f=i(t,t.state,t.context);if(!c){c=!0;return}if(f===t.children)return;if(t.children=f,Array.isArray(f)&&t.childrenAs==="state"){let d=t.childProps,h=[],g=new Map;for(let v=0;v<f.length;v++){let O=f[v],R=d;if(typeof d=="function")try{R=d(t,O)}catch{R=null}let W=R&&R.key||O&&O.key||`${v}`;h.push(W),g.set(W,{rawChild:O,childProps:R})}let m=new Set(h),y=a.__children.slice();for(let v of y)if(!m.has(v)){let O=t[v];O?.remove&&O.remove(),delete t[v]}let b=t.childExtends,x=(t.context?.document||globalThis.document)?.createDocumentFragment();for(let v of h){let O=g.get(v),R=O.rawChild,W=t[v];if(W&&W.state){if(R&&typeof R=="object"){let M=W.state;if(typeof M.replace=="function")M.replace(R);else if(typeof M.update=="function"){for(let I in M)if(!(I==="__element"||I==="root"||I==="parent"||I==="update")&&!Object.prototype.hasOwnProperty.call(R,I))try{M[I]=void 0}catch{}M.update(R)}else for(let I in R)M[I]=R[I]}continue}let T=R;(typeof R=="string"||typeof R=="number")&&(T={value:R,text:R});let L=O.childProps,V=L?{...L,state:T}:{state:T};if(b&&!V.ignoreChildExtends)if(V.extends){let M=Array.isArray(V.extends)?V.extends:[V.extends],I=Array.isArray(b)?b:[b];V={...V,extends:[...I,...M]}}else V={extends:b,...V};let J=zt(V,t,v,e);J?.node&&x&&x.appendChild(J.node)}x&&x.childNodes.length&&t.node&&t.node.appendChild(x),a.__children=h;return}for(let d of[...a.__children]){let h=t[d];h?.remove&&h.remove(),delete t[d]}a.__children=[],Ic(t,f,e)},{depth:a.path.length});a.__effects.push(l)}if(Ic(t,r||n,e),r||n)return;let s=t.context?.components||{};{let i=Object.keys(t);for(let a=0;a<i.length;a++){let c=i[a];if(!c.endsWith("Extends")||typeof t[c]!="string")continue;let l=c.slice(0,-7);if(!l||l.charCodeAt(0)<65||l.charCodeAt(0)>90)continue;let f={extends:t[c]};delete t[c];for(let u=a+1;u<i.length;u++){let p=i[u],d=p.charCodeAt(0);if(d>=65&&d<=90||Ot.has(p)||typeof t[p]=="function"&&(p.startsWith("on")||p.startsWith(".")))break;let h=t[p];h!==void 0&&(f[p]=h,delete t[p])}t[l]&&typeof t[l]=="object"?t[l]={...f,...t[l]}:t[l]=f}}for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||Ot.has(i)||typeof t[i]!="object"||t[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let c=t[i];if(!c.__ref){if(!c.extends&&!c.extend){let l=s[i]||s[`smbls.${i}`];l&&(c={extends:l,...c})}if(t.childProps&&(c={...t.childProps,...c}),o&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(o)?o:[o];c={...c,extends:[...f,...l]}}else c={extends:o,...c};zt(c,t,i,e)}}}function $c(t,e,r){let{node:n}=t;if(!n)return;let o=e?.node||(e?.nodeType?e: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 ve(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Kt(n,e,r);let o="on"+t,s=e[o];if(typeof s=="function"){let i=e.context?.designSystem;i&&pt(i);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(a){if(e.context?.plugins?.length&&Kt("error",e,{hook:o,error:a})||console.error(`[DOMQL] Lifecycle "${o}" error:`,a),e.context?.strictMode)throw a}finally{i&&at()}}return!0}var ng={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"]},og={"gradient-blue-light":`linear-gradient(to right,
43
42
  rgba(4, 116, 242, 1),
44
43
  rgba(0, 48, 103, 1)
45
44
  )`,"gradient-blue-dark":`linear-gradient(to right,
@@ -65,15 +64,15 @@ FROM ${a}${l}`},eS=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
65
64
  #1E54F0 36%,
66
65
  #8B4CCA 69%,
67
66
  #C66894 100%
68
- )`};var Ew={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"}}}},Tw={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},Ow={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"}}},og={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...Ew,...Tw,...Ow,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var sg={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var ig={ratio:1.618,subSequence:!0};var ag={SourceSans:[{url:""}]},cg={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var lg={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 fg={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 ug={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Os={version:"0.0.1",color:rg,gradient:ng,theme:og,typography:sg,spacing:ig,font:ag,fontFamily:cg,timing:ug,icons:lg,media:fg,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var An={};F(An,{A:()=>Cm,AssetPicture:()=>Og,Audio:()=>Ig,Avatar:()=>Bm,B:()=>Zg,Block:()=>pg,Box:()=>$s,Br:()=>em,Button:()=>Tm,ButtonSet:()=>Im,COMPONENTS:()=>Er,Caption:()=>zg,Checkbox:()=>um,CheckboxHgroup:()=>pm,Circle:()=>Ag,CircleButton:()=>Rm,Clickable:()=>kg,Data:()=>Qg,Dialog:()=>Fm,DialogFooter:()=>Lm,DialogHeader:()=>Dm,Dropdown:()=>zm,DropdownList:()=>Um,DropdownParent:()=>Wm,DropdownParentFocus:()=>Hm,DropdownSiblingFocus:()=>qm,FileIcon:()=>_m,Flex:()=>hg,Focusable:()=>vg,FocusableComponent:()=>Cg,Footnote:()=>Yg,Form:()=>Sg,Grid:()=>mg,Gutter:()=>bg,H1:()=>Dg,H2:()=>Lg,H3:()=>Mg,H4:()=>Ng,H5:()=>jg,H6:()=>Bg,Headline:()=>Kg,Hgroup:()=>im,HgroupButton:()=>cm,HgroupRows:()=>am,Hoverable:()=>wg,Hr:()=>tm,I:()=>Jg,Icon:()=>xm,IconButton:()=>$m,IconText:()=>Sm,Iframe:()=>_g,Img:()=>xg,Inline:()=>dg,InlineFlex:()=>gg,InlineGrid:()=>yg,Input:()=>lm,Italic:()=>qg,KangorooButton:()=>Pm,Li:()=>rm,Link:()=>ll,Notification:()=>Gm,NumberInput:()=>fm,Ol:()=>om,P:()=>Vg,Picture:()=>Tg,Radio:()=>dm,RadioHgroup:()=>hm,Range:()=>Vm,RouteLink:()=>Am,RouterLink:()=>fl,SHAPES:()=>Ps,Select:()=>Em,Shape:()=>jc,Span:()=>Fg,SquareButton:()=>Om,Strong:()=>Ug,Subhead:()=>Xg,Svg:()=>Rg,Text:()=>$g,Textarea:()=>ym,TextareaWithButton:()=>bm,Theme:()=>Eg,Title:()=>Gg,Toggle:()=>gm,ToggleHgroup:()=>mm,Tooltip:()=>Mm,TooltipHidden:()=>Nm,TooltipParent:()=>jm,U:()=>Wg,Ul:()=>nm,Underline:()=>Hg,Video:()=>Pg,depth:()=>Is,getSystemGlobalTheme:()=>Cn});var Fc={};F(Fc,{Block:()=>pg,Flex:()=>hg,Grid:()=>mg,Gutter:()=>bg,Inline:()=>dg,InlineFlex:()=>gg,InlineGrid:()=>yg});var pg={display:"block"},dg={display:"inline"},hg={display:"flex"},gg={display:"inline-flex"},mg={display:"grid"},yg={display:"inline-grid"},bg={boxSize:"C1"};var Dc={};F(Dc,{Img:()=>xg});P();var xg={tag:"img",attr:{title:t=>t.title||t.alt,src:t=>{let e=Tt(t);return e&&e.src||t.src},srcset:t=>{let e=Tt(t);return(e?ns(e):"")||t.srcset}}};var Lc={};F(Lc,{Form:()=>Sg});var Sg={tag:"form"};var Mc={};F(Mc,{Iframe:()=>_g});var _g={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Nc={};F(Nc,{Clickable:()=>kg,Focusable:()=>vg,FocusableComponent:()=>Cg,Hoverable:()=>wg});var Rw={appearance:"none",cursor:"pointer",fontFamily:"inherit"},wg={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}}},kg={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},vg={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:t=>t.tabIndex}},Cg={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:Rw};var zc={};F(zc,{Picture:()=>Tg});var Vc={};F(Vc,{Theme:()=>Eg,getSystemGlobalTheme:()=>Cn});var Bc={};F(Bc,{Circle:()=>Ag,SHAPES:()=>Ps,Shape:()=>jc,default:()=>Pw,depth:()=>Is});P();var Mt=A(),Is={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}`}},Ar=t=>tt(t.shapeDirectionColor)||tt(t.borderColor)||tt(t.backgroundColor)||tt(t.background),Rs=t=>{let e=Es.transition(t.transition,t);return e&&e.transition},Ps={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:t=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Ar(t),transition:Rs(t),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:t=>({position:"relative","&:before":{content:'""',display:"block",background:Ar(t),transition:Rs(t),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:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Ar(t),transition:Rs(t),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Rs(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Ar(t)} 25%, transparent 25%), linear-gradient(315deg, ${Ar(t)} 25%, transparent 25%)`},"&:after":{background:Ar(t),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)"}}}},jc={deps:{exec:Y,getSpacingBasedOnRatio:fe,getMediaColor:bt},classlist:{shape:t=>t.deps.exec(Ps[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Ps[t.shape+"Direction"];return t.shape&&e?e[t.shapeDirection||"left"]:null},shapeDirectionColor:t=>{let e={borderColor:t.deps.getMediaColor(t.background||t.backgroundColor)};return t.shapeDirection?e:null}}},Ag={round:"100%"},Pw=jc;P();var Cn=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},Eg={deps:{depth:Is},classlist:{depth:t=>!ht(t.depth)&&t.deps.depth[t.depth]}};var Tg={deps:{getSystemGlobalTheme:Cn},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Cn},tag:"source",attr:{media:t=>{let{key:e,context:r,deps:n}=t,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(t),i=(t.media||e).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:(t,e)=>t.parent?.src||e.src}};var Uc={};F(Uc,{AssetPicture:()=>Og});P();var Og={tag:"picture",children:t=>{let e=Tt(t);if(e)return os(e,t.alt)}};var Wc={};F(Wc,{Svg:()=>Rg});var Rg={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!="function")return t.call("exec",t.html,t);let{designSystem:r,utils:n}=e,o=r&&r.svg,s=t.spriteId||r&&r.useSvgSprite,i=t.call("exec",t.src,t);if(!s&&i)return i;let a=p=>`<use xlink:href="#${p}" />`,c=t.spriteId;if(c)return a(c);if(o&&o[i])return a(i);let l=Symbol.for(i),f=o[l];if(f&&o[f])return a(f);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 u=0;for(let p=0;p<i.length;p++)u=(u<<5)-u+i.charCodeAt(p)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var Hc={};F(Hc,{Video:()=>Pg});P();var Pg={tag:"video",controls:!0,attr:{src:t=>{let e=Tt(t);return e&&e.src||t.src}},children:t=>{let e=Tt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var qc={};F(qc,{Audio:()=>Ig});P();var Ig={tag:"audio",controls:!0,attr:{src:t=>{let e=Tt(t);return e&&e.src||t.src}},children:t=>{let e=Tt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Gc={};F(Gc,{B:()=>Zg,Caption:()=>zg,Data:()=>Qg,Footnote:()=>Yg,H1:()=>Dg,H2:()=>Lg,H3:()=>Mg,H4:()=>Ng,H5:()=>jg,H6:()=>Bg,Headline:()=>Kg,I:()=>Jg,Italic:()=>qg,P:()=>Vg,Span:()=>Fg,Strong:()=>Ug,Subhead:()=>Xg,Text:()=>$g,Title:()=>Gg,U:()=>Wg,Underline:()=>Hg});var $g={},Fg={tag:"span"},Dg={tag:"h1"},Lg={tag:"h2"},Mg={tag:"h3"},Ng={tag:"h4"},jg={tag:"h5"},Bg={tag:"h6"},Vg={tag:"p"},zg={tag:"caption"},Ug={tag:"strong",fontWeight:"700"},Wg={tag:"u"},Hg={tag:"u"},qg={tag:"i"},Gg={},Kg={tag:"h6",fontSize:"B",fontWeight:500},Xg={tag:"span",fontSize:"Z1"},Yg={tag:"span",fontSize:"Z"},Zg={tag:"b"},Jg={tag:"i"},Qg={tag:"data"};var Kc={};F(Kc,{Box:()=>$s,Br:()=>em,Hr:()=>tm,Li:()=>rm,Ol:()=>om,Ul:()=>nm});var Iw=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Lt(e,t,{unpack:!1});r.__class=n},$s={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:Iw},tm={tag:"hr",margin:"C1 0"},em={tag:"br"},rm={tag:"li"},nm={tag:"ul",childExtends:{extends:"Li"}},om={tag:"ol",childExtends:{extends:"Li"}};var Xc={};F(Xc,{Hgroup:()=>im,HgroupButton:()=>cm,HgroupRows:()=>am});var sm=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let r=e.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},im={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:sm,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:sm,margin:"0",color:"paragraph"}},am={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},cm={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Yc={};F(Yc,{Input:()=>lm});var lm={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:t=>t.pattern,minLength:t=>t.minlength,maxLength:t=>t.maxlength,name:t=>t.name,autocomplete:t=>t.autocomplete,placeholder:t=>t.placeholder,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.checked,t),disabled:t=>t.disabled||null,readonly:t=>t.readonly,required:t=>t.required,type:t=>t.type}};var Zc={};F(Zc,{NumberInput:()=>fm});var fm={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:t=>t.step,min:t=>t.min,max:t=>t.max}};var Jc={};F(Jc,{Checkbox:()=>um,CheckboxHgroup:()=>pm});var um={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:t=>t.call("exec",t.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"}}},pm={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Qc={};F(Qc,{Radio:()=>dm,RadioHgroup:()=>hm});var dm={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}},hm={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var tl={};F(tl,{Toggle:()=>gm,ToggleHgroup:()=>mm});var gm={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}},mm={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var el={};F(el,{Textarea:()=>ym,TextareaWithButton:()=>bm});var ym={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"}},bm={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 rl={};F(rl,{FileIcon:()=>_m,Icon:()=>xm,IconText:()=>Sm});var xm={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,r)=>{let{parent:n}=t,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=x=>{let v=x[".isActive"];if(v)return x.call("exec",v.name||v.icon)},l=(x,v,O)=>{let{semanticIcons:R}=O&&O.designSystem,{toCamelCase:W}=O&&O.utils,E=f(x,v),V=W(E).split(/([a-z])([A-Z])/g),Q=V[1]?V[0]:E.split(".")[0].split(" ")[0],M=R&&R[Q];if(M){let I=E.includes(".")?"sfsymbols."+E.split(".").slice(1).join("."):"sfsymbols";return E=M[I]||M[E.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${E}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(x,v)=>{let{key:O}=x,R=x.call("exec",x.name||x.icon||O,x);return x.call("isString",R)&&R.includes("{{")&&(R=x.call("replaceLiteralsWithObjectFields",R)),x.call("isString",R)?R:O},u=f(t,e);if(u.includes(" ")){let x=u.split(" ");u=x[0]+x.slice(1).map(v=>v.charAt(0).toUpperCase()+v.slice(1)).join("")}let p=a(u),d=p.split(/([a-z])([A-Z])/g),h=l(t,e,r);if(h){Object.assign(t,h);return}let g;t.isActive&&(g=c(t));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=t.call("exec",m.icon||m.Icon.name||m.Icon.icon,t)),t.call("isString",g)&&g.includes("{{")&&(g=t.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[p]?y=p:o[d[0]+d[1]]?y=d[0]+d[1]:o[d[0]]?y=d[0]:i&&t.warn("Can't find icon:",u,y);let b=o[y],S=n&&n.src||t.src;Object.assign(t,{spriteId:s&&y,src:b||S||o.noIcon})},attr:{viewBox:"0 0 24 24"}},Sm={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t;return t.call("exec",e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},_m={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var ul={};F(ul,{A:()=>Cm,Link:()=>ll,RouteLink:()=>Am,RouterLink:()=>fl});var cl={};F(cl,{default:()=>Mw,getActiveRoute:()=>al,lastLevel:()=>Ds,lastPathname:()=>Fs,matchRoute:()=>ol,parseQuery:()=>sl,parseRoutePattern:()=>nl,router:()=>re,runGuards:()=>il});P();var km=/^:(.+)/,vm=/^\*$/,wm=new Map,nl=t=>{let e=wm.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(km);a?n.push({index:i,name:a[1]}):vm.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return wm.set(t,s),s},ol=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||"");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=nl(l),u=$w(o,f);u>a&&(a=u,i=l,c=Fw(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},$w=(t,e)=>{let{segments:r,hasWildcard:n}=e;if(!n&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let o=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])o+=3;else if(km.test(r[i]))o+=1;else if(vm.test(r[i]))o+=.5;else return-1;return o},Fw=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},sl=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((n,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(n)):e[o]=n}),e},il=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let n=await r(e);if(n===!1)return!1;if(typeof n=="string")return n}return!0},al=(t=0,e)=>{e||(e=typeof w<"u"?w.location.pathname:"/");let n=e.split("/")[t+1];if(n)return`/${n}`},Fs,Ds=0,Dw=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,Lw={level:Ds,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:X&&X.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},re=async(t,e,r={},n={})=>{let o=e||void 0,s=o?.context?.window||w,i=o?.context?.document||X,a={...Lw,...o.context.routerOptions,...n};Ds=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let l=c.contentElementKey||a.contentElementKey||"content",f=s.location.origin!=="null"?s.location.origin:"http://localhost";t=Dw(t);let u=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new u(f+t),{pathname:d,search:h,hash:g}=p,m=sl(h),y=o.node,b=g&&g!==s.location.hash.slice(1),S=d!==Fs;Fs=d;let x,v,O,R;if(a.useParamsMatching){let E=ol(d,o.routes,a.level);x=E.key,v=E.routePath,O=E.content,R=E.params}else{x=al(a.level,d),v=x;let E=o.routes;O=E?E[x||"/"]||E["/*"]:null,R={}}let W=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!O){a.onNotFound?a.onNotFound({pathname:d,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",d,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let E={pathname:d,route:x,params:R,query:m,hash:g,element:o,state:r},L=await il(a.guards,E);if(L===!1)return;if(typeof L=="string")return re(L,e,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,d+(h||"")+(g||""))}catch{}if(S||!b){let E={route:x,routePath:v,hash:g,debugging:!1};Object.keys(R).length&&(E.params=R),Object.keys(m).length&&(E.query=m),a.updateState&&o.state.update(E,{preventContentUpdate:!0}),l&&a.removeOldElement&&o[l].remove();let L=o.__ref?.origin?.content,V={};if(L)for(let M in L){let I=L[M];M==="__ref"||M==="props"||M==="node"||M==="parent"||M==="key"||(typeof I=="string"||typeof I=="number"||typeof I=="boolean"||typeof I=="object"&&I!==null&&!I.node&&!I.__ref)&&(V[M]=I)}let Q={...V,...typeof O=="object"?O:{extends:O}};a.useFragment&&(Q.tag="fragment");try{o.set(Q,{contentElementKey:l})}catch(M){console.error("[smbls/router] failed to render route content",d,M)}}if(a.scrollToTop&&W?.scrollTo&&W.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&O[l]?.node?.scrollTo&&O[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let E=i.getElementById(g);if(E&&W?.scrollTo){let L=E.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);W.scrollTo({...a.scrollToOptions||{},top:L,left:0})}}Be("routeChanged",o,a)},Mw=re;var Nw=(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",o,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:u}=n,p=e.__ref.root,d=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&&!d){t.preventDefault();try{let h=p;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=p;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,p.routes&&(h.routes=p.routes))}(f.router||l.router||c.router||re)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(h){console.warn(h)}}},ll={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Ye(t,t.href)||Ye(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:Nw},Cm={extends:"Link"},fl={onClick:(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",o,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:u}=n,p=e.__ref.root,d=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&&!d){t.preventDefault();try{let h=p;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=p;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,p.routes&&(h.routes=p.routes))}(f.router||l.router||c.router||re)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(h){console.warn(h)}}}},Am={extends:[ll,fl]};var pl={};F(pl,{Select:()=>Em});var Em={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:t=>t.value,selected:t=>t.selected,disabled:t=>t.disabled}},attr:{name:t=>t.name,disabled:t=>t.disabled,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var dl={};F(dl,{Button:()=>Tm,ButtonSet:()=>Im,CircleButton:()=>Rm,IconButton:()=>$m,KangorooButton:()=>Pm,SquareButton:()=>Om});var Tm={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:t=>t.call("exec",t.disabled)},Om={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"},Rm={extends:"SquareButton",round:"C"},Pm={extends:"Button",childExtends:"IconText"},Im={tag:"nav",display:"flex",childExtends:"SquareButton"},$m={extends:["SquareButton","ClickableItem"],round:"Z"};var hl={};F(hl,{Dialog:()=>Fm,DialogFooter:()=>Lm,DialogHeader:()=>Dm});var Fm={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Dm={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Lm={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 gl={};F(gl,{Tooltip:()=>Mm,TooltipHidden:()=>Nm,TooltipParent:()=>jm});P();var Mm={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:t=>vt(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},Nm={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)}},jm={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var ml={};F(ml,{Avatar:()=>Bm});var Bm={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.avatarType||"initials"}/svg?seed=${t.key||"no-avatar"}`};var yl={};F(yl,{Range:()=>Vm});var Vm={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,r)=>{e.call("isFunction",e.onInput)?e.onInput(t,e,r):r.update({value:parseFloat(e.node.value)})},onChange:(t,e,r)=>{e.call("isFunction",e.onChange)?e.onChange(t,e,r):r.update({value:parseFloat(e.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:ss("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ss("#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:(t,e,r)=>{let n=t.call("exec",t[e],t);return(t.call("isFunction",n)?n(t,t.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var bl={};F(bl,{Dropdown:()=>zm,DropdownList:()=>Um,DropdownParent:()=>Wm,DropdownParentFocus:()=>Hm,DropdownSiblingFocus:()=>qm});var zm={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"},Um={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:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,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:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Wm={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Hm={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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},qm={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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var xl={};F(xl,{Notification:()=>Gm});var Gm={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 Er=Object.assign({},Fc,Dc,Lc,Mc,Nc,zc,Uc,Wc,Bc,Hc,qc,Vc,Gc,Kc,Xc,Yc,Zc,Jc,Qc,tl,el,rl,ul,pl,dl,hl,gl,ml,yl,bl,xl);function Ls(t){if(t==null)return 0;if(typeof t!="object")return Km(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let n=0;n<t.length;n++)e=(e^Ls(t[n]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let n=0;n<r.length;n++)e=(e^Km(r[n]))*16777619,e=(e^Ls(t[r[n]]))*16777619;return e>>>0}function Km(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function Ms(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!="object")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!Ms(t[o],e[o]))return!1;return!0}let r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(e,s)||!Ms(t[s],e[s]))return!1}return!0}function Sl(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!="object"||Array.isArray(e))return e;if(typeof t!="object"||Array.isArray(t))return{...e};let r=!1,n={};for(let o in t)if(o in e){let s=Sl(t[o],e[o]);n[o]=s,s!==t[o]&&(r=!0)}else n[o]=t[o];for(let o in e)o in t||(n[o]=e[o],r=!0);return r?n:t}function _l(t,e,r){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(r||(r=new WeakSet),r.has(e))return t;r.add(e);for(let n in e){let o=e[n];o&&typeof o=="object"&&!Array.isArray(o)&&t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?_l(t[n],o,r):t[n]=o}return t}function Ce(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function Tr(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function En(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Ce(e)}function Xm(t){return t.split(`
67
+ )`};var Tw={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"}}}},Ow={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},Rw={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"}}},sg={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...Tw,...Ow,...Rw,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var ig={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var ag={ratio:1.618,subSequence:!0};var cg={SourceSans:[{url:""}]},lg={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var fg={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 ug={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 pg={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Os={version:"0.0.1",color:ng,gradient:og,theme:sg,typography:ig,spacing:ag,font:cg,fontFamily:lg,timing:pg,icons:fg,media:ug,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var An={};F(An,{A:()=>Am,AssetPicture:()=>Rg,Audio:()=>$g,Avatar:()=>Vm,B:()=>Jg,Block:()=>dg,Box:()=>$s,Br:()=>rm,Button:()=>Om,ButtonSet:()=>$m,COMPONENTS:()=>Er,Caption:()=>Ug,Checkbox:()=>pm,CheckboxHgroup:()=>dm,Circle:()=>Eg,CircleButton:()=>Pm,Clickable:()=>vg,Data:()=>tm,Dialog:()=>Dm,DialogFooter:()=>Mm,DialogHeader:()=>Lm,Dropdown:()=>Um,DropdownList:()=>Wm,DropdownParent:()=>Hm,DropdownParentFocus:()=>qm,DropdownSiblingFocus:()=>Gm,FileIcon:()=>wm,Flex:()=>gg,Focusable:()=>Cg,FocusableComponent:()=>Ag,Footnote:()=>Zg,Form:()=>_g,Grid:()=>yg,Gutter:()=>xg,H1:()=>Lg,H2:()=>Mg,H3:()=>Ng,H4:()=>jg,H5:()=>Bg,H6:()=>Vg,Headline:()=>Xg,Hgroup:()=>am,HgroupButton:()=>lm,HgroupRows:()=>cm,Hoverable:()=>kg,Hr:()=>em,I:()=>Qg,Icon:()=>Sm,IconButton:()=>Fm,IconText:()=>_m,Iframe:()=>wg,Img:()=>Sg,Inline:()=>hg,InlineFlex:()=>mg,InlineGrid:()=>bg,Input:()=>fm,Italic:()=>Gg,KangorooButton:()=>Im,Li:()=>nm,Link:()=>ll,Notification:()=>Km,NumberInput:()=>um,Ol:()=>sm,P:()=>zg,Picture:()=>Og,Radio:()=>hm,RadioHgroup:()=>gm,Range:()=>zm,RouteLink:()=>Em,RouterLink:()=>fl,SHAPES:()=>Ps,Select:()=>Tm,Shape:()=>jc,Span:()=>Dg,SquareButton:()=>Rm,Strong:()=>Wg,Subhead:()=>Yg,Svg:()=>Pg,Text:()=>Fg,Textarea:()=>bm,TextareaWithButton:()=>xm,Theme:()=>Tg,Title:()=>Kg,Toggle:()=>mm,ToggleHgroup:()=>ym,Tooltip:()=>Nm,TooltipHidden:()=>jm,TooltipParent:()=>Bm,U:()=>Hg,Ul:()=>om,Underline:()=>qg,Video:()=>Ig,depth:()=>Is,getSystemGlobalTheme:()=>Cn});var Fc={};F(Fc,{Block:()=>dg,Flex:()=>gg,Grid:()=>yg,Gutter:()=>xg,Inline:()=>hg,InlineFlex:()=>mg,InlineGrid:()=>bg});var dg={display:"block"},hg={display:"inline"},gg={display:"flex"},mg={display:"inline-flex"},yg={display:"grid"},bg={display:"inline-grid"},xg={boxSize:"C1"};var Dc={};F(Dc,{Img:()=>Sg});P();var Sg={tag:"img",attr:{title:t=>t.title||t.alt,src:t=>{let e=Tt(t);return e&&e.src||t.src},srcset:t=>{let e=Tt(t);return(e?ns(e):"")||t.srcset}}};var Lc={};F(Lc,{Form:()=>_g});var _g={tag:"form"};var Mc={};F(Mc,{Iframe:()=>wg});var wg={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Nc={};F(Nc,{Clickable:()=>vg,Focusable:()=>Cg,FocusableComponent:()=>Ag,Hoverable:()=>kg});var Pw={appearance:"none",cursor:"pointer",fontFamily:"inherit"},kg={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}}},vg={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},Cg={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:t=>t.tabIndex}},Ag={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:Pw};var zc={};F(zc,{Picture:()=>Og});var Vc={};F(Vc,{Theme:()=>Tg,getSystemGlobalTheme:()=>Cn});var Bc={};F(Bc,{Circle:()=>Eg,SHAPES:()=>Ps,Shape:()=>jc,default:()=>Iw,depth:()=>Is});P();var Mt=A(),Is={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}`}},Ar=t=>tt(t.shapeDirectionColor)||tt(t.borderColor)||tt(t.backgroundColor)||tt(t.background),Rs=t=>{let e=Es.transition(t.transition,t);return e&&e.transition},Ps={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:t=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Ar(t),transition:Rs(t),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:t=>({position:"relative","&:before":{content:'""',display:"block",background:Ar(t),transition:Rs(t),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:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Ar(t),transition:Rs(t),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Rs(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Ar(t)} 25%, transparent 25%), linear-gradient(315deg, ${Ar(t)} 25%, transparent 25%)`},"&:after":{background:Ar(t),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)"}}}},jc={deps:{exec:Y,getSpacingBasedOnRatio:fe,getMediaColor:bt},classlist:{shape:t=>t.deps.exec(Ps[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Ps[t.shape+"Direction"];return t.shape&&e?e[t.shapeDirection||"left"]:null},shapeDirectionColor:t=>{let e={borderColor:t.deps.getMediaColor(t.background||t.backgroundColor)};return t.shapeDirection?e:null}}},Eg={round:"100%"},Iw=jc;P();var Cn=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},Tg={deps:{depth:Is},classlist:{depth:t=>!ht(t.depth)&&t.deps.depth[t.depth]}};var Og={deps:{getSystemGlobalTheme:Cn},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Cn},tag:"source",attr:{media:t=>{let{key:e,context:r,deps:n}=t,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(t),i=(t.media||e).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:(t,e)=>t.parent?.src||e.src}};var Uc={};F(Uc,{AssetPicture:()=>Rg});P();var Rg={tag:"picture",children:t=>{let e=Tt(t);if(e)return os(e,t.alt)}};var Wc={};F(Wc,{Svg:()=>Pg});var Pg={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!="function")return t.call("exec",t.html,t);let{designSystem:r,utils:n}=e,o=r&&r.svg,s=t.spriteId||r&&r.useSvgSprite,i=t.call("exec",t.src,t);if(!s&&i)return i;let a=p=>`<use xlink:href="#${p}" />`,c=t.spriteId;if(c)return a(c);if(o&&o[i])return a(i);let l=Symbol.for(i),f=o[l];if(f&&o[f])return a(f);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 u=0;for(let p=0;p<i.length;p++)u=(u<<5)-u+i.charCodeAt(p)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var Hc={};F(Hc,{Video:()=>Ig});P();var Ig={tag:"video",controls:!0,attr:{src:t=>{let e=Tt(t);return e&&e.src||t.src}},children:t=>{let e=Tt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var qc={};F(qc,{Audio:()=>$g});P();var $g={tag:"audio",controls:!0,attr:{src:t=>{let e=Tt(t);return e&&e.src||t.src}},children:t=>{let e=Tt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Gc={};F(Gc,{B:()=>Jg,Caption:()=>Ug,Data:()=>tm,Footnote:()=>Zg,H1:()=>Lg,H2:()=>Mg,H3:()=>Ng,H4:()=>jg,H5:()=>Bg,H6:()=>Vg,Headline:()=>Xg,I:()=>Qg,Italic:()=>Gg,P:()=>zg,Span:()=>Dg,Strong:()=>Wg,Subhead:()=>Yg,Text:()=>Fg,Title:()=>Kg,U:()=>Hg,Underline:()=>qg});var Fg={},Dg={tag:"span"},Lg={tag:"h1"},Mg={tag:"h2"},Ng={tag:"h3"},jg={tag:"h4"},Bg={tag:"h5"},Vg={tag:"h6"},zg={tag:"p"},Ug={tag:"caption"},Wg={tag:"strong",fontWeight:"700"},Hg={tag:"u"},qg={tag:"u"},Gg={tag:"i"},Kg={},Xg={tag:"h6",fontSize:"B",fontWeight:500},Yg={tag:"span",fontSize:"Z1"},Zg={tag:"span",fontSize:"Z"},Jg={tag:"b"},Qg={tag:"i"},tm={tag:"data"};var Kc={};F(Kc,{Box:()=>$s,Br:()=>rm,Hr:()=>em,Li:()=>nm,Ol:()=>sm,Ul:()=>om});var $w=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Lt(e,t,{unpack:!1});r.__class=n},$s={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:$w},em={tag:"hr",margin:"C1 0"},rm={tag:"br"},nm={tag:"li"},om={tag:"ul",childExtends:{extends:"Li"}},sm={tag:"ol",childExtends:{extends:"Li"}};var Xc={};F(Xc,{Hgroup:()=>am,HgroupButton:()=>lm,HgroupRows:()=>cm});var im=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let r=e.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},am={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:im,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:im,margin:"0",color:"paragraph"}},cm={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},lm={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Yc={};F(Yc,{Input:()=>fm});var fm={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:t=>t.pattern,minLength:t=>t.minlength,maxLength:t=>t.maxlength,name:t=>t.name,autocomplete:t=>t.autocomplete,placeholder:t=>t.placeholder,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.checked,t),disabled:t=>t.disabled||null,readonly:t=>t.readonly,required:t=>t.required,type:t=>t.type}};var Zc={};F(Zc,{NumberInput:()=>um});var um={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:t=>t.step,min:t=>t.min,max:t=>t.max}};var Jc={};F(Jc,{Checkbox:()=>pm,CheckboxHgroup:()=>dm});var pm={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:t=>t.call("exec",t.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"}}},dm={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Qc={};F(Qc,{Radio:()=>hm,RadioHgroup:()=>gm});var hm={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}},gm={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var tl={};F(tl,{Toggle:()=>mm,ToggleHgroup:()=>ym});var mm={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}},ym={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var el={};F(el,{Textarea:()=>bm,TextareaWithButton:()=>xm});var bm={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"}},xm={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 rl={};F(rl,{FileIcon:()=>wm,Icon:()=>Sm,IconText:()=>_m});var Sm={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,r)=>{let{parent:n}=t,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=x=>{let v=x[".isActive"];if(v)return x.call("exec",v.name||v.icon)},l=(x,v,O)=>{let{semanticIcons:R}=O&&O.designSystem,{toCamelCase:W}=O&&O.utils,T=f(x,v),V=W(T).split(/([a-z])([A-Z])/g),J=V[1]?V[0]:T.split(".")[0].split(" ")[0],M=R&&R[J];if(M){let I=T.includes(".")?"sfsymbols."+T.split(".").slice(1).join("."):"sfsymbols";return T=M[I]||M[T.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${T}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(x,v)=>{let{key:O}=x,R=x.call("exec",x.name||x.icon||O,x);return x.call("isString",R)&&R.includes("{{")&&(R=x.call("replaceLiteralsWithObjectFields",R)),x.call("isString",R)?R:O},u=f(t,e);if(u.includes(" ")){let x=u.split(" ");u=x[0]+x.slice(1).map(v=>v.charAt(0).toUpperCase()+v.slice(1)).join("")}let p=a(u),d=p.split(/([a-z])([A-Z])/g),h=l(t,e,r);if(h){Object.assign(t,h);return}let g;t.isActive&&(g=c(t));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=t.call("exec",m.icon||m.Icon.name||m.Icon.icon,t)),t.call("isString",g)&&g.includes("{{")&&(g=t.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[p]?y=p:o[d[0]+d[1]]?y=d[0]+d[1]:o[d[0]]?y=d[0]:i&&t.warn("Can't find icon:",u,y);let b=o[y],S=n&&n.src||t.src;Object.assign(t,{spriteId:s&&y,src:b||S||o.noIcon})},attr:{viewBox:"0 0 24 24"}},_m={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t;return t.call("exec",e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},wm={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var ul={};F(ul,{A:()=>Am,Link:()=>ll,RouteLink:()=>Em,RouterLink:()=>fl});var cl={};F(cl,{default:()=>Nw,getActiveRoute:()=>al,lastLevel:()=>Ds,lastPathname:()=>Fs,matchRoute:()=>ol,parseQuery:()=>sl,parseRoutePattern:()=>nl,router:()=>ee,runGuards:()=>il});P();var vm=/^:(.+)/,Cm=/^\*$/,km=new Map,nl=t=>{let e=km.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(vm);a?n.push({index:i,name:a[1]}):Cm.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return km.set(t,s),s},ol=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||"");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=nl(l),u=Fw(o,f);u>a&&(a=u,i=l,c=Dw(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},Fw=(t,e)=>{let{segments:r,hasWildcard:n}=e;if(!n&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let o=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])o+=3;else if(vm.test(r[i]))o+=1;else if(Cm.test(r[i]))o+=.5;else return-1;return o},Dw=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},sl=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((n,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(n)):e[o]=n}),e},il=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let n=await r(e);if(n===!1)return!1;if(typeof n=="string")return n}return!0},al=(t=0,e)=>{e||(e=typeof w<"u"?w.location.pathname:"/");let n=e.split("/")[t+1];if(n)return`/${n}`},Fs,Ds=0,Lw=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,Mw={level:Ds,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:X&&X.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},ee=async(t,e,r={},n={})=>{let o=e||void 0,s=o?.context?.window||w,i=o?.context?.document||X,a={...Mw,...o.context.routerOptions,...n};Ds=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let l=c.contentElementKey||a.contentElementKey||"content",f=s.location.origin!=="null"?s.location.origin:"http://localhost";t=Lw(t);let u=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new u(f+t),{pathname:d,search:h,hash:g}=p,m=sl(h),y=o.node,b=g&&g!==s.location.hash.slice(1),S=d!==Fs;Fs=d;let x,v,O,R;if(a.useParamsMatching){let T=ol(d,o.routes,a.level);x=T.key,v=T.routePath,O=T.content,R=T.params}else{x=al(a.level,d),v=x;let T=o.routes;O=T?T[x||"/"]||T["/*"]:null,R={}}let W=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!O){a.onNotFound?a.onNotFound({pathname:d,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",d,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let T={pathname:d,route:x,params:R,query:m,hash:g,element:o,state:r},L=await il(a.guards,T);if(L===!1)return;if(typeof L=="string")return ee(L,e,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,d+(h||"")+(g||""))}catch{}if(S||!b){let T={route:x,routePath:v,hash:g,debugging:!1};Object.keys(R).length&&(T.params=R),Object.keys(m).length&&(T.query=m),a.updateState&&o.state.update(T,{preventContentUpdate:!0}),l&&a.removeOldElement&&o[l].remove();let L=o.__ref?.origin?.content,V={};if(L)for(let M in L){let I=L[M];M==="__ref"||M==="props"||M==="node"||M==="parent"||M==="key"||(typeof I=="string"||typeof I=="number"||typeof I=="boolean"||typeof I=="object"&&I!==null&&!I.node&&!I.__ref)&&(V[M]=I)}let J={...V,...typeof O=="object"?O:{extends:O}};a.useFragment&&(J.tag="fragment");try{o.set(J,{contentElementKey:l})}catch(M){console.error("[smbls/router] failed to render route content",d,M)}}if(a.scrollToTop&&W?.scrollTo&&W.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&O[l]?.node?.scrollTo&&O[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let T=i.getElementById(g);if(T&&W?.scrollTo){let L=T.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);W.scrollTo({...a.scrollToOptions||{},top:L,left:0})}}Be("routeChanged",o,a)},Nw=ee;var jw=(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",o,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:u}=n,p=e.__ref.root,d=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&&!d){t.preventDefault();try{let h=p;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=p;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,p.routes&&(h.routes=p.routes))}(f.router||l.router||c.router||ee)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(h){console.warn(h)}}},ll={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Ye(t,t.href)||Ye(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:jw},Am={extends:"Link"},fl={onClick:(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",o,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:u}=n,p=e.__ref.root,d=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&&!d){t.preventDefault();try{let h=p;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=p;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,p.routes&&(h.routes=p.routes))}(f.router||l.router||c.router||ee)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(h){console.warn(h)}}}},Em={extends:[ll,fl]};var pl={};F(pl,{Select:()=>Tm});var Tm={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:t=>t.value,selected:t=>t.selected,disabled:t=>t.disabled}},attr:{name:t=>t.name,disabled:t=>t.disabled,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var dl={};F(dl,{Button:()=>Om,ButtonSet:()=>$m,CircleButton:()=>Pm,IconButton:()=>Fm,KangorooButton:()=>Im,SquareButton:()=>Rm});var Om={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:t=>t.call("exec",t.disabled)},Rm={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"},Pm={extends:"SquareButton",round:"C"},Im={extends:"Button",childExtends:"IconText"},$m={tag:"nav",display:"flex",childExtends:"SquareButton"},Fm={extends:["SquareButton","ClickableItem"],round:"Z"};var hl={};F(hl,{Dialog:()=>Dm,DialogFooter:()=>Mm,DialogHeader:()=>Lm});var Dm={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Lm={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Mm={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 gl={};F(gl,{Tooltip:()=>Nm,TooltipHidden:()=>jm,TooltipParent:()=>Bm});P();var Nm={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:t=>vt(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},jm={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)}},Bm={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var ml={};F(ml,{Avatar:()=>Vm});var Vm={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.avatarType||"initials"}/svg?seed=${t.key||"no-avatar"}`};var yl={};F(yl,{Range:()=>zm});var zm={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,r)=>{e.call("isFunction",e.onInput)?e.onInput(t,e,r):r.update({value:parseFloat(e.node.value)})},onChange:(t,e,r)=>{e.call("isFunction",e.onChange)?e.onChange(t,e,r):r.update({value:parseFloat(e.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:ss("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ss("#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:(t,e,r)=>{let n=t.call("exec",t[e],t);return(t.call("isFunction",n)?n(t,t.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var bl={};F(bl,{Dropdown:()=>Um,DropdownList:()=>Wm,DropdownParent:()=>Hm,DropdownParentFocus:()=>qm,DropdownSiblingFocus:()=>Gm});var Um={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"},Wm={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:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,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:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Hm={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},qm={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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Gm={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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var xl={};F(xl,{Notification:()=>Km});var Km={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 Er=Object.assign({},Fc,Dc,Lc,Mc,Nc,zc,Uc,Wc,Bc,Hc,qc,Vc,Gc,Kc,Xc,Yc,Zc,Jc,Qc,tl,el,rl,ul,pl,dl,hl,gl,ml,yl,bl,xl);function Ls(t){if(t==null)return 0;if(typeof t!="object")return Xm(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let n=0;n<t.length;n++)e=(e^Ls(t[n]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let n=0;n<r.length;n++)e=(e^Xm(r[n]))*16777619,e=(e^Ls(t[r[n]]))*16777619;return e>>>0}function Xm(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function Ms(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!="object")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!Ms(t[o],e[o]))return!1;return!0}let r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(e,s)||!Ms(t[s],e[s]))return!1}return!0}function Sl(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!="object"||Array.isArray(e))return e;if(typeof t!="object"||Array.isArray(t))return{...e};let r=!1,n={};for(let o in t)if(o in e){let s=Sl(t[o],e[o]);n[o]=s,s!==t[o]&&(r=!0)}else n[o]=t[o];for(let o in e)o in t||(n[o]=e[o],r=!0);return r?n:t}function _l(t,e,r){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(r||(r=new WeakSet),r.has(e))return t;r.add(e);for(let n in e){let o=e[n];o&&typeof o=="object"&&!Array.isArray(o)&&t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?_l(t[n],o,r):t[n]=o}return t}function Ce(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function Tr(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function En(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Ce(e)}function Ym(t){return t.split(`
69
68
  `).map(Ce).join(`
70
- `)}var Ym={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 Zm(t,e){let r=Ym[t]||Ce(t),n=En(e),o=`_${r}-${n}`,s=Tr(t),i=`.${o}{${s}: ${e}}`;return`${o}
71
- ${i}`}var Jm=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function Qm(t){let e=t.split("\0"),r=[],n=[];for(let o=0;o+1<e.length;o+=2){let s=e[o],i=e[o+1];if(!i||Jm(i))continue;let a=Ym[s]||Ce(s),c=En(i),l=`_${a}-${c}`,f=Tr(s);r.push(l),n.push(`.${l}{${f}:${i}}`)}return r.join(" ")+"\0"+n.join(`
72
- `)}function ty(t,e){let r=t+e,n=`_c${Ce(r)}`,o=e.split("\0"),s="";for(let a=0;a+1<o.length;a+=2){let c=o[a],l=o[a+1];l&&(Jm(l)||(s+=`${Tr(c)}:${l};`))}let i;if(t.startsWith("@media"))i=`${t}{.${n}{${s}}}`;else if(t.startsWith(":")||t.startsWith("&")){let a=t.startsWith("&")?t.slice(1):t;i=`.${n}${a}{${s}}`}else t.includes("&")?i=`${t.replace("&",`.${n}`)}{${s}}`:i=`.${n} ${t}{${s}}`;return`${n}
73
- ${i}`}var wl=null;function kl(t){wl=t}var qt={structuralHash:Ls,deepEqual:Ms,mergeStructural:Sl,overwriteDeep:_l,shortHash:Ce,toKebab:Tr,sanitizeValue:En,batchShortHash:Xm,atomicCssClass:Zm,batchAtomicCss:Qm,compoundCssClass:ty},ey=!1,Ns=null;function Uw(t){return Ns||(Ns=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(qt.structuralHash=e.structuralHash),e.deepEqual&&(qt.deepEqual=e.deepEqual),e.mergeStructural&&(qt.mergeStructural=e.mergeStructural),e.overwriteDeep&&(qt.overwriteDeep=e.overwriteDeep),e.shortHash&&(qt.shortHash=e.shortHash),e.toKebab&&(qt.toKebab=e.toKebab),e.sanitizeValue&&(qt.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(qt.batchShortHash=e.batchShortHash),e.atomicCssClass&&(qt.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(qt.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(qt.compoundCssClass=e.compoundCssClass),ey=!0,wl&&e.batchAtomicCss&&wl({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Ns)}function Ww(){return ey}P();var Tn={};F(Tn,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>Uf,DOMQ_PROPERTIES:()=>Fe,ENV:()=>au,HTML_TAGS:()=>rn,METHODS:()=>Jr,METHODS_EXL:()=>oo,NODE_ENV:()=>Kt,OPTIONS:()=>Ro,PACKAGE_MANAGER_TO_CDN:()=>Ue,PARSED_DOMQ_PROPERTIES:()=>no,PROPS_METHODS:()=>Le,STATE_METHODS:()=>De,STATE_PROPERTIES:()=>zf,SVG_TAGS:()=>Tu,TYPES:()=>Jn,UNIVERSAL_RESERVED_KEYS:()=>va,addCaching:()=>na,addContext:()=>ra,addExtend:()=>Du,addExtends:()=>Et,addItemAfterEveryElement:()=>Of,addProtoToArray:()=>eo,addRef:()=>Qi,applyCSS:()=>oy,applyDependentState:()=>np,applyEvent:()=>la,applyEventUpdate:()=>fa,applyExtends:()=>Mu,applyProps:()=>vo,arrayContainsOtherArray:()=>wf,arraysEqual:()=>Pf,arrayzeValue:()=>fr,buildImgSrcset:()=>ns,buildSourcesAndImg:()=>os,cache:()=>fp,call:()=>Vp,captureSnapshot:()=>Hp,checkForStateTypes:()=>Qu,checkIfInherits:()=>ca,checkIfStringIsInArray:()=>Ff,clone:()=>Gf,cloneAndMergeArrayExtend:()=>go,cloneFunction:()=>gu,concatAddExtends:()=>Pu,copyJavaScriptToClipboard:()=>Cd,copyStringToClipboard:()=>vd,createBasedOnType:()=>Ji,createElement:()=>Zu,createElementExtends:()=>Mi,createExtends:()=>yo,createExtendsFromKeys:()=>nn,createExtendsStack:()=>Vi,createIfConditionFlag:()=>mu,createInheritedState:()=>tp,createKey:()=>uo,createNestedObject:()=>tu,createNestedObjectByKeyPath:()=>rp,createObjectWithoutPrototype:()=>Ti,createParent:()=>ta,createPath:()=>ea,createProps:()=>Co,createPropsStack:()=>Xi,createRoot:()=>Yu,createScope:()=>ip,createSnapshotId:()=>fo,customDecodeURIComponent:()=>Vf,customEncodeURIComponent:()=>Bf,cutArrayAfterValue:()=>Ef,cutArrayBeforeValue:()=>Af,debounce:()=>ho,debounceOnContext:()=>pu,decodeNewlines:()=>jf,deepClone:()=>J,deepContains:()=>Jf,deepDefaults:()=>Qo,deepDestringifyFunctions:()=>Bt,deepExtend:()=>Li,deepMerge:()=>q,deepMergeExtends:()=>ae,deepStringifyFunctions:()=>so,defineSetter:()=>jp,destringifyGlobalScope:()=>ao,detectHeightOnInit:()=>ed,detectInfiniteLoop:()=>ou,document:()=>X,encodeNewlines:()=>Nf,error:()=>lr,excludeKeysFromObject:()=>iu,exec:()=>Y,extendCachedRegistry:()=>Iu,extendStackRegistry:()=>bo,extractArrayExtend:()=>So,fetchLibraryData:()=>Aa,fibonacciNumberByIndex:()=>nd,filterArrays:()=>If,filterArraysFast:()=>$f,finalizeExtends:()=>zi,findClosestNumber:()=>Ca,findClosestNumberInFactory:()=>bd,findInheritedState:()=>aa,findKeyPosition:()=>Lf,flattenExtend:()=>on,formatDate:()=>Qp,generateHash:()=>$i,generateKey:()=>lo,generateMetaTags:()=>gd,get:()=>Dp,getActiveRoute:()=>al,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>Nu,getCdnProviderFromConfig:()=>gn,getChildStateInKey:()=>ia,getChildren:()=>No,getContext:()=>Ho,getCookie:()=>ku,getDB:()=>Yo,getEmotionStylesheet:()=>Rd,getExtendsInElement:()=>Lu,getExtendsStack:()=>mo,getExtendsStackRegistry:()=>Di,getFrequencyInArray:()=>kf,getHashedExtend:()=>xo,getImportMapScript:()=>Zp,getInObjectByPath:()=>nu,getLocalStorage:()=>Cu,getNev:()=>uu,getPageMetadata:()=>md,getParentStateInKey:()=>sa,getPath:()=>jo,getQuery:()=>Zo,getRef:()=>Mp,getRoot:()=>zo,getRootContext:()=>Wo,getRootData:()=>Uo,getRootState:()=>Vo,getRootStateInKey:()=>oa,getSpreadChildren:()=>ju,global:()=>xf,hasFunction:()=>Qr,hasHandlerPlugin:()=>tn,hasOwnProperty:()=>Xf,inheritChildExtends:()=>ji,inheritChildPropsExtends:()=>Ni,inheritParentProps:()=>Ao,inheritRecursiveChildExtends:()=>Bi,init:()=>Ae,initProps:()=>Gu,is:()=>Ct,isArray:()=>T,isBoolean:()=>ki,isContextComponent:()=>Bu,isCyclic:()=>su,isDOMNode:()=>kt,isDate:()=>Ci,isDefined:()=>vt,isDevelopment:()=>je,isEmpty:()=>Ai,isEmptyObject:()=>Yf,isEqualDeep:()=>Ei,isFunction:()=>C,isHtmlElement:()=>Zn,isLocal:()=>fu,isMethod:()=>Up,isMobile:()=>_u,isNode:()=>he,isNot:()=>_f,isNotProduction:()=>ir,isNull:()=>vi,isNumber:()=>se,isObject:()=>_,isObjectLike:()=>N,isPhoto:()=>sd,isProduction:()=>Ne,isStaging:()=>lu,isState:()=>ep,isString:()=>k,isStringFunction:()=>hu,isTest:()=>Oi,isTesting:()=>cu,isUndefined:()=>ht,isUniversallyReservedKey:()=>Gp,isValidHtmlTag:()=>Ou,joinArrays:()=>Kr,jointStacks:()=>Fu,keys:()=>wa,lastLevel:()=>Ds,lastPathname:()=>Fs,loadCssFile:()=>fd,loadJavascript:()=>ud,loadJavascriptFile:()=>ad,loadJavascriptFileEmbedSync:()=>ld,loadJavascriptFileSync:()=>cd,loadRemoteCSS:()=>pd,loadRemoteScript:()=>mn,log:()=>Bp,logGroupIf:()=>xu,logIf:()=>bu,lookdown:()=>Ip,lookdownAll:()=>$p,lookup:()=>Pp,lowercaseFirstLetter:()=>nr,makeObjectWithoutPrototype:()=>Zf,map:()=>Hf,mapStringsWithContextComponents:()=>_o,matchRoute:()=>ol,matchesComponentNaming:()=>ce,memoize:()=>du,merge:()=>et,mergeSharedLibraries:()=>ts,nextElement:()=>Go,normalizeLibraryKey:()=>yn,objectToString:()=>io,objectizeStringProperty:()=>ko,overwrite:()=>co,overwriteDeep:()=>At,overwriteShallow:()=>sr,overwriteState:()=>op,parse:()=>ka,parseDeep:()=>Lo,parseQuery:()=>sl,parseRoutePattern:()=>nl,pickupElementFromProps:()=>qi,pickupPropsFromElement:()=>Hi,previousElement:()=>Ko,propExists:()=>qu,propertizeElement:()=>Gi,propertizeUpdate:()=>Hu,reinit:()=>ny,remove:()=>Fp,removeChars:()=>Ad,removeCookie:()=>vu,removeDuplicateProps:()=>To,removeDuplicatesInArray:()=>Xr,removeFromArray:()=>vf,removeFromObject:()=>Qf,removeNestedKeyByPath:()=>eu,removeValueFromArray:()=>to,removeValueFromArrayAll:()=>Tf,reorderArrayByValues:()=>Rf,replaceLiteralsWithObjectFields:()=>rr,replaceOctalEscapeSequences:()=>Mf,resolveAsset:()=>Tt,resolveHandler:()=>en,resolveSharedLibraries:()=>wd,returnValueAsText:()=>Zi,router:()=>re,runGuards:()=>il,runPluginHook:()=>Xt,scratchSystem:()=>gs,scratchUtils:()=>gr,self:()=>Sf,set:()=>kn,setActiveRootState:()=>Bo,setCookie:()=>wu,setHashedExtend:()=>Fi,setInObjectByPath:()=>ru,setLocalStorage:()=>Au,setNodeStyles:()=>_a,setProps:()=>Lp,setPropsPrototype:()=>Eo,spotByPath:()=>Mo,srcsetFor:()=>bn,stringIncludesAny:()=>ro,stringToObject:()=>Kf,swapItemsInArray:()=>Cf,syncProps:()=>Oo,toCamelCase:()=>es,toDashCase:()=>rs,toDescriptionCase:()=>Td,toTitleCase:()=>Ed,toggleFullscreen:()=>Xp,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>lp,trimStringFromSymbols:()=>Df,unstackArrayOfObjects:()=>Qn,update:()=>Ki,updateProps:()=>Ku,variables:()=>Xo,verbose:()=>hn,warn:()=>qo,window:()=>w});P();P();var Hw=A(),ry=(t=Hw,e)=>{let r=_(e.localFile)?e.localFile:{},n=J(r.designSystem||{});return q(t,n)},qw={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Ae=(t,e=qw)=>{let r=ry(t||{},e),n=e.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=e.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=kn({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:s,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...r},{newConfig:e.newConfig,config:e.config});i&&(i.scopeSelector=n);let a=Ta(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,u=i.useSvgSprite,p=t.svg,d=i.useIconSprite,h=t.icons;if(f&&ct(a),l&&(ct({[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];ct(m)}c&&ct(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];ct(m)}return(p||u)&&oc(i.svg,{document:e.document}),(h||d)&&ic(i.icons,{document:e.document}),i},js={},ny=(t,e=js)=>{let r=ry(t||{},e),n=e.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=kn({verbose:!1,...r});if(!e.preventInject){if(ct({[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];ct(i)}ct(s.reset)}return s},oy=(t,e=js)=>{ct(t)},uI=(t,e=js)=>{let r=e.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(ct({[r]:t.CSS_VARS}),t.CSS_MEDIA_VARS){let o={};for(let s in t.CSS_MEDIA_VARS)s.startsWith("@media")?o[s]={[n]:t.CSS_MEDIA_VARS[s]}:o[s]=t.CSS_MEDIA_VARS[s];ct(o)}};var pI=(t,e=js)=>{};P();var sy=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,vl={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},On=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),n=t;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},iy=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=vl:e.router=et(e.router||{},vl);let r=e.router,n=async(s,i)=>{let a=s.context?.window||w;if(!a.location)return;let{pathname:c,search:l,hash:f}=a.location;c=sy(c);let u=c+l+f,p=s;if(r.customRouterElement){let d=On(s,r.customRouterElement);d&&(p=d,s.routes&&(p.routes=s.routes))}p.routes&&await re(u,p,{},{initialRender:!0,pushState:!1})},o=!ht(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.onRenderRouter=n),Gw(e,r),r},Cl=(t,e)=>{if(e.router===!1)return;let r=e.router||vl;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:re,o=e.window||w,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=sy(a);let f=a+c+l,u=t;if(r.customRouterElement){let p=On(t,r.customRouterElement);p&&(u=p,t.routes&&(u.routes=t.routes))}await u.call("router",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>o.removeEventListener("popstate",s))},Gw=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return q(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};P();var Al=w&&w.location?w.location.host.includes("dev."):je(),ay=Al?"http://localhost:8080/get":"https://api.symbols.app/get",Kw={endpoint:ay},cy=async(t,e=Kw)=>{let r=e.endpoint||ay,n=e.serviceRoute?T(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(C(e.onError))return e.onError(s);console.error(s)}},Xw=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await cy(t,r),o=Al||e.isDevelopment?Bt(n):Bt(n.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{At(e[s],o[s.toLowerCase()])}):At(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{At(e[s],o[s.toLowerCase()])})}return e},Yw=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await cy(t,n),s=Al||e.isDevelopment?Bt(o):Bt(o.releases[0]);r(s)}},ly=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await Xw(t,e)}catch(r){console.error(r)}},fy=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&Yw(e,r,n||(o=>{let s=o.designSystem;_(s)&&r.utils.init(s),_(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var Bs=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let r of e.__teardowns)try{r()}catch(n){console.error("[smbls] destroy teardown error:",n)}e.__teardowns.length=0}try{kr(t)}catch(r){console.error("[smbls] dispose error:",r)}if(e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.fetch&&e.fetch.__resolving&&delete e.fetch.__resolving,e.db&&e.db.__resolved&&delete e.db.__resolved,e.db&&e.db.__resolving&&delete e.db.__resolving,e.analyze?.destroy)try{e.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return t.__destroyed=!0,!0};P();var Zw={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"}},Jw=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key)return`${t.tag}[${t.attr}="${t.key}"]`},Vs=(t,e,r)=>{if(!t)return{};let n=C(t)?Y(t,e,r):{...t};if(!_(n))return{};for(let o in n){let s=n[o];C(s)&&(s=Y(s,e,r)),k(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var Qw=(t,e)=>{let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),(e.head||e.querySelector("head")).appendChild(r),r},zs=(t,e)=>{if(!(!_(t)||!e))for(let r in t){let n=t[r];if(n==null)continue;let o=Zw[r];if(!o)continue;let s=Jw(o),i=e.querySelector(s)||Qw(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var uy={name:"helmet",create(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Vs(e,t,t.state);zs(n,r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Vs(e,t,t.state);zs(n,r)}};ze();var py=(t,e,r,n)=>{t&&pn(t,e,r,n)},dy=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Vs(t,e,r);zs(o,n)},hy=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},n=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(n):await n(),r},Rn={routes:t=>t,metadata:dy,fetch:py,$router:hy},t0=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=dy),t.fetch!==!1&&(e.fetch=py),t.router!==!1&&(e.$router=hy),e};var gy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},El={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Us={...gy,router:El},e0={state:{},pages:{},components:{},router:El,define:Rn},Ee=e0;P();P();var my=(t,e)=>N(t.extends)?t.extends:[];P();var Sy=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;t.document=t.document||r;let n=t.window;return n&&n!==e&&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"),t.window=e):t.window=n||e,t.window},yy=(t="smbls")=>{let e={};for(let r in Er)Object.prototype.hasOwnProperty.call(Er,r)&&(ce(r)?e[`smbls.${r}`]=Er[r]:e[r]=Er[r]);return e},_y=t=>t.components?{...yy(),...t.components}:yy(),wy=t=>({...Tn,...cl,...gr,...t.utils,...t.snippets,...t.functions}),ky=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),by={},vy=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Ue[s]||gn(i)||"esmsh"),!t)return null;let a=!1;for(let c in t){a=!0;break}if(!a)return null;for(let c in t){let l=t[c];if(e&&e[c])continue;let f=je()&&n?`?${Math.random()}`:"",u=Jt(c,l,o)+f;try{if(by[c])continue;by[c]=!0,await Promise.race([mn(u,{document:r,type:"module"}),new Promise((p,d)=>setTimeout(()=>d(new Error(`Timeout loading ${c}`)),1e4))])}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=Jt(c,l,"symbols")+f;await Promise.race([mn(d,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${c}`)),2e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},Cy=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||gn(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]){let p=je()?`?${Math.random()}`:"";if(l&&l[a]){let d=l[a],h=Jt(a,d,c)+p;try{await i.utils.loadRemoteScript(h,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let m=Jt(a,d,"symbols")+p;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let d=Jt(a,"latest",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let g=Jt(a,"latest","symbols")+p;await i.utils.loadRemoteScript(g,{window:u,document:f})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};r.packages?r.packages=et(r.packages,t):r.packages=t,r.require||(e.utils.require=await o(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},r0=/\s+/g,Ay=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,n0=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${Ay(o,e)}`)}return r},o0=(t,e,r)=>{if(!t)return;let{key:n}=e;t===!0&&(t=e.classlist={key:n}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=n0(t,e));let o=t.replace(r0," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},s0=()=>(t,e,r)=>{let n=Ay(t,e);if(t){let{__ref:o}=e;o.__class.style=n}Ey()(e.classlist,e,e.state,!0)},Ey=()=>(t,e,r,n)=>{if(e.style&&!n)return;let{__ref:o}=e,{__class:s,__classNames:i}=o;if(!(t===null||typeof t!="object"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c=="string"||typeof c=="number"?l=c:typeof c=="boolean"?l=e.key:l=Xe(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&o0(i,e,e.node)}},i0=()=>({style:s0(),classlist:Ey()}),a0=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],xy=!1,Ty=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,n=e.initOptions||{},o=e.registry||i0(),s=e.designSystem?q(J(e.designSystem),Os):J(Os),i={};for(let d of a0)e[d]!==void 0&&(i[d]=e[d]);let a,c=xy&&!e.skipDesignSystemInit,l=c?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=l;let f=l===":root"?":root:not([data-theme])":`${l}:not([data-theme])`;if(e.skipDesignSystemInit){if(a=A(t)||A(),a&&(a.document=r),a?.CSS_VARS){pt(a);try{if(ct({[l]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let d={};for(let h in a.CSS_MEDIA_VARS)h.startsWith("@media")?d[h]={[f]:a.CSS_MEDIA_VARS[h]}:d[h]=a.CSS_MEDIA_VARS[h];ct(d)}}finally{at()}}}else if(c){let d=Gd(t,s,{cleanBase:!0});for(let g in i)d[g]=i[g];d.document=r;let h=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=h,d.varPrefix=h,pt(d);try{a=Ae(d,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...Us,...i,...n})}finally{at()}}else{let d=A();d&&(d.document=r),a=Ae(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...Us,...i,...n}),a&&a!==d&&(a.document=r),xy=!0}let u=a?.CONFIG||a,p=u?.font;if(p){pt(u);try{for(let d in p){let h=p[d];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")&&ct(`@font-face { ${m} }`)}}finally{at()}}return[a,o]},Oy=(t,e)=>{let r={};e.state&&q(r,e.state),t&&t.state&&q(r,t.state);let n=e.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 c in i)r[c]=i[c];let a=new Set(n.languages||[]);for(let c in n.translations)!a.has(c)&&r[c]===void 0&&(r[c]=n.translations[c])}return r.isRootState=!0,J(r)},Ry=(t,e)=>{_(t.routes)&&_(e.pages)&&et(t.routes,e.pages);let r=t.routes||e.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},Py=t=>{ts(t,t.sharedLibraries)};P();var $y="smbls_lang",c0="smbls_t_",l0="smbls_tv_",Or={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},Pn={};function Hs(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function Tl(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Ws=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),n=t;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},Iy=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=Ws(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function Ol(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=Iy(s,t,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=Ws(l,t);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[o];if(l){let f=Ws(l,t);if(f!==void 0)return f}}let c=n?.defaultLang||"en";if(s){let l=Iy(s,t,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=Ws(l,t);if(f!==void 0)return f}}return t}async function Rl(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||c0,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):l0);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=Or.get(o+t);if(c)try{let l=JSON.parse(c),f={translations:{...n.translations||{}}};f.translations[t]=l,n.update&&n.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(r.storagePrefix||"smbls")+":"+t;if(Pn[i])return Pn[i];let a=this;return Pn[i]=(async()=>{try{let c=r.fetch,l=parseInt(Or.get(s+t),10)||0,f,u,p;if(C(c)){let h=await c(t,l,a);if(!h||h.changed===!1)return;f=h.translations||h.data||h,u=h.version||0,p=!0}else if(_(c)){let h=a.getDB||(()=>e.fetch),g=C(h)?await h.call(a):e.fetch;if(!g)return;let m=c.rpc||c.from||"get_translations_if_changed",y={p_lang:t,p_cached_version:l,...c.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,b.error;let S=b.data;if(!S||!S.changed)return;f=S.translations||{},u=S.version||0,p=!0}else return;if(!p||!f)return;Or.set(o+t,JSON.stringify(f)),u&&Or.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=f,n.update&&n.update(d)}catch(c){if(r.verbose!==!1){let l=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",t,"-",l)}}finally{delete Pn[i]}})(),Pn[i]}async function Pl(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call("getActiveLang")===t)return;let o=r?.storageLangKey||$y;Or.set(o,t),r?.fetch&&await this.call("loadTranslations",t),e?.state&&(e.state.lang=t);let s=r?.translations?.[t],i={lang:t};if(s&&typeof s=="object")for(let c in s){let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}if(n.update&&n.update(i),s&&typeof s=="object")for(let c in s){let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&n[c]&&typeof n[c]=="object"&&!Array.isArray(n[c]))for(let f in l)n[c][f]=l[f]}let a=this?.context?.document||globalThis.document;if(a&&s){let c=a.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let u=f.__ref?.__exec?.text;if(typeof u=="string"&&u.includes("{{"))try{let p=f.call("replaceLiteralsWithObjectFields",u,f.state);p!=null&&l.textContent!==p&&(l.textContent=p)}catch{}}}}async function Il(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&_(o.fetch)){let i=this.getDB||(()=>n.fetch),a=C(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(l?.error)throw l.error;return l.data}}async function Fy(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let n=e.storageLangKey||$y,s=Or.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function $l(t){try{let e=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",o=this?.state;if(!o)return"";let s=t.lastIndexOf(".");if(s===-1)return o[t+n]??"";let i=t.substring(0,s).split("."),a=o;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+n]??""}catch{return""}}var Fl={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Fy.call(t))}};var qs={polyglot:Ol,getLocalStateLang:$l,getActiveLang:Hs,getLang:Hs,setLang:Pl,getLanguages:Tl,loadTranslations:Rl,upsertTranslation:Il};ze();var Gs={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}},Ks=t=>parseFloat(t.toFixed(4)),f0=(t,e,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(o),l=n+c+s,f=r!==void 0?r:l/i*t,u=f/t,p=l/i,d=(n-a+s/2)/i-(u-p)/2,h=(c+s/2)/i-(u-p)/2;return{fontSize:`${Ks(t/16)}rem`,lineHeight:`${Ks(f)}px`,capHeightTrim:`${Ks(-d)}em`,baselineTrim:`${Ks(-h)}em`}},u0=(t,e)=>{if(typeof t=="number")return t;let r=e?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(t).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(t);return isNaN(o)?null:typeof t=="string"&&t.endsWith("rem")?o*(r.typography?.browserDefault||16):o},p0=(t,e)=>{let n=e?.designSystem?.font_family||{};if(t){let s=n[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(Gs[i])return Gs[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(Gs[a])return Gs[a]}}return null},Dy=(t,e,r,n)=>{if(!t)return;let o=u0(e.fontSize,n);if(!o)return;let s=p0(e.fontFamily,n);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=f0(o,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},Ly={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}};var In={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"},Nt=Object.create(null);for(let t in In)Nt[In[t]]=t;var Dl=Object.create(null);for(let t in In){let e=In[t];if(Dl[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${Dl[e]}"`);Dl[e]=t}var Te=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function $n(t){return/^[A-Z]/.test(t)}function Fn(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function d0(t){return t.trim().split(/\s+/).filter(Boolean)}function My(t){return t.replace(/_/g," ")}function h0(t){if(!t||typeof t!="string")return{};let e={},r=d0(t);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),l=Nt[c]||c;e[l]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=Nt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Nt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(My);continue}e[a]=My(i)}return e}function Dn(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Dn(r):r});let e={};for(let r in t){let n=t[r];if($n(r)){e[r]=Ll(n);continue}let o=Nt[r]||r;if(Fn(r)&&o===r){e[r]=Ll(n);continue}if(Te.has(o)||Te.has(r)){e[o]=n;continue}e[o]=Ll(n)}return e}function Ll(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Dn(e):e}):typeof t=="object"?Dn(t):t}function Ln(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Ln(r):r});let e={};if(typeof t.in=="string"){let r=h0(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r==="in")continue;let n=t[r];if($n(r)){e[r]=Ml(n);continue}let o=Nt[r]||r;if(Fn(r)&&o===r){e[r]=Ml(n);continue}if(Te.has(o)||Te.has(r)){e[o]=n;continue}e[o]=Ml(n)}return e}function Ml(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ln(e):e}):typeof t=="object"?Ln(t):t}function g0(t){let e="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){let n=t[r+1];if(n===","||n==="_"||n==="\\"){e+=n,r+=2;continue}}t[r]==="_"?e+=" ":e+=t[r],r++}return e}function m0(t){let e=[],r="",n=0;for(;n<t.length;){if(t[n]==="\\"&&n+1<t.length){r+=t[n]+t[n+1],n+=2;continue}if(t[n]===","){e.push(r),r="",n++;continue}r+=t[n],n++}return e.push(r),e}function Ny(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):g0(t)}function Nl(t){if(!t||typeof t!="string")return{};let e={},r=t.trim().split(/\s+/).filter(Boolean);for(let n of r){if(n.startsWith("!")){let l=n.slice(1),f=Nt[l]||l;e[f]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=Nt[n]||n;e[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Nt[s]||s,c=m0(i);if(c.length>1){e[a]=c.map(Ny);continue}e[a]=Ny(i)}return e}function Mn(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Mn(r):r});let e={};if(typeof t.in=="string"){let r=Nl(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r==="in")continue;let n=t[r];if($n(r)){typeof n=="string"?e[r]=Nl(n):e[r]=jl(n);continue}let o=Nt[r]||r;if(Fn(r)&&o===r){typeof n=="string"?e[r]=Nl(n):e[r]=jl(n);continue}if(Te.has(o)||Te.has(r)){e[o]=n;continue}e[o]=jl(n)}return e}function jl(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Mn(e):e}):typeof t=="object"?Mn(t):t}var y0={shorten:Dn,stringify:Ln,stringifyFurther:Mn};function b0(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(n=>e(n));let r={};for(let n in t){let o=t[n];r[n]=o&&typeof o=="object"?e(o):o}return r}var x0=["components","pages","snippets"],Xs={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let n=y0[e===!0?"shorten":e];if(n){for(let o of x0)t[o]&&(t[o]=b0(t[o],n));t.app&&typeof t.app=="object"&&(t.app=n(t.app))}}};var S0=0,_0=()=>`${Date.now().toString(36)}-${(S0++).toString(36)}`,U=(t,e,r={})=>({id:_0(),ts:Date.now(),type:t,level:e,...r}),w0=t=>{let e=[],r=t,n=0;for(;r&&n<32;)r.key!=null&&e.unshift(String(r.key)),r=r.parent,n++;return e.join(" > ")},Rr=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:w0(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Pr=t=>t?.context?.analyze,k0={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"}},v0=(t,{category:e,type:r,level:n})=>o=>{let s=Pr(o);!s||!s.shouldCapture(e)||s.emit(U(r,n,{hook:t,element:Rr(o)}))},jy=t=>(e,r)=>{let n=Pr(e);!n||!n.shouldCapture("state")||n.emit(U("state","debug",{hook:t,element:Rr(e),changedKeys:r?.changedKeys||null}))},Nn={name:"analyze",error(t,e){let r=Pr(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=e?.error||e?.err||(e instanceof Error?e:null);r.emit(U("error","error",{hook:e?.hook||"error",element:Rr(t),error:n,message:n?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Pr(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(U("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Pr(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Pr(t);if(!e||!e.shouldCapture("updates"))return;let r=null;t.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(U("update","debug",{hook:"update",element:Rr(t),durationMs:r}))},beforeStateUpdate:jy("beforeStateUpdate"),stateUpdate:jy("stateUpdate")};for(let[t,e]of Object.entries(k0))Nn[t]=v0(t,e);P();var Ys={error:0,warn:1,info:2,debug:3,trace:4};var Bl=(t,e)=>{let r=Ys[t],n=Ys[e];return r==null||n==null?!0:r<=n},Zs=t=>Ys[t]!=null?t:"warn";P();var Js=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var C0=(t,e)=>{for(let r of e)if(r instanceof RegExp){if(r.test(t))return!0}else if(typeof r=="string"&&t.toLowerCase().includes(r.toLowerCase()))return!0;return!1},A0=(t,e)=>{if(e!=="redact"){if(e==="hash"){let r=0,n=String(t);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},Vl=(t,e,r,n)=>{if(n>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>Vl(s,e,r,n+1));let o={};for(let s of Object.keys(t))if(C0(s,e)||Js.test(s)){let a=A0(t[s],r);a!==void 0&&(o[s]=a)}else o[s]=Vl(t[s],e,r,n+1);return o},zl=(t=[],e="mask")=>{let r=Array.isArray(t)?t:[t];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:p,target:d,...h}=n,g=Vl(h,r,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:p,target:d,...g}}};var By=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,n=t.config.buildHash||null,o=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=w,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:o,build:n,route:i},meta:{ua:r,viewport:c}}}},Vy=()=>t=>{if(!t)return t;if(t.element&&typeof t.element=="object"){let e=t.element;(e.node||e.parent||e.__ref)&&(t={...t,element:{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,tag:e.tag||null,component:e.component||null}})}return t.error instanceof Error&&(t={...t,error:{name:t.error.name,message:t.error.message,stack:t.error.stack}}),t},zy=(t=1e3,e=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<t)return null;if(r.set(o,i),r.size>e){let a=Math.ceil(e/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return n}},Uy=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},Wy={redact:t=>zl(t.config.redact||[],t.config.maskStrategy),enrich:t=>By(t),summarize:()=>Vy(),dedupe:t=>zy(t.config.cache?.dedupeWindowMs||1e3),sample:t=>Uy(t.config.sample||{})},E0=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=Wy[t];return r?r(e):null}return null},Ul=t=>{let e=t.config,r=Array.isArray(e.transformers)?e.transformers.slice():[],n=r.findIndex(s=>s==="redact");n>=0&&r.splice(n,1);let o=[];e.redact!==!1&&o.push(Wy.redact(t));for(let s of r){let i=E0(s,t);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=o.slice(o.indexOf(a)+1),f=[];for(let u of c){let p=u,d=!1;for(let h of l)if(p=h(p),p==null){d=!0;break}!d&&p!=null&&f.push(p)}return f}i=c}return i}};P();P();var Qs=typeof w<"u"&&typeof w.document<"u",T0=5e3,O0=50,R0=3,P0=1500,I0=1e3,Hy=t=>t?t.level==="error"||t.type==="error"?"bug":t.type==="network"?"network":t.type==="console"?t.level==="error"||t.level==="warn"?"bug":"log":t.level==="warn"?"bug":t.level==="info"?"log":"verbose":"verbose",$0=t=>{try{return JSON.stringify(t)}catch{return null}},F0=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},D0=t=>{if(!t)return null;let e=String(t),r;return(r=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:r[1]}:(r=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:r[1]}:(r=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:r[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(r=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:r[1]}):(r=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:r[1]}:{name:null,version:null}},L0=()=>{if(!Qs)return null;try{let t=w.document?.documentElement?.getAttribute("data-theme")||null,e=typeof w.matchMedia=="function"?w.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:t||(e?"dark":e===!1?"light":null),forced:t||null,prefers:e==null?null:e?"dark":"light"}}catch{return null}},M0=()=>{if(!Qs)return null;let t=w.location,e=typeof navigator<"u"?navigator:null,r=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:w.document?.referrer||null,title:w.document?.title||null,ua:e?.userAgent||null,browser:D0(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:F0(),viewport:w.innerWidth?{w:w.innerWidth,h:w.innerHeight,dpr:w.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:L0()}},Wl=(t={})=>{let e=t.url,r=typeof t.transport=="function"?t.transport:null;if(!e&&!r)return()=>{};let n=t.apiKey||null,o=t.appKey||t.appId||null,s=t.tenantKey||t.tenant||null,i=t.release||null,a=t.env||null,c=t.sdk||null,l=typeof t.getAuth=="function"?t.getAuth:null,f=typeof t.getContext=="function"?t.getContext:null,u=typeof t.classify=="function"?t.classify:Hy,p=typeof t.beforeSend=="function"?t.beforeSend:null,d=t.batchMs!=null?t.batchMs:T0,h=t.maxBatch||O0,g=t.maxRetries!=null?t.maxRetries:R0,m=t.backoffMs||P0,y=t.queueLimit||I0,b=t.sampleRate!=null?t.sampleRate:1,S=t.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),x=[],v=[],O=null,R=null,W=()=>{O||!x.length||(O=setTimeout(Q,d))},E=I=>{if(R)return;let H=m*Math.pow(2,Math.max(0,I-1));R=setTimeout(()=>{if(R=null,!v.length)return;let G=v.shift();V(G.envelope,G.attempt)},H)},L=I=>{let H=f?N0(f):null,G={v:1,session:{id:S,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:c,page:M0(),user:H?.user||null,traits:H?.traits||null,tags:H?.tags||null,events:I};if(p)try{return p(G)||null}catch{return G}return G},V=async(I,H=1)=>{if(I)try{let G=!0;if(r){let it=await r(I);G=it!==!1&&it?.ok!==!1}else G=await j0(e,I,{apiKey:n,getAuth:l});!G&&H<g&&(v.push({envelope:I,attempt:H+1}),E(H+1))}catch{H<g&&(v.push({envelope:I,attempt:H+1}),E(H+1))}},Q=(I=!1)=>{if(O&&(clearTimeout(O),O=null),!x.length)return;let H=x;x=[];let G=L(H);if(G){if(I&&Qs&&navigator.sendBeacon&&e){let it=$0(G);if(it)try{navigator.sendBeacon(e,new w.Blob([it],{type:"application/json"}));return}catch{}}V(G)}};Qs&&(w.addEventListener("pagehide",()=>Q(!0),{passive:!0}),w.addEventListener("beforeunload",()=>Q(!0),{passive:!0}),w.addEventListener("visibilitychange",()=>{w.document.visibilityState==="hidden"&&Q(!0)},{passive:!0}));let M=I=>{if(!I||b<1&&Math.random()>b)return;let H={...I,log_type:u(I)};x.push(H),x.length>y&&(x=x.slice(-y)),x.length>=h?Q():W()};return M.flush=()=>Q(!1),M.sessionId=S,M},N0=t=>{try{return t()}catch{return null}},j0=async(t,e,{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(t,{method:"POST",headers:o,body:JSON.stringify(e),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var B0={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},V0="\x1B[0m",ti=typeof w<"u"&&typeof w.document<"u",Gy=(t={})=>{let e=t.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(ti)i(a,s);else{let c=B0[s.level]||"";i(`${c}${a}${V0}`,s)}}},Ky=(t,e={})=>{let r=e.max||t.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 t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+r)%r;for(let l=0;l<s;l++)a[l]=n[(c+l)%r];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{o=0,s=0}},i},Xy=(t={})=>{let e=t.url,r=t.batchMs!=null?t.batchMs:5e3,n=t.maxBatch||50;if(!e)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let c=JSON.stringify({events:o});o=[];let l=ti?new w.Blob([c],{type:"application/json"}):c;if(ti&&navigator.sendBeacon)try{navigator.sendBeacon(e,l);return}catch{}typeof fetch<"u"&&fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:c,keepalive:!0}).catch(()=>{})};ti&&(w.addEventListener("pagehide",i,{passive:!0}),w.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},qy={console:Gy,memory:Ky,beacon:Xy,remote:Wl},Hl=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],r=[];for(let n of e)if(typeof n=="function")r.push(n);else if(typeof n=="string"){let o=qy[n];if(!o)continue;r.push(n==="memory"?o(t,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=qy[n.type];if(!o)continue;r.push(n.type==="memory"?o(t,n):o(n))}return r};P();var z0=typeof w<"u"&&typeof w.document<"u",U0=new Set(["password","hidden"]),Yy=(t,e)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=e?(r=i,t(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(t(...o),o=null)},e-(i-r))))}},ql="__analyzeKeyPath",Ir=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[ql])return e[ql];let r=[],n=e,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:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||"unknown").toLowerCase(),c=e.id?`#${e.id}`:"",l=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[ql]=i}catch{}return i},W0=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let r=0,n=String(t||"");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},H0=t=>!!(!t||t.tagName==="INPUT"&&U0.has(t.type)||Js.test(t.name||"")||Js.test(t.id||"")||t.dataset?.analyze==="skip"),Gl=t=>{if(!z0)return;let e=t.config.capture,r=t.config.throttle,n=t.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),n.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(o(w,"error",s=>{t.emit(U("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(w,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(U("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(w,"click",i=>{t.emit(U("pointer","info",{hook:"click",target:Ir(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:Zy(i)}))},{passive:!0,capture:!0}),o(w,"dblclick",i=>{t.emit(U("pointer","info",{hook:"dblclick",target:Ir(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(w,"contextmenu",i=>{t.emit(U("pointer","info",{hook:"contextmenu",target:Ir(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=Yy(i=>{t.emit(U("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);o(w,"pointermove",s,{passive:!0})}if(e.keyboard&&o(w,"keydown",s=>{t.emit(U("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:Zy(s),target:Ir(s)}))},{passive:!0,capture:!0}),e.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=H0(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=W0(a.value,t.config.maskStrategy)),t.emit(U("forms","info",{hook:i.type,target:Ir(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(w,"input",s,{passive:!0,capture:!0}),o(w,"change",s,{passive:!0,capture:!0}),o(w,"submit",i=>{t.emit(U("forms","info",{hook:"submit",target:Ir(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=Yy(()=>{t.emit(U("scroll","trace",{hook:"scroll",x:w.scrollX,y:w.scrollY}))},r.scroll);o(w,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=ho(()=>{t.emit(U("viewport","info",{hook:"resize",w:w.innerWidth,h:w.innerHeight,dpr:w.devicePixelRatio||1}))},r.resize);o(w,"resize",s,{passive:!0}),o(w,"orientationchange",()=>{t.emit(U("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(w.document,"visibilitychange",()=>{t.emit(U("viewport","info",{hook:"visibilitychange",hidden:w.document.hidden}))},{passive:!0}),t.emit(U("viewport","info",{hook:"initial",w:w.innerWidth,h:w.innerHeight,dpr:w.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(U("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(Jy)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(U("performance","info",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.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{}},Zy=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),q0=t=>{let e={name:t.name||"Error",message:typeof t.message=="string"?t.message:String(t),stack:typeof t.stack=="string"?t.stack:null};return t.cause!==void 0&&(e.cause=Jy(t.cause)),e},Jy=t=>{if(t==null)return t;if(t instanceof Error)return q0(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};P();var G0=typeof w<"u"&&typeof w.document<"u";var Kl=t=>{if(G0&&t.config.capture.network){if(typeof w.fetch=="function"){let e=w.fetch.bind(w),r=function(n,o){if(o?.headers?.["X-Analyze-Beacon"])return e(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 t.emit(U("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(n,o).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(U("network",c.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;throw t.emit(U("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};w.fetch=r,t.__teardown.push(()=>{w.fetch=e})}if(typeof w.XMLHttpRequest=="function"){let e=w.XMLHttpRequest,r=e.prototype.open,n=e.prototype.send;e.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},e.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(U("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(U("network",f?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i;t.emit(U("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener("loadend",a),this.addEventListener("error",c),n.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=r,e.prototype.send=n})}}};var K0={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},X0={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},Y0={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},Z0={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},J0=t=>{let e={...K0,...t};return e.replay&&Object.assign(e,X0),e.telemetry&&Object.assign(e,Y0),e.remote&&Object.assign(e,Z0),e},Q0=64,tk=()=>{if(typeof w>"u"||!w.location)return null;try{let e=new URLSearchParams(w.location.search).get("analyze");return e||null}catch{return null}},Xl=(t={})=>{let e=t===!0?{}:{...t};e.capture=J0(e.capture||{});let r=tk();(r==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r==="off"&&(e.enabled=!1),e.level=Zs(e.level||"warn"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy="mask"),Array.isArray(e.sinks)||(e.sinks=["console","memory"]),Array.isArray(e.transformers)||(e.transformers=["enrich","summarize"]);let n={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=Ul(n),n.__sinks=Hl(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&&Bl(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<Q0&&n.__preBuffer.push(s);return}o(),Qy(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)Qy(n,a)}try{Gl(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{Kl(n)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of n.__onActivate||[])try{a(n)}catch(c){console.error("[analyze] onActivate error:",c)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=Zs(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},Qy=(t,e)=>{let r=t.__pipeline(e);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof t.config.onEvent=="function")try{t.config.onEvent(o)}catch{}for(let s of t.__sinks)try{s(o)}catch(i){console.error("[analyze] sink error:",i)}}};var Gt=Object.create(null);Gt.open="0";Gt.close="1";Gt.ping="2";Gt.pong="3";Gt.message="4";Gt.upgrade="5";Gt.noop="6";var jn=Object.create(null);Object.keys(Gt).forEach(t=>{jn[Gt[t]]=t});var Bn={type:"error",data:"parser error"};var rb=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",nb=typeof ArrayBuffer=="function",ob=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Vn=({type:t,data:e},r,n)=>rb&&e instanceof Blob?r?n(e):tb(e,n):nb&&(e instanceof ArrayBuffer||ob(e))?r?n(e):tb(new Blob([e]),n):n(Gt[t]+(e||"")),tb=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function eb(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Yl;function sb(t,e){if(rb&&t.data instanceof Blob)return t.data.arrayBuffer().then(eb).then(e);if(nb&&(t.data instanceof ArrayBuffer||ob(t.data)))return e(eb(t.data));Vn(t,!1,r=>{Yl||(Yl=new TextEncoder),e(Yl.encode(r))})}var ib="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<ib.length;t++)zn[ib.charCodeAt(t)]=t;var ab=t=>{let e=t.length*.75,r=t.length,n,o=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let l=new ArrayBuffer(e),f=new Uint8Array(l);for(n=0;n<r;n+=4)s=zn[t.charCodeAt(n)],i=zn[t.charCodeAt(n+1)],a=zn[t.charCodeAt(n+2)],c=zn[t.charCodeAt(n+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l};var ek=typeof ArrayBuffer=="function",Un=(t,e)=>{if(typeof t!="string")return{type:"message",data:cb(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:rk(t.substring(1),e)}:jn[r]?t.length>1?{type:jn[r],data:t.substring(1)}:{type:jn[r]}:Bn},rk=(t,e)=>{if(ek){let r=ab(t);return cb(r,e)}else return{base64:!0,data:t}},cb=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var lb="",fb=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{Vn(s,!1,a=>{n[i]=a,++o===r&&e(n.join(lb))})})},ub=(t,e)=>{let r=t.split(lb),n=[];for(let o=0;o<r.length;o++){let s=Un(r[o],e);if(n.push(s),s.type==="error")break}return n};function pb(){return new TransformStream({transform(t,e){sb(t,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))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})}var Zl;function ei(t){return t.reduce((e,r)=>e+r.length,0)}function ri(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function db(t,e){Zl||(Zl=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(ei(r)<1)break;let c=ri(r,1);s=(c[0]&128)===128,o=c[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(ei(r)<2)break;let c=ri(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(ei(r)<8)break;let c=ri(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Bn);break}o=f*Math.pow(2,32)+l.getUint32(4),n=3}else{if(ei(r)<o)break;let c=ri(r,o);a.enqueue(Un(s?c:Zl.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(Bn);break}}}})}var Jl=4;function Z(t){if(t)return nk(t)}function nk(t){for(var e in Z.prototype)t[e]=Z.prototype[e];return t}Z.prototype.on=Z.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};Z.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};Z.prototype.off=Z.prototype.removeListener=Z.prototype.removeAllListeners=Z.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+t],this};Z.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this};Z.prototype.emitReserved=Z.prototype.emit;Z.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};Z.prototype.hasListeners=function(t){return!!this.listeners(t).length};var ue=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),St=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),hb="arraybuffer";function ni(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var ok=St.setTimeout,sk=St.clearTimeout;function pe(t,e){e.useNativeTimers?(t.setTimeoutFn=ok.bind(St),t.clearTimeoutFn=sk.bind(St)):(t.setTimeoutFn=St.setTimeout.bind(St),t.clearTimeoutFn=St.clearTimeout.bind(St))}var ik=1.33;function gb(t){return typeof t=="string"?ak(t):Math.ceil((t.byteLength||t.size)*ik)}function ak(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}function oi(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function mb(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function yb(t){let e={},r=t.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var si=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},de=class extends Z{constructor(e){super(),this.writable=!1,pe(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,n){return super.emitReserved("error",new si(e,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(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let r=Un(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_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 r=mb(e);return r.length?"?"+r:""}};var Wn=class extends de{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let r=()=>{this.readyState="paused",e()};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(e){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)};ub(e,this.socket.binaryType).forEach(r),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,fb(e,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=oi()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var bb=!1;try{bb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var xb=bb;function ck(){}var Ql=class extends Wn{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,r){let n=this.request({method:"POST",data:e});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=e}},Oe=class t extends Z{constructor(e,r,n){super(),this.createRequest=e,pe(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 e;let r=ni(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{}(e=this._opts.cookieJar)===null||e===void 0||e.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=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=ck,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Oe.requestsCount=0;Oe.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Sb);else if(typeof addEventListener=="function"){let t="onpagehide"in St?"pagehide":"unload";addEventListener(t,Sb,!1)}}function Sb(){for(let t in Oe.requests)Oe.requests.hasOwnProperty(t)&&Oe.requests[t].abort()}var lk=(function(){let t=_b({xdomain:!1});return t&&t.responseType!==null})(),Re=class extends Ql{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=lk&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Oe(_b,this.uri(),e)}};function _b(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||xb))return new XMLHttpRequest}catch{}if(!e)try{return new St[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var wb=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",ef=class extends de{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=wb?{}:ni(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(e,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=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 r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;Vn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&ue(()=>{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",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=oi()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},tf=St.WebSocket||St.MozWebSocket,Pe=class extends ef{createSocket(e,r,n){return wb?new tf(e,r,n):r?new tf(e,r):new tf(e)}doWrite(e,r){this.ws.send(r)}};var $r=class extends de{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 r=db(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=pb();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:c})=>{a||(this.onPacket(c),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(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;this._writer.write(n).then(()=>{o&&ue(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var rf={websocket:Pe,webtransport:$r,polling:Re};var fk=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,uk=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Fr(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),n=t.indexOf("]");r!=-1&&n!=-1&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let o=fk.exec(t||""),s={},i=14;for(;i--;)s[uk[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=e,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=pk(s,s.path),s.queryKey=dk(s,s.query),s}function pk(t,e){let r=/\/{2,9}/g,n=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function dk(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var nf=typeof addEventListener=="function"&&typeof removeEventListener=="function",ii=[];nf&&addEventListener("offline",()=>{ii.forEach(t=>t())},!1);var Je=class t extends Z{constructor(e,r){if(super(),this.binaryType=hb,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let n=Fr(e);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=Fr(r.host).host);pe(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=yb(this.opts.query)),nf&&(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"})},ii.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=Jl,r.transport=e,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[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.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",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.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=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),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 e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.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+=gb(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ue(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,n){return this._sendPacket("message",e,r,n),this}send(e,r,n){return this._sendPacket("message",e,r,n),this}_sendPacket(e,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:e,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},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():e()}):this.upgrading?n():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,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(),nf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=ii.indexOf(this._offlineEventListener);n!==-1&&ii.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Je.protocol=Jl;var ai=class extends Je{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 r=this.createTransport(e),n=!1;Je.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",u=>{if(!n)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Je.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){n||(n=!0,f(),r.close(),r=null)}let i=u=>{let p=new Error("probe error: "+u);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function c(){i("socket closed")}function l(u){r&&u.name!==r.name&&s()}let f=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&r.push(e[n]);return r}},Dr=class extends ai{constructor(e,r={}){let n=typeof e=="object"?e:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>rf[o]).filter(o=>!!o)),super(e,n)}};var Y$=Dr.protocol;function kb(t,e="",r){let n=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),n=Fr(t)),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+e,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var uf={};F(uf,{Decoder:()=>lf,Encoder:()=>cf,PacketType:()=>D,isPacketValid:()=>Fk,protocol:()=>Fb});var gk=typeof ArrayBuffer=="function",mk=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,vb=Object.prototype.toString,yk=typeof Blob=="function"||typeof Blob<"u"&&vb.call(Blob)==="[object BlobConstructor]",bk=typeof File=="function"||typeof File<"u"&&vb.call(File)==="[object FileConstructor]";function qn(t){return gk&&(t instanceof ArrayBuffer||mk(t))||yk&&t instanceof Blob||bk&&t instanceof File}function Hn(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(Hn(t[r]))return!0;return!1}if(qn(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Hn(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Hn(t[r]))return!0;return!1}function Cb(t){let e=[],r=t.data,n=t;return n.data=of(r,e),n.attachments=e.length,{packet:n,buffers:e}}function of(t,e){if(!t)return t;if(qn(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=of(t[n],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=of(t[n],e));return r}return t}function Ab(t,e){return t.data=sf(t.data,e),delete t.attachments,t}function sf(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=sf(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=sf(t[r],e));return t}var Ib=ax(Pb(),1),af=(0,Ib.default)("socket.io-parser"),$b=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Fb=5,D;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(D||(D={}));var cf=class{constructor(e){this.replacer=e}encode(e){return af("encoding packet %j",e),(e.type===D.EVENT||e.type===D.ACK)&&Hn(e)?this.encodeAsBinary({type:e.type===D.EVENT?D.BINARY_EVENT:D.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===D.BINARY_EVENT||e.type===D.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),af("encoded %j as %s",e,r),r}encodeAsBinary(e){let r=Cb(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},lf=class t extends Z{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);let n=r.type===D.BINARY_EVENT;n||r.type===D.BINARY_ACK?(r.type=n?D.EVENT:D.ACK,this.reconstructor=new ff(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(qn(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),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: "+e)}decodeString(e){let r=0,n={type:Number(e.charAt(0))};if(D[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===D.BINARY_EVENT||n.type===D.BINARY_ACK){let s=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);let i=e.substring(s,r);if(i!=Number(i)||e.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!Db(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););n.nsp=e.substring(s,r)}else n.nsp="/";let o=e.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}n.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return af("decoded %s as %j",e,n),n}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case D.CONNECT:return fi(r);case D.DISCONNECT:return r===void 0;case D.CONNECT_ERROR:return typeof r=="string"||fi(r);case D.EVENT:case D.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&$b.indexOf(r[0])===-1);case D.ACK:case D.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},ff=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 r=Ab(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Pk(t){return typeof t=="string"}var Db=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function Ik(t){return t===void 0||Db(t)}function fi(t){return Object.prototype.toString.call(t)==="[object Object]"}function $k(t,e){switch(t){case D.CONNECT:return e===void 0||fi(e);case D.DISCONNECT:return e===void 0;case D.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&$b.indexOf(e[0])===-1);case D.ACK:return Array.isArray(e);case D.CONNECT_ERROR:return typeof e=="string"||fi(e);default:return!1}}function Fk(t){return Pk(t.nsp)&&Ik(t.id)&&$k(t.type,t.data)}function Rt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var Dk=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),jr=class extends Z{constructor(e,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=e,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 e=this.io;this.subs=[Rt(e,"open",this.onopen.bind(this)),Rt(e,"packet",this.onpacket.bind(this)),Rt(e,"error",this.onerror.bind(this)),Rt(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,...r){var n,o,s;if(Dk.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:D.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let f=this.ids++,u=r.pop();this._registerAckCallback(f,u),i.id=f}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&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[e]=i}emitWithAck(e,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.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(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.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:D.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,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case D.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 D.EVENT:case D.BINARY_EVENT:this.onevent(e);break;case D.ACK:case D.BINARY_ACK:this.onack(e);break;case D.DISCONNECT:this.ondisconnect();break;case D.CONNECT_ERROR:this.destroy();let n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.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 r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:D.ACK,id:e,data:o}))}}onack(e){let r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,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:D.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 r=this._anyListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,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 r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,e.data)}}};function tr(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}tr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};tr.prototype.reset=function(){this.attempts=0};tr.prototype.setMin=function(t){this.ms=t};tr.prototype.setMax=function(t){this.max=t};tr.prototype.setJitter=function(t){this.jitter=t};var Br=class extends Z{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,pe(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 tr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let o=r.parser||uf;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.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 r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.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 Dr(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=Rt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Rt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),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(Rt(e,"ping",this.onping.bind(this)),Rt(e,"data",this.ondata.bind(this)),Rt(e,"error",this.onerror.bind(this)),Rt(e,"close",this.onclose.bind(this)),Rt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){ue(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new jr(this,e,r),this.nsps[e]=n),n}_destroy(e){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let n=0;n<r.length;n++)this.engine.write(r[n],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,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),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 r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var Gn={};function Vr(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=kb(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=Gn[o]&&s in Gn[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Br(n,e):(Gn[o]||(Gn[o]=new Br(n,e)),c=Gn[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Vr,{Manager:Br,Socket:jr,io:Vr,connect:Vr});P();var Lk=new Set(["__proto__","constructor","prototype"]),Lb=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(Lk.has(t[e]))return!1;return!0},Mk=(t,e)=>{!t||!Lb(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},Nk=(t,e,r,n=!1)=>{!t||!Lb(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},t)},Mb=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[n,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":Mk(t,o);break;case"update":case"set":Nk(t,o,s,!0);break;default:break}return r};P();var Nb=(t,e,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Ae(a):sr(r[i],a):r[i]=a}),s&&(r.schema=s))},jb=(t,e,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=Mb(r,o);if(s.has("state")&&e.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Ae(r.designSystem)};var jk={success:"green",error:"red",warning:"yellow"},Bb=(t,e,r)=>{if(t.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,e.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,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},Vb={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:jk[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var Bk=!1,Vk=()=>Bk?"http://localhost:8080":"https://api.symbols.app",zk=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e=="string"&&e?{mode:"collab",baseUrl:e}:t&&t.editor&&t.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},Uk=async t=>{try{let e=t||Vk(),r=await w.fetch(`${e}/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(e){console.error("[sync] Failed to fetch service-token",e)}},Wb=(t,e,r,n)=>{t.on("snapshot",Nb(e,r,n)),t.on("ops",jb(e,r,n)),t.on("clients",o=>{n.editor?.verbose&&Bb(o,e,r)}),t.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},Wk=async(t,e,r,n)=>{let o=await Uk(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=Vr(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)")}),Wb(a,t,e,r),a},Hk=(t,e,r)=>{let n=Vr({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),Wb(n,t,e,r),n.on("reload",()=>{typeof w<"u"&&w.location&&w.location.reload()}),n},qk=async(t,e,r)=>{let{mode:n,baseUrl:o}=zk(r);return n?n==="collab"?Wk(t,e,r,o):n==="runner"?Hk(t,e,r):null:null},Gk={onInit:qk};var Hb=t=>typeof t>"u",zb=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),Ub=t=>t?.editor?.runtime==="runner",qb=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},Gb={name:"sync",beforeCreate(t,e){let r=e&&e.editor;(r&&!Hb(r.liveSync)?r.liveSync:zb(e)||Ub(e))&&(zb(e)&&!Ub(e)&&!e?.key||qb(t,Gk))}},Kb={name:"notifications",beforeCreate(t,e){if(!e)return;let r=Hb(e.notifications)?null:e.notifications,n=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&n)&&qb(t,Vb)}};P();function Xb(t){return k(t)?t:T(t)?t.find(e=>k(e)):""}function df(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&Xb(t.extends),n=t.parent&&t.parent.childExtends&&Xb(t.parent.childExtends);return(e||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function ui(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:n}=t.context,o=df(t);return n&&n.onInitInspect&&!n.onInitInspect(o,t,t.state)?ui(t.parent):o&&(e[o]||r[o])?t:ui(t.parent)}var Kk=(t,e,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{t.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},pf={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:Kk,onMousemove:(t,e,r)=>{let n=t.target.ref,o=ui(n),s=e.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=df(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:p}=o.node.getBoundingClientRect(),d={x:l,y:f,width:u,height:p};if(!s.area)return a(d);s.area.x!==d.x&&a(d)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,r)=>{if(!r.debugging)return;let n=t.target.ref,o=ui(n);if(!o)return;let s=df(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),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(t,e)=>!(e.area&&e.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:t})=>{let{components:e}=t;if(_(e)){let{Content:r,...n}=e;for(let o in n)An[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(t,e,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:c,height:l}=n;s=`
69
+ `)}var Zm={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 Jm(t,e){let r=Zm[t]||Ce(t),n=En(e),o=`_${r}-${n}`,s=Tr(t),i=`.${o}{${s}: ${e}}`;return`${o}
70
+ ${i}`}var Qm=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function ty(t){let e=t.split("\0"),r=[],n=[];for(let o=0;o+1<e.length;o+=2){let s=e[o],i=e[o+1];if(!i||Qm(i))continue;let a=Zm[s]||Ce(s),c=En(i),l=`_${a}-${c}`,f=Tr(s);r.push(l),n.push(`.${l}{${f}:${i}}`)}return r.join(" ")+"\0"+n.join(`
71
+ `)}function ey(t,e){let r=t+e,n=`_c${Ce(r)}`,o=e.split("\0"),s="";for(let a=0;a+1<o.length;a+=2){let c=o[a],l=o[a+1];l&&(Qm(l)||(s+=`${Tr(c)}:${l};`))}let i;if(t.startsWith("@media"))i=`${t}{.${n}{${s}}}`;else if(t.startsWith(":")||t.startsWith("&")){let a=t.startsWith("&")?t.slice(1):t;i=`.${n}${a}{${s}}`}else t.includes("&")?i=`${t.replace("&",`.${n}`)}{${s}}`:i=`.${n} ${t}{${s}}`;return`${n}
72
+ ${i}`}var wl=null;function kl(t){wl=t}var Ht={structuralHash:Ls,deepEqual:Ms,mergeStructural:Sl,overwriteDeep:_l,shortHash:Ce,toKebab:Tr,sanitizeValue:En,batchShortHash:Ym,atomicCssClass:Jm,batchAtomicCss:ty,compoundCssClass:ey},ry=!1,Ns=null;function Ww(t){return Ns||(Ns=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(Ht.structuralHash=e.structuralHash),e.deepEqual&&(Ht.deepEqual=e.deepEqual),e.mergeStructural&&(Ht.mergeStructural=e.mergeStructural),e.overwriteDeep&&(Ht.overwriteDeep=e.overwriteDeep),e.shortHash&&(Ht.shortHash=e.shortHash),e.toKebab&&(Ht.toKebab=e.toKebab),e.sanitizeValue&&(Ht.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(Ht.batchShortHash=e.batchShortHash),e.atomicCssClass&&(Ht.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(Ht.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(Ht.compoundCssClass=e.compoundCssClass),ry=!0,wl&&e.batchAtomicCss&&wl({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Ns)}function Hw(){return ry}P();var Tn={};F(Tn,{CDN_PROVIDERS:()=>Yt,DOMQL_EVENTS:()=>Uf,DOMQ_PROPERTIES:()=>Fe,ENV:()=>cu,HTML_TAGS:()=>rn,METHODS:()=>Jr,METHODS_EXL:()=>oo,NODE_ENV:()=>Gt,OPTIONS:()=>Ro,PACKAGE_MANAGER_TO_CDN:()=>Ue,PARSED_DOMQ_PROPERTIES:()=>no,PROPS_METHODS:()=>Le,STATE_METHODS:()=>De,STATE_PROPERTIES:()=>zf,SVG_TAGS:()=>Ou,TYPES:()=>Jn,UNIVERSAL_RESERVED_KEYS:()=>va,addCaching:()=>na,addContext:()=>ra,addExtend:()=>Lu,addExtends:()=>Et,addItemAfterEveryElement:()=>Of,addProtoToArray:()=>eo,addRef:()=>Qi,applyCSS:()=>sy,applyDependentState:()=>op,applyEvent:()=>la,applyEventUpdate:()=>fa,applyExtends:()=>Nu,applyProps:()=>vo,arrayContainsOtherArray:()=>wf,arraysEqual:()=>Pf,arrayzeValue:()=>fr,buildImgSrcset:()=>ns,buildSourcesAndImg:()=>os,cache:()=>up,call:()=>zp,captureSnapshot:()=>qp,checkForStateTypes:()=>tp,checkIfInherits:()=>ca,checkIfStringIsInArray:()=>Ff,clone:()=>Kf,cloneAndMergeArrayExtend:()=>go,cloneFunction:()=>mu,concatAddExtends:()=>Iu,copyJavaScriptToClipboard:()=>Ad,copyStringToClipboard:()=>Cd,createBasedOnType:()=>Ji,createElement:()=>Ju,createElementExtends:()=>Mi,createExtends:()=>yo,createExtendsFromKeys:()=>nn,createExtendsStack:()=>Vi,createIfConditionFlag:()=>yu,createInheritedState:()=>ep,createKey:()=>uo,createNestedObject:()=>eu,createNestedObjectByKeyPath:()=>np,createObjectWithoutPrototype:()=>Ti,createParent:()=>ta,createPath:()=>ea,createProps:()=>Co,createPropsStack:()=>Xi,createRoot:()=>Zu,createScope:()=>ap,createSnapshotId:()=>fo,customDecodeURIComponent:()=>Vf,customEncodeURIComponent:()=>Bf,cutArrayAfterValue:()=>Ef,cutArrayBeforeValue:()=>Af,debounce:()=>ho,debounceOnContext:()=>du,decodeNewlines:()=>jf,deepClone:()=>Q,deepContains:()=>Qf,deepDefaults:()=>Qo,deepDestringifyFunctions:()=>ie,deepExtend:()=>Li,deepMerge:()=>q,deepMergeExtends:()=>ae,deepStringifyFunctions:()=>so,defineSetter:()=>Bp,destringifyGlobalScope:()=>ao,detectHeightOnInit:()=>rd,detectInfiniteLoop:()=>su,document:()=>X,encodeNewlines:()=>Nf,error:()=>lr,excludeKeysFromObject:()=>au,exec:()=>Y,extendCachedRegistry:()=>$u,extendStackRegistry:()=>bo,extractArrayExtend:()=>So,fetchLibraryData:()=>Aa,fibonacciNumberByIndex:()=>od,filterArrays:()=>If,filterArraysFast:()=>$f,finalizeExtends:()=>zi,findClosestNumber:()=>Ca,findClosestNumberInFactory:()=>xd,findInheritedState:()=>aa,findKeyPosition:()=>Lf,flattenExtend:()=>on,formatDate:()=>td,generateHash:()=>$i,generateKey:()=>lo,generateMetaTags:()=>md,get:()=>Lp,getActiveRoute:()=>al,getCDNUrl:()=>Zt,getCapitalCaseKeys:()=>ju,getCdnProviderFromConfig:()=>gn,getChildStateInKey:()=>ia,getChildren:()=>No,getContext:()=>Ho,getCookie:()=>vu,getDB:()=>Yo,getEmotionStylesheet:()=>Pd,getExtendsInElement:()=>Mu,getExtendsStack:()=>mo,getExtendsStackRegistry:()=>Di,getFrequencyInArray:()=>kf,getHashedExtend:()=>xo,getImportMapScript:()=>Jp,getInObjectByPath:()=>ou,getLocalStorage:()=>Au,getNev:()=>pu,getPageMetadata:()=>yd,getParentStateInKey:()=>sa,getPath:()=>jo,getQuery:()=>Zo,getRef:()=>Np,getRoot:()=>zo,getRootContext:()=>Wo,getRootData:()=>Uo,getRootState:()=>Vo,getRootStateInKey:()=>oa,getSpreadChildren:()=>Bu,global:()=>xf,hasFunction:()=>Qr,hasHandlerPlugin:()=>tn,hasOwnProperty:()=>Yf,inheritChildExtends:()=>ji,inheritChildPropsExtends:()=>Ni,inheritParentProps:()=>Ao,inheritRecursiveChildExtends:()=>Bi,init:()=>Ae,initProps:()=>Ku,is:()=>Ct,isArray:()=>E,isBoolean:()=>ki,isContextComponent:()=>Vu,isCyclic:()=>iu,isDOMNode:()=>kt,isDate:()=>Ci,isDefined:()=>vt,isDevelopment:()=>je,isEmpty:()=>Ai,isEmptyObject:()=>Zf,isEqualDeep:()=>Ei,isFunction:()=>C,isHtmlElement:()=>Zn,isLocal:()=>uu,isMethod:()=>Wp,isMobile:()=>wu,isNode:()=>he,isNot:()=>_f,isNotProduction:()=>ir,isNull:()=>vi,isNumber:()=>oe,isObject:()=>_,isObjectLike:()=>N,isPhoto:()=>id,isProduction:()=>Ne,isStaging:()=>fu,isState:()=>rp,isString:()=>k,isStringFunction:()=>gu,isTest:()=>Oi,isTesting:()=>lu,isUndefined:()=>ht,isUniversallyReservedKey:()=>Kp,isValidHtmlTag:()=>Ru,joinArrays:()=>Kr,jointStacks:()=>Du,keys:()=>wa,lastLevel:()=>Ds,lastPathname:()=>Fs,loadCssFile:()=>ud,loadJavascript:()=>pd,loadJavascriptFile:()=>cd,loadJavascriptFileEmbedSync:()=>fd,loadJavascriptFileSync:()=>ld,loadRemoteCSS:()=>dd,loadRemoteScript:()=>mn,log:()=>Vp,logGroupIf:()=>Su,logIf:()=>xu,lookdown:()=>$p,lookdownAll:()=>Fp,lookup:()=>Ip,lowercaseFirstLetter:()=>nr,makeObjectWithoutPrototype:()=>Jf,map:()=>qf,mapStringsWithContextComponents:()=>_o,matchRoute:()=>ol,matchesComponentNaming:()=>ce,memoize:()=>hu,merge:()=>et,mergeSharedLibraries:()=>ts,nextElement:()=>Go,normalizeLibraryKey:()=>yn,objectToString:()=>io,objectizeStringProperty:()=>ko,overwrite:()=>co,overwriteDeep:()=>At,overwriteShallow:()=>sr,overwriteState:()=>sp,parse:()=>ka,parseDeep:()=>Lo,parseQuery:()=>sl,parseRoutePattern:()=>nl,pickupElementFromProps:()=>qi,pickupPropsFromElement:()=>Hi,previousElement:()=>Ko,propExists:()=>Gu,propertizeElement:()=>Gi,propertizeUpdate:()=>qu,reinit:()=>oy,remove:()=>Dp,removeChars:()=>Ed,removeCookie:()=>Cu,removeDuplicateProps:()=>To,removeDuplicatesInArray:()=>Xr,removeFromArray:()=>vf,removeFromObject:()=>tu,removeNestedKeyByPath:()=>ru,removeValueFromArray:()=>to,removeValueFromArrayAll:()=>Tf,reorderArrayByValues:()=>Rf,replaceLiteralsWithObjectFields:()=>rr,replaceOctalEscapeSequences:()=>Mf,resolveAsset:()=>Tt,resolveHandler:()=>en,resolveSharedLibraries:()=>kd,returnValueAsText:()=>Zi,router:()=>ee,runGuards:()=>il,runPluginHook:()=>Kt,scratchSystem:()=>gs,scratchUtils:()=>gr,self:()=>Sf,set:()=>kn,setActiveRootState:()=>Bo,setCookie:()=>ku,setHashedExtend:()=>Fi,setInObjectByPath:()=>nu,setLocalStorage:()=>Eu,setNodeStyles:()=>_a,setProps:()=>Mp,setPropsPrototype:()=>Eo,spotByPath:()=>Mo,srcsetFor:()=>bn,stringIncludesAny:()=>ro,stringToObject:()=>Xf,swapItemsInArray:()=>Cf,syncProps:()=>Oo,toCamelCase:()=>es,toDashCase:()=>rs,toDescriptionCase:()=>Od,toTitleCase:()=>Td,toggleFullscreen:()=>Yp,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>fp,trimStringFromSymbols:()=>Df,unstackArrayOfObjects:()=>Qn,update:()=>Ki,updateProps:()=>Xu,variables:()=>Xo,verbose:()=>hn,warn:()=>qo,window:()=>w});P();P();var qw=A(),ny=(t=qw,e)=>{let r=_(e.localFile)?e.localFile:{},n=Q(r.designSystem||{});return q(t,n)},Gw={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Ae=(t,e=Gw)=>{let r=ny(t||{},e),n=e.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=e.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=kn({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:s,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...r},{newConfig:e.newConfig,config:e.config});i&&(i.scopeSelector=n);let a=Ta(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,u=i.useSvgSprite,p=t.svg,d=i.useIconSprite,h=t.icons;if(f&&ct(a),l&&(ct({[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];ct(m)}c&&ct(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];ct(m)}return(p||u)&&oc(i.svg,{document:e.document}),(h||d)&&ic(i.icons,{document:e.document}),i},js={},oy=(t,e=js)=>{let r=ny(t||{},e),n=e.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=kn({verbose:!1,...r});if(!e.preventInject){if(ct({[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];ct(i)}ct(s.reset)}return s},sy=(t,e=js)=>{ct(t)},pI=(t,e=js)=>{let r=e.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(ct({[r]:t.CSS_VARS}),t.CSS_MEDIA_VARS){let o={};for(let s in t.CSS_MEDIA_VARS)s.startsWith("@media")?o[s]={[n]:t.CSS_MEDIA_VARS[s]}:o[s]=t.CSS_MEDIA_VARS[s];ct(o)}};var dI=(t,e=js)=>{};P();var iy=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,vl={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},On=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),n=t;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},ay=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=vl:e.router=et(e.router||{},vl);let r=e.router,n=async(s,i)=>{let a=s.context?.window||w;if(!a.location)return;let{pathname:c,search:l,hash:f}=a.location;c=iy(c);let u=c+l+f,p=s;if(r.customRouterElement){let d=On(s,r.customRouterElement);d&&(p=d,s.routes&&(p.routes=s.routes))}p.routes&&await ee(u,p,{},{initialRender:!0,pushState:!1})},o=!ht(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.onRenderRouter=n),Kw(e,r),r},Cl=(t,e)=>{if(e.router===!1)return;let r=e.router||vl;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:ee,o=e.window||w,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=iy(a);let f=a+c+l,u=t;if(r.customRouterElement){let p=On(t,r.customRouterElement);p&&(u=p,t.routes&&(u.routes=t.routes))}await u.call("router",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>o.removeEventListener("popstate",s))},Kw=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return q(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};P();var Al=w&&w.location?w.location.host.includes("dev."):je(),cy=Al?"http://localhost:8080/get":"https://api.symbols.app/get",Xw={endpoint:cy},ly=async(t,e=Xw)=>{let r=e.endpoint||cy,n=e.serviceRoute?E(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(C(e.onError))return e.onError(s);console.error(s)}},Yw=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await ly(t,r),o=Al||e.isDevelopment?ie(n):ie(n.releases[0]);r.serviceRoute?E(r.serviceRoute)?r.serviceRoute.forEach(s=>{At(e[s],o[s.toLowerCase()])}):At(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{At(e[s],o[s.toLowerCase()])})}return e},Zw=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await ly(t,n),s=Al||e.isDevelopment?ie(o):ie(o.releases[0]);r(s)}},fy=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await Yw(t,e)}catch(r){console.error(r)}},uy=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&Zw(e,r,n||(o=>{let s=o.designSystem;_(s)&&r.utils.init(s),_(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var Bs=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let r of e.__teardowns)try{r()}catch(n){console.error("[smbls] destroy teardown error:",n)}e.__teardowns.length=0}try{kr(t)}catch(r){console.error("[smbls] dispose error:",r)}if(e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.fetch&&e.fetch.__resolving&&delete e.fetch.__resolving,e.db&&e.db.__resolved&&delete e.db.__resolved,e.db&&e.db.__resolving&&delete e.db.__resolving,e.analyze?.destroy)try{e.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return t.__destroyed=!0,!0};P();var Jw={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"}},Qw=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key)return`${t.tag}[${t.attr}="${t.key}"]`},Vs=(t,e,r)=>{if(!t)return{};let n=C(t)?Y(t,e,r):{...t};if(!_(n))return{};for(let o in n){let s=n[o];C(s)&&(s=Y(s,e,r)),k(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var t0=(t,e)=>{let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),(e.head||e.querySelector("head")).appendChild(r),r},zs=(t,e)=>{if(!(!_(t)||!e))for(let r in t){let n=t[r];if(n==null)continue;let o=Jw[r];if(!o)continue;let s=Qw(o),i=e.querySelector(s)||t0(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var py={name:"helmet",create(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Vs(e,t,t.state);zs(n,r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Vs(e,t,t.state);zs(n,r)}};ze();var dy=(t,e,r,n)=>{t&&pn(t,e,r,n)},hy=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Vs(t,e,r);zs(o,n)},gy=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},n=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(n):await n(),r},Rn={routes:t=>t,metadata:hy,fetch:dy,$router:gy},e0=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=hy),t.fetch!==!1&&(e.fetch=dy),t.router!==!1&&(e.$router=gy),e};var my={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},El={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Us={...my,router:El},r0={state:{},pages:{},components:{},router:El,define:Rn},Ee=r0;P();P();var yy=(t,e)=>N(t.extends)?t.extends:[];P();var _y=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;t.document=t.document||r;let n=t.window;return n&&n!==e&&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"),t.window=e):t.window=n||e,t.window},by=(t="smbls")=>{let e={};for(let r in Er)Object.prototype.hasOwnProperty.call(Er,r)&&(ce(r)?e[`smbls.${r}`]=Er[r]:e[r]=Er[r]);return e},wy=t=>t.components?{...by(),...t.components}:by(),ky=t=>({...Tn,...cl,...gr,...t.utils,...t.snippets,...t.functions}),vy=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),xy={},Cy=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Ue[s]||gn(i)||"esmsh"),!t)return null;let a=!1;for(let c in t){a=!0;break}if(!a)return null;for(let c in t){let l=t[c];if(e&&e[c])continue;let f=je()&&n?`?${Math.random()}`:"",u=Zt(c,l,o)+f;try{if(xy[c])continue;xy[c]=!0,await Promise.race([mn(u,{document:r,type:"module"}),new Promise((p,d)=>setTimeout(()=>d(new Error(`Timeout loading ${c}`)),1e4))])}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=Zt(c,l,"symbols")+f;await Promise.race([mn(d,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${c}`)),2e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},Ay=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||gn(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]){let p=je()?`?${Math.random()}`:"";if(l&&l[a]){let d=l[a],h=Zt(a,d,c)+p;try{await i.utils.loadRemoteScript(h,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let m=Zt(a,d,"symbols")+p;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let d=Zt(a,"latest",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let g=Zt(a,"latest","symbols")+p;await i.utils.loadRemoteScript(g,{window:u,document:f})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};r.packages?r.packages=et(r.packages,t):r.packages=t,r.require||(e.utils.require=await o(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},n0=/\s+/g,Ey=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,o0=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${Ey(o,e)}`)}return r},s0=(t,e,r)=>{if(!t)return;let{key:n}=e;t===!0&&(t=e.classlist={key:n}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=o0(t,e));let o=t.replace(n0," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},i0=()=>(t,e,r)=>{let n=Ey(t,e);if(t){let{__ref:o}=e;o.__class.style=n}Ty()(e.classlist,e,e.state,!0)},Ty=()=>(t,e,r,n)=>{if(e.style&&!n)return;let{__ref:o}=e,{__class:s,__classNames:i}=o;if(!(t===null||typeof t!="object"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c=="string"||typeof c=="number"?l=c:typeof c=="boolean"?l=e.key:l=Xe(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&s0(i,e,e.node)}},a0=()=>({style:i0(),classlist:Ty()}),c0=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],Sy=!1,Oy=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,n=e.initOptions||{},o=e.registry||a0(),s=e.designSystem?q(Q(e.designSystem),Os):Q(Os),i={};for(let d of c0)e[d]!==void 0&&(i[d]=e[d]);let a,c=Sy&&!e.skipDesignSystemInit,l=c?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=l;let f=l===":root"?":root:not([data-theme])":`${l}:not([data-theme])`;if(e.skipDesignSystemInit){if(a=A(t)||A(),a&&(a.document=r),a?.CSS_VARS){pt(a);try{if(ct({[l]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let d={};for(let h in a.CSS_MEDIA_VARS)h.startsWith("@media")?d[h]={[f]:a.CSS_MEDIA_VARS[h]}:d[h]=a.CSS_MEDIA_VARS[h];ct(d)}}finally{at()}}}else if(c){let d=Kd(t,s,{cleanBase:!0});for(let g in i)d[g]=i[g];d.document=r;let h=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=h,d.varPrefix=h,pt(d);try{a=Ae(d,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...Us,...i,...n})}finally{at()}}else{let d=A();d&&(d.document=r),a=Ae(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...Us,...i,...n}),a&&a!==d&&(a.document=r),Sy=!0}let u=a?.CONFIG||a,p=u?.font;if(p){pt(u);try{for(let d in p){let h=p[d];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")&&ct(`@font-face { ${m} }`)}}finally{at()}}return[a,o]},Ry=(t,e)=>{let r={};e.state&&q(r,e.state),t&&t.state&&q(r,t.state);let n=e.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 c in i)r[c]=i[c];let a=new Set(n.languages||[]);for(let c in n.translations)!a.has(c)&&r[c]===void 0&&(r[c]=n.translations[c])}return r.isRootState=!0,Q(r)},Py=(t,e)=>{_(t.routes)&&_(e.pages)&&et(t.routes,e.pages);let r=t.routes||e.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},Iy=t=>{ts(t,t.sharedLibraries)};P();var Fy="smbls_lang",l0="smbls_t_",f0="smbls_tv_",Or={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},Pn={};function Hs(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function Tl(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Ws=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),n=t;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},$y=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=Ws(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function Ol(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=$y(s,t,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=Ws(l,t);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[o];if(l){let f=Ws(l,t);if(f!==void 0)return f}}let c=n?.defaultLang||"en";if(s){let l=$y(s,t,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=Ws(l,t);if(f!==void 0)return f}}return t}async function Rl(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||l0,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):f0);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=Or.get(o+t);if(c)try{let l=JSON.parse(c),f={translations:{...n.translations||{}}};f.translations[t]=l,n.update&&n.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(r.storagePrefix||"smbls")+":"+t;if(Pn[i])return Pn[i];let a=this;return Pn[i]=(async()=>{try{let c=r.fetch,l=parseInt(Or.get(s+t),10)||0,f,u,p;if(C(c)){let h=await c(t,l,a);if(!h||h.changed===!1)return;f=h.translations||h.data||h,u=h.version||0,p=!0}else if(_(c)){let h=a.getDB||(()=>e.fetch),g=C(h)?await h.call(a):e.fetch;if(!g)return;let m=c.rpc||c.from||"get_translations_if_changed",y={p_lang:t,p_cached_version:l,...c.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,b.error;let S=b.data;if(!S||!S.changed)return;f=S.translations||{},u=S.version||0,p=!0}else return;if(!p||!f)return;Or.set(o+t,JSON.stringify(f)),u&&Or.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=f,n.update&&n.update(d)}catch(c){if(r.verbose!==!1){let l=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",t,"-",l)}}finally{delete Pn[i]}})(),Pn[i]}async function Pl(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call("getActiveLang")===t)return;let o=r?.storageLangKey||Fy;Or.set(o,t),r?.fetch&&await this.call("loadTranslations",t),e?.state&&(e.state.lang=t);let s=r?.translations?.[t],i={lang:t};if(s&&typeof s=="object")for(let c in s){let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}if(n.update&&n.update(i),s&&typeof s=="object")for(let c in s){let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&n[c]&&typeof n[c]=="object"&&!Array.isArray(n[c]))for(let f in l)n[c][f]=l[f]}let a=this?.context?.document||globalThis.document;if(a&&s){let c=a.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let u=f.__ref?.__exec?.text;if(typeof u=="string"&&u.includes("{{"))try{let p=f.call("replaceLiteralsWithObjectFields",u,f.state);p!=null&&l.textContent!==p&&(l.textContent=p)}catch{}}}}async function Il(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&_(o.fetch)){let i=this.getDB||(()=>n.fetch),a=C(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(l?.error)throw l.error;return l.data}}async function Dy(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let n=e.storageLangKey||Fy,s=Or.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function $l(t){try{let e=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",o=this?.state;if(!o)return"";let s=t.lastIndexOf(".");if(s===-1)return o[t+n]??"";let i=t.substring(0,s).split("."),a=o;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+n]??""}catch{return""}}var Fl={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Dy.call(t))}};var qs={polyglot:Ol,getLocalStateLang:$l,getActiveLang:Hs,getLang:Hs,setLang:Pl,getLanguages:Tl,loadTranslations:Rl,upsertTranslation:Il};ze();var Gs={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}},Ks=t=>parseFloat(t.toFixed(4)),u0=(t,e,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(o),l=n+c+s,f=r!==void 0?r:l/i*t,u=f/t,p=l/i,d=(n-a+s/2)/i-(u-p)/2,h=(c+s/2)/i-(u-p)/2;return{fontSize:`${Ks(t/16)}rem`,lineHeight:`${Ks(f)}px`,capHeightTrim:`${Ks(-d)}em`,baselineTrim:`${Ks(-h)}em`}},p0=(t,e)=>{if(typeof t=="number")return t;let r=e?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(t).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(t);return isNaN(o)?null:typeof t=="string"&&t.endsWith("rem")?o*(r.typography?.browserDefault||16):o},d0=(t,e)=>{let n=e?.designSystem?.font_family||{};if(t){let s=n[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(Gs[i])return Gs[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(Gs[a])return Gs[a]}}return null},Ly=(t,e,r,n)=>{if(!t)return;let o=p0(e.fontSize,n);if(!o)return;let s=d0(e.fontFamily,n);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=u0(o,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},My={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}};var In={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"},Nt=Object.create(null);for(let t in In)Nt[In[t]]=t;var Dl=Object.create(null);for(let t in In){let e=In[t];if(Dl[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${Dl[e]}"`);Dl[e]=t}var Te=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function $n(t){return/^[A-Z]/.test(t)}function Fn(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function h0(t){return t.trim().split(/\s+/).filter(Boolean)}function Ny(t){return t.replace(/_/g," ")}function g0(t){if(!t||typeof t!="string")return{};let e={},r=h0(t);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),l=Nt[c]||c;e[l]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=Nt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Nt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(Ny);continue}e[a]=Ny(i)}return e}function Dn(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Dn(r):r});let e={};for(let r in t){let n=t[r];if($n(r)){e[r]=Ll(n);continue}let o=Nt[r]||r;if(Fn(r)&&o===r){e[r]=Ll(n);continue}if(Te.has(o)||Te.has(r)){e[o]=n;continue}e[o]=Ll(n)}return e}function Ll(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Dn(e):e}):typeof t=="object"?Dn(t):t}function Ln(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Ln(r):r});let e={};if(typeof t.in=="string"){let r=g0(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r==="in")continue;let n=t[r];if($n(r)){e[r]=Ml(n);continue}let o=Nt[r]||r;if(Fn(r)&&o===r){e[r]=Ml(n);continue}if(Te.has(o)||Te.has(r)){e[o]=n;continue}e[o]=Ml(n)}return e}function Ml(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Ln(e):e}):typeof t=="object"?Ln(t):t}function m0(t){let e="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){let n=t[r+1];if(n===","||n==="_"||n==="\\"){e+=n,r+=2;continue}}t[r]==="_"?e+=" ":e+=t[r],r++}return e}function y0(t){let e=[],r="",n=0;for(;n<t.length;){if(t[n]==="\\"&&n+1<t.length){r+=t[n]+t[n+1],n+=2;continue}if(t[n]===","){e.push(r),r="",n++;continue}r+=t[n],n++}return e.push(r),e}function jy(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):m0(t)}function Nl(t){if(!t||typeof t!="string")return{};let e={},r=t.trim().split(/\s+/).filter(Boolean);for(let n of r){if(n.startsWith("!")){let l=n.slice(1),f=Nt[l]||l;e[f]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=Nt[n]||n;e[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Nt[s]||s,c=y0(i);if(c.length>1){e[a]=c.map(jy);continue}e[a]=jy(i)}return e}function Mn(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Mn(r):r});let e={};if(typeof t.in=="string"){let r=Nl(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r==="in")continue;let n=t[r];if($n(r)){typeof n=="string"?e[r]=Nl(n):e[r]=jl(n);continue}let o=Nt[r]||r;if(Fn(r)&&o===r){typeof n=="string"?e[r]=Nl(n):e[r]=jl(n);continue}if(Te.has(o)||Te.has(r)){e[o]=n;continue}e[o]=jl(n)}return e}function jl(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Mn(e):e}):typeof t=="object"?Mn(t):t}var b0={shorten:Dn,stringify:Ln,stringifyFurther:Mn};function x0(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(n=>e(n));let r={};for(let n in t){let o=t[n];r[n]=o&&typeof o=="object"?e(o):o}return r}var S0=["components","pages","snippets"],Xs={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let n=b0[e===!0?"shorten":e];if(n){for(let o of S0)t[o]&&(t[o]=x0(t[o],n));t.app&&typeof t.app=="object"&&(t.app=n(t.app))}}};var _0=0,w0=()=>`${Date.now().toString(36)}-${(_0++).toString(36)}`,U=(t,e,r={})=>({id:w0(),ts:Date.now(),type:t,level:e,...r}),k0=t=>{let e=[],r=t,n=0;for(;r&&n<32;)r.key!=null&&e.unshift(String(r.key)),r=r.parent,n++;return e.join(" > ")},Rr=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:k0(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Pr=t=>t?.context?.analyze,v0={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"}},C0=(t,{category:e,type:r,level:n})=>o=>{let s=Pr(o);!s||!s.shouldCapture(e)||s.emit(U(r,n,{hook:t,element:Rr(o)}))},By=t=>(e,r)=>{let n=Pr(e);!n||!n.shouldCapture("state")||n.emit(U("state","debug",{hook:t,element:Rr(e),changedKeys:r?.changedKeys||null}))},Nn={name:"analyze",error(t,e){let r=Pr(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=e?.error||e?.err||(e instanceof Error?e:null);r.emit(U("error","error",{hook:e?.hook||"error",element:Rr(t),error:n,message:n?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Pr(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(U("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Pr(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Pr(t);if(!e||!e.shouldCapture("updates"))return;let r=null;t.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(U("update","debug",{hook:"update",element:Rr(t),durationMs:r}))},beforeStateUpdate:By("beforeStateUpdate"),stateUpdate:By("stateUpdate")};for(let[t,e]of Object.entries(v0))Nn[t]=C0(t,e);P();var Ys={error:0,warn:1,info:2,debug:3,trace:4};var Bl=(t,e)=>{let r=Ys[t],n=Ys[e];return r==null||n==null?!0:r<=n},Zs=t=>Ys[t]!=null?t:"warn";P();var Js=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var A0=(t,e)=>{for(let r of e)if(r instanceof RegExp){if(r.test(t))return!0}else if(typeof r=="string"&&t.toLowerCase().includes(r.toLowerCase()))return!0;return!1},E0=(t,e)=>{if(e!=="redact"){if(e==="hash"){let r=0,n=String(t);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},Vl=(t,e,r,n)=>{if(n>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>Vl(s,e,r,n+1));let o={};for(let s of Object.keys(t))if(A0(s,e)||Js.test(s)){let a=E0(t[s],r);a!==void 0&&(o[s]=a)}else o[s]=Vl(t[s],e,r,n+1);return o},zl=(t=[],e="mask")=>{let r=Array.isArray(t)?t:[t];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:p,target:d,...h}=n,g=Vl(h,r,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:p,target:d,...g}}};var Vy=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,n=t.config.buildHash||null,o=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=w,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:o,build:n,route:i},meta:{ua:r,viewport:c}}}},zy=()=>t=>{if(!t)return t;if(t.element&&typeof t.element=="object"){let e=t.element;(e.node||e.parent||e.__ref)&&(t={...t,element:{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,tag:e.tag||null,component:e.component||null}})}return t.error instanceof Error&&(t={...t,error:{name:t.error.name,message:t.error.message,stack:t.error.stack}}),t},Uy=(t=1e3,e=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<t)return null;if(r.set(o,i),r.size>e){let a=Math.ceil(e/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return n}},Wy=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},Hy={redact:t=>zl(t.config.redact||[],t.config.maskStrategy),enrich:t=>Vy(t),summarize:()=>zy(),dedupe:t=>Uy(t.config.cache?.dedupeWindowMs||1e3),sample:t=>Wy(t.config.sample||{})},T0=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=Hy[t];return r?r(e):null}return null},Ul=t=>{let e=t.config,r=Array.isArray(e.transformers)?e.transformers.slice():[],n=r.findIndex(s=>s==="redact");n>=0&&r.splice(n,1);let o=[];e.redact!==!1&&o.push(Hy.redact(t));for(let s of r){let i=T0(s,t);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=o.slice(o.indexOf(a)+1),f=[];for(let u of c){let p=u,d=!1;for(let h of l)if(p=h(p),p==null){d=!0;break}!d&&p!=null&&f.push(p)}return f}i=c}return i}};P();P();var Qs=typeof w<"u"&&typeof w.document<"u",O0=5e3,R0=50,P0=3,I0=1500,$0=1e3,qy=t=>t?t.level==="error"||t.type==="error"?"bug":t.type==="network"?"network":t.type==="console"?t.level==="error"||t.level==="warn"?"bug":"log":t.level==="warn"?"bug":t.level==="info"?"log":"verbose":"verbose",F0=t=>{try{return JSON.stringify(t)}catch{return null}},D0=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},L0=t=>{if(!t)return null;let e=String(t),r;return(r=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:r[1]}:(r=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:r[1]}:(r=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:r[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(r=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:r[1]}):(r=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:r[1]}:{name:null,version:null}},M0=()=>{if(!Qs)return null;try{let t=w.document?.documentElement?.getAttribute("data-theme")||null,e=typeof w.matchMedia=="function"?w.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:t||(e?"dark":e===!1?"light":null),forced:t||null,prefers:e==null?null:e?"dark":"light"}}catch{return null}},N0=()=>{if(!Qs)return null;let t=w.location,e=typeof navigator<"u"?navigator:null,r=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:w.document?.referrer||null,title:w.document?.title||null,ua:e?.userAgent||null,browser:L0(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:D0(),viewport:w.innerWidth?{w:w.innerWidth,h:w.innerHeight,dpr:w.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:M0()}},Wl=(t={})=>{let e=t.url,r=typeof t.transport=="function"?t.transport:null;if(!e&&!r)return()=>{};let n=t.apiKey||null,o=t.appKey||t.appId||null,s=t.tenantKey||t.tenant||null,i=t.release||null,a=t.env||null,c=t.sdk||null,l=typeof t.getAuth=="function"?t.getAuth:null,f=typeof t.getContext=="function"?t.getContext:null,u=typeof t.classify=="function"?t.classify:qy,p=typeof t.beforeSend=="function"?t.beforeSend:null,d=t.batchMs!=null?t.batchMs:O0,h=t.maxBatch||R0,g=t.maxRetries!=null?t.maxRetries:P0,m=t.backoffMs||I0,y=t.queueLimit||$0,b=t.sampleRate!=null?t.sampleRate:1,S=t.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),x=[],v=[],O=null,R=null,W=()=>{O||!x.length||(O=setTimeout(J,d))},T=I=>{if(R)return;let H=m*Math.pow(2,Math.max(0,I-1));R=setTimeout(()=>{if(R=null,!v.length)return;let G=v.shift();V(G.envelope,G.attempt)},H)},L=I=>{let H=f?j0(f):null,G={v:1,session:{id:S,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:c,page:N0(),user:H?.user||null,traits:H?.traits||null,tags:H?.tags||null,events:I};if(p)try{return p(G)||null}catch{return G}return G},V=async(I,H=1)=>{if(I)try{let G=!0;if(r){let it=await r(I);G=it!==!1&&it?.ok!==!1}else G=await B0(e,I,{apiKey:n,getAuth:l});!G&&H<g&&(v.push({envelope:I,attempt:H+1}),T(H+1))}catch{H<g&&(v.push({envelope:I,attempt:H+1}),T(H+1))}},J=(I=!1)=>{if(O&&(clearTimeout(O),O=null),!x.length)return;let H=x;x=[];let G=L(H);if(G){if(I&&Qs&&navigator.sendBeacon&&e){let it=F0(G);if(it)try{navigator.sendBeacon(e,new w.Blob([it],{type:"application/json"}));return}catch{}}V(G)}};Qs&&(w.addEventListener("pagehide",()=>J(!0),{passive:!0}),w.addEventListener("beforeunload",()=>J(!0),{passive:!0}),w.addEventListener("visibilitychange",()=>{w.document.visibilityState==="hidden"&&J(!0)},{passive:!0}));let M=I=>{if(!I||b<1&&Math.random()>b)return;let H={...I,log_type:u(I)};x.push(H),x.length>y&&(x=x.slice(-y)),x.length>=h?J():W()};return M.flush=()=>J(!1),M.sessionId=S,M},j0=t=>{try{return t()}catch{return null}},B0=async(t,e,{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(t,{method:"POST",headers:o,body:JSON.stringify(e),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var V0={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},z0="\x1B[0m",ti=typeof w<"u"&&typeof w.document<"u",Ky=(t={})=>{let e=t.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(ti)i(a,s);else{let c=V0[s.level]||"";i(`${c}${a}${z0}`,s)}}},Xy=(t,e={})=>{let r=e.max||t.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 t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+r)%r;for(let l=0;l<s;l++)a[l]=n[(c+l)%r];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{o=0,s=0}},i},Yy=(t={})=>{let e=t.url,r=t.batchMs!=null?t.batchMs:5e3,n=t.maxBatch||50;if(!e)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let c=JSON.stringify({events:o});o=[];let l=ti?new w.Blob([c],{type:"application/json"}):c;if(ti&&navigator.sendBeacon)try{navigator.sendBeacon(e,l);return}catch{}typeof fetch<"u"&&fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:c,keepalive:!0}).catch(()=>{})};ti&&(w.addEventListener("pagehide",i,{passive:!0}),w.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},Gy={console:Ky,memory:Xy,beacon:Yy,remote:Wl},Hl=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],r=[];for(let n of e)if(typeof n=="function")r.push(n);else if(typeof n=="string"){let o=Gy[n];if(!o)continue;r.push(n==="memory"?o(t,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=Gy[n.type];if(!o)continue;r.push(n.type==="memory"?o(t,n):o(n))}return r};P();var U0=typeof w<"u"&&typeof w.document<"u",W0=new Set(["password","hidden"]),Zy=(t,e)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=e?(r=i,t(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(t(...o),o=null)},e-(i-r))))}},ql="__analyzeKeyPath",Ir=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[ql])return e[ql];let r=[],n=e,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:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||"unknown").toLowerCase(),c=e.id?`#${e.id}`:"",l=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[ql]=i}catch{}return i},H0=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let r=0,n=String(t||"");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},q0=t=>!!(!t||t.tagName==="INPUT"&&W0.has(t.type)||Js.test(t.name||"")||Js.test(t.id||"")||t.dataset?.analyze==="skip"),Gl=t=>{if(!U0)return;let e=t.config.capture,r=t.config.throttle,n=t.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),n.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(o(w,"error",s=>{t.emit(U("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(w,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(U("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(w,"click",i=>{t.emit(U("pointer","info",{hook:"click",target:Ir(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:Jy(i)}))},{passive:!0,capture:!0}),o(w,"dblclick",i=>{t.emit(U("pointer","info",{hook:"dblclick",target:Ir(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(w,"contextmenu",i=>{t.emit(U("pointer","info",{hook:"contextmenu",target:Ir(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=Zy(i=>{t.emit(U("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);o(w,"pointermove",s,{passive:!0})}if(e.keyboard&&o(w,"keydown",s=>{t.emit(U("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:Jy(s),target:Ir(s)}))},{passive:!0,capture:!0}),e.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=q0(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=H0(a.value,t.config.maskStrategy)),t.emit(U("forms","info",{hook:i.type,target:Ir(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(w,"input",s,{passive:!0,capture:!0}),o(w,"change",s,{passive:!0,capture:!0}),o(w,"submit",i=>{t.emit(U("forms","info",{hook:"submit",target:Ir(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=Zy(()=>{t.emit(U("scroll","trace",{hook:"scroll",x:w.scrollX,y:w.scrollY}))},r.scroll);o(w,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=ho(()=>{t.emit(U("viewport","info",{hook:"resize",w:w.innerWidth,h:w.innerHeight,dpr:w.devicePixelRatio||1}))},r.resize);o(w,"resize",s,{passive:!0}),o(w,"orientationchange",()=>{t.emit(U("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(w.document,"visibilitychange",()=>{t.emit(U("viewport","info",{hook:"visibilitychange",hidden:w.document.hidden}))},{passive:!0}),t.emit(U("viewport","info",{hook:"initial",w:w.innerWidth,h:w.innerHeight,dpr:w.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(U("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(Qy)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(U("performance","info",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.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{}},Jy=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),G0=t=>{let e={name:t.name||"Error",message:typeof t.message=="string"?t.message:String(t),stack:typeof t.stack=="string"?t.stack:null};return t.cause!==void 0&&(e.cause=Qy(t.cause)),e},Qy=t=>{if(t==null)return t;if(t instanceof Error)return G0(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};P();var K0=typeof w<"u"&&typeof w.document<"u";var Kl=t=>{if(K0&&t.config.capture.network){if(typeof w.fetch=="function"){let e=w.fetch.bind(w),r=function(n,o){if(o?.headers?.["X-Analyze-Beacon"])return e(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 t.emit(U("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(n,o).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(U("network",c.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;throw t.emit(U("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};w.fetch=r,t.__teardown.push(()=>{w.fetch=e})}if(typeof w.XMLHttpRequest=="function"){let e=w.XMLHttpRequest,r=e.prototype.open,n=e.prototype.send;e.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},e.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(U("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(U("network",f?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i;t.emit(U("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener("loadend",a),this.addEventListener("error",c),n.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=r,e.prototype.send=n})}}};var X0={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},Y0={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},Z0={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},J0={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},Q0=t=>{let e={...X0,...t};return e.replay&&Object.assign(e,Y0),e.telemetry&&Object.assign(e,Z0),e.remote&&Object.assign(e,J0),e},tk=64,ek=()=>{if(typeof w>"u"||!w.location)return null;try{let e=new URLSearchParams(w.location.search).get("analyze");return e||null}catch{return null}},Xl=(t={})=>{let e=t===!0?{}:{...t};e.capture=Q0(e.capture||{});let r=ek();(r==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r==="off"&&(e.enabled=!1),e.level=Zs(e.level||"warn"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy="mask"),Array.isArray(e.sinks)||(e.sinks=["console","memory"]),Array.isArray(e.transformers)||(e.transformers=["enrich","summarize"]);let n={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=Ul(n),n.__sinks=Hl(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&&Bl(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<tk&&n.__preBuffer.push(s);return}o(),tb(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)tb(n,a)}try{Gl(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{Kl(n)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of n.__onActivate||[])try{a(n)}catch(c){console.error("[analyze] onActivate error:",c)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=Zs(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},tb=(t,e)=>{let r=t.__pipeline(e);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof t.config.onEvent=="function")try{t.config.onEvent(o)}catch{}for(let s of t.__sinks)try{s(o)}catch(i){console.error("[analyze] sink error:",i)}}};var qt=Object.create(null);qt.open="0";qt.close="1";qt.ping="2";qt.pong="3";qt.message="4";qt.upgrade="5";qt.noop="6";var jn=Object.create(null);Object.keys(qt).forEach(t=>{jn[qt[t]]=t});var Bn={type:"error",data:"parser error"};var nb=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ob=typeof ArrayBuffer=="function",sb=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Vn=({type:t,data:e},r,n)=>nb&&e instanceof Blob?r?n(e):eb(e,n):ob&&(e instanceof ArrayBuffer||sb(e))?r?n(e):eb(new Blob([e]),n):n(qt[t]+(e||"")),eb=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function rb(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Yl;function ib(t,e){if(nb&&t.data instanceof Blob)return t.data.arrayBuffer().then(rb).then(e);if(ob&&(t.data instanceof ArrayBuffer||sb(t.data)))return e(rb(t.data));Vn(t,!1,r=>{Yl||(Yl=new TextEncoder),e(Yl.encode(r))})}var ab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<ab.length;t++)zn[ab.charCodeAt(t)]=t;var cb=t=>{let e=t.length*.75,r=t.length,n,o=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let l=new ArrayBuffer(e),f=new Uint8Array(l);for(n=0;n<r;n+=4)s=zn[t.charCodeAt(n)],i=zn[t.charCodeAt(n+1)],a=zn[t.charCodeAt(n+2)],c=zn[t.charCodeAt(n+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l};var rk=typeof ArrayBuffer=="function",Un=(t,e)=>{if(typeof t!="string")return{type:"message",data:lb(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:nk(t.substring(1),e)}:jn[r]?t.length>1?{type:jn[r],data:t.substring(1)}:{type:jn[r]}:Bn},nk=(t,e)=>{if(rk){let r=cb(t);return lb(r,e)}else return{base64:!0,data:t}},lb=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var fb="",ub=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{Vn(s,!1,a=>{n[i]=a,++o===r&&e(n.join(fb))})})},pb=(t,e)=>{let r=t.split(fb),n=[];for(let o=0;o<r.length;o++){let s=Un(r[o],e);if(n.push(s),s.type==="error")break}return n};function db(){return new TransformStream({transform(t,e){ib(t,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))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})}var Zl;function ei(t){return t.reduce((e,r)=>e+r.length,0)}function ri(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function hb(t,e){Zl||(Zl=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(ei(r)<1)break;let c=ri(r,1);s=(c[0]&128)===128,o=c[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(ei(r)<2)break;let c=ri(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(ei(r)<8)break;let c=ri(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Bn);break}o=f*Math.pow(2,32)+l.getUint32(4),n=3}else{if(ei(r)<o)break;let c=ri(r,o);a.enqueue(Un(s?c:Zl.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(Bn);break}}}})}var Jl=4;function Z(t){if(t)return ok(t)}function ok(t){for(var e in Z.prototype)t[e]=Z.prototype[e];return t}Z.prototype.on=Z.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};Z.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};Z.prototype.off=Z.prototype.removeListener=Z.prototype.removeAllListeners=Z.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+t],this};Z.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this};Z.prototype.emitReserved=Z.prototype.emit;Z.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};Z.prototype.hasListeners=function(t){return!!this.listeners(t).length};var ue=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),St=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),gb="arraybuffer";function ni(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var sk=St.setTimeout,ik=St.clearTimeout;function pe(t,e){e.useNativeTimers?(t.setTimeoutFn=sk.bind(St),t.clearTimeoutFn=ik.bind(St)):(t.setTimeoutFn=St.setTimeout.bind(St),t.clearTimeoutFn=St.clearTimeout.bind(St))}var ak=1.33;function mb(t){return typeof t=="string"?ck(t):Math.ceil((t.byteLength||t.size)*ak)}function ck(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}function oi(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function yb(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function bb(t){let e={},r=t.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var si=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},de=class extends Z{constructor(e){super(),this.writable=!1,pe(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,n){return super.emitReserved("error",new si(e,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(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let r=Un(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_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 r=yb(e);return r.length?"?"+r:""}};var Wn=class extends de{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let r=()=>{this.readyState="paused",e()};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(e){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)};pb(e,this.socket.binaryType).forEach(r),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,ub(e,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=oi()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var xb=!1;try{xb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Sb=xb;function lk(){}var Ql=class extends Wn{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,r){let n=this.request({method:"POST",data:e});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=e}},Oe=class t extends Z{constructor(e,r,n){super(),this.createRequest=e,pe(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 e;let r=ni(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{}(e=this._opts.cookieJar)===null||e===void 0||e.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=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=lk,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Oe.requestsCount=0;Oe.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",_b);else if(typeof addEventListener=="function"){let t="onpagehide"in St?"pagehide":"unload";addEventListener(t,_b,!1)}}function _b(){for(let t in Oe.requests)Oe.requests.hasOwnProperty(t)&&Oe.requests[t].abort()}var fk=(function(){let t=wb({xdomain:!1});return t&&t.responseType!==null})(),Re=class extends Ql{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=fk&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Oe(wb,this.uri(),e)}};function wb(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Sb))return new XMLHttpRequest}catch{}if(!e)try{return new St[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var kb=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",ef=class extends de{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=kb?{}:ni(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(e,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=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 r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;Vn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&ue(()=>{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",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=oi()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},tf=St.WebSocket||St.MozWebSocket,Pe=class extends ef{createSocket(e,r,n){return kb?new tf(e,r,n):r?new tf(e,r):new tf(e)}doWrite(e,r){this.ws.send(r)}};var $r=class extends de{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 r=hb(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=db();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:c})=>{a||(this.onPacket(c),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(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;this._writer.write(n).then(()=>{o&&ue(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var rf={websocket:Pe,webtransport:$r,polling:Re};var uk=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,pk=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Fr(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),n=t.indexOf("]");r!=-1&&n!=-1&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let o=uk.exec(t||""),s={},i=14;for(;i--;)s[pk[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=e,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=dk(s,s.path),s.queryKey=hk(s,s.query),s}function dk(t,e){let r=/\/{2,9}/g,n=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function hk(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var nf=typeof addEventListener=="function"&&typeof removeEventListener=="function",ii=[];nf&&addEventListener("offline",()=>{ii.forEach(t=>t())},!1);var Je=class t extends Z{constructor(e,r){if(super(),this.binaryType=gb,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let n=Fr(e);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=Fr(r.host).host);pe(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=bb(this.opts.query)),nf&&(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"})},ii.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=Jl,r.transport=e,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[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.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",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.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=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),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 e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.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+=mb(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ue(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,n){return this._sendPacket("message",e,r,n),this}send(e,r,n){return this._sendPacket("message",e,r,n),this}_sendPacket(e,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:e,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},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():e()}):this.upgrading?n():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,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(),nf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=ii.indexOf(this._offlineEventListener);n!==-1&&ii.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Je.protocol=Jl;var ai=class extends Je{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 r=this.createTransport(e),n=!1;Je.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",u=>{if(!n)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Je.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){n||(n=!0,f(),r.close(),r=null)}let i=u=>{let p=new Error("probe error: "+u);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function c(){i("socket closed")}function l(u){r&&u.name!==r.name&&s()}let f=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&r.push(e[n]);return r}},Dr=class extends ai{constructor(e,r={}){let n=typeof e=="object"?e:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>rf[o]).filter(o=>!!o)),super(e,n)}};var Z$=Dr.protocol;function vb(t,e="",r){let n=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),n=Fr(t)),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+e,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var uf={};F(uf,{Decoder:()=>lf,Encoder:()=>cf,PacketType:()=>D,isPacketValid:()=>Dk,protocol:()=>Db});var mk=typeof ArrayBuffer=="function",yk=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Cb=Object.prototype.toString,bk=typeof Blob=="function"||typeof Blob<"u"&&Cb.call(Blob)==="[object BlobConstructor]",xk=typeof File=="function"||typeof File<"u"&&Cb.call(File)==="[object FileConstructor]";function qn(t){return mk&&(t instanceof ArrayBuffer||yk(t))||bk&&t instanceof Blob||xk&&t instanceof File}function Hn(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(Hn(t[r]))return!0;return!1}if(qn(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Hn(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Hn(t[r]))return!0;return!1}function Ab(t){let e=[],r=t.data,n=t;return n.data=of(r,e),n.attachments=e.length,{packet:n,buffers:e}}function of(t,e){if(!t)return t;if(qn(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=of(t[n],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=of(t[n],e));return r}return t}function Eb(t,e){return t.data=sf(t.data,e),delete t.attachments,t}function sf(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=sf(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=sf(t[r],e));return t}var $b=cx(Ib(),1),af=(0,$b.default)("socket.io-parser"),Fb=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Db=5,D;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(D||(D={}));var cf=class{constructor(e){this.replacer=e}encode(e){return af("encoding packet %j",e),(e.type===D.EVENT||e.type===D.ACK)&&Hn(e)?this.encodeAsBinary({type:e.type===D.EVENT?D.BINARY_EVENT:D.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===D.BINARY_EVENT||e.type===D.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),af("encoded %j as %s",e,r),r}encodeAsBinary(e){let r=Ab(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},lf=class t extends Z{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);let n=r.type===D.BINARY_EVENT;n||r.type===D.BINARY_ACK?(r.type=n?D.EVENT:D.ACK,this.reconstructor=new ff(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(qn(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),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: "+e)}decodeString(e){let r=0,n={type:Number(e.charAt(0))};if(D[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===D.BINARY_EVENT||n.type===D.BINARY_ACK){let s=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);let i=e.substring(s,r);if(i!=Number(i)||e.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!Lb(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););n.nsp=e.substring(s,r)}else n.nsp="/";let o=e.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}n.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return af("decoded %s as %j",e,n),n}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case D.CONNECT:return fi(r);case D.DISCONNECT:return r===void 0;case D.CONNECT_ERROR:return typeof r=="string"||fi(r);case D.EVENT:case D.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&Fb.indexOf(r[0])===-1);case D.ACK:case D.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},ff=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 r=Eb(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Ik(t){return typeof t=="string"}var Lb=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function $k(t){return t===void 0||Lb(t)}function fi(t){return Object.prototype.toString.call(t)==="[object Object]"}function Fk(t,e){switch(t){case D.CONNECT:return e===void 0||fi(e);case D.DISCONNECT:return e===void 0;case D.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&Fb.indexOf(e[0])===-1);case D.ACK:return Array.isArray(e);case D.CONNECT_ERROR:return typeof e=="string"||fi(e);default:return!1}}function Dk(t){return Ik(t.nsp)&&$k(t.id)&&Fk(t.type,t.data)}function Rt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var Lk=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),jr=class extends Z{constructor(e,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=e,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 e=this.io;this.subs=[Rt(e,"open",this.onopen.bind(this)),Rt(e,"packet",this.onpacket.bind(this)),Rt(e,"error",this.onerror.bind(this)),Rt(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,...r){var n,o,s;if(Lk.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:D.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let f=this.ids++,u=r.pop();this._registerAckCallback(f,u),i.id=f}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&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[e]=i}emitWithAck(e,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.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(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.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:D.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,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case D.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 D.EVENT:case D.BINARY_EVENT:this.onevent(e);break;case D.ACK:case D.BINARY_ACK:this.onack(e);break;case D.DISCONNECT:this.ondisconnect();break;case D.CONNECT_ERROR:this.destroy();let n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.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 r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:D.ACK,id:e,data:o}))}}onack(e){let r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,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:D.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 r=this._anyListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,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 r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,e.data)}}};function tr(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}tr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};tr.prototype.reset=function(){this.attempts=0};tr.prototype.setMin=function(t){this.ms=t};tr.prototype.setMax=function(t){this.max=t};tr.prototype.setJitter=function(t){this.jitter=t};var Br=class extends Z{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,pe(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 tr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let o=r.parser||uf;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.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 r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.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 Dr(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=Rt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Rt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),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(Rt(e,"ping",this.onping.bind(this)),Rt(e,"data",this.ondata.bind(this)),Rt(e,"error",this.onerror.bind(this)),Rt(e,"close",this.onclose.bind(this)),Rt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){ue(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new jr(this,e,r),this.nsps[e]=n),n}_destroy(e){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let n=0;n<r.length;n++)this.engine.write(r[n],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,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),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 r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var Gn={};function Vr(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=vb(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=Gn[o]&&s in Gn[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Br(n,e):(Gn[o]||(Gn[o]=new Br(n,e)),c=Gn[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Vr,{Manager:Br,Socket:jr,io:Vr,connect:Vr});P();var Mk=new Set(["__proto__","constructor","prototype"]),Mb=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(Mk.has(t[e]))return!1;return!0},Nk=(t,e)=>{!t||!Mb(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},jk=(t,e,r,n=!1)=>{!t||!Mb(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},t)},Nb=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[n,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":Nk(t,o);break;case"update":case"set":jk(t,o,s,!0);break;default:break}return r};P();var jb=(t,e,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Ae(a):sr(r[i],a):r[i]=a}),s&&(r.schema=s))},Bb=(t,e,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=Nb(r,o);if(s.has("state")&&e.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Ae(r.designSystem)};var Bk={success:"green",error:"red",warning:"yellow"},Vb=(t,e,r)=>{if(t.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,e.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,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},zb={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:Bk[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var Vk=!1,zk=()=>Vk?"http://localhost:8080":"https://api.symbols.app",Uk=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e=="string"&&e?{mode:"collab",baseUrl:e}:t&&t.editor&&t.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},Wk=async t=>{try{let e=t||zk(),r=await w.fetch(`${e}/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(e){console.error("[sync] Failed to fetch service-token",e)}},Hb=(t,e,r,n)=>{t.on("snapshot",jb(e,r,n)),t.on("ops",Bb(e,r,n)),t.on("clients",o=>{n.editor?.verbose&&Vb(o,e,r)}),t.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},Hk=async(t,e,r,n)=>{let o=await Wk(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=Vr(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)")}),Hb(a,t,e,r),a},qk=(t,e,r)=>{let n=Vr({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),Hb(n,t,e,r),n.on("reload",()=>{typeof w<"u"&&w.location&&w.location.reload()}),n},Gk=async(t,e,r)=>{let{mode:n,baseUrl:o}=Uk(r);return n?n==="collab"?Hk(t,e,r,o):n==="runner"?qk(t,e,r):null:null},Kk={onInit:Gk};var qb=t=>typeof t>"u",Ub=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),Wb=t=>t?.editor?.runtime==="runner",Gb=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},Kb={name:"sync",beforeCreate(t,e){let r=e&&e.editor;(r&&!qb(r.liveSync)?r.liveSync:Ub(e)||Wb(e))&&(Ub(e)&&!Wb(e)&&!e?.key||Gb(t,Kk))}},Xb={name:"notifications",beforeCreate(t,e){if(!e)return;let r=qb(e.notifications)?null:e.notifications,n=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&n)&&Gb(t,zb)}};P();function Yb(t){return k(t)?t:E(t)?t.find(e=>k(e)):""}function df(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&Yb(t.extends),n=t.parent&&t.parent.childExtends&&Yb(t.parent.childExtends);return(e||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function ui(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:n}=t.context,o=df(t);return n&&n.onInitInspect&&!n.onInitInspect(o,t,t.state)?ui(t.parent):o&&(e[o]||r[o])?t:ui(t.parent)}var Xk=(t,e,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{t.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},pf={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:Xk,onMousemove:(t,e,r)=>{let n=t.target.ref,o=ui(n),s=e.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=df(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:p}=o.node.getBoundingClientRect(),d={x:l,y:f,width:u,height:p};if(!s.area)return a(d);s.area.x!==d.x&&a(d)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,r)=>{if(!r.debugging)return;let n=t.target.ref,o=ui(n);if(!o)return;let s=df(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),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(t,e)=>!(e.area&&e.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:t})=>{let{components:e}=t;if(_(e)){let{Content:r,...n}=e;for(let o in n)An[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(t,e,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:c,height:l}=n;s=`
74
73
  display: block !important;
75
74
  top: ${a-6}px;
76
75
  left: ${i-6}px;
77
76
  width: ${c+12}px;
78
77
  height: ${l+12}px;
79
- `}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},Yb={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(pf):t.extends?t.extends=[t.extends,pf]:t.extends=[pf]}};var Xk=async(t,e={})=>{let r=e.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=e.key=e.key||n||(k(t)?t:"smblsapp");if(e.define=e.define||Rn,e.cssPropsRegistry=lt,e.window=Sy(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(p=>typeof p=="string")){let{resolveSharedLibraries:p}=await Promise.resolve().then(()=>(P(),$d));e.sharedLibraries=await p(e.sharedLibraries)}Py(e)}let[s,i]=Ty(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&Xs.prepareContext(e);let a=Oy(t,e);e.state=a,Bo(a),e.pages=Ry(t,e),e.components=_y(e),e.utils=wy(e),Ue[e.packageManager]&&(e.dependencies=await vy(e)),e.methods=ky(e),e.routerOptions=iy(t,e),e.defaultExtends=[$s],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&_(e.globalScope)&&(e.globalScope=ao(e.globalScope));let c=(u,p)=>{let d=p?u[p]:u;if(!_(d))return;let h=Bt(d);try{Object.assign(d,h)}catch(g){if(p)u[p]=h;else throw g}};c(t),c(e,"components"),c(e,"pages"),c(e,"functions"),c(e,"methods"),c(e,"snippets"),c(e,"app"),e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.db&&e.db.__resolved&&delete e.db.__resolved;let l=u=>e.plugins.some(p=>p.name===u);if(e.polyglot&&!l("polyglot")){e.plugins.push(Fl);for(let u in qs)u in e.functions||(e.functions[u]=qs[u])}if(l("helmet")||e.plugins.push(uy),e.fetch&&!l("fetch")&&e.plugins.push(xa),e.designSystem?.typography?.useCapsize!==!1&&!l("capsize")&&(e.plugins.push(Ly),e.cssPropsRegistry.useCapsize=Dy),e.shorthand&&!l("shorthand")&&e.plugins.push(Xs),e.analyze&&!l("analyze")){let u=e.analyze===!0?{}:e.analyze;e.analyze=Xl(u),e.plugins.push(Nn)}return e.sync!==!1&&!l("sync")&&e.plugins.push(Gb),e.inspect&&!l("inspect")&&e.plugins.push(Yb),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!l("notifications")&&e.plugins.push(Kb),e},hf=async(t,e)=>{_(e)||(e={}),he(t)?(t={},e.parent=t):k(t)?(t={},e.key=t):_(t)||(t={});let r=e.window||(typeof window<"u"?window:null),n=r?.__BRENDER__,o=null;if(n){let c=e.document||(typeof document<"u"?document:null);c&&(o=Array.from(c.head.querySelectorAll("style")))}if(await Xk(t,e),e.useReset!==!1){let c=e.document||(typeof document<"u"?document:null);if(c){let l=c.head.querySelector("style[data-smbls]");l||(l=c.createElement("style"),l.setAttribute("data-smbls",""),c.head.appendChild(l));let f=l.sheet;if(f){try{f.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{f.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&_(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=my(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await Cy({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate=="function")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin "${c.name||"?"}" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return t;let i=e.parent||s.body;if(n)return Yk(Ut,t,i,e,r,o);let a=Ut(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},Yk=async(t,e,r,n,o,s)=>{let i=r.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of r.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f==="script"||f==="link"||f==="style"||f==="svg"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll("[data-br]").forEach(l=>l.removeAttribute("data-br"));let c=t(e,r,n.key,{verbose:n.verbose,context:n,...n.domqlOptions});return Zk(o),c},Zk=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var gf=(t,e)=>q(t,_(e)?e:{}),Jk=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let r=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(r=s)}}catch{}let n=t.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;e.setAttribute("data-theme",o),t.globalTheme=r,t.themeRoot=e},Qk=()=>{if(typeof document>"u")return null;try{let t=document.querySelector('meta[name="symbols-runtime"]'),e=t&&t.getAttribute("content");return typeof e=="string"&&e?e:null}catch{return null}},Zb=t=>{let e=Qk();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},Jb=(t,e=Ee,r)=>{let n={...Ee,...gf(e,r)};return Zb(n),Jk(n),hf(t,n).then(s=>{if(Cl(s,n),s.destroy=()=>Bs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=On(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,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})},SD=(t,e=Ee,r)=>{let n=Jb(t,e,r),o={...Ee,...gf(e,r)},s=o.key;return fy(n,s,{utils:Tn,...o}),n},_D=async(t,e=Ee,r)=>{let n={...Ee,...gf(e,r)};Zb(n);let o=e.key;await ly(o,n);let s=await hf(t,n);return Cl(s,n),s.destroy=()=>Bs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=On(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},wD=(t={},e=Ee,r)=>Jb({deps:{isUndefined:ht},...t},q({domqlOptions:{onlyResolveExtends:!0}},e),r);kl(hc);export{Rh as ANIMATION_PROPS,sR as ARIA_ROLES,Kh as ATTR_TRANSFORMS,Ph as BLOCK_PROPS,Zt as CDN_PROVIDERS,Pa as CONFIG,le as CSS_NATIVE_COLOR_REGEX,lt as CSS_PROPS_REGISTRY,Hr as CSS_UNITS,Os as DEFAULT_CONFIG,xt as DEFAULT_CSS_PROPERTIES_LIST,ws as DELEGATED_EVENTS,gy as DESIGN_SYSTEM_OPTIONS,Uf as DOMQL_EVENTS,Fe as DOMQ_PROPERTIES,gw as DOM_EVENTS,au as ENV,Se as FACTORY,Lh as FLEX_PROPS,Ih as FONT_PROPS,Mh as GRID_PROPS,vc as HTML_ATTRIBUTES,rn as HTML_TAGS,wr as LIFECYCLE_EVENTS,Jr as METHODS,oo as METHODS_EXL,$h as MISC_PROPS,wh as MIXINS,Kt as NODE_ENV,Ro as OPTIONS,Ue as PACKAGE_MANAGER_TO_CDN,no as PARSED_DOMQ_PROPERTIES,Fh as POSITION_PROPS,Le as PROPS_METHODS,Ot as REGISTRY,El as ROUTER_OPTIONS,zf as STATE_PROPERTIES,Ss as SVG_TAGS,Dh as THEME_PROPS,Es as TIMING_PROPS,Jn as TYPES,va as UNIVERSAL_RESERVED_KEYS,hh as VALUE_TRANSFORMERS,TE as activateConfig,na as addCaching,ra as addContext,bc as addDelegatedEvent,Du as addExtend,Et as addExtends,Of as addItemAfterEveryElement,Ts as addMethods,eo as addProtoToArray,Qi as addRef,zS as animation,oc as appendSVGSprite,ic as appendSvgIconsSprite,Zh as applyAttrTransforms,oy as applyCSS,np as applyDependentState,ec as applyDocument,la as applyEvent,fa as applyEventUpdate,vs as applyExtends,ih as applyHeadings,Wh as applyInitialState,hr as applyMediaSequenceVars,vo as applyProps,ac as applyReset,ja as applySequenceGlobalVars,Ge as applySequenceVars,Za as applySpacingSequence,Ht as applyStateMethods,tc as applyTimingSequence,jh as applyTrueProps,Ka as applyTypographySequence,wf as arrayContainsOtherArray,Pf as arraysEqual,fr as arrayzeValue,Ie as batch,BS as breakpoints,ns as buildImgSrcset,os as buildSourcesAndImg,fp as cache,_r as cacheNode,Vp as call,Hp as captureSnapshot,gh as changeGlobalTheme,bS as changeLightness,Ze as checkAttributeByTagName,Yh as checkEventFunctions,Qu as checkForStateTypes,Ya as checkIfBoxSize,ca as checkIfInherits,Ff as checkIfStringIsInArray,KS as class,Gf as clone,go as cloneAndMergeArrayExtend,gu as cloneFunction,PS as color,be as colorStringToRgbaArray,An as components,Pu as concatAddExtends,Ba as convertSvgToSymbol,Cd as copyJavaScriptToClipboard,vd as copyStringToClipboard,Jb as create,SD as createAsync,Ji as createBasedOnType,lx as createComputed,Gd as createConfig,t0 as createDefine,ft as createEffect,Zu as createElement,Mi as createElementExtends,yo as createExtends,nn as createExtendsFromKeys,Vi as createExtendsStack,xs as createHTMLNode,mu as createIfConditionFlag,tp as createInheritedState,uo as createKey,tu as createNestedObject,rp as createNestedObjectByKeyPath,Ti as createObjectWithoutPrototype,ta as createParent,ea as createPath,Co as createProps,Xi as createPropsStack,Yu as createRoot,ip as createScope,wi as createScopeStore,oe as createSignal,wD as createSkeleton,fo as createSnapshotId,aw as createState,jt as createStore,_D as createSync,Xe as css,Wd as cssMediaVars,Ud as cssVars,Vf as customDecodeURIComponent,Bf as customEncodeURIComponent,Ef as cutArrayAfterValue,Af as cutArrayBeforeValue,ho as debounce,pu as debounceOnContext,jf as decodeNewlines,J as deepClone,Jf as deepContains,Qo as deepDefaults,Bt as deepDestringifyFunctions,Li as deepExtend,q as deepMerge,ae as deepMergeExtends,so as deepStringifyFunctions,Rn as defaultDefine,jp as defineSetter,ao as destringifyGlobalScope,Bs as destroy,ed as detectHeightOnInit,ou as detectInfiniteLoop,Sr as detectTag,VS as devices,kr as dispose,Nf as encodeNewlines,lr as error,iu as excludeKeysFromObject,Y as exec,aR as executeAttr,IO as exetuteClassPerComponent,Iu as extendCachedRegistry,bo as extendStackRegistry,So as extractArrayExtend,cR as extractConditionalAttrs,Aa as fetchLibraryData,nd as fibonacciNumberByIndex,If as filterArrays,$f as filterArraysFast,iR as filterAttributesByTagName,zi as finalizeExtends,Ca as findClosestNumber,bd as findClosestNumberInFactory,Jd as findHeadingLetter,Na as findHeadings,aa as findInheritedState,Lf as findKeyPosition,on as flattenExtend,vS as font,ES as fontFace,CS as fontFamily,AS as fontFamilyTypes,Qp as formatDate,$i as generateHash,lo as generateKey,gd as generateMetaTags,$t as generateSequence,e_ as generateSequencePosition,us as generateSprite,La as generateSubSequence,Dp as get,A as getActiveConfig,xh as getActiveDocument,Hs as getActiveLang,Jt as getCDNUrl,L_ as getCacheSize,Nu as getCapitalCaseKeys,gn as getCdnProviderFromConfig,ia as getChildStateInKey,No as getChildren,tt as getColor,Nd as getColorShade,Ho as getContext,ku as getCookie,Yo as getDB,xn as getDefaultOrFirstKey,Rd as getEmotionStylesheet,Lu as getExtendsInElement,mo as getExtendsStack,Di as getExtendsStackRegistry,qe as getFnPrefixAndValue,_S as getFontFace,Sn as getFontFaceEach,zd as getFontFaceEachString,Ta as getFontFaceString,Ga as getFontFamily,Bd as getFontFormat,Xa as getFontSizeByKey,kf as getFrequencyInArray,xo as getHashedExtend,Zp as getImportMapScript,nu as getInObjectByPath,Tl as getLanguages,$l as getLocalStateLang,Cu as getLocalStorage,bt as getMediaColor,te as getMediaTheme,uu as getNev,Ur as getObserver,md as getPageMetadata,sa as getParentStateInKey,jo as getPath,Zo as getQuery,Mp as getRef,pr as getRgbTone,zo as getRoot,Wo as getRootContext,Uo as getRootData,Vo as getRootState,oa as getRootStateInKey,Ma as getSequenceValue,Zd as getSequenceValueBySymbols,we as getSequenceValuePropertyPair,Qa as getShadow,px as getSignals,fe as getSpacingBasedOnRatio,dt as getSpacingByKey,ju as getSpreadChildren,Da as getSubratio,Fa as getSubratioDifference,Wt as getSystemGlobalTheme,Ua as getTheme,zt as getTimingByKey,ee as getTimingFunction,xf as global,IS as gradient,GS as grid,Qr as hasFunction,tn as hasHandlerPlugin,Xf as hasOwnProperty,hS as hexToRgb,Fd as hexToRgbArray,mS as hexToRgba,Md as hslToRgb,DS as icons,ji as inheritChildExtends,Ni as inheritChildPropsExtends,Ao as inheritParentProps,Bi as inheritRecursiveChildExtends,Ae as init,Fy as initPolyglot,Gu as initProps,ct as injectGlobal,Ct as is,T as isArray,ki as isBoolean,ot as isCSSVar,Bu as isContextComponent,su as isCyclic,kt as isDOMNode,Ci as isDate,vt as isDefined,je as isDevelopment,Ai as isEmpty,Yf as isEmptyObject,Ei as isEqualDeep,C as isFunction,is as isGoogleFontsUrl,Zn as isHtmlElement,fu as isLocal,Up as isMethod,_u as isMobile,he as isNode,_f as isNot,ir as isNotProduction,vi as isNull,se as isNumber,_ as isObject,N as isObjectLike,sd as isPhoto,Ne as isProduction,xe as isResolvedColor,Wr as isScalingUnit,lu as isStaging,ep as isState,mt as isStore,k as isString,hu as isStringFunction,_s as isSvgTag,Oi as isTest,cu as isTesting,fw as isTracking,ht as isUndefined,Gp as isUniversallyReservedKey,Ou as isValidHtmlTag,bs as isValidTag,Ww as isWasmLoaded,Kr as joinArrays,Fu as jointStacks,ys as keyframes,wa as keys,fd as loadCssFile,ud as loadJavascript,ad as loadJavascriptFile,ld as loadJavascriptFileEmbedSync,cd as loadJavascriptFileSync,pd as loadRemoteCSS,mn as loadRemoteScript,Rl as loadTranslations,Uw as loadWasm,Bp as log,xu as logGroupIf,bu as logIf,Ip as lookdown,$p as lookdownAll,Pp as lookup,nr as lowercaseFirstLetter,Zf as makeObjectWithoutPrototype,Hf as map,_o as mapStringsWithContextComponents,ce as matchesComponentNaming,TS as media,du as memoize,et as merge,ts as mergeSharedLibraries,dS as mixTwoColors,yS as mixTwoRgb,jd as mixTwoRgba,Go as nextElement,yn as normalizeLibraryKey,_e as numToLetterMap,io as objectToString,ko as objectizeStringProperty,ss as opacify,co as overwrite,At as overwriteDeep,sr as overwriteShallow,op as overwriteState,ka as parse,We as parseColorToken,Lo as parseDeep,qi as pickupElementFromProps,Hi as pickupPropsFromElement,qs as polyglotFunctions,Fl as polyglotPlugin,at as popConfig,Ko as previousElement,qu as propExists,Gi as propertizeElement,Hu as propertizeUpdate,pt as pushConfig,ks as registerEvent,ny as reinit,As as remove,Ad as removeChars,vu as removeCookie,xc as removeDelegatedEvent,To as removeDuplicateProps,Xr as removeDuplicatesInArray,vf as removeFromArray,Qf as removeFromObject,eu as removeNestedKeyByPath,to as removeValueFromArray,Tf as removeValueFromArrayAll,Rf as reorderArrayByValues,rr as replaceLiteralsWithObjectFields,Mf as replaceOctalEscapeSequences,Tt as resolveAsset,lc as resolveColorsInGradient,Gh as resolveFileSource,Qt as resolveFileUrl,en as resolveHandler,Ye as resolvePropValue,wd as resolveSharedLibraries,SS as returnSubThemeOrDefault,Zi as returnValueAsText,Dd as rgbArrayToHex,Ld as rgbToHSL,gS as rgbToHex,Xt as runPluginHook,sh as runThroughMedia,cs as scratchDefaultConfig,gs as scratchSystem,gr as scratchUtils,Sf as self,LS as semanticIcons,He as sequence,kn as set,qd as setActiveConfig,P_ as setActiveDocument,Bo as setActiveRootState,pI as setClass,MO as setClassname,mr as setColor,wu as setCookie,kl as setCssEngineHook,Ea as setCustomFont,dr as setCustomFontMedia,A_ as setEach,qa as setFont,ds as setFontFamily,as as setFontImport,yr as setGradient,Fi as setHashedExtend,Vd as setInCustomFontMedia,ru as setInObjectByPath,Pl as setLang,Au as setLocalStorage,Ha as setMediaTheme,_a as setNodeStyles,cx as setObserver,Lp as setProps,Eo as setPropsPrototype,hs as setSVG,$a as setScalingVar,br as setShadow,Xd as setSubScalingVar,sc as setSvgIcon,Wa as setTheme,C_ as setValue,r_ as setVariables,hc as setWasmEngine,FS as shadow,RS as spacing,Ja as splitSpacedValue,ur as splitTopLevelCommas,dh as splitTransition,Mo as spotByPath,bn as srcsetFor,ro as stringIncludesAny,Kf as stringToObject,US as svg,WS as svgData,Cf as swapItemsInArray,Oo as syncProps,HS as templates,$S as theme,NS as timing,Ra as toCamel,es as toCamelCase,rs as toDashCase,Td as toDescriptionCase,Ed as toTitleCase,Xp as toggleFullscreen,uh as transformBackgroundImage,ke as transformBorder,uc as transformBorderRadius,cc as transformBoxShadow,rw as transformClassname,fc as transformDuration,fh as transformShadow,st as transformSize,j as transformSizeRatio,lh as transformTextStroke,k_ as transformTransition,Bh as transformersByPrefix,ph as transfromGap,Ol as translate,Be as triggerEventOn,lp as triggerEventOnUpdate,Df as trimStringFromSymbols,Oa as typography,wS as unit,Qn as unstackArrayOfObjects,Cs as update,Ku as updateProps,uI as updateVars,Il as upsertTranslation,Lt as useCssInProps,lw as useHostState,tw as usePropsAsCSS,ew as useSelectorsAsCSS,Xo as variables,YS as vars,hn as verbose,qo as warn,w as window};
78
+ `}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},Zb={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(pf):t.extends?t.extends=[t.extends,pf]:t.extends=[pf]}};var Yk=async(t,e={})=>{let r=e.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=e.key=e.key||n||(k(t)?t:"smblsapp");if(e.define=e.define||Rn,e.cssPropsRegistry=lt,e.window=_y(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(p=>typeof p=="string")){let{resolveSharedLibraries:p}=await Promise.resolve().then(()=>(P(),Fd));e.sharedLibraries=await p(e.sharedLibraries)}Iy(e)}let[s,i]=Oy(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&Xs.prepareContext(e);let a=Ry(t,e);e.state=a,Bo(a),e.pages=Py(t,e),e.components=wy(e),e.utils=ky(e),Ue[e.packageManager]&&(e.dependencies=await Cy(e)),e.methods=vy(e),e.routerOptions=ay(t,e),e.defaultExtends=[$s],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&_(e.globalScope)&&(e.globalScope=ao(e.globalScope));let c=(u,p)=>{let d=p?u[p]:u;if(!_(d))return;let h=ie(d);try{Object.assign(d,h)}catch(g){if(p)u[p]=h;else throw g}};c(t),c(e,"components"),c(e,"pages"),c(e,"functions"),c(e,"methods"),c(e,"snippets"),c(e,"app"),e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.db&&e.db.__resolved&&delete e.db.__resolved;let l=u=>e.plugins.some(p=>p.name===u);if(e.polyglot&&!l("polyglot")){e.plugins.push(Fl);for(let u in qs)u in e.functions||(e.functions[u]=qs[u])}if(l("helmet")||e.plugins.push(py),e.fetch&&!l("fetch")&&e.plugins.push(xa),e.designSystem?.typography?.useCapsize!==!1&&!l("capsize")&&(e.plugins.push(My),e.cssPropsRegistry.useCapsize=Ly),e.shorthand&&!l("shorthand")&&e.plugins.push(Xs),e.analyze&&!l("analyze")){let u=e.analyze===!0?{}:e.analyze;e.analyze=Xl(u),e.plugins.push(Nn)}return e.sync!==!1&&!l("sync")&&e.plugins.push(Kb),e.inspect&&!l("inspect")&&e.plugins.push(Zb),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!l("notifications")&&e.plugins.push(Xb),e},hf=async(t,e)=>{_(e)||(e={}),he(t)?(t={},e.parent=t):k(t)?(t={},e.key=t):_(t)||(t={});let r=e.window||(typeof window<"u"?window:null),n=r?.__BRENDER__,o=null;if(n){let c=e.document||(typeof document<"u"?document:null);c&&(o=Array.from(c.head.querySelectorAll("style")))}if(await Yk(t,e),e.useReset!==!1){let c=e.document||(typeof document<"u"?document:null);if(c){let l=c.head.querySelector("style[data-smbls]");l||(l=c.createElement("style"),l.setAttribute("data-smbls",""),c.head.appendChild(l));let f=l.sheet;if(f){try{f.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{f.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&_(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=yy(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await Ay({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate=="function")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin "${c.name||"?"}" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return t;let i=e.parent||s.body;if(n)return Zk(zt,t,i,e,r,o);let a=zt(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},Zk=async(t,e,r,n,o,s)=>{let i=r.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of r.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f==="script"||f==="link"||f==="style"||f==="svg"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll("[data-br]").forEach(l=>l.removeAttribute("data-br"));let c=t(e,r,n.key,{verbose:n.verbose,context:n,...n.domqlOptions});return Jk(o),c},Jk=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var gf=(t,e)=>q(t,_(e)?e:{}),Qk=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let r=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(r=s)}}catch{}let n=t.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;e.setAttribute("data-theme",o),t.globalTheme=r,t.themeRoot=e},tv=()=>{if(typeof document>"u")return null;try{let t=document.querySelector('meta[name="symbols-runtime"]'),e=t&&t.getAttribute("content");return typeof e=="string"&&e?e:null}catch{return null}},Jb=t=>{let e=tv();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},Qb=(t,e=Ee,r)=>{let n={...Ee,...gf(e,r)};return Jb(n),Qk(n),hf(t,n).then(s=>{if(Cl(s,n),s.destroy=()=>Bs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=On(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,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})},_D=(t,e=Ee,r)=>{let n=Qb(t,e,r),o={...Ee,...gf(e,r)},s=o.key;return uy(n,s,{utils:Tn,...o}),n},wD=async(t,e=Ee,r)=>{let n={...Ee,...gf(e,r)};Jb(n);let o=e.key;await fy(o,n);let s=await hf(t,n);return Cl(s,n),s.destroy=()=>Bs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=On(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},kD=(t={},e=Ee,r)=>Qb({deps:{isUndefined:ht},...t},q({domqlOptions:{onlyResolveExtends:!0}},e),r);kl(hc);export{Ph as ANIMATION_PROPS,iR as ARIA_ROLES,Xh as ATTR_TRANSFORMS,Ih as BLOCK_PROPS,Yt as CDN_PROVIDERS,Pa as CONFIG,le as CSS_NATIVE_COLOR_REGEX,lt as CSS_PROPS_REGISTRY,Hr as CSS_UNITS,Os as DEFAULT_CONFIG,xt as DEFAULT_CSS_PROPERTIES_LIST,ws as DELEGATED_EVENTS,my as DESIGN_SYSTEM_OPTIONS,Uf as DOMQL_EVENTS,Fe as DOMQ_PROPERTIES,mw as DOM_EVENTS,cu as ENV,Se as FACTORY,Mh as FLEX_PROPS,$h as FONT_PROPS,Nh as GRID_PROPS,vc as HTML_ATTRIBUTES,rn as HTML_TAGS,wr as LIFECYCLE_EVENTS,Jr as METHODS,oo as METHODS_EXL,Fh as MISC_PROPS,kh as MIXINS,Gt as NODE_ENV,Ro as OPTIONS,Ue as PACKAGE_MANAGER_TO_CDN,no as PARSED_DOMQ_PROPERTIES,Dh as POSITION_PROPS,Le as PROPS_METHODS,Ot as REGISTRY,El as ROUTER_OPTIONS,zf as STATE_PROPERTIES,Ss as SVG_TAGS,Lh as THEME_PROPS,Es as TIMING_PROPS,Jn as TYPES,va as UNIVERSAL_RESERVED_KEYS,gh as VALUE_TRANSFORMERS,OE as activateConfig,na as addCaching,ra as addContext,bc as addDelegatedEvent,Lu as addExtend,Et as addExtends,Of as addItemAfterEveryElement,Ts as addMethods,eo as addProtoToArray,Qi as addRef,US as animation,oc as appendSVGSprite,ic as appendSvgIconsSprite,Jh as applyAttrTransforms,sy as applyCSS,op as applyDependentState,ec as applyDocument,la as applyEvent,fa as applyEventUpdate,vs as applyExtends,ah as applyHeadings,Hh as applyInitialState,hr as applyMediaSequenceVars,vo as applyProps,ac as applyReset,ja as applySequenceGlobalVars,Ge as applySequenceVars,Za as applySpacingSequence,Wt as applyStateMethods,tc as applyTimingSequence,Bh as applyTrueProps,Ka as applyTypographySequence,wf as arrayContainsOtherArray,Pf as arraysEqual,fr as arrayzeValue,Ie as batch,VS as breakpoints,ns as buildImgSrcset,os as buildSourcesAndImg,up as cache,_r as cacheNode,zp as call,qp as captureSnapshot,mh as changeGlobalTheme,xS as changeLightness,Ze as checkAttributeByTagName,Zh as checkEventFunctions,tp as checkForStateTypes,Ya as checkIfBoxSize,ca as checkIfInherits,Ff as checkIfStringIsInArray,XS as class,Kf as clone,go as cloneAndMergeArrayExtend,mu as cloneFunction,IS as color,be as colorStringToRgbaArray,An as components,Iu as concatAddExtends,Ba as convertSvgToSymbol,Ad as copyJavaScriptToClipboard,Cd as copyStringToClipboard,Qb as create,_D as createAsync,Ji as createBasedOnType,fx as createComputed,Kd as createConfig,e0 as createDefine,ft as createEffect,Ju as createElement,Mi as createElementExtends,yo as createExtends,nn as createExtendsFromKeys,Vi as createExtendsStack,xs as createHTMLNode,yu as createIfConditionFlag,ep as createInheritedState,uo as createKey,eu as createNestedObject,np as createNestedObjectByKeyPath,Ti as createObjectWithoutPrototype,ta as createParent,ea as createPath,Co as createProps,Xi as createPropsStack,Zu as createRoot,ap as createScope,wi as createScopeStore,ne as createSignal,kD as createSkeleton,fo as createSnapshotId,cw as createState,jt as createStore,wD as createSync,Xe as css,Hd as cssMediaVars,Wd as cssVars,Vf as customDecodeURIComponent,Bf as customEncodeURIComponent,Ef as cutArrayAfterValue,Af as cutArrayBeforeValue,ho as debounce,du as debounceOnContext,jf as decodeNewlines,Q as deepClone,Qf as deepContains,Qo as deepDefaults,ie as deepDestringifyFunctions,Li as deepExtend,q as deepMerge,ae as deepMergeExtends,so as deepStringifyFunctions,Rn as defaultDefine,Bp as defineSetter,ao as destringifyGlobalScope,Bs as destroy,rd as detectHeightOnInit,su as detectInfiniteLoop,Sr as detectTag,zS as devices,kr as dispose,Nf as encodeNewlines,lr as error,au as excludeKeysFromObject,Y as exec,cR as executeAttr,$O as exetuteClassPerComponent,$u as extendCachedRegistry,bo as extendStackRegistry,So as extractArrayExtend,lR as extractConditionalAttrs,Aa as fetchLibraryData,od as fibonacciNumberByIndex,If as filterArrays,$f as filterArraysFast,aR as filterAttributesByTagName,zi as finalizeExtends,Ca as findClosestNumber,xd as findClosestNumberInFactory,Qd as findHeadingLetter,Na as findHeadings,aa as findInheritedState,Lf as findKeyPosition,on as flattenExtend,CS as font,TS as fontFace,AS as fontFamily,ES as fontFamilyTypes,td as formatDate,$i as generateHash,lo as generateKey,md as generateMetaTags,$t as generateSequence,r_ as generateSequencePosition,us as generateSprite,La as generateSubSequence,Lp as get,A as getActiveConfig,Sh as getActiveDocument,Hs as getActiveLang,Zt as getCDNUrl,M_ as getCacheSize,ju as getCapitalCaseKeys,gn as getCdnProviderFromConfig,ia as getChildStateInKey,No as getChildren,tt as getColor,jd as getColorShade,Ho as getContext,vu as getCookie,Yo as getDB,xn as getDefaultOrFirstKey,Pd as getEmotionStylesheet,Mu as getExtendsInElement,mo as getExtendsStack,Di as getExtendsStackRegistry,qe as getFnPrefixAndValue,wS as getFontFace,Sn as getFontFaceEach,Ud as getFontFaceEachString,Ta as getFontFaceString,Ga as getFontFamily,Vd as getFontFormat,Xa as getFontSizeByKey,kf as getFrequencyInArray,xo as getHashedExtend,Jp as getImportMapScript,ou as getInObjectByPath,Tl as getLanguages,$l as getLocalStateLang,Au as getLocalStorage,bt as getMediaColor,Qt as getMediaTheme,pu as getNev,Ur as getObserver,yd as getPageMetadata,sa as getParentStateInKey,jo as getPath,Zo as getQuery,Np as getRef,pr as getRgbTone,zo as getRoot,Wo as getRootContext,Uo as getRootData,Vo as getRootState,oa as getRootStateInKey,Ma as getSequenceValue,Jd as getSequenceValueBySymbols,we as getSequenceValuePropertyPair,Qa as getShadow,dx as getSignals,fe as getSpacingBasedOnRatio,dt as getSpacingByKey,Bu as getSpreadChildren,Da as getSubratio,Fa as getSubratioDifference,Ut as getSystemGlobalTheme,Ua as getTheme,Vt as getTimingByKey,te as getTimingFunction,xf as global,$S as gradient,KS as grid,Qr as hasFunction,tn as hasHandlerPlugin,Yf as hasOwnProperty,gS as hexToRgb,Dd as hexToRgbArray,yS as hexToRgba,Nd as hslToRgb,LS as icons,ji as inheritChildExtends,Ni as inheritChildPropsExtends,Ao as inheritParentProps,Bi as inheritRecursiveChildExtends,Ae as init,Dy as initPolyglot,Ku as initProps,ct as injectGlobal,Ct as is,E as isArray,ki as isBoolean,ot as isCSSVar,Vu as isContextComponent,iu as isCyclic,kt as isDOMNode,Ci as isDate,vt as isDefined,je as isDevelopment,Ai as isEmpty,Zf as isEmptyObject,Ei as isEqualDeep,C as isFunction,is as isGoogleFontsUrl,Zn as isHtmlElement,uu as isLocal,Wp as isMethod,wu as isMobile,he as isNode,_f as isNot,ir as isNotProduction,vi as isNull,oe as isNumber,_ as isObject,N as isObjectLike,id as isPhoto,Ne as isProduction,xe as isResolvedColor,Wr as isScalingUnit,fu as isStaging,rp as isState,mt as isStore,k as isString,gu as isStringFunction,_s as isSvgTag,Oi as isTest,lu as isTesting,uw as isTracking,ht as isUndefined,Kp as isUniversallyReservedKey,Ru as isValidHtmlTag,bs as isValidTag,Hw as isWasmLoaded,Kr as joinArrays,Du as jointStacks,ys as keyframes,wa as keys,ud as loadCssFile,pd as loadJavascript,cd as loadJavascriptFile,fd as loadJavascriptFileEmbedSync,ld as loadJavascriptFileSync,dd as loadRemoteCSS,mn as loadRemoteScript,Rl as loadTranslations,Ww as loadWasm,Vp as log,Su as logGroupIf,xu as logIf,$p as lookdown,Fp as lookdownAll,Ip as lookup,nr as lowercaseFirstLetter,Jf as makeObjectWithoutPrototype,qf as map,_o as mapStringsWithContextComponents,ce as matchesComponentNaming,OS as media,hu as memoize,et as merge,ts as mergeSharedLibraries,hS as mixTwoColors,bS as mixTwoRgb,Bd as mixTwoRgba,Go as nextElement,yn as normalizeLibraryKey,_e as numToLetterMap,io as objectToString,ko as objectizeStringProperty,ss as opacify,co as overwrite,At as overwriteDeep,sr as overwriteShallow,sp as overwriteState,ka as parse,We as parseColorToken,Lo as parseDeep,qi as pickupElementFromProps,Hi as pickupPropsFromElement,qs as polyglotFunctions,Fl as polyglotPlugin,at as popConfig,Ko as previousElement,Gu as propExists,Gi as propertizeElement,qu as propertizeUpdate,pt as pushConfig,ks as registerEvent,oy as reinit,As as remove,Ed as removeChars,Cu as removeCookie,xc as removeDelegatedEvent,To as removeDuplicateProps,Xr as removeDuplicatesInArray,vf as removeFromArray,tu as removeFromObject,ru as removeNestedKeyByPath,to as removeValueFromArray,Tf as removeValueFromArrayAll,Rf as reorderArrayByValues,rr as replaceLiteralsWithObjectFields,Mf as replaceOctalEscapeSequences,Tt as resolveAsset,lc as resolveColorsInGradient,Kh as resolveFileSource,Jt as resolveFileUrl,en as resolveHandler,Ye as resolvePropValue,kd as resolveSharedLibraries,_S as returnSubThemeOrDefault,Zi as returnValueAsText,Ld as rgbArrayToHex,Md as rgbToHSL,mS as rgbToHex,Kt as runPluginHook,ih as runThroughMedia,cs as scratchDefaultConfig,gs as scratchSystem,gr as scratchUtils,Sf as self,MS as semanticIcons,He as sequence,kn as set,Gd as setActiveConfig,I_ as setActiveDocument,Bo as setActiveRootState,dI as setClass,NO as setClassname,mr as setColor,ku as setCookie,kl as setCssEngineHook,Ea as setCustomFont,dr as setCustomFontMedia,E_ as setEach,qa as setFont,ds as setFontFamily,as as setFontImport,yr as setGradient,Fi as setHashedExtend,zd as setInCustomFontMedia,nu as setInObjectByPath,Pl as setLang,Eu as setLocalStorage,Ha as setMediaTheme,_a as setNodeStyles,lx as setObserver,Mp as setProps,Eo as setPropsPrototype,hs as setSVG,$a as setScalingVar,br as setShadow,Yd as setSubScalingVar,sc as setSvgIcon,Wa as setTheme,A_ as setValue,n_ as setVariables,hc as setWasmEngine,DS as shadow,PS as spacing,Ja as splitSpacedValue,ur as splitTopLevelCommas,hh as splitTransition,Mo as spotByPath,bn as srcsetFor,ro as stringIncludesAny,Xf as stringToObject,WS as svg,HS as svgData,Cf as swapItemsInArray,Oo as syncProps,qS as templates,FS as theme,jS as timing,Ra as toCamel,es as toCamelCase,rs as toDashCase,Od as toDescriptionCase,Td as toTitleCase,Yp as toggleFullscreen,ph as transformBackgroundImage,ke as transformBorder,uc as transformBorderRadius,cc as transformBoxShadow,nw as transformClassname,fc as transformDuration,uh as transformShadow,st as transformSize,j as transformSizeRatio,fh as transformTextStroke,v_ as transformTransition,Vh as transformersByPrefix,dh as transfromGap,Ol as translate,Be as triggerEventOn,fp as triggerEventOnUpdate,Df as trimStringFromSymbols,Oa as typography,kS as unit,Qn as unstackArrayOfObjects,Cs as update,Xu as updateProps,pI as updateVars,Il as upsertTranslation,Lt as useCssInProps,fw as useHostState,ew as usePropsAsCSS,rw as useSelectorsAsCSS,Xo as variables,ZS as vars,hn as verbose,qo as warn,w as window};