smbls 3.14.13 → 3.14.15

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,43 +1,43 @@
1
- var uv=Object.create;var gi=Object.defineProperty;var pv=Object.getOwnPropertyDescriptor;var dv=Object.getOwnPropertyNames;var hv=Object.getPrototypeOf,mv=Object.prototype.hasOwnProperty;var F=(e,t)=>()=>(e&&(t=e(e=0)),t);var yi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),C=(e,t)=>{for(var r in t)gi(e,r,{get:t[r],enumerable:!0})},gv=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of dv(t))!mv.call(e,n)&&n!==r&&gi(e,n,{get:()=>t[n],enumerable:!(o=pv(t,n))||o.enumerable});return e};var yv=(e,t,r)=>(r=e!=null?uv(hv(e)):{},gv(t||!e||!e.__esModule?gi(r,"default",{value:e,enumerable:!0}):r,e));var Qf,eu,_,q,Yr=F(()=>{"use strict";Qf=globalThis,eu=globalThis,_=globalThis,q=_.document});var mt,en,we,Xr=F(()=>{"use strict";Yr();mt=e=>(typeof Node=="object"?e instanceof _.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,en=e=>(typeof HTMLElement=="object"?e instanceof _.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,we=e=>typeof _<"u"&&(_.Node&&e instanceof _.Node||_.Window&&e instanceof _.Window||e===_||e===document)});var v,S,at,k,_i,ki,E,Ci,L,me,oe,tn,_e,tu,ae=F(()=>{"use strict";Xr();v=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,S=e=>typeof e=="string",at=e=>typeof e=="number",k=e=>typeof e=="function",_i=e=>e===!0||e===!1,ki=e=>e===null,E=e=>Array.isArray(e),Ci=e=>e instanceof Date,L=e=>e===null?!1:typeof e=="object",me=e=>e!==void 0,oe=e=>e===void 0,tn={boolean:_i,array:E,object:v,string:S,date:Ci,number:at,null:ki,function:k,objectLike:L,node:mt,htmlElement:en,defined:me},_e=e=>(...t)=>t.some(r=>tn[r](e)),tu=e=>(...t)=>!t.some(r=>tn[r](e))});var ru,ou,nu,su,Zr,rn,iu,au,on,cu,lu,fu,uu,pu,du,hu,Jr,nn,rr=F(()=>{"use strict";ct();ae();ru=(e,t)=>t.every(r=>e.includes(r)),ou=(e,t)=>{let r=0;for(let o=0;o<e.length;o++)e[o]===t&&r++;return r},nu=(e,t)=>{if(S(t)&&(t=parseInt(t)),at(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},su=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Zr=(...e)=>[].concat(...e),rn=(e,t=[])=>e.reduce((r,o)=>W(r,Y(o,{exclude:t}),t),{}),iu=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},au=(e,t)=>{if(!E(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},on=(e,t)=>{let r=e.indexOf(t);if(r>-1){let o=[...e];return o.splice(r,1),o}return e},cu=(e,t)=>e.filter(r=>r!==t),lu=(e,t)=>{let r=[];for(let o=0;o<e.length;o++)r.push(e[o]),o<e.length-1&&r.push(t);return r},fu=(e,t,r)=>{let o=[...e],n=o.indexOf(t),s=o.indexOf(r);if(n!==-1&&s!==-1){let i=o.splice(n,1)[0],a=s<n?s:s+1;o.splice(a,0,i)}return o},uu=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},pu=(e,t)=>e.filter(r=>!t.includes(r)),du=(e,t)=>{let r=new Set(t);return e.filter(o=>!r.has(o))},hu=(e,t)=>{if(!e)return 0;let r=0;for(let o=0;o<t.length;o++)e.includes(t[o])&&r++;return r},Jr=e=>E(e)?[...new Set(e)]:e,nn=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function or(e,t,r={}){let{bracketsLength:o=2}=r,n=o===3?"{{{":"{{";if(!e.includes(n))return e;let s=_v[o],i=t||this.state||{},a=this;return e.replace(s,(c,l,f,p)=>{let u=f.trim();if(p){let d=a?.context,h=d?.functions?.[p]||d?.utils?.[p]||d?.methods?.[p]||d?.snippets?.[p]||a?.[p];if(h&&typeof h=="function")try{return String(h.call(a,u)??"")}catch{return""}return""}if(l){let d=(l.match(/\.\.\//g)||[]).length,h=i;for(let g=0;g<d;g++){if(!h||!h.parent)return"";h=h.parent}if(u==="parent")return String(h.value??"");let m=Qr(h,u);return String(m??"")}else{let d=Qr(i,u);if(d!=null)return String(d);let h=a?.context?.polyglot;if(h?.translations){let m=i?.root?.lang||i?.lang||a?.context?.state?.lang||h.defaultLang||"en",g=h.translations[m];if(g){let b=Qr(g,u);if(b!=null&&typeof b!="object")return String(b);for(let x in g){let w=g[x];if(w&&typeof w=="object"&&!Array.isArray(w)){let O=Qr(w,u);if(O!=null&&typeof O!="object")return String(O)}}}let y=Qr(h.translations,u);if(y!=null&&typeof y!="object")return String(y)}return""}})}var sn,mu,_v,Qr,nr,gu,kv,yu,bu,xu,Cv,vu,Su,eo=F(()=>{"use strict";sn=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},mu=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},_v={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Qr=(e,t)=>t.split(".").reduce((r,o)=>r?.[o],e);nr=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,gu=(e,t)=>{let r=e.split(`
2
- `),o=-1,n=-1,s=-1,i=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<r.length;f++)if(a.test(r[f])&&!l){if(l=!0,o=f+1,s=r[f].indexOf(t)+1,r[f].includes("{}")){n=o,i=r[f].indexOf("{}")+3;break}let p=r[f].slice(s+t.length);if(p.includes("{")||p.includes("["))c=1;else{n=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)){n=f+1,i=r[f].lastIndexOf("}")!==-1?r[f].lastIndexOf("}")+2:r[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:o,endLineNumber:n}},kv=/\\([0-7]{1,3})/g,yu=e=>e.replace(kv,(t,r)=>String.fromCharCode(parseInt(r,8))),bu=e=>e.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),xu=e=>e.replace(/\/\/\/\/\/n/g,`
3
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),Cv=/[^a-zA-Z0-9\s]/g,vu=e=>e.replace(Cv,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),Su=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))});var Dt,an,wu,Lt,Mt,to,cn,_u,sr=F(()=>{"use strict";Dt=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"]),an=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),wu=["ref","parent","__element","__depends","__ref","__children","root"],Lt=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"]),Mt=new Set(["update","__element"]),to=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"]),cn=new Set(["node","context","extends","__element","__ref",...to,...Lt,...Mt]),_u=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var ku,Nt,V,Cu,J,W,Au,Eu,Y,ln,Av,fn,Ev,Tv,ro,Ov,je,un,Tu,Ou,Ai,Ru,Pu,pn,ir,ke,Ei,Rv,Iu,$u,Ti,Fu,Du,Lu,Mu,Nu,Bu,ju,ct=F(()=>{"use strict";Yr();ae();rr();eo();Xr();sr();ku="production",Nt=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,V=(e,t,r,o)=>{if(k(e))return t?typeof e.call!="function"?e:e.call(t,t,r||t.state,o||t.context):void 0;if(e!=null&&t?.context?.plugins&&(E(e)||v(e)&&!we(e))){let n=t.context.plugins;for(let s of n)if(s.resolveHandler){let i=s.resolveHandler(e,t);if(typeof i=="function")return V(i,t,r,o)}}return e},Cu=(e,t,r)=>{for(let o in t)e[o]=V(t[o],r)},J=(e,t,r=[])=>{let o=r instanceof Set;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(Nt(n)||(o?r.has(n):r.includes(n))||e[n]===void 0&&(e[n]=t[n]));return e},W=(e,t,r=cn)=>Au(e,t,r,null),Au=(e,t,r,o)=>{if(e===t)return e;if(o){for(let s=0;s<o.length;s+=2)if(o[s]===e&&o[s+1]===t)return e}let n=r instanceof Set;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||Nt(s)||s==="constructor"||s==="prototype"||(n?r.has(s):r.includes(s)))continue;let i=e[s],a=t[s];if(L(i)&&L(a)){let c=o||[];c.push(e,t),Au(i,a,r,c),c.length-=2}else i===void 0&&(e[s]=a)}return e},Eu=(e,t=[])=>{let r=t instanceof Set,o={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Nt(n)||(r?t.has(n):t.includes(n))||(o[n]=e[n]));return o},Y=(e,t={})=>{let{exclude:r=[],cleanUndefined:o=!1,cleanNull:n=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=t,c=s||_||globalThis;if(!L(e)||we(e))return e;if(i.has(e))return i.get(e);let f=E(e)?[]:{};i.set(e,f);let p=r instanceof Set?r:r.length>3?new Set(r):null;for(let u in e){if(!Object.prototype.hasOwnProperty.call(e,u)||Nt(u)||u==="__proto__"||(p?p.has(u):r.includes(u)))continue;let d=e[u];if(!(o&&d===void 0)&&!(n&&d===null)){if(we(d)){f[u]=d;continue}if(a&&u==="extends"&&E(d)){f[u]=rn(d,r);continue}if(k(d)){f[u]=d;continue}L(d)?f[u]=Y(d,{...t,visited:i}):f[u]=d}}return f},ln=(e,t={})=>{(e.node||e.__ref||e.parent||e.__element||e.parse)&&((e.__element||e.parent?.__element).warn("Trying to clone element or state at",e),e=e.parse?.());for(let r in e){let o=e[r];if(k(o))t[r]=o.toString();else if(v(o))t[r]={},ln(o,t[r]);else if(E(o)){let n=t[r]=[];for(let s=0;s<o.length;s++){let i=o[s];v(i)?(n[s]={},ln(i,n[s])):k(i)?n[s]=i.toString():n[s]=i}}else t[r]=o}return t},Av=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),fn=(e={},t=0)=>{if(e===null||typeof e!="object")return String(e);let r=!1;for(let s in e){r=!0;break}if(!r)return"{}";let o=" ".repeat(t),n=`{
4
- `;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=e[s],a=!1;for(let l=0;l<s.length;l++)if(Av.has(s[l])){a=!0;break}let c=a?`'${s}'`:s;if(n+=`${o} ${c}: `,E(i)){n+=`[
5
- `;for(let l of i)L(l)&&l!==null?n+=`${o} ${fn(l,t+2)},
6
- `:S(l)?n+=`${o} '${l}',
1
+ var Wb=Object.create;var fi=Object.defineProperty;var Hb=Object.getOwnPropertyDescriptor;var qb=Object.getOwnPropertyNames;var Gb=Object.getPrototypeOf,Kb=Object.prototype.hasOwnProperty;var I=(t,e)=>()=>(t&&(e=t(t=0)),e);var ui=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$=(t,e)=>{for(var r in e)fi(t,r,{get:e[r],enumerable:!0})},Yb=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of qb(e))!Kb.call(t,n)&&n!==r&&fi(t,n,{get:()=>e[n],enumerable:!(o=Hb(e,n))||o.enumerable});return t};var Xb=(t,e,r)=>(r=t!=null?Wb(Gb(t)):{},Yb(e||!t||!t.__esModule?fi(r,"default",{value:t,enumerable:!0}):r,t));var df,hf,k,q,Ur=I(()=>{"use strict";df=globalThis,hf=globalThis,k=globalThis,q=k.document});var de,Ko,xt,Wr=I(()=>{"use strict";Ur();de=t=>(typeof Node=="object"?t instanceof k.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,Ko=t=>(typeof HTMLElement=="object"?t instanceof k.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,xt=t=>typeof k<"u"&&(k.Node&&t instanceof k.Node||k.Window&&t instanceof k.Window||t===k||t===document)});var S,w,ne,C,yi,bi,T,xi,L,St,ct,Yo,_t,gf,it=I(()=>{"use strict";Wr();S=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,w=t=>typeof t=="string",ne=t=>typeof t=="number",C=t=>typeof t=="function",yi=t=>t===!0||t===!1,bi=t=>t===null,T=t=>Array.isArray(t),xi=t=>t instanceof Date,L=t=>t===null?!1:typeof t=="object",St=t=>t!==void 0,ct=t=>t===void 0,Yo={boolean:yi,array:T,object:S,string:w,date:xi,number:ne,null:bi,function:C,objectLike:L,node:de,htmlElement:Ko,defined:St},_t=t=>(...e)=>e.some(r=>Yo[r](t)),gf=t=>(...e)=>!e.some(r=>Yo[r](t))});var mf,yf,bf,xf,Hr,Xo,Sf,_f,Zo,wf,kf,vf,Cf,Af,Ef,Tf,qr,Jo,tr=I(()=>{"use strict";se();it();mf=(t,e)=>e.every(r=>t.includes(r)),yf=(t,e)=>{let r=0;for(let o=0;o<t.length;o++)t[o]===e&&r++;return r},bf=(t,e)=>{if(w(e)&&(e=parseInt(e)),ne(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},xf=(t,e,r)=>{e<0||r<0||e>=t.length||r>=t.length||([t[e],t[r]]=[t[r],t[e]])},Hr=(...t)=>[].concat(...t),Xo=(t,e=[])=>t.reduce((r,o)=>W(r,Y(o,{exclude:e}),e),{}),Sf=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},_f=(t,e)=>{if(!T(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},Zo=(t,e)=>{let r=t.indexOf(e);if(r>-1){let o=[...t];return o.splice(r,1),o}return t},wf=(t,e)=>t.filter(r=>r!==e),kf=(t,e)=>{let r=[];for(let o=0;o<t.length;o++)r.push(t[o]),o<t.length-1&&r.push(e);return r},vf=(t,e,r)=>{let o=[...t],n=o.indexOf(e),s=o.indexOf(r);if(n!==-1&&s!==-1){let i=o.splice(n,1)[0],a=s<n?s:s+1;o.splice(a,0,i)}return o},Cf=(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},Af=(t,e)=>t.filter(r=>!e.includes(r)),Ef=(t,e)=>{let r=new Set(e);return t.filter(o=>!r.has(o))},Tf=(t,e)=>{if(!t)return 0;let r=0;for(let o=0;o<e.length;o++)t.includes(e[o])&&r++;return r},qr=t=>T(t)?[...new Set(t)]:t,Jo=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function er(t,e,r={}){let{bracketsLength:o=2}=r,n=o===3?"{{{":"{{";if(!t.includes(n))return t;let s=rx[o],i=e||this.state||{},a=this;return t.replace(s,(c,l,f,p)=>{let u=f.trim();if(p){let d=a?.context,h=d?.functions?.[p]||d?.utils?.[p]||d?.methods?.[p]||d?.snippets?.[p]||a?.[p];if(h&&typeof h=="function")try{return String(h.call(a,u)??"")}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(u==="parent")return String(h.value??"");let g=Gr(h,u);return String(g??"")}else{let d=Gr(i,u);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=Gr(m,u);if(b!=null&&typeof b!="object")return String(b);for(let x in m){let _=m[x];if(_&&typeof _=="object"&&!Array.isArray(_)){let v=Gr(_,u);if(v!=null&&typeof v!="object")return String(v)}}}let y=Gr(h.translations,u);if(y!=null&&typeof y!="object")return String(y)}return""}})}var Qo,Of,rx,Gr,rr,Rf,ox,Pf,If,$f,nx,Ff,Df,Kr=I(()=>{"use strict";Qo=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},Of=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},rx={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Gr=(t,e)=>e.split(".").reduce((r,o)=>r?.[o],t);rr=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Rf=(t,e)=>{let r=t.split(`
2
+ `),o=-1,n=-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,o=f+1,s=r[f].indexOf(e)+1,r[f].includes("{}")){n=o,i=r[f].indexOf("{}")+3;break}let p=r[f].slice(s+e.length);if(p.includes("{")||p.includes("["))c=1;else{n=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)){n=f+1,i=r[f].lastIndexOf("}")!==-1?r[f].lastIndexOf("}")+2:r[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:o,endLineNumber:n}},ox=/\\([0-7]{1,3})/g,Pf=t=>t.replace(ox,(e,r)=>String.fromCharCode(parseInt(r,8))),If=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),$f=t=>t.replace(/\/\/\/\/\/n/g,`
3
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),nx=/[^a-zA-Z0-9\s]/g,Ff=t=>t.replace(nx,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Df=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var $e,tn,Lf,Fe,De,Yr,en,Mf,or=I(()=>{"use strict";$e=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"]),tn=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Lf=["ref","parent","__element","__depends","__ref","__children","root"],Fe=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"]),De=new Set(["update","__element"]),Yr=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"]),en=new Set(["node","context","extends","__element","__ref",...Yr,...Fe,...De]),Mf=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Nf,Le,G,jf,Z,W,Bf,Vf,Y,rn,sx,on,ix,ax,Xr,cx,Nt,nn,zf,Uf,Si,Wf,Hf,sn,nr,wt,_i,lx,qf,Gf,wi,Kf,Yf,Xf,Zf,Jf,Qf,tu,se=I(()=>{"use strict";Ur();it();tr();Kr();Wr();or();Nf="production",Le=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,G=(t,e,r,o)=>{if(C(t))return e?typeof t.call!="function"?t:t.call(e,e,r||e.state,o||e.context):void 0;if(t!=null&&e?.context?.plugins&&(T(t)||S(t)&&!xt(t))){let n=e.context.plugins;for(let s of n)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i=="function")return G(i,e,r,o)}}return t},jf=(t,e,r)=>{for(let o in e)t[o]=G(e[o],r)},Z=(t,e,r=[])=>{let o=r instanceof Set;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Le(n)||(o?r.has(n):r.includes(n))||t[n]===void 0&&(t[n]=e[n]));return t},W=(t,e,r=en)=>Bf(t,e,r,null),Bf=(t,e,r,o)=>{if(t===e)return t;if(o){for(let s=0;s<o.length;s+=2)if(o[s]===t&&o[s+1]===e)return t}let n=r instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Le(s)||s==="constructor"||s==="prototype"||(n?r.has(s):r.includes(s)))continue;let i=t[s],a=e[s];if(L(i)&&L(a)){let c=o||[];c.push(t,e),Bf(i,a,r,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},Vf=(t,e=[])=>{let r=e instanceof Set,o={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(Le(n)||(r?e.has(n):e.includes(n))||(o[n]=t[n]));return o},Y=(t,e={})=>{let{exclude:r=[],cleanUndefined:o=!1,cleanNull:n=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=e,c=s||k||globalThis;if(!L(t)||xt(t))return t;if(i.has(t))return i.get(t);let f=T(t)?[]:{};i.set(t,f);let p=r instanceof Set?r:r.length>3?new Set(r):null;for(let u in t){if(!Object.prototype.hasOwnProperty.call(t,u)||Le(u)||u==="__proto__"||(p?p.has(u):r.includes(u)))continue;let d=t[u];if(!(o&&d===void 0)&&!(n&&d===null)){if(xt(d)){f[u]=d;continue}if(a&&u==="extends"&&T(d)){f[u]=Xo(d,r);continue}if(C(d)){f[u]=d;continue}L(d)?f[u]=Y(d,{...e,visited:i}):f[u]=d}}return f},rn=(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 o=t[r];if(C(o))e[r]=o.toString();else if(S(o))e[r]={},rn(o,e[r]);else if(T(o)){let n=e[r]=[];for(let s=0;s<o.length;s++){let i=o[s];S(i)?(n[s]={},rn(i,n[s])):C(i)?n[s]=i.toString():n[s]=i}}else e[r]=o}return e},sx=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),on=(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 o=" ".repeat(e),n=`{
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(sx.has(s[l])){a=!0;break}let c=a?`'${s}'`:s;if(n+=`${o} ${c}: `,T(i)){n+=`[
5
+ `;for(let l of i)L(l)&&l!==null?n+=`${o} ${on(l,e+2)},
6
+ `:w(l)?n+=`${o} '${l}',
7
7
  `:n+=`${o} ${l},
8
- `;n+=`${o} ]`}else L(i)?n+=fn(i,t+1):S(i)?n+=sn(i,[`
8
+ `;n+=`${o} ]`}else L(i)?n+=on(i,e+1):w(i)?n+=Qo(i,[`
9
9
  `,"'"])?`\`${i}\``:`'${i}'`:n+=i;n+=`,
10
- `}return n+=`${o}}`,n},Ev=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],Tv=/^["[{]/,ro=e=>{if(!e)return!1;let t=e.trim().replace(/\n\s*/g," ").trim();if(t===""||t==="{}"||t==="[]"||!Ev.some(s=>s.test(t)))return!1;let o=t.charCodeAt(0),n=t.includes("=>");return!(o===123&&!n||o===91||Tv.test(t)&&!n)},Ov=e=>(0,eval)(e),je=(e,t={},r={window:{eval:Ov}})=>{for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;let n=e[o];if(S(n))if(ro(n))try{t[o]=r.window.eval(`(${n})`)}catch(s){typeof console<"u"&&console.warn&&console.warn('[smbls] deepDestringifyFunctions: eval failed on "'+o+'" \u2014 function will be left as a string and el.call("'+o+'") will silently no-op. Reason: '+(s&&s.message?s.message:String(s))+`.
11
- First 200 chars of source: `+String(n).slice(0,200)),t[o]=n}else t[o]=n;else if(E(n)){let s=t[o]=[];for(let i=0;i<n.length;i++){let a=n[i];if(S(a))if(ro(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 "${o}"). Reason: ${c&&c.message?c.message:String(c)}.
12
- First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else v(a)?s.push(je(a)):s.push(a)}}else v(n)?t[o]=je(n,t[o]):t[o]=n}return t},un=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let o of Object.keys(e)){let n=e[o];S(n)&&ro(n)?r.push([o,n]):t[o]=n}for(let[o,n]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
13
- `);t[o]=_.eval(`(function(__gs__) { ${s}
14
- return (${n}); })`)(t)}catch{try{t[o]=_.eval(`(${n})`)}catch{t[o]=n}}return t},Tu=(e,t={verbose:!0})=>{try{return e?_.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},Ou=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),Ai=e=>{for(let t in e)return!1;return!0},Ru=e=>v(e)&&Ai(e),Pu=()=>Object.create(null),pn=(e,t,r={})=>{let o=r.exclude||[],n=r.preventUnderscore;for(let s in t)o.includes(s)||!n&&Nt(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},ir=(e,t,r=[])=>{let o=r instanceof Set;for(let n in t)Nt(n)||n==="constructor"||n==="prototype"||(o?r.has(n):r.includes(n))||(e[n]=t[n]);return e},ke=(e,t,r={},o=new WeakMap)=>{if(!L(e)||!L(t)||we(e)||we(t))return t;if(o.has(e))return o.get(e);o.set(e,e);let n=r.exclude,s=n?n instanceof Set?n:new Set(n):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&Nt(a)||a==="constructor"||a==="prototype")continue;let c=e[a],l=t[a];we(l)?e[a]=l:L(c)&&L(l)?e[a]=ke(c,l,r,o):l!==void 0&&(e[a]=l)}return e},Ei=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(let s=0;s<o.length;s++){let i=o[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!Ei(e[i],t[i],r))return!1}return!0},Rv=new Set(["node","__ref"]),Iu=(e,t,r=Rv)=>{if(e===t)return!0;if(!L(e)||!L(t)||we(e)||we(t))return e===t;let o=r instanceof Set?r:new Set(r),n=new WeakSet;function s(i,a){if(n.has(a))return!0;n.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||o.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(we(l)||we(f)){if(l!==f)return!1}else if(L(l)&&L(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(e,t)},$u=(e,t)=>{if(t==null)return e;if(_e(t)("string","number"))delete e[t];else if(E(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},Ti=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Ti(e[r]));return t},Fu=(e,t)=>{if(e.length===0)return t;let r={},o=r;for(let n=0;n<e.length;n++)n===e.length-1&&t?o[e[n]]=t:(o[e[n]]={},o=o[e[n]]);return r},Du=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length-1;n++){if(r[t[n]]===void 0)return;r=r[t[n]]}let o=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,o)&&delete r[o]},Lu=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let o=e;for(let n=0;n<t.length-1;n++)(!o[t[n]]||typeof o[t[n]]!="object")&&(o[t[n]]={}),o=o[t[n]];return o[t[t.length-1]]=r,e},Mu=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length;o++){if(r==null)return;r=r[t[o]]}return r},Nu=e=>{let r=[],o=0;for(let n=0;n<e.length;n++)if(r.length<2)r.push(e[n]);else if(e[n]===r[n%2]?o++:(r=[e[n-1],e[n]],o=1),o>=20)return(ku==="test"||ku==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},Bu=e=>{let t=new WeakSet;function r(o){if(o&&typeof o=="object"){if(t.has(o))return!0;t.add(o);for(let n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&r(o[n]))return console.log(o,"cycle at "+n),!0}return!1}return r(e)},ju=(e,t)=>{let r=t instanceof Set?t:new Set(t),o={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&!r.has(n)&&(o[n]=e[n]);return o}});var dn,hn,mn,gn=F(()=>{"use strict";ct();dn=(function(){let e=0;function t(){return e++,e}return t})(),hn=dn,mn=(e,t,r)=>(V(r,e)||r||e.key||dn()).toString()});var Ze,zu,Bt,Oi,Wu,Vu,Hu,jt,Uu,ar,Ri=F(()=>{"use strict";Ze="production",zu=Ze,Bt=(e=Ze)=>e==="production",Oi=(e=Ze)=>e==="testing"||e==="test",Wu=Oi,Vu=(e=Ze)=>e==="staging",Hu=(e=Ze)=>e==="local",jt=(e=Ze)=>e==="development"||e==="dev"||e==="local",Uu=(e,t=Ze)=>t[e],ar=(e=Ze)=>!Bt(e)});function yn(e,t,r){let o;return function(){let n=this,s=arguments,i=function(){o=null,r||e.apply(n,s)},a=r&&!o;clearTimeout(o),o=setTimeout(i,t),a&&e.apply(n,s)}}function Yu(e,t=window){let r=function(){return e.apply(t,arguments)};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}var qu,Gu,Pv,Ku,oo,no,Je,cr=F(()=>{"use strict";qu=(e,t,r=300)=>{let o;return(...n)=>{clearTimeout(o),o=setTimeout(()=>{t.apply(e,n)},r)}},Gu=e=>{let t={};return(...r)=>{let o=r[0];if(o in t)return t[o];{let n=e(o);return t[o]=n,n}}},Pv=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Ku=e=>Pv.test(e),oo=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},no=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let o of r)if(o.resolveHandler){let n=o.resolveHandler(e,t);if(typeof n=="function")return n}return e},Je=(e,t,...r)=>{let o=t?.context?.plugins;if(!o)return!1;let n=!1;for(let s of o)typeof s[e]=="function"&&(s[e](t,...r),n=!0);return n}});var Xu,Zu=F(()=>{"use strict";ae();ct();Xu=(e,t)=>{let{__ref:r}=e,o=e.if;if(k(o)){let n;try{n=o(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}n?r.__if=!0:delete r.__if}else o!=null&&typeof o=="object"?V(o,e)?r.__if=!0:delete r.__if:r.__if=!0}});var Ju,Qu,ep=F(()=>{"use strict";Ju=(e,...t)=>{e&&t.map(r=>console.log(r))},Qu=(e,t,...r)=>{e&&(console.group(t),r.map(o=>console.log(o)),console.groupEnd(t))}});function sp(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function ip(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var tp,rp,op,np,ap=F(()=>{"use strict";ae();Yr();tp=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),rp=(e,t,r=365)=>{if(oe(q)||oe(q.cookie))return;let o=new Date;o.setTime(o.getTime()+r*24*60*60*1e3);let n=`expires=${o.toUTCString()}`;q.cookie=`${e}=${t};${n};path=/`},op=e=>{if(oe(q)||oe(q.cookie))return;let t=`${e}=`,o=decodeURIComponent(q.cookie).split(";");for(let n=0;n<o.length;n++){let s=o[n];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return""},np=e=>{oe(q)||oe(q.cookie)||(q.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var so,cp,lp,Pi=F(()=>{"use strict";so={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"])},cp=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"]),lp=e=>so.body.has(e)});var Ii,fp,io,vn,Ce,up,$i,Sn,pp,wn,Fi,Di,_n,Li,ao,Iv,lt,dp,bn,kn,hp,xn,mp,gp,Mi,Ni,Bi,ji,zi,Wi,yp,Cn=F(()=>{"use strict";rr();Vi();ct();ae();Ii="production",fp=e=>e.sourcemap!==!1&&Ii!=="production",io=e=>{if(e.includes("+"))return e.split("+").filter(ft);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!ft(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},vn=(e,t,r)=>{let o=[],n=io(r);n&&(o=[...n]);let s=e.extends;return s&&(o=E(s)?[...o,...s]:[...o,s]),o},Ce=(e,t)=>{let{__ref:r}=t,{__extends:o}=r;if(!e)return o;let n=t.variant,s=t.context;if(n&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${n}`;s.components[i]&&(e=i)}return o.includes(e)||(o=Array.isArray(e)?[...o,...e]:[...o,e],r.__extends=o),o},up=(e,t)=>{if(!e)return t;let{extends:r}=t,o=E(r)?r:[r],n=E(e)?e:[e];return{...t,extends:Zr(n,o)}},$i=()=>Math.random().toString(36).substring(2),Sn={},pp={},wn=e=>Sn[e.__hash],Fi=(e,t)=>{let r=$i();return S(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(Sn[r]=t),t},Di=(e,t)=>e.__hash?t.concat(wn(e)):Fi(e,t),_n=(e,t,r,o=new Set,n,s)=>{for(let i of e)E(i)?_n(i,t,r,o,n,s):ao(i,t,r,o,n,void 0,s);return t},Li=(e,t,r,o=new Set,n,s,i)=>{let a=e.extends,c={...e};delete c.extends;let l=!1;for(let f in c){l=!0;break}return l&&(t.push(c),n&&n.push(s)),a&&ao(a,t,r,o,n,s,i),t},ao=(e,t,r,o=new Set,n,s,i)=>{if(!e||o.has(e))return t;if(E(e))return _n(e,t,r,o,n,i);let a=s;return S(e)?(a=e,e=kn(e,r)):i&&v(e)&&i.has(e)&&(a=i.get(e)),o.add(e),e?.extends?Li(e,t,r,o,n,a,i):e&&(t.push(e),n&&n.push(a)),t},Iv=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),lt=(e,t,r,o,n)=>{t=Y(t);for(let s in t){if(Iv.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&o?v(a)&&!E(a)?(r[s]=r[s]||{},dp(r[s],a,o)):r[s]=o:r&&n?.[s]&&(r[s]=n[s]);else if(v(i)&&v(a)){let c=r?r[s]=r[s]||{}:void 0,l=n?.[s];ft(s)?e[s]=lt(i,a,c,o,l):lt(i,a,c,o,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(E(i)&&E(a))e[s]=i.concat(a);else if(E(i)&&v(a)){let c=lt({},i);e[s]=lt(c,a)}}}}return e},dp=(e,t,r,o)=>{if(o||(o=new WeakSet),!o.has(t)){o.add(t);for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="__proto__"||n==="constructor"||n==="prototype")continue;let s=t[n];v(s)&&!E(s)?(e[n]=e[n]||{},dp(e[n],s,r,o)):e[n]=r}}},bn=(e,t,r)=>e.reduce((o,n,s)=>{let i=Y(n),a=r?r[s]:void 0;return lt(o,i,t,a)},{}),kn=(e,t,r={},o)=>{let n=t?.components||r.components,s=t?.pages||r.pages;if(S(e)){let i=n&&(n[e+"."+o]||n[e]||n["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Ii==="test"||Ii==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},hp=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),xn=(e,t,r,o)=>{if(!e)return[];if(e.__hash)return wn(e)||[];let s=ao(e,[],t,new Set,r,void 0,o);return r?s:Di(e,s)},mp=(e,t)=>{if(!e)return t;let r=E(e)?e:[e];return Zr(r,t)},gp=e=>{let t=[];function r(o){for(let n in o)Object.prototype.hasOwnProperty.call(o,n)&&(ft(n)&&t.push(n),n==="extends"&&(typeof o[n]=="string"?t.push(o[n]):Array.isArray(o[n])&&(t=t.concat(o[n]))),typeof o[n]=="object"&&o[n]!==null&&r(o[n]))}return r(e),t},Mi=(e,t,r={})=>{let{__ref:o}=e,n=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&n?.components){let c=`${i}.${s}`;n.components[c]?Ce([c,...a],e):Ce(e.extends,e)}else Ce(e.extends,e)}else if(typeof e.extends=="string"&&s&&n?.components){let i=`${e.extends}.${s}`;n.components[i]?Ce(i,e):Ce(e.extends,e)}else Ce(e.extends,e);return Ni(e,t,r),Bi(e,t,r),ji(e,t,r),e.component&&Ce(V(e.component,e),e),n.defaultExtends&&Ce(n.defaultExtends,e),Jr(o.__extends)},Ni=(e,t,r={})=>{let{__ref:o}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Ce(t.childProps.extends,e),o.__extends},Bi=(e,t,r={})=>{let{__ref:o}=e,n=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!n&&s&&Ce(s,e),o.__extends},ji=(e,t,r={})=>{let{__ref:o}=e,n=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return n&&!i&&!s&&Ce(n,e),o.__extends},zi=(e,t,r={})=>{let{__ref:o}=e,n=e.context||t.context,s=e.variant,i=fp(r),a=i?[...o.__extends]:null,c=Jr(o.__extends.map((l,f)=>kn(l,n,r,f===0&&s)));if(i){let l=new WeakMap;for(let u=0;u<c.length;u++){let d=c[u],h=a[u];d&&v(d)&&S(h)&&l.set(d,h)}let f=[],p=xn(c,n,f,l);o.__extendsStack=p,o.__extendsNames=f}else{let l=xn(c,n);o.__extendsStack=l}return o.__extendsStack},Wi=(e,t,r={})=>{let{__ref:o}=e,{__extendsStack:n}=o;if(fp(r)){let s={},i=o.__extendsNames||[],a=bn(n,s,i),c={};lt(e,a,c,void 0,s),o.__sourcemap=c}else{let s=bn(n);lt(e,s)}return e},yp=(e,t,r={})=>(Mi(e,t,r),zi(e,t,r),Wi(e,t,r),e)});function bp(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function xp(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function vp(e,t,r){let{context:o}=t||{},[n]=io(r),s=r||n;return o?.components?.[s]||o?.pages?.[s]}var ft,Vi=F(()=>{"use strict";Cn();ae();ft=e=>{if(!S(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function Sp(e,t){let{props:r,on:o}=t,n=nr(e.split("on")[1]),s=o[n],i=r[e];k(s)?o[n]=(...a)=>{if(s(...a)!==!1&&k(i))return i(...a)}:o[n]=i}var wp=F(()=>{"use strict";eo();ae()});function Ui(e,t={}){let r=t.cachedKeys||[];for(let o in e){let n=e[o];if(o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o[2]===o[2].toUpperCase()&&(k(n)||n!=null&&oo(this.context))){let h=nr(o.slice(2));e.on&&(e.on[h]=n),delete e[o];continue}if(o==="childProps"){e.props[o]=n,delete e[o],r.push(o);continue}let a=this.define?.[o],c=this.context?.define?.[o],l=v(a)||k(a),f=v(c)||k(c);if(l||f)continue;let p=o.charAt(0);if(kp.has(p)){e.props[o]=n,delete e[o],r.push(o);continue}let u=Hi.test(o)||_p.test(o)||Fv(n),d=Dt.has(o);!u&&!d&&(o in e.props||(e.props[o]=n),delete e[o],r.push(o))}return e}function qi(e=this,t){let r=t.cachedKeys||[];for(let o in e.props){let n=e.props[o],s=o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110,i=k(n)||n!=null&&oo(this.context);if(s&&i){Sp(o,e),delete e.props[o];continue}if(r.includes(o)||o==="childProps")continue;let a=o.charAt(0);if(kp.has(a))continue;let c=this.define?.[o],l=this.context?.define?.[o],f=v(c)||k(c),p=v(l)||k(l),u=Hi.test(o)||_p.test(o),d=Dt.has(o);(u||d||f||p)&&(e[o]===void 0||n===null)&&(e[o]=n,e.props&&delete e.props[o])}return e}function Gi(e=this){let t=[];return Ui.call(this,e,{cachedKeys:t}),qi.call(this,e,{cachedKeys:t}),e}function Cp(e={}){return e.on||(e.on={}),e.props||(e.props={}),Gi.call(this,e)}function Ki(e,t){this.__element.update({props:e},t)}function Rn(e){let t={update:Ki.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Hi,_p,kp,$v,Fv,Tn,An,Ap,On,Pn,In,Yi,En,Ep,Tp,Xi=F(()=>{"use strict";sr();wp();ct();ae();eo();cr();Hi=/^[A-Z]/,_p=/^\d+$/,kp=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),$v=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),Fv=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if($v.has(t)||Hi.test(t))return!0;return!1},Tn=(e,t,r)=>{let{props:o,__ref:n}=e;if(n.__propsStack=[],o)n.__initialProps=o;else return{};return L(o)?{...o}:(n.__propsStack.push(o),{})};An=e=>_e(e)("string","number")?{inheritedString:e}:e,Ap=(e,t)=>!e||!t.length?!1:t.includes(e),On=(e,t)=>{let{__ref:r}=e,o=r.__propsStack||[],n=t.props;if(!n)return o;let s=n[e.key],i=n.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let c=An(i);o.unshift(c)}if(s){let c=An(s);o.unshift(c)}return o};Pn=e=>{let t=new Set;return e.filter(r=>!r||Mt.has(r)||t.has(r)?!1:(t.add(r),!0))},In=(e,t,r)=>(t.props=e.reduce((o,n)=>{if(Mt.has(n))return o;for(;k(n);)n=V(n,t);return W(o,Y(n,{exclude:Mt}))},{}),Rn(t),t.props),Yi=(e,t)=>{let{props:r,__ref:o}=e,n=o.__propsStack||[];if(t?.props&&(n=[...On(e,t)]),v(r)?n.push(r):r==="inherit"&&t?.props?n.push(t.props):r&&n.push(r),E(o.__extendsStack))for(let s=0;s<o.__extendsStack.length;s++){let i=o.__extendsStack[s];i.props&&i.props!==r&&n.push(i.props)}return o.__propsStack=Pn(n),o.__propsStack},En=(e,t)=>{let{__ref:r}=e,o=Yi(e,t);o.length?In(o,e):(r.__propsStack=[],e.props={})},Ep=function(e,t,r){let{__ref:o}=e;if(o.__if)En(e,t);else try{En(e,t)}catch(n){e.context?.designSystem?.verbose&&console.warn("initProps error at",o.path?.join("."),n),e.props={},o.__propsStack=[]}return Rn(e),e},Tp=(e,t,r)=>{let{__ref:o}=t,s=[...o.__propsStack||[]],i=On(t,r);return i.length&&(s=[...i,...s]),e&&(s=[e,...s]),o.__propsStack=Pn(s),o.__propsStack.length&&In(o.__propsStack,t),t}});var Op,Zi,Ji,Qi,ea,Rp,ta,ra,oa,Pp,Ip=F(()=>{"use strict";Cn();gn();Xr();Xi();Pi();ae();Op="production",Zi=(e,t,r)=>{let o=t.childExtends&&t.childExtends.tag,n=t.childProps&&t.childProps.tag,s=so.body.has(r)&&r;return{text:e,tag:o||n||s||"string"}},Ji=(e,t,r)=>{if(e===void 0)return(Op==="test"||Op==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:_e(e)("string","number")?Zi(e,t,r):k(e)?{props:e}:e},Qi=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},ea=(e,t,r,o,n)=>{if(!t)return n;if(mt(t)){let s={key:":root",node:t};return n[`${r}_parent`]=s,s}return t},Rp=(e,t)=>{let{__ref:r}=e,{__ref:o}=t,n=t&&t.key===":root";r?.root||(r.root=n?e:o?.root)},ta=(e,t,r)=>{let{__ref:o}=t;return o||(o=t.ref={}),o.path||(o.path=[]),o.path.concat(r)},ra=(e,t,r,o,n)=>(o.context&&!n.context&&!e.context&&(n.context=o.context),o.context||t.context||n.context||e.context),oa=(e,t,r)=>{let o=Qi(e,t);return e.__ref=o,o.__defineCache||(o.__defineCache={}),o.__exec||(o.__exec={}),o.__execProps||(o.__execProps={}),o.__class||(o.__class={}),o.__classNames||(o.__classNames={}),o.__attr||(o.__attr={}),o.__changes||(o.__changes=[]),o.__children||(o.__children=[]),o.__extends=vn(e,t,r),o.path=ta(e,t,r),o},Pp=(e,t,r,o,n)=>{let i=e?.__hash?{extends:[e]}:Ji(e,t,r);if(!i)return;let a=ea(i,t,r,o,n),c=mn(i,a,r);oa(i,a,c);let l=Tn(i,a,c),f=ra(i,a,c,o,n),p=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:p}}});var $p,na,sa,ia,aa,Fp,ca,Dp,Lp,Mp,Np,Bp=F(()=>{"use strict";rr();sr();ct();ae();$p=e=>{let{state:t,props:r,__ref:o}=e,n=r?.state||t;return _e(n)("string","number")?(o.__state=n,{value:n}):n===!0?(o.__state=e.key,{}):n?(o.__hasRootState=!0,n):!1},na=(e,t)=>{if(!e.includes("~/"))return;if(e.split("~/").length>1)return t.root},sa=(e,t)=>{if(!e.includes("../"))return;let o=e.split("../").length-1;for(let n=0;n<o;n++){if(!t.parent)return null;t=t.parent}return t},ia=(e,t,r={})=>{let o=S(e)?e.split("/"):[e],n=o.length-1;for(let s=0;s<n;s++){let i=o[s],a=o[s+1];if(i==="__proto__"||a==="__proto__")return;let c=t[i];c||(c=t[i]={}),c[a]||(c[a]={}),e=a,t=c}return r.returnParent?t:t[e]},aa=(e,t,r={})=>{let n=e.__ref.__state;if(!ca(e))return;let s=na(n,t.state),i=t.state;if(s)i=s,n=n.replaceAll("~/","");else{let a=sa(n,t.state);a&&(i=a,n=n.replaceAll("../",""))}if(i)return ia(n,i,r)},Fp=(e,t)=>{let r=e.__ref,o=aa(e,t);if(o===void 0)return e.state;if(_e(o)("object","array"))return Y(o);if(_e(o)("string","number","boolean"))return r.__stateType=typeof o,{value:o};console.warn(r.__state,"is not present. Replacing with",{})},ca=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&_e(r)("number","string","boolean"))},Dp=function(e){return L(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},Lp=(e,t)=>{if(!e)return t||{};let r=e.split("/"),o={},n=o,s=r.length-1;for(let i=0;i<=s;i++)n[r[i]]=i===s?t||{}:{},n=n[r[i]];return o},Mp=(e,t)=>{let{__element:r}=t,o=r?.state;if(!o)return;let n=Y(o,Lt),s={[e.key]:n},i=v(o.__depends)?{...o.__depends,...s}:s;return Array.isArray(o)?nn(o,{...Object.getPrototypeOf(o),__depends:i}):Object.setPrototypeOf(o,{...Object.getPrototypeOf(o),__depends:i}),n},Np=(e,t,r={})=>{let{overwrite:o}=r;if(!o)return;let n=o==="shallow";if(o==="merge"){W(e,t,Lt);return}(n?ir:ke)(e,t,Lt)}});var jp,zp=F(()=>{"use strict";jp=(e,t)=>{let{__ref:r}=e,o=e.context||t.context||r.root?.context;o&&!o.globalScope&&(o.globalScope={});let n=t.scope||r.root?.scope,s=o?.globalScope;if(!e.scope)n?e.scope=n:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=n||s;i&&Object.setPrototypeOf(e.scope,i)}}});var Wp,la,zt,fa,Vp,ua=F(()=>{"use strict";ae();cr();Wp=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},la=(e,t,r,o,n)=>{if(e=no(e,t),!!k(e))try{let s=e.call(t,t,r||t.state,o||t.context,n);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},zt=(e,t,r)=>{if(!t)throw new Error("Element is required");Je(e,t,r);let o=Wp(e,t);if(o){let{state:n,context:s}=t;return la(o,t,n,s,r)}},fa=(e,t,r,o,n,s)=>{if(e=no(e,r),!!k(e))try{let i=e.call(r,t,r,o||r.state,n||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}},Vp=(e,t,r,o)=>{Je(e,r,t,o);let n=Wp(e,r);if(n){let{state:s,context:i}=r;return fa(n,t,r,s,i,o)}}});var Hp,$n,pa=F(()=>{"use strict";Hp={},$n={}});var Gp={};C(Gp,{setup:()=>Lv,supabaseAdapter:()=>qp});var Up,Dv,Lv,da,Mv,qp,Kp=F(()=>{"use strict";Up=new Map,Dv=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,Lv=async({url:e,key:t,projectId:r,createClient:o,auth:n,retry:s,adapter:i,...a})=>{let c=e||r&&`https://${r}.supabase.co`;if(!c||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");o||(o=(await import("@supabase/supabase-js")).createClient),n===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let l=Dv(c,t,n===!1),f=Up.get(l);return f||(f=await o(c,t,a),f?.auth&&Up.set(l,f)),!f||!f.auth?null:qp(f)},da=(e,t)=>{if(!t)return e;for(let r in t){let o=t[r];if(o===null)e=e.is(r,null);else if(Array.isArray(o))e=e.in(r,o);else if(typeof o=="object")for(let n in o)n==="gt"?e=e.gt(r,o[n]):n==="gte"?e=e.gte(r,o[n]):n==="lt"?e=e.lt(r,o[n]):n==="lte"?e=e.lte(r,o[n]):n==="neq"?e=e.neq(r,o[n]):n==="like"?e=e.like(r,o[n]):n==="ilike"?e=e.ilike(r,o[n]):n==="in"?e=e.in(r,o[n]):n==="is"?e=e.is(r,o[n]):n==="contains"?e=e.contains(r,o[n]):n==="containedBy"?e=e.containedBy(r,o[n]):n==="textSearch"&&(e=e.textSearch(r,o[n]));else e=e.eq(r,o)}return e},Mv=(e,{limit:t,offset:r,order:o,single:n}={})=>{if(o)if(Array.isArray(o))for(let s of o){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof o=="string"?o:o.by;e=e.order(s,{ascending:o.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),n&&(e=e.single()),e},qp=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((o,n)=>t(o,n));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:o,params:n,headers:s,...i})=>{let c=(r?e.schema(r):e).from(t).select(o||"*");if(c=da(c,n),c=Mv(c,i),s)try{for(let l in s)c.setHeader?c=c.setHeader(l,s[l]):e.rest&&(e.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return c},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:o,select:n})=>(r?e.schema(r):e).from(t).insert(o).select(n||"*"),update:({from:t,schema:r,data:o,params:n,select:s})=>{let a=(r?e.schema(r):e).from(t).update(o);return a=da(a,n),a.select(s||"*")},upsert:({from:t,schema:r,data:o,select:n})=>(r?e.schema(r):e).from(t).upsert(o).select(n||"*"),delete:({from:t,params:r})=>{let o=e.from(t).delete();return o=da(o,r),o},subscribe:({from:t,params:r,on:o},n)=>{let s=o||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>n(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:o,options:n})=>e.storage.from(t).upload(r,o,n),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})});var Xp={};C(Xp,{restAdapter:()=>Yp,setup:()=>Bv});var Nv,gt,Bv,Yp,Zp=F(()=>{"use strict";Nv=(e,t,r)=>{let o=t&&!t.startsWith("/")?"/":"",n=new URL(`${e}${o}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&n.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return n.toString()},gt=async(e,t)=>{let r=await globalThis.fetch(e,t),o=r.headers.get("content-type"),n=o&&o.includes("json")?await r.json():await r.text();return{data:n,error:r.ok?null:n?.message||n?.error||r.statusText,status:r.status}},Bv=async({url:e,headers:t,auth:r,fetchOptions:o})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return Yp(e,t,r,o)},Yp=(e,t={},r,o={})=>{let n=r?.token||null,s=f=>{let p={...t,...f};return n&&(p.Authorization=`Bearer ${n}`),p},i=f=>({...s(f),"Content-Type":"application/json"}),a=f=>({...o,...f}),c=(f,p)=>{let u=p||e;if(f&&(f.startsWith("http://")||f.startsWith("https://")))return f;let d=f&&!f.startsWith("/")?"/":"";return`${u}${d}${f||""}`};return{name:"rest",setToken:f=>{n=f},getSession:async()=>{if(!r?.sessionUrl)return n?{token:n}:null;let f=await gt(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 p=await gt(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(f)}));return p.data?.token&&(n=p.data.token),p},signOut:async()=>(r?.signOutUrl&&await gt(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),n=null,{error:null}),select:({from:f,params:p,select:u,limit:d,offset:h,order:m,single:g,headers:y,baseUrl:b})=>{let x={...p};return u&&(x.select=u),d&&(x.limit=d),h&&(x.offset=h),g&&(x.single=!0),m&&(typeof m=="string"?x.order=m:Array.isArray(m)?x.order=m.map(w=>`${w.by}:${w.asc===!1?"desc":"asc"}`).join(","):m.by&&(x.order=`${m.by}:${m.asc===!1?"desc":"asc"}`)),gt(Nv(b||e,f||"",x),a({headers:s(y)}))},rpc:({from:f,params:p,headers:u,baseUrl:d})=>gt(c(`rpc/${f}`,d),a({method:"POST",headers:i(u),body:JSON.stringify(p)})),insert:({from:f,data:p,headers:u,baseUrl:d})=>gt(c(f,d),a({method:"POST",headers:i(u),body:JSON.stringify(p)})),update:({from:f,data:p,params:u,method:d,headers:h,baseUrl:m})=>{let g=u?.id||p?.id,y=g?`${f}/${g}`:f;return gt(c(y,m),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(p)}))},delete:({from:f,params:p,headers:u,baseUrl:d})=>{let h=p?.id,m=h?`${f}/${h}`:f;return gt(c(m,d),a({method:"DELETE",headers:s(u)}))}}}});var Qp={};C(Qp,{localAdapter:()=>Jp,setup:()=>zv});var ha,jv,zv,Jp,ed=F(()=>{"use strict";ha=(e,t)=>{if(!t)return!0;for(let r in t){let o=t[r];if(o===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(o)){if(!o.includes(e[r]))return!1}else if(typeof o=="object"){for(let n in o)if(n==="gt"&&!(e[r]>o[n])||n==="gte"&&!(e[r]>=o[n])||n==="lt"&&!(e[r]<o[n])||n==="lte"&&!(e[r]<=o[n])||n==="neq"&&e[r]===o[n]||n==="like"&&!String(e[r]).includes(o[n]))return!1}else if(e[r]!==o)return!1}return!0},jv=(e,{order:t,limit:r,offset:o,single:n})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[i]?a?1:-1:0)}return o&&(s=s.slice(o)),r&&(s=s.slice(0,r)),n?{data:s[0]||null,error:null}:{data:s,error:null}},zv=async({data:e,...t})=>Jp(e,t),Jp=(e={},t={})=>{let r={},o={},n=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=f=>{if(!r[f])if(n)try{let p=localStorage.getItem(s+f);r[f]=p?JSON.parse(p):e[f]||[]}catch{r[f]=e[f]||[]}else r[f]=e[f]||[];return r[f]},a=f=>{if(n)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},c=(f,p,u,d)=>{let h=o[f];if(h)for(let m of h)m(u,d,{event:p,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:p,...u})=>{let h=i(f).filter(m=>ha(m,p));return jv(h,u)},insert:async({from:f,data:p})=>{let u=i(f),h=(Array.isArray(p)?p:[p]).map(m=>{let g={id:m.id||++l,...m};return u.push(g),g});a(f);for(let m of h)c(f,"INSERT",m,null);return{data:Array.isArray(p)?h:h[0],error:null}},update:async({from:f,data:p,params:u})=>{let d=i(f),h=[];for(let m=0;m<d.length;m++)if(ha(d[m],u)){let g={...d[m]};Object.assign(d[m],p),h.push(d[m]),c(f,"UPDATE",d[m],g)}return a(f),{data:h,error:null}},delete:async({from:f,params:p})=>{let u=i(f),d=[];for(let h=u.length-1;h>=0;h--)ha(u[h],p)&&(d.push(u[h]),u.splice(h,1),c(f,"DELETE",null,d[d.length-1]));return a(f),{data:d,error:null}},subscribe:({from:f,on:p},u)=>{o[f]||(o[f]=[]);let d=(h,m,g)=>{p&&p!=="*"&&p!==g.event||u(h,m,g)};return o[f].push(d),()=>{let h=o[f].indexOf(d);h>-1&&o[f].splice(h,1)}}}}});var go={};C(go,{createAdapter:()=>Hv,default:()=>eS,executeFetch:()=>mo,fetchPlugin:()=>xa,initAdapterAuth:()=>Ln,parseDuration:()=>lo,queryClient:()=>Qv,registerAdapter:()=>Vv,resolveDb:()=>sd});var Wv,nd,Vv,Hv,sd,lo,ge,id,co,Uv,ho,fo,uo,Fn,ya,Dn,qv,td,ma,ad,cd,lr,rd,Gv,od,Kv,Mn,ld,Ln,ba,Oe,ze,po,Wt,Qe,yt,Yv,Xv,Zv,ga,Jv,mo,Qv,xa,eS,Vt=F(()=>{"use strict";T();Wv=["select","rpc","insert","update","delete","subscribe"],nd={supabase:()=>Promise.resolve().then(()=>(Kp(),Gp)),rest:()=>Promise.resolve().then(()=>(Zp(),Xp)),local:()=>Promise.resolve().then(()=>(ed(),Qp))},Vv=(e,t)=>{nd[e]=t},Hv=e=>{let t={};for(let r of Wv)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},sd=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,o=typeof t=="string"?t:typeof e=="string"?e:null;if(!o)return null;let n=nd[o];if(!n)throw new Error(`Unknown db adapter: "${o}". Use registerAdapter() for adapters with optional deps.`);return(await n()).setup(r)},lo=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),o=t[2];return o==="ms"?r:o==="s"?r*1e3:o==="m"?r*6e4:o==="h"?r*36e5:0},ge=new Map,id=new Map,co=new Map,Uv=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=Kv(e.params),o=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${o}:${t}`:o},ho=e=>ge.get(e)||null,fo=(e,t,r)=>{let o=ge.get(e),n={data:t,error:r,time:Date.now(),stale:!1};ge.set(e,n);let s=id.get(e);if(s)for(let i of s)k(i)&&i(n);return n},uo=e=>{if(e){let t=ge.get(e);t&&(t.stale=!0);return}for(let[,t]of ge)t.stale=!0},Fn=e=>{if(e){ge.delete(e);return}ge.clear()},ya=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:S(e)?{staleTime:lo(e),gcTime:3e5}:{staleTime:lo(e.stale||e.staleTime)||6e4,gcTime:lo(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Dn=null,qv=()=>{Dn||(Dn=setInterval(()=>{let e=Date.now();for(let[t,r]of ge){let o=id.get(t);!(o&&o.size>0)&&e-r.time>(r.gcTime||3e5)&&ge.delete(t)}},3e4),Dn.unref&&Dn.unref())};qv();td=3,ma=e=>Math.min(1e3*2**e,3e4),ad=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:td,delay:ma}:typeof t=="number"?{count:t,delay:ma}:{count:t.count??td,delay:k(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:ma}},cd=async(e,t)=>{let{count:r,delay:o}=t,n;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(n=i.error,s<r){let a=k(o)?o(s,n):o;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(n=i,s<r){let a=k(o)?o(s,i):o;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:n}},lr={focus:new Set,online:new Set},rd=!1,Gv=()=>{if(rd||typeof window>"u")return;rd=!0;let e=()=>{for(let r of lr.focus)r()},t=()=>{for(let r of lr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},od=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(S(e))return{from:e,method:"select",query:!0,on:"create"};if(v(e)){let o={...e};return o.from=o.from||r.__state||t.key,o.method=o.method||"select",o.on=o.on||"create",o.query===void 0&&(o.query=!0),o}return null},Kv=e=>(!e||k(e),e),Mn=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},ld=(e,t,r)=>{let o;if(!e)o=void 0;else if(k(e))o=e(t,t.state);else{o={};for(let n in e){let s=e[n];o[n]=k(s)?s(t,t.state):s}}return o},Ln=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(o,n)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:o,session:n,loading:!1}})};try{let o=await e.getSession();r(o?.user||null,o)}catch(o){console.warn("[fetch] Failed to restore auth session:",o.message)}e.onAuthStateChange&&e.onAuthStateChange((o,n)=>{r(n?.user||null,n)})},ba=async(e,t)=>{if(k(e.select))return e.auth!==!1&&await Ln(e,t),e;if(e.__resolved)return e.auth!==!1&&await Ln(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=sd(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await Ln(r,t),r):null},Oe=(e,t,...r)=>{let o=k(e[t])?e[t]:null;o&&o.call(e,...r,e,e.state,e.context)},ze=(e,t,r,...o)=>{let n=e&&k(e[r])?e[r]:null;n&&n.call(t,...o,t,t.state,t.context)},po=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let n=new FormData(r);for(let[s,i]of n.entries())t[s]=i;return t}let o=r.querySelectorAll("input, textarea, select");for(let n=0;n<o.length;n++){let s=o[n],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},Wt=(e,t,r,o={})=>{let n=r&&r.startsWith("~/"),s=n&&e.state?.root||e.state;if(s?.update)if(n){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...o}):s.update({[i]:t},{preventFetch:!0,...o})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...o})}},Qe=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},yt=async(e,t,r,o={})=>{let n=r?.fetch;if(!n||!t||!t.__ref||e.enabled===!1||k(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||k(e.skip)&&e.skip(t,t.state))return;let s=await ba(n,r);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:c,query:l,params:f,cache:p,transform:u,single:d,auth:h,fields:m,as:g,limit:y,offset:b,order:x,headers:w,baseUrl:O,page:$,cursor:P,getNextPageParam:I,getPreviousPageParam:R,infinite:B,placeholderData:pe,initialData:Z,select:K,keepPreviousData:Le}=e,Me=S(K)?K:void 0;if(l&&k(t.getQuery)){let U=t.getQuery(s.name||"paths");U&&(Me=U.select||U.length&&U.join(",")||Me)}let Xe=ld(f,t,r),Ne=ya(p),Xo=ad(e),di=Mn(t,r),lv=di?`:${di}`:"",ee=Ne?p?.key||`${a}:${c}:${JSON.stringify(Xe||"")}${B?":infinite":""}${$?":p"+JSON.stringify($):""}${lv}`:null;if(!i.__fetchInitialized&&ee&&(i.__fetchInitialized=!0,Z!==void 0)){let U=k(Z)?Z():Z;fo(ee,U,null)}if((c==="select"||c==="rpc")&&ee&&Ne){let U=ho(ee);if(U&&!U.error){let j=Date.now()-U.time,Q=U.stale||j>(Ne.staleTime||0),N=U.data;if(k(K)&&(N=K(N,t,t.state)),u&&(N=u(N,t,t.state)),Wt(t,N,g),!Q){Qe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(pe!==void 0){let j=k(pe)?pe(t,t.state):pe;j!==void 0&&Wt(t,j,g)}}if(ee&&co.has(ee)&&!o.force){let U=co.get(ee);try{let j=await Promise.race([U,new Promise((Q,N)=>setTimeout(()=>N("DEDUP_TIMEOUT"),15e3))]);if(j?.data!==void 0){let Q=j.data;k(K)&&(Q=K(Q,t,t.state)),u&&(Q=u(Q,t,t.state)),Wt(t,Q,g),Oe(t,"onFetchComplete",Q),ze(e,t,"onFetchComplete",Q)}}catch{}return}let fv=!ho(ee)?.data;Qe(t,{isFetching:!0,isLoading:fv,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Oe(t,"onFetchStart"),ze(e,t,"onFetchStart");let it=r?.analyze?.emitNetwork,hi=it?typeof performance<"u"?performance.now():Date.now():0;it&&it({phase:"start",mode:"query",from:a,method:c,cacheKey:ee,lang:di});let Yf=cd(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let N=await s.getSession();if(h===!0&&!N){let de={message:"Not authenticated"};return Qe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:de,status:"error",fetchStatus:"idle"}),Oe(t,"onFetchError",de),ze(e,t,"onFetchError",de),{data:null,error:de}}}let U=s[c];if(!k(U))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let j={from:a,select:Me,params:Xe,single:d,limit:y,offset:b,order:x,headers:w,baseUrl:O},Q=Mn(t,r);if(Q&&(j.headers={...j.headers,"Accept-Language":Q}),$!==void 0){if(v($))$.offset!==void 0&&(j.offset=$.offset),$.limit!==void 0&&(j.limit=$.limit),$.cursor!==void 0&&(j.params={...j.params,cursor:$.cursor});else if(typeof $=="number"){let N=e.pageSize||y||20;j.offset=($-1)*N,j.limit=N}}if(P!==void 0&&(j.params={...j.params,cursor:P}),c==="insert"||c==="update"||c==="upsert"){let N;if(m===!0||e.on==="submit")N=po(t);else if(E(m)){let de=po(t);N={};for(let mi of m)N[mi]=de[mi]}else t.state?.parse?N=t.state.parse():v(t.state)&&(N={...t.state});u&&(N=u(N,t,t.state)),j.data=N}if(c==="rpc"){let N=Xe;if(e.on==="submit"){let de=po(t);N=e.transformParams?e.transformParams(de,t,t.state):de}j.params=N}if(c==="subscribe"){let N=s.subscribe({from:a,params:Xe,on:e.subscribeOn},(de,mi,qC)=>{Wt(t,de,g),Oe(t,"onFetchComplete",de),ze(e,t,"onFetchComplete",de)});return i.__unsubscribe=N,{data:null,error:null,subscribed:!0}}return U(j)},Xo);ee&&co.set(ee,Yf);try{let U=await Yf;if(U?.subscribed)return;let{data:j,error:Q}=U||{};if(Q){ee&&fo(ee,null,Q),Qe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),Oe(t,"onFetchError",Q),ze(e,t,"onFetchError",Q),it&&it({phase:"error",mode:"query",from:a,method:c,cacheKey:ee,error:Q.message||Q,durationMs:(typeof performance<"u"?performance.now():Date.now())-hi});return}if(j!==void 0){if((c==="select"||c==="rpc")&&ee){let de=fo(ee,j,null);de.gcTime=Ne?.gcTime||3e5}let N=j;B&&E(j)&&(i.__pages||(i.__pages=[]),o.direction==="previous"?i.__pages.unshift(j):i.__pages.push(j),N=i.__pages.flat(),I&&(i.__nextPageParam=I(j,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),R&&(i.__prevPageParam=R(j,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),k(K)&&(N=K(N,t,t.state)),u&&(N=u(N,t,t.state)),(!Le||N!==void 0)&&Wt(t,N,g),Qe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Oe(t,"onFetchComplete",N),ze(e,t,"onFetchComplete",N),it&&it({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:ee,durationMs:(typeof performance<"u"?performance.now():Date.now())-hi})}}catch(U){Qe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:U,status:"error",fetchStatus:"idle"}),Oe(t,"onFetchError",U),ze(e,t,"onFetchError",U),it&&it({phase:"error",mode:"query",from:a,method:c,cacheKey:ee,error:U.message||String(U),durationMs:(typeof performance<"u"?performance.now():Date.now())-hi})}finally{ee&&co.delete(ee)}},Yv=(e,t,r)=>{let o=e.on,n=t.__ref;n.__fetchListeners||(n.__fetchListeners=[]);let s=e.__runner||yt;if(o==="submit"){let i=c=>{c.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),n.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(o==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),n.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else o==="stateChange"&&(n.__fetchOnStateChange=()=>s(e,t,r))},Xv=(e,t,r)=>{let o=t.__ref;o.__fetchCleanups||(o.__fetchCleanups=[]),Gv();let n=e.refetchInterval;if(n){let s=typeof n=="number"?n:lo(n);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&yt(e,t,r,{force:!0})},s);o.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=Mn(t,r),a=Uv(e,i),c=ho(a),l=ya(e.cache);(!c||c.stale||Date.now()-c.time>(l?.staleTime||0))&&yt(e,t,r,{force:!0})};lr.focus.add(s),o.__fetchCleanups.push(()=>lr.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>yt(e,t,r,{force:!0});lr.online.add(s),o.__fetchCleanups.push(()=>lr.online.delete(s))}},Zv=(e,t,r)=>{if(!t.optimistic)return null;let o=e.__ref,n=t.as,s=e.state?.parse?e.state.parse():v(e.state)?{...e.state}:e.state;o.__optimisticSnapshot=s;let i=k(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&Wt(e,i,n),s},ga=(e,t)=>{let r=e.__ref,o=r.__optimisticSnapshot;o!==void 0&&(Wt(e,o,t.as),delete r.__optimisticSnapshot)},Jv=async(e,t,r)=>{let o=r?.fetch;if(!o)return;let n=await ba(o,r);if(!n)return;let s=t.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:p,auth:u,headers:d,baseUrl:h,invalidates:m,optimistic:g,onMutate:y,onSuccess:b,onError:x,onSettled:w}=e,O;if(c===!0||p==="submit")O=po(t);else if(E(c)){let R=po(t);O={};for(let B of c)O[B]=R[B]}else t.state?.parse?O=t.state.parse():v(t.state)&&(O={...t.state});l&&(O=l(O,t,t.state)),k(y)&&y(O,t,t.state);let $=g?Zv(t,e,O):null;s.__fetching=!0,Qe(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Oe(t,"onFetchStart"),ze(e,t,"onFetchStart");let P=r?.analyze?.emitNetwork,I=P?typeof performance<"u"?performance.now():Date.now():0;P&&P({phase:"start",mode:"mutation",from:a,method:i});try{if(u!==!1&&n.auth!==!1&&n.getSession){let Xe=await n.getSession();if(u===!0&&!Xe){$!==void 0&&ga(t,e);let Ne={message:"Not authenticated"};Oe(t,"onFetchError",Ne),ze(e,t,"onFetchError",Ne);return}}let R=n[i];if(!k(R))return;let B={from:a,data:O,headers:d,baseUrl:h};e.params&&(B.params=ld(e.params,t,r));let pe=Mn(t,r);pe&&(B.headers={...B.headers,"Accept-Language":pe});let Z=ad(e),K=await cd(()=>R(B),Z),{data:Le,error:Me}=K||{};if(Me){$!==void 0&&ga(t,e),Qe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Me,status:"error",fetchStatus:"idle"}),Oe(t,"onFetchError",Me),k(x)&&x(Me,O,t),k(w)&&w(null,Me,O,t),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:Me.message||String(Me),durationMs:(typeof performance<"u"?performance.now():Date.now())-I});return}if(delete s.__optimisticSnapshot,Le!==void 0){let Xe=f?{[f]:Le}:Le;t.state?.update&&t.state.update(Xe,{preventFetch:!0})}if(Qe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Oe(t,"onFetchComplete",Le),ze(e,t,"onFetchComplete",Le),k(b)&&b(Le,O,t),k(w)&&w(Le,null,O,t),P&&P({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-I}),m){let Xe=E(m)?m:[m];for(let Ne of Xe)if(Ne===!0||Ne==="*")for(let[Xo]of ge)Xo.startsWith(a+":")&&uo(Xo);else uo(Ne)}}catch(R){$!==void 0&&ga(t,e),Qe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:R,status:"error",fetchStatus:"idle"}),Oe(t,"onFetchError",R),ze(e,t,"onFetchError",R),k(x)&&x(R,O,t),k(w)&&w(null,R,O,t),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:R.message||String(R),durationMs:(typeof performance<"u"?performance.now():Date.now())-I})}finally{s.__fetching=!1}},mo=(e,t,r,o)=>{if(!e||!o?.fetch)return;let s=V(e,t);if(!s)return;let i=E(s)?s.map(c=>od(V(c,t),t)).filter(Boolean):[od(s,t)].filter(Boolean);for(let c of i){let l=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",f=l?Jv:yt;c.on==="create"?f(c,t,o):Promise.resolve().then(()=>{Yv({...c,__runner:f},t,o)}),!l&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Xv(c,t,o)}let a=t.__ref;a.refetch=c=>{for(let l of i)yt(l,t,o,{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};yt(f,t,o,{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};yt(f,t,o,{direction:"previous",force:!0})}},Qv={invalidateQueries:e=>{if(!e){uo();return}if(S(e))for(let[t]of ge)(t.startsWith(e)||t.includes(e))&&uo(t);else if(E(e)){let t=e.join(":");for(let[r]of ge)r.includes(t)&&uo(r)}},removeQueries:e=>{if(!e){Fn();return}if(S(e))for(let[t]of ge)(t.startsWith(e)||t.includes(e))&&Fn(t)},getQueryData:e=>ho(e)?.data??void 0,setQueryData:(e,t)=>{let r=ho(e),o=k(t)?t(r?.data):t;fo(e,o,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let o=await ba(r,t);if(!o)return;let n=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=o[e.method||"select"];if(!k(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=fo(n,i.data,null);a.gcTime=ya(e.cache)?.gcTime||3e5}return i},getCache:()=>ge,clear:()=>Fn(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of ge)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||Fn(r))}},xa={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||co.clear(),mo(t,e,e.state,e.context))}},eS=mo});function Bn(e){let t=this,{__ref:r}=t,o=[].concat(e),n=r.root[o[0]];if(!o||!o.length)return console.log(o,"on",t.key,"is undefined");for(;n.key===o[0]&&(o.shift(),!!o.length);)if(n=n[o[0]],!n)return;return n}function ud(e){let t=this,{parent:r}=t;if(k(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function pd(e){let t=this,{__ref:r}=t,o=r?.__children;if(o)for(let n=0;n<o.length;n++){let s=o[n],i=t[s];if(s===e)return i;if(k(e)){let c=e(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(e);if(a)return a}}function dd(e,t=[]){let r=this,{__ref:o}=r,n=o?.__children;if(n){for(let s=0;s<n.length;s++){let i=n[s],a=r[i];if(i===e)t.push(a);else if(k(e)){let c=e(a,a.state,a.context);a.state&&c&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function Sa(e={}){let t=this;if(t.node?.style){for(let r in e){let o=e[r],n=t[r];if(v(o)&&n)Sa.call(n,o);else if(o!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(o).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function hd(e){let t=this;if(zt("beforeRemove",t,e)===!1)return t;k(t.node.remove)?t.node.remove():Bt()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=on(t.parent.__ref.__children,t.key)),zt("remove",t,e)}function md(e){return this[e]}function gd(e,t){let r=this;if(e)return r.update(e,t),r}function yd(e){return e?this.__ref&&this.__ref[e]:this.__ref}function jn(){return this.getRef("__children").map(t=>this[t])}function zn(){return this.getRef().path}function Vn(e){let t=null,r=o=>o.__element&&o.root?.isRootState;if(!this)t=fd();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let o=this.state&&r(this.state),n=k(this.state)&&this.parent.state&&r(this.parent.state);(o||n)&&(t=this.state.root||this.parent.state.root)}return t||(t=fd()),e?t?.[e]:t}function Hn(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function Un(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function qn(e){let t=this.getRoot()?.context;return e?t[e]:t}function Gn(e){let t=this.context;return e?t[e]:t}function wa(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||Dt.has(r)&&!an.has(r)||t.push(r);return t}function _a(e=[]){let t=this,r={},o=wa.call(t),n=o.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<o.length;i++){let a=o[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||n&&a==="content")continue;let c=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let l=k(c&&c.parse)?c.parse():c;r[a]=k(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...p}=t[a];r[a]=p}else me(c)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=c)}return r}function Nn(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let o=_a.call(r,e),n=e.length?new Set(e):null;for(let s in o){if(n&&n.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=o[s];Array.isArray(i)?o[s]=i.map(a=>L(a)?Nn.call(a,e,t):a):L(i)&&(o[s]=Nn.call(i,e,t))}return o}function yo(...e){if(bt!=="test"&&bt!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(o=>console.log(`%c${o}:
15
- `,"font-weight: bold",t[o])):(console.log(r.path),t.keys().forEach(n=>console.log(`%c${n}:`,"font-weight: bold",t[n]))),console.log(t),console.groupEnd(t.key),t}function vd(...e){(bt==="test"||bt==="development")&&console.log(...e)}function Kn(...e){(bt==="test"||bt==="development")&&console.warn(...e)}function fr(...e){if(bt==="test"||bt==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&yo.call(this),new Error(...e)}}function Yn(){let e=this,{key:t,parent:r}=e,{__children:o}=r.__ref,n=o.indexOf(t),s=o[n+1];return r[s]}function Xn(e){let t=e||this,{key:r,parent:o}=t,{__children:n}=o.__ref;if(!n)return;let s=n.indexOf(r);return o[n[s-1]]}function Zn(e={}){let t=this;t.data||(t.data={}),t.data.varCaches||(t.data.varCaches={});let r=t.data.varCaches,o={},n;for(let s in e)e[s]!==r[s]&&(n=!0,o[s]=e[s]);return{changed:s=>{if(!n)return;let i=s(o,Y(r));for(let a in o)r[a]=o[a];return i},timeout:(s,i)=>{if(!n)return;let a=setTimeout(()=>{s(o),clearTimeout(a)},i)}}}function Sd(e,...t){let r=this.context,o=r.utils?.[e]||r.functions?.[e]||r.methods?.[e]||r.snippets?.[e];if(o)try{let n=o.call(this,...t);return n&&typeof n.then=="function"&&n.catch(s=>{fr.call(this,s)}),n}catch(n){if(fr.call(this,n),r?.strictMode)throw n}}async function Jn(){let e=this,t=e.context?.fetch;if(!t)return null;if(typeof t.select=="function"){if(!t.__authInitialized&&t.getSession){let{initAdapterAuth:n}=await Promise.resolve().then(()=>(Vt(),go));await n(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:n}=await Promise.resolve().then(()=>(Vt(),go));await n(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(Vt(),go)).then(({resolveDb:n})=>n(t));t.__resolving=r;let o=await r;if(t.__resolved=o,e.context.fetch=o,delete t.__resolving,o.getSession){let{initAdapterAuth:n}=await Promise.resolve().then(()=>(Vt(),go));await n(o,e.context)}return o}function Qn(e){let t=this,r=e||$n.useStateQuery||t.context?.useStateQuery;if(!r)return null;let o={};if(va(t,o),r===!0)return o;let n=cS[r];return n?n(o):o}function _d(e,t){return!!(to.has(e)||t?.context?.methods?.[e])}var bt,bd,Wn,fd,xd,va,tS,wd,rS,oS,nS,sS,iS,aS,cS,kd=F(()=>{"use strict";ua();sr();ae();ct();Ri();rr();pa();bt="production";bd=null,Wn=e=>{bd=e||null},fd=()=>bd||null;xd=(e,t,r,o)=>Object.defineProperty(e,t,{get:r,set:o});va=(e,t)=>{let r=e.__ref;if(!r)return;let o=r.__state;o&&typeof o=="string"&&tS(t,o);let n=r.__children;if(n)for(let a=0;a<n.length;a++){let c=e[n[a]];c&&c.__ref&&va(c,t)}let s=r.contentElementKey||"content",i=e[s];i&&i.__ref&&va(i,t)},tS=(e,t)=>{let o=t.replaceAll("../","").replaceAll("~/","").split("/"),n=e;for(let s=0;s<o.length;s++){let i=o[s];s===o.length-1?n[i]||(n[i]=!0):(n[i]===!0&&(n[i]={}),n[i]||(n[i]={}),n=n[i])}},wd=(e,t=0)=>{let r=" ".repeat(t),o=Object.entries(e);return o.length?o.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
16
- ${wd(i,t+1)}
10
+ `}return n+=`${o}}`,n},ix=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],ax=/^["[{]/,Xr=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||!ix.some(s=>s.test(e)))return!1;let o=e.charCodeAt(0),n=e.includes("=>");return!(o===123&&!n||o===91||ax.test(e)&&!n)},cx=t=>(0,eval)(t),Nt=(t,e={},r={window:{eval:cx}})=>{for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let n=t[o];if(w(n))if(Xr(n))try{e[o]=r.window.eval(`(${n})`)}catch(s){typeof console<"u"&&console.warn&&console.warn('[smbls] deepDestringifyFunctions: eval failed on "'+o+'" \u2014 function will be left as a string and el.call("'+o+'") will silently no-op. Reason: '+(s&&s.message?s.message:String(s))+`.
11
+ First 200 chars of source: `+String(n).slice(0,200)),e[o]=n}else e[o]=n;else if(T(n)){let s=e[o]=[];for(let i=0;i<n.length;i++){let a=n[i];if(w(a))if(Xr(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 "${o}"). Reason: ${c&&c.message?c.message:String(c)}.
12
+ First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else S(a)?s.push(Nt(a)):s.push(a)}}else S(n)?e[o]=Nt(n,e[o]):e[o]=n}return e},nn=t=>{if(!t||typeof t!="object")return t;let e={},r=[];for(let o of Object.keys(t)){let n=t[o];w(n)&&Xr(n)?r.push([o,n]):e[o]=n}for(let[o,n]of r)try{let s=Object.keys(e).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
13
+ `);e[o]=k.eval(`(function(__gs__) { ${s}
14
+ return (${n}); })`)(e)}catch{try{e[o]=k.eval(`(${n})`)}catch{e[o]=n}}return e},zf=(t,e={verbose:!0})=>{try{return t?k.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Uf=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Si=t=>{for(let e in t)return!1;return!0},Wf=t=>S(t)&&Si(t),Hf=()=>Object.create(null),sn=(t,e,r={})=>{let o=r.exclude||[],n=r.preventUnderscore;for(let s in e)o.includes(s)||!n&&Le(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},nr=(t,e,r=[])=>{let o=r instanceof Set;for(let n in e)Le(n)||n==="constructor"||n==="prototype"||(o?r.has(n):r.includes(n))||(t[n]=e[n]);return t},wt=(t,e,r={},o=new WeakMap)=>{if(!L(t)||!L(e)||xt(t)||xt(e))return e;if(o.has(t))return o.get(t);o.set(t,t);let n=r.exclude,s=n?n instanceof Set?n:new Set(n):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Le(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];xt(l)?t[a]=l:L(c)&&L(l)?t[a]=wt(c,l,r,o):l!==void 0&&(t[a]=l)}return t},_i=(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 o=Object.keys(t),n=Object.keys(e);if(o.length!==n.length)return!1;for(let s=0;s<o.length;s++){let i=o[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!_i(t[i],e[i],r))return!1}return!0},lx=new Set(["node","__ref"]),qf=(t,e,r=lx)=>{if(t===e)return!0;if(!L(t)||!L(e)||xt(t)||xt(e))return t===e;let o=r instanceof Set?r:new Set(r),n=new WeakSet;function s(i,a){if(n.has(a))return!0;n.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||o.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(xt(l)||xt(f)){if(l!==f)return!1}else if(L(l)&&L(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},Gf=(t,e)=>{if(e==null)return t;if(_t(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},wi=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]=wi(t[r]));return e},Kf=(t,e)=>{if(t.length===0)return e;let r={},o=r;for(let n=0;n<t.length;n++)n===t.length-1&&e?o[t[n]]=e:(o[t[n]]={},o=o[t[n]]);return r},Yf=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length-1;n++){if(r[e[n]]===void 0)return;r=r[e[n]]}let o=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,o)&&delete r[o]},Xf=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let o=t;for(let n=0;n<e.length-1;n++)(!o[e[n]]||typeof o[e[n]]!="object")&&(o[e[n]]={}),o=o[e[n]];return o[e[e.length-1]]=r,t},Zf=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length;o++){if(r==null)return;r=r[e[o]]}return r},Jf=t=>{let r=[],o=0;for(let n=0;n<t.length;n++)if(r.length<2)r.push(t[n]);else if(t[n]===r[n%2]?o++:(r=[t[n-1],t[n]],o=1),o>=20)return(Nf==="test"||Nf==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},Qf=t=>{let e=new WeakSet;function r(o){if(o&&typeof o=="object"){if(e.has(o))return!0;e.add(o);for(let n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&r(o[n]))return console.log(o,"cycle at "+n),!0}return!1}return r(t)},tu=(t,e)=>{let r=e instanceof Set?e:new Set(e),o={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&!r.has(n)&&(o[n]=t[n]);return o}});var an,cn,ln,fn=I(()=>{"use strict";se();an=(function(){let t=0;function e(){return t++,t}return e})(),cn=an,ln=(t,e,r)=>(G(r,t)||r||t.key||an()).toString()});var Kt,eu,Me,ki,ru,ou,nu,Ne,su,sr,vi=I(()=>{"use strict";Kt="production",eu=Kt,Me=(t=Kt)=>t==="production",ki=(t=Kt)=>t==="testing"||t==="test",ru=ki,ou=(t=Kt)=>t==="staging",nu=(t=Kt)=>t==="local",Ne=(t=Kt)=>t==="development"||t==="dev"||t==="local",su=(t,e=Kt)=>e[t],sr=(t=Kt)=>!Me(t)});function un(t,e,r){let o;return function(){let n=this,s=arguments,i=function(){o=null,r||t.apply(n,s)},a=r&&!o;clearTimeout(o),o=setTimeout(i,e),a&&t.apply(n,s)}}function lu(t,e=window){let r=function(){return t.apply(e,arguments)};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r}var iu,au,fx,cu,Zr,Jr,Yt,ir=I(()=>{"use strict";iu=(t,e,r=300)=>{let o;return(...n)=>{clearTimeout(o),o=setTimeout(()=>{e.apply(t,n)},r)}},au=t=>{let e={};return(...r)=>{let o=r[0];if(o in e)return e[o];{let n=t(o);return e[o]=n,n}}},fx=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,cu=t=>fx.test(t),Zr=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Jr=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let o of r)if(o.resolveHandler){let n=o.resolveHandler(t,e);if(typeof n=="function")return n}return t},Yt=(t,e,...r)=>{let o=e?.context?.plugins;if(!o)return!1;let n=!1;for(let s of o)typeof s[t]=="function"&&(s[t](e,...r),n=!0);return n}});var fu,uu=I(()=>{"use strict";it();se();fu=(t,e)=>{let{__ref:r}=t,o=t.if;if(C(o)){let n;try{n=o(t,t.state,t.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}n?r.__if=!0:delete r.__if}else o!=null&&typeof o=="object"?G(o,t)?r.__if=!0:delete r.__if:r.__if=!0}});var pu,du,hu=I(()=>{"use strict";pu=(t,...e)=>{t&&e.map(r=>console.log(r))},du=(t,e,...r)=>{t&&(console.group(e),r.map(o=>console.log(o)),console.groupEnd(e))}});function xu(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 Su(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 gu,mu,yu,bu,_u=I(()=>{"use strict";it();Ur();gu=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),mu=(t,e,r=365)=>{if(ct(q)||ct(q.cookie))return;let o=new Date;o.setTime(o.getTime()+r*24*60*60*1e3);let n=`expires=${o.toUTCString()}`;q.cookie=`${t}=${e};${n};path=/`},yu=t=>{if(ct(q)||ct(q.cookie))return;let e=`${t}=`,o=decodeURIComponent(q.cookie).split(";");for(let n=0;n<o.length;n++){let s=o[n];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},bu=t=>{ct(q)||ct(q.cookie)||(q.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Qr,wu,ku,Ci=I(()=>{"use strict";Qr={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"])},wu=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"]),ku=t=>Qr.body.has(t)});var Ai,vu,to,hn,kt,Cu,Ei,gn,Au,mn,Ti,Oi,yn,Ri,eo,ux,ie,Eu,pn,bn,Tu,dn,Ou,Ru,Pi,Ii,$i,Fi,Di,Li,Pu,xn=I(()=>{"use strict";tr();Mi();se();it();Ai="production",vu=t=>t.sourcemap!==!1&&Ai!=="production",to=t=>{if(t.includes("+"))return t.split("+").filter(ae);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!ae(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},hn=(t,e,r)=>{let o=[],n=to(r);n&&(o=[...n]);let s=t.extends;return s&&(o=T(s)?[...o,...s]:[...o,s]),o},kt=(t,e)=>{let{__ref:r}=e,{__extends:o}=r;if(!t)return o;let n=e.variant,s=e.context;if(n&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${n}`;s.components[i]&&(t=i)}return o.includes(t)||(o=Array.isArray(t)?[...o,...t]:[...o,t],r.__extends=o),o},Cu=(t,e)=>{if(!t)return e;let{extends:r}=e,o=T(r)?r:[r],n=T(t)?t:[t];return{...e,extends:Hr(n,o)}},Ei=()=>Math.random().toString(36).substring(2),gn={},Au={},mn=t=>gn[t.__hash],Ti=(t,e)=>{let r=Ei();return w(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(gn[r]=e),e},Oi=(t,e)=>t.__hash?e.concat(mn(t)):Ti(t,e),yn=(t,e,r,o=new Set,n,s)=>{for(let i of t)T(i)?yn(i,e,r,o,n,s):eo(i,e,r,o,n,void 0,s);return e},Ri=(t,e,r,o=new Set,n,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),n&&n.push(s)),a&&eo(a,e,r,o,n,s,i),e},eo=(t,e,r,o=new Set,n,s,i)=>{if(!t||o.has(t))return e;if(T(t))return yn(t,e,r,o,n,i);let a=s;return w(t)?(a=t,t=bn(t,r)):i&&S(t)&&i.has(t)&&(a=i.get(t)),o.add(t),t?.extends?Ri(t,e,r,o,n,a,i):t&&(e.push(t),n&&n.push(a)),e},ux=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),ie=(t,e,r,o,n)=>{e=Y(e);for(let s in e){if(ux.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&&o?S(a)&&!T(a)?(r[s]=r[s]||{},Eu(r[s],a,o)):r[s]=o:r&&n?.[s]&&(r[s]=n[s]);else if(S(i)&&S(a)){let c=r?r[s]=r[s]||{}:void 0,l=n?.[s];ae(s)?t[s]=ie(i,a,c,o,l):ie(i,a,c,o,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(T(i)&&T(a))t[s]=i.concat(a);else if(T(i)&&S(a)){let c=ie({},i);t[s]=ie(c,a)}}}}return t},Eu=(t,e,r,o)=>{if(o||(o=new WeakSet),!o.has(e)){o.add(e);for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||n==="__proto__"||n==="constructor"||n==="prototype")continue;let s=e[n];S(s)&&!T(s)?(t[n]=t[n]||{},Eu(t[n],s,r,o)):t[n]=r}}},pn=(t,e,r)=>t.reduce((o,n,s)=>{let i=Y(n),a=r?r[s]:void 0;return ie(o,i,e,a)},{}),bn=(t,e,r={},o)=>{let n=e?.components||r.components,s=e?.pages||r.pages;if(w(t)){let i=n&&(n[t+"."+o]||n[t]||n["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(Ai==="test"||Ai==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},Tu=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),dn=(t,e,r,o)=>{if(!t)return[];if(t.__hash)return mn(t)||[];let s=eo(t,[],e,new Set,r,void 0,o);return r?s:Oi(t,s)},Ou=(t,e)=>{if(!t)return e;let r=T(t)?t:[t];return Hr(r,e)},Ru=t=>{let e=[];function r(o){for(let n in o)Object.prototype.hasOwnProperty.call(o,n)&&(ae(n)&&e.push(n),n==="extends"&&(typeof o[n]=="string"?e.push(o[n]):Array.isArray(o[n])&&(e=e.concat(o[n]))),typeof o[n]=="object"&&o[n]!==null&&r(o[n]))}return r(t),e},Pi=(t,e,r={})=>{let{__ref:o}=t,n=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&&n?.components){let c=`${i}.${s}`;n.components[c]?kt([c,...a],t):kt(t.extends,t)}else kt(t.extends,t)}else if(typeof t.extends=="string"&&s&&n?.components){let i=`${t.extends}.${s}`;n.components[i]?kt(i,t):kt(t.extends,t)}else kt(t.extends,t);return Ii(t,e,r),$i(t,e,r),Fi(t,e,r),t.component&&kt(G(t.component,t),t),n.defaultExtends&&kt(n.defaultExtends,t),qr(o.__extends)},Ii=(t,e,r={})=>{let{__ref:o}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&kt(e.childProps.extends,t),o.__extends},$i=(t,e,r={})=>{let{__ref:o}=t,n=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!n&&s&&kt(s,t),o.__extends},Fi=(t,e,r={})=>{let{__ref:o}=t,n=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return n&&!i&&!s&&kt(n,t),o.__extends},Di=(t,e,r={})=>{let{__ref:o}=t,n=t.context||e.context,s=t.variant,i=vu(r),a=i?[...o.__extends]:null,c=qr(o.__extends.map((l,f)=>bn(l,n,r,f===0&&s)));if(i){let l=new WeakMap;for(let u=0;u<c.length;u++){let d=c[u],h=a[u];d&&S(d)&&w(h)&&l.set(d,h)}let f=[],p=dn(c,n,f,l);o.__extendsStack=p,o.__extendsNames=f}else{let l=dn(c,n);o.__extendsStack=l}return o.__extendsStack},Li=(t,e,r={})=>{let{__ref:o}=t,{__extendsStack:n}=o;if(vu(r)){let s={},i=o.__extendsNames||[],a=pn(n,s,i),c={};ie(t,a,c,void 0,s),o.__sourcemap=c}else{let s=pn(n);ie(t,s)}return t},Pu=(t,e,r={})=>(Pi(t,e,r),Di(t,e,r),Li(t,e,r),t)});function Iu(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function $u(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Fu(t,e,r){let{context:o}=e||{},[n]=to(r),s=r||n;return o?.components?.[s]||o?.pages?.[s]}var ae,Mi=I(()=>{"use strict";xn();it();ae=t=>{if(!w(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Du(t,e){let{props:r,on:o}=e,n=rr(t.split("on")[1]),s=o[n],i=r[t];C(s)?o[n]=(...a)=>{if(s(...a)!==!1&&C(i))return i(...a)}:o[n]=i}var Lu=I(()=>{"use strict";Kr();it()});function ji(t,e={}){let r=e.cachedKeys||[];for(let o in t){let n=t[o];if(o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o[2]===o[2].toUpperCase()&&(C(n)||n!=null&&Zr(this.context))){let h=rr(o.slice(2));t.on&&(t.on[h]=n),delete t[o];continue}if(o==="childProps"){t.props[o]=n,delete t[o],r.push(o);continue}let a=this.define?.[o],c=this.context?.define?.[o],l=S(a)||C(a),f=S(c)||C(c);if(l||f)continue;let p=o.charAt(0);if(Nu.has(p)){t.props[o]=n,delete t[o],r.push(o);continue}let u=Ni.test(o)||Mu.test(o)||dx(n),d=$e.has(o);!u&&!d&&(o in t.props||(t.props[o]=n),delete t[o],r.push(o))}return t}function Bi(t=this,e){let r=e.cachedKeys||[];for(let o in t.props){let n=t.props[o],s=o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110,i=C(n)||n!=null&&Zr(this.context);if(s&&i){Du(o,t),delete t.props[o];continue}if(r.includes(o)||o==="childProps")continue;let a=o.charAt(0);if(Nu.has(a))continue;let c=this.define?.[o],l=this.context?.define?.[o],f=S(c)||C(c),p=S(l)||C(l),u=Ni.test(o)||Mu.test(o),d=$e.has(o);(u||d||f||p)&&(t[o]===void 0||n===null)&&(t[o]=n,t.props&&delete t.props[o])}return t}function Vi(t=this){let e=[];return ji.call(this,t,{cachedKeys:e}),Bi.call(this,t,{cachedKeys:e}),t}function ju(t={}){return t.on||(t.on={}),t.props||(t.props={}),Vi.call(this,t)}function zi(t,e){this.__element.update({props:t},e)}function vn(t){let e={update:zi.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Ni,Mu,Nu,px,dx,wn,Sn,Bu,kn,Cn,An,Ui,_n,Vu,zu,Wi=I(()=>{"use strict";or();Lu();se();it();Kr();ir();Ni=/^[A-Z]/,Mu=/^\d+$/,Nu=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),px=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),dx=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(px.has(e)||Ni.test(e))return!0;return!1},wn=(t,e,r)=>{let{props:o,__ref:n}=t;if(n.__propsStack=[],o)n.__initialProps=o;else return{};return L(o)?{...o}:(n.__propsStack.push(o),{})};Sn=t=>_t(t)("string","number")?{inheritedString:t}:t,Bu=(t,e)=>!t||!e.length?!1:e.includes(t),kn=(t,e)=>{let{__ref:r}=t,o=r.__propsStack||[],n=e.props;if(!n)return o;let s=n[t.key],i=n.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=Sn(i);o.unshift(c)}if(s){let c=Sn(s);o.unshift(c)}return o};Cn=t=>{let e=new Set;return t.filter(r=>!r||De.has(r)||e.has(r)?!1:(e.add(r),!0))},An=(t,e,r)=>(e.props=t.reduce((o,n)=>{if(De.has(n))return o;for(;C(n);)n=G(n,e);return W(o,Y(n,{exclude:De}))},{}),vn(e),e.props),Ui=(t,e)=>{let{props:r,__ref:o}=t,n=o.__propsStack||[];if(e?.props&&(n=[...kn(t,e)]),S(r)?n.push(r):r==="inherit"&&e?.props?n.push(e.props):r&&n.push(r),T(o.__extendsStack))for(let s=0;s<o.__extendsStack.length;s++){let i=o.__extendsStack[s];i.props&&i.props!==r&&n.push(i.props)}return o.__propsStack=Cn(n),o.__propsStack},_n=(t,e)=>{let{__ref:r}=t,o=Ui(t,e);o.length?An(o,t):(r.__propsStack=[],t.props={})},Vu=function(t,e,r){let{__ref:o}=t;if(o.__if)_n(t,e);else try{_n(t,e)}catch(n){t.context?.designSystem?.verbose&&console.warn("initProps error at",o.path?.join("."),n),t.props={},o.__propsStack=[]}return vn(t),t},zu=(t,e,r)=>{let{__ref:o}=e,s=[...o.__propsStack||[]],i=kn(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),o.__propsStack=Cn(s),o.__propsStack.length&&An(o.__propsStack,e),e}});var Uu,Hi,qi,Gi,Ki,Wu,Yi,Xi,Zi,Hu,qu=I(()=>{"use strict";xn();fn();Wr();Wi();Ci();it();Uu="production",Hi=(t,e,r)=>{let o=e.childExtends&&e.childExtends.tag,n=e.childProps&&e.childProps.tag,s=Qr.body.has(r)&&r;return{text:t,tag:o||n||s||"string"}},qi=(t,e,r)=>{if(t===void 0)return(Uu==="test"||Uu==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:_t(t)("string","number")?Hi(t,e,r):C(t)?{props:t}:t},Gi=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Ki=(t,e,r,o,n)=>{if(!e)return n;if(de(e)){let s={key:":root",node:e};return n[`${r}_parent`]=s,s}return e},Wu=(t,e)=>{let{__ref:r}=t,{__ref:o}=e,n=e&&e.key===":root";r?.root||(r.root=n?t:o?.root)},Yi=(t,e,r)=>{let{__ref:o}=e;return o||(o=e.ref={}),o.path||(o.path=[]),o.path.concat(r)},Xi=(t,e,r,o,n)=>(o.context&&!n.context&&!t.context&&(n.context=o.context),o.context||e.context||n.context||t.context),Zi=(t,e,r)=>{let o=Gi(t,e);return t.__ref=o,o.__defineCache||(o.__defineCache={}),o.__exec||(o.__exec={}),o.__execProps||(o.__execProps={}),o.__class||(o.__class={}),o.__classNames||(o.__classNames={}),o.__attr||(o.__attr={}),o.__changes||(o.__changes=[]),o.__children||(o.__children=[]),o.__extends=hn(t,e,r),o.path=Yi(t,e,r),o},Hu=(t,e,r,o,n)=>{let i=t?.__hash?{extends:[t]}:qi(t,e,r);if(!i)return;let a=Ki(i,e,r,o,n),c=ln(i,a,r);Zi(i,a,c);let l=wn(i,a,c),f=Xi(i,a,c,o,n),p=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:p}}});var Gu,Ji,Qi,ta,ea,Ku,ra,Yu,Xu,Zu,Ju,Qu=I(()=>{"use strict";tr();or();se();it();Gu=t=>{let{state:e,props:r,__ref:o}=t,n=r?.state||e;return _t(n)("string","number")?(o.__state=n,{value:n}):n===!0?(o.__state=t.key,{}):n?(o.__hasRootState=!0,n):!1},Ji=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},Qi=(t,e)=>{if(!t.includes("../"))return;let o=t.split("../").length-1;for(let n=0;n<o;n++){if(!e.parent)return null;e=e.parent}return e},ta=(t,e,r={})=>{let o=w(t)?t.split("/"):[t],n=o.length-1;for(let s=0;s<n;s++){let i=o[s],a=o[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]},ea=(t,e,r={})=>{let n=t.__ref.__state;if(!ra(t))return;let s=Ji(n,e.state),i=e.state;if(s)i=s,n=n.replaceAll("~/","");else{let a=Qi(n,e.state);a&&(i=a,n=n.replaceAll("../",""))}if(i)return ta(n,i,r)},Ku=(t,e)=>{let r=t.__ref,o=ea(t,e);if(o===void 0)return t.state;if(_t(o)("object","array"))return Y(o);if(_t(o)("string","number","boolean"))return r.__stateType=typeof o,{value:o};console.warn(r.__state,"is not present. Replacing with",{})},ra=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&_t(r)("number","string","boolean"))},Yu=function(t){return L(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},Xu=(t,e)=>{if(!t)return e||{};let r=t.split("/"),o={},n=o,s=r.length-1;for(let i=0;i<=s;i++)n[r[i]]=i===s?e||{}:{},n=n[r[i]];return o},Zu=(t,e)=>{let{__element:r}=e,o=r?.state;if(!o)return;let n=Y(o,Fe),s={[t.key]:n},i=S(o.__depends)?{...o.__depends,...s}:s;return Array.isArray(o)?Jo(o,{...Object.getPrototypeOf(o),__depends:i}):Object.setPrototypeOf(o,{...Object.getPrototypeOf(o),__depends:i}),n},Ju=(t,e,r={})=>{let{overwrite:o}=r;if(!o)return;let n=o==="shallow";if(o==="merge"){W(t,e,Fe);return}(n?nr:wt)(t,e,Fe)}});var tp,ep=I(()=>{"use strict";tp=(t,e)=>{let{__ref:r}=t,o=t.context||e.context||r.root?.context;o&&!o.globalScope&&(o.globalScope={});let n=e.scope||r.root?.scope,s=o?.globalScope;if(!t.scope)n?t.scope=n: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=n||s;i&&Object.setPrototypeOf(t.scope,i)}}});var rp,oa,je,na,op,sa=I(()=>{"use strict";it();ir();rp=(t,e)=>{let r="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},oa=(t,e,r,o,n)=>{if(t=Jr(t,e),!!C(t))try{let s=t.call(e,e,r||e.state,o||e.context,n);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}},je=(t,e,r)=>{if(!e)throw new Error("Element is required");Yt(t,e,r);let o=rp(t,e);if(o){let{state:n,context:s}=e;return oa(o,e,n,s,r)}},na=(t,e,r,o,n,s)=>{if(t=Jr(t,r),!!C(t))try{let i=t.call(r,e,r,o||r.state,n||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}},op=(t,e,r,o)=>{Yt(t,r,e,o);let n=rp(t,r);if(n){let{state:s,context:i}=r;return na(n,e,r,s,i,o)}}});var np,En,ia=I(()=>{"use strict";np={},En={}});var ap={};$(ap,{setup:()=>gx,supabaseAdapter:()=>ip});var sp,hx,gx,aa,mx,ip,cp=I(()=>{"use strict";sp=new Map,hx=(t,e,r)=>`${t}|${e}|${r?"off":"on"}`,gx=async({url:t,key:e,projectId:r,createClient:o,auth:n,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");o||(o=(await import("@supabase/supabase-js")).createClient),n===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let l=hx(c,e,n===!1),f=sp.get(l);return f||(f=await o(c,e,a),f?.auth&&sp.set(l,f)),!f||!f.auth?null:ip(f)},aa=(t,e)=>{if(!e)return t;for(let r in e){let o=e[r];if(o===null)t=t.is(r,null);else if(Array.isArray(o))t=t.in(r,o);else if(typeof o=="object")for(let n in o)n==="gt"?t=t.gt(r,o[n]):n==="gte"?t=t.gte(r,o[n]):n==="lt"?t=t.lt(r,o[n]):n==="lte"?t=t.lte(r,o[n]):n==="neq"?t=t.neq(r,o[n]):n==="like"?t=t.like(r,o[n]):n==="ilike"?t=t.ilike(r,o[n]):n==="in"?t=t.in(r,o[n]):n==="is"?t=t.is(r,o[n]):n==="contains"?t=t.contains(r,o[n]):n==="containedBy"?t=t.containedBy(r,o[n]):n==="textSearch"&&(t=t.textSearch(r,o[n]));else t=t.eq(r,o)}return t},mx=(t,{limit:e,offset:r,order:o,single:n}={})=>{if(o)if(Array.isArray(o))for(let s of o){let i=typeof s=="string"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof o=="string"?o:o.by;t=t.order(s,{ascending:o.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),n&&(t=t.single()),t},ip=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((o,n)=>e(o,n));return()=>r.unsubscribe()},select:async({from:e,schema:r,select:o,params:n,headers:s,...i})=>{let c=(r?t.schema(r):t).from(e).select(o||"*");if(c=aa(c,n),c=mx(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:o,select:n})=>(r?t.schema(r):t).from(e).insert(o).select(n||"*"),update:({from:e,schema:r,data:o,params:n,select:s})=>{let a=(r?t.schema(r):t).from(e).update(o);return a=aa(a,n),a.select(s||"*")},upsert:({from:e,schema:r,data:o,select:n})=>(r?t.schema(r):t).from(e).upsert(o).select(n||"*"),delete:({from:e,params:r})=>{let o=t.from(e).delete();return o=aa(o,r),o},subscribe:({from:e,params:r,on:o},n)=>{let s=o||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>n(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:o,options:n})=>t.storage.from(e).upload(r,o,n),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var fp={};$(fp,{restAdapter:()=>lp,setup:()=>bx});var yx,he,bx,lp,up=I(()=>{"use strict";yx=(t,e,r)=>{let o=e&&!e.startsWith("/")?"/":"",n=new URL(`${t}${o}${e}`);if(r)for(let s in r){let i=r[s];i!=null&&n.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return n.toString()},he=async(t,e)=>{let r=await globalThis.fetch(t,e),o=r.headers.get("content-type"),n=o&&o.includes("json")?await r.json():await r.text();return{data:n,error:r.ok?null:n?.message||n?.error||r.statusText,status:r.status}},bx=async({url:t,headers:e,auth:r,fetchOptions:o})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return lp(t,e,r,o)},lp=(t,e={},r,o={})=>{let n=r?.token||null,s=f=>{let p={...e,...f};return n&&(p.Authorization=`Bearer ${n}`),p},i=f=>({...s(f),"Content-Type":"application/json"}),a=f=>({...o,...f}),c=(f,p)=>{let u=p||t;if(f&&(f.startsWith("http://")||f.startsWith("https://")))return f;let d=f&&!f.startsWith("/")?"/":"";return`${u}${d}${f||""}`};return{name:"rest",setToken:f=>{n=f},getSession:async()=>{if(!r?.sessionUrl)return n?{token:n}:null;let f=await he(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 p=await he(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(f)}));return p.data?.token&&(n=p.data.token),p},signOut:async()=>(r?.signOutUrl&&await he(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),n=null,{error:null}),select:({from:f,params:p,select:u,limit:d,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let x={...p};return u&&(x.select=u),d&&(x.limit=d),h&&(x.offset=h),m&&(x.single=!0),g&&(typeof g=="string"?x.order=g:Array.isArray(g)?x.order=g.map(_=>`${_.by}:${_.asc===!1?"desc":"asc"}`).join(","):g.by&&(x.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),he(yx(b||t,f||"",x),a({headers:s(y)}))},rpc:({from:f,params:p,headers:u,baseUrl:d})=>he(c(`rpc/${f}`,d),a({method:"POST",headers:i(u),body:JSON.stringify(p)})),insert:({from:f,data:p,headers:u,baseUrl:d})=>he(c(f,d),a({method:"POST",headers:i(u),body:JSON.stringify(p)})),update:({from:f,data:p,params:u,method:d,headers:h,baseUrl:g})=>{let m=u?.id||p?.id,y=m?`${f}/${m}`:f;return he(c(y,g),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(p)}))},delete:({from:f,params:p,headers:u,baseUrl:d})=>{let h=p?.id,g=h?`${f}/${h}`:f;return he(c(g,d),a({method:"DELETE",headers:s(u)}))}}}});var dp={};$(dp,{localAdapter:()=>pp,setup:()=>Sx});var ca,xx,Sx,pp,hp=I(()=>{"use strict";ca=(t,e)=>{if(!e)return!0;for(let r in e){let o=e[r];if(o===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(o)){if(!o.includes(t[r]))return!1}else if(typeof o=="object"){for(let n in o)if(n==="gt"&&!(t[r]>o[n])||n==="gte"&&!(t[r]>=o[n])||n==="lt"&&!(t[r]<o[n])||n==="lte"&&!(t[r]<=o[n])||n==="neq"&&t[r]===o[n]||n==="like"&&!String(t[r]).includes(o[n]))return!1}else if(t[r]!==o)return!1}return!0},xx=(t,{order:e,limit:r,offset:o,single:n})=>{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 o&&(s=s.slice(o)),r&&(s=s.slice(0,r)),n?{data:s[0]||null,error:null}:{data:s,error:null}},Sx=async({data:t,...e})=>pp(t,e),pp=(t={},e={})=>{let r={},o={},n=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!r[f])if(n)try{let p=localStorage.getItem(s+f);r[f]=p?JSON.parse(p):t[f]||[]}catch{r[f]=t[f]||[]}else r[f]=t[f]||[];return r[f]},a=f=>{if(n)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},c=(f,p,u,d)=>{let h=o[f];if(h)for(let g of h)g(u,d,{event:p,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:p,...u})=>{let h=i(f).filter(g=>ca(g,p));return xx(h,u)},insert:async({from:f,data:p})=>{let u=i(f),h=(Array.isArray(p)?p:[p]).map(g=>{let m={id:g.id||++l,...g};return u.push(m),m});a(f);for(let g of h)c(f,"INSERT",g,null);return{data:Array.isArray(p)?h:h[0],error:null}},update:async({from:f,data:p,params:u})=>{let d=i(f),h=[];for(let g=0;g<d.length;g++)if(ca(d[g],u)){let m={...d[g]};Object.assign(d[g],p),h.push(d[g]),c(f,"UPDATE",d[g],m)}return a(f),{data:h,error:null}},delete:async({from:f,params:p})=>{let u=i(f),d=[];for(let h=u.length-1;h>=0;h--)ca(u[h],p)&&(d.push(u[h]),u.splice(h,1),c(f,"DELETE",null,d[d.length-1]));return a(f),{data:d,error:null}},subscribe:({from:f,on:p},u)=>{o[f]||(o[f]=[]);let d=(h,g,m)=>{p&&p!=="*"&&p!==m.event||u(h,g,m)};return o[f].push(d),()=>{let h=o[f].indexOf(d);h>-1&&o[f].splice(h,1)}}}}});var lo={};$(lo,{createAdapter:()=>kx,default:()=>$x,executeFetch:()=>co,fetchPlugin:()=>da,initAdapterAuth:()=>Rn,parseDuration:()=>oo,queryClient:()=>Ix,registerAdapter:()=>wx,resolveDb:()=>xp});var _x,bp,wx,kx,xp,oo,dt,Sp,ro,vx,ao,no,so,Tn,ua,On,Cx,gp,la,_p,wp,ar,mp,Ax,yp,Ex,Pn,kp,Rn,pa,Et,jt,io,Be,Xt,ge,Tx,Ox,Rx,fa,Px,co,Ix,da,$x,Ve=I(()=>{"use strict";O();_x=["select","rpc","insert","update","delete","subscribe"],bp={supabase:()=>Promise.resolve().then(()=>(cp(),ap)),rest:()=>Promise.resolve().then(()=>(up(),fp)),local:()=>Promise.resolve().then(()=>(hp(),dp))},wx=(t,e)=>{bp[t]=e},kx=t=>{let e={};for(let r of _x)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},xp=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,o=typeof e=="string"?e:typeof t=="string"?t:null;if(!o)return null;let n=bp[o];if(!n)throw new Error(`Unknown db adapter: "${o}". Use registerAdapter() for adapters with optional deps.`);return(await n()).setup(r)},oo=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]),o=e[2];return o==="ms"?r:o==="s"?r*1e3:o==="m"?r*6e4:o==="h"?r*36e5:0},dt=new Map,Sp=new Map,ro=new Map,vx=(t,e)=>{if(t.cache?.key)return t.cache.key;let r=Ex(t.params),o=`${t.from}:${t.method}:${JSON.stringify(r||"")}`;return e?`${o}:${e}`:o},ao=t=>dt.get(t)||null,no=(t,e,r)=>{let o=dt.get(t),n={data:e,error:r,time:Date.now(),stale:!1};dt.set(t,n);let s=Sp.get(t);if(s)for(let i of s)C(i)&&i(n);return n},so=t=>{if(t){let e=dt.get(t);e&&(e.stale=!0);return}for(let[,e]of dt)e.stale=!0},Tn=t=>{if(t){dt.delete(t);return}dt.clear()},ua=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)}:w(t)?{staleTime:oo(t),gcTime:3e5}:{staleTime:oo(t.stale||t.staleTime)||6e4,gcTime:oo(t.gc||t.gcTime||t.expire)||3e5,key:t.key},On=null,Cx=()=>{On||(On=setInterval(()=>{let t=Date.now();for(let[e,r]of dt){let o=Sp.get(e);!(o&&o.size>0)&&t-r.time>(r.gcTime||3e5)&&dt.delete(e)}},3e4),On.unref&&On.unref())};Cx();gp=3,la=t=>Math.min(1e3*2**t,3e4),_p=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:gp,delay:la}:typeof e=="number"?{count:e,delay:la}:{count:e.count??gp,delay:C(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:la}},wp=async(t,e)=>{let{count:r,delay:o}=e,n;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(n=i.error,s<r){let a=C(o)?o(s,n):o;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(n=i,s<r){let a=C(o)?o(s,i):o;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:n}},ar={focus:new Set,online:new Set},mp=!1,Ax=()=>{if(mp||typeof window>"u")return;mp=!0;let t=()=>{for(let r of ar.focus)r()},e=()=>{for(let r of ar.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},yp=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(w(t))return{from:t,method:"select",query:!0,on:"create"};if(S(t)){let o={...t};return o.from=o.from||r.__state||e.key,o.method=o.method||"select",o.on=o.on||"create",o.query===void 0&&(o.query=!0),o}return null},Ex=t=>(!t||C(t),t),Pn=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},kp=(t,e,r)=>{let o;if(!t)o=void 0;else if(C(t))o=t(e,e.state);else{o={};for(let n in t){let s=t[n];o[n]=C(s)?s(e,e.state):s}}return o},Rn=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(o,n)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:o,session:n,loading:!1}})};try{let o=await t.getSession();r(o?.user||null,o)}catch(o){console.warn("[fetch] Failed to restore auth session:",o.message)}t.onAuthStateChange&&t.onAuthStateChange((o,n)=>{r(n?.user||null,n)})},pa=async(t,e)=>{if(C(t.select))return t.auth!==!1&&await Rn(t,e),t;if(t.__resolved)return t.auth!==!1&&await Rn(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=xp(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 Rn(r,e),r):null},Et=(t,e,...r)=>{let o=C(t[e])?t[e]:null;o&&o.call(t,...r,t,t.state,t.context)},jt=(t,e,r,...o)=>{let n=t&&C(t[r])?t[r]:null;n&&n.call(e,...o,e,e.state,e.context)},io=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let n=new FormData(r);for(let[s,i]of n.entries())e[s]=i;return e}let o=r.querySelectorAll("input, textarea, select");for(let n=0;n<o.length;n++){let s=o[n],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},Be=(t,e,r,o={})=>{let n=r&&r.startsWith("~/"),s=n&&t.state?.root||t.state;if(s?.update)if(n){let i=r.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&i in e?s.update(e,{preventFetch:!0,...o}):s.update({[i]:e},{preventFetch:!0,...o})}else{let i=r?{[r]:e}:e;s.update(i,{preventFetch:!0,...o})}},Xt=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},ge=async(t,e,r,o={})=>{let n=r?.fetch;if(!n||!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 pa(n,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:p,transform:u,single:d,auth:h,fields:g,as:m,limit:y,offset:b,order:x,headers:_,baseUrl:v,page:E,cursor:P,getNextPageParam:B,getPreviousPageParam:R,infinite:D,placeholderData:Q,initialData:V,select:j,keepPreviousData:Ft}=t,Dt=w(j)?j:void 0;if(l&&C(e.getQuery)){let H=e.getQuery(s.name||"paths");H&&(Dt=H.select||H.length&&H.join(",")||Dt)}let Gt=kp(f,e,r),Lt=ua(p),Wo=_p(t),ai=Pn(e,r),zb=ai?`:${ai}`:"",tt=Lt?p?.key||`${a}:${c}:${JSON.stringify(Gt||"")}${D?":infinite":""}${E?":p"+JSON.stringify(E):""}${zb}`:null;if(!i.__fetchInitialized&&tt&&(i.__fetchInitialized=!0,V!==void 0)){let H=C(V)?V():V;no(tt,H,null)}if((c==="select"||c==="rpc")&&tt&&Lt){let H=ao(tt);if(H&&!H.error){let z=Date.now()-H.time,J=H.stale||z>(Lt.staleTime||0),N=H.data;if(C(j)&&(N=j(N,e,e.state)),u&&(N=u(N,e,e.state)),Be(e,N,m),!J){Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(Q!==void 0){let z=C(Q)?Q(e,e.state):Q;z!==void 0&&Be(e,z,m)}}if(tt&&ro.has(tt)&&!o.force){let H=ro.get(tt);try{let z=await Promise.race([H,new Promise((J,N)=>setTimeout(()=>N("DEDUP_TIMEOUT"),15e3))]);if(z?.data!==void 0){let J=z.data;C(j)&&(J=j(J,e,e.state)),u&&(J=u(J,e,e.state)),Be(e,J,m),Et(e,"onFetchComplete",J),jt(t,e,"onFetchComplete",J)}}catch{}return}let Ub=!ao(tt)?.data;Xt(e,{isFetching:!0,isLoading:Ub,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Et(e,"onFetchStart"),jt(t,e,"onFetchStart");let oe=r?.analyze?.emitNetwork,ci=oe?typeof performance<"u"?performance.now():Date.now():0;oe&&oe({phase:"start",mode:"query",from:a,method:c,cacheKey:tt,lang:ai});let lf=wp(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let N=await s.getSession();if(h===!0&&!N){let ut={message:"Not authenticated"};return Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ut,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",ut),jt(t,e,"onFetchError",ut),{data:null,error:ut}}}let H=s[c];if(!C(H))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let z={from:a,select:Dt,params:Gt,single:d,limit:y,offset:b,order:x,headers:_,baseUrl:v},J=Pn(e,r);if(J&&(z.headers={...z.headers,"Accept-Language":J}),E!==void 0){if(S(E))E.offset!==void 0&&(z.offset=E.offset),E.limit!==void 0&&(z.limit=E.limit),E.cursor!==void 0&&(z.params={...z.params,cursor:E.cursor});else if(typeof E=="number"){let N=t.pageSize||y||20;z.offset=(E-1)*N,z.limit=N}}if(P!==void 0&&(z.params={...z.params,cursor:P}),c==="insert"||c==="update"||c==="upsert"){let N;if(g===!0||t.on==="submit")N=io(e);else if(T(g)){let ut=io(e);N={};for(let li of g)N[li]=ut[li]}else e.state?.parse?N=e.state.parse():S(e.state)&&(N={...e.state});u&&(N=u(N,e,e.state)),z.data=N}if(c==="rpc"){let N=Gt;if(t.on==="submit"){let ut=io(e);N=t.transformParams?t.transformParams(ut,e,e.state):ut}z.params=N}if(c==="subscribe"){let N=s.subscribe({from:a,params:Gt,on:t.subscribeOn},(ut,li,Sk)=>{Be(e,ut,m),Et(e,"onFetchComplete",ut),jt(t,e,"onFetchComplete",ut)});return i.__unsubscribe=N,{data:null,error:null,subscribed:!0}}return H(z)},Wo);tt&&ro.set(tt,lf);try{let H=await lf;if(H?.subscribed)return;let{data:z,error:J}=H||{};if(J){tt&&no(tt,null,J),Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:J,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",J),jt(t,e,"onFetchError",J),oe&&oe({phase:"error",mode:"query",from:a,method:c,cacheKey:tt,error:J.message||J,durationMs:(typeof performance<"u"?performance.now():Date.now())-ci});return}if(z!==void 0){if((c==="select"||c==="rpc")&&tt){let ut=no(tt,z,null);ut.gcTime=Lt?.gcTime||3e5}let N=z;D&&T(z)&&(i.__pages||(i.__pages=[]),o.direction==="previous"?i.__pages.unshift(z):i.__pages.push(z),N=i.__pages.flat(),B&&(i.__nextPageParam=B(z,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),R&&(i.__prevPageParam=R(z,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),C(j)&&(N=j(N,e,e.state)),u&&(N=u(N,e,e.state)),(!Ft||N!==void 0)&&Be(e,N,m),Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Et(e,"onFetchComplete",N),jt(t,e,"onFetchComplete",N),oe&&oe({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:tt,durationMs:(typeof performance<"u"?performance.now():Date.now())-ci})}}catch(H){Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:H,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",H),jt(t,e,"onFetchError",H),oe&&oe({phase:"error",mode:"query",from:a,method:c,cacheKey:tt,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-ci})}finally{tt&&ro.delete(tt)}},Tx=(t,e,r)=>{let o=t.on,n=e.__ref;n.__fetchListeners||(n.__fetchListeners=[]);let s=t.__runner||ge;if(o==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),n.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(o==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),n.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else o==="stateChange"&&(n.__fetchOnStateChange=()=>s(t,e,r))},Ox=(t,e,r)=>{let o=e.__ref;o.__fetchCleanups||(o.__fetchCleanups=[]),Ax();let n=t.refetchInterval;if(n){let s=typeof n=="number"?n:oo(n);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&ge(t,e,r,{force:!0})},s);o.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Pn(e,r),a=vx(t,i),c=ao(a),l=ua(t.cache);(!c||c.stale||Date.now()-c.time>(l?.staleTime||0))&&ge(t,e,r,{force:!0})};ar.focus.add(s),o.__fetchCleanups.push(()=>ar.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>ge(t,e,r,{force:!0});ar.online.add(s),o.__fetchCleanups.push(()=>ar.online.delete(s))}},Rx=(t,e,r)=>{if(!e.optimistic)return null;let o=t.__ref,n=e.as,s=t.state?.parse?t.state.parse():S(t.state)?{...t.state}:t.state;o.__optimisticSnapshot=s;let i=C(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Be(t,i,n),s},fa=(t,e)=>{let r=t.__ref,o=r.__optimisticSnapshot;o!==void 0&&(Be(t,o,e.as),delete r.__optimisticSnapshot)},Px=async(t,e,r)=>{let o=r?.fetch;if(!o)return;let n=await pa(o,r);if(!n)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:p,auth:u,headers:d,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:_}=t,v;if(c===!0||p==="submit")v=io(e);else if(T(c)){let R=io(e);v={};for(let D of c)v[D]=R[D]}else e.state?.parse?v=e.state.parse():S(e.state)&&(v={...e.state});l&&(v=l(v,e,e.state)),C(y)&&y(v,e,e.state);let E=m?Rx(e,t,v):null;s.__fetching=!0,Xt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Et(e,"onFetchStart"),jt(t,e,"onFetchStart");let P=r?.analyze?.emitNetwork,B=P?typeof performance<"u"?performance.now():Date.now():0;P&&P({phase:"start",mode:"mutation",from:a,method:i});try{if(u!==!1&&n.auth!==!1&&n.getSession){let Gt=await n.getSession();if(u===!0&&!Gt){E!==void 0&&fa(e,t);let Lt={message:"Not authenticated"};Et(e,"onFetchError",Lt),jt(t,e,"onFetchError",Lt);return}}let R=n[i];if(!C(R))return;let D={from:a,data:v,headers:d,baseUrl:h};t.params&&(D.params=kp(t.params,e,r));let Q=Pn(e,r);Q&&(D.headers={...D.headers,"Accept-Language":Q});let V=_p(t),j=await wp(()=>R(D),V),{data:Ft,error:Dt}=j||{};if(Dt){E!==void 0&&fa(e,t),Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Dt,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",Dt),C(x)&&x(Dt,v,e),C(_)&&_(null,Dt,v,e),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:Dt.message||String(Dt),durationMs:(typeof performance<"u"?performance.now():Date.now())-B});return}if(delete s.__optimisticSnapshot,Ft!==void 0){let Gt=f?{[f]:Ft}:Ft;e.state?.update&&e.state.update(Gt,{preventFetch:!0})}if(Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Et(e,"onFetchComplete",Ft),jt(t,e,"onFetchComplete",Ft),C(b)&&b(Ft,v,e),C(_)&&_(Ft,null,v,e),P&&P({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-B}),g){let Gt=T(g)?g:[g];for(let Lt of Gt)if(Lt===!0||Lt==="*")for(let[Wo]of dt)Wo.startsWith(a+":")&&so(Wo);else so(Lt)}}catch(R){E!==void 0&&fa(e,t),Xt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:R,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",R),jt(t,e,"onFetchError",R),C(x)&&x(R,v,e),C(_)&&_(null,R,v,e),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:R.message||String(R),durationMs:(typeof performance<"u"?performance.now():Date.now())-B})}finally{s.__fetching=!1}},co=(t,e,r,o)=>{if(!t||!o?.fetch)return;let s=G(t,e);if(!s)return;let i=T(s)?s.map(c=>yp(G(c,e),e)).filter(Boolean):[yp(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?Px:ge;c.on==="create"?f(c,e,o):Promise.resolve().then(()=>{Tx({...c,__runner:f},e,o)}),!l&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Ox(c,e,o)}let a=e.__ref;a.refetch=c=>{for(let l of i)ge(l,e,o,{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};ge(f,e,o,{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};ge(f,e,o,{direction:"previous",force:!0})}},Ix={invalidateQueries:t=>{if(!t){so();return}if(w(t))for(let[e]of dt)(e.startsWith(t)||e.includes(t))&&so(e);else if(T(t)){let e=t.join(":");for(let[r]of dt)r.includes(e)&&so(r)}},removeQueries:t=>{if(!t){Tn();return}if(w(t))for(let[e]of dt)(e.startsWith(t)||e.includes(t))&&Tn(e)},getQueryData:t=>ao(t)?.data??void 0,setQueryData:(t,e)=>{let r=ao(t),o=C(e)?e(r?.data):e;no(t,o,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let o=await pa(r,e);if(!o)return;let n=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=o[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=no(n,i.data,null);a.gcTime=ua(t.cache)?.gcTime||3e5}return i},getCache:()=>dt,clear:()=>Tn(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of dt)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||Tn(r))}},da={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||ro.clear(),co(e,t,t.state,t.context))}},$x=co});function $n(t){let e=this,{__ref:r}=e,o=[].concat(t),n=r.root[o[0]];if(!o||!o.length)return console.log(o,"on",e.key,"is undefined");for(;n.key===o[0]&&(o.shift(),!!o.length);)if(n=n[o[0]],!n)return;return n}function Cp(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 Ap(t){let e=this,{__ref:r}=e,o=r?.__children;if(o)for(let n=0;n<o.length;n++){let s=o[n],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 Ep(t,e=[]){let r=this,{__ref:o}=r,n=o?.__children;if(n){for(let s=0;s<n.length;s++){let i=n[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 ga(t={}){let e=this;if(e.node?.style){for(let r in t){let o=t[r],n=e[r];if(S(o)&&n)ga.call(n,o);else if(o!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(o).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function Tp(t){let e=this;if(je("beforeRemove",e,t)===!1)return e;C(e.node.remove)?e.node.remove():Me()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=Zo(e.parent.__ref.__children,e.key)),je("remove",e,t)}function Op(t){return this[t]}function Rp(t,e){let r=this;if(t)return r.update(t,e),r}function Pp(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Fn(){return this.getRef("__children").map(e=>this[e])}function Dn(){return this.getRef().path}function Mn(t){let e=null,r=o=>o.__element&&o.root?.isRootState;if(!this)e=vp();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let o=this.state&&r(this.state),n=C(this.state)&&this.parent.state&&r(this.parent.state);(o||n)&&(e=this.state.root||this.parent.state.root)}return e||(e=vp()),t?e?.[t]:e}function Nn(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function jn(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Bn(t){let e=this.getRoot()?.context;return t?e[t]:e}function Vn(t){let e=this.context;return t?e[t]:e}function ma(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||$e.has(r)&&!tn.has(r)||e.push(r);return e}function ya(t=[]){let e=this,r={},o=ma.call(e),n=o.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<o.length;i++){let a=o[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||n&&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,...p}=e[a];r[a]=p}else St(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function In(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let o=ya.call(r,t),n=t.length?new Set(t):null;for(let s in o){if(n&&n.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=o[s];Array.isArray(i)?o[s]=i.map(a=>L(a)?In.call(a,t,e):a):L(i)&&(o[s]=In.call(i,t,e))}return o}function fo(...t){if(me!=="test"&&me!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(o=>console.log(`%c${o}:
15
+ `,"font-weight: bold",e[o])):(console.log(r.path),e.keys().forEach(n=>console.log(`%c${n}:`,"font-weight: bold",e[n]))),console.log(e),console.groupEnd(e.key),e}function Fp(...t){(me==="test"||me==="development")&&console.log(...t)}function zn(...t){(me==="test"||me==="development")&&console.warn(...t)}function cr(...t){if(me==="test"||me==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&fo.call(this),new Error(...t)}}function Un(){let t=this,{key:e,parent:r}=t,{__children:o}=r.__ref,n=o.indexOf(e),s=o[n+1];return r[s]}function Wn(t){let e=t||this,{key:r,parent:o}=e,{__children:n}=o.__ref;if(!n)return;let s=n.indexOf(r);return o[n[s-1]]}function Hn(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,o={},n;for(let s in t)t[s]!==r[s]&&(n=!0,o[s]=t[s]);return{changed:s=>{if(!n)return;let i=s(o,Y(r));for(let a in o)r[a]=o[a];return i},timeout:(s,i)=>{if(!n)return;let a=setTimeout(()=>{s(o),clearTimeout(a)},i)}}}function Dp(t,...e){let r=this.context,o=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(o)try{let n=o.call(this,...e);return n&&typeof n.then=="function"&&n.catch(s=>{cr.call(this,s)}),n}catch(n){if(cr.call(this,n),r?.strictMode)throw n}}async function qn(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:n}=await Promise.resolve().then(()=>(Ve(),lo));await n(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:n}=await Promise.resolve().then(()=>(Ve(),lo));await n(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(Ve(),lo)).then(({resolveDb:n})=>n(e));e.__resolving=r;let o=await r;if(e.__resolved=o,t.context.fetch=o,delete e.__resolving,o.getSession){let{initAdapterAuth:n}=await Promise.resolve().then(()=>(Ve(),lo));await n(o,t.context)}return o}function Gn(t){let e=this,r=t||En.useStateQuery||e.context?.useStateQuery;if(!r)return null;let o={};if(ha(e,o),r===!0)return o;let n=Vx[r];return n?n(o):o}function Mp(t,e){return!!(Yr.has(t)||e?.context?.methods?.[t])}var me,Ip,Ln,vp,$p,ha,Fx,Lp,Dx,Lx,Mx,Nx,jx,Bx,Vx,Np=I(()=>{"use strict";sa();or();it();se();vi();tr();ia();me="production";Ip=null,Ln=t=>{Ip=t||null},vp=()=>Ip||null;$p=(t,e,r,o)=>Object.defineProperty(t,e,{get:r,set:o});ha=(t,e)=>{let r=t.__ref;if(!r)return;let o=r.__state;o&&typeof o=="string"&&Fx(e,o);let n=r.__children;if(n)for(let a=0;a<n.length;a++){let c=t[n[a]];c&&c.__ref&&ha(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&ha(i,e)},Fx=(t,e)=>{let o=e.replaceAll("../","").replaceAll("~/","").split("/"),n=t;for(let s=0;s<o.length;s++){let i=o[s];s===o.length-1?n[i]||(n[i]=!0):(n[i]===!0&&(n[i]={}),n[i]||(n[i]={}),n=n[i])}},Lp=(t,e=0)=>{let r=" ".repeat(e),o=Object.entries(t);return o.length?o.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
16
+ ${Lp(i,e+1)}
17
17
  ${r}}`).join(`
18
- `):""},rS=e=>`{
19
- ${wd(e,1)}
20
- }`,oS=e=>{let t={fields:{},include:[]},r=(o,n)=>{let s=[];for(let i in o)if(o[i]===!0)s.push(i);else{let a=n?`${n}.${i}`:i;t.include.push(a),r(o[i],a)}s.length&&(t.fields[n||"_root"]=s)};return r(e,""),t},nS=e=>{let t=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=t(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:o}=t(e),n=[];return r&&n.push(`$select=${r}`),o&&n.push(`$expand=${o}`),n.join("&")},sS=(e,t)=>{let r=[],o=[],n=new Set,s=(f,p,u)=>{n.add(p),u&&o.push(`LEFT JOIN ${p} ON ${p}.${u}_id = ${u}.id`);for(let d in f)f[d]===!0?r.push(`${p}.${d}`):s(f[d],d,p)},i=Object.keys(e);i.length===1&&e[i[0]]!==!0?s(e[i[0]],i[0],null):s(e,"_root",null);let a=[...n][0]||"_root",c=r.length?r.join(", "):"*",l=o.length?`
18
+ `):""},Dx=t=>`{
19
+ ${Lp(t,1)}
20
+ }`,Lx=t=>{let e={fields:{},include:[]},r=(o,n)=>{let s=[];for(let i in o)if(o[i]===!0)s.push(i);else{let a=n?`${n}.${i}`:i;e.include.push(a),r(o[i],a)}s.length&&(e.fields[n||"_root"]=s)};return r(t,""),e},Mx=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:o}=e(t),n=[];return r&&n.push(`$select=${r}`),o&&n.push(`$expand=${o}`),n.join("&")},Nx=(t,e)=>{let r=[],o=[],n=new Set,s=(f,p,u)=>{n.add(p),u&&o.push(`LEFT JOIN ${p} ON ${p}.${u}_id = ${u}.id`);for(let d in f)f[d]===!0?r.push(`${p}.${d}`):s(f[d],d,p)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...n][0]||"_root",c=r.length?r.join(", "):"*",l=o.length?`
21
21
  `+o.join(`
22
22
  `):"";return`SELECT ${c}
23
- FROM ${a}${l}`},iS=e=>{let t=[],r=(o,n)=>{for(let s in o){let i=n?`${n}/${s}`:s;o[s]===!0?t.push(i):r(o[s],i)}};return r(e,""),t},aS=e=>{let t=o=>{let n=[];for(let s in o)o[s]===!0?n.push(s):n.push(`${s}(${t(o[s])})`);return n.join(", ")},r=Object.keys(e);return r.length===1&&e[r[0]]!==!0?{from:r[0],select:t(e[r[0]])}:{from:null,select:t(e)}},cS={graphql:rS,"json-api":oS,odata:nS,sql:sS,supabase:aS,paths:iS}});var lS,Cd,Ad=F(()=>{"use strict";gn();lS={snapshotId:hn},Cd=(e,t)=>{let r=e.__ref,{currentSnapshot:o,calleeElement:n}=t;if(!n||n===e){let a=lS.snapshotId();return r.__currentSnapshot=a,[a,e]}let i=n.__ref.__currentSnapshot;return o<i?[i,n,!0]:[i,n]}});var ka,Ed,Td=F(()=>{ka=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Ed=e=>typeof e=="string"&&ka.has(e)});async function Od(e){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(t){console.warn(`Error attempting to enable fullscreen mode: ${t.message} (${t.name})`)}}var Rd=F(()=>{"use strict"});function fS(e){return/^[0-9.]+$/.test(e)&&e!==""}var et,Ht,bo,tt,Pd,Id=F(()=>{"use strict";et={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${et.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${et.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${et.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${et.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!fS(t)?`${et.symbols.url}/${e}`:`${et.symbols.url}/${e}/${t}.js`}},Ht={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},bo=(e={})=>{let{packageManager:t}=e;return Ht[t]||null},tt=(e,t="latest",r="esmsh")=>(et[r]||et.esmsh).formatUrl(e,t),Pd=(e,t="skypack")=>{let r=e.dependencies||{},o=Object.keys(r);if(!o.length)return"";let n={};for(let s of o){let i=r[s]||"latest";n[s]=tt(s,i,t)}return`<script type="importmap">{
23
+ FROM ${a}${l}`},jx=t=>{let e=[],r=(o,n)=>{for(let s in o){let i=n?`${n}/${s}`:s;o[s]===!0?e.push(i):r(o[s],i)}};return r(t,""),e},Bx=t=>{let e=o=>{let n=[];for(let s in o)o[s]===!0?n.push(s):n.push(`${s}(${e(o[s])})`);return n.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)}},Vx={graphql:Dx,"json-api":Lx,odata:Mx,sql:Nx,supabase:Bx,paths:jx}});var zx,jp,Bp=I(()=>{"use strict";fn();zx={snapshotId:cn},jp=(t,e)=>{let r=t.__ref,{currentSnapshot:o,calleeElement:n}=e;if(!n||n===t){let a=zx.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=n.__ref.__currentSnapshot;return o<i?[i,n,!0]:[i,n]}});var ba,Vp,zp=I(()=>{ba=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Vp=t=>typeof t=="string"&&ba.has(t)});async function Up(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 Wp=I(()=>{"use strict"});function Ux(t){return/^[0-9.]+$/.test(t)&&t!==""}var Zt,ze,uo,Jt,Hp,qp=I(()=>{"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||!Ux(e)?`${Zt.symbols.url}/${t}`:`${Zt.symbols.url}/${t}/${e}.js`}},ze={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},uo=(t={})=>{let{packageManager:e}=t;return ze[e]||null},Jt=(t,e="latest",r="esmsh")=>(Zt[r]||Zt.esmsh).formatUrl(t,e),Hp=(t,e="skypack")=>{let r=t.dependencies||{},o=Object.keys(r);if(!o.length)return"";let n={};for(let s of o){let i=r[s]||"latest";n[s]=Jt(s,i,e)}return`<script type="importmap">{
24
24
  "imports": ${JSON.stringify(n,null,2)}
25
- }<\/script>`}});var $d,Fd=F(()=>{"use strict";$d=e=>{if(!e)return"";let t=new Date(e),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),o=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)} ${o}, ${r}`}});var Dd,Ld=F(()=>{"use strict";Dd=(e,t)=>{let r=setTimeout(()=>{let{props:o}=e;if(!t.clientHeight){let{node:{clientHeight:n}}=e;n&&(t.clientHeight=n)}if(t.active){if(o.height==="auto")return;e.update({height:t.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let n=setTimeout(()=>{e.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(n)},450)}else e.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var Md,Nd=F(()=>{"use strict";Md=function(t){let r=[0,1];for(let o=2;o<=t;o++)r[o]=r[o-1]+r[o-2];return r[t]}});var Bd,jd=F(()=>{"use strict";Bd=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function xo(e,t={}){let{window:r=globalThis}=t,{document:o=r.document}=t;return new Promise((n,s)=>{let i=o.querySelector(`script[src="${e}"]`);if(i)return n(i);let a=o.createElement("script");a.src=e,a.async=t.async===!0,a.type=t.type||"text/javascript",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,n(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${e}`))},o.head.appendChild(a)})}async function qd(e,t={}){let{window:r=globalThis}=t,{document:o=r.document}=t;return new Promise((n,s)=>{let i=o.querySelector(`link[href="${e}"]`);if(i)return n(i);let a=o.createElement("link");a.href=e,a.rel=t.rel||"stylesheet",a.type="text/css",a.media=t.media||"all",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,n(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${e}`))},o.head.appendChild(a)})}var zd,Wd,Vd,Hd,Ud,Gd=F(()=>{"use strict";zd=(e,t=!1,r=document,o="text/javascript")=>new Promise((n,s)=>{try{let i=r.createElement("script");i.type=o,i.async=t,i.src=e,i.addEventListener("load",a=>{n({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${e}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),Wd=(e,t=document,r="text/javascript")=>new Promise((o,n)=>{let s=t.createElement("script");s.type=r,s.src=e;let i=t.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",t.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${e}`),t.body.removeChild(i),o()},s.onerror=()=>{t.body.removeChild(i),n(new Error(`Failed to load: ${e}`))},t.body.appendChild(s)}),Vd=(e,t=document,r,o="text/javascript")=>{let n=new window.XMLHttpRequest;if(n.open("GET",e,!1),n.send(),n.status===200){let s=t.createElement("script");s.type=o,s.text=n.responseText,t.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${e}`)},Hd=(e,t=!1,r=document,o="text/javascript")=>new Promise((n,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=e,i.addEventListener("load",a=>{n({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),Ud=(e,t=!1,r=document,o="text/javascript",n="smbls-script")=>{try{let s=r.createElement("script");s.type=o,s.async=t,s.id=n,s.innerHTML=e,r.body.appendChild(s)}catch(s){console.warn(s)}}});function dS(e,t){if(!t||typeof t!="object")return e;let r=n=>{if(!pS(n))return n;let s=t[n];return s?.src?s.src:n},o={...e};for(let[n,s]of Object.entries(o))typeof s=="string"?o[n]=r(s):Array.isArray(s)&&(o[n]=s.map(i=>typeof i=="string"?r(i):i));return o}function es(e,t){if(!e||!t)return;let r=t.split("."),o=e;for(let n of r){if(o==null||typeof o!="object")return;o=o[n]}return o}function hS(e,t,r){let n=(t.config||t.settings||{}).polyglot||t.polyglot,s=r?.lang||n?.defaultLang||"en",a=(n?.translations||{})[s]||{},c=r?.state||{},l={...e};for(let[f,p]of Object.entries(l))typeof p!="string"||!p.includes("{{")||(l[f]=p.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(u,d,h)=>{let m=d.trim();if(h==="polyglot")return a[m]??es(a,m)??u;if(h==="getLocalStateLang")return es(c,m+s)??u;let g=es(c,m);return g!==void 0?g:a[m]??es(a,m)??u}));return l}function Kd(e){let t={...e};for(let[r,o]of Object.entries(t))if(typeof o=="function"){let n=o.toString(),s=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=n.match(/s\.(\w+(?:\.\w+)+)/);if(a){t[r]=`{{ ${a[1]} }}`;continue}delete t[r]}else if(typeof o=="string"){let n=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(n){t[r]=`{{ ${n[1]} | getLocalStateLang }}`;continue}let s=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | polyglot }}`;continue}if(o.includes("=>")&&o.includes("s.")){let i=o.match(/s\.(\w+(?:\.\w+)+)/);if(i){t[r]=`{{ ${i[1]} }}`;continue}}}return t}function Xd(e,t,r,{isProduction:o=!1,channel:n="production"}={}){let s=e.pages?.[t],i=v(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=Kd(a),l=new Set(Object.keys(c)),f=e.app?.metadata||{},p=Kd(f),u={};if(e.integrations?.seo?u={...e.integrations.seo,...p,...c}:Object.keys(p).length?u={...p,...c}:u={...c},!u.title){let m=e.name||e.key;m?o?u.title=m:n==="development"?u.title=`${m} / dev:symbo.ls`:n==="staging"?u.title=`${m} / staging:symbo.ls`:u.title=`${m} / symbo.ls`:u.title="Symbols demo"}u=hS(u,e,r),u.title&&(l.has("title")||!u["og:title"])&&(l.has("og:title")||(u["og:title"]=u.title)),u.description&&(l.has("description")||!u["og:description"])&&(l.has("og:description")||(u["og:description"]=u.description)),u.title&&!u["twitter:title"]&&(u["twitter:title"]=u.title),u.description&&!u["twitter:description"]&&(u["twitter:description"]=u.description);let d=r?.actualPathname||t;if(u["og:url"]||u.url){let m=(u["og:url"]||u.url||"").replace(/\/$/,"");if(m&&d&&d!=="/"){let g=d.startsWith("/")?d:"/"+d;u["og:url"]=m+g}}u=dS(u,e.files);let h=e.name||e.app?.metadata?.title||e.app?.name||"";for(let[m,g]of Object.entries(u))if(typeof g=="string"&&g.includes("{{")){let y=g.replace(/\{\{[^}]*\}\}/g,"").trim();y?u[m]=y:m==="title"?u[m]=h:delete u[m]}return u}var Re,uS,Yd,pS,Zd=F(()=>{"use strict";ae();Re=e=>{if(e==null)return"";let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.toString().replace(/[&<>"']/g,r=>t[r])},uS=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${Re(r)}"`).join(" "),Yd=(e,t)=>(t||(e={...e,robots:"noindex"}),Object.entries(e).reduce((o,[n,s])=>{if(!s&&s!==0&&s!==!1)return o;if(n==="title")return o.push(`<title>${Re(s)}</title>`),o;if(n==="canonical")return o.push(`<link rel="canonical" href="${Re(s)}">`),o;if(n==="manifest")return o.push(`<link rel="manifest" href="${Re(s)}">`),o;if(n==="favicon"||n==="favicons"||n==="icon"||n==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="string")o.push(`<link rel="icon" href="${Re(f)}">`);else if(typeof f=="object"){let p=uS(f);/rel=/.test(p)?o.push(`<link ${p}>`):o.push(`<link rel="icon" ${p}>`)}}),o;if(n==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="object"){let p=Object.entries(f).filter(([u,d])=>d!==void 0).map(([u,d])=>`${u}="${Re(d)}"`).join(" ");o.push(`<link rel="alternate" ${p}>`)}}),o;let i=(l,f,p="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")o.push(`<meta ${p}="${Re(l)}" content="${Re(f)}">`);else if(Array.isArray(f))f.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")o.push(`<meta ${p}="${Re(l)}" content="${Re(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([h,m])=>m!==void 0).map(([h,m])=>`${h}="${Re(m)}"`).join(" ");o.push(`<meta ${d}>`)}});else if(typeof f=="object"){let u=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${Re(h)}"`).join(" ");o.push(`<meta ${u}>`)}};if(n.startsWith("http-equiv:")){let l=n.replace("http-equiv:","");return i(l,s,"http-equiv"),o}if(n.startsWith("itemprop:")){let l=n.replace("itemprop:","");return i(l,s,"itemprop"),o}let c=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(l=>n.startsWith(l));if(c){let l=n.replace(c,"");return i(`${c.replace(":","")}:${l}`,s,c==="twitter:"||c==="DC:"||c==="DCTERMS:"?"name":"property"),o}if(n.startsWith("apple:")||n.startsWith("msapplication:")){let l=n.startsWith("apple:")?"apple-":"msapplication-",f=n.replace(/^apple:|^msapplication:/,"");return i(`${l}${f}`,s,"name"),o}return i(n,s),o},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
26
- `)),pS=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")});var Ca,Jd,Qd=F(()=>{"use strict";ae();Ca=(e,t)=>(E(t)?t:Object.values(t)).reduce((r,o)=>Math.abs(o-e)<Math.abs(r-e)?o:r),Jd=(e,t)=>(e=parseFloat(e),v(t)&&(t=Object.values(t)),Ca(e,t))});function vo(e){let t=String(e||"").trim();if(!t)return{owner:eh,key:"",full:""};let r=null,o=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),o=t.slice(s+1)}o=o.replace(/\.symbo\.ls$/iu,""),r||(r=eh);let n=o?`${r}/${o}`:"";return{owner:r,key:o,full:n}}async function Aa(e,t={}){if((t.provider||"kv")==="api")return th(e,t);let o=await yS(e,t);return o||th(e,t)}async function yS(e,t={}){let r=t.kvBaseUrl||mS,o=t.env||"production",n=`${r}/kv/${encodeURIComponent(e)}?env=${o}`;try{let s=await fetch(n,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function th(e,t={}){let r=t.apiBaseUrl||gS,{key:o}=vo(e);try{let n=`${r}/core/projects/libraries/available?search=${encodeURIComponent(o)}&limit=10`,s=await fetch(n,{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}=vo(d?.key);return h.toLowerCase()===o.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,p=await fetch(f,{method:"GET"});if(!p.ok)return null;let u=await p.json();return u?.data||u||null}catch{return null}}async function rh(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async o=>{if(v(o))return o;if(S(o)){let{full:n}=vo(o);if(!n)return null;try{let s=await Aa(n,t);return s||console.warn(`[smbls] Shared library "${n}" not found`),s}catch(s){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,s.message),null}}return null}))).filter(Boolean)}var eh,mS,gS,ts,rs,oh=F(()=>{"use strict";ae();eh="system",mS="https://smbls-kv.nika-980.workers.dev",gS="https://api.symbols.app";ts=(e,t)=>{for(let r in t)r in e?v(e[r])&&v(t[r])&&ts(e[r],t[r]):e[r]=t[r]},rs=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let o=t[r];if(v(o)){for(let n in o)if(Object.prototype.hasOwnProperty.call(o,n))if(v(o[n])&&v(e[n]))if(n==="designSystem")ts(e[n],o[n]);else for(let s in o[n])s in e[n]||(e[n][s]=o[n][s]);else n in e||(e[n]=o[n])}}}});var nh,sh,ih,os,ah,ns,ch,ur,lh=F(()=>{"use strict";ae();nh=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},sh=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},ih=e=>e.replace(/[^a-zA-Z0-9_]/g,""),os=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),ah=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),ns=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),ch=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},ur=e=>{if(E(e))return e;if(S(e))return e.split(" ");if(v(e))return Object.values(e);if(at(e))return[e]}});var fh,uh=F(()=>{"use strict";fh=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let o=0;o<r.length;o++)t+=r[o].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}});var X,So,pr,dr,ph=F(()=>{"use strict";X=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let o=r.assets&&r.assets[t]||r.files&&r.files[t];return o?typeof o=="string"?{src:o,type:null,variants:null}:typeof o=="object"&&typeof o.src=="string"?o:null:null},So=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(n=>typeof n.width=="number"),o=[];for(let n of e)r&&typeof n.width=="number"?o.push(`${n.src} ${n.width}w`):r||(n.scale===1&&t?o.push(n.src):n.scale&&n.scale!==1&&o.push(`${n.src} ${n.scale}x`));return o.join(", ")},pr=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return So(t,{keepOneX:!1})},dr=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let o=[];for(let[a,c]of r)a!==e.type&&o.push({tag:"source",attr:{type:a,srcset:So(c,{keepOneX:!0})}});let n=r.get(e.type)||[],s=So(n,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...o,{tag:"img",attr:i}]}});var dh={};C(dh,{CDN_PROVIDERS:()=>et,DOMQL_EVENTS:()=>_u,DOMQ_PROPERTIES:()=>Dt,ENV:()=>zu,HTML_TAGS:()=>so,METHODS:()=>to,METHODS_EXL:()=>cn,NODE_ENV:()=>Ze,OPTIONS:()=>$n,PACKAGE_MANAGER_TO_CDN:()=>Ht,PARSED_DOMQ_PROPERTIES:()=>an,PROPS_METHODS:()=>Mt,STATE_METHODS:()=>Lt,STATE_PROPERTIES:()=>wu,SVG_TAGS:()=>cp,TYPES:()=>tn,UNIVERSAL_RESERVED_KEYS:()=>ka,addCaching:()=>oa,addContext:()=>ra,addExtend:()=>mp,addExtends:()=>Ce,addItemAfterEveryElement:()=>lu,addProtoToArray:()=>nn,addRef:()=>Qi,applyDependentState:()=>Mp,applyEvent:()=>la,applyEventUpdate:()=>fa,applyExtends:()=>yp,applyProps:()=>En,arrayContainsOtherArray:()=>ru,arraysEqual:()=>uu,arrayzeValue:()=>ur,buildImgSrcset:()=>pr,buildSourcesAndImg:()=>dr,cache:()=>Hp,call:()=>Sd,captureSnapshot:()=>Cd,checkForStateTypes:()=>$p,checkIfInherits:()=>ca,checkIfStringIsInArray:()=>hu,clone:()=>Eu,cloneAndMergeArrayExtend:()=>bn,cloneFunction:()=>Yu,concatAddExtends:()=>up,copyJavaScriptToClipboard:()=>sh,copyStringToClipboard:()=>nh,createBasedOnType:()=>Ji,createElement:()=>Pp,createElementExtends:()=>Mi,createExtends:()=>vn,createExtendsFromKeys:()=>io,createExtendsStack:()=>zi,createIfConditionFlag:()=>Xu,createInheritedState:()=>Fp,createKey:()=>mn,createNestedObject:()=>Fu,createNestedObjectByKeyPath:()=>Lp,createObjectWithoutPrototype:()=>Ti,createParent:()=>ea,createPath:()=>ta,createProps:()=>Tn,createPropsStack:()=>Yi,createRoot:()=>Rp,createScope:()=>jp,createSnapshotId:()=>hn,customDecodeURIComponent:()=>Su,customEncodeURIComponent:()=>vu,cutArrayAfterValue:()=>au,cutArrayBeforeValue:()=>iu,debounce:()=>yn,debounceOnContext:()=>qu,decodeNewlines:()=>xu,deepClone:()=>Y,deepContains:()=>Iu,deepDefaults:()=>ts,deepDestringifyFunctions:()=>je,deepExtend:()=>Li,deepMerge:()=>W,deepMergeExtends:()=>lt,deepStringifyFunctions:()=>ln,defineSetter:()=>xd,destringifyGlobalScope:()=>un,detectHeightOnInit:()=>Dd,detectInfiniteLoop:()=>Nu,document:()=>q,encodeNewlines:()=>bu,error:()=>fr,excludeKeysFromObject:()=>ju,exec:()=>V,extendCachedRegistry:()=>pp,extendStackRegistry:()=>Sn,extractArrayExtend:()=>_n,fetchLibraryData:()=>Aa,fibonacciNumberByIndex:()=>Md,filterArrays:()=>pu,filterArraysFast:()=>du,finalizeExtends:()=>Wi,findClosestNumber:()=>Ca,findClosestNumberInFactory:()=>Jd,findInheritedState:()=>aa,findKeyPosition:()=>gu,flattenExtend:()=>ao,formatDate:()=>$d,generateHash:()=>$i,generateKey:()=>dn,generateMetaTags:()=>Yd,get:()=>md,getCDNUrl:()=>tt,getCapitalCaseKeys:()=>bp,getCdnProviderFromConfig:()=>bo,getChildStateInKey:()=>ia,getChildren:()=>jn,getContext:()=>Gn,getCookie:()=>op,getDB:()=>Jn,getEmotionStylesheet:()=>fh,getExtendsInElement:()=>gp,getExtendsStack:()=>xn,getExtendsStackRegistry:()=>Di,getFrequencyInArray:()=>ou,getHashedExtend:()=>wn,getImportMapScript:()=>Pd,getInObjectByPath:()=>Mu,getLocalStorage:()=>sp,getNev:()=>Uu,getPageMetadata:()=>Xd,getParentStateInKey:()=>sa,getPath:()=>zn,getQuery:()=>Qn,getRef:()=>yd,getRoot:()=>Hn,getRootContext:()=>qn,getRootData:()=>Un,getRootState:()=>Vn,getRootStateInKey:()=>na,getSpreadChildren:()=>xp,global:()=>Qf,hasFunction:()=>ro,hasHandlerPlugin:()=>oo,hasOwnProperty:()=>Ou,inheritChildExtends:()=>Bi,inheritChildPropsExtends:()=>Ni,inheritParentProps:()=>On,inheritRecursiveChildExtends:()=>ji,initProps:()=>Ep,is:()=>_e,isArray:()=>E,isBoolean:()=>_i,isContextComponent:()=>vp,isCyclic:()=>Bu,isDOMNode:()=>we,isDate:()=>Ci,isDefined:()=>me,isDevelopment:()=>jt,isEmpty:()=>Ai,isEmptyObject:()=>Ru,isEqualDeep:()=>Ei,isFunction:()=>k,isHtmlElement:()=>en,isLocal:()=>Hu,isMethod:()=>_d,isMobile:()=>tp,isNode:()=>mt,isNot:()=>tu,isNotProduction:()=>ar,isNull:()=>ki,isNumber:()=>at,isObject:()=>v,isObjectLike:()=>L,isPhoto:()=>Bd,isProduction:()=>Bt,isStaging:()=>Vu,isState:()=>Dp,isString:()=>S,isStringFunction:()=>Ku,isTest:()=>Oi,isTesting:()=>Wu,isUndefined:()=>oe,isUniversallyReservedKey:()=>Ed,isValidHtmlTag:()=>lp,joinArrays:()=>Zr,jointStacks:()=>hp,keys:()=>wa,loadCssFile:()=>Hd,loadJavascript:()=>Ud,loadJavascriptFile:()=>zd,loadJavascriptFileEmbedSync:()=>Vd,loadJavascriptFileSync:()=>Wd,loadRemoteCSS:()=>qd,loadRemoteScript:()=>xo,log:()=>vd,logGroupIf:()=>Qu,logIf:()=>Ju,lookdown:()=>pd,lookdownAll:()=>dd,lookup:()=>ud,lowercaseFirstLetter:()=>nr,makeObjectWithoutPrototype:()=>Pu,map:()=>Cu,mapStringsWithContextComponents:()=>kn,matchesComponentNaming:()=>ft,memoize:()=>Gu,merge:()=>J,mergeSharedLibraries:()=>rs,nextElement:()=>Yn,normalizeLibraryKey:()=>vo,objectToString:()=>fn,objectizeStringProperty:()=>An,overwrite:()=>pn,overwriteDeep:()=>ke,overwriteShallow:()=>ir,overwriteState:()=>Np,parse:()=>_a,parseDeep:()=>Nn,pickupElementFromProps:()=>qi,pickupPropsFromElement:()=>Ui,previousElement:()=>Xn,propExists:()=>Ap,propertizeElement:()=>Gi,propertizeUpdate:()=>Cp,remove:()=>hd,removeChars:()=>ih,removeCookie:()=>np,removeDuplicateProps:()=>Pn,removeDuplicatesInArray:()=>Jr,removeFromArray:()=>nu,removeFromObject:()=>$u,removeNestedKeyByPath:()=>Du,removeValueFromArray:()=>on,removeValueFromArrayAll:()=>cu,reorderArrayByValues:()=>fu,replaceLiteralsWithObjectFields:()=>or,replaceOctalEscapeSequences:()=>yu,resolveAsset:()=>X,resolveHandler:()=>no,resolveSharedLibraries:()=>rh,returnValueAsText:()=>Zi,runPluginHook:()=>Je,self:()=>eu,setActiveRootState:()=>Wn,setCookie:()=>rp,setHashedExtend:()=>Fi,setInObjectByPath:()=>Lu,setLocalStorage:()=>ip,setNodeStyles:()=>Sa,setProps:()=>gd,setPropsPrototype:()=>Rn,spotByPath:()=>Bn,srcsetFor:()=>So,stringIncludesAny:()=>sn,stringToObject:()=>Tu,swapItemsInArray:()=>su,syncProps:()=>In,toCamelCase:()=>os,toDashCase:()=>ns,toDescriptionCase:()=>ch,toTitleCase:()=>ah,toggleFullscreen:()=>Od,triggerEventOn:()=>zt,triggerEventOnUpdate:()=>Vp,trimStringFromSymbols:()=>mu,unstackArrayOfObjects:()=>rn,update:()=>Ki,updateProps:()=>Tp,variables:()=>Zn,verbose:()=>yo,warn:()=>Kn,window:()=>_});var T=F(()=>{"use strict";gn();Ri();ae();ct();cr();rr();Xr();Zu();ep();eo();Yr();ap();Pi();Vi();Xi();Cn();Ip();Bp();sr();zp();kd();pa();Ad();ua();Td();Rd();Id();Fd();Ld();Nd();jd();Gd();Zd();Qd();oh();lh();uh();ph()});var N0=yi((BL,M0)=>{var zr=1e3,Wr=zr*60,Vr=Wr*60,er=Vr*24,fC=er*7,uC=er*365.25;M0.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return pC(e);if(r==="number"&&isFinite(e))return t.long?hC(e):dC(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function pC(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),o=(t[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*uC;case"weeks":case"week":case"w":return r*fC;case"days":case"day":case"d":return r*er;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Vr;case"minutes":case"minute":case"mins":case"min":case"m":return r*Wr;case"seconds":case"second":case"secs":case"sec":case"s":return r*zr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function dC(e){var t=Math.abs(e);return t>=er?Math.round(e/er)+"d":t>=Vr?Math.round(e/Vr)+"h":t>=Wr?Math.round(e/Wr)+"m":t>=zr?Math.round(e/zr)+"s":e+"ms"}function hC(e){var t=Math.abs(e);return t>=er?li(e,t,er,"day"):t>=Vr?li(e,t,Vr,"hour"):t>=Wr?li(e,t,Wr,"minute"):t>=zr?li(e,t,zr,"second"):e+" ms"}function li(e,t,r,o){var n=t>=r*1.5;return Math.round(e/r)+" "+o+(n?"s":"")}});var j0=yi((jL,B0)=>{function mC(e){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=n,r.enabled=a,r.humanize=N0(),r.destroy=l,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let p=0;for(let u=0;u<f.length;u++)p=(p<<5)-p+f.charCodeAt(u),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(f){let p,u=null,d,h;function m(...g){if(!m.enabled)return;let y=m,b=Number(new Date),x=b-(p||b);y.diff=x,y.prev=p,y.curr=b,p=b,g[0]=r.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");let w=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,($,P)=>{if($==="%%")return"%";w++;let I=r.formatters[P];if(typeof I=="function"){let R=g[w];$=I.call(y,R),g.splice(w,1),w--}return $}),r.formatArgs.call(y,g),(y.log||r.log).apply(y,g)}return m.namespace=f,m.useColors=r.useColors(),m.color=r.selectColor(f),m.extend=o,m.destroy=r.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(f)),h),set:g=>{u=g}}),typeof r.init=="function"&&r.init(m),m}function o(f,p){let u=r(this.namespace+(typeof p>"u"?":":p)+f);return u.log=this.log,u}function n(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let p=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let u of p)u[0]==="-"?r.skips.push(u.slice(1)):r.names.push(u)}function s(f,p){let u=0,d=0,h=-1,m=0;for(;u<f.length;)if(d<p.length&&(p[d]===f[u]||p[d]==="*"))p[d]==="*"?(h=d,m=u,d++):(u++,d++);else if(h!==-1)d=h+1,m++,u=m;else return!1;for(;d<p.length&&p[d]==="*";)d++;return d===p.length}function i(){let f=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),f}function a(f){for(let p of r.skips)if(s(f,p))return!1;for(let p of r.names)if(s(f,p))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}B0.exports=mC});var z0=yi((Se,fi)=>{Se.formatArgs=yC;Se.save=bC;Se.load=xC;Se.useColors=gC;Se.storage=vC();Se.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Se.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 gC(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function yC(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+fi.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,o=0;e[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(o=r))}),e.splice(o,0,t)}Se.log=console.debug||console.log||(()=>{});function bC(e){try{e?Se.storage.setItem("debug",e):Se.storage.removeItem("debug")}catch{}}function xC(){let e;try{e=Se.storage.getItem("debug")||Se.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function vC(){try{return localStorage}catch{}}fi.exports=j0()(Se);var{formatters:SC}=fi.exports;SC.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var xe=null,Zo=0,Jo=[],Si=()=>xe,bv=e=>{xe=e};function $t(e){let t=new Set;function r(){return xe&&(t.add(xe),xe._sources.add(s)),e}function o(i){i!==e&&(e=i,Zf(t))}function n(){return e}let s={get:r,set:o,peek:n,_subscribers:t,_type:"signal"};return s}function xv(e){let t,r=!0,o=new Set,n={_sources:new Set,_type:"computed",_subscribers:o,_execute(){vi(n);let s=xe;xe=n;try{let i=e();i!==t?(t=i,r=!1,Zf(o)):r=!1}finally{xe=s}},_notify(){r=!0,o.size>0&&n._execute()},get(){return xe&&(o.add(xe),xe._sources.add(n)),r&&n._execute(),t},peek(){return r&&n._execute(),t}};return n._execute(),n}var bi=new Set,xi=!1;function ie(e,t){let r=t?.depth??0,o={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(o._disposed)return;vi(o);let n=xe;xe=o;try{e()}catch(s){console.error("[smbls] effect error:",s)}finally{xe=n}},_notify(){o._disposed||(Zo>0?Jo.push(o):Xf(o))},dispose(){o._disposed=!0,vi(o)}};return o._execute(),o}function Ft(e){Zo++;try{e()}finally{Zo--,Zo===0&&Sv()}}function Xf(e){bi.add(e),xi||(xi=!0,queueMicrotask(vv))}function vv(){xi=!1;let e=Array.from(bi).sort((t,r)=>t._depth-r._depth);bi=new Set;for(let t=0;t<e.length;t++){let r=e[t];r._disposed||r._execute()}}function Sv(){for(let e=0;e<Jo.length;e++)Xf(Jo[e]);Jo.length=0}function Zf(e){let t=Array.from(e);for(let r=0;r<t.length;r++)t[r]._notify()}function vi(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var Qo=Symbol("store"),Jf=Symbol("signals"),wi=e=>!e||typeof e!="object"||Array.isArray(e)||e[Qo]||Object.isFrozen(e)||typeof Node<"u"&&e instanceof Node||e.__ref||e.nodeType||e.nodeName;function Be(e,t,r){r===void 0&&(r=0);let o={},n={},s=t&&t.maxDepth||8;if(e&&typeof e=="object")for(let y in e){let b=e[y];r<s&&b&&typeof b=="object"&&!wi(b)?(n[y]=b,o[y]=$t(Be(b,t,r+1))):(n[y]=b,o[y]=$t(b))}let i=new Proxy(n,{get(y,b){if(b===Qo)return!0;if(b===Jf)return o;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return p;if(b==="values")return u;if(b==="replace")return d;if(b==="add")return h;if(b==="remove")return m;if(b==="destroy")return g;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(o,b))return o[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"&&Si()!=null)return o[b]=$t(void 0),o[b].get()},set(y,b,x){return b==="__element"||b==="parent"||b==="root"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(o,b)?(y[b]=x,x&&typeof x=="object"&&!wi(x)?o[b].set(Be(x,t,r+1)):o[b].set(x)):(y[b]=x,x&&typeof x=="object"&&!wi(x)?o[b]=$t(Be(x,t,r+1)):o[b]=$t(x)),!0)},has(y,b){return b in o||b in y},ownKeys(y){return Object.keys(o)},getOwnPropertyDescriptor(y,b){return b in o?{enumerable:!0,configurable:!0,value:o[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return o[b]&&(o[b].set(void 0),delete o[b]),delete y[b],!0}});function a(y,b){Ft(()=>{for(let w in y)i[w]=y[w]});let x=n.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,i,x.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 x in o){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let w=o[x].peek();w&&w[Qo]?b[x]=w.parse(y):b[x]=w}return b}function f(){return Ft(()=>{for(let y in o)delete i[y]}),i}function p(){return Object.keys(o)}function u(){return Object.keys(o).map(y=>o[y].peek())}function d(y){return Ft(()=>{for(let b in o)b in y||delete i[b];for(let b in y)i[b]=y[b]}),i}function h(y,b){return i[y]=b,i}function m(y){return delete i[y],i}function g(){f(),n.__element=null,n.parent=null}return i}function he(e){return e&&e[Qo]===!0}function wv(e){return e[Jf]}var br={};C(br,{CSS_NATIVE_COLOR_REGEX:()=>ut,CSS_UNITS:()=>Kr,applyMediaSequenceVars:()=>yr,applySequenceGlobalVars:()=>Ba,applySequenceVars:()=>Yt,changeLightness:()=>_S,colorStringToRgbaArray:()=>xt,convertSvgToSymbol:()=>ja,findHeadingLetter:()=>Ih,findHeadings:()=>Na,generateSequence:()=>We,generateSequencePosition:()=>iw,generateSprite:()=>fs,generateSubSequence:()=>La,getColorShade:()=>bh,getDefaultOrFirstKey:()=>wo,getFnPrefixAndValue:()=>Kt,getFontFace:()=>AS,getFontFaceEach:()=>_o,getFontFaceEachString:()=>wh,getFontFaceString:()=>Ta,getFontFormat:()=>vh,getRgbTone:()=>mr,getSequenceValue:()=>Ma,getSequenceValueBySymbols:()=>Ph,getSequenceValuePropertyPair:()=>_t,getSubratio:()=>Da,getSubratioDifference:()=>Fa,hexToRgb:()=>xS,hexToRgbArray:()=>hh,hexToRgba:()=>SS,hslToRgb:()=>yh,isCSSVar:()=>te,isGoogleFontsUrl:()=>ss,isResolvedColor:()=>vt,isScalingUnit:()=>Gr,mixTwoColors:()=>bS,mixTwoRgb:()=>wS,mixTwoRgba:()=>xh,numToLetterMap:()=>wt,opacify:()=>Ut,parseColorToken:()=>qt,resolveFileUrl:()=>rt,returnSubThemeOrDefault:()=>CS,rgbArrayToHex:()=>mh,rgbToHSL:()=>gh,rgbToHex:()=>vS,setCustomFont:()=>Ea,setCustomFontMedia:()=>gr,setFontImport:()=>is,setInCustomFontMedia:()=>Sh,setScalingVar:()=>$a,setSubScalingVar:()=>Oh,setVariables:()=>aw,splitTopLevelCommas:()=>hr});var Gr=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Kr=["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"];T();var xt=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&q&&_){let t=q.body.appendChild(q.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){q.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return q.body.removeChild(t),[0,0,0,0];e=_.getComputedStyle(t).color,q.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},bS=(e,t,r=.5)=>(e=xt(e),t=xt(t),xh(e,t,r)),xS=(e,t=1)=>{let[r,o,n]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${o},${n})`},hh=(e,t=1)=>{let[r,o,n]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,o,n]},vS=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),mh=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),SS=(e,t=1)=>{let[r,o,n]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${o},${n},${t})`},wS=(e,t,r=.5)=>{let o=[];for(let n=0;n<3;n++)o[n]=~~(e[n]+(t[n]-e[n])*r);return`rgb(${o})`},_S=(e,t)=>{let[r,o,n]=t,s=Math.max(0,Math.min(100,n+parseFloat(e)));return[r,o,s]},gh=(e,t,r)=>{let o=Math.max(e,t,r),n=o-Math.min(e,t,r),s=1-Math.abs(o+o-n-1),i=n&&(o==e?(t-r)/n:o==t?2+(r-e)/n:4+(e-t)/n);return[60*(i<0?i+6:i),s?n/s:0,(o+o-n)/2]},yh=(e,t,r,o=t*Math.min(r,1-r),n=(s,i=(s+e/30)%12)=>r-o*Math.max(Math.min(i-3,9-i,1),-1))=>[n(0),n(8),n(4)],bh=(e,t)=>{let r=parseInt(e,16),o=(r>>16)+t;o>255?o=255:o<0&&(o=0);let n=(r>>8&255)+t;n>255?n=255:n<0&&(n=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|n<<8|o<<16)+16777216).toString(16).slice(1)},xh=(e,t,r=.5)=>{let o=[];for(let n=0;n<4;n++){let s=n===3?i=>i:Math.round;o[n]=s(e[n]+(t[n]-e[n])*r)}return`rgba(${o})`},Ut=(e,t)=>{let r=xt(e);if(!r){ar()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},te=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,ut=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,kS=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,qt=e=>{if(!S(e))return null;if(ut.test(e))return{passthrough:e};if(te(e))return{cssVar:e};let t=e.match(kS);if(!t)return null;let[,r,o,n]=t,s=o!==void 0?`0.${o}`:void 0,i=n&&n[0]==="="?n.slice(1):n;return{name:r,alpha:s,tone:i}},vt=e=>S(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),hr=e=>{let t=[],r="",o=0;for(let n of e){if(n==="("?o+=1:n===")"&&o>0&&(o-=1),n===","&&o===0){t.push(r),r="";continue}r+=n}return(r.length||!t.length)&&t.push(r),t},mr=(e,t)=>{S(e)&&e.includes("rgb")&&(e=xt(e).join(", ")),S(e)&&(e=e.split(",").map(n=>parseFloat(n.trim()))),at(t)&&(t+="");let r=mh(e),o=t.slice(0,1);if(o==="-"||o==="+"){let n=bh(r,parseFloat(t));return hh(n).join(", ")}else{let[n,s,i]=e,a=gh(n,s,i),[c,l,f]=a;return yh(c,l,parseFloat(t)/100*255)}};var CS=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e};var rt=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},wo=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},vh=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},ss=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),is=e=>`@import url('${e}');`,Sh=e=>`@font-face { ${e} }`,Ea=(e,t,r,o={})=>{let n=(Array.isArray(t)?t:[t]).filter(s=>typeof s=="string"&&s).map(s=>{let i=vh(s),a=i?` format('${i}')`:"";return`url('${s}')${a}`}).join(`,
25
+ }<\/script>`}});var Gp,Kp=I(()=>{"use strict";Gp=t=>{if(!t)return"";let e=new Date(t),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),o=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${o}, ${r}`}});var Yp,Xp=I(()=>{"use strict";Yp=(t,e)=>{let r=setTimeout(()=>{let{props:o}=t;if(!e.clientHeight){let{node:{clientHeight:n}}=t;n&&(e.clientHeight=n)}if(e.active){if(o.height==="auto")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let n=setTimeout(()=>{t.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(n)},450)}else t.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var Zp,Jp=I(()=>{"use strict";Zp=function(e){let r=[0,1];for(let o=2;o<=e;o++)r[o]=r[o-1]+r[o-2];return r[e]}});var Qp,td=I(()=>{"use strict";Qp=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function po(t,e={}){let{window:r=globalThis}=e,{document:o=r.document}=e;return new Promise((n,s)=>{let i=o.querySelector(`script[src="${t}"]`);if(i)return n(i);let a=o.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,n(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},o.head.appendChild(a)})}async function id(t,e={}){let{window:r=globalThis}=e,{document:o=r.document}=e;return new Promise((n,s)=>{let i=o.querySelector(`link[href="${t}"]`);if(i)return n(i);let a=o.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,n(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},o.head.appendChild(a)})}var ed,rd,od,nd,sd,ad=I(()=>{"use strict";ed=(t,e=!1,r=document,o="text/javascript")=>new Promise((n,s)=>{try{let i=r.createElement("script");i.type=o,i.async=e,i.src=t,i.addEventListener("load",a=>{n({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)}}),rd=(t,e=document,r="text/javascript")=>new Promise((o,n)=>{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),o()},s.onerror=()=>{e.body.removeChild(i),n(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),od=(t,e=document,r,o="text/javascript")=>{let n=new window.XMLHttpRequest;if(n.open("GET",t,!1),n.send(),n.status===200){let s=e.createElement("script");s.type=o,s.text=n.responseText,e.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${t}`)},nd=(t,e=!1,r=document,o="text/javascript")=>new Promise((n,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{n({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),sd=(t,e=!1,r=document,o="text/javascript",n="smbls-script")=>{try{let s=r.createElement("script");s.type=o,s.async=e,s.id=n,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}}});function qx(t,e){if(!e||typeof e!="object")return t;let r=n=>{if(!Hx(n))return n;let s=e[n];return s?.src?s.src:n},o={...t};for(let[n,s]of Object.entries(o))typeof s=="string"?o[n]=r(s):Array.isArray(s)&&(o[n]=s.map(i=>typeof i=="string"?r(i):i));return o}function Kn(t,e){if(!t||!e)return;let r=e.split("."),o=t;for(let n of r){if(o==null||typeof o!="object")return;o=o[n]}return o}function Gx(t,e,r){let n=(e.config||e.settings||{}).polyglot||e.polyglot,s=r?.lang||n?.defaultLang||"en",a=(n?.translations||{})[s]||{},c=r?.state||{},l={...t};for(let[f,p]of Object.entries(l))typeof p!="string"||!p.includes("{{")||(l[f]=p.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(u,d,h)=>{let g=d.trim();if(h==="polyglot")return a[g]??Kn(a,g)??u;if(h==="getLocalStateLang")return Kn(c,g+s)??u;let m=Kn(c,g);return m!==void 0?m:a[g]??Kn(a,g)??u}));return l}function cd(t){let e={...t};for(let[r,o]of Object.entries(e))if(typeof o=="function"){let n=o.toString(),s=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=n.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof o=="string"){let n=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(n){e[r]=`{{ ${n[1]} | getLocalStateLang }}`;continue}let s=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(o.includes("=>")&&o.includes("s.")){let i=o.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function fd(t,e,r,{isProduction:o=!1,channel:n="production"}={}){let s=t.pages?.[e],i=S(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=cd(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},p=cd(f),u={};if(t.integrations?.seo?u={...t.integrations.seo,...p,...c}:Object.keys(p).length?u={...p,...c}:u={...c},!u.title){let g=t.name||t.key;g?o?u.title=g:n==="development"?u.title=`${g} / dev:symbo.ls`:n==="staging"?u.title=`${g} / staging:symbo.ls`:u.title=`${g} / symbo.ls`:u.title="Symbols demo"}u=Gx(u,t,r),u.title&&(l.has("title")||!u["og:title"])&&(l.has("og:title")||(u["og:title"]=u.title)),u.description&&(l.has("description")||!u["og:description"])&&(l.has("og:description")||(u["og:description"]=u.description)),u.title&&!u["twitter:title"]&&(u["twitter:title"]=u.title),u.description&&!u["twitter:description"]&&(u["twitter:description"]=u.description);let d=r?.actualPathname||e;if(u["og:url"]||u.url){let g=(u["og:url"]||u.url||"").replace(/\/$/,"");if(g&&d&&d!=="/"){let m=d.startsWith("/")?d:"/"+d;u["og:url"]=g+m}}u=qx(u,t.files);let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[g,m]of Object.entries(u))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?u[g]=y:g==="title"?u[g]=h:delete u[g]}return u}var Tt,Wx,ld,Hx,ud=I(()=>{"use strict";it();Tt=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},Wx=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${Tt(r)}"`).join(" "),ld=(t,e)=>(e||(t={...t,robots:"noindex"}),Object.entries(t).reduce((o,[n,s])=>{if(!s&&s!==0&&s!==!1)return o;if(n==="title")return o.push(`<title>${Tt(s)}</title>`),o;if(n==="canonical")return o.push(`<link rel="canonical" href="${Tt(s)}">`),o;if(n==="manifest")return o.push(`<link rel="manifest" href="${Tt(s)}">`),o;if(n==="favicon"||n==="favicons"||n==="icon"||n==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="string")o.push(`<link rel="icon" href="${Tt(f)}">`);else if(typeof f=="object"){let p=Wx(f);/rel=/.test(p)?o.push(`<link ${p}>`):o.push(`<link rel="icon" ${p}>`)}}),o;if(n==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="object"){let p=Object.entries(f).filter(([u,d])=>d!==void 0).map(([u,d])=>`${u}="${Tt(d)}"`).join(" ");o.push(`<link rel="alternate" ${p}>`)}}),o;let i=(l,f,p="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")o.push(`<meta ${p}="${Tt(l)}" content="${Tt(f)}">`);else if(Array.isArray(f))f.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")o.push(`<meta ${p}="${Tt(l)}" content="${Tt(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${Tt(g)}"`).join(" ");o.push(`<meta ${d}>`)}});else if(typeof f=="object"){let u=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${Tt(h)}"`).join(" ");o.push(`<meta ${u}>`)}};if(n.startsWith("http-equiv:")){let l=n.replace("http-equiv:","");return i(l,s,"http-equiv"),o}if(n.startsWith("itemprop:")){let l=n.replace("itemprop:","");return i(l,s,"itemprop"),o}let c=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(l=>n.startsWith(l));if(c){let l=n.replace(c,"");return i(`${c.replace(":","")}:${l}`,s,c==="twitter:"||c==="DC:"||c==="DCTERMS:"?"name":"property"),o}if(n.startsWith("apple:")||n.startsWith("msapplication:")){let l=n.startsWith("apple:")?"apple-":"msapplication-",f=n.replace(/^apple:|^msapplication:/,"");return i(`${l}${f}`,s,"name"),o}return i(n,s),o},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
26
+ `)),Hx=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var xa,pd,dd=I(()=>{"use strict";it();xa=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,o)=>Math.abs(o-t)<Math.abs(r-t)?o:r),pd=(t,e)=>(t=parseFloat(t),S(e)&&(e=Object.values(e)),xa(t,e))});function ho(t){let e=String(t||"").trim();if(!e)return{owner:hd,key:"",full:""};let r=null,o=e;if(e.includes("/")){let s=e.indexOf("/");r=e.slice(0,s),o=e.slice(s+1)}o=o.replace(/\.symbo\.ls$/iu,""),r||(r=hd);let n=o?`${r}/${o}`:"";return{owner:r,key:o,full:n}}async function Sa(t,e={}){if((e.provider||"kv")==="api")return gd(t,e);let o=await Xx(t,e);return o||gd(t,e)}async function Xx(t,e={}){let r=e.kvBaseUrl||Kx,o=e.env||"production",n=`${r}/kv/${encodeURIComponent(t)}?env=${o}`;try{let s=await fetch(n,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function gd(t,e={}){let r=e.apiBaseUrl||Yx,{key:o}=ho(t);try{let n=`${r}/core/projects/libraries/available?search=${encodeURIComponent(o)}&limit=10`,s=await fetch(n,{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}=ho(d?.key);return h.toLowerCase()===o.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,p=await fetch(f,{method:"GET"});if(!p.ok)return null;let u=await p.json();return u?.data||u||null}catch{return null}}async function md(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async o=>{if(S(o))return o;if(w(o)){let{full:n}=ho(o);if(!n)return null;try{let s=await Sa(n,e);return s||console.warn(`[smbls] Shared library "${n}" not found`),s}catch(s){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,s.message),null}}return null}))).filter(Boolean)}var hd,Kx,Yx,Yn,Xn,yd=I(()=>{"use strict";it();hd="system",Kx="https://smbls-kv.nika-980.workers.dev",Yx="https://api.symbols.app";Yn=(t,e)=>{for(let r in e)r in t?S(t[r])&&S(e[r])&&Yn(t[r],e[r]):t[r]=e[r]},Xn=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let o=e[r];if(S(o)){for(let n in o)if(Object.prototype.hasOwnProperty.call(o,n))if(S(o[n])&&S(t[n]))if(n==="designSystem")Yn(t[n],o[n]);else for(let s in o[n])s in t[n]||(t[n][s]=o[n][s]);else n in t||(t[n]=o[n])}}}});var bd,xd,Sd,Zn,_d,Jn,wd,lr,kd=I(()=>{"use strict";it();bd=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},xd=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)}},Sd=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Zn=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,"")),_d=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Jn=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),wd=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},lr=t=>{if(T(t))return t;if(w(t))return t.split(" ");if(S(t))return Object.values(t);if(ne(t))return[t]}});var vd,Cd=I(()=>{"use strict";vd=()=>{let t=document.styleSheets[0],e="";if(t)try{let r=t.cssRules||t.rules;for(let o=0;o<r.length;o++)e+=r[o].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 vt,go,Qn,ts,Ad=I(()=>{"use strict";vt=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let r=t.context;if(!r)return null;let o=r.assets&&r.assets[e]||r.files&&r.files[e];return o?typeof o=="string"?{src:o,type:null,variants:null}:typeof o=="object"&&typeof o.src=="string"?o:null:null},go=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let r=t.some(n=>typeof n.width=="number"),o=[];for(let n of t)r&&typeof n.width=="number"?o.push(`${n.src} ${n.width}w`):r||(n.scale===1&&e?o.push(n.src):n.scale&&n.scale!==1&&o.push(`${n.src} ${n.scale}x`));return o.join(", ")},Qn=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return go(e,{keepOneX:!1})},ts=(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 o=[];for(let[a,c]of r)a!==t.type&&o.push({tag:"source",attr:{type:a,srcset:go(c,{keepOneX:!0})}});let n=r.get(t.type)||[],s=go(n,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...o,{tag:"img",attr:i}]}});var Ed={};$(Ed,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>Mf,DOMQ_PROPERTIES:()=>$e,ENV:()=>eu,HTML_TAGS:()=>Qr,METHODS:()=>Yr,METHODS_EXL:()=>en,NODE_ENV:()=>Kt,OPTIONS:()=>En,PACKAGE_MANAGER_TO_CDN:()=>ze,PARSED_DOMQ_PROPERTIES:()=>tn,PROPS_METHODS:()=>De,STATE_METHODS:()=>Fe,STATE_PROPERTIES:()=>Lf,SVG_TAGS:()=>wu,TYPES:()=>Yo,UNIVERSAL_RESERVED_KEYS:()=>ba,addCaching:()=>Zi,addContext:()=>Xi,addExtend:()=>Ou,addExtends:()=>kt,addItemAfterEveryElement:()=>kf,addProtoToArray:()=>Jo,addRef:()=>Gi,applyDependentState:()=>Zu,applyEvent:()=>oa,applyEventUpdate:()=>na,applyExtends:()=>Pu,applyProps:()=>_n,arrayContainsOtherArray:()=>mf,arraysEqual:()=>Cf,arrayzeValue:()=>lr,buildImgSrcset:()=>Qn,buildSourcesAndImg:()=>ts,cache:()=>np,call:()=>Dp,captureSnapshot:()=>jp,checkForStateTypes:()=>Gu,checkIfInherits:()=>ra,checkIfStringIsInArray:()=>Tf,clone:()=>Vf,cloneAndMergeArrayExtend:()=>pn,cloneFunction:()=>lu,concatAddExtends:()=>Cu,copyJavaScriptToClipboard:()=>xd,copyStringToClipboard:()=>bd,createBasedOnType:()=>qi,createElement:()=>Hu,createElementExtends:()=>Pi,createExtends:()=>hn,createExtendsFromKeys:()=>to,createExtendsStack:()=>Di,createIfConditionFlag:()=>fu,createInheritedState:()=>Ku,createKey:()=>ln,createNestedObject:()=>Kf,createNestedObjectByKeyPath:()=>Xu,createObjectWithoutPrototype:()=>wi,createParent:()=>Ki,createPath:()=>Yi,createProps:()=>wn,createPropsStack:()=>Ui,createRoot:()=>Wu,createScope:()=>tp,createSnapshotId:()=>cn,customDecodeURIComponent:()=>Df,customEncodeURIComponent:()=>Ff,cutArrayAfterValue:()=>_f,cutArrayBeforeValue:()=>Sf,debounce:()=>un,debounceOnContext:()=>iu,decodeNewlines:()=>$f,deepClone:()=>Y,deepContains:()=>qf,deepDefaults:()=>Yn,deepDestringifyFunctions:()=>Nt,deepExtend:()=>Ri,deepMerge:()=>W,deepMergeExtends:()=>ie,deepStringifyFunctions:()=>rn,defineSetter:()=>$p,destringifyGlobalScope:()=>nn,detectHeightOnInit:()=>Yp,detectInfiniteLoop:()=>Jf,document:()=>q,encodeNewlines:()=>If,error:()=>cr,excludeKeysFromObject:()=>tu,exec:()=>G,extendCachedRegistry:()=>Au,extendStackRegistry:()=>gn,extractArrayExtend:()=>yn,fetchLibraryData:()=>Sa,fibonacciNumberByIndex:()=>Zp,filterArrays:()=>Af,filterArraysFast:()=>Ef,finalizeExtends:()=>Li,findClosestNumber:()=>xa,findClosestNumberInFactory:()=>pd,findInheritedState:()=>ea,findKeyPosition:()=>Rf,flattenExtend:()=>eo,formatDate:()=>Gp,generateHash:()=>Ei,generateKey:()=>an,generateMetaTags:()=>ld,get:()=>Op,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>Iu,getCdnProviderFromConfig:()=>uo,getChildStateInKey:()=>ta,getChildren:()=>Fn,getContext:()=>Vn,getCookie:()=>yu,getDB:()=>qn,getEmotionStylesheet:()=>vd,getExtendsInElement:()=>Ru,getExtendsStack:()=>dn,getExtendsStackRegistry:()=>Oi,getFrequencyInArray:()=>yf,getHashedExtend:()=>mn,getImportMapScript:()=>Hp,getInObjectByPath:()=>Zf,getLocalStorage:()=>xu,getNev:()=>su,getPageMetadata:()=>fd,getParentStateInKey:()=>Qi,getPath:()=>Dn,getQuery:()=>Gn,getRef:()=>Pp,getRoot:()=>Nn,getRootContext:()=>Bn,getRootData:()=>jn,getRootState:()=>Mn,getRootStateInKey:()=>Ji,getSpreadChildren:()=>$u,global:()=>df,hasFunction:()=>Xr,hasHandlerPlugin:()=>Zr,hasOwnProperty:()=>Uf,inheritChildExtends:()=>$i,inheritChildPropsExtends:()=>Ii,inheritParentProps:()=>kn,inheritRecursiveChildExtends:()=>Fi,initProps:()=>Vu,is:()=>_t,isArray:()=>T,isBoolean:()=>yi,isContextComponent:()=>Fu,isCyclic:()=>Qf,isDOMNode:()=>xt,isDate:()=>xi,isDefined:()=>St,isDevelopment:()=>Ne,isEmpty:()=>Si,isEmptyObject:()=>Wf,isEqualDeep:()=>_i,isFunction:()=>C,isHtmlElement:()=>Ko,isLocal:()=>nu,isMethod:()=>Mp,isMobile:()=>gu,isNode:()=>de,isNot:()=>gf,isNotProduction:()=>sr,isNull:()=>bi,isNumber:()=>ne,isObject:()=>S,isObjectLike:()=>L,isPhoto:()=>Qp,isProduction:()=>Me,isStaging:()=>ou,isState:()=>Yu,isString:()=>w,isStringFunction:()=>cu,isTest:()=>ki,isTesting:()=>ru,isUndefined:()=>ct,isUniversallyReservedKey:()=>Vp,isValidHtmlTag:()=>ku,joinArrays:()=>Hr,jointStacks:()=>Tu,keys:()=>ma,loadCssFile:()=>nd,loadJavascript:()=>sd,loadJavascriptFile:()=>ed,loadJavascriptFileEmbedSync:()=>od,loadJavascriptFileSync:()=>rd,loadRemoteCSS:()=>id,loadRemoteScript:()=>po,log:()=>Fp,logGroupIf:()=>du,logIf:()=>pu,lookdown:()=>Ap,lookdownAll:()=>Ep,lookup:()=>Cp,lowercaseFirstLetter:()=>rr,makeObjectWithoutPrototype:()=>Hf,map:()=>jf,mapStringsWithContextComponents:()=>bn,matchesComponentNaming:()=>ae,memoize:()=>au,merge:()=>Z,mergeSharedLibraries:()=>Xn,nextElement:()=>Un,normalizeLibraryKey:()=>ho,objectToString:()=>on,objectizeStringProperty:()=>Sn,overwrite:()=>sn,overwriteDeep:()=>wt,overwriteShallow:()=>nr,overwriteState:()=>Ju,parse:()=>ya,parseDeep:()=>In,pickupElementFromProps:()=>Bi,pickupPropsFromElement:()=>ji,previousElement:()=>Wn,propExists:()=>Bu,propertizeElement:()=>Vi,propertizeUpdate:()=>ju,remove:()=>Tp,removeChars:()=>Sd,removeCookie:()=>bu,removeDuplicateProps:()=>Cn,removeDuplicatesInArray:()=>qr,removeFromArray:()=>bf,removeFromObject:()=>Gf,removeNestedKeyByPath:()=>Yf,removeValueFromArray:()=>Zo,removeValueFromArrayAll:()=>wf,reorderArrayByValues:()=>vf,replaceLiteralsWithObjectFields:()=>er,replaceOctalEscapeSequences:()=>Pf,resolveAsset:()=>vt,resolveHandler:()=>Jr,resolveSharedLibraries:()=>md,returnValueAsText:()=>Hi,runPluginHook:()=>Yt,self:()=>hf,setActiveRootState:()=>Ln,setCookie:()=>mu,setHashedExtend:()=>Ti,setInObjectByPath:()=>Xf,setLocalStorage:()=>Su,setNodeStyles:()=>ga,setProps:()=>Rp,setPropsPrototype:()=>vn,spotByPath:()=>$n,srcsetFor:()=>go,stringIncludesAny:()=>Qo,stringToObject:()=>zf,swapItemsInArray:()=>xf,syncProps:()=>An,toCamelCase:()=>Zn,toDashCase:()=>Jn,toDescriptionCase:()=>wd,toTitleCase:()=>_d,toggleFullscreen:()=>Up,triggerEventOn:()=>je,triggerEventOnUpdate:()=>op,trimStringFromSymbols:()=>Of,unstackArrayOfObjects:()=>Xo,update:()=>zi,updateProps:()=>zu,variables:()=>Hn,verbose:()=>fo,warn:()=>zn,window:()=>k});var O=I(()=>{"use strict";fn();vi();it();se();ir();tr();Wr();uu();hu();Kr();Ur();_u();Ci();Mi();Wi();xn();qu();Qu();or();ep();Np();ia();Bp();sa();zp();Wp();qp();Kp();Xp();Jp();td();ad();ud();dd();yd();kd();Cd();Ad()});var yb=ui((A$,mb)=>{var Dr=1e3,Lr=Dr*60,Mr=Lr*60,Je=Mr*24,N0=Je*7,j0=Je*365.25;mb.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return B0(t);if(r==="number"&&isFinite(t))return e.long?z0(t):V0(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function B0(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]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*j0;case"weeks":case"week":case"w":return r*N0;case"days":case"day":case"d":return r*Je;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Mr;case"minutes":case"minute":case"mins":case"min":case"m":return r*Lr;case"seconds":case"second":case"secs":case"sec":case"s":return r*Dr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function V0(t){var e=Math.abs(t);return e>=Je?Math.round(t/Je)+"d":e>=Mr?Math.round(t/Mr)+"h":e>=Lr?Math.round(t/Lr)+"m":e>=Dr?Math.round(t/Dr)+"s":t+"ms"}function z0(t){var e=Math.abs(t);return e>=Je?oi(t,e,Je,"day"):e>=Mr?oi(t,e,Mr,"hour"):e>=Lr?oi(t,e,Lr,"minute"):e>=Dr?oi(t,e,Dr,"second"):t+" ms"}function oi(t,e,r,o){var n=e>=r*1.5;return Math.round(t/r)+" "+o+(n?"s":"")}});var xb=ui((E$,bb)=>{function U0(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=n,r.enabled=a,r.humanize=yb(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let p=0;for(let u=0;u<f.length;u++)p=(p<<5)-p+f.charCodeAt(u),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(f){let p,u=null,d,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),x=b-(p||b);y.diff=x,y.prev=p,y.curr=b,p=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let _=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(E,P)=>{if(E==="%%")return"%";_++;let B=r.formatters[P];if(typeof B=="function"){let R=m[_];E=B.call(y,R),m.splice(_,1),_--}return E}),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=o,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(f)),h),set:m=>{u=m}}),typeof r.init=="function"&&r.init(g),g}function o(f,p){let u=r(this.namespace+(typeof p>"u"?":":p)+f);return u.log=this.log,u}function n(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let p=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let u of p)u[0]==="-"?r.skips.push(u.slice(1)):r.names.push(u)}function s(f,p){let u=0,d=0,h=-1,g=0;for(;u<f.length;)if(d<p.length&&(p[d]===f[u]||p[d]==="*"))p[d]==="*"?(h=d,g=u,d++):(u++,d++);else if(h!==-1)d=h+1,g++,u=g;else return!1;for(;d<p.length&&p[d]==="*";)d++;return d===p.length}function i(){let f=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),f}function a(f){for(let p of r.skips)if(s(f,p))return!1;for(let p of r.names)if(s(f,p))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}bb.exports=U0});var Sb=ui((bt,ni)=>{bt.formatArgs=H0;bt.save=q0;bt.load=G0;bt.useColors=W0;bt.storage=K0();bt.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`."))}})();bt.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 W0(){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 H0(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+ni.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(o=r))}),t.splice(o,0,e)}bt.log=console.debug||console.log||(()=>{});function q0(t){try{t?bt.storage.setItem("debug",t):bt.storage.removeItem("debug")}catch{}}function G0(){let t;try{t=bt.storage.getItem("debug")||bt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function K0(){try{return localStorage}catch{}}ni.exports=xb()(bt);var{formatters:Y0}=ni.exports;Y0.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var yt=null,Ho=0,qo=[],gi=()=>yt,Zb=t=>{yt=t};function Pe(t){let e=new Set;function r(){return yt&&(e.add(yt),yt._sources.add(s)),t}function o(i){i!==t&&(t=i,uf(e))}function n(){return t}let s={get:r,set:o,peek:n,_subscribers:e,_type:"signal"};return s}function Jb(t){let e,r=!0,o=new Set,n={_sources:new Set,_type:"computed",_subscribers:o,_execute(){hi(n);let s=yt;yt=n;try{let i=t();i!==e?(e=i,r=!1,uf(o)):r=!1}finally{yt=s}},_notify(){r=!0,o.size>0&&n._execute()},get(){return yt&&(o.add(yt),yt._sources.add(n)),r&&n._execute(),e},peek(){return r&&n._execute(),e}};return n._execute(),n}var pi=new Set,di=!1;function st(t,e){let r=e?.depth??0,o={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(o._disposed)return;hi(o);let n=yt;yt=o;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{yt=n}},_notify(){o._disposed||(Ho>0?qo.push(o):ff(o))},dispose(){o._disposed=!0,hi(o)}};return o._execute(),o}function Ie(t){Ho++;try{t()}finally{Ho--,Ho===0&&tx()}}function ff(t){pi.add(t),di||(di=!0,queueMicrotask(Qb))}function Qb(){di=!1;let t=Array.from(pi).sort((e,r)=>e._depth-r._depth);pi=new Set;for(let e=0;e<t.length;e++){let r=t[e];r._disposed||r._execute()}}function tx(){for(let t=0;t<qo.length;t++)ff(qo[t]);qo.length=0}function uf(t){let e=Array.from(t);for(let r=0;r<e.length;r++)e[r]._notify()}function hi(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Go=Symbol("store"),pf=Symbol("signals"),mi=t=>!t||typeof t!="object"||Array.isArray(t)||t[Go]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function Mt(t,e,r){r===void 0&&(r=0);let o={},n={},s=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let y in t){let b=t[y];r<s&&b&&typeof b=="object"&&!mi(b)?(n[y]=b,o[y]=Pe(Mt(b,e,r+1))):(n[y]=b,o[y]=Pe(b))}let i=new Proxy(n,{get(y,b){if(b===Go)return!0;if(b===pf)return o;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return p;if(b==="values")return u;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(o,b))return o[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"&&gi()!=null)return o[b]=Pe(void 0),o[b].get()},set(y,b,x){return b==="__element"||b==="parent"||b==="root"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(o,b)?(y[b]=x,x&&typeof x=="object"&&!mi(x)?o[b].set(Mt(x,e,r+1)):o[b].set(x)):(y[b]=x,x&&typeof x=="object"&&!mi(x)?o[b]=Pe(Mt(x,e,r+1)):o[b]=Pe(x)),!0)},has(y,b){return b in o||b in y},ownKeys(y){return Object.keys(o)},getOwnPropertyDescriptor(y,b){return b in o?{enumerable:!0,configurable:!0,value:o[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return o[b]&&(o[b].set(void 0),delete o[b]),delete y[b],!0}});function a(y,b){Ie(()=>{for(let _ in y)i[_]=y[_]});let x=n.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,i,x.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 x in o){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let _=o[x].peek();_&&_[Go]?b[x]=_.parse(y):b[x]=_}return b}function f(){return Ie(()=>{for(let y in o)delete i[y]}),i}function p(){return Object.keys(o)}function u(){return Object.keys(o).map(y=>o[y].peek())}function d(y){return Ie(()=>{for(let b in o)b in y||delete i[b];for(let b in y)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(),n.__element=null,n.parent=null}return i}function pt(t){return t&&t[Go]===!0}function ex(t){return t[pf]}var hr={};$(hr,{CSS_NATIVE_COLOR_REGEX:()=>ce,CSS_UNITS:()=>zr,applyMediaSequenceVars:()=>dr,applySequenceGlobalVars:()=>$a,applySequenceVars:()=>qe,changeLightness:()=>rS,colorStringToRgbaArray:()=>ye,convertSvgToSymbol:()=>Fa,findHeadingLetter:()=>qd,findHeadings:()=>Ia,generateSequence:()=>Bt,generateSequencePosition:()=>jS,generateSprite:()=>as,generateSubSequence:()=>Ra,getColorShade:()=>Id,getDefaultOrFirstKey:()=>mo,getFnPrefixAndValue:()=>He,getFontFace:()=>sS,getFontFaceEach:()=>yo,getFontFaceEachString:()=>Ld,getFontFaceString:()=>wa,getFontFormat:()=>Fd,getRgbTone:()=>ur,getSequenceValue:()=>Pa,getSequenceValueBySymbols:()=>Hd,getSequenceValuePropertyPair:()=>_e,getSubratio:()=>Oa,getSubratioDifference:()=>Ta,hexToRgb:()=>Jx,hexToRgbArray:()=>Td,hexToRgba:()=>tS,hslToRgb:()=>Pd,isCSSVar:()=>et,isGoogleFontsUrl:()=>rs,isResolvedColor:()=>be,isScalingUnit:()=>Vr,mixTwoColors:()=>Zx,mixTwoRgb:()=>eS,mixTwoRgba:()=>$d,numToLetterMap:()=>Se,opacify:()=>es,parseColorToken:()=>Ue,resolveFileUrl:()=>Qt,returnSubThemeOrDefault:()=>nS,rgbArrayToHex:()=>Od,rgbToHSL:()=>Rd,rgbToHex:()=>Qx,setCustomFont:()=>_a,setCustomFontMedia:()=>pr,setFontImport:()=>os,setInCustomFontMedia:()=>Dd,setScalingVar:()=>Ea,setSubScalingVar:()=>Ud,setVariables:()=>BS,splitTopLevelCommas:()=>fr});var Vr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",zr=["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"];O();var ye=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&&q&&k){let e=q.body.appendChild(q.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){q.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return q.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,q.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]},Zx=(t,e,r=.5)=>(t=ye(t),e=ye(e),$d(t,e,r)),Jx=(t,e=1)=>{let[r,o,n]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${o},${n})`},Td=(t,e=1)=>{let[r,o,n]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,o,n]},Qx=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Od=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),tS=(t,e=1)=>{let[r,o,n]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${o},${n},${e})`},eS=(t,e,r=.5)=>{let o=[];for(let n=0;n<3;n++)o[n]=~~(t[n]+(e[n]-t[n])*r);return`rgb(${o})`},rS=(t,e)=>{let[r,o,n]=e,s=Math.max(0,Math.min(100,n+parseFloat(t)));return[r,o,s]},Rd=(t,e,r)=>{let o=Math.max(t,e,r),n=o-Math.min(t,e,r),s=1-Math.abs(o+o-n-1),i=n&&(o==t?(e-r)/n:o==e?2+(r-t)/n:4+(t-e)/n);return[60*(i<0?i+6:i),s?n/s:0,(o+o-n)/2]},Pd=(t,e,r,o=e*Math.min(r,1-r),n=(s,i=(s+t/30)%12)=>r-o*Math.max(Math.min(i-3,9-i,1),-1))=>[n(0),n(8),n(4)],Id=(t,e)=>{let r=parseInt(t,16),o=(r>>16)+e;o>255?o=255:o<0&&(o=0);let n=(r>>8&255)+e;n>255?n=255:n<0&&(n=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|n<<8|o<<16)+16777216).toString(16).slice(1)},$d=(t,e,r=.5)=>{let o=[];for(let n=0;n<4;n++){let s=n===3?i=>i:Math.round;o[n]=s(t[n]+(e[n]-t[n])*r)}return`rgba(${o})`},es=(t,e)=>{let r=ye(t);if(!r){sr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},et=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,ce=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,oS=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Ue=t=>{if(!w(t))return null;if(ce.test(t))return{passthrough:t};if(et(t))return{cssVar:t};let e=t.match(oS);if(!e)return null;let[,r,o,n]=e,s=o!==void 0?`0.${o}`:void 0,i=n&&n[0]==="="?n.slice(1):n;return{name:r,alpha:s,tone:i}},be=t=>w(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),fr=t=>{let e=[],r="",o=0;for(let n of t){if(n==="("?o+=1:n===")"&&o>0&&(o-=1),n===","&&o===0){e.push(r),r="";continue}r+=n}return(r.length||!e.length)&&e.push(r),e},ur=(t,e)=>{w(t)&&t.includes("rgb")&&(t=ye(t).join(", ")),w(t)&&(t=t.split(",").map(n=>parseFloat(n.trim()))),ne(e)&&(e+="");let r=Od(t),o=e.slice(0,1);if(o==="-"||o==="+"){let n=Id(r,parseFloat(e));return Td(n).join(", ")}else{let[n,s,i]=t,a=Rd(n,s,i),[c,l,f]=a;return Pd(c,l,parseFloat(e)/100*255)}};var nS=(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},mo=(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},Fd=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},rs=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),os=t=>`@import url('${t}');`,Dd=t=>`@font-face { ${t} }`,_a=(t,e,r,o={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Fd(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
27
27
  `);return`
28
- font-family: '${e}';
28
+ font-family: '${t}';
29
29
  font-style: ${o.fontStyle||"normal"};${r?`
30
30
  font-weight: ${r};`:""}${o.fontStretch?`
31
31
  font-stretch: ${o.fontStretch};`:""}${o.fontDisplay?`
32
32
  font-display: ${o.fontDisplay};`:""}
33
- src: ${n};`},gr=(e,t,r,o)=>`@font-face {${Ea(e,t,r,o)}
34
- }`,_o=(e,t,r)=>Object.keys(t).map(o=>{let{url:n,fontWeight:s,fontStyle:i,fontDisplay:a,fontStretch:c}=t[o],l=Array.isArray(n)?n.map(f=>rt(f,r)||f):rt(n,r)||n;return Ea(e,l,s,{fontStyle:i,fontDisplay:a,fontStretch:c})}),AS=e=>Object.keys(e).map(t=>_o(t,e[t].value)),wh=(e,t,r)=>{if(t&&t.isVariable){let n=rt(t.url,r)||t.url;return ss(n)?is(n):gr(e,n,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return _o(e,t,r).map(Sh);let o=Array.isArray(t.url)?t.url.map(n=>rt(n,r)||n):rt(t.url,r)||t.url;return gr(e,o,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},Ta=(e,t)=>Object.keys(e).map(r=>wh(r,e[r].value,t));T();T();T();var as={};C(as,{animation:()=>GS,breakpoints:()=>US,class:()=>QS,color:()=>LS,devices:()=>qS,document:()=>HS,font:()=>OS,fontFace:()=>IS,fontFamily:()=>RS,fontFamilyTypes:()=>PS,gradient:()=>MS,grid:()=>JS,icons:()=>jS,media:()=>$S,reset:()=>ew,semanticIcons:()=>zS,sequence:()=>Gt,shadow:()=>BS,spacing:()=>DS,svg:()=>KS,svgData:()=>YS,templates:()=>XS,theme:()=>NS,timing:()=>VS,typography:()=>Oa,unit:()=>ES,vars:()=>tw});var Gt={"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 ES={default:"em"};var TS={browserDefault:16,base:16,type:"font-size",ratio:Gt["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Oa=TS;var OS={};var RS={},PS={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},IS={};var $S={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var FS={base:Oa.base,type:"spacing",ratio:Gt.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},DS=FS;var LS={},MS={};var NS={};var BS={};var jS={},zS={};var WS={default:150,base:150,type:"timing",ratio:Gt["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},VS=WS;var HS={};var US={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},qS={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 GS={};var KS={},YS={};var XS={};var ZS={},JS=ZS;var QS={};var ew={},tw={};var _h={},kh={},cs=as,ls={},Ra=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in cs){let t=e.toLowerCase();ls[t]=cs[e];let r=Ra(t);r!==t&&(ls[r]=cs[e]),t!==e&&(ls[e]=cs[e])}var Pa={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:_h,cssMediaVars:kh,CSS_VARS:_h,CSS_MEDIA_VARS:kh,_scratchConfig:!0,...ls},Ch=Y(Pa),St={active:"0",0:Pa},xT=e=>(me(e)&&(St.active=e),St[e||St.active]),ko=[],ue=e=>{e&&e._scratchConfig&&ko.push(e)},le=()=>{ko.pop()},A=e=>ko.length?ko[ko.length-1]:St[e||St.active]||Pa,Ah=e=>{if(v(e))return St.active="1",St[1]=W(e,Y(Ch)),e},rw=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],ow=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],nw=e=>{for(let t of ow){let r;for(let o of t){let n=e[o];v(n)&&(r=r?W(n,r):n)}if(r)for(let o of t)v(e[o])&&(e[o]=r)}},Eh=(e,t,{cleanBase:r=!1}={})=>{let o=r?null:A(),n=Y(!r&&o&&o._scratchConfig?o:Ch);for(let i of rw)delete n[i];let s=W(t||{},n);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,nw(s),e&&(St[e]=s),s};var wt={"-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=(e,t)=>{let{key:r,variable:o,value:n,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(n*100)/100,val:~~n,scaling:s,index:i,scalingVariable:a,variable:o},t.scales[r]=s;let c=Th.has(t.unit)?"rem":t.unit;t.vars[o]=s+c},Kt=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},Th=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),$a=(e,t)=>{let{base:r,type:o,unit:n}=t,s=Th.has(n)?"rem":n,i=(Gr(s)?1:r)+s;if(e===0)return i;let a="--"+(t.varPrefix?t.varPrefix+"-":"")+(o&&o.replace(".","-")),c=`${a}-ratio`;if(e>0){let l=wt[e-1];return`calc(var(${a}-${l}) * var(${c}))`}if(e<0){let l=wt[e+1],f=Math.abs(e),p=Math.pow(Rh,2*f),u=wt[f];return u?`max(calc(var(${a}-${l}) / var(${c})), calc(var(${a}-${u}) / ${p.toFixed(4)}))`:`calc(var(${a}-${l}) / var(${c}))`}},Oh=(e,t,r,o)=>{let{type:n}=o,s=e===2&&t.length===2?e+1:e,i=`${"--"+(o.varPrefix?o.varPrefix+"-":"")+(n&&n.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${i+s}))`},Fa=(e,t)=>{let r=(e*t-e)/1.618,o=e*t-r,n=e+r,s=(o+n)/2;return[o,s,n]},Da=(e,t)=>Fa(e,t).map(r=>r/e),La=(e,t)=>{let{key:r,base:o,value:n,ratio:s,variable:i,index:a}=e,c=~~(n*s)-~~n,l,[f,p,u]=Fa(n,s);c>16?l=[f,p,u]:l=[f,u],l.forEach((d,h)=>{let m=~~(d/o*1e3)/1e3,g=i+(h+1),y=a+(h+1)/10,b=Oh(h+1,l,i,t),x={key:r+(h+1),variable:g,value:d,scaling:m,scalingVariable:b,index:y};Ia(x,t)})},Rh=1.618,sw=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let o=Math.abs(e),n=t*Math.pow(r,e),s=t*Math.pow(r,o)/Math.pow(Rh,2*o);return Math.max(n,s)},We=e=>{let{type:t,base:r,ratio:o,range:n,subSequence:s}=e,i=Math.abs(n[0])+Math.abs(n[1]),a="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let c=0;c<=i;c++){let l=n[1]-c,f=wt[l],p=sw(l,r,o),u=~~(p/r*100)/100,d=a+f,h=$a(l,e),m={key:f,variable:d,value:p,base:r,scaling:u,scalingVariable:h,ratio:o,index:l};Ia(m,e),s&&La(m,e)}return e},iw=(e,t=0)=>{let{type:r,base:o,ratio:n,subSequence:s}=e,i=S(t)?t:wt[t],a=S(t)?Object.entries(wt).find(([,h])=>h===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...e},l=o*Math.pow(n,a),f=~~(l/o*100)/100,p="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,u=$a(a,e),d={key:i,variable:p,value:l,base:o,scaling:f,scalingVariable:u,ratio:n,index:a};return Ia(d,c),s&&La(d,c),c},Ma=(e="A",t)=>{let r=A(),{unit:o}=r;if(S(e)&&te(e))return`var(${e})`;let{sequence:n,unit:s=o.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,c=a.test(e);if(Kr.some(g=>e.includes(g))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let l=`--${t.varPrefix?t.varPrefix+"-":""}${ns(t.type.replace(".","-"))}-`,f=e.toUpperCase(),p=f.slice(0,1)==="-"?"-":"",u=p?f.slice(1):f,d="";u.includes("_")&&(d="_"+u.split("_")[1].toLowerCase(),u=u.split("_")[0]);let h=g=>a.test(g)?`var(${l}${g}${d})`:g;if(u.includes("+")){let[g,y]=u.split("+"),b=`${h(g)} + ${h(y)}`;return p?`calc((${b}) * -1)`:`calc(${b})`}else if(u.includes("*")){let[g,y]=u.split("*"),b=`${h(g)} * ${h(y)}`;return p?`calc((${b}) * -1)`:`calc(${b})`}else if(u.includes("-")){let[g,y]=u.split("-"),b=`${h(g)} - ${h(y)}`;return p?`calc((${b}) * -1)`:`calc(${b})`}if(!n[u]&&u.length===2&&(r.verbose&&console.warn(u,"- value is not found because `subSequence` is set to false"),u=u.slice(0,1)),i||r.useVariable){let g=`var(${l}${u}${d})`;return p?`calc(${g} * -1)`:g}let m=n?n[u]:null;return m?s==="ms"||s==="s"?p+m.val+s:p+m.scaling+s:console.warn("can't find",n,u)},Ph=(e,t)=>{if(!["+","-","*","/",","].filter(o=>e.includes(o+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(o=>{let n=o.trim();return!n||["+","-","*","/",","].includes(n)?o:Ma(n,t)}).join("")},_t=(e,t,r,o)=>{if(typeof e!="string")return A().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!o&&e.includes("(")){let n=Kt(e);o=n[0],e=n[1]}return["+","-","*","/",","].filter(n=>e.includes(n+" ")).length?e=Ph(e,r):e=Ma(e,r),{[t]:o?`${o}(${e})`:e}},Ih=(e,t)=>wt[e-t],Na=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((o,n)=>{let s=Ih(t,n);return r[s]})};T();var aw=(e,t)=>{let r=A(),{cssVars:o}=r;L(e.value)||(o[e.var]=e.value)},Ba=(e,t,r)=>{let o=A(),{unit:n}=o,s=t.unit||n.default,{base:i,ratio:a,type:c}=t,l="--"+(t.varPrefix?t.varPrefix+"-":"")+(c&&c.replace(".","-"));e[`${l}-base`]=i,e[`${l}-unit`]=s;let f=`${l}-ratio`;e[f]=a;let[p,u,d]=Da(i,a);e[`${l}-sub-ratio-1`]=`calc(var(${l}-ratio) * ${p/a})`,e[`${l}-sub-ratio-2`]=`calc(var(${l}-ratio) * ${u/a})`,e[`${l}-sub-ratio-3`]=`calc(var(${l}-ratio) * ${d/a})`},$h=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Yt=(e,t={})=>{let r=A(),{unit:o,timing:n,cssVars:s}=r,i=e.unit||o.default,a=$h.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=e;c||Ba(s,e,t);for(let p in l){let u=l[p],d=(e.type===n.type?l[p].val:f[p])+a;if(!c){s[u.variable+"_default"]=d,s[u.variable]=u.scalingVariable;continue}t.useDefault===!1?s[u.variable]=d:(s[u.variable+"_default"]=d,s[u.variable]=`var(${u.variable+"_default"})`)}},yr=(e,t,r={})=>{let o=A(),{unit:n,media:s,cssVars:i}=o,a=t.slice(1),c=e[t],l=c.unit||e.unit||n.default,f=$h.has(l)?"rem":l,{mediaRegenerate:p}=e,{sequence:u,scales:d}=c,h=s[a];if(!h&&o.verbose&&console.warn("Can't find media query ",h),!p){let m=i[`@media ${h}`];m||(m=i[`@media ${h}`]={}),Ba(m,c,r);let g=e.unit||n.default;if(f!==g&&u)for(let y in u){let b=u[y],x=d[y]+f;m[b.variable+"_default"]=x,m[b.variable]=x}return}for(let m in u){let g=u[m],y=(Gr(f)?d[m]:u[m].val)+f;!h&&o.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[g.variable]=`var(${g.variable+"_"+a})`,i[g.variable+"_"+a]=y}};T();var cw=ar(),fs=e=>{let t=A(),r="";for(let o in e)t.__svgCache[o]||(t.__svgCache[o]=!0,r+=e[o]);return r},lw=e=>{let t=e&&(e.default||e);if(!S(t))return cw&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return o?o.reduce((n,s)=>{let[i,a]=s.split("=");return n[i]=a.replace(/['"]/g,""),n},{}):{}},fw=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(n,s)=>(r.push(s),n)),!r.length)return e;let o=e;for(let n of r){let s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${n}`;o=o.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 o},ja=(e,t)=>{let r=lw(t),{width:o,height:n}=r,s=r.viewBox||`0 0 ${o||24} ${n||24}`,i=fw(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return i=i.replace(/width="[^"]*"/,""),i=i.replace(/height="[^"]*"/,""),i=i.replace("</svg","</symbol"),i=dw(i),i},uw="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",pw=new RegExp(`<(${uw})\\b([^>]*?)\\s*/>`,"g"),dw=e=>e.replace(pw,"<$1$2></$1>");var hs={};C(hs,{appendSVGSprite:()=>nc,appendSvgIconsSprite:()=>ic,applyDocument:()=>tc,applyHeadings:()=>Nh,applyReset:()=>ac,applySpacingSequence:()=>Za,applyTimingSequence:()=>ec,applyTypographySequence:()=>Ka,checkIfBoxSize:()=>Xa,getColor:()=>H,getFontFamily:()=>Ga,getFontSizeByKey:()=>Ya,getMediaColor:()=>fe,getMediaTheme:()=>ot,getShadow:()=>Qa,getSpacingBasedOnRatio:()=>Ve,getSpacingByKey:()=>ce,getTheme:()=>Va,getTimingByKey:()=>He,getTimingFunction:()=>nt,runThroughMedia:()=>Mh,setColor:()=>xr,setFont:()=>qa,setFontFamily:()=>ps,setGradient:()=>vr,setMediaTheme:()=>Ua,setSVG:()=>ds,setShadow:()=>Sr,setSvgIcon:()=>sc,setTheme:()=>Ha,splitSpacedValue:()=>Ja});T();var H=(e,t,r)=>{let o=r||A();if(!S(e)){o.verbose&&console.warn(e,"- type for color is not valid");return}if(te(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let n,s,i;if(E(e))[n,s,i]=e;else{let p=qt(e);if(!p){let{color:u,gradient:d}=o,h=d[e]||u[e];return h?o.useVariable?`var(${h.var})`:h.value:e}if(p.passthrough)return p.passthrough;if(p.cssVar)return`var(${p.cssVar})`;n=p.name,s=p.alpha,i=p.tone}let{color:a,gradient:c}=o,l=a[n]||c[n];if(!l)return o.verbose&&console.warn("Can't find color ",n),e;t&&(l[t]?l=l[t]:o.verbose&&console.warn(e," - does not have ",t));let f=l.rgb;return f?(i&&!l[i]&&(f=mr(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:o.useVariable?`var(${l.var})`:`rgb(${f})`):o.useVariable?`var(${l.var})`:l.value},fe=(e,t,r)=>{let o=r||A();if(t||(t=o.globalTheme==="auto"?null:o.globalTheme),!S(e)){o.verbose&&console.warn(e,"- type for color is not valid");return}if(te(e))return`var(${e})`;let n;if(E(e))n=e[0];else{let l=qt(e);if(!l)return e;if(l.passthrough)return l.passthrough;if(l.cssVar)return`var(${l.cssVar})`;n=l.name}let{color:s,gradient:i}=o,a=s[n]||i[n],c=v(a);if(c&&a.value)return H(e,`@${t}`,r);if(c){if(o.useVariable&&a.var)return`var(${a.var})`;if(t)return H(e,`@${t}`,r);{let l={};for(let f in a){if(f.charCodeAt(0)!==64)continue;let p=o.media[f.slice(1)];if(!p)continue;let u="@media "+(p==="print"?`${p}`:`screen and ${p}`);l[u]=H(e,f,r)}return l}}else return o.verbose&&console.warn("Can't find color",e),e},xr=(e,t,r)=>{let o=A();if(S(e)&&te(e)){let h=e.slice(2);if(e=H(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let m=h.split(" "),g=o.color[m[0]];if(g&&!g.value&&!g.rgb&&(S(g)||E(g)||v(g))&&(o.color[m[0]]=xr(g,m[0]),g=o.color[m[0]]),g&&g.value){let y=g.rgb,b=m[1]!==void 0?m[1]:"1",x=m[2];x&&(y=mr(y,x)),e=`rgba(${y}, ${b})`}else{let y=m[2],b=m[1]!==void 0?m[1]:"1";if(y)try{let x=xt(m[0]);x&&x.length>=3?e=`rgba(${mr(x.slice(0,3).join(", "),y)}, ${b})`:e=m[0]}catch{e=m[0]}else e=m[0]}}}if(E(e)&&(e={"@light":e[0],"@dark":e[1]}),v(e)){let h={};for(let m in e)h[m]=xr(e[m],t,m.slice(0,1)==="@"?m.slice(1):m);if(o.useVariable){let m=`--${o.varPrefix?o.varPrefix+"-":""}color-${t}`,g,y={};for(let b in h){if(b.charCodeAt(0)!==64)continue;let x=b.slice(1),w=h[b],O=w&&(w.value||w);!O||typeof O!="string"||(y[x]=O,(x==="light"||g===void 0)&&(g=O))}if(g!==void 0){o.cssVars[m]=g,o.cssMediaVars||(o.cssMediaVars={});for(let b in y){let x=`[data-theme="${b}"]`;if(o.cssMediaVars[x]||(o.cssMediaVars[x]={}),o.cssMediaVars[x][m]=y[b],b==="light"||b==="dark"){let w=`@media (prefers-color-scheme: ${b})`;o.cssMediaVars[w]||(o.cssMediaVars[w]={}),o.cssMediaVars[w][m]=y[b]}}h.var=m}}return h}let n=`--${o.varPrefix?o.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),s=e.value||e;if(S(s)&&s.includes(".")&&!s.includes("(")){let[h,m]=s.split("."),g=o.color[h];g&&g.rgb&&(s=`rgba(${g.rgb}, ${parseFloat("0."+m)||1})`)}if(S(s)&&!s.includes("(")&&!s.startsWith("#")){let h=qt(s);if(h&&h.name&&!h.passthrough&&!h.cssVar){let m=o.color[h.name];m&&!m.value&&!m.rgb&&(S(m)||E(m)||v(m))&&(o.color[h.name]=xr(m,h.name));let g=o.color[h.name];if(g&&g.rgb){let y=g.rgb;h.tone&&(y=mr(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;s=`rgba(${y}, ${b})`}}}let i=xt(s),[a,c,l,f=1]=i,p=parseFloat(f.toFixed(2)),u=`${a}, ${c}, ${l}`,d=`rgba(${u}, ${p})`;return o.useVariable&&(o.cssVars[n]=d),{var:n,rgb:u,alpha:p,value:d}},vr=(e,t,r)=>{let o=A();if(S(e)&&te(e)&&(e=H(e.slice(2))),E(e))return{"@light":vr(e[0],t,"light"),"@dark":vr(e[0],t,"dark")};if(v(e)){let s={};for(let i in e)s[i]=vr(e[i],t,i.slice(0,1)==="@"?i.slice(1):i);return s}let n=`--${o.varPrefix?o.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[n]=e.value||e),{var:n,value:e.value||e}};T();var hw=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"]),Fh=["color","Color","background","Background","fill","Fill","stroke","Stroke"],mw=e=>{for(let t=0;t<Fh.length;t++)if(e.includes(Fh[t]))return!0;return!1},us=e=>{let t={},{state:r,media:o,helpers:n,...s}=e;return Object.keys(s).map(i=>{let a=["color","Color","background","border"].some(c=>i.includes(c));return t[i]=a?H(e[i]):e[i]}),t},Co=e=>(e.value||(e.value=us(e)),e.value),Va=(e,t)=>{let r=A();if(r.useVariable)return ot(e,t);let o=r.theme;if(S(e)){let[n,s]=e.split(" "),i=o[n];if(i){if(!s&&!t)return Co(i);e=[n,s||t]}}if(L(e)&&e[1]){let n=e[0],s=e[1],{helpers:i,media:a,state:c}=o[n];if(a&&a[s])return Co(a[s]);if(i&&i[s])return Co(i[s]);if(c&&c[s])return Co(c[s])}else if(v(e))return us(e)},gw=(e,t,r)=>{if(v(t))e.variants.inverse.value=us(t);else if(t===!0){let{color:o,background:n}=r;e.variants.inverse={value:{color:n,background:o}}}},yw=(e,t,r,o)=>{let n=Va(r);o[`&:${t}`]=n,v(r)&&!r.value&&(r.value=n)},bw=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(o=>{let n=r[o];return yw(e,o,n,t),e}),e):void 0},xw=(e,t,r,o)=>{let n=Va(r);o[`@media (prefers-color-scheme: ${t})`]=n,v(r)&&!r.value&&(r.value=n)},vw=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(o=>{let n=r[o];return(o==="dark"||o==="light")&&xw(e,o,n,t),o==="inverse"&&gw(e,n,t),e}),e):void 0},Sw=(e,t)=>{let r=A(),{helpers:o}=e;return o?(Object.keys(o).map(n=>{let s=o[n];return S(s)?o[n]=r.theme[s]:Co(o[n]),e}),e):void 0},Ha=(e,t)=>{let r=A();if(r.useVariable)return Ua(e,t);let{state:o,media:n,helpers:s}=e,i=us(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return bw(e,i),vw(e,i),Sw(e,i),{var:a,value:i,state:o,media:n,helpers:s}};var za=(e,t,r)=>{let{cssVars:o}=r;r.cssMediaVars||(r.cssMediaVars={});let n=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let l in e)if(e[l])for(let f of Object.keys(e[l]))a.add(f);let c=new Set;for(let l of a){let f=l.slice(0,1);if(!(f==="@"||f==="."||f===":")&&mw(l))for(let p in e){if(c.has(p))continue;let u=e[p]?.[l];if(u===void 0)continue;let d=H(u,`@${p}`);d!==void 0&&S(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!hw.has(d)&&c.add(p)}}for(let l of a){let f=l.slice(0,1),p=Object.values(e).some(u=>L(u?.[l]));if(f==="."&&p){let u=l.slice(1),d={};for(let h in e)L(e[h]?.[l])&&(d[h]=e[h][l]);i[l]=za(d,`${t}-${u}`,r)}else if(f===":"&&p){let u=l.replace(/^:+/,""),d={};for(let h in e)L(e[h]?.[l])&&(d[h]=e[h][l]);i[l]=za(d,`${t}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let u=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${l}`,d=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,h;for(let m in e){if(c.has(m))continue;let g=e[m]?.[l];if(g===void 0)continue;let y=H(g,`@${m}`);if(y===void 0)continue;(d&&m===d||!d&&(m==="light"||h===void 0))&&(h=y);let b=`[data-theme="${m}"]`;if(n[b]||(n[b]={}),n[b][u]=y,m==="dark"||m==="light"){let x=`@media (prefers-color-scheme: ${m})`;n[x]||(n[x]={}),n[x][u]=y}}h!==void 0&&(o[u]=h),i[l]=`var(${u})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Ua=(e,t,r,o)=>{let n=A(),{cssVars:s}=n,i={value:e},a=!r&&!o;if(L(e)){if(a&&n.useVariable){let c={};for(let l in e)l.startsWith("@")&&L(e[l])&&(c[l.slice(1)]=e[l]);if(Object.keys(c).length){let l=za(c,t,n);Object.assign(i,l)}}for(let c in e){let l=c.slice(0,1),f=e[c];if(l==="@"||l===":"||l==="."){let p=l==="@"&&c;i[c]=Ua(f,t,c,o||p)}else if(!a){let p=H(f,o),u=[...new Set([o,r].filter(m=>m).map(m=>m.slice(1)))],d=u.length?"-"+u.join("-"):"",h=`--${n.varPrefix?n.varPrefix+"-":""}theme-${t}${d}-${c}`;n.useVariable?(n.useThemeSuffixedVars&&(s[h]=p),i[c]=`var(${h})`):i[c]=p,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(S(e)&&te(e)){let c=n.theme[e.slice(2)];return ot(c,o)}return i},Wa=e=>{let t=A(),r={};for(let o in e){let n=o.slice(0,1);if(L(e[o])){if(n==="@")continue;n===":"?r[`&${o}`]=Wa(e[o]):n==="."&&(r[`&${o}`]=Wa(e[o]))}else r[o]=e[o]}return r},Lh=(e,t)=>{let r=t.shift();return e[r]?Lh(e[r],t):e},Dh=(e,t)=>E(t)?Lh(e,t):S(t)&&e[t]?e[t]:e;var ot=(e,t)=>{let r=A();if(S(e)&&te(e)&&(e=ot(e.slice(2))),!e||!S(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[o,...n]=E(e)?e:e.split(" "),s=r.theme[o];return s&&n.length?s=Dh(s,n):s&&t&&(s=Dh(s,t)),Wa(s)};T();T();var qa=(e,t)=>{let r=A(),o=`--font-${t}`;if(!e||E(e)&&!e[0])return;let n;if(e.isVariable){let s=rt(e.url,r.files)||e.url;ss(s)?n=is(s):n=gr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])n=_o(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>rt(i,r.files)||i):rt(e.url,r.files)||e.url;n=gr(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:o,value:e,fontFace:n}},Ga=(e,t)=>{let r=A(),{fontFamily:o}=r;return wo(t||o,e)},ps=(e,t)=>{let r=A(),{fontFamily:o,fontFamilyTypes:n}=r,{value:s,type:i}=e;e.isDefault&&(o.default=t),v(s)&&(s=ur(s));let a=`--font-family-${t}`,c=`${s.join(", ")}, ${n[i]}`;return{var:a,value:c,arr:s,type:i}};T();var Mh=e=>{let t=A(),{typography:r,media:o}=t;for(let n in e){let s=n.slice(0,1)==="@",i=e[n];if(!s)continue;let{mediaRegenerate:a}=e,c=n.slice(1),{type:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:h,unit:m}=e;J(i,{type:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:h,unit:m});let g=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||m,b=!i.unit&&g.has(m)?"rem":y,x=o[c],w="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[w]={fontSize:i.base/r.browserDefault+b},!a){J(i,{sequence:{},scales:{},vars:{}}),We(i),yr(e,n);continue}J(i,{sequence:{},scales:{},templates:{},vars:{}}),We(i),yr(e,n)}},Nh=e=>{let t=A();if(e.h1Matches){let r=e.unit,o=Na(e),{templates:n}=e;for(let s in o){let i=`h${parseInt(s)+1}`,a=n[i];n[i]={fontSize:t.useVariable?`var(${o[s]?.variable})`:`${o[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Ka=()=>{let e=A(),{typography:t}=e;We(t),Nh(t),Yt(t),Mh(t)},Ya=e=>{let t=A(),{typography:r}=t;return _t(e,"fontSize",r)};T();T();var ww=e=>{for(let t in e){let r=e[t];if(t.slice(0,1)!=="@")continue;let{type:o,base:n,ratio:s,range:i,subSequence:a,h1Matches:c,unit:l}=e;J(r,{type:o,base:n,ratio:s,range:i,subSequence:a,h1Matches:c,unit:l,sequence:{},scales:{},templates:{},vars:{}}),We(r),yr(e,t)}},Xa=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),o=t.includes("border")||t.includes("outline");return r&&!o},Za=()=>{let e=A(),{spacing:t}=e;We(t),Yt(t),ww(t)},_w=e=>{let t=A(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:We(e)},ce=(e,t="padding",r,o)=>{let n=_w(r);if(S(e)&&!o&&e.includes("(")){let i=Kt(e);o=i[0],e=i[1]}let s=o?[e]:ur(e);if(E(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,f)=>_t(s[f],t+l+i,n,o);return a[s.length].map((l,f)=>c(l,f))}return _t(e,t,n,o)}},Ve=(e,t,r,o)=>{let n=A(),{spacing:s}=n,i=r||e[t];if(!o&&S(i)&&i.includes("(")){let a=Kt(i);o=a[0],i=a[1]}if(e.spacingRatio){let a=applyCustomSequence(e);return ce(i,t,a,o)}return ce(i,t,s,o)},Ja=e=>{let t=r=>{let o=["+","-","*","/"].includes(r),n=Kr.some(s=>e.includes(s));return o||n?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};T();var Sr=(e,t,r,o)=>{let n=A();if(E(e))return{"@light":Sr(e[0],t,"light"),"@dark":Sr(e[1],t,"dark")};if(v(e)){let i={};for(let a in e)i[a]=Sr(e[a],t,a.startsWith("@")?a.slice(1):a);return i}S(e)&&!ut.test(e)&&(e=hr(e).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let c=H(a);if(vt(c))return c;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let l=ce(a,"shadow");return l&&l.shadow?l.shadow:a}).join(" "))).join(", "));let s=`--${n.varPrefix?n.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[s]=e),{var:s,value:e}},Qa=(e,t)=>{let r=A();if(t||(t=r.globalTheme),!S(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(te(e))return`var(${e})`;let[o]=E(e)?e:e.split(" "),n=r.shadow[o],s=v(n);if(!n)return r.verbose&&console.warn("Can't find color ",o),e;if(t){if(n[t])return n[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(s&&n.value)return n.value;if(s){let i={};for(let a in n){let c=r.media[a.slice(1)],l="@media "+(c==="print"?`${c}`:`screen and ${c}`);i[l]=n.value}return i}return r.verbose&&console.warn("Can't find color",e),e};T();var ec=()=>{let e=A(),{timing:t}=e;We(t),Yt(t)},nt=e=>{let t=A(),{timing:r}=t;return r[e]||r[os(e)]||e},He=(e,t="timing")=>{let r=A(),{timing:o}=r;return _t(e,t,o)};T();var tc=()=>{let e=A(),{document:t,fontFamily:r,theme:o,typography:n}=e;return J(t,{theme:o.document,fontFamily:wo(r),fontSize:n.base,lineHeight:n.lineHeight})};T();var oc={document:q},ds=(e,t)=>{let r=A();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?ja(t,e):e},nc=(e,t=oc)=>{let r=A(),o=Object.keys(e).length?{}:r.svg;for(let n in e)o[n]=e[n];jh(o,t)},sc=(e,t)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[t]?ds(e,t):e},ic=(e,t=oc)=>{let r=A(),o=Object.keys(e).length?{}:r.icons;for(let n in e)o[n]=e[n];jh(o,t)},rc=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},kw=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let o=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,n=new r().parseFromString(o,"image/svg+xml");return n.querySelector("parsererror")?null:n.documentElement}return null},Bh=(e,t,r)=>{for(;t.firstChild;){let o=t.firstChild;r.appendChild(e.importNode(o,!0)),o.remove()}},jh=(e,t=oc)=>{let r=A(),o=t.document||q;if(!o||!o.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),fs(e);let n=o.querySelector("#svgSprite"),s=fs(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=kw(o,s);if(n)if(a)Bh(o,a,n);else if(o.body.insertAdjacentHTML)n.insertAdjacentHTML("beforeend",s);else{let c=rc(o,{isRoot:!1});c.innerHTML=s,n.append(...c.children)}else if(a){let c=rc(o);c&&c.nodeType&&(Bh(o,a,c),o.body.prepend(c))}else if(o.body.insertAdjacentHTML)o.body.insertAdjacentHTML("afterbegin",i);else{let c=rc(o);c&&c.nodeType&&(c.innerHTML=s,o.body.prepend(c))}};T();var ac=(e={})=>{let t=A(),{reset:r,typography:o,document:n}=t;if(r){if(r[":root"]){let c=r,l=o.templates;c.body={...t.useDocumentTheme?ot("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}=o.templates,a=t.useDocumentTheme?ot("document"):{};if(r.html&&ke(r.html,a),o.unit){let{media:c}=t;for(let l in o){if(l.charAt(0)!=="@")continue;let f=o[l];if(!f||f.unit===o.unit||!f.unit)continue;let p=f.unit,u=f.base||o.base,d=f.browserDefault||o.browserDefault,h=l.slice(1),m=c[h];if(!m)continue;let g="@media "+(m==="print"?m:"screen and "+m);r[g]||(r[g]={}),r[g].html||(r[g].html={}),r[g].html.fontSize=u/d+p}}return W(J(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:o.unit?o.base/o.browserDefault+o.unit:o.browserDefault+"px",fontFamily:n.fontFamily,lineHeight:n.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:n.fontFamily,fontSize:o.base/o.browserDefault+t.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};T();var Cw=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),Aw=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),Ew=e=>Cw.has(e),kt=e=>{let t=e+"";if(ut.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(te(o))return`var(${o})`;if(Ew(o)||/^\d/.test(o)||o==="0")return o;let n=H(o);if(vt(n))return n;let s=ce(o,"border");return s&&s.border?s.border:o}).join(" ")},zh=e=>ut.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(te(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=H(t);return vt(r)?r:t}).join(" "),Wh=(e,t)=>Qa(e,t),cc=(e,t)=>ut.test(e)?e:hr(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(te(o))return`var(${o})`;if(o==="inset"||o==="none")return o;let n=H(o);if(vt(n)){let i=fe(o,t);return v(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(o)||o==="0"||o.includes("px")||o.slice(-2)==="em")return o;let s=ce(o,"shadow");return s&&s.shadow?s.shadow:o}).join(" "):"")).join(", "),lc=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let o=e.slice(0,r+1),n=e.slice(r+1,e.lastIndexOf(")")),s=")",i=hr(n).map(a=>(a=a.trim(),a.split(/\s+/).map(c=>{if(!c||/^\d/.test(c)||c==="0"||Aw.has(c)||c==="transparent"||ut.test(c))return c;let l=H(c);return vt(l)?l:c}).join(" ")));return o+i.join(", ")+s},Vh=(e,t)=>{let r=A();return e.split(", ").map(o=>te(o)?`var(${o})`:o.includes("url")?o:o.includes("gradient")?lc(o,t):r.gradient[e]?{backgroundImage:fe(e,t||r.globalTheme)}:o.includes("/")||o.startsWith("http")||o.includes(".")&&!qt(o)?`url(${o})`:o).join(" ")},Hh=e=>S(e)&&e.split(" ").map(t=>ce(t,"gap").gap).join(" "),Tw=e=>{let t=e.split(" ");return t.length?t.map(r=>te(r)?`var(${r})`:r.length<3||r.includes("ms")?He(r).timing||r:nt(r)?nt(r):r).join(" "):e},fc=(e,t,r)=>{if(S(e))return e.split(",").map(o=>He(o).timing||o).join(",")},Uh=e=>{let t=e.split(",");if(t.length)return t.map(Tw).join(",")};function re(e,t,r={},o={}){let n=V.call(this,t||r[e]);if(n==null)return;let s;if(S(n)){if(n.includes("(")){let c=Kt(n);s=c[0],n=c[1]}let i=r.scaleBoxSize,a=Xa(e);!i&&a&&!o.ratio&&(n=Ja(n))}return o.ratio?Ve(r,e,n,s):ce(n,e,void 0,s)}var M=(e,t=null,r)=>re(e,t,r,{ratio:!0}),uc=(e,t,r)=>{if(S(e))return{borderRadius:e.split(" ").map((o,n)=>Ve(t,r,o)[r]).join(" ")}};T();var Ow=(e,t)=>{let r=A(),{cssVars:o}=r,n=t.startsWith("--")?t:`--${t}`;return o[n]=e,e},Pe=e=>e,qh={color:xr,gradient:vr,font:qa,fontFamily:ps,fontfamily:ps,theme:Ha,icons:sc,semanticIcons:Pe,semanticicons:Pe,svg:ds,svgData:Pe,typography:Pe,shadow:Sr,spacing:Pe,media:Pe,grid:Pe,class:Pe,timing:Pe,reset:Pe,unit:Pe,animation:Pe,vars:Ow},Rw=(e,t,r)=>{let o=A(),n=Ra(e),s=n.toLowerCase(),i=o[n]||o[s]||o[e],a=qh[n]||qh[s];if(a)try{let c=a(t,r);return i&&(i[r]=c),i}catch(c){o.verbose&&console.warn("Error setting",s,"value",t,r,c)}o.verbose&&console.warn("Can not find",s,"method in scratch")},Pw=(e,t)=>{let r=A(),o=e.toLowerCase();return Object.keys(t).sort((n,s)=>{let i=v(t[n])||E(t[n])?1:0,a=v(t[s])||E(t[s])?1:0;return i-a}).forEach(n=>{try{return Rw(o,t[n],n)}catch(s){r.verbose&&console.warn("Error setting",o,"value",t[n],n,s)}}),r[o]||r[e]},Gh=(e,t)=>{let r=t||A();r.globalTheme=e;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),n=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let i=r.themeRoot||o.documentElement;if(e&&e!=="auto")i.setAttribute("data-theme",e),e==="dark"||e==="light"?i.style.colorScheme=e:i.style.colorScheme="light dark";else if(n&&n.matchMedia){let a=l=>{i.setAttribute("data-theme",l.matches?"dark":"light")},c=n.matchMedia("(prefers-color-scheme: dark)");if(a(c),i.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=a;try{c.addEventListener("change",a)}catch{c.addListener(a)}}}else i.setAttribute("data-theme","light"),i.style.colorScheme="light"}let s=r.varPrefix?`--${r.varPrefix}-theme-`:"--theme-";for(let i in r.cssVars)i.startsWith(s)&&delete r.cssVars[i];for(let i in r.cssMediaVars)delete r.cssMediaVars[i];if(o&&r.cssVars){let i=r.scopeSelector||":root",a=o.styleSheets;for(let c=0;c<a.length;c++)try{let l=a[c].cssRules;for(let f=0;f<l.length;f++)if(l[f].selectorText===i){for(let p in r.cssVars)l[f].style.setProperty(p,r.cssVars[p]);return r}}catch{}}return r},Iw={},Ao=(e,t=Iw)=>{let r=t.config||A(),{version:o,verbose:n,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:p,useDocumentTheme:u,useDefaultConfig:d,semanticIcons:h,files:m,assets:g,...y}=e;t.newConfig&&(r=Ah(t.newConfig)),m!==void 0&&(r.files=m),g!==void 0&&(r.assets=g),n!==void 0&&(r.verbose=n),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),u!==void 0&&(r.useDocumentTheme=u),f!==void 0&&(r.globalTheme=f),p!==void 0&&(r.themeRoot=p),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),d!==void 0&&(r.useDefaultConfig=d),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let b=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=b&&b.defaultView||(typeof window<"u"?window:null),w=b&&(r.themeRoot||b.documentElement);if(w&&typeof w.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")w.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?w.style.colorScheme=r.globalTheme:w.style.colorScheme="light dark";else if(x&&x.matchMedia){let I=B=>{w.setAttribute("data-theme",B.matches?"dark":"light")},R=x.matchMedia("(prefers-color-scheme: dark)");if(I(R),w.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=I;try{R.addEventListener("change",I)}catch{R.addListener(I)}}}else w.setAttribute("data-theme","light"),w.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let O=Object.keys(y),$=new Set(O);if(O.forEach(I=>{let R=I.toLowerCase();R!==I&&$.has(R)&&W(y[R],y[I])}),O.map(I=>{let R=I.toLowerCase();if(!(R!==I&&$.has(R)))return Pw(I,y[I])}),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(I){r.verbose&&console.warn("Error applying typography sequence",I)}if(y.spacing)try{Za()}catch(I){r.verbose&&console.warn("Error applying spacing sequence",I)}if(y.timing)try{ec()}catch(I){r.verbose&&console.warn("Error applying timing sequence",I)}tc();let P=ac();return P&&(r.reset=P),r};var wr=new Map,$w=null,dc=null,Fw=null;function hc(e){e.batchAtomicCss&&(dc=e.batchAtomicCss),e.compoundCssClass&&(Fw=e.compoundCssClass)}var Dw=new Set;function Lw(e){try{let t=A();t&&(t.document=e)}catch{}e&&Dw.add(e)}function Zh(){try{let e=A();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}var Mw={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 Xt(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function ms(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function Nw(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():ms(t)}function Kh(e,t,r){let o=(r?r+"":"")+e+":"+t,n=wr.get(o),s=n?null:Xt(e);if(!n){let a=Mw[e]||ms(e),c=Nw(t);n=r?`_${r}_${a}-${c}`:`_${a}-${c}`,wr.set(o,n)}if(typeof t=="string"&&(t.indexOf("}")!==-1||t.indexOf("{")!==-1))return n;let i=`.${n}{${s||Xt(e)}:${t}}`;return Ie(i),n}var Yh=new WeakMap;function Ie(e,t){let r=Jh(t);if(!r)return;let o=Yh.get(r);if(o||(o=new Set,Yh.set(r,o)),!o.has(e)){o.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var Xh=new WeakMap;function Jh(e){let t=e||Zh();if(!t||!t.head)return null;let r=Xh.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let o=t.head.querySelector("style[data-smbls]");o||(o=t.createElement("style"),o.setAttribute("data-smbls",""),t.head.appendChild(o));let n=o.sheet;return Xh.set(t,n),$w=n,n}var Bw=8;function Zt(e,t,r){if(!e||typeof e!="object")return"";let o=null,n=0,s=[];for(let i in e){let a=e[i];a==null||a===!1||a===""||(typeof a=="object"?s.push(jw(i,a,r)):dc?(o||(o=[]),o.push(i,String(a)),n++):s.push(Kh(i,String(a),r)))}if(o&&n>=Bw){let i=o.join("\0"),a=dc(i),c=a.indexOf("\0"),l=a.substring(0,c),f=a.substring(c+1);if(f){let p=f.split(`
35
- `);for(let u=0;u<p.length;u++)p[u]&&Ie(p[u])}if(s.length>0)s.push(l);else return l}else if(o)for(let i=0;i<o.length;i+=2)s.push(Kh(o[i],o[i+1],r));return s.join(" ")}var pc=new Map;function jw(e,t,r){let o=(r?r+"":"")+e+JSON.stringify(t),n=wr.get(o);if(n){let u=pc.get(n);if(u)for(let d=0;d<u.length;d++)Ie(u[d]);return n}n=r?`_${r}_c${ms(o)}`:`_c${ms(o)}`;let s="",i=[],a=u=>typeof u=="string"&&(u.indexOf("{")!==-1||u.indexOf("}")!==-1),c=(u,d)=>{let h="";for(let m in d){let g=d[m];if(g!=null)if(typeof g=="object")c([...u,m],g);else{if(a(g))continue;h+=`${Xt(m)}:${g};`}}h&&(u.length===0?s+=h:i.push({chain:u,body:h}))};c([],t);let l=u=>{if(!u.length)return`.${n}`;let d=u[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${n}`):h.startsWith(":")?`.${n}${h}`:`.${n} ${h}`);for(let h=1;h<u.length;h++){let m=u[h].split(",").map(y=>y.trim()),g=[];for(let y of d)for(let b of m)b.includes("&")?g.push(b.replace(/&/g,y)):b.startsWith(":")?g.push(y+b):g.push(y+" "+b);d=g}return d.join(", ")},f=[];if(e.startsWith("@media")||e.startsWith("@supports")){if(s){let u=`${e}{.${n}{${s}}}`;f.push(u),Ie(u)}for(let u of i){let d=l(u.chain),h=`${e}{${d}{${u.body}}}`;f.push(h),Ie(h)}return pc.set(n,f),wr.set(o,n),n}let p=l([e]);if(s){let u=`${p}{${s}}`;f.push(u),Ie(u)}for(let u of i){let d=`${l([e,...u.chain])}{${u.body}}`;f.push(d),Ie(d)}return pc.set(n,f),wr.set(o,n),n}function ne(e){if(Jh(),typeof e=="string"){Ie(e);return}let t=Object.keys(e),r=o=>{let n=o.match(/max-width:\s*(\d+)/);return n?parseInt(n[1]):0};t.sort((o,n)=>{let s=o.startsWith("@media"),i=n.startsWith("@media");return!s&&!i?0:s?i?r(n)-r(o):1:-1});for(let o of t){let n=e[o];if(o.startsWith("@media")||o.startsWith("@supports"))for(let s in n){let i=n[s];if(typeof i=="object"&&i!==null){let a="";for(let c in i){let l=c.startsWith("--")?c:Xt(c);a+=`${l}:${i[c]};`}Ie(`${o}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Xt(s);Ie(`${o}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in n){let c=n[a];if(typeof c=="object"&&c!==null)i=!0;else{let l=a.startsWith("--")?a:Xt(a);s+=`${l}:${c};`}}if(s&&Ie(`${o}{${s}}`),i){let a=[],c=[];for(let l in n)typeof n[l]=="object"&&n[l]!==null&&(l.startsWith("@media")||l.startsWith("@supports")?a.push(l):c.push(l));a.sort((l,f)=>{let p=u=>{let d=u.match(/max-width:\s*(\d+)/);return d?parseInt(d[1]):0};return p(f)-p(l)});for(let l of c)ne({[`${o} ${l}`]:n[l]});for(let l of a)ne({[l]:{[o]:n[l]}})}}}}function gs(e,t){let r="";for(let o in t){let n="";for(let s in t[o])n+=`${Xt(s)}:${t[o][s]};`;r+=`${o}{${n}}`}return Ie(`@keyframes ${e}{${r}}`),e}function zw(){return wr.size}T();var mc="http://www.w3.org/2000/svg",xs=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"]),Ww=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 ys(e){return Ww.has(e)||xs.has(e)}function vs(e){return xs.has(e)}function _r(e){let{tag:t,key:r}=e;if(typeof t=="function"&&(t=t(e)),t===!0&&(t=r),typeof t=="string"&&ys(t))return t;if(!r||typeof r!="string")return"div";let o=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),n=r.toLowerCase();return n.includes(".")&&(n=n.split(".")[0]),n.includes("_")&&(n=n.split("_")[0]),ys(n)&&!o.has(n)?n:"div"}var Qh={};function bs(e,t){let r=t?.context?.document||globalThis.document;if(!r)return null;if(e==="string")return r.createTextNode(t?.text||"");if(e==="fragment")return r.createDocumentFragment();if(vs(e)){let o=t?.parent;if(e==="svg"||o?.node?.namespaceURI===mc)return r.createElementNS(mc,e);if(e!=="svg")return r.createElement("div")}return r.createElement(e)}function kr(e){let t=e.tag=_r(e),r=vs(t)&&(t==="svg"||e.parent?.node?.namespaceURI===mc)?"svg:"+t:t,o=e?.context?.document||globalThis.document,n=Qh[r];if(n||(n=Qh[r]=bs(t,e)),!n)return null;let s=o&&n.ownerDocument!==o?bs(t,e):n.cloneNode(!0);return t==="string"&&(s.nodeValue=e.text||""),s}var Ae=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"]),em={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Cr=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"]),tm=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Ss=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 gc=new WeakMap,Vw={passive:!0},Hw={passive:!0,capture:!0},yc=(e,t)=>tm.has(e)?t?Hw:Vw:t||!1;function om(e){let t=gc.get(e);return t||(t={handlers:new Map,installed:new Set},gc.set(e,t)),t}function Uw(e,t){let r=om(t);if(r.installed.has(e))return;r.installed.add(e);let o=e==="focus"||e==="blur"||e==="focusin"||e==="focusout"||e==="mouseenter"||e==="mouseleave",n=e==="mouseenter"||e==="mouseleave";t.addEventListener(e,s=>{let i=s.target;for(;i&&i!==t;){let a=r.handlers.get(e);if(a){let c=a.get(i);if(c){if(n&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},yc(e,o))}function bc(e,t,r,o){o||(o=t.ownerDocument?.documentElement||t.getRootNode());let n=om(o);Uw(e,o),n.handlers.has(e)||n.handlers.set(e,new WeakMap),n.handlers.get(e).set(t,r)}function xc(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let o=gc.get(r);if(!o)return;let n=o.handlers.get(e);n&&n.delete(t)}function rm(e){return Ss.has(e)&&!Cr.has(e)}function ws(e,t,r){let{node:o,context:n}=t;if(!o)return;let s=n?.designSystem,i=a=>{s&&ue(s);try{let c=r.call(t,a,t,t.state,n);if(c&&typeof c.then=="function"){c.catch(l=>{t.error=l,console.error("[DOMQL] Async event error:",l)}).finally(()=>{s&&le()});return}}catch(c){if(t.error=c,console.error("[DOMQL] Event error:",c),n?.strictMode)throw c}s&&le()};if(rm(e)){let a=n?.rootNode||o.ownerDocument?.documentElement;bc(e,o,i,a)}else o.addEventListener(e,i,yc(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(rm(e)){let a=n?.rootNode||o.ownerDocument?.documentElement;xc(e,o,a)}else o.removeEventListener(e,i,yc(e,!1))})}function nm(e){let t=[];return e.extends&&(Array.isArray(e.extends)?t.push(...e.extends):t.push(e.extends)),e.extend&&(Array.isArray(e.extend)?t.push(...e.extend):t.push(e.extend)),t}function _s(e,t,r){let o=nm(t);if(!o.length)return;let n=(e.context||r?.context||{}).components||{};for(let s=0;s<o.length;s++){let i=sm(o[s],n);i&&i!==t&&im(e,i,r,new Set([t]))}}function sm(e,t){if(typeof e=="string"){if(e.includes(">")){let r=e.split(">").map(n=>n.trim()),o=t[r[0]]||t[`smbls.${r[0]}`];for(let n=1;n<r.length&&o;n++)o=o[r[n]];return o||null}return t[e]||t[`smbls.${e}`]||null}return typeof e=="object"&&e!==null?e:null}function im(e,t,r,o=new Set){if(o.has(t))return;o.add(t);let n=nm(t);if(n.length){let s=(e.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=sm(n[i],s);a&&im(e,a,r,o)}}for(let s in t){if(s==="extends"||s==="extend")continue;let i=t[s];e[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?e[s]={...i}:e[s]=i:typeof e[s]=="object"&&typeof i=="object"&&!Array.isArray(e[s])&&!Array.isArray(i)&&e[s]!==null&&i!==null?e[s]=am(e[s],i):e[s]=i}}function am(e,t){let r={...e};for(let o in t){let n=r[o],s=t[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=am(n,s):r[o]=s}return r}cr();function ks(e={},t={}){let r=this,o=r.__ref;if(o){if((typeof e=="string"||typeof e=="number")&&(e={text:e}),!t.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,t)===!1)return r;if(Ft(()=>{if(e.state&&he(r.state)&&r.state.update(e.state),e.text!==void 0&&(r.text=e.text,!o.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=e.text??"":r.node.textContent=e.text??"")),e.html!==void 0&&(r.html=e.html,!o.__exec.html&&r.node&&(r.node.innerHTML=e.html)),e.style&&r.node?.style){if(!o.__exec.style)for(let n in e.style){let s=e.style[n];if(s==null)continue;let i=n.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,e.style)}if(e.attr&&r.node?.setAttribute){for(let n in e.attr){let s=e.attr[n];s==null||s===!1?r.node.removeAttribute(n):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(n,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,e.attr)}if(e.data&&r.node?.dataset){for(let n in e.data)r.node.dataset[n]=e.data[n];r.data||(r.data={}),Object.assign(r.data,e.data)}for(let n in e){if(Ae.has(n)||n==="state")continue;let s=e[n],i=r[n];if(i&&i.__ref&&typeof i.update=="function")i.update(s,t);else if(typeof s=="object"&&s!==null){let a=n.charCodeAt(0);a>=65&&a<=90&&Ue(s,r,n,t)}else n!=="text"&&n!=="html"&&n!=="style"&&n!=="attr"&&n!=="data"&&(r[n]=s)}}),r.node&&o.__conditionalRunners)for(let n of o.__conditionalRunners)n();return Je("update",r),!t.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,t),r}}function Ar(e){if(!e)return;let t=e.__ref;if(t){try{typeof e.onBeforeRemove=="function"&&e.onBeforeRemove(e,e.state,e.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(t.__effects){for(let r=0;r<t.__effects.length;r++)t.__effects[r].dispose();t.__effects.length=0}if(t.__eventCleanup){for(let r=0;r<t.__eventCleanup.length;r++)t.__eventCleanup[r]();t.__eventCleanup.length=0}if(t.__children){for(let r=0;r<t.__children.length;r++){let o=t.__children[r],n=e[o];n&&n.__ref&&Ar(n)}t.__children.length=0}if(e.node?.parentNode&&e.node.remove(),e.state?.destroy&&e.state.__element===e&&e.state.destroy(),e.parent?.__ref?.__children){let r=e.parent.__ref.__children.indexOf(e.key);r!==-1&&e.parent.__ref.__children.splice(r,1),delete e.parent[e.key]}try{typeof e.onRemove=="function"&&e.onRemove(e)}catch(r){console.error("[smbls] onRemove error:",r)}e.node=null,e.parent=null,e.__ref=null}}function Cs(){Ar(this)}T();T();var qw=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],Gw=["none","forwards","backwards","both"],Kw=["normal","reverse","alternate","alternate-reverse"],Yw=["running","paused"],Xw=e=>/^[\d.]+m?s$/.test(e),Zw=0,vc=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(v(e)){let n=`smbls-anim-${Zw++}`;return{animationName:gs(n,e)}}let o=r&&r[e];return v(o)?gs(e,o):e},Jw=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},o=e.split(/\s+/),n=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let p of o)r&&r[p]?n=p:Xw(p)?s.push(p):qw.includes(p)||p.startsWith("cubic-bezier")||p.startsWith("steps(")?i=p:p==="infinite"||/^\d+$/.test(p)?a=p==="infinite"?p:Number(p):Kw.includes(p)?c=p:Gw.includes(p)?l=p:Yw.includes(p)?f=p:n||(n=p);return{name:n,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},cm={animation:(e,t)=>{if(S(e)&&e.includes(" ")){let r=Jw(e,t);return{animationName:vc(r.name||e,t),animationDuration:r.durations[0]||He(t.animationDuration||"A").timing,animationDelay:r.durations[1]||He(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||nt(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:vc(e,t),animationDuration:He(t.animationDuration||"A").timing,animationDelay:He(t.animationDelay||"0s").timing,animationTimingFunction:nt(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:vc(e,t)}),animationDuration:e=>({animationDuration:He(e).timing}),animationDelay:e=>({animationDelay:He(e).timing}),animationTimingFunction:e=>({animationTimingFunction:nt(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};T();var lm={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>M("height",e,t),width:(e,t)=>M("width",e,t),boxSizing:e=>oe(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!S(e))return;let[t,r]=e.split(" ");return{...re("height",t),...re("width",r||t)}},inlineSize:(e,t)=>M("inlineSize",e,t),blockSize:(e,t)=>M("blockSize",e,t),minWidth:(e,t)=>M("minWidth",e,t),maxWidth:(e,t)=>M("maxWidth",e,t),widthRange:e=>{if(!S(e))return;let[t,r]=e.split(" ");return{...re("minWidth",t),...re("maxWidth",r||t)}},minHeight:(e,t)=>M("minHeight",e,t),maxHeight:(e,t)=>M("maxHeight",e,t),heightRange:e=>{if(!S(e))return;let[t,r]=e.split(" ");return{...re("minHeight",t),...re("maxHeight",r||t)}},size:e=>{if(!S(e))return;let[t,r]=e.split(" ");return{...M("inlineSize",t),...M("blockSize",r||t)}},minBlockSize:(e,t)=>M("minBlockSize",e,t),minInlineSize:(e,t)=>M("minInlineSize",e,t),maxBlockSize:(e,t)=>M("maxBlockSize",e,t),maxInlineSize:(e,t)=>M("maxInlineSize",e,t),minSize:e=>{if(!S(e))return;let[t,r]=e.split(" ");return{...re("minInlineSize",t),...re("minBlockSize",r||t)}},maxSize:e=>{if(!S(e))return;let[t,r]=e.split(" ");return{...re("maxInlineSize",t),...re("maxBlockSize",r||t)}},borderWidth:(e,t)=>M("borderWidth",e,t),padding:(e,t)=>M("padding",e,t),scrollPadding:(e,t)=>M("scrollPadding",e,t),paddingInline:e=>{if(!S(e))return;let[t,r]=e.split(" ");return{...re("paddingInlineStart",t),...re("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!S(e))return;let[t,r]=e.split(" ");return{...re("paddingBlockStart",t),...re("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>M("paddingBlockStart",e,t),paddingBottom:(e,t)=>M("paddingBlockEnd",e,t),paddingLeft:(e,t)=>M("paddingInlineStart",e,t),paddingRight:(e,t)=>M("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>M("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>M("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>M("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>M("paddingInlineEnd",e,t),margin:(e,t)=>M("margin",e,t),marginInline:e=>{if(!S(e))return;let[t,r]=e.split(" ");return{...re("marginInlineStart",t),...re("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!S(t.marginBlock))return;let[r,o]=t.marginBlock.split(" ");return{...re("marginBlockStart",r),...re("marginBlockEnd",o||r)}},marginTop:(e,t)=>M("marginBlockStart",e,t),marginBottom:(e,t)=>M("marginBlockEnd",e,t),marginLeft:(e,t)=>M("marginInlineStart",e,t),marginRight:(e,t)=>M("marginInlineEnd",e,t),marginInlineStart:(e,t)=>M("marginInlineStart",e,t),marginInlineEnd:(e,t)=>M("marginInlineEnd",e,t),marginBlockStart:(e,t)=>M("marginBlockStart",e,t),marginBlockEnd:(e,t)=>M("marginBlockEnd",e,t),gap:e=>({gap:Hh(e)}),columnGap:(e,t)=>Ve(t,"columnGap",e),rowGap:(e,t)=>Ve(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!S(e))return;let[o,n]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(o="row"),(e.startsWith("y")||e==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&r?"-reverse":"")+" "+(n||"")}},flexAlign:e=>{if(!S(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>uc(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>uc(e??t.round,t,"borderRadius")};var fm={fontSize:e=>Ya(e)||e,fontFamily:e=>({fontFamily:Ga(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})};var um={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,o)=>{if(!e)return;let n=o.assets&&o.assets[e];if(n&&n.content)e=`url(${n.content.src})`;else{let s=o.files&&o.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0};var pm={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>ce(r,"k").k).join(" ")}},left:e=>ce(e,"left"),top:e=>ce(e,"top"),right:e=>ce(e,"right"),bottom:e=>ce(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ce(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ce(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};T();var qe=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},dm={theme:(e,t)=>{if(e)return t.themeModifier?ot(e,`@${t.themeModifier}`):ot(e)},color:(e,t)=>{let r=qe(t);if(e)return{color:fe(e,r)}},background:(e,t)=>{let r=qe(t);if(e)return S(e)&&e.includes("gradient")?{background:lc(e,r)}:{background:fe(e,r)}},backgroundColor:(e,t)=>{let r=qe(t);if(e)return{backgroundColor:fe(e,r)}},backgroundImage:(e,t,r,o)=>{let n=qe(t);if(!e)return;let s=o.assets&&o.assets[e];if(s&&s.content)e=s.content.src;else{let i=o.files&&o.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:Vh(e,n)}},textStroke:e=>({WebkitTextStroke:zh(e)}),outline:e=>({outline:kt(e)}),outlineOffset:(e,t)=>M("outlineOffset",e,t),border:e=>({border:kt(e)}),borderColor:(e,t)=>{let r=qe(t);if(e)return{borderColor:fe(e,r)}},borderTopColor:(e,t)=>{let r=qe(t);if(e)return{borderTopColor:fe(e,r)}},borderBottomColor:(e,t)=>{let r=qe(t);if(e)return{borderBottomColor:fe(e,r)}},borderLeftColor:(e,t)=>{let r=qe(t);if(e)return{borderLeftColor:fe(e,r)}},borderRightColor:(e,t)=>{let r=qe(t);if(e)return{borderRightColor:fe(e,r)}},borderLeft:e=>({borderLeft:kt(e)}),borderTop:e=>({borderTop:kt(e)}),borderRight:e=>({borderRight:kt(e)}),borderBottom:e=>({borderBottom:kt(e)}),shadow:(e,t)=>{let r=qe(t);if(e)return{boxShadow:Wh(e,r)}},boxShadow:(e,t)=>{if(!S(e))return;let[r,o]=e.split("!importan"),n=qe(t),s=o?" !important":"";return{boxShadow:cc(r.trim(),n)+s}},textShadow:(e,{context:t})=>({textShadow:cc(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:kt(e)})};var Er={transition:e=>({transition:Uh(e)}),transitionDuration:e=>({transitionDuration:fc(e)}),transitionDelay:e=>({transitionDelay:fc(e)}),transitionTimingFunction:e=>({transitionTimingFunction:nt(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};T();var hm={flow:(e,t)=>{let r=t.reverse;if(!S(e))return;let[o,n]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(o="row"),(e.startsWith("y")||e==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&r?"-reverse":"")+" "+(n||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,o]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:o}}};var mm={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})};var se={...cm,...lm,...fm,...um,...pm,...dm,...Er,...hm,...mm};var ye=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"]);T();var Qw=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,e_=(e,t,r)=>{let{context:o}=r;if(!o.designSystem?.media)return;let n=e.slice(1),s=o.designSystem.media[n],i=ve(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(Qw),c=a?a[1]||a[2]:n,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=o.designSystem?.scopeSelector||":root",p=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${p} &`]:i}}return l},gm=(e,t,r)=>({[e]:ve(t,r)}),Eo=(e,t,r)=>{let o=`&${e}`,n=ve(t,r);if(e.includes(",")&&n){let s={},i={};for(let a in n)typeof n[a]=="object"&&n[a]!==null?i[a]=n[a]:s[a]=n[a];if(Object.keys(i).length){let a=o.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[o]=s);for(let l in i){let f=a.map(p=>`${p} ${l}`).join(", ");c[f]=i[l]}return c}}return{[o]:n}},Sc=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return k(r)?r.call(t,t):!!r},t_=(e,t,r)=>{let o=e.slice(1),n=Sc(o,r);if(n===void 0&&(n=!!r[o]),!!n)return ve(t,r)},r_=(e,t,r)=>({[e]:t}),o_=(e,t,r)=>{let o=e.slice(1),n=r[o]===!0||r.state?.[o];if(!n)if(typeof r[o]=="function")try{n=r[o](r,r.state,r.context)}catch{}else{let s=Sc(o,r);s!==void 0&&(n=s)}if(n)return ve(t,r)},n_=(e,t,r)=>{let o=e.slice(1),n=r[o]===!0||r.state?.[o];if(!n)if(typeof r[o]=="function")try{n=r[o](r,r.state,r.context)}catch{}else{let s=Sc(o,r);s!==void 0&&(n=s)}if(!n)return ve(t,r)},ym=(e,t)=>ve(e,t),bm={"@":e_,":":Eo,"[":Eo,"*":Eo,"+":Eo,"~":Eo,"&":gm,">":gm,$:t_,"-":r_,".":o_,"!":n_};var wc=Bt(),s_=(e,t,r)=>{let o=t?.context?.designSystem;o&&ue(o);try{let n={},s={},i=(a,c)=>{if(r.unpack){n={...n,...c};return}n[a]=c};for(let a in e){let c=e[a];if(a==="class"&&t.call("isString",e.class)){let l=c.split(" ");if(l.length){let f=t.context.designSystem.class,p=l.reduce((u,d)=>J(u,f[d]),{});n.designSystemClass=p}}else if(a==="true"){let l=V(c,t);J(n,ym(l,t))}else if(t.classlist[a]){let l=t.classlist[a],f=k(l)?l(t,t.state,t.context):l;f&&i(a,f),!wc&&v(n[a])&&(n[a].label=a)}else if(se[a]){let l=V(c,t);E(l)&&(l=l.reduce((p,u)=>J(p,u),{}));let f=se[a](l,t,t.state,t.context);E(f)&&(f=f.reduce((p,u)=>J(p,u),{})),f&&i(a,f),!wc&&v(n[a])&&(n[a].label=a)}else if(ye.has(a)){let l=V(c,t);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!wc&&v(n[a])&&(n[a].label=a)}else s[a]=c}return[n,s]}finally{o&&le()}},i_=(e,t)=>{let r={};for(let o in e){let n=bm[o.slice(0,1)];if(n){let s=n(o,e[o],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?ke(r[i],s[i]):r[i]=s[i])}}return r},ve=(e,t,r={unpack:!0})=>{let[o,n]=s_(e,t,r),s=i_(n,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return pn(o,s);o._selectors=s}return o},vP=(e,t)=>{let r={};if(e.class)for(let o in e.class)r[o]=e.class[o](t);return r};T();var a_=e=>{if(v(e))return ve(e,e)},CP=(e,t)=>{let r=a_(e);return typeof t=="function"?t(r):Zt(r)};T();function Sm(e,t,r){let o=e?.context?.analyze;if(!o||!o.emit||t==="warn"&&!o.shouldCapture("warnings")||t==="error"&&!o.shouldCapture("errors"))return;let n=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");o.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:t==="error"?"error":"warning",level:t,hook:t==="error"?"el.error":"el.warn",element:{key:e.key!=null?String(e.key):null,name:e.__name||null,tag:e.tag||null},message:n||null,args:r})}function c_(...e){return Sm(this,"warn",e),Kn.apply(this,e)}function l_(...e){return Sm(this,"error",e),fr.apply(this,e)}var xm={update:ks,remove:Cs,getDB:Jn,getQuery:Qn,getRootData:Un,getChildren:jn,getPath:zn,nextElement:Yn,previousElement:Xn,verbose:yo,warn:c_,error:l_,variables:Zn,spotByPath:Bn,set(e,t){if(this.removeContent(),e!=null){let r=this.context?.__create;r&&r(e,this,"content",t)}},reset(e){let t=this.context?.__create;if(!t)return this;let r=this.parent,o=this.key,n=this.parse();return this.remove(),t(n,r,o,e)},lookup(e){let t=this.parent;for(;t;){if(typeof e=="function"){if(e(t))return t}else if(typeof e=="string"){if(t.key===e)return t;if(t[e]&&t[e].__ref)return t[e]}t=t.parent}return null},lookdown(e){let t=this.__ref;if(!t?.__children)return null;for(let r of t.__children){let o=this[r];if(!o)continue;if(typeof e=="function"){if(e(o))return o}else if(typeof e=="string"&&o.key===e)return o;let n=o.lookdown?.(e);if(n)return n}return null},lookdownAll(e,t=[]){let r=this.__ref;if(!r?.__children)return t;for(let o of r.__children){let n=this[o];n&&(typeof e=="function"?e(n)&&t.push(n):typeof e=="string"&&n.key===e&&t.push(n),n.lookdownAll?.(e,t))}return t},getRef(){return this.__ref},getRoot:Hn,getRootState:Vn,getRootContext:qn,getContext:Gn,parse(e){let t={},r=e?new Set(e):null,o=this.__ref?.__exec;for(let n in this)if(!(n==="parent"||n==="node"||n==="__ref")&&!r?.has(n)){if(o&&o[n]!==void 0){t[n]=o[n];continue}typeof this[n]!="function"&&(t[n]=this[n])}return t},parseDeep(e){let t=this.parse(e),r=this.__ref;if(r?.__children)for(let o of r.__children)this[o]?.parseDeep&&(t[o]=this[o].parseDeep(e));return t},keys(){return Object.keys(this)},log(...e){if(e.length){let t={};for(let r of e)t[r]=this[r];console.log(t)}else console.log(this)},setProps(e,t){return this.update(e,t)},setNodeStyles(e){if(this.node?.style)for(let t in e){let r=e[t];if(r==null)continue;let o=t.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),n=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(o,n,"important")}},call(e,...t){let r=this.context,o=r?.methods?.[e]||r?.functions?.[e]||r?.utils?.[e]||this[e];if(typeof o=="function")return o.call(this,...t)},removeContent(){let e=this.__ref;if(!e?.__children)return;let t=this.content;if(t?.remove){t.remove(),delete this.content;let r=e.__children.indexOf("content");r!==-1&&e.__children.splice(r,1)}t?.node?.parentNode&&t.node.parentNode.removeChild(t.node)}},vm=new WeakMap;function f_(e){if(!e)return xm;let t=vm.get(e);if(t)return t;t=Object.create(xm);let r=e.methods;if(r)for(let o in r)t[o]=r[o];return vm.set(e,t),t}function As(e){let t=f_(e.context);Object.setPrototypeOf(e,t)}T();cr();var u_=(e,t,r)=>{Object.defineProperty(e,t,{value:r,enumerable:!1,configurable:!0,writable:!0})},Ge=(e,t)=>{if(he(t)){let n=t.__raw||t;t.toggle||Object.defineProperty(n,"toggle",{value:function(s,i={}){t[s]=!t[s]},enumerable:!1,configurable:!0}),t.set||Object.defineProperty(n,"set",{value:function(s,i={}){return t.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&t.update(s,i),t},enumerable:!1,configurable:!0}),Object.defineProperty(n,"setByPath",{value:function(s,i,a={}){let c=s.split("."),l=t;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,t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"getByPath",{value:function(s){let i=s.split("."),a=t;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(n,"removeByPath",{value:function(s,i={}){let a=s.split("."),c=t;for(let l=0;l<a.length-1;l++){if(c==null)return t;c=c[a[l]]}return c&&delete c[a[a.length-1]],t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"reset",{value:function(s={}){let i=t.parse();return t.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(t);return t.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(t),t.update(t.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"rootUpdate",{value:function(s,i={}){let a=t;for(;a?.parent&&he(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"parentUpdate",{value:function(s,i={}){if(t.parent)return t.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"quietReplace",{value:function(s,i={}){return t.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(n,"root")||Object.defineProperty(n,"root",{get:function(){let s=t;for(;s?.parent&&he(s.parent);)s=s.parent;return s},enumerable:!1,configurable:!0});return}if(!t||typeof t!="object")return;let r=()=>{for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&delete t[n]},o={update(n){if(!n||typeof n!="object")return t;for(let s in n)t[s]=n[s];return t},apply(n){if(typeof n!="function")return t;let s=n(t);return s?t.update(s):t},parse(){return{...t}},toggle(n){return t[n]=!t[n],t},set(n){if(!n||typeof n!="object")return t;r();for(let s in n)t[s]=n[s];return t},replace(n){return t.set(n)},clean(){return r(),t}};for(let n in o)typeof t[n]!="function"&&u_(t,n,o[n])};var p_=function(e,t,r){return e.state=wm(e,t,r),e.state},wm=function(e,t,r){let{__ref:o}=e,n=e.state;if(n==null||n===!1){let s=t?.state||{};return Ge(e,s),s}if(typeof n=="string")return o&&(o.__state=n),o.__stateType="string",d_(n,e,t);if(typeof n=="number"||typeof n=="boolean"){o&&(o.__state=n,o.__stateType=typeof n,o.__hasRootState=!0);let s=Be({value:n});return s.__element=e,t?.state&&(s.parent=t.state),Ge(e,s),s}if(typeof n=="function"&&(n=n(e,t?.state)||{}),typeof n=="object"&&!he(n)){o&&(o.__hasRootState=!0),n.isRootState&&o&&(o.__hasRootState=!0);let s=Be({...n});if(s.__element=e,!Object.getOwnPropertyDescriptor(s,"root")){let i=t?.state?.root||t?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return t?.state&&(s.parent=t.state,t.state.__children&&(t.state.__children[e.key]=s)),Ge(e,s),typeof e.onStateCreated=="function"&&e.onStateCreated(e,s,e.context,r),s}return he(n)?(n.__element=e,n):t?.state||{}};function _c(e,t){if(!t)return e;let r=t.split("/"),o=e;for(let n of r){if(o==null)return{};o=o[n]}return o??{}}function d_(e,t,r){if(!r?.state)return{};if(e===".")return r.state;if(e.startsWith("../")){let n=e.slice(3),s=r.state?.parent;return n&&s?_c(s,n):s??r.state??{}}if(e.startsWith("~/")){let n=r.state;for(;n?.parent;)n=n.parent;let s=e.slice(2);return s?_c(n,s):n??{}}let o=_c(r.state,e);if(o&&typeof o=="object"&&!he(o)&&!Object.getOwnPropertyDescriptor(o,"root")){let n=r.state?.root||r.state;Object.defineProperty(o,"root",{get:()=>n,enumerable:!1,configurable:!0})}return o}T();var HP=["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"],kc={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"]},h_=["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=e=>e.startsWith("aria")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"aria-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):e.startsWith("data")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"data-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):null,Jt=(e,t)=>t.startsWith("aria-")||t.startsWith("data-")||Cc(t)||kc.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(kc,e)?kc[e].includes(t):!1,Am=e=>{if(!S(e))return!1;let t=e.toLowerCase();return h_.includes(t)},UP=(e,t,r)=>{let o={};for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(r&&n in r)continue;if(n==="aria"&&t[n]&&typeof t[n]=="object"){for(let a in t[n])me(t[n][a])&&(o["aria-"+a]=t[n][a]);continue}if(n==="data"&&t[n]&&typeof t[n]=="object"){for(let a in t[n])if(me(t[n][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());o["data-"+c]=t[n][a]}continue}let s=Jt(e,n),i=Am(n);if(me(t[n])&&(s||i)){let a=Cc(n)||n;o[a]=t[n]}}return o},qP=(e,t)=>{let r={};if(e.attr)for(let o in e.attr)r[o]=e.attr[o](t,t.state,t.context);if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let n=e.aria[o];typeof n=="function"&&(r["aria-"+o]=n(t,t.state,t.context))}if(e.data&&typeof e.data=="object")for(let o in e.data){let n=e.data[o];if(typeof n=="function"){let s=o.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=n(t,t.state,t.context)}}return r},st=(e,t)=>{let r=e.call("exec",t,e);if(r)return S(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r},_m=(e,t)=>{let r=(e.preSrc||"")+(st(e,t)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:o}=e;if(!o.files&&!o.assets)return r;if(r.startsWith("/assets/")){let n=r.slice(8),s=o.assets&&(o.assets[r]||o.assets[n]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let n=r.slice(7),s=o.files&&(o.files[r]||o.files[n]);return s&&s.content?s.content.src:r}if(o.assets){let n=o.assets[r];if(n&&n.content)return n.content.src}if(o.files){let n=o.files[r];if(n&&n.content)return n.content.src}return r},km={src:e=>_m(e,e.src),href:e=>st(e,e.href),action:e=>st(e,e.action),poster:e=>_m(e,e.poster),data:e=>st(e,e.data)},Em=e=>{let t=e.tag||"div",r={};for(let o in km)if(e[o]!==void 0&&Jt(t,o)){let n=km[o](e);n!==void 0&&(r[o]=n)}return r},Cm=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return k(r)?r.call(t,t):!!r},m_=(e,t,r)=>{if(e==="$"){let n=Cm(t,r);return n===void 0&&(n=!!r[t]),n}let o=r[t]===!0||r.state[t];if(!o){let n=Cm(t,r);n!==void 0&&(o=n)}return e==="."?!!o:!o},g_=new Set(["$",".","!"]),GP=(e,t,r)=>{let o={},n=(s,i,a,c)=>{let l=i;o[s]=f=>{if(m_(a,c,f))return k(l)?l(f):l}};for(let s in e){let i=s.charAt(0);if(!g_.has(i))continue;let a=e[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])n("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,m=>"-"+m.toLowerCase());n("data-"+h,a[l][d],i,c)}continue}let f=Jt(t,l),p=Am(l);if(!f&&!p)continue;let u=Cc(l)||l;n(u,a[l],i,c)}}return o};var y_=1;function Or(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function b_(e){return e.charAt(2).toLowerCase()+e.slice(3)}function x_(e){return e.toLowerCase()}function Tc(e,t){let r={...e};for(let o in t){let n=r[o],s=t[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=Tc(n,s):r[o]=s}return r}function Ue(e,t,r,o={},n){if(e==null||e===!1)return null;(typeof e=="string"||typeof e=="number")&&(e={text:e});let s=Object.create(null);s.key=r||e.key||`_${y_++}`,s.parent=t||null,s.context=e.context||t?.context||o.context||{},s.context.__create||(s.context.__create=Ue);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:t?.__ref?.root||s,path:t?.__ref?.path?[...t.__ref.path,s.key]:[s.key]};if(r&&!e.extends&&!e.extend){let m=r.indexOf("_");if(m>0){let g=r.substring(0,m),y=s.context?.components;y&&(y[g]||y["smbls."+g])&&(e={extends:g,...e})}}_s(s,e,o);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let m in e){if(m==="parent"||m==="node"||m==="__ref"||m==="extends"||m==="context"||m==="props")continue;let g=e[m],y=s[m],b=y&&g&&typeof y=="object"&&typeof g=="object"&&!Array.isArray(y)&&!Array.isArray(g)&&typeof y!="function"&&typeof g!="function";b&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=Tc(y,g):b&&a.has(m)?s[m]={...y,...g}:s[m]=g}function l(m){for(let g in m){let y=m[g],b=s[g],x=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";x&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=Tc(b,y):x&&a.has(g)?s[g]={...b,...y}:s[g]=y}}c&&l(c),e.props&&typeof e.props=="object"&&l(e.props),e.data!==void 0&&(s.data=e.data),e.classlist!==void 0&&(s.classlist=e.classlist),e.text!==void 0&&(s.text=e.text),e.html!==void 0&&(s.html=e.html);let f=s.scope&&typeof s.scope=="object"?s.scope:null,p=t?.scope,u=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,d=p||(u?Object.create(u):null);if(e.scope!==void 0||f){let m=d?Object.create(d):{};f&&Object.assign(m,f),e.scope!==void 0&&Object.assign(m,e.scope),s.scope=m}else d&&(s.scope=Object.create(d));if(e.if!==void 0&&(s.if=e.if),As(s),v_(s,t,e),s.if!=null){let m=typeof s.if=="function"?s.if(s,s.state,s.context):s.if;i.__if=!!m}if(i.__if)typeof e.if=="function"&&(i.__ifInitialized=!0);else return t&&(t[s.key]=s),typeof e.if=="function"&&Oc(s,{if:e.if}),s;s.tag||(s.tag=_r(s)),Ct("Init",s,o);let h=s.node=kr(s);if(!h)return s;Ct("AttachNode",s,o),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,e),Rc(s),Om(s),Rm(s,o);try{Pm(s,o)}catch(m){if(typeof console<"u"&&console.error){let g=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${g}:`,m?.message||m,m?.stack?`
36
- `+m.stack.split(`
33
+ src: ${i};`},pr=(t,e,r,o)=>`@font-face {${_a(t,e,r,o)}
34
+ }`,yo=(t,e,r)=>Object.keys(e).map(n=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=e[n],f=Array.isArray(s)?s.map(p=>Qt(p,r)||p):Qt(s,r)||s;return _a(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),sS=t=>Object.keys(t).map(r=>yo(r,t[r].value)),Ld=(t,e,r)=>{if(e&&e.isVariable){let s=Qt(e.url,r)||e.url;return rs(s)?os(s):pr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return yo(t,e,r).map(Dd);let n=Array.isArray(e.url)?e.url.map(s=>Qt(s,r)||s):Qt(e.url,r)||e.url;return pr(t,n,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},wa=(t,e)=>Object.keys(t).map(o=>Ld(o,t[o].value,e));O();O();O();var ns={};$(ns,{animation:()=>AS,breakpoints:()=>vS,class:()=>IS,color:()=>gS,devices:()=>CS,document:()=>kS,font:()=>cS,fontFace:()=>uS,fontFamily:()=>lS,fontFamilyTypes:()=>fS,gradient:()=>mS,grid:()=>PS,icons:()=>xS,media:()=>pS,reset:()=>$S,semanticIcons:()=>SS,sequence:()=>We,shadow:()=>bS,spacing:()=>hS,svg:()=>ES,svgData:()=>TS,templates:()=>OS,theme:()=>yS,timing:()=>wS,typography:()=>ka,unit:()=>iS,vars:()=>FS});var We={"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 iS={default:"em"};var aS={browserDefault:16,base:16,type:"font-size",ratio:We["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},ka=aS;var cS={};var lS={},fS={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},uS={};var pS={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var dS={base:ka.base,type:"spacing",ratio:We.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},hS=dS;var gS={},mS={};var yS={};var bS={};var xS={},SS={};var _S={default:150,base:150,type:"timing",ratio:We["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},wS=_S;var kS={};var vS={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},CS={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 AS={};var ES={},TS={};var OS={};var RS={},PS=RS;var IS={};var $S={},FS={};var Md={},Nd={},ss=ns,is={},va=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in ss){let e=t.toLowerCase();is[e]=ss[t];let r=va(e);r!==e&&(is[r]=ss[t]),e!==t&&(is[t]=ss[t])}var Ca={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Md,cssMediaVars:Nd,CSS_VARS:Md,CSS_MEDIA_VARS:Nd,_scratchConfig:!0,...is},jd=Y(Ca),xe={active:"0",0:Ca},GA=t=>(St(t)&&(xe.active=t),xe[t||xe.active]),bo=[],ft=t=>{t&&t._scratchConfig&&bo.push(t)},lt=()=>{bo.pop()},A=t=>bo.length?bo[bo.length-1]:xe[t||xe.active]||Ca,Bd=t=>{if(S(t))return xe.active="1",xe[1]=W(t,Y(jd)),t},DS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],LS=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],MS=t=>{for(let e of LS){let r;for(let o of e){let n=t[o];S(n)&&(r=r?W(n,r):n)}if(r)for(let o of e)S(t[o])&&(t[o]=r)}},Vd=(t,e,{cleanBase:r=!1}={})=>{let o=r?null:A(),n=Y(!r&&o&&o._scratchConfig?o:jd);for(let i of DS)delete n[i];let s=W(e||{},n);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,MS(s),t&&(xe[t]=s),s};var Se={"-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"},Aa=(t,e)=>{let{key:r,variable:o,value:n,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(n*100)/100,val:~~n,scaling:s,index:i,scalingVariable:a,variable:o},e.scales[r]=s;let c=zd.has(e.unit)?"rem":e.unit;e.vars[o]=s+c},He=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},zd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ea=(t,e)=>{let{base:r,type:o,unit:n}=e,s=zd.has(n)?"rem":n,i=(Vr(s)?1:r)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(o&&o.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=Se[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=Se[t+1],p=Math.abs(t),u=Math.pow(Wd,2*p),d=Se[p];return d?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${d}) / ${u.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Ud=(t,e,r,o)=>{let{type:n}=o,i=t===2&&e.length===2?t+1:t,l=`${"--"+(o.varPrefix?o.varPrefix+"-":"")+(n&&n.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},Ta=(t,e)=>{let o=(t*e-t)/1.618,n=t*e-o,s=t+o,i=(n+s)/2;return[n,i,s]},Oa=(t,e)=>Ta(t,e).map(r=>r/t),Ra=(t,e)=>{let{key:r,base:o,value:n,ratio:s,variable:i,index:a}=t,l=~~(n*s)-~~n,f,[p,u,d]=Ta(n,s);l>16?f=[p,u,d]:f=[p,d],f.forEach((h,g)=>{let m=~~(h/o*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,x=Ud(g+1,f,i,e),_={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:x,index:b};Aa(_,e)})},Wd=1.618,NS=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let o=Math.abs(t),n=e*Math.pow(r,t),s=e*Math.pow(r,o)/Math.pow(Wd,2*o);return Math.max(n,s)},Bt=t=>{let{type:e,base:r,ratio:o,range:n,subSequence:s}=t,i=Math.abs(n[0])+Math.abs(n[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=n[1]-l,p=Se[f],u=NS(f,r,o),d=~~(u/r*100)/100,h=c+p,g=Ea(f,t),m={key:p,variable:h,value:u,base:r,scaling:d,scalingVariable:g,ratio:o,index:f};Aa(m,t),s&&Ra(m,t)}return t},jS=(t,e=0)=>{let{type:r,base:o,ratio:n,subSequence:s}=t,i=w(e)?e:Se[e],a=w(e)?Object.entries(Se).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=o*Math.pow(n,a),f=~~(l/o*100)/100,d="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=Ea(a,t),g={key:i,variable:d,value:l,base:o,scaling:f,scalingVariable:h,ratio:n,index:a};return Aa(g,c),s&&Ra(g,c),c},Pa=(t="A",e)=>{let r=A(),{unit:o}=r;if(w(t)&&et(t))return`var(${t})`;let{sequence:n,unit:s=o.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(zr.some(x=>t.includes(x))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${e.varPrefix?e.varPrefix+"-":""}${Jn(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=x=>a.test(x)?`var(${u}${x}${m})`:x;if(g.includes("+")){let[x,_]=g.split("+"),v=`${y(x)} + ${y(_)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("*")){let[x,_]=g.split("*"),v=`${y(x)} * ${y(_)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("-")){let[x,_]=g.split("-"),v=`${y(x)} - ${y(_)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}if(!n[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 x=`var(${u}${g}${m})`;return h?`calc(${x} * -1)`:x}let b=n?n[g]:null;return b?s==="ms"||s==="s"?h+b.val+s:h+b.scaling+s:console.warn("can't find",n,g)},Hd=(t,e)=>{if(!["+","-","*","/",","].filter(s=>t.includes(s+" ")).length)return t;let o=/(\s*[+\-*/,]\s*)/;return t.split(o).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Pa(i,e)}).join("")},_e=(t,e,r,o)=>{if(typeof t!="string")return A().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!o&&t.includes("(")){let s=He(t);o=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Hd(t,r):t=Pa(t,r),{[e]:o?`${o}(${t})`:t}},qd=(t,e)=>Se[t-e],Ia=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((o,n)=>{let s=qd(e,n);return r[s]})};O();var BS=(t,e)=>{let r=A(),{cssVars:o}=r;L(t.value)||(o[t.var]=t.value)},$a=(t,e,r)=>{let o=A(),{unit:n}=o,s=e.unit||n.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 p=`${f}-ratio`;t[p]=a;let[u,d,h]=Oa(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${h/a})`},Gd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),qe=(t,e={})=>{let r=A(),{unit:o,timing:n,cssVars:s}=r,i=t.unit||o.default,a=Gd.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||$a(s,t,e);for(let p in l){let u=l[p],d=(t.type===n.type?l[p].val:f[p])+a;if(!c){s[u.variable+"_default"]=d,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=d:(s[u.variable+"_default"]=d,s[u.variable]=`var(${u.variable+"_default"})`)}},dr=(t,e,r={})=>{let o=A(),{unit:n,media:s,cssVars:i}=o,a=e.slice(1),c=t[e],l=c.unit||t.unit||n.default,f=Gd.has(l)?"rem":l,{mediaRegenerate:p}=t,{sequence:u,scales:d}=c,h=s[a];if(!h&&o.verbose&&console.warn("Can't find media query ",h),!p){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),$a(g,c,r);let m=t.unit||n.default;if(f!==m&&u)for(let y in u){let b=u[y],x=d[y]+f;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in u){let m=u[g],y=(Vr(f)?d[g]:u[g].val)+f;!h&&o.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}};O();var VS=sr(),as=t=>{let e=A(),r="";for(let o in t)e.__svgCache[o]||(e.__svgCache[o]=!0,r+=t[o]);return r},zS=t=>{let e=t&&(t.default||t);if(!w(e))return VS&&console.warn("parseRootAttributes:",e,"is not a string"),{};let r=e.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},US=(t,e)=>{let r=[];if(t.replace(/id="([^"]*)"/g,(n,s)=>(r.push(s),n)),!r.length)return t;let o=t;for(let n of r){let s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${n}`;o=o.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 o},Fa=(t,e)=>{let r=zS(e),{width:o,height:n}=r,s=r.viewBox||`0 0 ${o||24} ${n||24}`,c=US(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c=qS(c),c},WS="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",HS=new RegExp(`<(${WS})\\b([^>]*?)\\s*/>`,"g"),qS=t=>t.replace(HS,"<$1$2></$1>");var us={};$(us,{appendSVGSprite:()=>Ja,appendSvgIconsSprite:()=>tc,applyDocument:()=>Ya,applyHeadings:()=>Jd,applyReset:()=>ec,applySpacingSequence:()=>Ha,applyTimingSequence:()=>Ka,applyTypographySequence:()=>za,checkIfBoxSize:()=>Wa,getColor:()=>X,getFontFamily:()=>Va,getFontSizeByKey:()=>Ua,getMediaColor:()=>ht,getMediaTheme:()=>te,getShadow:()=>Ga,getSpacingBasedOnRatio:()=>le,getSpacingByKey:()=>at,getTheme:()=>Ma,getTimingByKey:()=>Vt,getTimingFunction:()=>ee,runThroughMedia:()=>Zd,setColor:()=>gr,setFont:()=>Ba,setFontFamily:()=>ls,setGradient:()=>mr,setMediaTheme:()=>ja,setSVG:()=>fs,setShadow:()=>yr,setSvgIcon:()=>Qa,setTheme:()=>Na,splitSpacedValue:()=>qa});O();var X=(t,e,r)=>{let o=r||A();if(!w(t)){o.verbose&&console.warn(t,"- type for color is not valid");return}if(et(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let n,s,i;if(T(t))[n,s,i]=t;else{let p=Ue(t);if(!p){let{color:u,gradient:d}=o,h=d[t]||u[t];return h?o.useVariable?`var(${h.var})`:h.value:t}if(p.passthrough)return p.passthrough;if(p.cssVar)return`var(${p.cssVar})`;n=p.name,s=p.alpha,i=p.tone}let{color:a,gradient:c}=o,l=a[n]||c[n];if(!l)return o.verbose&&console.warn("Can't find color ",n),t;e&&(l[e]?l=l[e]:o.verbose&&console.warn(t," - does not have ",e));let f=l.rgb;return f?(i&&!l[i]&&(f=ur(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:o.useVariable?`var(${l.var})`:`rgb(${f})`):o.useVariable?`var(${l.var})`:l.value},ht=(t,e,r)=>{let o=r||A();if(e||(e=o.globalTheme==="auto"?null:o.globalTheme),!w(t)){o.verbose&&console.warn(t,"- type for color is not valid");return}if(et(t))return`var(${t})`;let n;if(T(t))n=t[0];else{let l=Ue(t);if(!l)return t;if(l.passthrough)return l.passthrough;if(l.cssVar)return`var(${l.cssVar})`;n=l.name}let{color:s,gradient:i}=o,a=s[n]||i[n],c=S(a);if(c&&a.value)return X(t,`@${e}`,r);if(c){if(o.useVariable&&a.var)return`var(${a.var})`;if(e)return X(t,`@${e}`,r);{let l={};for(let f in a){if(f.charCodeAt(0)!==64)continue;let p=o.media[f.slice(1)];if(!p)continue;let u="@media "+(p==="print"?`${p}`:`screen and ${p}`);l[u]=X(t,f,r)}return l}}else return o.verbose&&console.warn("Can't find color",t),t},gr=(t,e,r)=>{let o=A();if(w(t)&&et(t)){let g=t.slice(2);if(t=X(g),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=g.split(" "),y=o.color[m[0]];if(y&&!y.value&&!y.rgb&&(w(y)||T(y)||S(y))&&(o.color[m[0]]=gr(y,m[0]),y=o.color[m[0]]),y&&y.value){let b=y.rgb,x=m[1]!==void 0?m[1]:"1",_=m[2];_&&(b=ur(b,_)),t=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:"1";if(b)try{let _=ye(m[0]);_&&_.length>=3?t=`rgba(${ur(_.slice(0,3).join(", "),b)}, ${x})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(T(t)&&(t={"@light":t[0],"@dark":t[1]}),S(t)){let g={};for(let m in t)g[m]=gr(t[m],e,m.slice(0,1)==="@"?m.slice(1):m);if(o.useVariable){let y=`--${o.varPrefix?o.varPrefix+"-":""}color-${e}`,b,x={};for(let _ in g){if(_.charCodeAt(0)!==64)continue;let v=_.slice(1),E=g[_],P=E&&(E.value||E);!P||typeof P!="string"||(x[v]=P,(v==="light"||b===void 0)&&(b=P))}if(b!==void 0){o.cssVars[y]=b,o.cssMediaVars||(o.cssMediaVars={});for(let _ in x){let v=`[data-theme="${_}"]`;if(o.cssMediaVars[v]||(o.cssMediaVars[v]={}),o.cssMediaVars[v][y]=x[_],_==="light"||_==="dark"){let E=`@media (prefers-color-scheme: ${_})`;o.cssMediaVars[E]||(o.cssMediaVars[E]={}),o.cssMediaVars[E][y]=x[_]}}g.var=y}}return g}let s=`--${o.varPrefix?o.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;if(w(i)&&i.includes(".")&&!i.includes("(")){let[g,m]=i.split("."),y=o.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(w(i)&&!i.includes("(")&&!i.startsWith("#")){let g=Ue(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=o.color[g.name];m&&!m.value&&!m.rgb&&(w(m)||T(m)||S(m))&&(o.color[g.name]=gr(m,g.name));let y=o.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=ur(b,g.tone));let x=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${x})`}}}let a=ye(i),[c,l,f,p=1]=a,u=parseFloat(p.toFixed(2)),d=`${c}, ${l}, ${f}`,h=`rgba(${d}, ${u})`;return o.useVariable&&(o.cssVars[s]=h),{var:s,rgb:d,alpha:u,value:h}},mr=(t,e,r)=>{let o=A();if(w(t)&&et(t)&&(t=X(t.slice(2))),T(t))return{"@light":mr(t[0],e,"light"),"@dark":mr(t[0],e,"dark")};if(S(t)){let i={};for(let a in t)i[a]=mr(t[a],e,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${o.varPrefix?o.varPrefix+"-":""}gradient-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=t.value||t),{var:s,value:t.value||t}};O();var GS=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"]),Kd=["color","Color","background","Background","fill","Fill","stroke","Stroke"],KS=t=>{for(let e=0;e<Kd.length;e++)if(t.includes(Kd[e]))return!0;return!1},cs=t=>{let e={},{state:r,media:o,helpers:n,...s}=t;return Object.keys(s).map(a=>{let l=["color","Color","background","border"].some(f=>a.includes(f));return e[a]=l?X(t[a]):t[a]}),e},xo=t=>(t.value||(t.value=cs(t)),t.value),Ma=(t,e)=>{let r=A();if(r.useVariable)return te(t,e);let o=r.theme;if(w(t)){let[n,s]=t.split(" "),i=o[n];if(i){if(!s&&!e)return xo(i);t=[n,s||e]}}if(L(t)&&t[1]){let n=t[0],s=t[1],{helpers:i,media:a,state:c}=o[n];if(a&&a[s])return xo(a[s]);if(i&&i[s])return xo(i[s]);if(c&&c[s])return xo(c[s])}else if(S(t))return cs(t)},YS=(t,e,r)=>{if(S(e))t.variants.inverse.value=cs(e);else if(e===!0){let{color:o,background:n}=r;t.variants.inverse={value:{color:n,background:o}}}},XS=(t,e,r,o)=>{let n=Ma(r);o[`&:${e}`]=n,S(r)&&!r.value&&(r.value=n)},ZS=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(n=>{let s=r[n];return XS(t,n,s,e),t}),t):void 0},JS=(t,e,r,o)=>{let n=Ma(r);o[`@media (prefers-color-scheme: ${e})`]=n,S(r)&&!r.value&&(r.value=n)},QS=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(n=>{let s=r[n];return(n==="dark"||n==="light")&&JS(t,n,s,e),n==="inverse"&&YS(t,s,e),t}),t):void 0},t_=(t,e)=>{let r=A(),{helpers:o}=t;return o?(Object.keys(o).map(s=>{let i=o[s];return w(i)?o[s]=r.theme[i]:xo(o[s]),t}),t):void 0},Na=(t,e)=>{let r=A();if(r.useVariable)return ja(t,e);let{state:o,media:n,helpers:s}=t,i=cs(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return ZS(t,i),QS(t,i),t_(t,i),{var:c,value:i,state:o,media:n,helpers:s}};var Da=(t,e,r)=>{let{cssVars:o}=r;r.cssMediaVars||(r.cssMediaVars={});let n=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===":")&&KS(l))for(let p in t){if(c.has(p))continue;let u=t[p]?.[l];if(u===void 0)continue;let d=X(u,`@${p}`);d!==void 0&&w(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!GS.has(d)&&c.add(p)}}for(let l of a){let f=l.slice(0,1),p=Object.values(t).some(u=>L(u?.[l]));if(f==="."&&p){let u=l.slice(1),d={};for(let h in t)L(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=Da(d,`${e}-${u}`,r)}else if(f===":"&&p){let u=l.replace(/^:+/,""),d={};for(let h in t)L(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=Da(d,`${e}-${u}`,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=X(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let x=`[data-theme="${m}"]`;if(n[x]||(n[x]={}),n[x][d]=b,m==="dark"||m==="light"){let _=`@media (prefers-color-scheme: ${m})`;n[_]||(n[_]={}),n[_][d]=b}}g!==void 0&&(o[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},ja=(t,e,r,o)=>{let n=A(),{cssVars:s}=n,i={value:t},a=!r&&!o;if(L(t)){if(a&&n.useVariable){let c={};for(let l in t)l.startsWith("@")&&L(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=Da(c,e,n);Object.assign(i,l)}}for(let c in t){let l=c.slice(0,1),f=t[c];if(l==="@"||l===":"||l==="."){let p=l==="@"&&c;i[c]=ja(f,e,c,o||p)}else if(!a){let p=X(f,o),u=[...new Set([o,r].filter(m=>m).map(m=>m.slice(1)))],d=u.length?"-"+u.join("-"):"",g=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}${d}-${c}`;n.useVariable?(n.useThemeSuffixedVars&&(s[g]=p),i[c]=`var(${g})`):i[c]=p,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(w(t)&&et(t)){let l=n.theme[t.slice(2)];return te(l,o)}return i},La=t=>{let e=A(),r={};for(let o in t){let n=o.slice(0,1);if(L(t[o])){if(n==="@")continue;n===":"?r[`&${o}`]=La(t[o]):n==="."&&(r[`&${o}`]=La(t[o]))}else r[o]=t[o]}return r},Xd=(t,e)=>{let r=e.shift();return t[r]?Xd(t[r],e):t},Yd=(t,e)=>T(e)?Xd(t,e):w(e)&&t[e]?t[e]:t;var te=(t,e)=>{let r=A();if(w(t)&&et(t)&&(t=te(t.slice(2))),!t||!w(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[o,...n]=T(t)?t:t.split(" "),s=r.theme[o];return s&&n.length?s=Yd(s,n):s&&e&&(s=Yd(s,e)),La(s)};O();O();var Ba=(t,e)=>{let r=A(),o=`--font-${e}`;if(!t||T(t)&&!t[0])return;let n;if(t.isVariable){let s=Qt(t.url,r.files)||t.url;rs(s)?n=os(s):n=pr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])n=yo(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;n=pr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:o,value:t,fontFace:n}},Va=(t,e)=>{let r=A(),{fontFamily:o}=r;return mo(e||o,t)},ls=(t,e)=>{let r=A(),{fontFamily:o,fontFamilyTypes:n}=r,{value:s,type:i}=t;t.isDefault&&(o.default=e),S(s)&&(s=lr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${n[i]}`;return{var:a,value:c,arr:s,type:i}};O();var Zd=t=>{let e=A(),{typography:r,media:o}=e;for(let n in t){let s=n.slice(0,1)==="@",i=t[n];if(!s)continue;let{mediaRegenerate:a}=t,c=n.slice(1),{type:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:h,unit:g}=t;Z(i,{type:l,base:f,ratio:p,range:u,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,x=o[c],_="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+b},!a){Z(i,{sequence:{},scales:{},vars:{}}),Bt(i),dr(t,n);continue}Z(i,{sequence:{},scales:{},templates:{},vars:{}}),Bt(i),dr(t,n)}},Jd=t=>{let e=A();if(t.h1Matches){let r=t.unit,o=Ia(t),{templates:n}=t;for(let s in o){let i=`h${parseInt(s)+1}`,a=n[i];n[i]={fontSize:e.useVariable?`var(${o[s]?.variable})`:`${o[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}}}},za=()=>{let t=A(),{typography:e}=t;Bt(e),Jd(e),qe(e),Zd(e)},Ua=t=>{let e=A(),{typography:r}=e;return _e(t,"fontSize",r)};O();O();var e_=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:n,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;Z(r,{type:n,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Bt(r),dr(t,e)}},Wa=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),o=e.includes("border")||e.includes("outline");return r&&!o},Ha=()=>{let t=A(),{spacing:e}=t;Bt(e),qe(e),e_(e)},r_=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Bt(t)},at=(t,e="padding",r,o)=>{let n=r_(r);if(w(t)&&!o&&t.includes("(")){let i=He(t);o=i[0],t=i[1]}let s=o?[t]:lr(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)=>_e(s[f],e+l+i,n,o);return a[s.length].map((l,f)=>c(l,f))}return _e(t,e,n,o)}},le=(t,e,r,o)=>{let n=A(),{spacing:s}=n,i=r||t[e];if(!o&&w(i)&&i.includes("(")){let a=He(i);o=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return at(i,e,a,o)}return at(i,e,s,o)},qa=t=>{let e=r=>{let o=["+","-","*","/"].includes(r),n=zr.some(i=>t.includes(i));return o||n?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(" ")};O();var yr=(t,e,r,o)=>{let n=A();if(T(t))return{"@light":yr(t[0],e,"light"),"@dark":yr(t[1],e,"dark")};if(S(t)){let a={};for(let c in t)a[c]=yr(t[c],e,c.startsWith("@")?c.slice(1):c);return a}w(t)&&!ce.test(t)&&(t=fr(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=X(c);if(be(l))return l;if(/^\d/.test(c)||c==="0"||c.includes("px")||c.slice(-2)==="em"||c==="inset"||c==="none")return c;let f=at(c,"shadow");return f&&f.shadow?f.shadow:c}).join(" "))).join(", "));let i=`--${n.varPrefix?n.varPrefix+"-":""}shadow-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[i]=t),{var:i,value:t}},Ga=(t,e)=>{let r=A();if(e||(e=r.globalTheme),!w(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(et(t))return`var(${t})`;let[o]=T(t)?t:t.split(" "),s=r.shadow[o],i=S(s);if(!s)return r.verbose&&console.warn("Can't find color ",o),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};O();var Ka=()=>{let t=A(),{timing:e}=t;Bt(e),qe(e)},ee=t=>{let e=A(),{timing:r}=e;return r[t]||r[Zn(t)]||t},Vt=(t,e="timing")=>{let r=A(),{timing:o}=r;return _e(t,e,o)};O();var Ya=()=>{let t=A(),{document:e,fontFamily:r,theme:o,typography:n}=t;return Z(e,{theme:o.document,fontFamily:mo(r),fontSize:n.base,lineHeight:n.lineHeight})};O();var Za={document:q},fs=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?Fa(e,t):t},Ja=(t,e=Za)=>{let r=A(),o=Object.keys(t).length?{}:r.svg;for(let n in t)o[n]=t[n];th(o,e)},Qa=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?fs(t,e):t},tc=(t,e=Za)=>{let r=A(),o=Object.keys(t).length?{}:r.icons;for(let n in t)o[n]=t[n];th(o,e)},Xa=(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},o_=(t,e)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let o=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new r().parseFromString(o,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},Qd=(t,e,r)=>{for(;e.firstChild;){let o=e.firstChild;r.appendChild(t.importNode(o,!0)),o.remove()}},th=(t,e=Za)=>{let r=A(),o=e.document||q;if(!o||!o.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),as(t);let n=o.querySelector("#svgSprite"),s=as(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=o_(o,s);if(n)if(a)Qd(o,a,n);else if(o.body.insertAdjacentHTML)n.insertAdjacentHTML("beforeend",s);else{let c=Xa(o,{isRoot:!1});c.innerHTML=s,n.append(...c.children)}else if(a){let c=Xa(o);c&&c.nodeType&&(Qd(o,a,c),o.body.prepend(c))}else if(o.body.insertAdjacentHTML)o.body.insertAdjacentHTML("afterbegin",i);else{let c=Xa(o);c&&c.nodeType&&(c.innerHTML=s,o.body.prepend(c))}};O();var ec=(t={})=>{let e=A(),{reset:r,typography:o,document:n}=e;if(r){if(r[":root"]){let c=r,l=o.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}=o.templates,a=e.useDocumentTheme?te("document"):{};if(r.html&&wt(r.html,a),o.unit){let{media:c}=e;for(let l in o){if(l.charAt(0)!=="@")continue;let f=o[l];if(!f||f.unit===o.unit||!f.unit)continue;let p=f.unit,u=f.base||o.base,d=f.browserDefault||o.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=u/d+p}}return W(Z(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:o.unit?o.base/o.browserDefault+o.unit:o.browserDefault+"px",fontFamily:n.fontFamily,lineHeight:n.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:n.fontFamily,fontSize:o.base/o.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}})}};O();var n_=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),s_=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),i_=t=>n_.has(t),we=t=>{let e=t+"";if(ce.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(et(n))return`var(${n})`;if(i_(n)||/^\d/.test(n)||n==="0")return n;let s=X(n);if(be(s))return s;let i=at(n,"border");return i&&i.border?i.border:n}).join(" ")},eh=t=>ce.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(et(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=X(e);return be(r)?r:e}).join(" "),rh=(t,e)=>Ga(t,e),rc=(t,e)=>ce.test(t)?t:fr(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(et(o))return`var(${o})`;if(o==="inset"||o==="none")return o;let n=X(o);if(be(n)){let i=ht(o,e);return S(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(o)||o==="0"||o.includes("px")||o.slice(-2)==="em")return o;let s=at(o,"shadow");return s&&s.shadow?s.shadow:o}).join(" "):"")).join(", "),oc=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let o=t.slice(0,r+1),n=t.slice(r+1,t.lastIndexOf(")")),s=")",a=fr(n).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||s_.has(f)||f==="transparent"||ce.test(f))return f;let p=X(f);return be(p)?p:f}).join(" ")));return o+a.join(", ")+s},oh=(t,e)=>{let r=A();return t.split(", ").map(o=>et(o)?`var(${o})`:o.includes("url")?o:o.includes("gradient")?oc(o,e):r.gradient[t]?{backgroundImage:ht(t,e||r.globalTheme)}:o.includes("/")||o.startsWith("http")||o.includes(".")&&!Ue(o)?`url(${o})`:o).join(" ")},nh=t=>w(t)&&t.split(" ").map(e=>at(e,"gap").gap).join(" "),a_=t=>{let e=t.split(" ");return e.length?e.map(r=>et(r)?`var(${r})`:r.length<3||r.includes("ms")?Vt(r).timing||r:ee(r)?ee(r):r).join(" "):t},nc=(t,e,r)=>{if(w(t))return t.split(",").map(o=>Vt(o).timing||o).join(",")},sh=t=>{let e=t.split(",");if(e.length)return e.map(a_).join(",")};function rt(t,e,r={},o={}){let n=G.call(this,e||r[t]);if(n==null)return;let s;if(w(n)){if(n.includes("(")){let c=He(n);s=c[0],n=c[1]}let i=r.scaleBoxSize,a=Wa(t);!i&&a&&!o.ratio&&(n=qa(n))}return o.ratio?le(r,t,n,s):at(n,t,void 0,s)}var M=(t,e=null,r)=>rt(t,e,r,{ratio:!0}),sc=(t,e,r)=>{if(w(t))return{borderRadius:t.split(" ").map((o,n)=>le(e,r,o)[r]).join(" ")}};O();var c_=(t,e)=>{let r=A(),{cssVars:o}=r,n=e.startsWith("--")?e:`--${e}`;return o[n]=t,t},Ot=t=>t,ih={color:gr,gradient:mr,font:Ba,fontFamily:ls,fontfamily:ls,theme:Na,icons:Qa,semanticIcons:Ot,semanticicons:Ot,svg:fs,svgData:Ot,typography:Ot,shadow:yr,spacing:Ot,media:Ot,grid:Ot,class:Ot,timing:Ot,reset:Ot,unit:Ot,animation:Ot,vars:c_},l_=(t,e,r)=>{let o=A(),n=va(t),s=n.toLowerCase(),i=o[n]||o[s]||o[t],a=ih[n]||ih[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){o.verbose&&console.warn("Error setting",s,"value",e,r,c)}o.verbose&&console.warn("Can not find",s,"method in scratch")},f_=(t,e)=>{let r=A(),o=t.toLowerCase();return Object.keys(e).sort((s,i)=>{let a=S(e[s])||T(e[s])?1:0,c=S(e[i])||T(e[i])?1:0;return a-c}).forEach(s=>{try{return l_(o,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",o,"value",e[s],s,i)}}),r[o]||r[t]},ah=(t,e)=>{let r=e||A();r.globalTheme=t;let n=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=n&&n.defaultView||(typeof window<"u"?window:null);if(n){let a=r.themeRoot||n.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=p=>{a.setAttribute("data-theme",p.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(n&&r.cssVars){let a=r.scopeSelector||":root",c=n.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let p=0;p<f.length;p++)if(f[p].selectorText===a){for(let u in r.cssVars)f[p].style.setProperty(u,r.cssVars[u]);return r}}catch{}}return r},u_={},So=(t,e=u_)=>{let r=e.config||A(),{version:o,verbose:n,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:p,useDocumentTheme:u,useDefaultConfig:d,semanticIcons:h,files:g,assets:m,...y}=t;e.newConfig&&(r=Bd(e.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),n!==void 0&&(r.verbose=n),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),u!==void 0&&(r.useDocumentTheme=u),f!==void 0&&(r.globalTheme=f),p!==void 0&&(r.themeRoot=p),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 x=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),_=x&&x.defaultView||(typeof window<"u"?window:null),v=x&&(r.themeRoot||x.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(_&&_.matchMedia){let D=V=>{v.setAttribute("data-theme",V.matches?"dark":"light")},Q=_.matchMedia("(prefers-color-scheme: dark)");if(D(Q),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=D;try{Q.addEventListener("change",D)}catch{Q.addListener(D)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let E=Object.keys(y),P=new Set(E);if(E.forEach(R=>{let D=R.toLowerCase();D!==R&&P.has(D)&&W(y[D],y[R])}),E.map(R=>{let D=R.toLowerCase();if(!(D!==R&&P.has(D)))return f_(R,y[R])}),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{za()}catch(R){r.verbose&&console.warn("Error applying typography sequence",R)}if(y.spacing)try{Ha()}catch(R){r.verbose&&console.warn("Error applying spacing sequence",R)}if(y.timing)try{Ka()}catch(R){r.verbose&&console.warn("Error applying timing sequence",R)}Ya();let B=ec();return B&&(r.reset=B),r};var br=new Map,p_=null,ac=null,d_=null;function cc(t){t.batchAtomicCss&&(ac=t.batchAtomicCss),t.compoundCssClass&&(d_=t.compoundCssClass)}var h_=new Set;function g_(t){try{let e=A();e&&(e.document=t)}catch{}t&&h_.add(t)}function uh(){try{let t=A();if(t?.document)return t.document}catch{}return typeof document<"u"?document:null}var m_={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 Ge(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function ps(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 y_(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():ps(e)}function ch(t,e,r){let o=(r?r+"":"")+t+":"+e,n=br.get(o),s=n?null:Ge(t);if(!n){let a=m_[t]||ps(t),c=y_(e);n=r?`_${r}_${a}-${c}`:`_${a}-${c}`,br.set(o,n)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return n;let i=`.${n}{${s||Ge(t)}:${e}}`;return Rt(i),n}var lh=new WeakMap;function Rt(t,e){let r=ph(e);if(!r)return;let o=lh.get(r);if(o||(o=new Set,lh.set(r,o)),!o.has(t)){o.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var fh=new WeakMap;function ph(t){let e=t||uh();if(!e||!e.head)return null;let r=fh.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let o=e.head.querySelector("style[data-smbls]");o||(o=e.createElement("style"),o.setAttribute("data-smbls",""),e.head.appendChild(o));let n=o.sheet;return fh.set(e,n),p_=n,n}var b_=8;function Ke(t,e,r){if(!t||typeof t!="object")return"";let o=null,n=0,s=[];for(let i in t){let a=t[i];a==null||a===!1||a===""||(typeof a=="object"?s.push(x_(i,a,r)):ac?(o||(o=[]),o.push(i,String(a)),n++):s.push(ch(i,String(a),r)))}if(o&&n>=b_){let i=o.join("\0"),a=ac(i),c=a.indexOf("\0"),l=a.substring(0,c),f=a.substring(c+1);if(f){let p=f.split(`
35
+ `);for(let u=0;u<p.length;u++)p[u]&&Rt(p[u])}if(s.length>0)s.push(l);else return l}else if(o)for(let i=0;i<o.length;i+=2)s.push(ch(o[i],o[i+1],r));return s.join(" ")}var ic=new Map;function x_(t,e,r){let o=(r?r+"":"")+t+JSON.stringify(e),n=br.get(o);if(n){let u=ic.get(n);if(u)for(let d=0;d<u.length;d++)Rt(u[d]);return n}n=r?`_${r}_c${ps(o)}`:`_c${ps(o)}`;let s="",i=[],a=u=>typeof u=="string"&&(u.indexOf("{")!==-1||u.indexOf("}")!==-1),c=(u,d)=>{let h="";for(let g in d){let m=d[g];if(m!=null)if(typeof m=="object")c([...u,g],m);else{if(a(m))continue;h+=`${Ge(g)}:${m};`}}h&&(u.length===0?s+=h:i.push({chain:u,body:h}))};c([],e);let l=u=>{if(!u.length)return`.${n}`;let d=u[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${n}`):h.startsWith(":")?`.${n}${h}`:`.${n} ${h}`);for(let h=1;h<u.length;h++){let g=u[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 u=`${t}{.${n}{${s}}}`;f.push(u),Rt(u)}for(let u of i){let d=l(u.chain),h=`${t}{${d}{${u.body}}}`;f.push(h),Rt(h)}return ic.set(n,f),br.set(o,n),n}let p=l([t]);if(s){let u=`${p}{${s}}`;f.push(u),Rt(u)}for(let u of i){let h=`${l([t,...u.chain])}{${u.body}}`;f.push(h),Rt(h)}return ic.set(n,f),br.set(o,n),n}function ot(t){if(ph(),typeof t=="string"){Rt(t);return}let e=Object.keys(t),r=o=>{let n=o.match(/max-width:\s*(\d+)/);return n?parseInt(n[1]):0};e.sort((o,n)=>{let s=o.startsWith("@media"),i=n.startsWith("@media");return!s&&!i?0:s?i?r(n)-r(o):1:-1});for(let o of e){let n=t[o];if(o.startsWith("@media")||o.startsWith("@supports"))for(let s in n){let i=n[s];if(typeof i=="object"&&i!==null){let a="";for(let c in i){let l=c.startsWith("--")?c:Ge(c);a+=`${l}:${i[c]};`}Rt(`${o}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Ge(s);Rt(`${o}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in n){let c=n[a];if(typeof c=="object"&&c!==null)i=!0;else{let l=a.startsWith("--")?a:Ge(a);s+=`${l}:${c};`}}if(s&&Rt(`${o}{${s}}`),i){let a=[],c=[];for(let l in n)typeof n[l]=="object"&&n[l]!==null&&(l.startsWith("@media")||l.startsWith("@supports")?a.push(l):c.push(l));a.sort((l,f)=>{let p=u=>{let d=u.match(/max-width:\s*(\d+)/);return d?parseInt(d[1]):0};return p(f)-p(l)});for(let l of c)ot({[`${o} ${l}`]:n[l]});for(let l of a)ot({[l]:{[o]:n[l]}})}}}}function ds(t,e){let r="";for(let o in e){let n="";for(let s in e[o])n+=`${Ge(s)}:${e[o][s]};`;r+=`${o}{${n}}`}return Rt(`@keyframes ${t}{${r}}`),t}function S_(){return br.size}O();var lc="http://www.w3.org/2000/svg",ms=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"]),__=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 hs(t){return __.has(t)||ms.has(t)}function ys(t){return ms.has(t)}function xr(t){let{tag:e,key:r}=t;if(typeof e=="function"&&(e=e(t)),e===!0&&(e=r),typeof e=="string"&&hs(e))return e;if(!r||typeof r!="string")return"div";let o=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),n=r.toLowerCase();return n.includes(".")&&(n=n.split(".")[0]),n.includes("_")&&(n=n.split("_")[0]),hs(n)&&!o.has(n)?n:"div"}var dh={};function gs(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(ys(t)){let o=e?.parent;if(t==="svg"||o?.node?.namespaceURI===lc)return r.createElementNS(lc,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function Sr(t){let e=t.tag=xr(t),o=ys(e)&&(e==="svg"||t.parent?.node?.namespaceURI===lc)?"svg:"+e:e,n=t?.context?.document||globalThis.document,s=dh[o];if(s||(s=dh[o]=gs(e,t)),!s)return null;let i=n&&s.ownerDocument!==n?gs(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var Ct=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"]),hh={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},_r=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"]),gh=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),bs=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 fc=new WeakMap,w_={passive:!0},k_={passive:!0,capture:!0},uc=(t,e)=>gh.has(t)?e?k_:w_:e||!1;function yh(t){let e=fc.get(t);return e||(e={handlers:new Map,installed:new Set},fc.set(t,e)),e}function v_(t,e){let r=yh(e);if(r.installed.has(t))return;r.installed.add(t);let o=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave",n=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(n&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},uc(t,o))}function pc(t,e,r,o){o||(o=e.ownerDocument?.documentElement||e.getRootNode());let n=yh(o);v_(t,o),n.handlers.has(t)||n.handlers.set(t,new WeakMap),n.handlers.get(t).set(e,r)}function dc(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let o=fc.get(r);if(!o)return;let n=o.handlers.get(t);n&&n.delete(e)}function mh(t){return bs.has(t)&&!_r.has(t)}function xs(t,e,r){let{node:o,context:n}=e;if(!o)return;let s=n?.designSystem,i=a=>{s&&ft(s);try{let c=r.call(e,a,e,e.state,n);if(c&&typeof c.then=="function"){c.catch(l=>{e.error=l,console.error("[DOMQL] Async event error:",l)}).finally(()=>{s&&lt()});return}}catch(c){if(e.error=c,console.error("[DOMQL] Event error:",c),n?.strictMode)throw c}s&&lt()};if(mh(t)){let a=n?.rootNode||o.ownerDocument?.documentElement;pc(t,o,i,a)}else o.addEventListener(t,i,uc(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(mh(t)){let a=n?.rootNode||o.ownerDocument?.documentElement;dc(t,o,a)}else o.removeEventListener(t,i,uc(t,!1))})}function bh(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 Ss(t,e,r){let o=bh(e);if(!o.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<o.length;i++){let a=xh(o[i],s);a&&a!==e&&Sh(t,a,r,new Set([e]))}}function xh(t,e){if(typeof t=="string"){if(t.includes(">")){let r=t.split(">").map(n=>n.trim()),o=e[r[0]]||e[`smbls.${r[0]}`];for(let n=1;n<r.length&&o;n++)o=o[r[n]];return o||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function Sh(t,e,r,o=new Set){if(o.has(e))return;o.add(e);let n=bh(e);if(n.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<n.length;a++){let c=xh(n[a],i);c&&Sh(t,c,r,o)}}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]=_h(t[s],i):t[s]=i}}function _h(t,e){let r={...t};for(let o in e){let n=r[o],s=e[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=_h(n,s):r[o]=s}return r}ir();function _s(t={},e={}){let r=this,o=r.__ref;if(o){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&&pt(r.state)&&r.state.update(t.state),t.text!==void 0&&(r.text=t.text,!o.__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,!o.__exec.html&&r.node&&(r.node.innerHTML=t.html)),t.style&&r.node?.style){if(!o.__exec.style)for(let n in t.style){let s=t.style[n];if(s==null)continue;let i=n.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 n in t.attr){let s=t.attr[n];s==null||s===!1?r.node.removeAttribute(n):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(n,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let n in t.data)r.node.dataset[n]=t.data[n];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let n in t){if(Ct.has(n)||n==="state")continue;let s=t[n],i=r[n];if(i&&i.__ref&&typeof i.update=="function")i.update(s,e);else if(typeof s=="object"&&s!==null){let a=n.charCodeAt(0);a>=65&&a<=90&&zt(s,r,n,e)}else n!=="text"&&n!=="html"&&n!=="style"&&n!=="attr"&&n!=="data"&&(r[n]=s)}}),r.node&&o.__conditionalRunners)for(let n of o.__conditionalRunners)n();return Yt("update",r),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}}function wr(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 o=e.__children[r],n=t[o];n&&n.__ref&&wr(n)}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 ws(){wr(this)}O();O();var C_=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],A_=["none","forwards","backwards","both"],E_=["normal","reverse","alternate","alternate-reverse"],T_=["running","paused"],O_=t=>/^[\d.]+m?s$/.test(t),R_=0,hc=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(S(t)){let n=`smbls-anim-${R_++}`;return{animationName:ds(n,t)}}let o=r&&r[t];return S(o)?ds(t,o):t},P_=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},o=t.split(/\s+/),n=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let p of o)r&&r[p]?n=p:O_(p)?s.push(p):C_.includes(p)||p.startsWith("cubic-bezier")||p.startsWith("steps(")?i=p:p==="infinite"||/^\d+$/.test(p)?a=p==="infinite"?p:Number(p):E_.includes(p)?c=p:A_.includes(p)?l=p:T_.includes(p)?f=p:n||(n=p);return{name:n,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},wh={animation:(t,e)=>{if(w(t)&&t.includes(" ")){let r=P_(t,e);return{animationName:hc(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||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:hc(t,e),animationDuration:Vt(e.animationDuration||"A").timing,animationDelay:Vt(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:hc(t,e)}),animationDuration:t=>({animationDuration:Vt(t).timing}),animationDelay:t=>({animationDelay:Vt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:ee(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};O();var kh={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>M("height",t,e),width:(t,e)=>M("width",t,e),boxSizing:t=>ct(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("height",e),...rt("width",r||e)}},inlineSize:(t,e)=>M("inlineSize",t,e),blockSize:(t,e)=>M("blockSize",t,e),minWidth:(t,e)=>M("minWidth",t,e),maxWidth:(t,e)=>M("maxWidth",t,e),widthRange:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("minWidth",e),...rt("maxWidth",r||e)}},minHeight:(t,e)=>M("minHeight",t,e),maxHeight:(t,e)=>M("maxHeight",t,e),heightRange:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("minHeight",e),...rt("maxHeight",r||e)}},size:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...M("inlineSize",e),...M("blockSize",r||e)}},minBlockSize:(t,e)=>M("minBlockSize",t,e),minInlineSize:(t,e)=>M("minInlineSize",t,e),maxBlockSize:(t,e)=>M("maxBlockSize",t,e),maxInlineSize:(t,e)=>M("maxInlineSize",t,e),minSize:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("minInlineSize",e),...rt("minBlockSize",r||e)}},maxSize:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("maxInlineSize",e),...rt("maxBlockSize",r||e)}},borderWidth:(t,e)=>M("borderWidth",t,e),padding:(t,e)=>M("padding",t,e),scrollPadding:(t,e)=>M("scrollPadding",t,e),paddingInline:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("paddingInlineStart",e),...rt("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("paddingBlockStart",e),...rt("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>M("paddingBlockStart",t,e),paddingBottom:(t,e)=>M("paddingBlockEnd",t,e),paddingLeft:(t,e)=>M("paddingInlineStart",t,e),paddingRight:(t,e)=>M("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>M("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>M("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>M("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>M("paddingInlineEnd",t,e),margin:(t,e)=>M("margin",t,e),marginInline:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("marginInlineStart",e),...rt("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!w(e.marginBlock))return;let[r,o]=e.marginBlock.split(" ");return{...rt("marginBlockStart",r),...rt("marginBlockEnd",o||r)}},marginTop:(t,e)=>M("marginBlockStart",t,e),marginBottom:(t,e)=>M("marginBlockEnd",t,e),marginLeft:(t,e)=>M("marginInlineStart",t,e),marginRight:(t,e)=>M("marginInlineEnd",t,e),marginInlineStart:(t,e)=>M("marginInlineStart",t,e),marginInlineEnd:(t,e)=>M("marginInlineEnd",t,e),marginBlockStart:(t,e)=>M("marginBlockStart",t,e),marginBlockEnd:(t,e)=>M("marginBlockEnd",t,e),gap:t=>({gap:nh(t)}),columnGap:(t,e)=>le(e,"columnGap",t),rowGap:(t,e)=>le(e,"rowGap",t),flexWrap:t=>({display:"flex",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!w(t))return;let[o,n]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&r?"-reverse":"")+" "+(n||"")}},flexAlign:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,e)=>sc(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>sc(t??e.round,e,"borderRadius")};var vh={fontSize:t=>Ua(t)||t,fontFamily:t=>({fontFamily:Va(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Ch={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,o)=>{if(!t)return;let n=o.assets&&o.assets[t];if(n&&n.content)t=`url(${n.content.src})`;else{let s=o.files&&o.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 Ah={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>at(r,"k").k).join(" ")}},left:t=>at(t,"left"),top:t=>at(t,"top"),right:t=>at(t,"right"),bottom:t=>at(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(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=>at(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};O();var Ut=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Eh={theme:(t,e)=>{if(t)return e.themeModifier?te(t,`@${e.themeModifier}`):te(t)},color:(t,e)=>{let r=Ut(e);if(t)return{color:ht(t,r)}},background:(t,e)=>{let r=Ut(e);if(t)return w(t)&&t.includes("gradient")?{background:oc(t,r)}:{background:ht(t,r)}},backgroundColor:(t,e)=>{let r=Ut(e);if(t)return{backgroundColor:ht(t,r)}},backgroundImage:(t,e,r,o)=>{let n=Ut(e);if(!t)return;let s=o.assets&&o.assets[t];if(s&&s.content)t=s.content.src;else{let i=o.files&&o.files[t];i&&i.content&&(t=i.content.src)}return{backgroundImage:oh(t,n)}},textStroke:t=>({WebkitTextStroke:eh(t)}),outline:t=>({outline:we(t)}),outlineOffset:(t,e)=>M("outlineOffset",t,e),border:t=>({border:we(t)}),borderColor:(t,e)=>{let r=Ut(e);if(t)return{borderColor:ht(t,r)}},borderTopColor:(t,e)=>{let r=Ut(e);if(t)return{borderTopColor:ht(t,r)}},borderBottomColor:(t,e)=>{let r=Ut(e);if(t)return{borderBottomColor:ht(t,r)}},borderLeftColor:(t,e)=>{let r=Ut(e);if(t)return{borderLeftColor:ht(t,r)}},borderRightColor:(t,e)=>{let r=Ut(e);if(t)return{borderRightColor:ht(t,r)}},borderLeft:t=>({borderLeft:we(t)}),borderTop:t=>({borderTop:we(t)}),borderRight:t=>({borderRight:we(t)}),borderBottom:t=>({borderBottom:we(t)}),shadow:(t,e)=>{let r=Ut(e);if(t)return{boxShadow:rh(t,r)}},boxShadow:(t,e)=>{if(!w(t))return;let[r,o]=t.split("!importan"),n=Ut(e),s=o?" !important":"";return{boxShadow:rc(r.trim(),n)+s}},textShadow:(t,{context:e})=>({textShadow:rc(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:we(t)})};var ks={transition:t=>({transition:sh(t)}),transitionDuration:t=>({transitionDuration:nc(t)}),transitionDelay:t=>({transitionDelay:nc(t)}),transitionTimingFunction:t=>({transitionTimingFunction:ee(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};O();var Th={flow:(t,e)=>{let r=e.reverse;if(!w(t))return;let[o,n]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&r?"-reverse":"")+" "+(n||"")}},wrap:(t,e)=>({display:"flex",flexWrap:t}),align:(t,e)=>{let[r,o]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:o}}};var Oh={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 nt={...wh,...kh,...vh,...Ch,...Ah,...Eh,...ks,...Th,...Oh};var gt=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"]);O();var I_=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,$_=(t,e,r)=>{let{context:o}=r;if(!o.designSystem?.media)return;let n=t.slice(1),s=o.designSystem.media[n],i=Pt(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(I_),c=a?a[1]||a[2]:n,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=o.designSystem?.scopeSelector||":root",p=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${p} &`]:i}}return l},Rh=(t,e,r)=>({[t]:Pt(e,r)}),_o=(t,e,r)=>{let o=`&${t}`,n=Pt(e,r);if(t.includes(",")&&n){let s={},i={};for(let a in n)typeof n[a]=="object"&&n[a]!==null?i[a]=n[a]:s[a]=n[a];if(Object.keys(i).length){let a=o.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[o]=s);for(let l in i){let f=a.map(p=>`${p} ${l}`).join(", ");c[f]=i[l]}return c}}return{[o]:n}},gc=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},F_=(t,e,r)=>{let o=t.slice(1),n=gc(o,r);if(n===void 0&&(n=!!r[o]),!!n)return Pt(e,r)},D_=(t,e,r)=>({[t]:e}),L_=(t,e,r)=>{let o=t.slice(1),n=r[o]===!0||r.state?.[o];if(!n)if(typeof r[o]=="function")try{n=r[o](r,r.state,r.context)}catch{}else{let s=gc(o,r);s!==void 0&&(n=s)}if(n)return Pt(e,r)},M_=(t,e,r)=>{let o=t.slice(1),n=r[o]===!0||r.state?.[o];if(!n)if(typeof r[o]=="function")try{n=r[o](r,r.state,r.context)}catch{}else{let s=gc(o,r);s!==void 0&&(n=s)}if(!n)return Pt(e,r)},Ph=(t,e)=>Pt(t,e),Ih={"@":$_,":":_o,"[":_o,"*":_o,"+":_o,"~":_o,"&":Rh,">":Rh,$:F_,"-":D_,".":L_,"!":M_};var mc=Me(),N_=(t,e,r)=>{let o=e?.context?.designSystem;o&&ft(o);try{let n={},s={},i=(a,c)=>{if(r.unpack){n={...n,...c};return}n[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,p=l.reduce((u,d)=>Z(u,f[d]),{});n.designSystemClass=p}}else if(a==="true"){let l=G(c,e);Z(n,Ph(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),!mc&&S(n[a])&&(n[a].label=a)}else if(nt[a]){let l=G(c,e);T(l)&&(l=l.reduce((p,u)=>Z(p,u),{}));let f=nt[a](l,e,e.state,e.context);T(f)&&(f=f.reduce((p,u)=>Z(p,u),{})),f&&i(a,f),!mc&&S(n[a])&&(n[a].label=a)}else if(gt.has(a)){let l=G(c,e);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!mc&&S(n[a])&&(n[a].label=a)}else s[a]=c}return[n,s]}finally{o&&lt()}},j_=(t,e)=>{let r={};for(let o in t){let n=Ih[o.slice(0,1)];if(n){let s=n(o,t[o],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?wt(r[i],s[i]):r[i]=s[i])}}return r},Pt=(t,e,r={unpack:!0})=>{let[o,n]=N_(t,e,r),s=j_(n,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return sn(o,s);o._selectors=s}return o},ZT=(t,e)=>{let r={};if(t.class)for(let o in t.class)r[o]=t.class[o](e);return r};O();var B_=t=>{if(S(t))return Pt(t,t)},rO=(t,e)=>{let r=B_(t);return typeof e=="function"?e(r):Ke(r)};O();function Dh(t,e,r){let o=t?.context?.analyze;if(!o||!o.emit||e==="warn"&&!o.shouldCapture("warnings")||e==="error"&&!o.shouldCapture("errors"))return;let n=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");o.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:n||null,args:r})}function V_(...t){return Dh(this,"warn",t),zn.apply(this,t)}function z_(...t){return Dh(this,"error",t),cr.apply(this,t)}var $h={update:_s,remove:ws,getDB:qn,getQuery:Gn,getRootData:jn,getChildren:Fn,getPath:Dn,nextElement:Un,previousElement:Wn,verbose:fo,warn:V_,error:z_,variables:Hn,spotByPath:$n,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}},reset(t){let e=this.context?.__create;if(!e)return this;let r=this.parent,o=this.key,n=this.parse();return this.remove(),e(n,r,o,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 o=this[r];if(!o)continue;if(typeof t=="function"){if(t(o))return o}else if(typeof t=="string"&&o.key===t)return o;let n=o.lookdown?.(t);if(n)return n}return null},lookdownAll(t,e=[]){let r=this.__ref;if(!r?.__children)return e;for(let o of r.__children){let n=this[o];n&&(typeof t=="function"?t(n)&&e.push(n):typeof t=="string"&&n.key===t&&e.push(n),n.lookdownAll?.(t,e))}return e},getRef(){return this.__ref},getRoot:Nn,getRootState:Mn,getRootContext:Bn,getContext:Vn,parse(t){let e={},r=t?new Set(t):null,o=this.__ref?.__exec;for(let n in this)if(!(n==="parent"||n==="node"||n==="__ref")&&!r?.has(n)){if(o&&o[n]!==void 0){e[n]=o[n];continue}typeof this[n]!="function"&&(e[n]=this[n])}return e},parseDeep(t){let e=this.parse(t),r=this.__ref;if(r?.__children)for(let o of r.__children)this[o]?.parseDeep&&(e[o]=this[o].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 o=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),n=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(o,n,"important")}},call(t,...e){let r=this.context,o=r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof o=="function")return o.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)}},Fh=new WeakMap;function U_(t){if(!t)return $h;let e=Fh.get(t);if(e)return e;e=Object.create($h);let r=t.methods;if(r)for(let o in r)e[o]=r[o];return Fh.set(t,e),e}function vs(t){let e=U_(t.context);Object.setPrototypeOf(t,e)}O();ir();var W_=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Wt=(t,e)=>{if(pt(e)){let n=e.__raw||e;e.toggle||Object.defineProperty(n,"toggle",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(n,"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(n,"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(n,"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(n,"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(n,"reset",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"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(n,"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(n,"rootUpdate",{value:function(s,i={}){let a=e;for(;a?.parent&&pt(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"parentUpdate",{value:function(s,i={}){if(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"quietReplace",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(n,"root")||Object.defineProperty(n,"root",{get:function(){let s=e;for(;s?.parent&&pt(s.parent);)s=s.parent;return s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let r=()=>{for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]},o={update(n){if(!n||typeof n!="object")return e;for(let s in n)e[s]=n[s];return e},apply(n){if(typeof n!="function")return e;let s=n(e);return s?e.update(s):e},parse(){return{...e}},toggle(n){return e[n]=!e[n],e},set(n){if(!n||typeof n!="object")return e;r();for(let s in n)e[s]=n[s];return e},replace(n){return e.set(n)},clean(){return r(),e}};for(let n in o)typeof e[n]!="function"&&W_(e,n,o[n])};var H_=function(t,e,r){return t.state=Lh(t,e,r),t.state},Lh=function(t,e,r){let{__ref:o}=t,n=t.state;if(n==null||n===!1){let s=e?.state||{};return Wt(t,s),s}if(typeof n=="string")return o&&(o.__state=n),o.__stateType="string",q_(n,t,e);if(typeof n=="number"||typeof n=="boolean"){o&&(o.__state=n,o.__stateType=typeof n,o.__hasRootState=!0);let s=Mt({value:n});return s.__element=t,e?.state&&(s.parent=e.state),Wt(t,s),s}if(typeof n=="function"&&(n=n(t,e?.state)||{}),typeof n=="object"&&!pt(n)){o&&(o.__hasRootState=!0),n.isRootState&&o&&(o.__hasRootState=!0);let s=Mt({...n});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 pt(n)?(n.__element=t,n):e?.state||{}};function yc(t,e){if(!e)return t;let r=e.split("/"),o=t;for(let n of r){if(o==null)return{};o=o[n]}return o??{}}function q_(t,e,r){if(!r?.state)return{};if(t===".")return r.state;if(t.startsWith("../")){let n=t.slice(3),s=r.state?.parent;return n&&s?yc(s,n):s??r.state??{}}if(t.startsWith("~/")){let n=r.state;for(;n?.parent;)n=n.parent;let s=t.slice(2);return s?yc(n,s):n??{}}let o=yc(r.state,t);if(o&&typeof o=="object"&&!pt(o)&&!Object.getOwnPropertyDescriptor(o,"root")){let n=r.state?.root||r.state;Object.defineProperty(o,"root",{get:()=>n,enumerable:!1,configurable:!0})}return o}O();var SO=["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"],bc={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"]},G_=["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"],xc=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,Xe=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||xc(e)||bc.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(bc,t)?bc[t].includes(e):!1,Bh=t=>{if(!w(t))return!1;let e=t.toLowerCase();return G_.includes(e)},_O=(t,e,r)=>{let o={};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(r&&n in r)continue;if(n==="aria"&&e[n]&&typeof e[n]=="object"){for(let a in e[n])St(e[n][a])&&(o["aria-"+a]=e[n][a]);continue}if(n==="data"&&e[n]&&typeof e[n]=="object"){for(let a in e[n])if(St(e[n][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());o["data-"+c]=e[n][a]}continue}let s=Xe(t,n),i=Bh(n);if(St(e[n])&&(s||i)){let a=xc(n)||n;o[a]=e[n]}}return o},wO=(t,e)=>{let r={};if(t.attr)for(let o in t.attr)r[o]=t.attr[o](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let n=t.aria[o];typeof n=="function"&&(r["aria-"+o]=n(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let o in t.data){let n=t.data[o];if(typeof n=="function"){let s=o.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=n(e,e.state,e.context)}}return r},Ye=(t,e)=>{let r=t.call("exec",e,t);if(r)return w(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},Mh=(t,e)=>{let r=(t.preSrc||"")+(Ye(t,e)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:o}=t;if(!o.files&&!o.assets)return r;if(r.startsWith("/assets/")){let n=r.slice(8),s=o.assets&&(o.assets[r]||o.assets[n]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let n=r.slice(7),s=o.files&&(o.files[r]||o.files[n]);return s&&s.content?s.content.src:r}if(o.assets){let n=o.assets[r];if(n&&n.content)return n.content.src}if(o.files){let n=o.files[r];if(n&&n.content)return n.content.src}return r},Nh={src:t=>Mh(t,t.src),href:t=>Ye(t,t.href),action:t=>Ye(t,t.action),poster:t=>Mh(t,t.poster),data:t=>Ye(t,t.data)},Vh=t=>{let e=t.tag||"div",r={};for(let o in Nh)if(t[o]!==void 0&&Xe(e,o)){let n=Nh[o](t);n!==void 0&&(r[o]=n)}return r},jh=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},K_=(t,e,r)=>{if(t==="$"){let n=jh(e,r);return n===void 0&&(n=!!r[e]),n}let o=r[e]===!0||r.state[e];if(!o){let n=jh(e,r);n!==void 0&&(o=n)}return t==="."?!!o:!o},Y_=new Set(["$",".","!"]),kO=(t,e,r)=>{let o={},n=(s,i,a,c)=>{let l=i;o[s]=f=>{if(K_(a,c,f))return C(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!Y_.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])n("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());n("data-"+h,a[l][d],i,c)}continue}let f=Xe(e,l),p=Bh(l);if(!f&&!p)continue;let u=xc(l)||l;n(u,a[l],i,c)}}return o};var X_=1;function vr(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function Z_(t){return t.charAt(2).toLowerCase()+t.slice(3)}function J_(t){return t.toLowerCase()}function wc(t,e){let r={...t};for(let o in e){let n=r[o],s=e[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=wc(n,s):r[o]=s}return r}function zt(t,e,r,o={},n){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||`_${X_++}`,s.parent=e||null,s.context=t.context||e?.context||o.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})}}Ss(s,t,o);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]=wc(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],x=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";x&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=wc(b,y):x&&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,p=e?.scope,u=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,d=p||(u?Object.create(u):null);if(t.scope!==void 0||f){let g=d?Object.create(d):{};f&&Object.assign(g,f),t.scope!==void 0&&Object.assign(g,t.scope),s.scope=g}else d&&(s.scope=Object.create(d));if(t.if!==void 0&&(s.if=t.if),vs(s),Q_(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"&&kc(s,{if:t.if}),s;s.tag||(s.tag=xr(s)),ke("Init",s,o);let h=s.node=Sr(s);if(!h)return s;ke("AttachNode",s,o),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),kc(s,t),vc(s),Uh(s),Wh(s,o);try{Hh(s,o)}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?`
36
+ `+g.stack.split(`
37
37
  `).slice(0,6).join(`
38
- `):"")}}if($c(s,t,n),t&&(t[s.key]=s,t.__ref?.__children&&(t.__ref.__children.includes(s.key)||t.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML)try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}if(Ct("Create",s,o),Ct("Complete",s,o),Ct("Render",s,o),Ct("RenderRouter",s,o),typeof s.onFrame=="function"){let m=s.onFrame,g=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){g&&ue(g);try{m(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{g&&le()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function v_(e,t,r){let o=!t,n=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=o&&n&&e.context?.state,i=r.state!==void 0&&!s?r.state:e.state&&!he(e.state)?e.state:void 0;if(i==null){if(t?.state)e.state=t.state,Ge(e,e.state);else if(e.context?.state){let a=e.context.state,c={...a},l=e.context?.polyglot;if(l?.translations){let f=a.lang||l.defaultLang||"en",p=l.translations[f];if(p&&typeof p=="object")for(let d in p)c[d]===void 0&&(c[d]=p[d]);let u=new Set(l.languages||[]);for(let d in l.translations)!u.has(d)&&c[d]===void 0&&(c[d]=l.translations[d])}e.state=he(c)?c:Be(c),e.state.__element=e,e.state.root=e.state,Ge(e,e.state)}else e.state={},Object.defineProperty(e.state,"root",{value:e.state,enumerable:!1,configurable:!0,writable:!0}),Ge(e,e.state);return}if(typeof i=="string"){if(e.state=Tm(i,t),e.state&&typeof e.state=="object"&&!he(e.state)){let a=t?.state?.root||t?.state||e.state;Object.defineProperty(e.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}Ge(e,e.state);return}if(typeof i=="function"){let a=i(e,t?.state);e.state=Be(a||{})}else e.state=Be({...i});e.state.__element=e,t?.state?(e.state.parent=t.state,e.state.root=t.state.root||t.state):e.state.root=e.state,Ge(e,e.state)}function Ac(e,t){if(!t)return e;let r=t.split("/"),o=e;for(let n of r){if(o==null)return{};o=o[n]}return o??{}}function Tm(e,t){if(!t)return{};if(e===".")return t.state||{};if(e.startsWith("../")){let n=e.slice(3);return n?Ac(t.state,n):t.state??{}}if(e.startsWith("~/")){let n=t.state?.root||t.state,s=e.slice(2);return s?Ac(n,s):n??{}}if(t.state?.[e]!==void 0)return t.state[e];let r=Ac(t.state,e);if(r!=null&&Object.keys(r).length>0)return r;let o=t.context?.polyglot;if(o?.translations){let n=t.state?.root?.lang||o.defaultLang||"en",s=o.translations[n];if(s?.[e]!==void 0)return s[e];if(o.translations[e]!==void 0)return o.translations[e]}return{}}function S_(e){let t=e.__ref,r=e.tag||"div",o=e.context?.designSystem,n=[],s=Object.keys(e);for(let i=0;i<s.length;i++){let a=s[i];if(typeof e[a]!="function"||Ae.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Or(a)||se[a]||ye&&ye.has(a)||Jt(r,a)||n.push({prop:a,fn:e[a]})}for(let i=0;i<n.length;i++){let{prop:a,fn:c}=n[i];t.__exec[a]=c,Object.defineProperty(e,a,{get(){o&&ue(o);try{return c(e,e.state,e.context)}catch{return}finally{o&&le()}},set(l){delete t.__exec[a],Object.defineProperty(e,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Oc(e,t){let r=e.__ref;if(S_(e),typeof e.text=="function"){let n=e.text,s=ie(()=>{try{let i=n(e,e.state,e.context);e.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=or.call(e,i,e.state)),e.tag==="string"?e.node.nodeValue=i:e.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=n}else if(typeof e.text=="string"&&e.text.includes("{{")){let n=e.text,s=ie(()=>{let i=or.call(e,n,e.state);i!=null&&(e.text=i),e.node&&(e.tag==="string"?e.node.nodeValue=i??"":e.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=n}for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof e[n]=="function"&&!Ae.has(n)&&!Or(n)&&!r.__exec[n]){if(se[n]){let s=e[n],i=n,a=ie(()=>{let c=e.context?.designSystem;c&&ue(c);try{let l=s(e,e.state,e.context),f=se[i](l,e,e.state,e.context);f&&e.node?Tr(e.node,f):e.node&&(i==="show"||i==="hide")&&(e.node.style.display="")}finally{c&&le()}},{depth:r.path.length});r.__effects.push(a),r.__exec[n]=s}else if(ye&&ye.has(n)){let s=e[n],i=n,a=ie(()=>{let c=e.context?.designSystem;c&&ue(c);try{let l=s(e,e.state,e.context);e.node&&(l!=null?Tr(e.node,{[i]:l}):e.node.style[i]="")}finally{c&&le()}},{depth:r.path.length});r.__effects.push(a),r.__exec[n]=s}}if(typeof t.html=="function"){let n=t.html,s=ie(()=>{let i=n(e,e.state,e.context);e.node&&i!=null&&typeof i!="function"&&(e.node.innerHTML=i)},{depth:r.path.length});r.__effects.push(s),r.__exec.html=n}if(typeof t.value=="function"){let n=t.value,s=ie(()=>{try{let i=n(e,e.state,e.context);if(!e.node||!("value"in e.node))return;let a=i==null?"":String(i);if(e.node.value===a)return;let c=typeof document<"u"&&document.activeElement===e.node,l=c&&typeof e.node.selectionStart=="number"?e.node.selectionStart:null,f=c&&typeof e.node.selectionEnd=="number"?e.node.selectionEnd:null;if(e.node.value=a,c&&l!=null&&f!=null)try{e.node.setSelectionRange(l,f)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=n}if(typeof t.style=="function"){let n=t.style,s=ie(()=>{let i=n(e,e.state,e.context);Tr(e.node,i)},{depth:r.path.length});r.__effects.push(s),r.__exec.style=n}else if(e.style&&typeof e.style=="object")for(let n in e.style){let s=e.style[n];if(typeof s!="function")continue;let i=ie(()=>{try{let a=s(e,e.state,e.context);e.node&&Tr(e.node,{[n]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}if(e.attr&&typeof e.attr=="object"){for(let n in e.attr)if(typeof e.attr[n]=="function"){let s=e.attr[n],i=n,a=ie(()=>{try{let c=s(e,e.state,e.context);e.node?.setAttribute&&(c==null||c===!1?e.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&e.node.setAttribute(i,c===!0?"":c))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(e.aria&&typeof e.aria=="object")for(let n in e.aria){let s=e.aria[n];if(typeof s!="function")continue;let i="aria-"+n.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=ie(()=>{try{let c=s(e,e.state,e.context);if(!e.node?.setAttribute)return;c==null||c===!1?e.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&e.node.setAttribute(i,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(e.data&&typeof e.data=="object")for(let n in e.data){let s=e.data[n];if(typeof s!="function")continue;let i="data-"+n.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=ie(()=>{try{let c=s(e,e.state,e.context);if(!e.node?.setAttribute)return;c==null||c===!1?e.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&e.node.setAttribute(i,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(a)}let o=e.classlist&&typeof e.classlist=="object"&&!Array.isArray(e.classlist)?e.classlist:e.class&&typeof e.class=="object"&&!Array.isArray(e.class)?e.class:null;if(o)for(let n in o){let s=o[n];if(typeof s!="function")continue;let i=ie(()=>{try{let a=s(e,e.state,e.context);if(!e.node?.classList)return;typeof a=="string"?e.node.classList.add(a):a?e.node.classList.add(n):e.node.classList.remove(n)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof t.if=="function"){let n=t.if,s=ie(()=>{let i=n(e,e.state,e.context),a=r.__if;if(r.__if=!!i,a&&!r.__if&&e.node)e.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){e.node||(e.node=kr(e));let c=e.parent,l=c?.node;if(l&&e.node){let f=null,p=Object.keys(c),u=p.indexOf(e.key);for(let d=u+1;d<p.length;d++){let h=c[p[d]];if(h?.node?.parentNode===l){f=h.node;break}}f?l.insertBefore(e.node,f):l.appendChild(e.node)}else $c(e,e.parent);Rc(e)}else{if(r.__ifInitialized=!0,e.tag||(e.tag=_r(e)),Ct("Init",e,{}),e.node||(e.node=kr(e)),!e.node)return;Ct("AttachNode",e,{}),e.node.setAttribute&&e.key&&e.node.setAttribute("data-key",e.key),e.id&&e.node.setAttribute&&(e.node.id=e.id);let c=t.if;delete t.if;try{Oc(e,t)}finally{t.if=c}Rc(e),Om(e),Rm(e,{}),Pm(e,{}),$c(e,e.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||Ae.has(n)||typeof e[n]!="function")continue;let s=n.charCodeAt(0);if(s>=65&&s<=90||Or(n))continue;let i=e[n];r.__exec[n]=i;let a=e.tag||"div";if(Jt(a,n)&&!se[n]&&!(ye&&ye.has(n))){let c=n,l=ie(()=>{try{let f=i(e,e.state,e.context);e.node?.setAttribute&&(f==null||f===!1?e.node.removeAttribute(c):typeof f!="function"&&typeof f!="object"&&(c==="src"&&"src"in e.node?e.node.src=f:e.node.setAttribute(c,f===!0?"":f)))}catch{}},{depth:r.path.length});r.__effects.push(l)}}k_(e)}function Rc(e){let{node:t}=e;if(t){if(typeof e.text=="string"&&!e.text.includes("{{")?e.tag==="string"?t.nodeValue=e.text:t.textContent=e.text:typeof e.text=="number"&&(t.textContent=e.text),C_(e),typeof e.html=="string"&&(t.innerHTML=e.html),e.value!=null&&typeof e.value!="function"&&"value"in t){let r=String(e.value);t.value!==r&&(t.value=r)}if(e.style&&typeof e.style=="object"&&Tr(t,e.style),e.attr&&typeof e.attr=="object")for(let r in e.attr){let o=e.attr[r];typeof o=="function"||typeof o=="object"||o==null||o===!1||t.setAttribute&&t.setAttribute(r,o===!0?"":o)}if(e.data&&typeof e.data=="object")for(let r in e.data){let o=e.data[r];typeof o=="function"||typeof o=="object"||o==null||o===!1||t.dataset&&(t.dataset[r]=o===!0?"":o)}if(e.classlist||e.class){let r=e.classlist||e.class;if(typeof r=="string")r.split(" ").forEach(o=>o&&t.classList.add(o));else if(typeof r=="object")for(let o in r){let n=typeof r[o]=="function"?r[o](e,e.state,e.context):r[o];n&&t.classList.add(typeof n=="string"?n:o)}}}}function Tr(e,t){if(!e||!t||!e.style)return;let r=null;for(let o in t){let n=t[o];if(n!=null){if(o.charAt(0)==="&"&&typeof n=="object"){r||(r={}),r[o]=n;continue}try{let s=String(n),i=o.replace(/[A-Z]/g,f=>"-"+f.toLowerCase()),a=s.trim(),c=/\s*!important\s*$/.test(a),l=a.replace(/\s*!important\s*$/,"");e.style.setProperty(i,l,c?"important":"")}catch{}}}r&&__(e,r)}var w_=0;function __(e,t){let r=`_ds${w_++}`;e.classList.add(r);let o=e.ownerDocument,n=o.querySelector("style[data-smbls-scoped]");n||(n=o.createElement("style"),n.setAttribute("data-smbls-scoped",""),o.head.appendChild(n));let s="";for(let i in t){let a="."+r,c=i.replace(/&/g,a).split(",").map(f=>{let p=f.trim();return p.includes(a)?p:a+p}).join(", "),l=t[i];if(typeof l=="object"){let f="",p="";for(let u in l){let d=l[u];if(typeof d=="object"){let h=u.includes("&")?c.split(", ").map(g=>u.replace(/&/g,g)).join(", "):c.split(", ").map(g=>`${g} ${u}`).join(", "),m="";for(let g in d)m+=`${g.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${d[g]};`;p+=`${h} { ${m} }
38
+ `):"")}}if(Ec(s,e,n),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)try{let g=s.html(s,s.state,s.context);g!=null&&typeof g!="function"&&(s.node.innerHTML=g)}catch{}if(ke("Create",s,o),ke("Complete",s,o),ke("Render",s,o),ke("RenderRouter",s,o),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&ft(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&lt()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function Q_(t,e,r){let o=!e,n=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=o&&n&&t.context?.state,i=r.state!==void 0&&!s?r.state:t.state&&!pt(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",p=l.translations[f];if(p&&typeof p=="object")for(let d in p)c[d]===void 0&&(c[d]=p[d]);let u=new Set(l.languages||[]);for(let d in l.translations)!u.has(d)&&c[d]===void 0&&(c[d]=l.translations[d])}t.state=pt(c)?c:Mt(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=zh(i,e),t.state&&typeof t.state=="object"&&!pt(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=Mt(a||{})}else t.state=Mt({...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 Sc(t,e){if(!e)return t;let r=e.split("/"),o=t;for(let n of r){if(o==null)return{};o=o[n]}return o??{}}function zh(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let n=t.slice(3);return n?Sc(e.state,n):e.state??{}}if(t.startsWith("~/")){let n=e.state?.root||e.state,s=t.slice(2);return s?Sc(n,s):n??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=Sc(e.state,t);if(r!=null&&Object.keys(r).length>0)return r;let o=e.context?.polyglot;if(o?.translations){let n=e.state?.root?.lang||o.defaultLang||"en",s=o.translations[n];if(s?.[t]!==void 0)return s[t];if(o.translations[t]!==void 0)return o.translations[t]}return{}}function tw(t){let e=t.__ref,r=t.tag||"div",o=t.context?.designSystem,n=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||Ct.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||vr(a)||nt[a]||gt&&gt.has(a)||Xe(r,a)||n.push({prop:a,fn:t[a]})}for(let i=0;i<n.length;i++){let{prop:a,fn:c}=n[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){o&&ft(o);try{return c(t,t.state,t.context)}catch{return}finally{o&&lt()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function kc(t,e){let r=t.__ref;if(tw(t),typeof t.text=="function"){let n=t.text,s=st(()=>{try{let i=n(t,t.state,t.context);t.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=er.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=n}else if(typeof t.text=="string"&&t.text.includes("{{")){let n=t.text,s=st(()=>{let i=er.call(t,n,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=n}for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&typeof t[n]=="function"&&!Ct.has(n)&&!vr(n)&&!r.__exec[n]){if(nt[n]){let s=t[n],i=n,a=st(()=>{let c=t.context?.designSystem;c&&ft(c);try{let l=s(t,t.state,t.context),f=nt[i](l,t,t.state,t.context);f&&t.node?kr(t.node,f):t.node&&(i==="show"||i==="hide")&&(t.node.style.display="")}finally{c&&lt()}},{depth:r.path.length});r.__effects.push(a),r.__exec[n]=s}else if(gt&&gt.has(n)){let s=t[n],i=n,a=st(()=>{let c=t.context?.designSystem;c&&ft(c);try{let l=s(t,t.state,t.context);t.node&&(l!=null?kr(t.node,{[i]:l}):t.node.style[i]="")}finally{c&&lt()}},{depth:r.path.length});r.__effects.push(a),r.__exec[n]=s}}if(typeof e.html=="function"){let n=e.html,s=st(()=>{let i=n(t,t.state,t.context);t.node&&i!=null&&typeof i!="function"&&(t.node.innerHTML=i)},{depth:r.path.length});r.__effects.push(s),r.__exec.html=n}if(typeof e.value=="function"){let n=e.value,s=st(()=>{try{let i=n(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=n}if(typeof e.style=="function"){let n=e.style,s=st(()=>{let i=n(t,t.state,t.context);kr(t.node,i)},{depth:r.path.length});r.__effects.push(s),r.__exec.style=n}else if(t.style&&typeof t.style=="object")for(let n in t.style){let s=t.style[n];if(typeof s!="function")continue;let i=st(()=>{try{let a=s(t,t.state,t.context);t.node&&kr(t.node,{[n]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}if(t.attr&&typeof t.attr=="object"){for(let n in t.attr)if(typeof t.attr[n]=="function"){let s=t.attr[n],i=n,a=st(()=>{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 n in t.aria){let s=t.aria[n];if(typeof s!="function")continue;let i="aria-"+n.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=st(()=>{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 n in t.data){let s=t.data[n];if(typeof s!="function")continue;let a="data-"+n.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),c=st(()=>{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 o=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(o)for(let n in o){let s=o[n];if(typeof s!="function")continue;let i=st(()=>{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(n):t.node.classList.remove(n)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof e.if=="function"){let n=e.if,s=st(()=>{let i=n(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=Sr(t));let c=t.parent,l=c?.node;if(l&&t.node){let f=null,p=Object.keys(c),u=p.indexOf(t.key);for(let d=u+1;d<p.length;d++){let h=c[p[d]];if(h?.node?.parentNode===l){f=h.node;break}}f?l.insertBefore(t.node,f):l.appendChild(t.node)}else Ec(t,t.parent);vc(t)}else{if(r.__ifInitialized=!0,t.tag||(t.tag=xr(t)),ke("Init",t,{}),t.node||(t.node=Sr(t)),!t.node)return;ke("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{kc(t,e)}finally{e.if=c}vc(t),Uh(t),Wh(t,{}),Hh(t,{}),Ec(t,t.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||Ct.has(n)||typeof t[n]!="function")continue;let s=n.charCodeAt(0);if(s>=65&&s<=90||vr(n))continue;let i=t[n];r.__exec[n]=i;let a=t.tag||"div";if(Xe(a,n)&&!nt[n]&&!(gt&&gt.has(n))){let c=n,l=st(()=>{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)}}ow(t)}function vc(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),nw(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"&&kr(e,t.style),t.attr&&typeof t.attr=="object")for(let r in t.attr){let o=t.attr[r];typeof o=="function"||typeof o=="object"||o==null||o===!1||e.setAttribute&&e.setAttribute(r,o===!0?"":o)}if(t.data&&typeof t.data=="object")for(let r in t.data){let o=t.data[r];typeof o=="function"||typeof o=="object"||o==null||o===!1||e.dataset&&(e.dataset[r]=o===!0?"":o)}if(t.classlist||t.class){let r=t.classlist||t.class;if(typeof r=="string")r.split(" ").forEach(o=>o&&e.classList.add(o));else if(typeof r=="object")for(let o in r){let n=typeof r[o]=="function"?r[o](t,t.state,t.context):r[o];n&&e.classList.add(typeof n=="string"?n:o)}}}}function kr(t,e){if(!t||!e||!t.style)return;let r=null;for(let o in e){let n=e[o];if(n!=null){if(o.charAt(0)==="&"&&typeof n=="object"){r||(r={}),r[o]=n;continue}try{let s=String(n),i=o.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&&rw(t,r)}var ew=0;function rw(t,e){let r=`_ds${ew++}`;t.classList.add(r);let o=t.ownerDocument,n=o.querySelector("style[data-smbls-scoped]");n||(n=o.createElement("style"),n.setAttribute("data-smbls-scoped",""),o.head.appendChild(n));let s="";for(let i in e){let a="."+r,c=i.replace(/&/g,a).split(",").map(f=>{let p=f.trim();return p.includes(a)?p:a+p}).join(", "),l=e[i];if(typeof l=="object"){let f="",p="";for(let u in l){let d=l[u];if(typeof d=="object"){let h=u.includes("&")?c.split(", ").map(m=>u.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${u}`).join(", "),g="";for(let m in d)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${d[m]};`;p+=`${h} { ${g} }
39
39
  `}else f+=`${u.replace(/[A-Z]/g,h=>"-"+h.toLowerCase())}: ${d};`}f&&(s+=`${c} { ${f} }
40
- `),p&&(s+=p)}}s&&(n.textContent+=s)}function k_(e){let t=e.__ref;t.__conditionalRunners=[];for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let o=r.charAt(0);if(o!=="."&&o!=="!")continue;let n=r.slice(1);if(!n)continue;let s=e[r];if(!s||typeof s!="object")continue;let i=o==="!",a={lastMatch:!1,appliedKeys:null},c=()=>{if(!e.node)return;let f,p=e[n];if(p===void 0)if(e.state&&n in e.state)f=e.state[n];else{let h=e.context?.cases?.[n];if(h===void 0)return;f=typeof h=="function"?h.call(e,e):h}else typeof p=="function"?f=p(e,e.state,e.context):f=p;let u=i?!f:!!f;if(u===a.lastMatch)return;a.lastMatch=u;let d=e.context?.designSystem;d&&ue(d);try{if(u){let h={};for(let g in s){if(!Object.prototype.hasOwnProperty.call(s,g))continue;let y=typeof s[g]=="function"?s[g](e,e.state,e.context):s[g];if(y!=null)if(se[g]){let b=se[g](y,e,e.state,e.context);if(b){let x=Array.isArray(b)?b:[b];for(let w of x)w&&Object.assign(h,w)}}else ye&&ye.has(g)&&(h[g]=y)}let m=Object.keys(h);m.length?(Tr(e.node,h),a.appliedKeys=m):a.appliedKeys=null}else if(a.appliedKeys){for(let h of a.appliedKeys)e.node.style[h]="";a.appliedKeys=null}}finally{d&&le()}};t.__conditionalRunners.push(c);let l=ie(c,{depth:t.path.length});t.__effects.push(l)}}var Ec=new WeakSet;function C_(e){let{node:t}=e;if(!t)return;if(Ec.has(e)){console.error("[applyCssInProps] re-entry detected for element",e.key,"prop path:",e.__ref?.path);return}Ec.add(e);let r=e.context?.designSystem;r&&ue(r);try{let o={},n=!1;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||typeof e[s]=="function"||Ae.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!Or(s)){if(se[s]){let a=e[s],c=se[s](a,e,e.state,e.context);if(c){if(Array.isArray(c))for(let l of c)l&&Object.assign(o,l);else Object.assign(o,c);n=!0}}else if(ye&&ye.has(s)){let a=e[s];a!=null&&typeof a!="object"&&(o[s]=a,n=!0)}else if(s.charCodeAt(0)===45){let a=e[s];a!=null&&typeof a!="object"&&(o[s]=a,n=!0)}else if(s.charAt(0)==="&"){let a=e[s];a&&typeof a=="object"&&(o[s]=a,n=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=e[s];if(a&&typeof a=="object"){let c={};for(let l in a){let f=a[l];if(typeof f=="function"&&(f=f(e,e.state,e.context)),!(f==null||typeof f=="function"))if(se[l]){let p=se[l](f,e,e.state,e.context);if(p)if(Array.isArray(p))for(let u of p)u&&Object.assign(c,u);else Object.assign(c,p)}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"||!e.context?.designSystem?.media?.[s.slice(1)])){let l={};for(let p in c){let u=c[p];l[p]=typeof u=="string"&&!u.includes("!important")?u+" !important":u}let f=s.slice(1);o[`[data-theme="${f}"] &`]=l}else{let l=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let p=s.slice(1),u=e.context?.designSystem?.media?.[p]||e.context?.designSystem?.media?.[p];u&&(l=`@media ${u}`)}let f={};for(let p in c){let u=c[p];if(u&&typeof u=="object"&&!Array.isArray(u)){let d={};for(let m in u)if(se[m]){let g=se[m](u[m],e,e.state,e.context);if(g)if(Array.isArray(g))for(let y of g)y&&Object.assign(d,y);else Object.assign(d,g)}else d[m]=u[m];let h=p.startsWith(":")?"":" ";if(l.includes(",")){let m=l.split(",").map(g=>`${g.trim()}${h}${p}`).join(", ");o[m]=d}else o[`${l}${h}${p}`]=d}else f[p]=u}Object.keys(f).length&&(o[l]=f)}n=!0}n=!0}}}}if(n){o.display&&String(o.display).includes("!important")&&(t.style.setProperty("display",String(o.display).replace(/\s*!important\s*$/,""),"important"),delete o.display);let s=Zt(o,null,e.context?.cssPrefix);s&&t.classList&&s.split(" ").forEach(a=>a&&t.classList.add(a));let i=e.display!=null&&typeof e.display!="function"?e.display:e.hide===!0||e.show===!1?"none":null;if(i!=null){let a=o.display;if(a&&a!==i)if(i==="none"){let c=[];for(let l of t.classList)l.startsWith("_d-")&&l!=="_d-none"&&c.push(l);for(let l of c)t.classList.remove(l);t.classList.add("_d-none")}else t.style.display=e.display}}}finally{r&&le(),Ec.delete(e)}}function Om(e){let{node:t}=e;if(!t||!t.setAttribute)return;if(e.aria&&typeof e.aria=="object")for(let n in e.aria){let s=e.aria[n];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());t.setAttribute(i,s===!0?"":s)}let r=Em(e);for(let n in r){let s=r[n];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&t.setAttribute(n,s===!0?"":s)}let o=e.tag||"div";for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||typeof e[n]=="function"||Ae.has(n)||n==="on"||r[n]!==void 0)continue;let s=n.charCodeAt(0);if(!(s>=65&&s<=90)&&!Or(n)&&!(se[n]||ye&&ye.has(n))&&Jt(o,n)){let i=e[n];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=or(i,e,e.state,e.context),e[n]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;t.setAttribute(n,i===!0?"":i)}}}function Rm(e,t){for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||!Or(r))continue;let o=e[r];if(typeof o=="string"&&/^[A-Za-z_$][\w$]*$/.test(o)){let s=o;o=function(i){return e.call(s,i)}}if(typeof o!="function")continue;let n=b_(r);Cr.has(n)||ws(x_(n),e,o)}}function Pc(e,t){let r={...e};for(let o in t){let n=r[o],s=t[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=Pc(n,s):r[o]=s}return r}function Ic(e,t,r){if(!t||!e.node)return;let o=e.childExtends;if(Array.isArray(t)){let n=(e.context?.document||globalThis.document)?.createDocumentFragment();if(!n)return;let s=e.childProps,i=e.childrenAs;for(let a=0;a<t.length;a++){let c=t[a],l=c;(typeof c=="string"||typeof c=="number")&&(c={text:c});let f=s;if(typeof s=="function")try{f=s(e,c)}catch{f=null}if(i==="state"){let d=l;(typeof l=="string"||typeof l=="number")&&(d={value:l,text:l}),c=f?{...f,state:d}:{state:d}}else f&&(c=Pc(f,c));if(o&&!c.ignoreChildExtends)if(c.extends){let d=Array.isArray(c.extends)?c.extends:[c.extends],h=Array.isArray(o)?o:[o];c={...c,extends:[...h,...d]}}else c={extends:o,...c};let p=c?.key||`${a}`,u=Ue(c,e,p,r);u?.node&&n.appendChild(u.node)}e.node.appendChild(n);return}if(typeof t=="string"){let n=Tm(t,e);if(Array.isArray(n)){Ic(e,n,r);return}}if(typeof t=="object")for(let n in t){if(Ae.has(n))continue;let s=t[n];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),e.childProps&&(s=Pc(e.childProps,s)),o&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(o)?o:[o];s={...s,extends:[...a,...i]}}else s={extends:o,...s};Ue(s,e,n,r)}}}function Pm(e,t){let{children:r,content:o}=e,n=e.childExtends;if(typeof r=="function"){let i=r;r=i(e,e.state,e.context),e.children=r;let a=e.__ref,c=!1,l=ie(()=>{let f=i(e,e.state,e.context);if(!c){c=!0;return}if(f!==e.children){if(e.children=f,Array.isArray(f)&&e.childrenAs==="state"){let p=e.childProps,u=[],d=new Map;for(let y=0;y<f.length;y++){let b=f[y],x=p;if(typeof p=="function")try{x=p(e,b)}catch{x=null}let w=x&&x.key||b&&b.key||`${y}`;u.push(w),d.set(w,{rawChild:b,childProps:x})}let h=new Set(u);for(let y=a.__children.length-1;y>=0;y--){let b=a.__children[y];if(!h.has(b)){let x=e[b];x?.remove&&x.remove(),delete e[b],a.__children.splice(y,1)}}let m=e.childExtends,g=(e.context?.document||globalThis.document)?.createDocumentFragment();for(let y of u){let b=d.get(y),x=b.rawChild,w=e[y];if(w&&w.state){if(x&&typeof x=="object"){let R=w.state;if(typeof R.replace=="function")R.replace(x);else if(typeof R.update=="function"){for(let B in R)if(!(B==="__element"||B==="root"||B==="parent"||B==="update")&&!Object.prototype.hasOwnProperty.call(x,B))try{R[B]=void 0}catch{}R.update(x)}else for(let B in x)R[B]=x[B]}continue}let O=x;(typeof x=="string"||typeof x=="number")&&(O={value:x,text:x});let $=b.childProps,P=$?{...$,state:O}:{state:O};if(m&&!P.ignoreChildExtends)if(P.extends){let R=Array.isArray(P.extends)?P.extends:[P.extends],B=Array.isArray(m)?m:[m];P={...P,extends:[...B,...R]}}else P={extends:m,...P};let I=Ue(P,e,y,t);I?.node&&g&&g.appendChild(I.node)}g&&g.childNodes.length&&e.node&&e.node.appendChild(g),a.__children=u;return}for(let p of[...a.__children]){let u=e[p];u?.remove&&u.remove(),delete e[p]}a.__children=[],Ic(e,f,t)}},{depth:a.path.length});a.__effects.push(l)}if(Ic(e,r||o,t),r||o)return;let s=e.context?.components||{};{let i=Object.keys(e);for(let a=0;a<i.length;a++){let c=i[a];if(!c.endsWith("Extends")||typeof e[c]!="string")continue;let l=c.slice(0,-7);if(!l||l.charCodeAt(0)<65||l.charCodeAt(0)>90)continue;let f={extends:e[c]};delete e[c];for(let p=a+1;p<i.length;p++){let u=i[p],d=u.charCodeAt(0);if(d>=65&&d<=90||Ae.has(u)||typeof e[u]=="function"&&(u.startsWith("on")||u.startsWith(".")))break;let h=e[u];h!==void 0&&(f[u]=h,delete e[u])}e[l]&&typeof e[l]=="object"?e[l]={...f,...e[l]}:e[l]=f}}for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||Ae.has(i)||typeof e[i]!="object"||e[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let c=e[i];if(!c.__ref){if(!c.extends&&!c.extend){let l=s[i]||s[`smbls.${i}`];l&&(c={extends:l,...c})}if(e.childProps&&(c={...e.childProps,...c}),n&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(n)?n:[n];c={...c,extends:[...f,...l]}}else c={extends:n,...c};Ue(c,e,i,t)}}}function $c(e,t,r){let{node:o}=e;if(!o)return;let n=t?.node||(t?.nodeType?t:null);if(n)if(r?.position==="before"&&r.node)n.insertBefore(o,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?n.insertBefore(o,s):n.appendChild(o)}else n.appendChild(o)}function Ct(e,t,r){let o=e.charAt(0).toLowerCase()+e.slice(1);t.context?.plugins?.length&&Je(o,t,r);let n="on"+e,s=t[n];if(typeof s=="function"){let i=t.context?.designSystem;i&&ue(i);try{if(s(t,t.state,t.context,r)===!1)return!1}catch(a){if(t.context?.plugins?.length&&Je("error",t,{hook:n,error:a})||console.error(`[DOMQL] Lifecycle "${n}" error:`,a),t.context?.strictMode)throw a}finally{i&&le()}}return!0}var Im={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"]},$m={"gradient-blue-light":`linear-gradient(to right,
40
+ `),p&&(s+=p)}}s&&(n.textContent+=s)}function ow(t){let e=t.__ref;e.__conditionalRunners=[];for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let o=r.charAt(0);if(o!=="."&&o!=="!")continue;let n=r.slice(1);if(!n)continue;let s=t[r];if(!s||typeof s!="object")continue;let i=o==="!",a={lastMatch:!1,appliedKeys:null},c=()=>{if(!t.node)return;let f,p=t[n];if(p===void 0)if(t.state&&n in t.state)f=t.state[n];else{let h=t.context?.cases?.[n];if(h===void 0)return;f=typeof h=="function"?h.call(t,t):h}else typeof p=="function"?f=p(t,t.state,t.context):f=p;let u=i?!f:!!f;if(u===a.lastMatch)return;a.lastMatch=u;let d=t.context?.designSystem;d&&ft(d);try{if(u){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(nt[m]){let b=nt[m](y,t,t.state,t.context);if(b){let x=Array.isArray(b)?b:[b];for(let _ of x)_&&Object.assign(h,_)}}else gt&&gt.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(kr(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&&lt()}};e.__conditionalRunners.push(c);let l=st(c,{depth:e.path.length});e.__effects.push(l)}}var _c=new WeakSet;function nw(t){let{node:e}=t;if(!e)return;if(_c.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}_c.add(t);let r=t.context?.designSystem;r&&ft(r);try{let o={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]=="function"||Ct.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!vr(s)){if(nt[s]){let a=t[s],c=nt[s](a,t,t.state,t.context);if(c){if(Array.isArray(c))for(let l of c)l&&Object.assign(o,l);else Object.assign(o,c);n=!0}}else if(gt&&gt.has(s)){let a=t[s];a!=null&&typeof a!="object"&&(o[s]=a,n=!0)}else if(s.charCodeAt(0)===45){let a=t[s];a!=null&&typeof a!="object"&&(o[s]=a,n=!0)}else if(s.charAt(0)==="&"){let a=t[s];a&&typeof a=="object"&&(o[s]=a,n=!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(nt[l]){let p=nt[l](f,t,t.state,t.context);if(p)if(Array.isArray(p))for(let u of p)u&&Object.assign(c,u);else Object.assign(c,p)}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 u in c){let d=c[u];f[u]=typeof d=="string"&&!d.includes("!important")?d+" !important":d}let p=s.slice(1);o[`[data-theme="${p}"] &`]=f}else{let f=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let u=s.slice(1),d=t.context?.designSystem?.media?.[u]||t.context?.designSystem?.media?.[u];d&&(f=`@media ${d}`)}let p={};for(let u in c){let d=c[u];if(d&&typeof d=="object"&&!Array.isArray(d)){let h={};for(let m in d)if(nt[m]){let y=nt[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=u.startsWith(":")?"":" ";if(f.includes(",")){let m=f.split(",").map(y=>`${y.trim()}${g}${u}`).join(", ");o[m]=h}else o[`${f}${g}${u}`]=h}else p[u]=d}Object.keys(p).length&&(o[f]=p)}n=!0}n=!0}}}}if(n){o.display&&String(o.display).includes("!important")&&(e.style.setProperty("display",String(o.display).replace(/\s*!important\s*$/,""),"important"),delete o.display);let s=Ke(o,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=o.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&&lt(),_c.delete(t)}}function Uh(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let n in t.aria){let s=t.aria[n];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(i,s===!0?"":s)}let r=Vh(t);for(let n in r){let s=r[n];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(n,s===!0?"":s)}let o=t.tag||"div";for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||typeof t[n]=="function"||Ct.has(n)||n==="on"||r[n]!==void 0)continue;let s=n.charCodeAt(0);if(!(s>=65&&s<=90)&&!vr(n)&&!(nt[n]||gt&&gt.has(n))&&Xe(o,n)){let i=t[n];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=er(i,t,t.state,t.context),t[n]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;e.setAttribute(n,i===!0?"":i)}}}function Wh(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!vr(r))continue;let o=t[r];if(typeof o=="string"&&/^[A-Za-z_$][\w$]*$/.test(o)){let s=o;o=function(a){return t.call(s,a)}}if(typeof o!="function")continue;let n=Z_(r);_r.has(n)||xs(J_(n),t,o)}}function Cc(t,e){let r={...t};for(let o in e){let n=r[o],s=e[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=Cc(n,s):r[o]=s}return r}function Ac(t,e,r){if(!e||!t.node)return;let o=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 p=i;if(typeof i=="function")try{p=i(t,l)}catch{p=null}if(a==="state"){let h=f;(typeof f=="string"||typeof f=="number")&&(h={value:f,text:f}),l=p?{...p,state:h}:{state:h}}else p&&(l=Cc(p,l));if(o&&!l.ignoreChildExtends)if(l.extends){let h=Array.isArray(l.extends)?l.extends:[l.extends],g=Array.isArray(o)?o:[o];l={...l,extends:[...g,...h]}}else l={extends:o,...l};let u=l?.key||`${c}`,d=zt(l,t,u,r);d?.node&&s.appendChild(d.node)}t.node.appendChild(s);return}if(typeof e=="string"){let n=zh(e,t);if(Array.isArray(n)){Ac(t,n,r);return}}if(typeof e=="object")for(let n in e){if(Ct.has(n))continue;let s=e[n];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),t.childProps&&(s=Cc(t.childProps,s)),o&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(o)?o:[o];s={...s,extends:[...a,...i]}}else s={extends:o,...s};zt(s,t,n,r)}}}function Hh(t,e){let{children:r,content:o}=t,n=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=st(()=>{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 _=0;_<f.length;_++){let v=f[_],E=d;if(typeof d=="function")try{E=d(t,v)}catch{E=null}let P=E&&E.key||v&&v.key||`${_}`;h.push(P),g.set(P,{rawChild:v,childProps:E})}let m=new Set(h);for(let _=a.__children.length-1;_>=0;_--){let v=a.__children[_];if(!m.has(v)){let E=t[v];E?.remove&&E.remove(),delete t[v],a.__children.splice(_,1)}}let y=t.childExtends,x=(t.context?.document||globalThis.document)?.createDocumentFragment();for(let _ of h){let v=g.get(_),E=v.rawChild,P=t[_];if(P&&P.state){if(E&&typeof E=="object"){let V=P.state;if(typeof V.replace=="function")V.replace(E);else if(typeof V.update=="function"){for(let j in V)if(!(j==="__element"||j==="root"||j==="parent"||j==="update")&&!Object.prototype.hasOwnProperty.call(E,j))try{V[j]=void 0}catch{}V.update(E)}else for(let j in E)V[j]=E[j]}continue}let B=E;(typeof E=="string"||typeof E=="number")&&(B={value:E,text:E});let R=v.childProps,D=R?{...R,state:B}:{state:B};if(y&&!D.ignoreChildExtends)if(D.extends){let V=Array.isArray(D.extends)?D.extends:[D.extends],j=Array.isArray(y)?y:[y];D={...D,extends:[...j,...V]}}else D={extends:y,...D};let Q=zt(D,t,_,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=[],Ac(t,f,e)},{depth:a.path.length});a.__effects.push(l)}if(Ac(t,r||o,e),r||o)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 p=a+1;p<i.length;p++){let u=i[p],d=u.charCodeAt(0);if(d>=65&&d<=90||Ct.has(u)||typeof t[u]=="function"&&(u.startsWith("on")||u.startsWith(".")))break;let h=t[u];h!==void 0&&(f[u]=h,delete t[u])}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)||Ct.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}),n&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(n)?n:[n];c={...c,extends:[...f,...l]}}else c={extends:n,...c};zt(c,t,i,e)}}}function Ec(t,e,r){let{node:o}=t;if(!o)return;let n=e?.node||(e?.nodeType?e:null);if(n)if(r?.position==="before"&&r.node)n.insertBefore(o,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?n.insertBefore(o,s):n.appendChild(o)}else n.appendChild(o)}function ke(t,e,r){let o=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Yt(o,e,r);let n="on"+t,s=e[n];if(typeof s=="function"){let i=e.context?.designSystem;i&&ft(i);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(a){if(e.context?.plugins?.length&&Yt("error",e,{hook:n,error:a})||console.error(`[DOMQL] Lifecycle "${n}" error:`,a),e.context?.strictMode)throw a}finally{i&&lt()}}return!0}var qh={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"]},Gh={"gradient-blue-light":`linear-gradient(to right,
41
41
  rgba(4, 116, 242, 1),
42
42
  rgba(0, 48, 103, 1)
43
43
  )`,"gradient-blue-dark":`linear-gradient(to right,
@@ -63,15 +63,15 @@ FROM ${a}${l}`},iS=e=>{let t=[],r=(o,n)=>{for(let s in o){let i=n?`${n}/${s}`:s;
63
63
  #1E54F0 36%,
64
64
  #8B4CCA 69%,
65
65
  #C66894 100%
66
- )`};var A_={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"}}}},E_={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},T_={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"}}},Fm={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...A_,...E_,...T_,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var Dm={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var Lm={ratio:1.618,subSequence:!0};var Mm={SourceSans:[{url:""}]},Nm={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var Bm={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 jm={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 zm={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Es={version:"0.0.1",color:Im,gradient:$m,theme:Fm,typography:Dm,spacing:Lm,font:Mm,fontFamily:Nm,timing:zm,icons:Bm,media:jm,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var Cy={};C(Cy,{A:()=>ry,AssetPicture:()=>sg,Audio:()=>cg,Avatar:()=>yy,B:()=>Eg,Block:()=>Wm,Box:()=>Rg,Br:()=>Ig,Button:()=>sy,ButtonSet:()=>ly,COMPONENTS:()=>N_,Caption:()=>bg,Checkbox:()=>Wg,CheckboxHgroup:()=>Vg,Circle:()=>rg,CircleButton:()=>ay,Clickable:()=>Qm,Data:()=>Og,Dialog:()=>uy,DialogFooter:()=>dy,DialogHeader:()=>py,Dropdown:()=>xy,DropdownList:()=>vy,DropdownParent:()=>Sy,DropdownParentFocus:()=>wy,DropdownSiblingFocus:()=>_y,FileIcon:()=>Jg,Flex:()=>Hm,Focusable:()=>eg,FocusableComponent:()=>tg,Footnote:()=>Ag,Form:()=>Xm,Grid:()=>qm,Gutter:()=>Km,H1:()=>ug,H2:()=>pg,H3:()=>dg,H4:()=>hg,H5:()=>mg,H6:()=>gg,Headline:()=>kg,Hgroup:()=>Mg,HgroupButton:()=>Bg,HgroupRows:()=>Ng,Hoverable:()=>Jm,Hr:()=>Pg,I:()=>Tg,Icon:()=>Xg,IconButton:()=>fy,IconText:()=>Zg,Iframe:()=>Zm,Img:()=>Ym,Inline:()=>Vm,InlineFlex:()=>Um,InlineGrid:()=>Gm,Input:()=>jg,Italic:()=>wg,KangorooButton:()=>cy,Li:()=>$g,Link:()=>ll,Notification:()=>ky,NumberInput:()=>zg,Ol:()=>Dg,P:()=>yg,Picture:()=>ng,Radio:()=>Hg,RadioHgroup:()=>Ug,Range:()=>by,RouteLink:()=>oy,RouterLink:()=>fl,SHAPES:()=>Os,Select:()=>ny,Shape:()=>Bc,Span:()=>fg,SquareButton:()=>iy,Strong:()=>xg,Subhead:()=>Cg,Svg:()=>ig,Text:()=>lg,Textarea:()=>Kg,TextareaWithButton:()=>Yg,Theme:()=>og,Title:()=>_g,Toggle:()=>qg,ToggleHgroup:()=>Gg,Tooltip:()=>hy,TooltipHidden:()=>my,TooltipParent:()=>gy,U:()=>vg,Ul:()=>Fg,Underline:()=>Sg,Video:()=>ag,depth:()=>Rs,getSystemGlobalTheme:()=>To});var Fc={};C(Fc,{Block:()=>Wm,Flex:()=>Hm,Grid:()=>qm,Gutter:()=>Km,Inline:()=>Vm,InlineFlex:()=>Um,InlineGrid:()=>Gm});var Wm={display:"block"},Vm={display:"inline"},Hm={display:"flex"},Um={display:"inline-flex"},qm={display:"grid"},Gm={display:"inline-grid"},Km={boxSize:"C1"};var Dc={};C(Dc,{Img:()=>Ym});T();var Ym={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=X(e);return t&&t.src||e.src},srcset:e=>{let t=X(e);return(t?pr(t):"")||e.srcset}}};var Lc={};C(Lc,{Form:()=>Xm});var Xm={tag:"form"};var Mc={};C(Mc,{Iframe:()=>Zm});var Zm={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Nc={};C(Nc,{Clickable:()=>Qm,Focusable:()=>eg,FocusableComponent:()=>tg,Hoverable:()=>Jm});var O_={appearance:"none",cursor:"pointer",fontFamily:"inherit"},Jm={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}}},Qm={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},eg={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},tg={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:O_};var Wc={};C(Wc,{Picture:()=>ng});var zc={};C(zc,{Theme:()=>og,getSystemGlobalTheme:()=>To});var jc={};C(jc,{Circle:()=>rg,SHAPES:()=>Os,Shape:()=>Bc,default:()=>R_,depth:()=>Rs});T();var $e=A(),Rs={4:{boxShadow:`rgba(0,0,0,.10) 0 2${$e.unit.default} 4${$e.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${$e.unit.default} 6${$e.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${$e.unit.default} 10${$e.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${$e.unit.default} 16${$e.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${$e.unit.default} 26${$e.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${$e.unit.default} 42${$e.unit.default}`}},Rr=e=>H(e.shapeDirectionColor)||H(e.borderColor)||H(e.backgroundColor)||H(e.background),Ts=e=>{let t=Er.transition(e.transition,e);return t&&t.transition},Os={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Rr(e),transition:Ts(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:Rr(e),transition:Ts(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Rr(e),transition:Ts(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Ts(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Rr(e)} 25%, transparent 25%), linear-gradient(315deg, ${Rr(e)} 25%, transparent 25%)`},"&:after":{background:Rr(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},Bc={deps:{exec:V,getSpacingBasedOnRatio:Ve,getMediaColor:fe},classlist:{shape:e=>e.deps.exec(Os[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Os[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},rg={round:"100%"},R_=Bc;T();var To=({context:e,state:t})=>{let r=t&&t.root,o=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return o==="auto"?null:o},og={deps:{depth:Rs},classlist:{depth:e=>!oe(e.depth)&&e.deps.depth[e.depth]}};var ng={deps:{getSystemGlobalTheme:To},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:To},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:o}=e,{media:n}=r.designSystem,s=o.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":n[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}};var Vc={};C(Vc,{AssetPicture:()=>sg});T();var sg={tag:"picture",children:e=>{let t=X(e);if(t)return dr(t,e.alt)}};var Hc={};C(Hc,{Svg:()=>ig});var ig={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:o}=t,n=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=u=>`<use xlink:href="#${u}" />`,c=e.spriteId;if(c)return a(c);if(n&&n[i])return a(i);let l=Symbol.for(i),f=n[l];if(f&&n[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 p=0;for(let u=0;u<i.length;u++)p=(p<<5)-p+i.charCodeAt(u)|0;return f=n[l]=`svg-${(p>>>0).toString(36)}`,o.init({svg:{[f]:i}},{document:t.document,emotion:t.emotion}),a(f)}};var Uc={};C(Uc,{Video:()=>ag});T();var ag={tag:"video",controls:!0,attr:{src:e=>{let t=X(e);return t&&t.src||e.src}},children:e=>{let t=X(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var qc={};C(qc,{Audio:()=>cg});T();var cg={tag:"audio",controls:!0,attr:{src:e=>{let t=X(e);return t&&t.src||e.src}},children:e=>{let t=X(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Gc={};C(Gc,{B:()=>Eg,Caption:()=>bg,Data:()=>Og,Footnote:()=>Ag,H1:()=>ug,H2:()=>pg,H3:()=>dg,H4:()=>hg,H5:()=>mg,H6:()=>gg,Headline:()=>kg,I:()=>Tg,Italic:()=>wg,P:()=>yg,Span:()=>fg,Strong:()=>xg,Subhead:()=>Cg,Text:()=>lg,Title:()=>_g,U:()=>vg,Underline:()=>Sg});var lg={},fg={tag:"span"},ug={tag:"h1"},pg={tag:"h2"},dg={tag:"h3"},hg={tag:"h4"},mg={tag:"h5"},gg={tag:"h6"},yg={tag:"p"},bg={tag:"caption"},xg={tag:"strong",fontWeight:"700"},vg={tag:"u"},Sg={tag:"u"},wg={tag:"i"},_g={},kg={tag:"h6",fontSize:"B",fontWeight:500},Cg={tag:"span",fontSize:"Z1"},Ag={tag:"span",fontSize:"Z"},Eg={tag:"b"},Tg={tag:"i"},Og={tag:"data"};var Kc={};C(Kc,{Box:()=>Rg,Br:()=>Ig,Hr:()=>Pg,Li:()=>$g,Ol:()=>Dg,Ul:()=>Fg});var P_=e=>{if(!e.context)return;let{props:t,__ref:r}=e,o=ve(t,e,{unpack:!1});r.__class=o},Rg={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:P_},Pg={tag:"hr",margin:"C1 0"},Ig={tag:"br"},$g={tag:"li"},Fg={tag:"ul",childExtends:{extends:"Li"}},Dg={tag:"ol",childExtends:{extends:"Li"}};var Yc={};C(Yc,{Hgroup:()=>Mg,HgroupButton:()=>Bg,HgroupRows:()=>Ng});var Lg=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},Mg={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:Lg,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:Lg,margin:"0",color:"paragraph"}},Ng={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Bg={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Xc={};C(Xc,{Input:()=>jg});var jg={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}};var Zc={};C(Zc,{NumberInput:()=>zg});var zg={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}};var Jc={};C(Jc,{Checkbox:()=>Wg,CheckboxHgroup:()=>Vg});var Wg={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},Vg={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Qc={};C(Qc,{Radio:()=>Hg,RadioHgroup:()=>Ug});var Hg={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}},Ug={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var el={};C(el,{Toggle:()=>qg,ToggleHgroup:()=>Gg});var qg={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}},Gg={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var tl={};C(tl,{Textarea:()=>Kg,TextareaWithButton:()=>Yg});var Kg={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"}},Yg={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={};C(rl,{FileIcon:()=>Jg,Icon:()=>Xg,IconText:()=>Zg});var Xg={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:o}=e,{icons:n,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=w=>{let O=w[".isActive"];if(O)return w.call("exec",O.name||O.icon)},l=(w,O,$)=>{let{semanticIcons:P}=$&&$.designSystem,{toCamelCase:I}=$&&$.utils,R=f(w,O),B=I(R).split(/([a-z])([A-Z])/g),pe=B[1]?B[0]:R.split(".")[0].split(" ")[0],Z=P&&P[pe];if(Z){let K=R.includes(".")?"sfsymbols."+R.split(".").slice(1).join("."):"sfsymbols";return R=Z[K]||Z[R.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${R}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(w,O)=>{let{key:$}=w,P=w.call("exec",w.name||w.icon||$,w);return w.call("isString",P)&&P.includes("{{")&&(P=w.call("replaceLiteralsWithObjectFields",P)),w.call("isString",P)?P:$},p=f(e,t);if(p.includes(" ")){let w=p.split(" ");p=w[0]+w.slice(1).map(O=>O.charAt(0).toUpperCase()+O.slice(1)).join("")}let u=a(p),d=u.split(/([a-z])([A-Z])/g),h=l(e,t,r);if(h){Object.assign(e,h);return}let m;e.isActive&&(m=c(e));let g=o[".isActive"];o&&o.isActive&&g&&g.icon&&(m=e.call("exec",g.icon||g.Icon.name||g.Icon.icon,e)),e.call("isString",m)&&m.includes("{{")&&(m=e.call("replaceLiteralsWithObjectFields",m));let y;n[m]&&(y=m),n[u]?y=u:n[d[0]+d[1]]?y=d[0]+d[1]:n[d[0]]?y=d[0]:i&&e.warn("Can't find icon:",p,y);let b=n[y],x=o&&o.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||x||n.noIcon})},attr:{viewBox:"0 0 24 24"}},Zg={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},Jg={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var ul={};C(ul,{A:()=>ry,Link:()=>ll,RouteLink:()=>oy,RouterLink:()=>fl});var cl={};C(cl,{default:()=>L_,getActiveRoute:()=>al,lastLevel:()=>Is,lastPathname:()=>Ps,matchRoute:()=>nl,parseQuery:()=>sl,parseRoutePattern:()=>ol,router:()=>Ee,runGuards:()=>il});T();var ey=/^:(.+)/,ty=/^\*$/,Qg=new Map,ol=e=>{let t=Qg.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),o=[],n=!1;for(let i=0;i<r.length;i++){let a=r[i].match(ey);a?o.push({index:i,name:a[1]}):ty.test(r[i])&&(n=!0)}let s={segments:r,params:o,hasWildcard:n,pattern:e};return Qg.set(e,s),s},nl=(e,t,r=0)=>{let n=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(n[0]||""),i=null,a=-1,c={};for(let l in t){if(l==="/*")continue;let f=ol(l),p=I_(n,f);p>a&&(a=p,i=l,c=$_(n,f))}return!i&&t["/*"]&&(i="/*"),{key:i,content:i?t[i]:null,params:c,routePath:s}},I_=(e,t)=>{let{segments:r,hasWildcard:o}=t;if(!o&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let n=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])n+=3;else if(ey.test(r[i]))n+=1;else if(ty.test(r[i]))n+=.5;else return-1;return n},$_=(e,t)=>{let r={};for(let{index:o,name:n}of t.params)e[o]&&(r[n]=decodeURIComponent(e[o]));return r},sl=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((o,n)=>{t[n]!==void 0?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(o)):t[n]=o}),t},il=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let o=await r(t);if(o===!1)return!1;if(typeof o=="string")return o}return!0},al=(e=0,t)=>{t||(t=typeof _<"u"?_.location.pathname:"/");let o=t.split("/")[e+1];if(o)return`/${o}`},Ps,Is=0,F_=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,D_={level:Is,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:q&&q.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Ee=async(e,t,r={},o={})=>{let n=t||void 0,s=n?.context?.window||_,i=n?.context?.document||q,a={...D_,...n.context.routerOptions,...o};Is=a.lastLevel;let c=n.__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";e=F_(e);let p=new s.URL(f+e),{pathname:u,search:d,hash:h}=p,m=sl(d),g=n.node,y=h&&h!==s.location.hash.slice(1),b=u!==Ps;Ps=u;let x,w,O,$;if(a.useParamsMatching){let I=nl(u,n.routes,a.level);x=I.key,w=I.routePath,O=I.content,$=I.params}else x=al(a.level,u),w=x,O=n.routes[x||"/"]||n.routes["/*"],$={};let P=a.scrollToNode?g:a.scrollNode;if(n.state?.root?.debugging){n.state.root.debugging=!1;return}if(!O){a.onNotFound?a.onNotFound({pathname:u,route:x,element:n}):a.silent||console.warn("[smbls/router] no content matched for path",u,"\u2014 available routes:",Object.keys(n.routes||{}));return}if(a.guards&&a.guards.length){let I={pathname:u,route:x,params:$,query:m,hash:h,element:n,state:r},R=await il(a.guards,I);if(R===!1)return;if(typeof R=="string")return Ee(R,t,r,{...o,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,u+(d||"")+(h||""))}catch{}if(b||!y){let I={route:x,routePath:w,hash:h,debugging:!1};Object.keys($).length&&(I.params=$),Object.keys(m).length&&(I.query=m),a.updateState&&n.state.update(I,{preventContentUpdate:!0}),l&&a.removeOldElement&&n[l].remove();let R=n.__ref?.origin?.content,B={};if(R)for(let Z in R){let K=R[Z];Z==="__ref"||Z==="props"||Z==="node"||Z==="parent"||Z==="key"||(typeof K=="string"||typeof K=="number"||typeof K=="boolean"||typeof K=="object"&&K!==null&&!K.node&&!K.__ref)&&(B[Z]=K)}let pe={...B,...typeof O=="object"?O:{extends:O}};a.useFragment&&(pe.tag="fragment");try{n.set(pe,{contentElementKey:l})}catch(Z){console.error("[smbls/router] failed to render route content",u,Z)}}if(a.scrollToTop&&P?.scrollTo&&P.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&O[l]?.node?.scrollTo&&O[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let I=i.getElementById(h);if(I&&P?.scrollTo){let R=I.getBoundingClientRect().top+g.scrollTop-(a.scrollToOffset||0);P.scrollTo({...a.scrollToOptions||{},top:R,left:0})}}zt("routeChanged",n,a)},L_=Ee;var M_=(e,t,r)=>{let{context:o}=t,{href:n,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",n,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=o,u=t.__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){e.preventDefault();try{let h=u;if(p&&p.customRouterElement){let m=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),g=u;for(let y of m){if(!g||!g[y]){g=null;break}g=g[y]}g&&(h=g,u.routes&&(h.routes=u.routes))}(f.router||l.router||c.router||Ee)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...p,...t.routerOptions})}catch(h){console.warn(h)}}},ll={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>st(e,e.href)||st(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:M_},ry={extends:"Link"},fl={onClick:(e,t,r)=>{let{context:o}=t,{href:n,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",n,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=o,u=t.__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){e.preventDefault();try{let h=u;if(p&&p.customRouterElement){let m=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),g=u;for(let y of m){if(!g||!g[y]){g=null;break}g=g[y]}g&&(h=g,u.routes&&(h.routes=u.routes))}(f.router||l.router||c.router||Ee)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...p,...t.routerOptions})}catch(h){console.warn(h)}}}},oy={extends:[ll,fl]};var pl={};C(pl,{Select:()=>ny});var ny={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}};var dl={};C(dl,{Button:()=>sy,ButtonSet:()=>ly,CircleButton:()=>ay,IconButton:()=>fy,KangorooButton:()=>cy,SquareButton:()=>iy});var sy={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},iy={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"},ay={extends:"SquareButton",round:"C"},cy={extends:"Button",childExtends:"IconText"},ly={tag:"nav",display:"flex",childExtends:"SquareButton"},fy={extends:["SquareButton","ClickableItem"],round:"Z"};var hl={};C(hl,{Dialog:()=>uy,DialogFooter:()=>dy,DialogHeader:()=>py});var uy={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},py={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},dy={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 ml={};C(ml,{Tooltip:()=>hy,TooltipHidden:()=>my,TooltipParent:()=>gy});T();var hy={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>me(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},my={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},gy={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,o=t||r;if(!o)return;let n=o&&o[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var gl={};C(gl,{Avatar:()=>yy});var yy={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`};var yl={};C(yl,{Range:()=>by});var by={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:Ut("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Ut("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let o=e.call("exec",e[t],e);return(e.call("isFunction",o)?o(e,e.state):o!==void 0?o:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}};var bl={};C(bl,{Dropdown:()=>xy,DropdownList:()=>vy,DropdownParent:()=>Sy,DropdownParentFocus:()=>wy,DropdownSiblingFocus:()=>_y});var xy={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"},vy={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Sy={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},wy={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},_y={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}};var xl={};C(xl,{Notification:()=>ky});var ky={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 N_=Object.assign({},Fc,Dc,Lc,Mc,Nc,Wc,Vc,Hc,jc,Uc,qc,zc,Gc,Kc,Yc,Xc,Zc,Jc,Qc,el,tl,rl,ul,pl,dl,hl,ml,gl,yl,bl,xl);function $s(e){if(e==null)return 0;if(typeof e!="object")return Ay(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let o=0;o<e.length;o++)t=(t^$s(e[o]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let o=0;o<r.length;o++)t=(t^Ay(r[o]))*16777619,t=(t^$s(e[r[o]]))*16777619;return t>>>0}function Ay(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function Fs(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!=typeof t||typeof e!="object")return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Fs(e[n],t[n]))return!1;return!0}let r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let n=0;n<r.length;n++){let s=r[n];if(!Object.prototype.hasOwnProperty.call(t,s)||!Fs(e[s],t[s]))return!1}return!0}function vl(e,t){if(t===void 0)return e;if(e===void 0)return t;if(t===null)return null;if(typeof t!="object"||Array.isArray(t))return t;if(typeof e!="object"||Array.isArray(e))return{...t};let r=!1,o={};for(let n in e)if(n in t){let s=vl(e[n],t[n]);o[n]=s,s!==e[n]&&(r=!0)}else o[n]=e[n];for(let n in t)n in e||(o[n]=t[n],r=!0);return r?o:e}function Sl(e,t,r){if(!t||typeof t!="object")return e;if(!e||typeof e!="object")return t;if(r||(r=new WeakSet),r.has(t))return e;r.add(t);for(let o in t){let n=t[o];n&&typeof n=="object"&&!Array.isArray(n)&&e[o]&&typeof e[o]=="object"&&!Array.isArray(e[o])?Sl(e[o],n,r):e[o]=n}return e}function At(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function Pr(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Oo(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():At(t)}function Ey(e){return e.split(`
67
- `).map(At).join(`
68
- `)}var Ty={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 Oy(e,t){let r=Ty[e]||At(e),o=Oo(t),n=`_${r}-${o}`,s=Pr(e),i=`.${n}{${s}: ${t}}`;return`${n}
69
- ${i}`}var Ry=e=>typeof e=="string"&&(e.indexOf("{")!==-1||e.indexOf("}")!==-1);function Py(e){let t=e.split("\0"),r=[],o=[];for(let n=0;n+1<t.length;n+=2){let s=t[n],i=t[n+1];if(!i||Ry(i))continue;let a=Ty[s]||At(s),c=Oo(i),l=`_${a}-${c}`,f=Pr(s);r.push(l),o.push(`.${l}{${f}:${i}}`)}return r.join(" ")+"\0"+o.join(`
70
- `)}function Iy(e,t){let r=e+t,o=`_c${At(r)}`,n=t.split("\0"),s="";for(let a=0;a+1<n.length;a+=2){let c=n[a],l=n[a+1];l&&(Ry(l)||(s+=`${Pr(c)}:${l};`))}let i;if(e.startsWith("@media"))i=`${e}{.${o}{${s}}}`;else if(e.startsWith(":")||e.startsWith("&")){let a=e.startsWith("&")?e.slice(1):e;i=`.${o}${a}{${s}}`}else e.includes("&")?i=`${e.replace("&",`.${o}`)}{${s}}`:i=`.${o} ${e}{${s}}`;return`${o}
71
- ${i}`}var wl=null;function _l(e){wl=e}var Ke={structuralHash:$s,deepEqual:Fs,mergeStructural:vl,overwriteDeep:Sl,shortHash:At,toKebab:Pr,sanitizeValue:Oo,batchShortHash:Ey,atomicCssClass:Oy,batchAtomicCss:Py,compoundCssClass:Iy},$y=!1,Ds=null;function V_(e){return Ds||(Ds=import(e||"@symbo.ls/wasm/pkg").then(t=>(t.structuralHash&&(Ke.structuralHash=t.structuralHash),t.deepEqual&&(Ke.deepEqual=t.deepEqual),t.mergeStructural&&(Ke.mergeStructural=t.mergeStructural),t.overwriteDeep&&(Ke.overwriteDeep=t.overwriteDeep),t.shortHash&&(Ke.shortHash=t.shortHash),t.toKebab&&(Ke.toKebab=t.toKebab),t.sanitizeValue&&(Ke.sanitizeValue=t.sanitizeValue),t.batchShortHash&&(Ke.batchShortHash=t.batchShortHash),t.atomicCssClass&&(Ke.atomicCssClass=t.atomicCssClass),t.batchAtomicCss&&(Ke.batchAtomicCss=t.batchAtomicCss),t.compoundCssClass&&(Ke.compoundCssClass=t.compoundCssClass),$y=!0,wl&&t.batchAtomicCss&&wl({batchAtomicCss:t.batchAtomicCss,compoundCssClass:t.compoundCssClass}),!0)).catch(t=>(console.debug("[smbls] WASM not available, using JS fallbacks:",t.message),!1)),Ds)}function H_(){return $y}T();var Ro={};C(Ro,{CDN_PROVIDERS:()=>et,DOMQL_EVENTS:()=>_u,DOMQ_PROPERTIES:()=>Dt,ENV:()=>zu,HTML_TAGS:()=>so,METHODS:()=>to,METHODS_EXL:()=>cn,NODE_ENV:()=>Ze,OPTIONS:()=>$n,PACKAGE_MANAGER_TO_CDN:()=>Ht,PARSED_DOMQ_PROPERTIES:()=>an,PROPS_METHODS:()=>Mt,STATE_METHODS:()=>Lt,STATE_PROPERTIES:()=>wu,SVG_TAGS:()=>cp,TYPES:()=>tn,UNIVERSAL_RESERVED_KEYS:()=>ka,addCaching:()=>oa,addContext:()=>ra,addExtend:()=>mp,addExtends:()=>Ce,addItemAfterEveryElement:()=>lu,addProtoToArray:()=>nn,addRef:()=>Qi,applyCSS:()=>Ly,applyDependentState:()=>Mp,applyEvent:()=>la,applyEventUpdate:()=>fa,applyExtends:()=>yp,applyProps:()=>En,arrayContainsOtherArray:()=>ru,arraysEqual:()=>uu,arrayzeValue:()=>ur,buildImgSrcset:()=>pr,buildSourcesAndImg:()=>dr,cache:()=>Hp,call:()=>Sd,captureSnapshot:()=>Cd,checkForStateTypes:()=>$p,checkIfInherits:()=>ca,checkIfStringIsInArray:()=>hu,clone:()=>Eu,cloneAndMergeArrayExtend:()=>bn,cloneFunction:()=>Yu,concatAddExtends:()=>up,copyJavaScriptToClipboard:()=>sh,copyStringToClipboard:()=>nh,createBasedOnType:()=>Ji,createElement:()=>Pp,createElementExtends:()=>Mi,createExtends:()=>vn,createExtendsFromKeys:()=>io,createExtendsStack:()=>zi,createIfConditionFlag:()=>Xu,createInheritedState:()=>Fp,createKey:()=>mn,createNestedObject:()=>Fu,createNestedObjectByKeyPath:()=>Lp,createObjectWithoutPrototype:()=>Ti,createParent:()=>ea,createPath:()=>ta,createProps:()=>Tn,createPropsStack:()=>Yi,createRoot:()=>Rp,createScope:()=>jp,createSnapshotId:()=>hn,customDecodeURIComponent:()=>Su,customEncodeURIComponent:()=>vu,cutArrayAfterValue:()=>au,cutArrayBeforeValue:()=>iu,debounce:()=>yn,debounceOnContext:()=>qu,decodeNewlines:()=>xu,deepClone:()=>Y,deepContains:()=>Iu,deepDefaults:()=>ts,deepDestringifyFunctions:()=>je,deepExtend:()=>Li,deepMerge:()=>W,deepMergeExtends:()=>lt,deepStringifyFunctions:()=>ln,defineSetter:()=>xd,destringifyGlobalScope:()=>un,detectHeightOnInit:()=>Dd,detectInfiniteLoop:()=>Nu,document:()=>q,encodeNewlines:()=>bu,error:()=>fr,excludeKeysFromObject:()=>ju,exec:()=>V,extendCachedRegistry:()=>pp,extendStackRegistry:()=>Sn,extractArrayExtend:()=>_n,fetchLibraryData:()=>Aa,fibonacciNumberByIndex:()=>Md,filterArrays:()=>pu,filterArraysFast:()=>du,finalizeExtends:()=>Wi,findClosestNumber:()=>Ca,findClosestNumberInFactory:()=>Jd,findInheritedState:()=>aa,findKeyPosition:()=>gu,flattenExtend:()=>ao,formatDate:()=>$d,generateHash:()=>$i,generateKey:()=>dn,generateMetaTags:()=>Yd,get:()=>md,getActiveRoute:()=>al,getCDNUrl:()=>tt,getCapitalCaseKeys:()=>bp,getCdnProviderFromConfig:()=>bo,getChildStateInKey:()=>ia,getChildren:()=>jn,getContext:()=>Gn,getCookie:()=>op,getDB:()=>Jn,getEmotionStylesheet:()=>fh,getExtendsInElement:()=>gp,getExtendsStack:()=>xn,getExtendsStackRegistry:()=>Di,getFrequencyInArray:()=>ou,getHashedExtend:()=>wn,getImportMapScript:()=>Pd,getInObjectByPath:()=>Mu,getLocalStorage:()=>sp,getNev:()=>Uu,getPageMetadata:()=>Xd,getParentStateInKey:()=>sa,getPath:()=>zn,getQuery:()=>Qn,getRef:()=>yd,getRoot:()=>Hn,getRootContext:()=>qn,getRootData:()=>Un,getRootState:()=>Vn,getRootStateInKey:()=>na,getSpreadChildren:()=>xp,global:()=>Qf,hasFunction:()=>ro,hasHandlerPlugin:()=>oo,hasOwnProperty:()=>Ou,inheritChildExtends:()=>Bi,inheritChildPropsExtends:()=>Ni,inheritParentProps:()=>On,inheritRecursiveChildExtends:()=>ji,init:()=>Et,initProps:()=>Ep,is:()=>_e,isArray:()=>E,isBoolean:()=>_i,isContextComponent:()=>vp,isCyclic:()=>Bu,isDOMNode:()=>we,isDate:()=>Ci,isDefined:()=>me,isDevelopment:()=>jt,isEmpty:()=>Ai,isEmptyObject:()=>Ru,isEqualDeep:()=>Ei,isFunction:()=>k,isHtmlElement:()=>en,isLocal:()=>Hu,isMethod:()=>_d,isMobile:()=>tp,isNode:()=>mt,isNot:()=>tu,isNotProduction:()=>ar,isNull:()=>ki,isNumber:()=>at,isObject:()=>v,isObjectLike:()=>L,isPhoto:()=>Bd,isProduction:()=>Bt,isStaging:()=>Vu,isState:()=>Dp,isString:()=>S,isStringFunction:()=>Ku,isTest:()=>Oi,isTesting:()=>Wu,isUndefined:()=>oe,isUniversallyReservedKey:()=>Ed,isValidHtmlTag:()=>lp,joinArrays:()=>Zr,jointStacks:()=>hp,keys:()=>wa,lastLevel:()=>Is,lastPathname:()=>Ps,loadCssFile:()=>Hd,loadJavascript:()=>Ud,loadJavascriptFile:()=>zd,loadJavascriptFileEmbedSync:()=>Vd,loadJavascriptFileSync:()=>Wd,loadRemoteCSS:()=>qd,loadRemoteScript:()=>xo,log:()=>vd,logGroupIf:()=>Qu,logIf:()=>Ju,lookdown:()=>pd,lookdownAll:()=>dd,lookup:()=>ud,lowercaseFirstLetter:()=>nr,makeObjectWithoutPrototype:()=>Pu,map:()=>Cu,mapStringsWithContextComponents:()=>kn,matchRoute:()=>nl,matchesComponentNaming:()=>ft,memoize:()=>Gu,merge:()=>J,mergeSharedLibraries:()=>rs,nextElement:()=>Yn,normalizeLibraryKey:()=>vo,objectToString:()=>fn,objectizeStringProperty:()=>An,overwrite:()=>pn,overwriteDeep:()=>ke,overwriteShallow:()=>ir,overwriteState:()=>Np,parse:()=>_a,parseDeep:()=>Nn,parseQuery:()=>sl,parseRoutePattern:()=>ol,pickupElementFromProps:()=>qi,pickupPropsFromElement:()=>Ui,previousElement:()=>Xn,propExists:()=>Ap,propertizeElement:()=>Gi,propertizeUpdate:()=>Cp,reinit:()=>Dy,remove:()=>hd,removeChars:()=>ih,removeCookie:()=>np,removeDuplicateProps:()=>Pn,removeDuplicatesInArray:()=>Jr,removeFromArray:()=>nu,removeFromObject:()=>$u,removeNestedKeyByPath:()=>Du,removeValueFromArray:()=>on,removeValueFromArrayAll:()=>cu,reorderArrayByValues:()=>fu,replaceLiteralsWithObjectFields:()=>or,replaceOctalEscapeSequences:()=>yu,resolveAsset:()=>X,resolveHandler:()=>no,resolveSharedLibraries:()=>rh,returnValueAsText:()=>Zi,router:()=>Ee,runGuards:()=>il,runPluginHook:()=>Je,scratchSystem:()=>hs,scratchUtils:()=>br,self:()=>eu,set:()=>Ao,setActiveRootState:()=>Wn,setCookie:()=>rp,setHashedExtend:()=>Fi,setInObjectByPath:()=>Lu,setLocalStorage:()=>ip,setNodeStyles:()=>Sa,setProps:()=>gd,setPropsPrototype:()=>Rn,spotByPath:()=>Bn,srcsetFor:()=>So,stringIncludesAny:()=>sn,stringToObject:()=>Tu,swapItemsInArray:()=>su,syncProps:()=>In,toCamelCase:()=>os,toDashCase:()=>ns,toDescriptionCase:()=>ch,toTitleCase:()=>ah,toggleFullscreen:()=>Od,triggerEventOn:()=>zt,triggerEventOnUpdate:()=>Vp,trimStringFromSymbols:()=>mu,unstackArrayOfObjects:()=>rn,update:()=>Ki,updateProps:()=>Tp,variables:()=>Zn,verbose:()=>yo,warn:()=>Kn,window:()=>_});T();T();var U_=A(),Fy=(e=U_,t)=>{let r=v(t.localFile)?t.localFile:{},o=Y(r.designSystem||{});return W(e,o)},q_={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Et=(e,t=q_)=>{let r=Fy(e||{},t),o=t.scopeSelector||":root",n=o===":root"?":root:not([data-theme])":`${o}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let g=new URLSearchParams(window.location.search).get("globalTheme");g&&(s=g)}let i=Ao({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=o);let a=Ta(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,p=i.useSvgSprite,u=e.svg,d=i.useIconSprite,h=e.icons;if(f&&ne(a),l&&(ne({[o]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let g={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?g[y]={[n]:i.CSS_MEDIA_VARS[y]}:g[y]=i.CSS_MEDIA_VARS[y];ne(g)}c&&ne(i.reset);let m=i.animation;if(m){let g={};for(let y in m)g[`@keyframes ${y}`]=m[y];ne(g)}return(u||p)&&nc(i.svg,{document:t.document}),(h||d)&&ic(i.icons,{document:t.document}),i},Ls={},Dy=(e,t=Ls)=>{let r=Fy(e||{},t),o=t.scopeSelector||":root",n=o===":root"?":root:not([data-theme])":`${o}:not([data-theme])`,s=Ao({verbose:!1,...r});if(!t.preventInject){if(ne({[o]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[n]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];ne(i)}ne(s.reset)}return s},Ly=(e,t=Ls)=>{ne(e)},GI=(e,t=Ls)=>{let r=t.scopeSelector||":root",o=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(ne({[r]:e.CSS_VARS}),e.CSS_MEDIA_VARS){let n={};for(let s in e.CSS_MEDIA_VARS)s.startsWith("@media")?n[s]={[o]:e.CSS_MEDIA_VARS[s]}:n[s]=e.CSS_MEDIA_VARS[s];ne(n)}};var KI=(e,t=Ls)=>{};T();var My=e=>!e||e==="srcdoc"||e==="about:srcdoc"||e==="blank"||e==="about:blank"?"/":e,kl={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Ny=(e,t)=>{if(!t)return e;let r=Array.isArray(t)?t:t.split("."),o=e;for(let n of r){if(!o||!o[n])return null;o=o[n]}return o},By=(e,t)=>{if(t.router===!1)return;t.router===!0?t.router=kl:t.router=J(t.router||{},kl);let r=t.router,o=async(s,i)=>{let a=s.context?.window||_;if(!a.location)return;let{pathname:c,search:l,hash:f}=a.location;c=My(c);let p=c+l+f,u=s;if(r.customRouterElement){let d=Ny(s,r.customRouterElement);d&&(u=d,s.routes&&(u.routes=s.routes))}u.routes&&await Ee(p,u,{},{initialRender:!0,pushState:!1})},n=!oe(e.onRenderRouter);return r&&r.initRouter&&!n&&(e.onRenderRouter=o),G_(t,r),r},Cl=(e,t)=>{if(t.router===!1)return;let r=t.router||kl;if(!r.popState)return;let o=t.utils&&t.utils.router?t.utils.router:Ee,n=t.window||_,s=async i=>{let{pathname:a,search:c,hash:l}=n.location;a=My(a);let f=a+c+l,p=e;if(r.customRouterElement){let u=Ny(e,r.customRouterElement);u&&(p=u,e.routes&&(p.routes=e.routes))}await p.call("router",f,p,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};n.addEventListener("popstate",s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>n.removeEventListener("popstate",s))},G_=(e,t)=>{let{components:r}=e;if(t&&t.injectRouterInLinkComponent)return W(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};T();var Al=_&&_.location?_.location.host.includes("dev."):jt(),jy=Al?"http://localhost:8080/get":"https://api.symbols.app/get",K_={endpoint:jy},zy=async(e,t=K_)=>{let r=t.endpoint||jy,o=t.serviceRoute?E(t.serviceRoute)?t.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):t.serviceRoute:"",n;try{return n=await globalThis.fetch(r+"/?"+o,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":e,"X-Metadata":t.metadata}}),await n.json()}catch(s){if(k(t.onError))return t.onError(s);console.error(s)}},Y_=async(e,t)=>{let{editor:r}=t;if(r&&r.remote){let o=await zy(e,r),n=Al||t.isDevelopment?je(o):je(o.releases[0]);r.serviceRoute?E(r.serviceRoute)?r.serviceRoute.forEach(s=>{ke(t[s],n[s.toLowerCase()])}):ke(t[r.serviceRoute],n):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{ke(t[s],n[s.toLowerCase()])})}return t},X_=async(e,t,r)=>{let{editor:o}=t;if(o&&o.remote){let n=await zy(e,o),s=Al||t.isDevelopment?je(n):je(n.releases[0]);r(s)}},Wy=async(e,t)=>{if(e&&t.editor)try{t.editor.async||await Y_(e,t)}catch(r){console.error(r)}},Vy=(e,t,r,o)=>{if(t&&r.editor)try{r.editor.async&&X_(t,r,o||(n=>{let s=n.designSystem;v(s)&&r.utils.init(s),v(n.state)&&e.state.set(n.state)}))}catch(n){console.error(n)}};var Ms=e=>{if(!e||e.__destroyed)return!1;let t=e.context;if(!t)return e.__destroyed=!0,!1;if(Array.isArray(t.__teardowns)){for(let r of t.__teardowns)try{r()}catch(o){console.error("[smbls] destroy teardown error:",o)}t.__teardowns.length=0}try{Ar(e)}catch(r){console.error("[smbls] dispose error:",r)}if(t.fetch&&t.fetch.__resolved&&delete t.fetch.__resolved,t.fetch&&t.fetch.__resolving&&delete t.fetch.__resolving,t.db&&t.db.__resolved&&delete t.db.__resolved,t.db&&t.db.__resolving&&delete t.db.__resolving,t.analyze?.destroy)try{t.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return e.__destroyed=!0,!0};T();var Z_={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"}},J_=e=>{if(e.tag==="link")return`link[${e.attr}="${e.key}"]`;if(e.tag&&!e.attr&&!e.key)return e.tag;if(e.tag&&e.attr&&e.key)return`${e.tag}[${e.attr}="${e.key}"]`},Ns=(e,t,r)=>{if(!e)return{};let o=k(e)?V(e,t,r):{...e};if(!v(o))return{};for(let n in o){let s=o[n];k(s)&&(s=V(s,t,r)),S(s)&&s.includes("{{")&&t?.call&&(s=t.call("replaceLiteralsWithObjectFields",s,r)),o[n]=s}return o};var Q_=(e,t)=>{let r=t.createElement(e.tag);return e.attr&&r.setAttribute(e.attr,e.key),(t.head||t.querySelector("head")).appendChild(r),r},Bs=(e,t)=>{if(!(!v(e)||!t))for(let r in e){let o=e[r];if(o==null)continue;let n=Z_[r];if(!n)continue;let s=J_(n),i=t.querySelector(s)||Q_(n,t);i&&(r==="title"?i.textContent=o:n.valueAttr?i.setAttribute(n.valueAttr,o):i.setAttribute("content",o))}};var Hy={name:"helmet",create(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let o=Ns(t,e,e.state);Bs(o,r)},update(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let o=Ns(t,e,e.state);Bs(o,r)}};Vt();var Uy=(e,t,r,o)=>{e&&mo(e,t,r,o)},qy=(e,t,r)=>{if(!e)return;let o=t.context?.document||typeof document<"u"&&document;if(!o)return;let n=Ns(e,t,r);Bs(n,o)},Gy=async(e,t)=>{if(!e)return;let r={tag:"fragment",...e},o=async()=>{await t.set(r,{preventDefineUpdate:"$router"})};return t.lazyLoad?window.requestAnimationFrame(o):await o(),r},Po={routes:e=>e,metadata:qy,fetch:Uy,$router:Gy},ek=(e={})=>{let t={routes:r=>r};return e.metadata!==!1&&(t.metadata=qy),e.fetch!==!1&&(t.fetch=Uy),e.router!==!1&&(t.$router=Gy),t};var Ky={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},El={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},js={...Ky,router:El},tk={state:{},pages:{},components:{},router:El,define:Po},Tt=tk;var Us={};C(Us,{A:()=>sx,AssetPicture:()=>pb,Audio:()=>mb,Avatar:()=>vx,B:()=>Fb,Block:()=>Yy,Box:()=>Hs,Br:()=>Nb,Button:()=>cx,ButtonSet:()=>px,COMPONENTS:()=>$r,Caption:()=>Cb,Checkbox:()=>Kb,CheckboxHgroup:()=>Yb,Circle:()=>lb,CircleButton:()=>fx,Clickable:()=>ib,Data:()=>Lb,Dialog:()=>hx,DialogFooter:()=>gx,DialogHeader:()=>mx,Dropdown:()=>wx,DropdownList:()=>_x,DropdownParent:()=>kx,DropdownParentFocus:()=>Cx,DropdownSiblingFocus:()=>Ax,FileIcon:()=>nx,Flex:()=>Zy,Focusable:()=>ab,FocusableComponent:()=>cb,Footnote:()=>$b,Form:()=>ob,Grid:()=>Qy,Gutter:()=>tb,H1:()=>bb,H2:()=>xb,H3:()=>vb,H4:()=>Sb,H5:()=>wb,H6:()=>_b,Headline:()=>Pb,Hgroup:()=>Vb,HgroupButton:()=>Ub,HgroupRows:()=>Hb,Hoverable:()=>sb,Hr:()=>Mb,I:()=>Db,Icon:()=>rx,IconButton:()=>dx,IconText:()=>ox,Iframe:()=>nb,Img:()=>rb,Inline:()=>Xy,InlineFlex:()=>Jy,InlineGrid:()=>eb,Input:()=>qb,Italic:()=>Ob,KangorooButton:()=>ux,Li:()=>Bb,Link:()=>Zl,Notification:()=>Ex,NumberInput:()=>Gb,Ol:()=>zb,P:()=>kb,Picture:()=>ub,Radio:()=>Xb,RadioHgroup:()=>Zb,Range:()=>Sx,RouteLink:()=>ix,RouterLink:()=>Jl,SHAPES:()=>Ws,Select:()=>ax,Shape:()=>$l,Span:()=>yb,SquareButton:()=>lx,Strong:()=>Ab,Subhead:()=>Ib,Svg:()=>db,Text:()=>gb,Textarea:()=>ex,TextareaWithButton:()=>tx,Theme:()=>fb,Title:()=>Rb,Toggle:()=>Jb,ToggleHgroup:()=>Qb,Tooltip:()=>yx,TooltipHidden:()=>bx,TooltipParent:()=>xx,U:()=>Eb,Ul:()=>jb,Underline:()=>Tb,Video:()=>hb,depth:()=>Vs,getSystemGlobalTheme:()=>Io});var Tl={};C(Tl,{Block:()=>Yy,Flex:()=>Zy,Grid:()=>Qy,Gutter:()=>tb,Inline:()=>Xy,InlineFlex:()=>Jy,InlineGrid:()=>eb});var Yy={display:"block"},Xy={display:"inline"},Zy={display:"flex"},Jy={display:"inline-flex"},Qy={display:"grid"},eb={display:"inline-grid"},tb={boxSize:"C1"};var Ol={};C(Ol,{Img:()=>rb});T();var rb={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=X(e);return t&&t.src||e.src},srcset:e=>{let t=X(e);return(t?pr(t):"")||e.srcset}}};var Rl={};C(Rl,{Form:()=>ob});var ob={tag:"form"};var Pl={};C(Pl,{Iframe:()=>nb});var nb={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Il={};C(Il,{Clickable:()=>ib,Focusable:()=>ab,FocusableComponent:()=>cb,Hoverable:()=>sb});var rk={appearance:"none",cursor:"pointer",fontFamily:"inherit"},sb={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}}},ib={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},ab={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},cb={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:rk};var Ll={};C(Ll,{Picture:()=>ub});var Dl={};C(Dl,{Theme:()=>fb,getSystemGlobalTheme:()=>Io});var Fl={};C(Fl,{Circle:()=>lb,SHAPES:()=>Ws,Shape:()=>$l,default:()=>ok,depth:()=>Vs});T();var Fe=A(),Vs={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Fe.unit.default} 4${Fe.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Fe.unit.default} 6${Fe.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Fe.unit.default} 10${Fe.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Fe.unit.default} 16${Fe.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Fe.unit.default} 26${Fe.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Fe.unit.default} 42${Fe.unit.default}`}},Ir=e=>H(e.shapeDirectionColor)||H(e.borderColor)||H(e.backgroundColor)||H(e.background),zs=e=>{let t=Er.transition(e.transition,e);return t&&t.transition},Ws={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Ir(e),transition:zs(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:Ir(e),transition:zs(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Ir(e),transition:zs(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:zs(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Ir(e)} 25%, transparent 25%), linear-gradient(315deg, ${Ir(e)} 25%, transparent 25%)`},"&:after":{background:Ir(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},$l={deps:{exec:V,getSpacingBasedOnRatio:Ve,getMediaColor:fe},classlist:{shape:e=>e.deps.exec(Ws[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Ws[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},lb={round:"100%"},ok=$l;T();var Io=({context:e,state:t})=>{let r=t&&t.root,o=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return o==="auto"?null:o},fb={deps:{depth:Vs},classlist:{depth:e=>!oe(e.depth)&&e.deps.depth[e.depth]}};var ub={deps:{getSystemGlobalTheme:Io},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Io},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:o}=e,{media:n}=r.designSystem,s=o.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":n[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}};var Ml={};C(Ml,{AssetPicture:()=>pb});T();var pb={tag:"picture",children:e=>{let t=X(e);if(t)return dr(t,e.alt)}};var Nl={};C(Nl,{Svg:()=>db});var db={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:o}=t,n=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=u=>`<use xlink:href="#${u}" />`,c=e.spriteId;if(c)return a(c);if(n&&n[i])return a(i);let l=Symbol.for(i),f=n[l];if(f&&n[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 p=0;for(let u=0;u<i.length;u++)p=(p<<5)-p+i.charCodeAt(u)|0;return f=n[l]=`svg-${(p>>>0).toString(36)}`,o.init({svg:{[f]:i}},{document:t.document,emotion:t.emotion}),a(f)}};var Bl={};C(Bl,{Video:()=>hb});T();var hb={tag:"video",controls:!0,attr:{src:e=>{let t=X(e);return t&&t.src||e.src}},children:e=>{let t=X(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var jl={};C(jl,{Audio:()=>mb});T();var mb={tag:"audio",controls:!0,attr:{src:e=>{let t=X(e);return t&&t.src||e.src}},children:e=>{let t=X(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var zl={};C(zl,{B:()=>Fb,Caption:()=>Cb,Data:()=>Lb,Footnote:()=>$b,H1:()=>bb,H2:()=>xb,H3:()=>vb,H4:()=>Sb,H5:()=>wb,H6:()=>_b,Headline:()=>Pb,I:()=>Db,Italic:()=>Ob,P:()=>kb,Span:()=>yb,Strong:()=>Ab,Subhead:()=>Ib,Text:()=>gb,Title:()=>Rb,U:()=>Eb,Underline:()=>Tb});var gb={},yb={tag:"span"},bb={tag:"h1"},xb={tag:"h2"},vb={tag:"h3"},Sb={tag:"h4"},wb={tag:"h5"},_b={tag:"h6"},kb={tag:"p"},Cb={tag:"caption"},Ab={tag:"strong",fontWeight:"700"},Eb={tag:"u"},Tb={tag:"u"},Ob={tag:"i"},Rb={},Pb={tag:"h6",fontSize:"B",fontWeight:500},Ib={tag:"span",fontSize:"Z1"},$b={tag:"span",fontSize:"Z"},Fb={tag:"b"},Db={tag:"i"},Lb={tag:"data"};var Wl={};C(Wl,{Box:()=>Hs,Br:()=>Nb,Hr:()=>Mb,Li:()=>Bb,Ol:()=>zb,Ul:()=>jb});var nk=e=>{if(!e.context)return;let{props:t,__ref:r}=e,o=ve(t,e,{unpack:!1});r.__class=o},Hs={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:nk},Mb={tag:"hr",margin:"C1 0"},Nb={tag:"br"},Bb={tag:"li"},jb={tag:"ul",childExtends:{extends:"Li"}},zb={tag:"ol",childExtends:{extends:"Li"}};var Vl={};C(Vl,{Hgroup:()=>Vb,HgroupButton:()=>Ub,HgroupRows:()=>Hb});var Wb=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},Vb={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:Wb,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:Wb,margin:"0",color:"paragraph"}},Hb={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Ub={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Hl={};C(Hl,{Input:()=>qb});var qb={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}};var Ul={};C(Ul,{NumberInput:()=>Gb});var Gb={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}};var ql={};C(ql,{Checkbox:()=>Kb,CheckboxHgroup:()=>Yb});var Kb={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},Yb={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Gl={};C(Gl,{Radio:()=>Xb,RadioHgroup:()=>Zb});var Xb={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}},Zb={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Kl={};C(Kl,{Toggle:()=>Jb,ToggleHgroup:()=>Qb});var Jb={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}},Qb={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Yl={};C(Yl,{Textarea:()=>ex,TextareaWithButton:()=>tx});var ex={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"}},tx={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 Xl={};C(Xl,{FileIcon:()=>nx,Icon:()=>rx,IconText:()=>ox});var rx={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:o}=e,{icons:n,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=w=>{let O=w[".isActive"];if(O)return w.call("exec",O.name||O.icon)},l=(w,O,$)=>{let{semanticIcons:P}=$&&$.designSystem,{toCamelCase:I}=$&&$.utils,R=f(w,O),pe=I(R).split(/([a-z])([A-Z])/g),Z=pe[1]?pe[0]:R.split(".")[0].split(" ")[0],K=P&&P[Z];if(K){let Le=R.includes(".")?"sfsymbols."+R.split(".").slice(1).join("."):"sfsymbols";return R=K[Le]||K[R.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${R}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(w,O)=>{let{key:$}=w,P=w.call("exec",w.name||w.icon||$,w);return w.call("isString",P)&&P.includes("{{")&&(P=w.call("replaceLiteralsWithObjectFields",P)),w.call("isString",P)?P:$},p=f(e,t);if(p.includes(" ")){let w=p.split(" ");p=w[0]+w.slice(1).map(O=>O.charAt(0).toUpperCase()+O.slice(1)).join("")}let u=a(p),d=u.split(/([a-z])([A-Z])/g),h=l(e,t,r);if(h){Object.assign(e,h);return}let m;e.isActive&&(m=c(e));let g=o[".isActive"];o&&o.isActive&&g&&g.icon&&(m=e.call("exec",g.icon||g.Icon.name||g.Icon.icon,e)),e.call("isString",m)&&m.includes("{{")&&(m=e.call("replaceLiteralsWithObjectFields",m));let y;n[m]&&(y=m),n[u]?y=u:n[d[0]+d[1]]?y=d[0]+d[1]:n[d[0]]?y=d[0]:i&&e.warn("Can't find icon:",p,y);let b=n[y],x=o&&o.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||x||n.noIcon})},attr:{viewBox:"0 0 24 24"}},ox={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},nx={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Ql={};C(Ql,{A:()=>sx,Link:()=>Zl,RouteLink:()=>ix,RouterLink:()=>Jl});var sk=(e,t,r)=>{let{context:o}=t,{href:n,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",n,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=o,u=t.__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){e.preventDefault();try{let h=u;if(p&&p.customRouterElement){let m=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),g=u;for(let y of m){if(!g||!g[y]){g=null;break}g=g[y]}g&&(h=g,u.routes&&(h.routes=u.routes))}(f.router||l.router||c.router||Ee)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...p,...t.routerOptions})}catch(h){console.warn(h)}}},Zl={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>st(e,e.href)||st(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:sk},sx={extends:"Link"},Jl={onClick:(e,t,r)=>{let{context:o}=t,{href:n,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",n,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=o,u=t.__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){e.preventDefault();try{let h=u;if(p&&p.customRouterElement){let m=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),g=u;for(let y of m){if(!g||!g[y]){g=null;break}g=g[y]}g&&(h=g,u.routes&&(h.routes=u.routes))}(f.router||l.router||c.router||Ee)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...p,...t.routerOptions})}catch(h){console.warn(h)}}}},ix={extends:[Zl,Jl]};var ef={};C(ef,{Select:()=>ax});var ax={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}};var tf={};C(tf,{Button:()=>cx,ButtonSet:()=>px,CircleButton:()=>fx,IconButton:()=>dx,KangorooButton:()=>ux,SquareButton:()=>lx});var cx={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},lx={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"},fx={extends:"SquareButton",round:"C"},ux={extends:"Button",childExtends:"IconText"},px={tag:"nav",display:"flex",childExtends:"SquareButton"},dx={extends:["SquareButton","ClickableItem"],round:"Z"};var rf={};C(rf,{Dialog:()=>hx,DialogFooter:()=>gx,DialogHeader:()=>mx});var hx={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},mx={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},gx={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 of={};C(of,{Tooltip:()=>yx,TooltipHidden:()=>bx,TooltipParent:()=>xx});T();var yx={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>me(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},bx={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},xx={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,o=t||r;if(!o)return;let n=o&&o[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var nf={};C(nf,{Avatar:()=>vx});var vx={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`};var sf={};C(sf,{Range:()=>Sx});var Sx={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:Ut("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Ut("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let o=e.call("exec",e[t],e);return(e.call("isFunction",o)?o(e,e.state):o!==void 0?o:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}};var af={};C(af,{Dropdown:()=>wx,DropdownList:()=>_x,DropdownParent:()=>kx,DropdownParentFocus:()=>Cx,DropdownSiblingFocus:()=>Ax});var wx={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"},_x={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},kx={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Cx={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Ax={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}};var cf={};C(cf,{Notification:()=>Ex});var Ex={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 $r=Object.assign({},Tl,Ol,Rl,Pl,Il,Ll,Ml,Nl,Fl,Bl,jl,Dl,zl,Wl,Vl,Hl,Ul,ql,Gl,Kl,Yl,Xl,Ql,ef,tf,rf,of,nf,sf,af,cf);T();T();var Tx=(e,t)=>L(e.extends)?e.extends:[];T();var Ix=e=>{let t=typeof window<"u"?window:globalThis||{};t.document||(t.document={body:{}});let r=typeof document<"u"?document:t.document;return e.document=e.document||r,e.window=e.window||t,e.window},Ox=(e="smbls")=>{let t={};for(let r in $r)Object.prototype.hasOwnProperty.call($r,r)&&(ft(r)?t[`smbls.${r}`]=$r[r]:t[r]=$r[r]);return t},$x=e=>e.components?{...Ox(),...e.components}:Ox(),Fx=e=>({...Ro,...cl,...br,...e.utils,...e.snippets,...e.functions}),Dx=e=>({...e.methods||{},require:e.utils.require,requireOnDemand:e.utils.requireOnDemand,router:e.utils.router}),Rx={},Lx=async({dependencies:e,dependenciesOnDemand:t,document:r,preventCaching:o=!1,cdnProvider:n,packageManager:s,symbolsConfig:i})=>{if(n||(n=Ht[s]||bo(i)||"esmsh"),!e)return null;let a=!1;for(let c in e){a=!0;break}if(!a)return null;for(let c in e){let l=e[c];if(t&&t[c])continue;let f=jt()&&o?`?${Math.random()}`:"",p=tt(c,l,n)+f;try{if(Rx[c])continue;Rx[c]=!0,await Promise.race([xo(p,{document:r,type:"module"}),new Promise((u,d)=>setTimeout(()=>d(new Error(`Timeout loading ${c}`)),1e4))])}catch(u){if(console.error(`Failed to load ${c} from ${n}:`,u),n!=="symbols")try{let d=tt(c,l,"symbols")+f;await Promise.race([xo(d,{document:r}),new Promise((h,m)=>setTimeout(()=>m(new Error(`Timeout fallback ${c}`)),1e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return e},Mx=async(e,t)=>{let r=t.window||window,o=t.cdnProvider||bo(t.symbolsConfig)||"esmsh",n=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=o)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,p=i.window||window;if(!p.packages[a]){let u=jt()?`?${Math.random()}`:"";if(l&&l[a]){let d=l[a],h=tt(a,d,c)+u;try{await i.utils.loadRemoteScript(h,{window:p,document:f})}catch(m){if(console.error(`Failed to load ${a} from ${c}:`,m),c!=="symbols"){let g=tt(a,d,"symbols")+u;await i.utils.loadRemoteScript(g,{window:p,document:f})}}}else{let d=tt(a,"latest",c)+u;try{await i.utils.loadRemoteScript(d,{window:p,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=tt(a,"latest","symbols")+u;await i.utils.loadRemoteScript(m,{window:p,document:f})}}p.packages[a]="loadedOnDeman"}}return await p.require(a,c)};r.packages?r.packages=J(r.packages,e):r.packages=e,r.require||(t.utils.require=await n(t),r.require=t.utils.require),r.requireOnDemand||(t.utils.requireOnDemand=await s(t),r.requireOnDemand=t.utils.requireOnDemand)},ik=/\s+/g,Nx=(e,t)=>typeof e=="function"?e(t,t?.state,t?.context):e,ak=(e,t)=>{let r="";for(let o in e){let n=e[o];typeof n=="boolean"&&n?r+=` ${o}`:typeof n=="string"?r+=` ${n}`:typeof n=="function"&&(r+=` ${Nx(n,t)}`)}return r},ck=(e,t,r)=>{if(!e)return;let{key:o}=t;e===!0&&(e=t.classlist={key:o}),typeof e=="string"&&(e=t.classlist={default:e}),e!==null&&typeof e=="object"&&!Array.isArray(e)&&(e=ak(e,t));let n=e.replace(ik," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n},lk=()=>(e,t,r)=>{let o=Nx(e,t);if(e){let{__ref:n}=t;n.__class.style=o}Bx()(t.classlist,t,t.state,!0)},Bx=()=>(e,t,r,o)=>{if(t.style&&!o)return;let{__ref:n}=t,{__class:s,__classNames:i}=n;if(!(e===null||typeof e!="object"||Array.isArray(e))){t.class&&(i.classProps=t.class),t.attr?.class&&(i.class=t.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c=="string"||typeof c=="number"?l=c:typeof c=="boolean"?l=t.key:l=Zt(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];t.node&&ck(i,t,t.node)}},fk=()=>({style:lk(),classlist:Bx()}),uk=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],Px=!1,jx=(e,t)=>{let r=t.document||(t.parent&&t.parent.documentElement?t.parent:null)||document,o=t.initOptions||{},n=t.registry||fk(),s=t.designSystem?W(Y(t.designSystem),Es):Y(Es),i={};for(let d of uk)t[d]!==void 0&&(i[d]=t[d]);let a,c=Px&&!t.skipDesignSystemInit,l=c?`[data-smbls-app="${e}"]`:":root";t.scopeSelector=l;let f=l===":root"?":root:not([data-theme])":`${l}:not([data-theme])`;if(t.skipDesignSystemInit){if(a=A(e)||A(),a&&(a.document=r),a?.CSS_VARS){ue(a);try{if(ne({[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];ne(d)}}finally{le()}}}else if(c){let d=Eh(e,s,{cleanBase:!0});for(let m in i)d[m]=i[m];d.document=r;let h=e.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);t.cssPrefix=h,d.varPrefix=h,ue(d);try{a=Et(d,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:l,...js,...i,...o})}finally{le()}}else{let d=A();d&&(d.document=r),a=Et(s,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:l,...js,...i,...o}),a&&a!==d&&(a.document=r),Px=!0}let p=a?.CONFIG||a,u=p?.font;if(u){ue(p);try{for(let d in u){let h=u[d];if(!h?.fontFace)continue;let m=Array.isArray(h.fontFace)?h.fontFace:[h.fontFace];for(let g of m)typeof g=="string"&&g.includes("font-family")&&ne(`@font-face { ${g} }`)}}finally{le()}}return[a,n]},zx=(e,t)=>{let r={};t.state&&W(r,t.state),e&&e.state&&W(r,e.state);let o=t.polyglot;if(o?.translations){let n=null;try{typeof localStorage<"u"&&(n=localStorage.getItem(o.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=n||r.lang||o.defaultLang||"en";n&&n!==r.lang&&(r.lang=n);let i=o.translations[s];if(i&&typeof i=="object")for(let c in i)r[c]=i[c];let a=new Set(o.languages||[]);for(let c in o.translations)!a.has(c)&&r[c]===void 0&&(r[c]=o.translations[c])}return r.isRootState=!0,Y(r)},Wx=(e,t)=>{v(e.routes)&&v(t.pages)&&J(e.routes,t.pages);let r=e.routes||t.pages||{};for(let o in r){if(o.charCodeAt(0)===47)continue;let n=o==="index"?"":o;r["/"+n]=r[o],delete r[o]}return r},Vx=e=>{rs(e,e.sharedLibraries)};T();var Ux="smbls_lang",pk="smbls_t_",dk="smbls_tv_",Fr={get(e){try{return window?.localStorage.getItem(e)}catch{return null}},set(e,t){try{window?.localStorage.setItem(e,t)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(e){try{window?.localStorage.removeItem(e)}catch(t){console.warn("[polyglot] localStorage unavailable:",t.message)}}},$o={};function Gs(){let e=this?.context,t=e?.polyglot;return(this?.state?.root||e?.state?.root)?.lang||t?.defaultLang||"en"}function lf(){let e=this?.context?.polyglot;return e?e.languages?e.languages:e.translations?Object.keys(e.translations):[]:[]}var qs=(e,t)=>{if(!e||!t)return;if(e[t]!==void 0)return e[t];if(t.indexOf(".")===-1)return;let r=t.split("."),o=e;for(let n=0;n<r.length;n++){if(o==null)return;o=o[r[n]]}return o},Hx=(e,t,r)=>{let o=t.lastIndexOf(".");if(o===-1)return e[t+"_"+r];let n=qs(e,t.substring(0,o));if(n!=null)return n[t.substring(o+1)+"_"+r]};function ff(e,t){if(!e)return"";let r=this?.context,o=r?.polyglot,n=t||this.call("getActiveLang"),s=this?.state;if(s){let l=Hx(s,e,n);if(l!==void 0)return l}if(o?.translations){let l=o.translations[n];if(l){let f=qs(l,e);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[n];if(l){let f=qs(l,e);if(f!==void 0)return f}}let c=o?.defaultLang||"en";if(s){let l=Hx(s,e,c);if(l!==void 0)return l}if(o?.translations){let l=o.translations[c];if(l){let f=qs(l,e);if(f!==void 0)return f}}return e}async function uf(e){let t=this?.context,r=t?.polyglot,o=this?.state?.root||t?.state?.root;if(!r||!o)return;let n=r.storagePrefix||pk,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):dk);if(r.translations&&r.translations[e]&&!r.fetch||!r.fetch||r._fetchFailed?.[e])return;if(!o.translations?.[e]){let c=Fr.get(n+e);if(c)try{let l=JSON.parse(c),f={translations:{...o.translations||{}}};f.translations[e]=l,o.update&&o.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(r.storagePrefix||"smbls")+":"+e;if($o[i])return $o[i];let a=this;return $o[i]=(async()=>{try{let c=r.fetch,l=parseInt(Fr.get(s+e),10)||0,f,p,u;if(k(c)){let h=await c(e,l,a);if(!h||h.changed===!1)return;f=h.translations||h.data||h,p=h.version||0,u=!0}else if(v(c)){let h=a.getDB||(()=>t.fetch),m=k(h)?await h.call(a):t.fetch;if(!m)return;let g=c.rpc||c.from||"get_translations_if_changed",y={p_lang:e,p_cached_version:l,...c.params||{}},b=await m.rpc({from:g,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[e]=!0,b.error;let x=b.data;if(!x||!x.changed)return;f=x.translations||{},p=x.version||0,u=!0}else return;if(!u||!f)return;Fr.set(n+e,JSON.stringify(f)),p&&Fr.set(s+e,String(p));let d={translations:{...o.translations||{}}};d.translations[e]=f,o.update&&o.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",e,"-",l)}}finally{delete $o[i]}})(),$o[i]}async function pf(e){let t=this?.context,r=t?.polyglot,o=this?.state?.root||t?.state?.root;if(!o||this.call("getActiveLang")===e)return;let n=r?.storageLangKey||Ux;Fr.set(n,e),r?.fetch&&await this.call("loadTranslations",e),t?.state&&(t.state.lang=e);let s=r?.translations?.[e],i={lang:e};if(s&&typeof s=="object")for(let c in s){let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}if(o.update&&o.update(i),s&&typeof s=="object")for(let c in s){let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&o[c]&&typeof o[c]=="object"&&!Array.isArray(o[c]))for(let f in l)o[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 p=f.__ref?.__exec?.text;if(typeof p=="string"&&p.includes("{{"))try{let u=f.call("replaceLiteralsWithObjectFields",p,f.state);u!=null&&l.textContent!==u&&(l.textContent=u)}catch{}}}}async function df(e,t,r){let o=this?.context,n=o?.polyglot,s=this?.state?.root||o?.state?.root;if(s?.translations?.[t]&&(s.translations[t][e]=r),n?.translations?.[t]&&(n.translations[t][e]=r),n?.fetch&&v(n.fetch)){let i=this.getDB||(()=>o.fetch),a=k(i)?await i.call(this):o.fetch;if(!a)return;let c=n.fetch.table||"translations",l=await a.upsert({from:c,data:{key:e,lang:t,text:r}});if(l?.error)throw l.error;return l.data}}async function qx(){let e=this?.context,t=e?.polyglot;if(!t)return;let r=this?.state?.root||e?.state?.root;if(!r)return;let o=t.storageLangKey||Ux,s=Fr.get(o)||t.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),t.fetch&&!(t.translations&&t.translations[s])&&await this.call("loadTranslations",s)}function hf(e){try{let t=this?.context?.polyglot,o=(this?.state?.root||this?.context?.state?.root)?.lang||t?.defaultLang||"en",n=this?.state;if(!n)return"";let s=e.lastIndexOf(".");if(s===-1)return n[e+o]??"";let i=e.substring(0,s).split("."),a=n;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[e.substring(s+1)+o]??""}catch{return""}}var mf={name:"polyglot",render(e){e.parent&&e.parent.parent||e.__polyglotInitialized||(e.__polyglotInitialized=!0,qx.call(e))}};var Ks={polyglot:ff,getLocalStateLang:hf,getActiveLang:Gs,getLang:Gs,setLang:pf,getLanguages:lf,loadTranslations:uf,upsertTranslation:df};Vt();var Ys={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}},Xs=e=>parseFloat(e.toFixed(4)),hk=(e,t,r)=>{let{ascent:o,descent:n,lineGap:s,unitsPerEm:i,capHeight:a}=t,c=Math.abs(n),l=o+c+s,f=r!==void 0?r:l/i*e,p=f/e,u=l/i,d=(o-a+s/2)/i-(p-u)/2,h=(c+s/2)/i-(p-u)/2;return{fontSize:`${Xs(e/16)}rem`,lineHeight:`${Xs(f)}px`,capHeightTrim:`${Xs(-d)}em`,baselineTrim:`${Xs(-h)}em`}},mk=(e,t)=>{if(typeof e=="number")return e;let r=t?.designSystem;if(!r)return null;let{typography:o}=r;if(o?.sequence){let s=String(e).toUpperCase(),i=o.sequence[s];if(i)return i.decimal||i.val}let n=parseFloat(e);return isNaN(n)?null:typeof e=="string"&&e.endsWith("rem")?n*(r.typography?.browserDefault||16):n},gk=(e,t)=>{let o=t?.designSystem?.font_family||{};if(e){let s=o[e];if(s?.metrics)return s.metrics;let i=String(e).toLowerCase().replace(/['"]/g,"").trim();if(Ys[i])return Ys[i]}let n=o.default||Object.keys(o)[0];if(n){let s=o[n];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(Ys[a])return Ys[a]}}return null},Gx=(e,t,r,o)=>{if(!e)return;let n=mk(t.fontSize,o);if(!n)return;let s=gk(t.fontFamily,o);if(!s)return;let i=t.lineHeight?parseFloat(t.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=hk(n,s,i),f={};return t.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},Kx={name:"capsize",init(e){e.useCapsize===void 0&&e.fontSize&&(e.useCapsize=!0)}};var Fo={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"},De=Object.create(null);for(let e in Fo)De[Fo[e]]=e;var gf=Object.create(null);for(let e in Fo){let t=Fo[e];if(gf[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${gf[t]}"`);gf[t]=e}var Ot=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Do(e){return/^[A-Z]/.test(e)}function Lo(e){return/^[:@.!$>&]/.test(e)||e.startsWith("> ")}function yk(e){return e.trim().split(/\s+/).filter(Boolean)}function Yx(e){return e.replace(/_/g," ")}function bk(e){if(!e||typeof e!="string")return{};let t={},r=yk(e);for(let o of r){if(o.startsWith("!")){let c=o.slice(1),l=De[c]||c;t[l]=!1;continue}let n=o.indexOf(":");if(n===-1){let c=De[o]||o;t[c]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=De[s]||s;if(i.includes(",")){t[a]=i.split(",").map(Yx);continue}t[a]=Yx(i)}return t}function Mo(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Mo(r):r});let t={};for(let r in e){let o=e[r];if(Do(r)){t[r]=yf(o);continue}let n=De[r]||r;if(Lo(r)&&n===r){t[r]=yf(o);continue}if(Ot.has(n)||Ot.has(r)){t[n]=o;continue}t[n]=yf(o)}return t}function yf(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Mo(t):t}):typeof e=="object"?Mo(e):e}function No(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?No(r):r});let t={};if(typeof e.in=="string"){let r=bk(e.in);for(let o in r)t[o]=r[o]}for(let r in e){if(r==="in")continue;let o=e[r];if(Do(r)){t[r]=bf(o);continue}let n=De[r]||r;if(Lo(r)&&n===r){t[r]=bf(o);continue}if(Ot.has(n)||Ot.has(r)){t[n]=o;continue}t[n]=bf(o)}return t}function bf(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?No(t):t}):typeof e=="object"?No(e):e}function xk(e){let t="",r=0;for(;r<e.length;){if(e[r]==="\\"&&r+1<e.length){let o=e[r+1];if(o===","||o==="_"||o==="\\"){t+=o,r+=2;continue}}e[r]==="_"?t+=" ":t+=e[r],r++}return t}function vk(e){let t=[],r="",o=0;for(;o<e.length;){if(e[o]==="\\"&&o+1<e.length){r+=e[o]+e[o+1],o+=2;continue}if(e[o]===","){t.push(r),r="",o++;continue}r+=e[o],o++}return t.push(r),t}function Xx(e){return e.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(e)?Number(e.slice(1)):xk(e)}function xf(e){if(!e||typeof e!="string")return{};let t={},r=e.trim().split(/\s+/).filter(Boolean);for(let o of r){if(o.startsWith("!")){let l=o.slice(1),f=De[l]||l;t[f]=!1;continue}let n=o.indexOf(":");if(n===-1){let l=De[o]||o;t[l]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=De[s]||s,c=vk(i);if(c.length>1){t[a]=c.map(Xx);continue}t[a]=Xx(i)}return t}function Bo(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Bo(r):r});let t={};if(typeof e.in=="string"){let r=xf(e.in);for(let o in r)t[o]=r[o]}for(let r in e){if(r==="in")continue;let o=e[r];if(Do(r)){typeof o=="string"?t[r]=xf(o):t[r]=vf(o);continue}let n=De[r]||r;if(Lo(r)&&n===r){typeof o=="string"?t[r]=xf(o):t[r]=vf(o);continue}if(Ot.has(n)||Ot.has(r)){t[n]=o;continue}t[n]=vf(o)}return t}function vf(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Bo(t):t}):typeof e=="object"?Bo(e):e}var Sk={shorten:Mo,stringify:No,stringifyFurther:Bo};function wk(e,t){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(o=>t(o));let r={};for(let o in e){let n=e[o];r[o]=n&&typeof n=="object"?t(n):n}return r}var _k=["components","pages","snippets"],Zs={name:"shorthand",prepareContext(e){let t=e.shorthand;if(!t)return;let o=Sk[t===!0?"shorten":t];if(o){for(let n of _k)e[n]&&(e[n]=wk(e[n],o));e.app&&typeof e.app=="object"&&(e.app=o(e.app))}}};var kk=0,Ck=()=>`${Date.now().toString(36)}-${(kk++).toString(36)}`,z=(e,t,r={})=>({id:Ck(),ts:Date.now(),type:e,level:t,...r}),Ak=e=>{let t=[],r=e,o=0;for(;r&&o<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,o++;return t.join(" > ")},Dr=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:Ak(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null;var Lr=e=>e?.context?.analyze,Ek={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"}},Tk=(e,{category:t,type:r,level:o})=>n=>{let s=Lr(n);!s||!s.shouldCapture(t)||s.emit(z(r,o,{hook:e,element:Dr(n)}))},Zx=e=>(t,r)=>{let o=Lr(t);!o||!o.shouldCapture("state")||o.emit(z("state","debug",{hook:e,element:Dr(t),changedKeys:r?.changedKeys||null}))},jo={name:"analyze",error(e,t){let r=Lr(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let o=t?.error||t?.err||(t instanceof Error?t:null);r.emit(z("error","error",{hook:t?.hook||"error",element:Dr(e),error:o,message:o?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Lr(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(z("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Lr(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Lr(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(z("update","debug",{hook:"update",element:Dr(e),durationMs:r}))},beforeStateUpdate:Zx("beforeStateUpdate"),stateUpdate:Zx("stateUpdate")};for(let[e,t]of Object.entries(Ek))jo[e]=Tk(e,t);T();var Js={error:0,warn:1,info:2,debug:3,trace:4};var Sf=(e,t)=>{let r=Js[e],o=Js[t];return r==null||o==null?!0:r<=o},Qs=e=>Js[e]!=null?e:"warn";T();var ei=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var Ok=(e,t)=>{for(let r of t)if(r instanceof RegExp){if(r.test(e))return!0}else if(typeof r=="string"&&e.toLowerCase().includes(r.toLowerCase()))return!0;return!1},Rk=(e,t)=>{if(t!=="redact"){if(t==="hash"){let r=0,o=String(e);for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},wf=(e,t,r,o)=>{if(o>6||e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(s=>wf(s,t,r,o+1));let n={};for(let s of Object.keys(e))if(Ok(s,t)||ei.test(s)){let a=Rk(e[s],r);a!==void 0&&(n[s]=a)}else n[s]=wf(e[s],t,r,o+1);return n},_f=(e=[],t="mask")=>{let r=Array.isArray(e)?e:[e];return o=>{if(!o)return o;let{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...h}=o,m=wf(h,r,t,0);return{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...m}}};var Jx=e=>{let t=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,o=e.config.buildHash||null,n=e.config.appId||null;return s=>{if(!s)return s;let i=e.context?.routerOptions?.currentRoute||null,a=_,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:t,app:{id:n,build:o,route:i},meta:{ua:r,viewport:c}}}},Qx=()=>e=>{if(!e)return e;if(e.element&&typeof e.element=="object"){let t=e.element;(t.node||t.parent||t.__ref)&&(e={...e,element:{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,tag:t.tag||null,component:t.component||null}})}return e.error instanceof Error&&(e={...e,error:{name:e.error.name,message:e.error.message,stack:e.error.stack}}),e},e0=(e=1e3,t=500)=>{let r=new Map;return o=>{if(!o)return o;let n=`${o.type}:${o.level}:${o.message||""}:${o.error?.message||""}`,s=r.get(n),i=o.ts||Date.now();if(s&&i-s<e)return null;if(r.set(n,i),r.size>t){let a=Math.ceil(t/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return o}},t0=e=>t=>{if(!t)return t;let r=e[t.type];return r==null||r>=1?t:Math.random()>r?null:t},r0={redact:e=>_f(e.config.redact||[],e.config.maskStrategy),enrich:e=>Jx(e),summarize:()=>Qx(),dedupe:e=>e0(e.config.cache?.dedupeWindowMs||1e3),sample:e=>t0(e.config.sample||{})},Pk=(e,t)=>{if(typeof e=="function")return e;if(typeof e=="string"){let r=r0[e];return r?r(t):null}return null},kf=e=>{let t=e.config,r=Array.isArray(t.transformers)?t.transformers.slice():[],o=r.findIndex(s=>s==="redact");o>=0&&r.splice(o,1);let n=[];t.redact!==!1&&n.push(r0.redact(e));for(let s of r){let i=Pk(s,e);i&&n.push(i)}return s=>{let i=s;for(let a of n){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=n.slice(n.indexOf(a)+1),f=[];for(let p of c){let u=p,d=!1;for(let h of l)if(u=h(u),u==null){d=!0;break}!d&&u!=null&&f.push(u)}return f}i=c}return i}};T();var Ik={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},$k="\x1B[0m",ti=typeof _<"u"&&typeof _.document<"u",n0=(e={})=>{let t=e.minLevel||null,r=console.error.bind(console),o=console.warn.bind(console),n=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?o:n,a=`[analyze:${s.type}]`;if(ti)i(a,s);else{let c=Ik[s.level]||"";i(`${c}${a}${$k}`,s)}}},s0=(e,t={})=>{let r=t.max||e.config.cache?.max||500,o=new Array(r),n=0,s=0,i=a=>{o[n]=a,n=(n+1)%r,s<r&&s++};return e.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(n-s+r)%r;for(let l=0;l<s;l++)a[l]=o[(c+l)%r];return a},query:(a={})=>{let c=e.__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:()=>{n=0,s=0}},i},i0=(e={})=>{let t=e.url,r=e.batchMs!=null?e.batchMs:5e3,o=e.maxBatch||50;if(!t)return()=>{};let n=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!n.length)return;let c=JSON.stringify({events:n});n=[];let l=ti?new _.Blob([c],{type:"application/json"}):c;if(ti&&navigator.sendBeacon)try{navigator.sendBeacon(t,l);return}catch{}typeof fetch<"u"&&fetch(t,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:c,keepalive:!0}).catch(()=>{})};ti&&(_.addEventListener("pagehide",i,{passive:!0}),_.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(n.push(c),n.length>=o?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},o0={console:n0,memory:s0,beacon:i0},Cf=e=>{let t=Array.isArray(e.config.sinks)?e.config.sinks:["console"],r=[];for(let o of t)if(typeof o=="function")r.push(o);else if(typeof o=="string"){let n=o0[o];if(!n)continue;r.push(o==="memory"?n(e,{}):n({}))}else if(o&&typeof o=="object"&&o.type){let n=o0[o.type];if(!n)continue;r.push(o.type==="memory"?n(e,o):n(o))}return r};T();var Fk=typeof _<"u"&&typeof _.document<"u",Dk=new Set(["password","hidden"]),a0=(e,t)=>{let r=0,o=null,n=null;return(...s)=>{let i=Date.now();i-r>=t?(r=i,e(...s)):(n=s,o||(o=setTimeout(()=>{r=Date.now(),o=null,n&&(e(...n),n=null)},t-(i-r))))}},Af="__analyzeKeyPath",Mr=e=>{let t=e.target;if(!t)return{selector:null,key:null,path:null};if(t[Af])return t[Af];let r=[],o=t,n=0,s=null;for(;o&&n<64;){if(o.getAttribute){let a=o.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}o=o.parentNode,n++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:t.tagName?.toLowerCase()||null};else{let a=(t.tagName||"unknown").toLowerCase(),c=t.id?`#${t.id}`:"",l=t.className&&typeof t.className=="string"?"."+t.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{t[Af]=i}catch{}return i},Lk=(e,t)=>{if(t==="mask")return"***";if(t!=="redact"){if(t==="hash"){let r=0,o=String(e||"");for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},Mk=e=>!!(!e||e.tagName==="INPUT"&&Dk.has(e.type)||ei.test(e.name||"")||ei.test(e.id||"")||e.dataset?.analyze==="skip"),Ef=e=>{if(!Fk)return;let t=e.config.capture,r=e.config.throttle,o=e.__teardown,n=(s,i,a,c)=>{s.addEventListener(i,a,c),o.push(()=>s.removeEventListener(i,a,c))};if(t.errors&&(n(_,"error",s=>{e.emit(z("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}))}),n(_,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;e.emit(z("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),t.pointer){n(_,"click",i=>{e.emit(z("pointer","info",{hook:"click",target:Mr(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:c0(i)}))},{passive:!0,capture:!0}),n(_,"dblclick",i=>{e.emit(z("pointer","info",{hook:"dblclick",target:Mr(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),n(_,"contextmenu",i=>{e.emit(z("pointer","info",{hook:"contextmenu",target:Mr(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=a0(i=>{e.emit(z("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);n(_,"pointermove",s,{passive:!0})}if(t.keyboard&&n(_,"keydown",s=>{e.emit(z("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:c0(s),target:Mr(s)}))},{passive:!0,capture:!0}),t.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=Mk(a),f=a.dataset?.analyze==="track",p=null;f&&!l?p=a.value:e.config.maskFormValues!==!1&&(p=Lk(a.value,e.config.maskStrategy)),e.emit(z("forms","info",{hook:i.type,target:Mr(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:p}))};n(_,"input",s,{passive:!0,capture:!0}),n(_,"change",s,{passive:!0,capture:!0}),n(_,"submit",i=>{e.emit(z("forms","info",{hook:"submit",target:Mr(i)}))},{passive:!0,capture:!0})}if(t.scroll){let s=a0(()=>{e.emit(z("scroll","trace",{hook:"scroll",x:_.scrollX,y:_.scrollY}))},r.scroll);n(_,"scroll",s,{passive:!0,capture:!0})}if(t.viewport){let s=yn(()=>{e.emit(z("viewport","info",{hook:"resize",w:_.innerWidth,h:_.innerHeight,dpr:_.devicePixelRatio||1}))},r.resize);n(_,"resize",s,{passive:!0}),n(_,"orientationchange",()=>{e.emit(z("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),n(_.document,"visibilitychange",()=>{e.emit(z("viewport","info",{hook:"visibilitychange",hidden:_.document.hidden}))},{passive:!0}),e.emit(z("viewport","info",{hook:"initial",w:_.innerWidth,h:_.innerHeight,dpr:_.devicePixelRatio||1}))}if(t.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{e.emit(z("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(Nk)}))}catch{}return i.apply(console,a)},o.push(()=>{console[s]=i})}if(t.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())e.emit(z("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{}o.push(()=>s.disconnect())}catch{}},c0=e=>({shift:!!e.shiftKey,ctrl:!!e.ctrlKey,alt:!!e.altKey,meta:!!e.metaKey}),Nk=e=>{if(e==null)return e;if(typeof e=="object")try{return JSON.parse(JSON.stringify(e))}catch{return String(e)}return e};T();var Bk=typeof _<"u"&&typeof _.document<"u";var Tf=e=>{if(Bk&&e.config.capture.network){if(typeof _.fetch=="function"){let t=_.fetch.bind(_),r=function(o,n){if(n?.headers?.["X-Analyze-Beacon"])return t(o,n);let s=typeof o=="string"?o:o&&o.url||"",i=(n?.method||typeof o=="object"&&o?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return e.emit(z("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),t(o,n).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return e.emit(z("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 e.emit(z("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};_.fetch=r,e.__teardown.push(()=>{_.fetch=t})}if(typeof _.XMLHttpRequest=="function"){let t=_.XMLHttpRequest,r=t.prototype.open,o=t.prototype.send;t.prototype.open=function(n,s){return this.__analyze={method:String(n).toUpperCase(),url:String(s)},r.apply(this,arguments)},t.prototype.send=function(n){let s=this.__analyze;if(!s)return o.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();e.emit(z("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;e.emit(z("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;e.emit(z("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),o.apply(this,arguments)},e.__teardown.push(()=>{t.prototype.open=r,t.prototype.send=o})}}};var jk={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},zk={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},Wk={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},Vk=e=>{let t={...jk,...e};return t.replay&&Object.assign(t,zk),t.telemetry&&Object.assign(t,Wk),t},Hk=64,Uk=()=>{if(typeof _>"u"||!_.location)return null;try{let t=new URLSearchParams(_.location.search).get("analyze");return t||null}catch{return null}},Of=(e={})=>{let t=e===!0?{}:{...e};t.capture=Vk(t.capture||{});let r=Uk();(r==="debug"||t.debug)&&(t.level="debug",t.debug=!0,t.capture={...t.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r==="off"&&(t.enabled=!1),t.level=Qs(t.level||"warn"),t.cache={max:500,dedupeWindowMs:1e3,...t.cache||{}},t.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...t.throttle||{}},t.maskFormValues==null&&(t.maskFormValues=!0),t.maskStrategy||(t.maskStrategy="mask"),Array.isArray(t.sinks)||(t.sinks=["console","memory"]),Array.isArray(t.transformers)||(t.transformers=["enrich","summarize"]);let o={config:t,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},n=()=>{o.__pipeline||(o.__pipeline=kf(o),o.__sinks=Cf(o))};return o.shouldCapture=s=>o.config.enabled===!1?!1:!!o.config.capture[s],o.emit=s=>{if(s&&o.config.enabled!==!1&&!o.__paused&&Sf(s.level,o.config.level)){if(!o.__ready){if(s.level!=="error"&&!o.config.captureDuringHydration)return;o.__preBuffer.length<Hk&&o.__preBuffer.push(s);return}n(),l0(o,s)}},o.activate=s=>{if(o.context==null&&(o.context=s||null),o.__ready)return;o.__ready=!0;let i=o.__preBuffer;if(o.__preBuffer=[],i.length){n();for(let a of i)l0(o,a)}try{Ef(o)}catch(a){console.error("[analyze] browser attach error:",a)}try{Tf(o)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of o.__onActivate||[])try{a(o)}catch(c){console.error("[analyze] onActivate error:",c)}},o.pause=()=>{o.__paused=!0},o.resume=()=>{o.__paused=!1},o.setLevel=s=>{o.config.level=Qs(s)},o.setCapture=(s,i)=>{o.config.capture[s]=!!i},o.query=s=>o.__memory?o.__memory.query(s):[],o.snapshot=()=>o.__memory?o.__memory.snapshot():[],o.emitNetwork=s=>{if(!o.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";o.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})},o.flush=()=>{if(o.__sinks)for(let s of o.__sinks)typeof s.flush=="function"&&s.flush()},o.replay=()=>({initialSnapshot:o.__initialSnapshot,events:o.snapshot()}),o.destroy=()=>{for(let s of o.__teardown)try{s()}catch{}o.__teardown=[],o.__ready=!1,o.__paused=!0},o.__onActivate=[],o.onActivate=s=>{o.__onActivate.push(s)},o},l0=(e,t)=>{let r=e.__pipeline(t);if(r==null)return;let o=Array.isArray(r)?r:[r];for(let n of o){if(typeof e.config.onEvent=="function")try{e.config.onEvent(n)}catch{}for(let s of e.__sinks)try{s(n)}catch(i){console.error("[analyze] sink error:",i)}}};var Ye=Object.create(null);Ye.open="0";Ye.close="1";Ye.ping="2";Ye.pong="3";Ye.message="4";Ye.upgrade="5";Ye.noop="6";var zo=Object.create(null);Object.keys(Ye).forEach(e=>{zo[Ye[e]]=e});var Wo={type:"error",data:"parser error"};var p0=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",d0=typeof ArrayBuffer=="function",h0=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Vo=({type:e,data:t},r,o)=>p0&&t instanceof Blob?r?o(t):f0(t,o):d0&&(t instanceof ArrayBuffer||h0(t))?r?o(t):f0(new Blob([t]),o):o(Ye[e]+(t||"")),f0=(e,t)=>{let r=new FileReader;return r.onload=function(){let o=r.result.split(",")[1];t("b"+(o||""))},r.readAsDataURL(e)};function u0(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Rf;function m0(e,t){if(p0&&e.data instanceof Blob)return e.data.arrayBuffer().then(u0).then(t);if(d0&&(e.data instanceof ArrayBuffer||h0(e.data)))return t(u0(e.data));Vo(e,!1,r=>{Rf||(Rf=new TextEncoder),t(Rf.encode(r))})}var g0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ho=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<g0.length;e++)Ho[g0.charCodeAt(e)]=e;var y0=e=>{let t=e.length*.75,r=e.length,o,n=0,s,i,a,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let l=new ArrayBuffer(t),f=new Uint8Array(l);for(o=0;o<r;o+=4)s=Ho[e.charCodeAt(o)],i=Ho[e.charCodeAt(o+1)],a=Ho[e.charCodeAt(o+2)],c=Ho[e.charCodeAt(o+3)],f[n++]=s<<2|i>>4,f[n++]=(i&15)<<4|a>>2,f[n++]=(a&3)<<6|c&63;return l};var qk=typeof ArrayBuffer=="function",Uo=(e,t)=>{if(typeof e!="string")return{type:"message",data:b0(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:Gk(e.substring(1),t)}:zo[r]?e.length>1?{type:zo[r],data:e.substring(1)}:{type:zo[r]}:Wo},Gk=(e,t)=>{if(qk){let r=y0(e);return b0(r,t)}else return{base64:!0,data:e}},b0=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;var x0="",v0=(e,t)=>{let r=e.length,o=new Array(r),n=0;e.forEach((s,i)=>{Vo(s,!1,a=>{o[i]=a,++n===r&&t(o.join(x0))})})},S0=(e,t)=>{let r=e.split(x0),o=[];for(let n=0;n<r.length;n++){let s=Uo(r[n],t);if(o.push(s),s.type==="error")break}return o};function w0(){return new TransformStream({transform(e,t){m0(e,r=>{let o=r.length,n;if(o<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,o);else if(o<65536){n=new Uint8Array(3);let s=new DataView(n.buffer);s.setUint8(0,126),s.setUint16(1,o)}else{n=new Uint8Array(9);let s=new DataView(n.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(o))}e.data&&typeof e.data!="string"&&(n[0]|=128),t.enqueue(n),t.enqueue(r)})}})}var Pf;function ri(e){return e.reduce((t,r)=>t+r.length,0)}function oi(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),o=0;for(let n=0;n<t;n++)r[n]=e[0][o++],o===e[0].length&&(e.shift(),o=0);return e.length&&o<e[0].length&&(e[0]=e[0].slice(o)),r}function _0(e,t){Pf||(Pf=new TextDecoder);let r=[],o=0,n=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(o===0){if(ri(r)<1)break;let c=oi(r,1);s=(c[0]&128)===128,n=c[0]&127,n<126?o=3:n===126?o=1:o=2}else if(o===1){if(ri(r)<2)break;let c=oi(r,2);n=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),o=3}else if(o===2){if(ri(r)<8)break;let c=oi(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Wo);break}n=f*Math.pow(2,32)+l.getUint32(4),o=3}else{if(ri(r)<n)break;let c=oi(r,n);a.enqueue(Uo(s?c:Pf.decode(c),t)),o=0}if(n===0||n>e){a.enqueue(Wo);break}}}})}var If=4;function G(e){if(e)return Kk(e)}function Kk(e){for(var t in G.prototype)e[t]=G.prototype[t];return e}G.prototype.on=G.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};G.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};G.prototype.off=G.prototype.removeListener=G.prototype.removeAllListeners=G.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var o,n=0;n<r.length;n++)if(o=r[n],o===t||o.fn===t){r.splice(n,1);break}return r.length===0&&delete this._callbacks["$"+e],this};G.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],o=1;o<arguments.length;o++)t[o-1]=arguments[o];if(r){r=r.slice(0);for(var o=0,n=r.length;o<n;++o)r[o].apply(this,t)}return this};G.prototype.emitReserved=G.prototype.emit;G.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};G.prototype.hasListeners=function(e){return!!this.listeners(e).length};var pt=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),be=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),k0="arraybuffer";function ni(e,...t){return t.reduce((r,o)=>(e.hasOwnProperty(o)&&(r[o]=e[o]),r),{})}var Yk=be.setTimeout,Xk=be.clearTimeout;function dt(e,t){t.useNativeTimers?(e.setTimeoutFn=Yk.bind(be),e.clearTimeoutFn=Xk.bind(be)):(e.setTimeoutFn=be.setTimeout.bind(be),e.clearTimeoutFn=be.clearTimeout.bind(be))}var Zk=1.33;function C0(e){return typeof e=="string"?Jk(e):Math.ceil((e.byteLength||e.size)*Zk)}function Jk(e){let t=0,r=0;for(let o=0,n=e.length;o<n;o++)t=e.charCodeAt(o),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(o++,r+=4);return r}function si(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function A0(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function E0(e){let t={},r=e.split("&");for(let o=0,n=r.length;o<n;o++){let s=r[o].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var ii=class extends Error{constructor(t,r,o){super(t),this.description=r,this.context=o,this.type="TransportError"}},ht=class extends G{constructor(t){super(),this.writable=!1,dt(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,o){return super.emitReserved("error",new ii(t,r,o)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let r=Uo(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let r=A0(t);return r.length?"?"+r:""}};var qo=class extends ht{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let o=0;this._polling&&(o++,this.once("pollComplete",function(){--o||r()})),this.writable||(o++,this.once("drain",function(){--o||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=o=>{if(this.readyState==="opening"&&o.type==="open"&&this.onOpen(),o.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(o)};S0(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,v0(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=si()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var T0=!1;try{T0=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var O0=T0;function Qk(){}var $f=class extends qo{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port}}doWrite(t,r){let o=this.request({method:"POST",data:t});o.on("success",r),o.on("error",(n,s)=>{this.onError("xhr post error",n,s)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,o)=>{this.onError("xhr poll error",r,o)}),this.pollXhr=t}},Rt=class e extends G{constructor(t,r,o){super(),this.createRequest=t,dt(this,o),this._opts=o,this._method=o.method||"GET",this._uri=r,this._data=o.data!==void 0?o.data:null,this._create()}_create(){var t;let r=ni(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let o=this._xhr=this.createRequest(r);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&o.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{o.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var n;o.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(o.getResponseHeader("set-cookie"))),o.readyState===4&&(o.status===200||o.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof o.status=="number"?o.status:0)},0))},o.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Qk,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Rt.requestsCount=0;Rt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",R0);else if(typeof addEventListener=="function"){let e="onpagehide"in be?"pagehide":"unload";addEventListener(e,R0,!1)}}function R0(){for(let e in Rt.requests)Rt.requests.hasOwnProperty(e)&&Rt.requests[e].abort()}var eC=(function(){let e=P0({xdomain:!1});return e&&e.responseType!==null})(),Pt=class extends $f{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=eC&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Rt(P0,this.uri(),t)}};function P0(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||O0))return new XMLHttpRequest}catch{}if(!t)try{return new be[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var I0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Df=class extends ht{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,o=I0?{}:ni(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,o)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let o=t[r],n=r===t.length-1;Vo(o,this.supportsBinary,s=>{try{this.doWrite(o,s)}catch{}n&&pt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=si()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},Ff=be.WebSocket||be.MozWebSocket,It=class extends Df{createSocket(t,r,o){return I0?new Ff(t,r,o):r?new Ff(t,r):new Ff(t)}doWrite(t,r){this.ws.send(r)}};var Nr=class extends ht{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=_0(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=t.readable.pipeThrough(r).getReader(),n=w0();n.readable.pipeTo(t.writable),this._writer=n.writable.getWriter();let s=()=>{o.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(t){this.writable=!1;for(let r=0;r<t.length;r++){let o=t[r],n=r===t.length-1;this._writer.write(o).then(()=>{n&&pt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var Lf={websocket:It,webtransport:Nr,polling:Pt};var tC=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,rC=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Br(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),o=e.indexOf("]");r!=-1&&o!=-1&&(e=e.substring(0,r)+e.substring(r,o).replace(/:/g,";")+e.substring(o,e.length));let n=tC.exec(e||""),s={},i=14;for(;i--;)s[rC[i]]=n[i]||"";return r!=-1&&o!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=oC(s,s.path),s.queryKey=nC(s,s.query),s}function oC(e,t){let r=/\/{2,9}/g,o=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&o.splice(0,1),t.slice(-1)=="/"&&o.splice(o.length-1,1),o}function nC(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,n,s){n&&(r[n]=s)}),r}var Mf=typeof addEventListener=="function"&&typeof removeEventListener=="function",ai=[];Mf&&addEventListener("offline",()=>{ai.forEach(e=>e())},!1);var Qt=class e extends G{constructor(t,r){if(super(),this.binaryType=k0,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let o=Br(t);r.hostname=o.host,r.secure=o.protocol==="https"||o.protocol==="wss",r.port=o.port,o.query&&(r.query=o.query)}else r.host&&(r.hostname=Br(r.host).host);dt(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(o=>{let n=o.prototype.name;this.transports.push(n),this._transportsByName[n]=o}),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=E0(this.opts.query)),Mf&&(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"})},ai.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=If,r.transport=t,this.id&&(r.sid=this.id);let o=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](o)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let o=0;o<this.writeBuffer.length;o++){let n=this.writeBuffer[o].data;if(n&&(r+=C0(n)),o>0&&r>this._maxPayload)return this.writeBuffer.slice(0,o);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,pt(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,o){return this._sendPacket("message",t,r,o),this}send(t,r,o){return this._sendPacket("message",t,r,o),this}_sendPacket(t,r,o,n){if(typeof r=="function"&&(n=r,r=void 0),typeof o=="function"&&(n=o,o=null),this.readyState==="closing"||this.readyState==="closed")return;o=o||{},o.compress=o.compress!==!1;let s={type:t,data:r,options:o};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),n&&this.once("flush",n),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},o=()=>{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?o():t()}):this.upgrading?o():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Mf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let o=ai.indexOf(this._offlineEventListener);o!==-1&&ai.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};Qt.protocol=If;var ci=class extends Qt{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),o=!1;Qt.priorWebsocketSuccess=!1;let n=()=>{o||(r.send([{type:"ping",data:"probe"}]),r.once("packet",p=>{if(!o)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Qt.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{o||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let u=new Error("probe error");u.transport=r.name,this.emitReserved("upgradeError",u)}}))};function s(){o||(o=!0,f(),r.close(),r=null)}let i=p=>{let u=new Error("probe error: "+p);u.transport=r.name,s(),this.emitReserved("upgradeError",u)};function a(){i("transport closed")}function c(){i("socket closed")}function l(p){r&&p.name!==r.name&&s()}let f=()=>{r.removeListener("open",n),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};r.once("open",n),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{o||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let o=0;o<t.length;o++)~this.transports.indexOf(t[o])&&r.push(t[o]);return r}},jr=class extends ci{constructor(t,r={}){let o=typeof t=="object"?t:r;(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(n=>Lf[n]).filter(n=>!!n)),super(t,o)}};var vL=jr.protocol;function $0(e,t="",r){let o=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),o=Br(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";let s=o.host.indexOf(":")!==-1?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+s+":"+o.port+t,o.href=o.protocol+"://"+s+(r&&r.port===o.port?"":":"+o.port),o}var Hf={};C(Hf,{Decoder:()=>Wf,Encoder:()=>zf,PacketType:()=>D,isPacketValid:()=>CC,protocol:()=>H0});var iC=typeof ArrayBuffer=="function",aC=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,F0=Object.prototype.toString,cC=typeof Blob=="function"||typeof Blob<"u"&&F0.call(Blob)==="[object BlobConstructor]",lC=typeof File=="function"||typeof File<"u"&&F0.call(File)==="[object FileConstructor]";function Ko(e){return iC&&(e instanceof ArrayBuffer||aC(e))||cC&&e instanceof Blob||lC&&e instanceof File}function Go(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,o=e.length;r<o;r++)if(Go(e[r]))return!0;return!1}if(Ko(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Go(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Go(e[r]))return!0;return!1}function D0(e){let t=[],r=e.data,o=e;return o.data=Nf(r,t),o.attachments=t.length,{packet:o,buffers:t}}function Nf(e,t){if(!e)return e;if(Ko(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let o=0;o<e.length;o++)r[o]=Nf(e[o],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Nf(e[o],t));return r}return e}function L0(e,t){return e.data=Bf(e.data,t),delete e.attachments,e}function Bf(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Bf(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Bf(e[r],t));return e}var W0=yv(z0(),1),jf=(0,W0.default)("socket.io-parser"),V0=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],H0=5,D;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(D||(D={}));var zf=class{constructor(t){this.replacer=t}encode(t){return jf("encoding packet %j",t),(t.type===D.EVENT||t.type===D.ACK)&&Go(t)?this.encodeAsBinary({type:t.type===D.EVENT?D.BINARY_EVENT:D.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===D.BINARY_EVENT||t.type===D.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),jf("encoded %j as %s",t,r),r}encodeAsBinary(t){let r=D0(t),o=this.encodeAsString(r.packet),n=r.buffers;return n.unshift(o),n}},Wf=class e extends G{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let o=r.type===D.BINARY_EVENT;o||r.type===D.BINARY_ACK?(r.type=o?D.EVENT:D.ACK,this.reconstructor=new Vf(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Ko(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,o={type:Number(t.charAt(0))};if(D[o.type]===void 0)throw new Error("unknown packet type "+o.type);if(o.type===D.BINARY_EVENT||o.type===D.BINARY_ACK){let s=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let i=t.substring(s,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!U0(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");o.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););o.nsp=t.substring(s,r)}else o.nsp="/";let n=t.charAt(r+1);if(n!==""&&Number(n)==n){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}o.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if(e.isPayloadValid(o.type,s))o.data=s;else throw new Error("invalid payload")}return jf("decoded %s as %j",t,o),o}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case D.CONNECT:return ui(r);case D.DISCONNECT:return r===void 0;case D.CONNECT_ERROR:return typeof r=="string"||ui(r);case D.EVENT:case D.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&V0.indexOf(r[0])===-1);case D.ACK:case D.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Vf=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let r=L0(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function wC(e){return typeof e=="string"}var U0=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function _C(e){return e===void 0||U0(e)}function ui(e){return Object.prototype.toString.call(e)==="[object Object]"}function kC(e,t){switch(e){case D.CONNECT:return t===void 0||ui(t);case D.DISCONNECT:return t===void 0;case D.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&V0.indexOf(t[0])===-1);case D.ACK:return Array.isArray(t);case D.CONNECT_ERROR:return typeof t=="string"||ui(t);default:return!1}}function CC(e){return wC(e.nsp)&&_C(e.id)&&kC(e.type,e.data)}function Te(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var AC=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Hr=class extends G{constructor(t,r,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[Te(t,"open",this.onopen.bind(this)),Te(t,"packet",this.onpacket.bind(this)),Te(t,"error",this.onerror.bind(this)),Te(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var o,n,s;if(AC.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:D.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let f=this.ids++,p=r.pop();this._registerAckCallback(f,p),i.id=f}let a=(n=(o=this.io.engine)===null||o===void 0?void 0:o.transport)===null||n===void 0?void 0:n.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(t,r){var o;let n=(o=this.flags.timeout)!==null&&o!==void 0?o:this._opts.ackTimeout;if(n===void 0){this.acks[t]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},n),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[t]=i}emitWithAck(t,...r){return new Promise((o,n)=>{let s=(i,a)=>i?n(i):o(a);s.withError=!0,r.push(s),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let o={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((n,...s)=>(this._queue[0],n!==null?o.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(n)):(this._queue.shift(),r&&r(null,...s)),o.pending=!1,this._drainQueue())),this._queue.push(o),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:D.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(o=>String(o.id)===t)){let o=this.acks[t];delete this.acks[t],o.withError&&o.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case D.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case D.EVENT:case D.BINARY_EVENT:this.onevent(t);break;case D.ACK:case D.BINARY_ACK:this.onack(t);break;case D.DISCONNECT:this.ondisconnect();break;case D.CONNECT_ERROR:this.destroy();let o=new Error(t.data.message);o.data=t.data.data,this.emitReserved("connect_error",o);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let o of r)o.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,o=!1;return function(...n){o||(o=!0,r.packet({type:D.ACK,id:t,data:n}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:D.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let o=0;o<r.length;o++)if(t===r[o])return r.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let r=this._anyOutgoingListeners;for(let o=0;o<r.length;o++)if(t===r[o])return r.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let o of r)o.apply(this,t.data)}}};function tr(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}tr.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};tr.prototype.reset=function(){this.attempts=0};tr.prototype.setMin=function(e){this.ms=e};tr.prototype.setMax=function(e){this.max=e};tr.prototype.setJitter=function(e){this.jitter=e};var Ur=class extends G{constructor(t,r){var o;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,dt(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((o=r.randomizationFactor)!==null&&o!==void 0?o:.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=t;let n=r.parser||Hf;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new jr(this.uri,this.opts);let r=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;let n=Te(r,"open",function(){o.onopen(),t&&t()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},i=Te(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{n(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(n),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(Te(t,"ping",this.onping.bind(this)),Te(t,"data",this.ondata.bind(this)),Te(t,"error",this.onerror.bind(this)),Te(t,"close",this.onclose.bind(this)),Te(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){pt(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let o=this.nsps[t];return o?this._autoConnect&&!o.active&&o.connect():(o=new Hr(this,t,r),this.nsps[t]=o),o}_destroy(t){let r=Object.keys(this.nsps);for(let o of r)if(this.nsps[o].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let o=0;o<r.length;o++)this.engine.write(r[o],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var o;this.cleanup(),(o=this.engine)===null||o===void 0||o.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let o=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(n=>{n?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",n)):t.onreconnect()}))},r);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var Yo={};function qr(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=$0(e,t.path||"/socket.io"),o=r.source,n=r.id,s=r.path,i=Yo[n]&&s in Yo[n].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,c;return a?c=new Ur(o,t):(Yo[n]||(Yo[n]=new Ur(o,t)),c=Yo[n]),r.query&&!t.query&&(t.query=r.queryKey),c.socket(r.path,t)}Object.assign(qr,{Manager:Ur,Socket:Hr,io:qr,connect:qr});T();var EC=new Set(["__proto__","constructor","prototype"]),q0=e=>{if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(EC.has(e[t]))return!1;return!0},TC=(e,t)=>{!e||!q0(t)||t.reduce((r,o,n,s)=>{if(r&&o in r){if(n!==s.length-1)return r[o];delete r[o]}},e)},OC=(e,t,r,o=!1)=>{!e||!q0(t)||t.reduce((n,s,i,a)=>{if(n){if(i!==a.length-1)return!n[s]&&o&&(n[s]={}),n[s];n[s]=r}},e)},G0=(e,t)=>{let r=new Set;if(!Array.isArray(t))return r;for(let[o,n,s]of t)if(!(!Array.isArray(n)||!n.length))switch(r.add(n[0]),o){case"delete":TC(e,n);break;case"update":case"set":OC(e,n,s,!0);break;default:break}return r};T();var K0=(e,t,r)=>(o={})=>{let{data:n}=o,{schema:s}=o;n&&(n=e.call("deepDestringifyFunctions",n,Array.isArray(n)?[]:{}),Object.entries(n).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Et(a):ir(r[i],a):r[i]=a}),s&&(r.schema=s))},Y0=(e,t,r)=>(o={})=>{let{changes:n}=o;if(!n||!Array.isArray(n)||!n.length)return;n=e.call("deepDestringifyFunctions",n,Array.isArray(n)?[]:{});let s=G0(r,n);if(s.has("state")&&t.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;e.call("router",i+a+c,e.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Et(r.designSystem)};var RC={success:"green",error:"red",warning:"yellow"},X0=(e,t,r)=>{if(e.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let o=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(o)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let o=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected&&t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(o)},3e3)}},Z0={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:RC[e.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(t,r,o)=>{r.update({animation:"fadeInUp"})},onClick:(t,r,o)=>{delete o.notifications[r.key],r.update({animation:"fadeOutDown"}),o.onClose&&o.onClose(t,r,o)}}),IconText:null,childrenAs:"state",children:({state:e})=>e.notifications}};var PC=!1,IC=()=>PC?"http://localhost:8080":"https://api.symbols.app",$C=e=>{let t=e&&e.editor&&e.editor.socketUrl||e&&e.settings&&e.settings.socketUrl;return typeof t=="string"&&t?{mode:"collab",baseUrl:t}:e&&e.editor&&e.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},FC=async e=>{try{let t=e||IC(),r=await _.fetch(`${t}/service-token`,{method:"GET"}),o;try{let n=await r.clone().json();if(n&&typeof n.token=="string")return n.token.trim();o=await r.text()}catch{o=await r.text()}return(o||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},ev=(e,t,r,o)=>{e.on("snapshot",K0(t,r,o)),e.on("ops",Y0(t,r,o)),e.on("clients",n=>{o.editor?.verbose&&X0(n,t,r)}),e.on("disconnect",n=>{o.editor?.verbose&&console.info("[sync] disconnected",n)})},DC=async(e,t,r,o)=>{let n=await FC(o);if(!n)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=qr(o,{path:"/collab-socket",transports:["websocket"],auth:{token:n,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)")}),ev(a,e,t,r),a},LC=(e,t,r)=>{let o=qr({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return o.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),ev(o,e,t,r),o.on("reload",()=>{typeof _<"u"&&_.location&&_.location.reload()}),o},MC=async(e,t,r)=>{let{mode:o,baseUrl:n}=$C(r);return o?o==="collab"?DC(e,t,r,n):o==="runner"?LC(e,t,r):null:null},NC={onInit:MC};var tv=e=>typeof e>"u",J0=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),Q0=e=>e?.editor?.runtime==="runner",rv=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},ov={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!tv(r.liveSync)?r.liveSync:J0(t)||Q0(t))&&(J0(t)&&!Q0(t)&&!t?.key||rv(e,NC))}},nv={name:"notifications",beforeCreate(e,t){if(!t)return;let r=tv(t.notifications)?null:t.notifications,o=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&o)&&rv(e,Z0)}};T();function sv(e){return S(e)?e:E(e)?e.find(t=>S(t)):""}function qf(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&sv(e.extends),o=e.parent&&e.parent.childExtends&&sv(e.parent.childExtends);return(t||r||o||"").split("_")[0].split(".")[0].split("+")[0]}function pi(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:o}=e.context,n=qf(e);return o&&o.onInitInspect&&!o.onInitInspect(n,e,e.state)?pi(e.parent):n&&(t[n]||r[n])?e:pi(e.parent)}var BC=(e,t,r)=>{let o=r.window||window;o.onkeydown=n=>{n.altKey&&n.shiftKey&&e.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},o.onkeyup=n=>{e.state.preventSelect&&(!n.altKey||!n.shiftKey)&&(e.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),e.Inspector.state.update({area:!1}))}},Uf={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:BC,onMousemove:(e,t,r)=>{let o=e.target.ref,n=pi(o),s=t.Inspector.state;if(!n||!r.debugging||!n.__ref)return s.update({area:!1});let i=qf(n),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(e.altKey&&e.shiftKey){let{x:l,y:f,width:p,height:u}=n.node.getBoundingClientRect(),d={x:l,y:f,width:p,height:u};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:(e,t,r)=>{if(!r.debugging)return;let o=e.target.ref,n=pi(o);if(!n)return;let s=qf(n);if(!s)return;let i=o.context.editor;if(i&&i.onInspect)return i.onInspect(s,o,o.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return o.context.socket?.emit&&o.context.socket.emit("route",a),e.preventDefault(),e.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(e,t)=>!(t.area&&t.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:e})=>{let{components:t}=e;if(v(t)){let{Content:r,...o}=t;for(let n in o)Us[n]||(o[n].__ref||(o[n].__ref={}),o[n].__ref.__componentKey||(o[n].__ref.__componentKey=n))}},onBeforeUpdate:(e,t,r)=>{let{area:o}=r,n=r.area&&r.parent.debugging,s;if(!n)s="display: none !important";else if(o){let{x:i,y:a,width:c,height:l}=o;s=`
66
+ )`};var sw={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"}}}},iw={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},aw={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"}}},Kh={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...sw,...iw,...aw,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var Yh={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var Xh={ratio:1.618,subSequence:!0};var Zh={SourceSans:[{url:""}]},Jh={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var Qh={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 tg={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 eg={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Cs={version:"0.0.1",color:qh,gradient:Gh,theme:Kh,typography:Yh,spacing:Xh,font:Zh,fontFamily:Jh,timing:eg,icons:Qh,media:tg,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var ko={};$(ko,{A:()=>gm,AssetPicture:()=>xg,Audio:()=>wg,Avatar:()=>Rm,B:()=>Vg,Block:()=>rg,Box:()=>Os,Br:()=>Hg,Button:()=>bm,ButtonSet:()=>wm,COMPONENTS:()=>Ar,Caption:()=>Ig,Checkbox:()=>em,CheckboxHgroup:()=>rm,Circle:()=>mg,CircleButton:()=>Sm,Clickable:()=>dg,Data:()=>Ug,Dialog:()=>vm,DialogFooter:()=>Am,DialogHeader:()=>Cm,Dropdown:()=>Im,DropdownList:()=>$m,DropdownParent:()=>Fm,DropdownParentFocus:()=>Dm,DropdownSiblingFocus:()=>Lm,FileIcon:()=>um,Flex:()=>ng,Focusable:()=>hg,FocusableComponent:()=>gg,Footnote:()=>Bg,Form:()=>fg,Grid:()=>ig,Gutter:()=>cg,H1:()=>Cg,H2:()=>Ag,H3:()=>Eg,H4:()=>Tg,H5:()=>Og,H6:()=>Rg,Headline:()=>Ng,Hgroup:()=>Xg,HgroupButton:()=>Jg,HgroupRows:()=>Zg,Hoverable:()=>pg,Hr:()=>Wg,I:()=>zg,Icon:()=>lm,IconButton:()=>km,IconText:()=>fm,Iframe:()=>ug,Img:()=>lg,Inline:()=>og,InlineFlex:()=>sg,InlineGrid:()=>ag,Input:()=>Qg,Italic:()=>Lg,KangorooButton:()=>_m,Li:()=>qg,Link:()=>ol,Notification:()=>Mm,NumberInput:()=>tm,Ol:()=>Kg,P:()=>Pg,Picture:()=>bg,Radio:()=>om,RadioHgroup:()=>nm,Range:()=>Pm,RouteLink:()=>mm,RouterLink:()=>nl,SHAPES:()=>Es,Select:()=>ym,Shape:()=>$c,Span:()=>vg,SquareButton:()=>xm,Strong:()=>$g,Subhead:()=>jg,Svg:()=>Sg,Text:()=>kg,Textarea:()=>am,TextareaWithButton:()=>cm,Theme:()=>yg,Title:()=>Mg,Toggle:()=>sm,ToggleHgroup:()=>im,Tooltip:()=>Em,TooltipHidden:()=>Tm,TooltipParent:()=>Om,U:()=>Fg,Ul:()=>Gg,Underline:()=>Dg,Video:()=>_g,depth:()=>Ts,getSystemGlobalTheme:()=>wo});var Tc={};$(Tc,{Block:()=>rg,Flex:()=>ng,Grid:()=>ig,Gutter:()=>cg,Inline:()=>og,InlineFlex:()=>sg,InlineGrid:()=>ag});var rg={display:"block"},og={display:"inline"},ng={display:"flex"},sg={display:"inline-flex"},ig={display:"grid"},ag={display:"inline-grid"},cg={boxSize:"C1"};var Oc={};$(Oc,{Img:()=>lg});O();var lg={tag:"img",attr:{title:t=>t.title||t.alt,src:t=>{let e=vt(t);return e&&e.src||t.src},srcset:t=>{let e=vt(t);return(e?Qn(e):"")||t.srcset}}};var Rc={};$(Rc,{Form:()=>fg});var fg={tag:"form"};var Pc={};$(Pc,{Iframe:()=>ug});var ug={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Ic={};$(Ic,{Clickable:()=>dg,Focusable:()=>hg,FocusableComponent:()=>gg,Hoverable:()=>pg});var cw={appearance:"none",cursor:"pointer",fontFamily:"inherit"},pg={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}}},dg={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},hg={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:t=>t.tabIndex}},gg={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:cw};var Lc={};$(Lc,{Picture:()=>bg});var Dc={};$(Dc,{Theme:()=>yg,getSystemGlobalTheme:()=>wo});var Fc={};$(Fc,{Circle:()=>mg,SHAPES:()=>Es,Shape:()=>$c,default:()=>lw,depth:()=>Ts});O();var It=A(),Ts={4:{boxShadow:`rgba(0,0,0,.10) 0 2${It.unit.default} 4${It.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${It.unit.default} 6${It.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${It.unit.default} 10${It.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${It.unit.default} 16${It.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${It.unit.default} 26${It.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${It.unit.default} 42${It.unit.default}`}},Cr=t=>X(t.shapeDirectionColor)||X(t.borderColor)||X(t.backgroundColor)||X(t.background),As=t=>{let e=ks.transition(t.transition,t);return e&&e.transition},Es={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:Cr(t),transition:As(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:Cr(t),transition:As(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:Cr(t),transition:As(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:As(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Cr(t)} 25%, transparent 25%), linear-gradient(315deg, ${Cr(t)} 25%, transparent 25%)`},"&:after":{background:Cr(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)"}}}},$c={deps:{exec:G,getSpacingBasedOnRatio:le,getMediaColor:ht},classlist:{shape:t=>t.deps.exec(Es[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Es[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}}},mg={round:"100%"},lw=$c;O();var wo=({context:t,state:e})=>{let r=e&&e.root,o=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return o==="auto"?null:o},yg={deps:{depth:Ts},classlist:{depth:t=>!ct(t.depth)&&t.deps.depth[t.depth]}};var bg={deps:{getSystemGlobalTheme:wo},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:wo},tag:"source",attr:{media:t=>{let{key:e,context:r,deps:o}=t,{media:n}=r.designSystem,s=o.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":n[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent?.src||e.src}};var Mc={};$(Mc,{AssetPicture:()=>xg});O();var xg={tag:"picture",children:t=>{let e=vt(t);if(e)return ts(e,t.alt)}};var Nc={};$(Nc,{Svg:()=>Sg});var Sg={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:o}=e,n=r&&r.svg,s=t.spriteId||r&&r.useSvgSprite,i=t.call("exec",t.src,t);if(!s&&i)return i;let a=u=>`<use xlink:href="#${u}" />`,c=t.spriteId;if(c)return a(c);if(n&&n[i])return a(i);let l=Symbol.for(i),f=n[l];if(f&&n[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 p=0;for(let u=0;u<i.length;u++)p=(p<<5)-p+i.charCodeAt(u)|0;return f=n[l]=`svg-${(p>>>0).toString(36)}`,o.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var jc={};$(jc,{Video:()=>_g});O();var _g={tag:"video",controls:!0,attr:{src:t=>{let e=vt(t);return e&&e.src||t.src}},children:t=>{let e=vt(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 Bc={};$(Bc,{Audio:()=>wg});O();var wg={tag:"audio",controls:!0,attr:{src:t=>{let e=vt(t);return e&&e.src||t.src}},children:t=>{let e=vt(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 Vc={};$(Vc,{B:()=>Vg,Caption:()=>Ig,Data:()=>Ug,Footnote:()=>Bg,H1:()=>Cg,H2:()=>Ag,H3:()=>Eg,H4:()=>Tg,H5:()=>Og,H6:()=>Rg,Headline:()=>Ng,I:()=>zg,Italic:()=>Lg,P:()=>Pg,Span:()=>vg,Strong:()=>$g,Subhead:()=>jg,Text:()=>kg,Title:()=>Mg,U:()=>Fg,Underline:()=>Dg});var kg={},vg={tag:"span"},Cg={tag:"h1"},Ag={tag:"h2"},Eg={tag:"h3"},Tg={tag:"h4"},Og={tag:"h5"},Rg={tag:"h6"},Pg={tag:"p"},Ig={tag:"caption"},$g={tag:"strong",fontWeight:"700"},Fg={tag:"u"},Dg={tag:"u"},Lg={tag:"i"},Mg={},Ng={tag:"h6",fontSize:"B",fontWeight:500},jg={tag:"span",fontSize:"Z1"},Bg={tag:"span",fontSize:"Z"},Vg={tag:"b"},zg={tag:"i"},Ug={tag:"data"};var zc={};$(zc,{Box:()=>Os,Br:()=>Hg,Hr:()=>Wg,Li:()=>qg,Ol:()=>Kg,Ul:()=>Gg});var fw=t=>{if(!t.context)return;let{props:e,__ref:r}=t,o=Pt(e,t,{unpack:!1});r.__class=o},Os={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:fw},Wg={tag:"hr",margin:"C1 0"},Hg={tag:"br"},qg={tag:"li"},Gg={tag:"ul",childExtends:{extends:"Li"}},Kg={tag:"ol",childExtends:{extends:"Li"}};var Uc={};$(Uc,{Hgroup:()=>Xg,HgroupButton:()=>Jg,HgroupRows:()=>Zg});var Yg=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},Xg={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:Yg,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:Yg,margin:"0",color:"paragraph"}},Zg={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Jg={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Wc={};$(Wc,{Input:()=>Qg});var Qg={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 Hc={};$(Hc,{NumberInput:()=>tm});var tm={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 qc={};$(qc,{Checkbox:()=>em,CheckboxHgroup:()=>rm});var em={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"}}},rm={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Gc={};$(Gc,{Radio:()=>om,RadioHgroup:()=>nm});var om={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}},nm={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Kc={};$(Kc,{Toggle:()=>sm,ToggleHgroup:()=>im});var sm={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}},im={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Yc={};$(Yc,{Textarea:()=>am,TextareaWithButton:()=>cm});var am={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"}},cm={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 Xc={};$(Xc,{FileIcon:()=>um,Icon:()=>lm,IconText:()=>fm});var lm={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,r)=>{let{parent:o}=t,{icons:n,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=_=>{let v=_[".isActive"];if(v)return _.call("exec",v.name||v.icon)},l=(_,v,E)=>{let{semanticIcons:P}=E&&E.designSystem,{toCamelCase:B}=E&&E.utils,R=f(_,v),Q=B(R).split(/([a-z])([A-Z])/g),V=Q[1]?Q[0]:R.split(".")[0].split(" ")[0],j=P&&P[V];if(j){let Ft=R.includes(".")?"sfsymbols."+R.split(".").slice(1).join("."):"sfsymbols";return R=j[Ft]||j[R.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${R}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(_,v)=>{let{key:E}=_,P=_.call("exec",_.name||_.icon||E,_);return _.call("isString",P)&&P.includes("{{")&&(P=_.call("replaceLiteralsWithObjectFields",P)),_.call("isString",P)?P:E},p=f(t,e);if(p.includes(" ")){let _=p.split(" ");p=_[0]+_.slice(1).map(v=>v.charAt(0).toUpperCase()+v.slice(1)).join("")}let u=a(p),d=u.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=o[".isActive"];o&&o.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;n[g]&&(y=g),n[u]?y=u:n[d[0]+d[1]]?y=d[0]+d[1]:n[d[0]]?y=d[0]:i&&t.warn("Can't find icon:",p,y);let b=n[y],x=o&&o.src||t.src;Object.assign(t,{spriteId:s&&y,src:b||x||n.noIcon})},attr:{viewBox:"0 0 24 24"}},fm={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},um={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var sl={};$(sl,{A:()=>gm,Link:()=>ol,RouteLink:()=>mm,RouterLink:()=>nl});var rl={};$(rl,{default:()=>gw,getActiveRoute:()=>el,lastLevel:()=>Ps,lastPathname:()=>Rs,matchRoute:()=>Jc,parseQuery:()=>Qc,parseRoutePattern:()=>Zc,router:()=>re,runGuards:()=>tl});O();var dm=/^:(.+)/,hm=/^\*$/,pm=new Map,Zc=t=>{let e=pm.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),o=[],n=!1;for(let i=0;i<r.length;i++){let a=r[i].match(dm);a?o.push({index:i,name:a[1]}):hm.test(r[i])&&(n=!0)}let s={segments:r,params:o,hasWildcard:n,pattern:t};return pm.set(t,s),s},Jc=(t,e,r=0)=>{let n=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(n[0]||""),i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=Zc(l),p=uw(n,f);p>a&&(a=p,i=l,c=pw(n,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},uw=(t,e)=>{let{segments:r,hasWildcard:o}=e;if(!o&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let n=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])n+=3;else if(dm.test(r[i]))n+=1;else if(hm.test(r[i]))n+=.5;else return-1;return n},pw=(t,e)=>{let r={};for(let{index:o,name:n}of e.params)t[o]&&(r[n]=decodeURIComponent(t[o]));return r},Qc=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((o,n)=>{e[n]!==void 0?(Array.isArray(e[n])||(e[n]=[e[n]]),e[n].push(o)):e[n]=o}),e},tl=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let o=await r(e);if(o===!1)return!1;if(typeof o=="string")return o}return!0},el=(t=0,e)=>{e||(e=typeof k<"u"?k.location.pathname:"/");let o=e.split("/")[t+1];if(o)return`/${o}`},Rs,Ps=0,dw=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,hw={level:Ps,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:q&&q.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},re=async(t,e,r={},o={})=>{let n=e||void 0,s=n?.context?.window||k,i=n?.context?.document||q,a={...hw,...n.context.routerOptions,...o};Ps=a.lastLevel;let c=n.__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 p=new s.URL(f+t),{pathname:u,search:d,hash:h}=p,g=Qc(d),m=n.node,y=h&&h!==s.location.hash.slice(1),b=u!==Rs;Rs=u;let x,_,v,E;if(a.useParamsMatching){let B=Jc(u,n.routes,a.level);x=B.key,_=B.routePath,v=B.content,E=B.params}else x=el(a.level,u),_=x,v=n.routes[x||"/"]||n.routes["/*"],E={};let P=a.scrollToNode?m:a.scrollNode;if(n.state?.root?.debugging){n.state.root.debugging=!1;return}if(!v){a.onNotFound?a.onNotFound({pathname:u,route:x,element:n}):a.silent||console.warn("[smbls/router] no content matched for path",u,"\u2014 available routes:",Object.keys(n.routes||{}));return}if(a.guards&&a.guards.length){let B={pathname:u,route:x,params:E,query:g,hash:h,element:n,state:r},R=await tl(a.guards,B);if(R===!1)return;if(typeof R=="string")return re(R,e,r,{...o,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,u+(d||"")+(h||""))}catch{}if(b||!y){let B={route:x,routePath:_,hash:h,debugging:!1};Object.keys(E).length&&(B.params=E),Object.keys(g).length&&(B.query=g),a.updateState&&n.state.update(B,{preventContentUpdate:!0}),l&&a.removeOldElement&&n[l].remove();let R=n.__ref?.origin?.content,D={};if(R)for(let V in R){let j=R[V];V==="__ref"||V==="props"||V==="node"||V==="parent"||V==="key"||(typeof j=="string"||typeof j=="number"||typeof j=="boolean"||typeof j=="object"&&j!==null&&!j.node&&!j.__ref)&&(D[V]=j)}let Q={...D,...typeof v=="object"?v:{extends:v}};a.useFragment&&(Q.tag="fragment");try{n.set(Q,{contentElementKey:l})}catch(V){console.error("[smbls/router] failed to render route content",u,V)}}if(a.scrollToTop&&P?.scrollTo&&P.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&v[l]?.node?.scrollTo&&v[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let B=i.getElementById(h);if(B&&P?.scrollTo){let R=B.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);P.scrollTo({...a.scrollToOptions||{},top:R,left:0})}}je("routeChanged",n,a)},gw=re;var mw=(t,e,r)=>{let{context:o}=e,{href:n,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",n,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:p}=o,u=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=u;if(p&&p.customRouterElement){let g=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),m=u;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,u.routes&&(h.routes=u.routes))}(f.router||l.router||c.router||re)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...p,...e.routerOptions})}catch(h){console.warn(h)}}},ol={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:mw},gm={extends:"Link"},nl={onClick:(t,e,r)=>{let{context:o}=e,{href:n,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",n,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:p}=o,u=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=u;if(p&&p.customRouterElement){let g=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),m=u;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,u.routes&&(h.routes=u.routes))}(f.router||l.router||c.router||re)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...p,...e.routerOptions})}catch(h){console.warn(h)}}}},mm={extends:[ol,nl]};var il={};$(il,{Select:()=>ym});var ym={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 al={};$(al,{Button:()=>bm,ButtonSet:()=>wm,CircleButton:()=>Sm,IconButton:()=>km,KangorooButton:()=>_m,SquareButton:()=>xm});var bm={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)},xm={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"},Sm={extends:"SquareButton",round:"C"},_m={extends:"Button",childExtends:"IconText"},wm={tag:"nav",display:"flex",childExtends:"SquareButton"},km={extends:["SquareButton","ClickableItem"],round:"Z"};var cl={};$(cl,{Dialog:()=>vm,DialogFooter:()=>Am,DialogHeader:()=>Cm});var vm={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Cm={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Am={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 ll={};$(ll,{Tooltip:()=>Em,TooltipHidden:()=>Tm,TooltipParent:()=>Om});O();var Em={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=>St(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)}},Tm={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)}},Om={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:r}=t,o=e||r;if(!o)return;let n=o&&o[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var fl={};$(fl,{Avatar:()=>Rm});var Rm={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 ul={};$(ul,{Range:()=>Pm});var Pm={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:es("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:es("#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 o=t.call("exec",t[e],t);return(t.call("isFunction",o)?o(t,t.state):o!==void 0?o: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 pl={};$(pl,{Dropdown:()=>Im,DropdownList:()=>$m,DropdownParent:()=>Fm,DropdownParentFocus:()=>Dm,DropdownSiblingFocus:()=>Lm});var Im={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"},$m={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"}}},Fm={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Dm={position:"relative",tabindex:"0",style:{"&: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()}}},Lm={position:"relative",tabindex:"0",style:{"&: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 dl={};$(dl,{Notification:()=>Mm});var Mm={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 Ar=Object.assign({},Tc,Oc,Rc,Pc,Ic,Lc,Mc,Nc,Fc,jc,Bc,Dc,Vc,zc,Uc,Wc,Hc,qc,Gc,Kc,Yc,Xc,sl,il,al,cl,ll,fl,ul,pl,dl);function Is(t){if(t==null)return 0;if(typeof t!="object")return Nm(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let o=0;o<t.length;o++)e=(e^Is(t[o]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let o=0;o<r.length;o++)e=(e^Nm(r[o]))*16777619,e=(e^Is(t[r[o]]))*16777619;return e>>>0}function Nm(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function $s(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 n=0;n<t.length;n++)if(!$s(t[n],e[n]))return!1;return!0}let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let n=0;n<r.length;n++){let s=r[n];if(!Object.prototype.hasOwnProperty.call(e,s)||!$s(t[s],e[s]))return!1}return!0}function hl(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,o={};for(let n in t)if(n in e){let s=hl(t[n],e[n]);o[n]=s,s!==t[n]&&(r=!0)}else o[n]=t[n];for(let n in e)n in t||(o[n]=e[n],r=!0);return r?o:t}function gl(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 o in e){let n=e[o];n&&typeof n=="object"&&!Array.isArray(n)&&t[o]&&typeof t[o]=="object"&&!Array.isArray(t[o])?gl(t[o],n,r):t[o]=n}return t}function ve(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 Er(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function vo(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():ve(e)}function jm(t){return t.split(`
67
+ `).map(ve).join(`
68
+ `)}var Bm={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 Vm(t,e){let r=Bm[t]||ve(t),o=vo(e),n=`_${r}-${o}`,s=Er(t),i=`.${n}{${s}: ${e}}`;return`${n}
69
+ ${i}`}var zm=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function Um(t){let e=t.split("\0"),r=[],o=[];for(let n=0;n+1<e.length;n+=2){let s=e[n],i=e[n+1];if(!i||zm(i))continue;let a=Bm[s]||ve(s),c=vo(i),l=`_${a}-${c}`,f=Er(s);r.push(l),o.push(`.${l}{${f}:${i}}`)}return r.join(" ")+"\0"+o.join(`
70
+ `)}function Wm(t,e){let r=t+e,o=`_c${ve(r)}`,n=e.split("\0"),s="";for(let a=0;a+1<n.length;a+=2){let c=n[a],l=n[a+1];l&&(zm(l)||(s+=`${Er(c)}:${l};`))}let i;if(t.startsWith("@media"))i=`${t}{.${o}{${s}}}`;else if(t.startsWith(":")||t.startsWith("&")){let a=t.startsWith("&")?t.slice(1):t;i=`.${o}${a}{${s}}`}else t.includes("&")?i=`${t.replace("&",`.${o}`)}{${s}}`:i=`.${o} ${t}{${s}}`;return`${o}
71
+ ${i}`}var ml=null;function yl(t){ml=t}var Ht={structuralHash:Is,deepEqual:$s,mergeStructural:hl,overwriteDeep:gl,shortHash:ve,toKebab:Er,sanitizeValue:vo,batchShortHash:jm,atomicCssClass:Vm,batchAtomicCss:Um,compoundCssClass:Wm},Hm=!1,Fs=null;function _w(t){return Fs||(Fs=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),Hm=!0,ml&&e.batchAtomicCss&&ml({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Fs)}function ww(){return Hm}O();var Co={};$(Co,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>Mf,DOMQ_PROPERTIES:()=>$e,ENV:()=>eu,HTML_TAGS:()=>Qr,METHODS:()=>Yr,METHODS_EXL:()=>en,NODE_ENV:()=>Kt,OPTIONS:()=>En,PACKAGE_MANAGER_TO_CDN:()=>ze,PARSED_DOMQ_PROPERTIES:()=>tn,PROPS_METHODS:()=>De,STATE_METHODS:()=>Fe,STATE_PROPERTIES:()=>Lf,SVG_TAGS:()=>wu,TYPES:()=>Yo,UNIVERSAL_RESERVED_KEYS:()=>ba,addCaching:()=>Zi,addContext:()=>Xi,addExtend:()=>Ou,addExtends:()=>kt,addItemAfterEveryElement:()=>kf,addProtoToArray:()=>Jo,addRef:()=>Gi,applyCSS:()=>Km,applyDependentState:()=>Zu,applyEvent:()=>oa,applyEventUpdate:()=>na,applyExtends:()=>Pu,applyProps:()=>_n,arrayContainsOtherArray:()=>mf,arraysEqual:()=>Cf,arrayzeValue:()=>lr,buildImgSrcset:()=>Qn,buildSourcesAndImg:()=>ts,cache:()=>np,call:()=>Dp,captureSnapshot:()=>jp,checkForStateTypes:()=>Gu,checkIfInherits:()=>ra,checkIfStringIsInArray:()=>Tf,clone:()=>Vf,cloneAndMergeArrayExtend:()=>pn,cloneFunction:()=>lu,concatAddExtends:()=>Cu,copyJavaScriptToClipboard:()=>xd,copyStringToClipboard:()=>bd,createBasedOnType:()=>qi,createElement:()=>Hu,createElementExtends:()=>Pi,createExtends:()=>hn,createExtendsFromKeys:()=>to,createExtendsStack:()=>Di,createIfConditionFlag:()=>fu,createInheritedState:()=>Ku,createKey:()=>ln,createNestedObject:()=>Kf,createNestedObjectByKeyPath:()=>Xu,createObjectWithoutPrototype:()=>wi,createParent:()=>Ki,createPath:()=>Yi,createProps:()=>wn,createPropsStack:()=>Ui,createRoot:()=>Wu,createScope:()=>tp,createSnapshotId:()=>cn,customDecodeURIComponent:()=>Df,customEncodeURIComponent:()=>Ff,cutArrayAfterValue:()=>_f,cutArrayBeforeValue:()=>Sf,debounce:()=>un,debounceOnContext:()=>iu,decodeNewlines:()=>$f,deepClone:()=>Y,deepContains:()=>qf,deepDefaults:()=>Yn,deepDestringifyFunctions:()=>Nt,deepExtend:()=>Ri,deepMerge:()=>W,deepMergeExtends:()=>ie,deepStringifyFunctions:()=>rn,defineSetter:()=>$p,destringifyGlobalScope:()=>nn,detectHeightOnInit:()=>Yp,detectInfiniteLoop:()=>Jf,document:()=>q,encodeNewlines:()=>If,error:()=>cr,excludeKeysFromObject:()=>tu,exec:()=>G,extendCachedRegistry:()=>Au,extendStackRegistry:()=>gn,extractArrayExtend:()=>yn,fetchLibraryData:()=>Sa,fibonacciNumberByIndex:()=>Zp,filterArrays:()=>Af,filterArraysFast:()=>Ef,finalizeExtends:()=>Li,findClosestNumber:()=>xa,findClosestNumberInFactory:()=>pd,findInheritedState:()=>ea,findKeyPosition:()=>Rf,flattenExtend:()=>eo,formatDate:()=>Gp,generateHash:()=>Ei,generateKey:()=>an,generateMetaTags:()=>ld,get:()=>Op,getActiveRoute:()=>el,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>Iu,getCdnProviderFromConfig:()=>uo,getChildStateInKey:()=>ta,getChildren:()=>Fn,getContext:()=>Vn,getCookie:()=>yu,getDB:()=>qn,getEmotionStylesheet:()=>vd,getExtendsInElement:()=>Ru,getExtendsStack:()=>dn,getExtendsStackRegistry:()=>Oi,getFrequencyInArray:()=>yf,getHashedExtend:()=>mn,getImportMapScript:()=>Hp,getInObjectByPath:()=>Zf,getLocalStorage:()=>xu,getNev:()=>su,getPageMetadata:()=>fd,getParentStateInKey:()=>Qi,getPath:()=>Dn,getQuery:()=>Gn,getRef:()=>Pp,getRoot:()=>Nn,getRootContext:()=>Bn,getRootData:()=>jn,getRootState:()=>Mn,getRootStateInKey:()=>Ji,getSpreadChildren:()=>$u,global:()=>df,hasFunction:()=>Xr,hasHandlerPlugin:()=>Zr,hasOwnProperty:()=>Uf,inheritChildExtends:()=>$i,inheritChildPropsExtends:()=>Ii,inheritParentProps:()=>kn,inheritRecursiveChildExtends:()=>Fi,init:()=>Ce,initProps:()=>Vu,is:()=>_t,isArray:()=>T,isBoolean:()=>yi,isContextComponent:()=>Fu,isCyclic:()=>Qf,isDOMNode:()=>xt,isDate:()=>xi,isDefined:()=>St,isDevelopment:()=>Ne,isEmpty:()=>Si,isEmptyObject:()=>Wf,isEqualDeep:()=>_i,isFunction:()=>C,isHtmlElement:()=>Ko,isLocal:()=>nu,isMethod:()=>Mp,isMobile:()=>gu,isNode:()=>de,isNot:()=>gf,isNotProduction:()=>sr,isNull:()=>bi,isNumber:()=>ne,isObject:()=>S,isObjectLike:()=>L,isPhoto:()=>Qp,isProduction:()=>Me,isStaging:()=>ou,isState:()=>Yu,isString:()=>w,isStringFunction:()=>cu,isTest:()=>ki,isTesting:()=>ru,isUndefined:()=>ct,isUniversallyReservedKey:()=>Vp,isValidHtmlTag:()=>ku,joinArrays:()=>Hr,jointStacks:()=>Tu,keys:()=>ma,lastLevel:()=>Ps,lastPathname:()=>Rs,loadCssFile:()=>nd,loadJavascript:()=>sd,loadJavascriptFile:()=>ed,loadJavascriptFileEmbedSync:()=>od,loadJavascriptFileSync:()=>rd,loadRemoteCSS:()=>id,loadRemoteScript:()=>po,log:()=>Fp,logGroupIf:()=>du,logIf:()=>pu,lookdown:()=>Ap,lookdownAll:()=>Ep,lookup:()=>Cp,lowercaseFirstLetter:()=>rr,makeObjectWithoutPrototype:()=>Hf,map:()=>jf,mapStringsWithContextComponents:()=>bn,matchRoute:()=>Jc,matchesComponentNaming:()=>ae,memoize:()=>au,merge:()=>Z,mergeSharedLibraries:()=>Xn,nextElement:()=>Un,normalizeLibraryKey:()=>ho,objectToString:()=>on,objectizeStringProperty:()=>Sn,overwrite:()=>sn,overwriteDeep:()=>wt,overwriteShallow:()=>nr,overwriteState:()=>Ju,parse:()=>ya,parseDeep:()=>In,parseQuery:()=>Qc,parseRoutePattern:()=>Zc,pickupElementFromProps:()=>Bi,pickupPropsFromElement:()=>ji,previousElement:()=>Wn,propExists:()=>Bu,propertizeElement:()=>Vi,propertizeUpdate:()=>ju,reinit:()=>Gm,remove:()=>Tp,removeChars:()=>Sd,removeCookie:()=>bu,removeDuplicateProps:()=>Cn,removeDuplicatesInArray:()=>qr,removeFromArray:()=>bf,removeFromObject:()=>Gf,removeNestedKeyByPath:()=>Yf,removeValueFromArray:()=>Zo,removeValueFromArrayAll:()=>wf,reorderArrayByValues:()=>vf,replaceLiteralsWithObjectFields:()=>er,replaceOctalEscapeSequences:()=>Pf,resolveAsset:()=>vt,resolveHandler:()=>Jr,resolveSharedLibraries:()=>md,returnValueAsText:()=>Hi,router:()=>re,runGuards:()=>tl,runPluginHook:()=>Yt,scratchSystem:()=>us,scratchUtils:()=>hr,self:()=>hf,set:()=>So,setActiveRootState:()=>Ln,setCookie:()=>mu,setHashedExtend:()=>Ti,setInObjectByPath:()=>Xf,setLocalStorage:()=>Su,setNodeStyles:()=>ga,setProps:()=>Rp,setPropsPrototype:()=>vn,spotByPath:()=>$n,srcsetFor:()=>go,stringIncludesAny:()=>Qo,stringToObject:()=>zf,swapItemsInArray:()=>xf,syncProps:()=>An,toCamelCase:()=>Zn,toDashCase:()=>Jn,toDescriptionCase:()=>wd,toTitleCase:()=>_d,toggleFullscreen:()=>Up,triggerEventOn:()=>je,triggerEventOnUpdate:()=>op,trimStringFromSymbols:()=>Of,unstackArrayOfObjects:()=>Xo,update:()=>zi,updateProps:()=>zu,variables:()=>Hn,verbose:()=>fo,warn:()=>zn,window:()=>k});O();O();var kw=A(),qm=(t=kw,e)=>{let r=S(e.localFile)?e.localFile:{},o=Y(r.designSystem||{});return W(t,o)},vw={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Ce=(t,e=vw)=>{let r=qm(t||{},e),o=e.scopeSelector||":root",n=o===":root"?":root:not([data-theme])":`${o}: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=So({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=o);let a=wa(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,p=i.useSvgSprite,u=t.svg,d=i.useIconSprite,h=t.icons;if(f&&ot(a),l&&(ot({[o]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[n]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];ot(m)}c&&ot(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];ot(m)}return(u||p)&&Ja(i.svg,{document:e.document}),(h||d)&&tc(i.icons,{document:e.document}),i},Ds={},Gm=(t,e=Ds)=>{let r=qm(t||{},e),o=e.scopeSelector||":root",n=o===":root"?":root:not([data-theme])":`${o}:not([data-theme])`,s=So({verbose:!1,...r});if(!e.preventInject){if(ot({[o]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[n]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];ot(i)}ot(s.reset)}return s},Km=(t,e=Ds)=>{ot(t)},AP=(t,e=Ds)=>{let r=e.scopeSelector||":root",o=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(ot({[r]:t.CSS_VARS}),t.CSS_MEDIA_VARS){let n={};for(let s in t.CSS_MEDIA_VARS)s.startsWith("@media")?n[s]={[o]:t.CSS_MEDIA_VARS[s]}:n[s]=t.CSS_MEDIA_VARS[s];ot(n)}};var EP=(t,e=Ds)=>{};O();var Ym=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,bl={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Xm=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),o=t;for(let n of r){if(!o||!o[n])return null;o=o[n]}return o},Zm=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=bl:e.router=Z(e.router||{},bl);let r=e.router,o=async(s,i)=>{let a=s.context?.window||k;if(!a.location)return;let{pathname:c,search:l,hash:f}=a.location;c=Ym(c);let p=c+l+f,u=s;if(r.customRouterElement){let d=Xm(s,r.customRouterElement);d&&(u=d,s.routes&&(u.routes=s.routes))}u.routes&&await re(p,u,{},{initialRender:!0,pushState:!1})},n=!ct(t.onRenderRouter);return r&&r.initRouter&&!n&&(t.onRenderRouter=o),Cw(e,r),r},xl=(t,e)=>{if(e.router===!1)return;let r=e.router||bl;if(!r.popState)return;let o=e.utils&&e.utils.router?e.utils.router:re,n=e.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=n.location;a=Ym(a);let f=a+c+l,p=t;if(r.customRouterElement){let u=Xm(t,r.customRouterElement);u&&(p=u,t.routes&&(p.routes=t.routes))}await p.call("router",f,p,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};n.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>n.removeEventListener("popstate",s))},Cw=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return W(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};O();var Sl=k&&k.location?k.location.host.includes("dev."):Ne(),Jm=Sl?"http://localhost:8080/get":"https://api.symbols.app/get",Aw={endpoint:Jm},Qm=async(t,e=Aw)=>{let r=e.endpoint||Jm,o=e.serviceRoute?T(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",n;try{return n=await globalThis.fetch(r+"/?"+o,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await n.json()}catch(s){if(C(e.onError))return e.onError(s);console.error(s)}},Ew=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let o=await Qm(t,r),n=Sl||e.isDevelopment?Nt(o):Nt(o.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{wt(e[s],n[s.toLowerCase()])}):wt(e[r.serviceRoute],n):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{wt(e[s],n[s.toLowerCase()])})}return e},Tw=async(t,e,r)=>{let{editor:o}=e;if(o&&o.remote){let n=await Qm(t,o),s=Sl||e.isDevelopment?Nt(n):Nt(n.releases[0]);r(s)}},ty=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await Ew(t,e)}catch(r){console.error(r)}},ey=(t,e,r,o)=>{if(e&&r.editor)try{r.editor.async&&Tw(e,r,o||(n=>{let s=n.designSystem;S(s)&&r.utils.init(s),S(n.state)&&t.state.set(n.state)}))}catch(n){console.error(n)}};var Ls=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(o){console.error("[smbls] destroy teardown error:",o)}e.__teardowns.length=0}try{wr(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};O();var Ow={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"}},Rw=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}"]`},Ms=(t,e,r)=>{if(!t)return{};let o=C(t)?G(t,e,r):{...t};if(!S(o))return{};for(let n in o){let s=o[n];C(s)&&(s=G(s,e,r)),w(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),o[n]=s}return o};var Pw=(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},Ns=(t,e)=>{if(!(!S(t)||!e))for(let r in t){let o=t[r];if(o==null)continue;let n=Ow[r];if(!n)continue;let s=Rw(n),i=e.querySelector(s)||Pw(n,e);i&&(r==="title"?i.textContent=o:n.valueAttr?i.setAttribute(n.valueAttr,o):i.setAttribute("content",o))}};var ry={name:"helmet",create(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let o=Ms(e,t,t.state);Ns(o,r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let o=Ms(e,t,t.state);Ns(o,r)}};Ve();var oy=(t,e,r,o)=>{t&&co(t,e,r,o)},ny=(t,e,r)=>{if(!t)return;let o=e.context?.document||typeof document<"u"&&document;if(!o)return;let n=Ms(t,e,r);Ns(n,o)},sy=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},o=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(o):await o(),r},Ao={routes:t=>t,metadata:ny,fetch:oy,$router:sy},Iw=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=ny),t.fetch!==!1&&(e.fetch=oy),t.router!==!1&&(e.$router=sy),e};var iy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},_l={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},js={...iy,router:_l},$w={state:{},pages:{},components:{},router:_l,define:Ao},Ae=$w;O();O();var ay=(t,e)=>L(t.extends)?t.extends:[];O();var uy=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;return t.document=t.document||r,t.window=t.window||e,t.window},cy=(t="smbls")=>{let e={};for(let r in Ar)Object.prototype.hasOwnProperty.call(Ar,r)&&(ae(r)?e[`smbls.${r}`]=Ar[r]:e[r]=Ar[r]);return e},py=t=>t.components?{...cy(),...t.components}:cy(),dy=t=>({...Co,...rl,...hr,...t.utils,...t.snippets,...t.functions}),hy=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),ly={},gy=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:o=!1,cdnProvider:n,packageManager:s,symbolsConfig:i})=>{if(n||(n=ze[s]||uo(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=Ne()&&o?`?${Math.random()}`:"",p=Jt(c,l,n)+f;try{if(ly[c])continue;ly[c]=!0,await Promise.race([po(p,{document:r,type:"module"}),new Promise((u,d)=>setTimeout(()=>d(new Error(`Timeout loading ${c}`)),1e4))])}catch(u){if(console.error(`Failed to load ${c} from ${n}:`,u),n!=="symbols")try{let d=Jt(c,l,"symbols")+f;await Promise.race([po(d,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${c}`)),1e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},my=async(t,e)=>{let r=e.window||window,o=e.cdnProvider||uo(e.symbolsConfig)||"esmsh",n=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=o)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,p=i.window||window;if(!p.packages[a]){let u=Ne()?`?${Math.random()}`:"";if(l&&l[a]){let d=l[a],h=Jt(a,d,c)+u;try{await i.utils.loadRemoteScript(h,{window:p,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let m=Jt(a,d,"symbols")+u;await i.utils.loadRemoteScript(m,{window:p,document:f})}}}else{let d=Jt(a,"latest",c)+u;try{await i.utils.loadRemoteScript(d,{window:p,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let g=Jt(a,"latest","symbols")+u;await i.utils.loadRemoteScript(g,{window:p,document:f})}}p.packages[a]="loadedOnDeman"}}return await p.require(a,c)};r.packages?r.packages=Z(r.packages,t):r.packages=t,r.require||(e.utils.require=await n(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},Fw=/\s+/g,yy=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,Dw=(t,e)=>{let r="";for(let o in t){let n=t[o];typeof n=="boolean"&&n?r+=` ${o}`:typeof n=="string"?r+=` ${n}`:typeof n=="function"&&(r+=` ${yy(n,e)}`)}return r},Lw=(t,e,r)=>{if(!t)return;let{key:o}=e;t===!0&&(t=e.classlist={key:o}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=Dw(t,e));let n=t.replace(Fw," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n},Mw=()=>(t,e,r)=>{let o=yy(t,e);if(t){let{__ref:n}=e;n.__class.style=o}by()(e.classlist,e,e.state,!0)},by=()=>(t,e,r,o)=>{if(e.style&&!o)return;let{__ref:n}=e,{__class:s,__classNames:i}=n;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=Ke(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&Lw(i,e,e.node)}},Nw=()=>({style:Mw(),classlist:by()}),jw=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],fy=!1,xy=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,o=e.initOptions||{},n=e.registry||Nw(),s=e.designSystem?W(Y(e.designSystem),Cs):Y(Cs),i={};for(let d of jw)e[d]!==void 0&&(i[d]=e[d]);let a,c=fy&&!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){ft(a);try{if(ot({[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];ot(d)}}finally{lt()}}}else if(c){let d=Vd(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,ft(d);try{a=Ce(d,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...js,...i,...o})}finally{lt()}}else{let d=A();d&&(d.document=r),a=Ce(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...js,...i,...o}),a&&a!==d&&(a.document=r),fy=!0}let p=a?.CONFIG||a,u=p?.font;if(u){ft(p);try{for(let d in u){let h=u[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")&&ot(`@font-face { ${m} }`)}}finally{lt()}}return[a,n]},Sy=(t,e)=>{let r={};e.state&&W(r,e.state),t&&t.state&&W(r,t.state);let o=e.polyglot;if(o?.translations){let n=null;try{typeof localStorage<"u"&&(n=localStorage.getItem(o.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=n||r.lang||o.defaultLang||"en";n&&n!==r.lang&&(r.lang=n);let i=o.translations[s];if(i&&typeof i=="object")for(let c in i)r[c]=i[c];let a=new Set(o.languages||[]);for(let c in o.translations)!a.has(c)&&r[c]===void 0&&(r[c]=o.translations[c])}return r.isRootState=!0,Y(r)},_y=(t,e)=>{S(t.routes)&&S(e.pages)&&Z(t.routes,e.pages);let r=t.routes||e.pages||{};for(let o in r){if(o.charCodeAt(0)===47)continue;let n=o==="index"?"":o;r["/"+n]=r[o],delete r[o]}return r},wy=t=>{Xn(t,t.sharedLibraries)};O();var vy="smbls_lang",Bw="smbls_t_",Vw="smbls_tv_",Tr={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)}}},Eo={};function Vs(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function wl(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Bs=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),o=t;for(let n=0;n<r.length;n++){if(o==null)return;o=o[r[n]]}return o},ky=(t,e,r)=>{let o=e.lastIndexOf(".");if(o===-1)return t[e+"_"+r];let n=Bs(t,e.substring(0,o));if(n!=null)return n[e.substring(o+1)+"_"+r]};function kl(t,e){if(!t)return"";let r=this?.context,o=r?.polyglot,n=e||this.call("getActiveLang"),s=this?.state;if(s){let l=ky(s,t,n);if(l!==void 0)return l}if(o?.translations){let l=o.translations[n];if(l){let f=Bs(l,t);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[n];if(l){let f=Bs(l,t);if(f!==void 0)return f}}let c=o?.defaultLang||"en";if(s){let l=ky(s,t,c);if(l!==void 0)return l}if(o?.translations){let l=o.translations[c];if(l){let f=Bs(l,t);if(f!==void 0)return f}}return t}async function vl(t){let e=this?.context,r=e?.polyglot,o=this?.state?.root||e?.state?.root;if(!r||!o)return;let n=r.storagePrefix||Bw,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):Vw);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!o.translations?.[t]){let c=Tr.get(n+t);if(c)try{let l=JSON.parse(c),f={translations:{...o.translations||{}}};f.translations[t]=l,o.update&&o.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(r.storagePrefix||"smbls")+":"+t;if(Eo[i])return Eo[i];let a=this;return Eo[i]=(async()=>{try{let c=r.fetch,l=parseInt(Tr.get(s+t),10)||0,f,p,u;if(C(c)){let h=await c(t,l,a);if(!h||h.changed===!1)return;f=h.translations||h.data||h,p=h.version||0,u=!0}else if(S(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 x=b.data;if(!x||!x.changed)return;f=x.translations||{},p=x.version||0,u=!0}else return;if(!u||!f)return;Tr.set(n+t,JSON.stringify(f)),p&&Tr.set(s+t,String(p));let d={translations:{...o.translations||{}}};d.translations[t]=f,o.update&&o.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 Eo[i]}})(),Eo[i]}async function Cl(t){let e=this?.context,r=e?.polyglot,o=this?.state?.root||e?.state?.root;if(!o||this.call("getActiveLang")===t)return;let n=r?.storageLangKey||vy;Tr.set(n,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(o.update&&o.update(i),s&&typeof s=="object")for(let c in s){let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&o[c]&&typeof o[c]=="object"&&!Array.isArray(o[c]))for(let f in l)o[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 p=f.__ref?.__exec?.text;if(typeof p=="string"&&p.includes("{{"))try{let u=f.call("replaceLiteralsWithObjectFields",p,f.state);u!=null&&l.textContent!==u&&(l.textContent=u)}catch{}}}}async function Al(t,e,r){let o=this?.context,n=o?.polyglot,s=this?.state?.root||o?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),n?.translations?.[e]&&(n.translations[e][t]=r),n?.fetch&&S(n.fetch)){let i=this.getDB||(()=>o.fetch),a=C(i)?await i.call(this):o.fetch;if(!a)return;let c=n.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 Cy(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let o=e.storageLangKey||vy,s=Tr.get(o)||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 El(t){try{let e=this?.context?.polyglot,o=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",n=this?.state;if(!n)return"";let s=t.lastIndexOf(".");if(s===-1)return n[t+o]??"";let i=t.substring(0,s).split("."),a=n;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+o]??""}catch{return""}}var Tl={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Cy.call(t))}};var zs={polyglot:kl,getLocalStateLang:El,getActiveLang:Vs,getLang:Vs,setLang:Cl,getLanguages:wl,loadTranslations:vl,upsertTranslation:Al};Ve();var Us={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}},Ws=t=>parseFloat(t.toFixed(4)),zw=(t,e,r)=>{let{ascent:o,descent:n,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(n),l=o+c+s,f=r!==void 0?r:l/i*t,p=f/t,u=l/i,d=(o-a+s/2)/i-(p-u)/2,h=(c+s/2)/i-(p-u)/2;return{fontSize:`${Ws(t/16)}rem`,lineHeight:`${Ws(f)}px`,capHeightTrim:`${Ws(-d)}em`,baselineTrim:`${Ws(-h)}em`}},Uw=(t,e)=>{if(typeof t=="number")return t;let r=e?.designSystem;if(!r)return null;let{typography:o}=r;if(o?.sequence){let s=String(t).toUpperCase(),i=o.sequence[s];if(i)return i.decimal||i.val}let n=parseFloat(t);return isNaN(n)?null:typeof t=="string"&&t.endsWith("rem")?n*(r.typography?.browserDefault||16):n},Ww=(t,e)=>{let o=e?.designSystem?.font_family||{};if(t){let s=o[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(Us[i])return Us[i]}let n=o.default||Object.keys(o)[0];if(n){let s=o[n];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(Us[a])return Us[a]}}return null},Ay=(t,e,r,o)=>{if(!t)return;let n=Uw(e.fontSize,o);if(!n)return;let s=Ww(e.fontFamily,o);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=zw(n,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},Ey={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}};var To={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"},$t=Object.create(null);for(let t in To)$t[To[t]]=t;var Ol=Object.create(null);for(let t in To){let e=To[t];if(Ol[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${Ol[e]}"`);Ol[e]=t}var Ee=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Oo(t){return/^[A-Z]/.test(t)}function Ro(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function Hw(t){return t.trim().split(/\s+/).filter(Boolean)}function Ty(t){return t.replace(/_/g," ")}function qw(t){if(!t||typeof t!="string")return{};let e={},r=Hw(t);for(let o of r){if(o.startsWith("!")){let c=o.slice(1),l=$t[c]||c;e[l]=!1;continue}let n=o.indexOf(":");if(n===-1){let c=$t[o]||o;e[c]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=$t[s]||s;if(i.includes(",")){e[a]=i.split(",").map(Ty);continue}e[a]=Ty(i)}return e}function Po(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Po(r):r});let e={};for(let r in t){let o=t[r];if(Oo(r)){e[r]=Rl(o);continue}let n=$t[r]||r;if(Ro(r)&&n===r){e[r]=Rl(o);continue}if(Ee.has(n)||Ee.has(r)){e[n]=o;continue}e[n]=Rl(o)}return e}function Rl(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Po(e):e}):typeof t=="object"?Po(t):t}function Io(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Io(r):r});let e={};if(typeof t.in=="string"){let r=qw(t.in);for(let o in r)e[o]=r[o]}for(let r in t){if(r==="in")continue;let o=t[r];if(Oo(r)){e[r]=Pl(o);continue}let n=$t[r]||r;if(Ro(r)&&n===r){e[r]=Pl(o);continue}if(Ee.has(n)||Ee.has(r)){e[n]=o;continue}e[n]=Pl(o)}return e}function Pl(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Io(e):e}):typeof t=="object"?Io(t):t}function Gw(t){let e="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){let o=t[r+1];if(o===","||o==="_"||o==="\\"){e+=o,r+=2;continue}}t[r]==="_"?e+=" ":e+=t[r],r++}return e}function Kw(t){let e=[],r="",o=0;for(;o<t.length;){if(t[o]==="\\"&&o+1<t.length){r+=t[o]+t[o+1],o+=2;continue}if(t[o]===","){e.push(r),r="",o++;continue}r+=t[o],o++}return e.push(r),e}function Oy(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):Gw(t)}function Il(t){if(!t||typeof t!="string")return{};let e={},r=t.trim().split(/\s+/).filter(Boolean);for(let o of r){if(o.startsWith("!")){let l=o.slice(1),f=$t[l]||l;e[f]=!1;continue}let n=o.indexOf(":");if(n===-1){let l=$t[o]||o;e[l]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=$t[s]||s,c=Kw(i);if(c.length>1){e[a]=c.map(Oy);continue}e[a]=Oy(i)}return e}function $o(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?$o(r):r});let e={};if(typeof t.in=="string"){let r=Il(t.in);for(let o in r)e[o]=r[o]}for(let r in t){if(r==="in")continue;let o=t[r];if(Oo(r)){typeof o=="string"?e[r]=Il(o):e[r]=$l(o);continue}let n=$t[r]||r;if(Ro(r)&&n===r){typeof o=="string"?e[r]=Il(o):e[r]=$l(o);continue}if(Ee.has(n)||Ee.has(r)){e[n]=o;continue}e[n]=$l(o)}return e}function $l(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?$o(e):e}):typeof t=="object"?$o(t):t}var Yw={shorten:Po,stringify:Io,stringifyFurther:$o};function Xw(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(o=>e(o));let r={};for(let o in t){let n=t[o];r[o]=n&&typeof n=="object"?e(n):n}return r}var Zw=["components","pages","snippets"],Hs={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let o=Yw[e===!0?"shorten":e];if(o){for(let n of Zw)t[n]&&(t[n]=Xw(t[n],o));t.app&&typeof t.app=="object"&&(t.app=o(t.app))}}};var Jw=0,Qw=()=>`${Date.now().toString(36)}-${(Jw++).toString(36)}`,U=(t,e,r={})=>({id:Qw(),ts:Date.now(),type:t,level:e,...r}),t0=t=>{let e=[],r=t,o=0;for(;r&&o<32;)r.key!=null&&e.unshift(String(r.key)),r=r.parent,o++;return e.join(" > ")},Or=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:t0(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Rr=t=>t?.context?.analyze,e0={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"}},r0=(t,{category:e,type:r,level:o})=>n=>{let s=Rr(n);!s||!s.shouldCapture(e)||s.emit(U(r,o,{hook:t,element:Or(n)}))},Ry=t=>(e,r)=>{let o=Rr(e);!o||!o.shouldCapture("state")||o.emit(U("state","debug",{hook:t,element:Or(e),changedKeys:r?.changedKeys||null}))},Fo={name:"analyze",error(t,e){let r=Rr(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let o=e?.error||e?.err||(e instanceof Error?e:null);r.emit(U("error","error",{hook:e?.hook||"error",element:Or(t),error:o,message:o?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Rr(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=Rr(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Rr(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:Or(t),durationMs:r}))},beforeStateUpdate:Ry("beforeStateUpdate"),stateUpdate:Ry("stateUpdate")};for(let[t,e]of Object.entries(e0))Fo[t]=r0(t,e);O();var qs={error:0,warn:1,info:2,debug:3,trace:4};var Fl=(t,e)=>{let r=qs[t],o=qs[e];return r==null||o==null?!0:r<=o},Gs=t=>qs[t]!=null?t:"warn";O();var Ks=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var o0=(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},n0=(t,e)=>{if(e!=="redact"){if(e==="hash"){let r=0,o=String(t);for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},Dl=(t,e,r,o)=>{if(o>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>Dl(s,e,r,o+1));let n={};for(let s of Object.keys(t))if(o0(s,e)||Ks.test(s)){let a=n0(t[s],r);a!==void 0&&(n[s]=a)}else n[s]=Dl(t[s],e,r,o+1);return n},Ll=(t=[],e="mask")=>{let r=Array.isArray(t)?t:[t];return o=>{if(!o)return o;let{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...h}=o,g=Dl(h,r,e,0);return{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...g}}};var Py=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,o=t.config.buildHash||null,n=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=k,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:n,build:o,route:i},meta:{ua:r,viewport:c}}}},Iy=()=>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},$y=(t=1e3,e=500)=>{let r=new Map;return o=>{if(!o)return o;let n=`${o.type}:${o.level}:${o.message||""}:${o.error?.message||""}`,s=r.get(n),i=o.ts||Date.now();if(s&&i-s<t)return null;if(r.set(n,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 o}},Fy=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},Dy={redact:t=>Ll(t.config.redact||[],t.config.maskStrategy),enrich:t=>Py(t),summarize:()=>Iy(),dedupe:t=>$y(t.config.cache?.dedupeWindowMs||1e3),sample:t=>Fy(t.config.sample||{})},s0=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=Dy[t];return r?r(e):null}return null},Ml=t=>{let e=t.config,r=Array.isArray(e.transformers)?e.transformers.slice():[],o=r.findIndex(s=>s==="redact");o>=0&&r.splice(o,1);let n=[];e.redact!==!1&&n.push(Dy.redact(t));for(let s of r){let i=s0(s,t);i&&n.push(i)}return s=>{let i=s;for(let a of n){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=n.slice(n.indexOf(a)+1),f=[];for(let p of c){let u=p,d=!1;for(let h of l)if(u=h(u),u==null){d=!0;break}!d&&u!=null&&f.push(u)}return f}i=c}return i}};O();var i0={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},a0="\x1B[0m",Ys=typeof k<"u"&&typeof k.document<"u",My=(t={})=>{let e=t.minLevel||null,r=console.error.bind(console),o=console.warn.bind(console),n=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?o:n,a=`[analyze:${s.type}]`;if(Ys)i(a,s);else{let c=i0[s.level]||"";i(`${c}${a}${a0}`,s)}}},Ny=(t,e={})=>{let r=e.max||t.config.cache?.max||500,o=new Array(r),n=0,s=0,i=a=>{o[n]=a,n=(n+1)%r,s<r&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(n-s+r)%r;for(let l=0;l<s;l++)a[l]=o[(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:()=>{n=0,s=0}},i},jy=(t={})=>{let e=t.url,r=t.batchMs!=null?t.batchMs:5e3,o=t.maxBatch||50;if(!e)return()=>{};let n=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!n.length)return;let c=JSON.stringify({events:n});n=[];let l=Ys?new k.Blob([c],{type:"application/json"}):c;if(Ys&&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(()=>{})};Ys&&(k.addEventListener("pagehide",i,{passive:!0}),k.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(n.push(c),n.length>=o?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},Ly={console:My,memory:Ny,beacon:jy},Nl=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],r=[];for(let o of e)if(typeof o=="function")r.push(o);else if(typeof o=="string"){let n=Ly[o];if(!n)continue;r.push(o==="memory"?n(t,{}):n({}))}else if(o&&typeof o=="object"&&o.type){let n=Ly[o.type];if(!n)continue;r.push(o.type==="memory"?n(t,o):n(o))}return r};O();var c0=typeof k<"u"&&typeof k.document<"u",l0=new Set(["password","hidden"]),By=(t,e)=>{let r=0,o=null,n=null;return(...s)=>{let i=Date.now();i-r>=e?(r=i,t(...s)):(n=s,o||(o=setTimeout(()=>{r=Date.now(),o=null,n&&(t(...n),n=null)},e-(i-r))))}},jl="__analyzeKeyPath",Pr=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[jl])return e[jl];let r=[],o=e,n=0,s=null;for(;o&&n<64;){if(o.getAttribute){let a=o.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}o=o.parentNode,n++}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[jl]=i}catch{}return i},f0=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let r=0,o=String(t||"");for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},u0=t=>!!(!t||t.tagName==="INPUT"&&l0.has(t.type)||Ks.test(t.name||"")||Ks.test(t.id||"")||t.dataset?.analyze==="skip"),Bl=t=>{if(!c0)return;let e=t.config.capture,r=t.config.throttle,o=t.__teardown,n=(s,i,a,c)=>{s.addEventListener(i,a,c),o.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(n(k,"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}))}),n(k,"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){n(k,"click",i=>{t.emit(U("pointer","info",{hook:"click",target:Pr(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:Vy(i)}))},{passive:!0,capture:!0}),n(k,"dblclick",i=>{t.emit(U("pointer","info",{hook:"dblclick",target:Pr(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),n(k,"contextmenu",i=>{t.emit(U("pointer","info",{hook:"contextmenu",target:Pr(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=By(i=>{t.emit(U("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);n(k,"pointermove",s,{passive:!0})}if(e.keyboard&&n(k,"keydown",s=>{t.emit(U("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:Vy(s),target:Pr(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=u0(a),f=a.dataset?.analyze==="track",p=null;f&&!l?p=a.value:t.config.maskFormValues!==!1&&(p=f0(a.value,t.config.maskStrategy)),t.emit(U("forms","info",{hook:i.type,target:Pr(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:p}))};n(k,"input",s,{passive:!0,capture:!0}),n(k,"change",s,{passive:!0,capture:!0}),n(k,"submit",i=>{t.emit(U("forms","info",{hook:"submit",target:Pr(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=By(()=>{t.emit(U("scroll","trace",{hook:"scroll",x:k.scrollX,y:k.scrollY}))},r.scroll);n(k,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=un(()=>{t.emit(U("viewport","info",{hook:"resize",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))},r.resize);n(k,"resize",s,{passive:!0}),n(k,"orientationchange",()=>{t.emit(U("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),n(k.document,"visibilitychange",()=>{t.emit(U("viewport","info",{hook:"visibilitychange",hidden:k.document.hidden}))},{passive:!0}),t.emit(U("viewport","info",{hook:"initial",w:k.innerWidth,h:k.innerHeight,dpr:k.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(p0)}))}catch{}return i.apply(console,a)},o.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{}o.push(()=>s.disconnect())}catch{}},Vy=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),p0=t=>{if(t==null)return t;if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};O();var d0=typeof k<"u"&&typeof k.document<"u";var Vl=t=>{if(d0&&t.config.capture.network){if(typeof k.fetch=="function"){let e=k.fetch.bind(k),r=function(o,n){if(n?.headers?.["X-Analyze-Beacon"])return e(o,n);let s=typeof o=="string"?o:o&&o.url||"",i=(n?.method||typeof o=="object"&&o?.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(o,n).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})};k.fetch=r,t.__teardown.push(()=>{k.fetch=e})}if(typeof k.XMLHttpRequest=="function"){let e=k.XMLHttpRequest,r=e.prototype.open,o=e.prototype.send;e.prototype.open=function(n,s){return this.__analyze={method:String(n).toUpperCase(),url:String(s)},r.apply(this,arguments)},e.prototype.send=function(n){let s=this.__analyze;if(!s)return o.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),o.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=r,e.prototype.send=o})}}};var h0={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},g0={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},m0={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},y0=t=>{let e={...h0,...t};return e.replay&&Object.assign(e,g0),e.telemetry&&Object.assign(e,m0),e},b0=64,x0=()=>{if(typeof k>"u"||!k.location)return null;try{let e=new URLSearchParams(k.location.search).get("analyze");return e||null}catch{return null}},zl=(t={})=>{let e=t===!0?{}:{...t};e.capture=y0(e.capture||{});let r=x0();(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=Gs(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 o={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},n=()=>{o.__pipeline||(o.__pipeline=Ml(o),o.__sinks=Nl(o))};return o.shouldCapture=s=>o.config.enabled===!1?!1:!!o.config.capture[s],o.emit=s=>{if(s&&o.config.enabled!==!1&&!o.__paused&&Fl(s.level,o.config.level)){if(!o.__ready){if(s.level!=="error"&&!o.config.captureDuringHydration)return;o.__preBuffer.length<b0&&o.__preBuffer.push(s);return}n(),zy(o,s)}},o.activate=s=>{if(o.context==null&&(o.context=s||null),o.__ready)return;o.__ready=!0;let i=o.__preBuffer;if(o.__preBuffer=[],i.length){n();for(let a of i)zy(o,a)}try{Bl(o)}catch(a){console.error("[analyze] browser attach error:",a)}try{Vl(o)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of o.__onActivate||[])try{a(o)}catch(c){console.error("[analyze] onActivate error:",c)}},o.pause=()=>{o.__paused=!0},o.resume=()=>{o.__paused=!1},o.setLevel=s=>{o.config.level=Gs(s)},o.setCapture=(s,i)=>{o.config.capture[s]=!!i},o.query=s=>o.__memory?o.__memory.query(s):[],o.snapshot=()=>o.__memory?o.__memory.snapshot():[],o.emitNetwork=s=>{if(!o.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";o.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})},o.flush=()=>{if(o.__sinks)for(let s of o.__sinks)typeof s.flush=="function"&&s.flush()},o.replay=()=>({initialSnapshot:o.__initialSnapshot,events:o.snapshot()}),o.destroy=()=>{for(let s of o.__teardown)try{s()}catch{}o.__teardown=[],o.__ready=!1,o.__paused=!0},o.__onActivate=[],o.onActivate=s=>{o.__onActivate.push(s)},o},zy=(t,e)=>{let r=t.__pipeline(e);if(r==null)return;let o=Array.isArray(r)?r:[r];for(let n of o){if(typeof t.config.onEvent=="function")try{t.config.onEvent(n)}catch{}for(let s of t.__sinks)try{s(n)}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 Do=Object.create(null);Object.keys(qt).forEach(t=>{Do[qt[t]]=t});var Lo={type:"error",data:"parser error"};var Hy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",qy=typeof ArrayBuffer=="function",Gy=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Mo=({type:t,data:e},r,o)=>Hy&&e instanceof Blob?r?o(e):Uy(e,o):qy&&(e instanceof ArrayBuffer||Gy(e))?r?o(e):Uy(new Blob([e]),o):o(qt[t]+(e||"")),Uy=(t,e)=>{let r=new FileReader;return r.onload=function(){let o=r.result.split(",")[1];e("b"+(o||""))},r.readAsDataURL(t)};function Wy(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Ul;function Ky(t,e){if(Hy&&t.data instanceof Blob)return t.data.arrayBuffer().then(Wy).then(e);if(qy&&(t.data instanceof ArrayBuffer||Gy(t.data)))return e(Wy(t.data));Mo(t,!1,r=>{Ul||(Ul=new TextEncoder),e(Ul.encode(r))})}var Yy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",No=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Yy.length;t++)No[Yy.charCodeAt(t)]=t;var Xy=t=>{let e=t.length*.75,r=t.length,o,n=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(o=0;o<r;o+=4)s=No[t.charCodeAt(o)],i=No[t.charCodeAt(o+1)],a=No[t.charCodeAt(o+2)],c=No[t.charCodeAt(o+3)],f[n++]=s<<2|i>>4,f[n++]=(i&15)<<4|a>>2,f[n++]=(a&3)<<6|c&63;return l};var S0=typeof ArrayBuffer=="function",jo=(t,e)=>{if(typeof t!="string")return{type:"message",data:Zy(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:_0(t.substring(1),e)}:Do[r]?t.length>1?{type:Do[r],data:t.substring(1)}:{type:Do[r]}:Lo},_0=(t,e)=>{if(S0){let r=Xy(t);return Zy(r,e)}else return{base64:!0,data:t}},Zy=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var Jy="",Qy=(t,e)=>{let r=t.length,o=new Array(r),n=0;t.forEach((s,i)=>{Mo(s,!1,a=>{o[i]=a,++n===r&&e(o.join(Jy))})})},tb=(t,e)=>{let r=t.split(Jy),o=[];for(let n=0;n<r.length;n++){let s=jo(r[n],e);if(o.push(s),s.type==="error")break}return o};function eb(){return new TransformStream({transform(t,e){Ky(t,r=>{let o=r.length,n;if(o<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,o);else if(o<65536){n=new Uint8Array(3);let s=new DataView(n.buffer);s.setUint8(0,126),s.setUint16(1,o)}else{n=new Uint8Array(9);let s=new DataView(n.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(o))}t.data&&typeof t.data!="string"&&(n[0]|=128),e.enqueue(n),e.enqueue(r)})}})}var Wl;function Xs(t){return t.reduce((e,r)=>e+r.length,0)}function Zs(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),o=0;for(let n=0;n<e;n++)r[n]=t[0][o++],o===t[0].length&&(t.shift(),o=0);return t.length&&o<t[0].length&&(t[0]=t[0].slice(o)),r}function rb(t,e){Wl||(Wl=new TextDecoder);let r=[],o=0,n=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(o===0){if(Xs(r)<1)break;let c=Zs(r,1);s=(c[0]&128)===128,n=c[0]&127,n<126?o=3:n===126?o=1:o=2}else if(o===1){if(Xs(r)<2)break;let c=Zs(r,2);n=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),o=3}else if(o===2){if(Xs(r)<8)break;let c=Zs(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Lo);break}n=f*Math.pow(2,32)+l.getUint32(4),o=3}else{if(Xs(r)<n)break;let c=Zs(r,n);a.enqueue(jo(s?c:Wl.decode(c),e)),o=0}if(n===0||n>t){a.enqueue(Lo);break}}}})}var Hl=4;function K(t){if(t)return w0(t)}function w0(t){for(var e in K.prototype)t[e]=K.prototype[e];return t}K.prototype.on=K.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};K.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};K.prototype.off=K.prototype.removeListener=K.prototype.removeAllListeners=K.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 o,n=0;n<r.length;n++)if(o=r[n],o===e||o.fn===e){r.splice(n,1);break}return r.length===0&&delete this._callbacks["$"+t],this};K.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){r=r.slice(0);for(var o=0,n=r.length;o<n;++o)r[o].apply(this,e)}return this};K.prototype.emitReserved=K.prototype.emit;K.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};K.prototype.hasListeners=function(t){return!!this.listeners(t).length};var fe=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),mt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),ob="arraybuffer";function Js(t,...e){return e.reduce((r,o)=>(t.hasOwnProperty(o)&&(r[o]=t[o]),r),{})}var k0=mt.setTimeout,v0=mt.clearTimeout;function ue(t,e){e.useNativeTimers?(t.setTimeoutFn=k0.bind(mt),t.clearTimeoutFn=v0.bind(mt)):(t.setTimeoutFn=mt.setTimeout.bind(mt),t.clearTimeoutFn=mt.clearTimeout.bind(mt))}var C0=1.33;function nb(t){return typeof t=="string"?A0(t):Math.ceil((t.byteLength||t.size)*C0)}function A0(t){let e=0,r=0;for(let o=0,n=t.length;o<n;o++)e=t.charCodeAt(o),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(o++,r+=4);return r}function Qs(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function sb(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function ib(t){let e={},r=t.split("&");for(let o=0,n=r.length;o<n;o++){let s=r[o].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var ti=class extends Error{constructor(e,r,o){super(e),this.description=r,this.context=o,this.type="TransportError"}},pe=class extends K{constructor(e){super(),this.writable=!1,ue(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,o){return super.emitReserved("error",new ti(e,r,o)),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=jo(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=sb(e);return r.length?"?"+r:""}};var Bo=class extends pe{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 o=0;this._polling&&(o++,this.once("pollComplete",function(){--o||r()})),this.writable||(o++,this.once("drain",function(){--o||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let r=o=>{if(this.readyState==="opening"&&o.type==="open"&&this.onOpen(),o.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(o)};tb(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,Qy(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]=Qs()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var ab=!1;try{ab=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var cb=ab;function E0(){}var ql=class extends Bo{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||o!==e.port}}doWrite(e,r){let o=this.request({method:"POST",data:e});o.on("success",r),o.on("error",(n,s)=>{this.onError("xhr post error",n,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,o)=>{this.onError("xhr poll error",r,o)}),this.pollXhr=e}},Te=class t extends K{constructor(e,r,o){super(),this.createRequest=e,ue(this,o),this._opts=o,this._method=o.method||"GET",this._uri=r,this._data=o.data!==void 0?o.data:null,this._create()}_create(){var e;let r=Js(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let o=this._xhr=this.createRequest(r);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&o.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{o.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var n;o.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(o.getResponseHeader("set-cookie"))),o.readyState===4&&(o.status===200||o.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof o.status=="number"?o.status:0)},0))},o.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},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=E0,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()}};Te.requestsCount=0;Te.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",lb);else if(typeof addEventListener=="function"){let t="onpagehide"in mt?"pagehide":"unload";addEventListener(t,lb,!1)}}function lb(){for(let t in Te.requests)Te.requests.hasOwnProperty(t)&&Te.requests[t].abort()}var T0=(function(){let t=fb({xdomain:!1});return t&&t.responseType!==null})(),Oe=class extends ql{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=T0&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Te(fb,this.uri(),e)}};function fb(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||cb))return new XMLHttpRequest}catch{}if(!e)try{return new mt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var ub=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Kl=class extends pe{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,o=ub?{}:Js(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,r,o)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let o=e[r],n=r===e.length-1;Mo(o,this.supportsBinary,s=>{try{this.doWrite(o,s)}catch{}n&&fe(()=>{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]=Qs()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},Gl=mt.WebSocket||mt.MozWebSocket,Re=class extends Kl{createSocket(e,r,o){return ub?new Gl(e,r,o):r?new Gl(e,r):new Gl(e)}doWrite(e,r){this.ws.send(r)}};var Ir=class extends pe{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=rb(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=e.readable.pipeThrough(r).getReader(),n=eb();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let s=()=>{o.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 o=e[r],n=r===e.length-1;this._writer.write(o).then(()=>{n&&fe(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var Yl={websocket:Re,webtransport:Ir,polling:Oe};var O0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,R0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function $r(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),o=t.indexOf("]");r!=-1&&o!=-1&&(t=t.substring(0,r)+t.substring(r,o).replace(/:/g,";")+t.substring(o,t.length));let n=O0.exec(t||""),s={},i=14;for(;i--;)s[R0[i]]=n[i]||"";return r!=-1&&o!=-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=P0(s,s.path),s.queryKey=I0(s,s.query),s}function P0(t,e){let r=/\/{2,9}/g,o=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&o.splice(0,1),e.slice(-1)=="/"&&o.splice(o.length-1,1),o}function I0(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,n,s){n&&(r[n]=s)}),r}var Xl=typeof addEventListener=="function"&&typeof removeEventListener=="function",ei=[];Xl&&addEventListener("offline",()=>{ei.forEach(t=>t())},!1);var Ze=class t extends K{constructor(e,r){if(super(),this.binaryType=ob,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 o=$r(e);r.hostname=o.host,r.secure=o.protocol==="https"||o.protocol==="wss",r.port=o.port,o.query&&(r.query=o.query)}else r.host&&(r.hostname=$r(r.host).host);ue(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(o=>{let n=o.prototype.name;this.transports.push(n),this._transportsByName[n]=o}),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=ib(this.opts.query)),Xl&&(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"})},ei.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=Hl,r.transport=e,this.id&&(r.sid=this.id);let o=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](o)}_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 o=0;o<this.writeBuffer.length;o++){let n=this.writeBuffer[o].data;if(n&&(r+=nb(n)),o>0&&r>this._maxPayload)return this.writeBuffer.slice(0,o);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,fe(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,o){return this._sendPacket("message",e,r,o),this}send(e,r,o){return this._sendPacket("message",e,r,o),this}_sendPacket(e,r,o,n){if(typeof r=="function"&&(n=r,r=void 0),typeof o=="function"&&(n=o,o=null),this.readyState==="closing"||this.readyState==="closed")return;o=o||{},o.compress=o.compress!==!1;let s={type:e,data:r,options:o};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},o=()=>{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?o():e()}):this.upgrading?o():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(),Xl&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let o=ei.indexOf(this._offlineEventListener);o!==-1&&ei.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Ze.protocol=Hl;var ri=class extends Ze{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),o=!1;Ze.priorWebsocketSuccess=!1;let n=()=>{o||(r.send([{type:"ping",data:"probe"}]),r.once("packet",p=>{if(!o)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Ze.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{o||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let u=new Error("probe error");u.transport=r.name,this.emitReserved("upgradeError",u)}}))};function s(){o||(o=!0,f(),r.close(),r=null)}let i=p=>{let u=new Error("probe error: "+p);u.transport=r.name,s(),this.emitReserved("upgradeError",u)};function a(){i("transport closed")}function c(){i("socket closed")}function l(p){r&&p.name!==r.name&&s()}let f=()=>{r.removeListener("open",n),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};r.once("open",n),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(()=>{o||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let o=0;o<e.length;o++)~this.transports.indexOf(e[o])&&r.push(e[o]);return r}},Fr=class extends ri{constructor(e,r={}){let o=typeof e=="object"?e:r;(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(n=>Yl[n]).filter(n=>!!n)),super(e,o)}};var a$=Fr.protocol;function pb(t,e="",r){let o=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),o=$r(t)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";let s=o.host.indexOf(":")!==-1?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+s+":"+o.port+e,o.href=o.protocol+"://"+s+(r&&r.port===o.port?"":":"+o.port),o}var of={};$(of,{Decoder:()=>ef,Encoder:()=>tf,PacketType:()=>F,isPacketValid:()=>Q0,protocol:()=>kb});var F0=typeof ArrayBuffer=="function",D0=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,db=Object.prototype.toString,L0=typeof Blob=="function"||typeof Blob<"u"&&db.call(Blob)==="[object BlobConstructor]",M0=typeof File=="function"||typeof File<"u"&&db.call(File)==="[object FileConstructor]";function zo(t){return F0&&(t instanceof ArrayBuffer||D0(t))||L0&&t instanceof Blob||M0&&t instanceof File}function Vo(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,o=t.length;r<o;r++)if(Vo(t[r]))return!0;return!1}if(zo(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Vo(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Vo(t[r]))return!0;return!1}function hb(t){let e=[],r=t.data,o=t;return o.data=Zl(r,e),o.attachments=e.length,{packet:o,buffers:e}}function Zl(t,e){if(!t)return t;if(zo(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 o=0;o<t.length;o++)r[o]=Zl(t[o],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Zl(t[o],e));return r}return t}function gb(t,e){return t.data=Jl(t.data,e),delete t.attachments,t}function Jl(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]=Jl(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=Jl(t[r],e));return t}var _b=Xb(Sb(),1),Ql=(0,_b.default)("socket.io-parser"),wb=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],kb=5,F;(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"})(F||(F={}));var tf=class{constructor(e){this.replacer=e}encode(e){return Ql("encoding packet %j",e),(e.type===F.EVENT||e.type===F.ACK)&&Vo(e)?this.encodeAsBinary({type:e.type===F.EVENT?F.BINARY_EVENT:F.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===F.BINARY_EVENT||e.type===F.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)),Ql("encoded %j as %s",e,r),r}encodeAsBinary(e){let r=hb(e),o=this.encodeAsString(r.packet),n=r.buffers;return n.unshift(o),n}},ef=class t extends K{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 o=r.type===F.BINARY_EVENT;o||r.type===F.BINARY_ACK?(r.type=o?F.EVENT:F.ACK,this.reconstructor=new rf(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(zo(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,o={type:Number(e.charAt(0))};if(F[o.type]===void 0)throw new Error("unknown packet type "+o.type);if(o.type===F.BINARY_EVENT||o.type===F.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(!vb(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");o.attachments=a}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););o.nsp=e.substring(s,r)}else o.nsp="/";let n=e.charAt(r+1);if(n!==""&&Number(n)==n){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}o.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(o.type,s))o.data=s;else throw new Error("invalid payload")}return Ql("decoded %s as %j",e,o),o}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case F.CONNECT:return si(r);case F.DISCONNECT:return r===void 0;case F.CONNECT_ERROR:return typeof r=="string"||si(r);case F.EVENT:case F.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&wb.indexOf(r[0])===-1);case F.ACK:case F.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},rf=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=gb(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function X0(t){return typeof t=="string"}var vb=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function Z0(t){return t===void 0||vb(t)}function si(t){return Object.prototype.toString.call(t)==="[object Object]"}function J0(t,e){switch(t){case F.CONNECT:return e===void 0||si(e);case F.DISCONNECT:return e===void 0;case F.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&wb.indexOf(e[0])===-1);case F.ACK:return Array.isArray(e);case F.CONNECT_ERROR:return typeof e=="string"||si(e);default:return!1}}function Q0(t){return X0(t.nsp)&&Z0(t.id)&&J0(t.type,t.data)}function At(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var tk=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Nr=class extends K{constructor(e,r,o){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,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[At(e,"open",this.onopen.bind(this)),At(e,"packet",this.onpacket.bind(this)),At(e,"error",this.onerror.bind(this)),At(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 o,n,s;if(tk.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:F.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let f=this.ids++,p=r.pop();this._registerAckCallback(f,p),i.id=f}let a=(n=(o=this.io.engine)===null||o===void 0?void 0:o.transport)===null||n===void 0?void 0:n.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 o;let n=(o=this.flags.timeout)!==null&&o!==void 0?o:this._opts.ackTimeout;if(n===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"))},n),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...r){return new Promise((o,n)=>{let s=(i,a)=>i?n(i):o(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 o={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...s)=>(this._queue[0],n!==null?o.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(n)):(this._queue.shift(),r&&r(null,...s)),o.pending=!1,this._drainQueue())),this._queue.push(o),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:F.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(o=>String(o.id)===e)){let o=this.acks[e];delete this.acks[e],o.withError&&o.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case F.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 F.EVENT:case F.BINARY_EVENT:this.onevent(e);break;case F.ACK:case F.BINARY_ACK:this.onack(e);break;case F.DISCONNECT:this.ondisconnect();break;case F.CONNECT_ERROR:this.destroy();let o=new Error(e.data.message);o.data=e.data.data,this.emitReserved("connect_error",o);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 o of r)o.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,o=!1;return function(...n){o||(o=!0,r.packet({type:F.ACK,id:e,data:n}))}}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:F.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 o=0;o<r.length;o++)if(e===r[o])return r.splice(o,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 o=0;o<r.length;o++)if(e===r[o])return r.splice(o,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 o of r)o.apply(this,e.data)}}};function Qe(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}Qe.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};Qe.prototype.reset=function(){this.attempts=0};Qe.prototype.setMin=function(t){this.ms=t};Qe.prototype.setMax=function(t){this.max=t};Qe.prototype.setJitter=function(t){this.jitter=t};var jr=class extends K{constructor(e,r){var o;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,ue(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((o=r.randomizationFactor)!==null&&o!==void 0?o:.5),this.backoff=new Qe({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let n=r.parser||of;this.encoder=new n.Encoder,this.decoder=new n.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 Fr(this.uri,this.opts);let r=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;let n=At(r,"open",function(){o.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=At(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{n(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(n),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(At(e,"ping",this.onping.bind(this)),At(e,"data",this.ondata.bind(this)),At(e,"error",this.onerror.bind(this)),At(e,"close",this.onclose.bind(this)),At(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){fe(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let o=this.nsps[e];return o?this._autoConnect&&!o.active&&o.connect():(o=new Nr(this,e,r),this.nsps[e]=o),o}_destroy(e){let r=Object.keys(this.nsps);for(let o of r)if(this.nsps[o].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let o=0;o<r.length;o++)this.engine.write(r[o],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 o;this.cleanup(),(o=this.engine)===null||o===void 0||o.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 o=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},r);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var Uo={};function Br(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=pb(t,e.path||"/socket.io"),o=r.source,n=r.id,s=r.path,i=Uo[n]&&s in Uo[n].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new jr(o,e):(Uo[n]||(Uo[n]=new jr(o,e)),c=Uo[n]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Br,{Manager:jr,Socket:Nr,io:Br,connect:Br});O();var ek=new Set(["__proto__","constructor","prototype"]),Cb=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(ek.has(t[e]))return!1;return!0},rk=(t,e)=>{!t||!Cb(e)||e.reduce((r,o,n,s)=>{if(r&&o in r){if(n!==s.length-1)return r[o];delete r[o]}},t)},ok=(t,e,r,o=!1)=>{!t||!Cb(e)||e.reduce((n,s,i,a)=>{if(n){if(i!==a.length-1)return!n[s]&&o&&(n[s]={}),n[s];n[s]=r}},t)},Ab=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[o,n,s]of e)if(!(!Array.isArray(n)||!n.length))switch(r.add(n[0]),o){case"delete":rk(t,n);break;case"update":case"set":ok(t,n,s,!0);break;default:break}return r};O();var Eb=(t,e,r)=>(o={})=>{let{data:n}=o,{schema:s}=o;n&&(n=t.call("deepDestringifyFunctions",n,Array.isArray(n)?[]:{}),Object.entries(n).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Ce(a):nr(r[i],a):r[i]=a}),s&&(r.schema=s))},Tb=(t,e,r)=>(o={})=>{let{changes:n}=o;if(!n||!Array.isArray(n)||!n.length)return;n=t.call("deepDestringifyFunctions",n,Array.isArray(n)?[]:{});let s=Ab(r,n);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")&&Ce(r.designSystem)};var nk={success:"green",error:"red",warning:"yellow"},Ob=(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 o=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(o)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let o=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(o)},3e3)}},Rb={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:nk[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,o)=>{r.update({animation:"fadeInUp"})},onClick:(e,r,o)=>{delete o.notifications[r.key],r.update({animation:"fadeOutDown"}),o.onClose&&o.onClose(e,r,o)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var sk=!1,ik=()=>sk?"http://localhost:8080":"https://api.symbols.app",ak=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}},ck=async t=>{try{let e=t||ik(),r=await k.fetch(`${e}/service-token`,{method:"GET"}),o;try{let n=await r.clone().json();if(n&&typeof n.token=="string")return n.token.trim();o=await r.text()}catch{o=await r.text()}return(o||"").replace(/\s+/gu,"")||void 0}catch(e){console.error("[sync] Failed to fetch service-token",e)}},$b=(t,e,r,o)=>{t.on("snapshot",Eb(e,r,o)),t.on("ops",Tb(e,r,o)),t.on("clients",n=>{o.editor?.verbose&&Ob(n,e,r)}),t.on("disconnect",n=>{o.editor?.verbose&&console.info("[sync] disconnected",n)})},lk=async(t,e,r,o)=>{let n=await ck(o);if(!n)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=Br(o,{path:"/collab-socket",transports:["websocket"],auth:{token:n,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)")}),$b(a,t,e,r),a},fk=(t,e,r)=>{let o=Br({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return o.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),$b(o,t,e,r),o.on("reload",()=>{typeof k<"u"&&k.location&&k.location.reload()}),o},uk=async(t,e,r)=>{let{mode:o,baseUrl:n}=ak(r);return o?o==="collab"?lk(t,e,r,n):o==="runner"?fk(t,e,r):null:null},pk={onInit:uk};var Fb=t=>typeof t>"u",Pb=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),Ib=t=>t?.editor?.runtime==="runner",Db=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},Lb={name:"sync",beforeCreate(t,e){let r=e&&e.editor;(r&&!Fb(r.liveSync)?r.liveSync:Pb(e)||Ib(e))&&(Pb(e)&&!Ib(e)&&!e?.key||Db(t,pk))}},Mb={name:"notifications",beforeCreate(t,e){if(!e)return;let r=Fb(e.notifications)?null:e.notifications,o=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&o)&&Db(t,Rb)}};O();function Nb(t){return w(t)?t:T(t)?t.find(e=>w(e)):""}function sf(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&Nb(t.extends),o=t.parent&&t.parent.childExtends&&Nb(t.parent.childExtends);return(e||r||o||"").split("_")[0].split(".")[0].split("+")[0]}function ii(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:o}=t.context,n=sf(t);return o&&o.onInitInspect&&!o.onInitInspect(n,t,t.state)?ii(t.parent):n&&(e[n]||r[n])?t:ii(t.parent)}var dk=(t,e,r)=>{let o=r.window||window;o.onkeydown=n=>{n.altKey&&n.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},o.onkeyup=n=>{t.state.preventSelect&&(!n.altKey||!n.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},nf={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:dk,onMousemove:(t,e,r)=>{let o=t.target.ref,n=ii(o),s=e.Inspector.state;if(!n||!r.debugging||!n.__ref)return s.update({area:!1});let i=sf(n),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:p,height:u}=n.node.getBoundingClientRect(),d={x:l,y:f,width:p,height:u};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 o=t.target.ref,n=ii(o);if(!n)return;let s=sf(n);if(!s)return;let i=o.context.editor;if(i&&i.onInspect)return i.onInspect(s,o,o.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return o.context.socket?.emit&&o.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(S(e)){let{Content:r,...o}=e;for(let n in o)ko[n]||(o[n].__ref||(o[n].__ref={}),o[n].__ref.__componentKey||(o[n].__ref.__componentKey=n))}},onBeforeUpdate:(t,e,r)=>{let{area:o}=r,n=r.area&&r.parent.debugging,s;if(!n)s="display: none !important";else if(o){let{x:i,y:a,width:c,height:l}=o;s=`
72
72
  display: block !important;
73
73
  top: ${a-6}px;
74
74
  left: ${i-6}px;
75
75
  width: ${c+12}px;
76
76
  height: ${l+12}px;
77
- `}return t.node.style=s,t.Span.node.innerText=r.focusKey,!1}}},iv={name:"inspect",beforeCreate(e,t){Array.isArray(e.extends)?e.extends.push(Uf):e.extends?e.extends=[e.extends,Uf]:e.extends=[Uf]}};var jC=async(e,t={})=>{let r=t.symbolsConfig,o=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,n=t.key=t.key||o||(S(e)?e:"smblsapp");if(t.define=t.define||Po,t.cssPropsRegistry=se,t.window=Ix(t),t.sharedLibraries&&t.sharedLibraries.length){if(t.sharedLibraries.some(u=>typeof u=="string")){let{resolveSharedLibraries:u}=await Promise.resolve().then(()=>(T(),dh));t.sharedLibraries=await u(t.sharedLibraries)}Vx(t)}let[s,i]=jx(n,t);t.designSystem=s,t.registry=i,t.cases||(t.cases={}),t.shorthand&&Zs.prepareContext(t);let a=zx(e,t);t.state=a,Wn(a),t.pages=Wx(e,t),t.components=$x(t),t.utils=Fx(t),Ht[t.packageManager]&&(t.dependencies=await Lx(t)),t.methods=Dx(t),t.routerOptions=By(e,t),t.defaultExtends=[Hs],t.snippets=t.snippets||{},t.functions=t.functions||{},t.plugins=t.plugins||[],t.globalScope&&v(t.globalScope)&&(t.globalScope=un(t.globalScope));let c=(p,u)=>{let d=u?p[u]:p;if(!v(d))return;let h=je(d);try{Object.assign(d,h)}catch(m){if(u)p[u]=h;else throw m}};c(e),c(t,"components"),c(t,"pages"),c(t,"functions"),c(t,"methods"),c(t,"snippets"),c(t,"app"),t.fetch&&t.fetch.__resolved&&delete t.fetch.__resolved,t.db&&t.db.__resolved&&delete t.db.__resolved;let l=p=>t.plugins.some(u=>u.name===p);if(t.polyglot&&!l("polyglot")){t.plugins.push(mf);for(let p in Ks)p in t.functions||(t.functions[p]=Ks[p])}if(l("helmet")||t.plugins.push(Hy),t.fetch&&!l("fetch")&&t.plugins.push(xa),t.designSystem?.typography?.useCapsize!==!1&&!l("capsize")&&(t.plugins.push(Kx),t.cssPropsRegistry.useCapsize=Gx),t.shorthand&&!l("shorthand")&&t.plugins.push(Zs),t.analyze&&!l("analyze")){let p=t.analyze===!0?{}:t.analyze;t.analyze=Of(p),t.plugins.push(jo)}return t.sync!==!1&&!l("sync")&&t.plugins.push(ov),t.inspect&&!l("inspect")&&t.plugins.push(iv),(t.notifications===!0||t.editor&&t.editor.verbose===!0)&&t.notifications!==!1&&!l("notifications")&&t.plugins.push(nv),t},Gf=async(e,t)=>{v(t)||(t={}),mt(e)?(e={},t.parent=e):S(e)?(e={},t.key=e):v(e)||(e={});let r=t.window||(typeof window<"u"?window:null),o=r?.__BRENDER__,n=null;if(o){let c=t.document||(typeof document<"u"?document:null);c&&(n=Array.from(c.head.querySelectorAll("style")))}if(await jC(e,t),t.useReset!==!1){let c=t.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(t.app&&v(t.app))for(let c in t.app)e[c]===void 0&&(e[c]=t.app[c]);e.extends=Tx(e,t),t.router!==!1&&(e.routes=t.pages),e.state=t.state,e.context=t,e.data=e.data||{},t.skipDesignSystemInit||await Mx({functions:t.functions,utils:t.utils,snippets:t.snippets,...t.files},t);for(let c of t.plugins)if(typeof c.beforeCreate=="function")try{c.beforeCreate(e,t)}catch(l){console.error(`[smbls] plugin "${c.name||"?"}" beforeCreate error:`,l)}let s=t.document;if(!s||!s.createElement)return e;let i=t.parent||s.body;if(o)return zC(Ue,e,i,t,r,n);let a=Ue(e,i,t.key,{verbose:t.verbose,context:t,...t.domqlOptions});return typeof window<"u"&&!t.document&&(window.__smblsApp=a),a},zC=async(e,t,r,o,n,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=e(t,r,o.key,{verbose:o.verbose,context:o,...o.domqlOptions});return WC(n),c},WC=e=>{e&&(delete e.__BRENDER__,delete e.__BR_REGISTRY__)};var Kf=(e,t)=>W(e,v(t)?t:{}),VC=e=>{if(typeof document>"u")return;let t=e.themeRoot||e.document&&e.document.documentElement||document.documentElement;if(!t||typeof t.setAttribute!="function")return;let r=e.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(r=s)}}catch{}let o=e.themeStorageKey;if(r==="auto"&&o&&typeof localStorage<"u")try{let s=localStorage.getItem(o);s&&(r=s)}catch{}let n=r==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():r;t.setAttribute("data-theme",n),e.globalTheme=r,e.themeRoot=t},HC=()=>{if(typeof document>"u")return null;try{let e=document.querySelector('meta[name="symbols-runtime"]'),t=e&&e.getAttribute("content");return typeof t=="string"&&t?t:null}catch{return null}},av=e=>{let t=HC();t&&(e.editor||(e.editor={}),e.editor.runtime||(e.editor.runtime=t),t==="runner"&&typeof e.editor.livesync>"u"&&(e.editor.livesync=!0))},cv=(e,t=Tt,r)=>{let o={...Tt,...Kf(t,r)};return av(o),VC(o),Gf(e,o).then(s=>{if(Cl(s,o),s.destroy=()=>Ms(s),s.onCreate&&s.onCreate(s,s.state,s.context,o),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})},HM=(e,t=Tt,r)=>{let o=cv(e,t,r),n={...Tt,...Kf(t,r)},s=n.key;return Vy(o,s,{utils:Ro,...n}),o},UM=async(e,t=Tt,r)=>{let o={...Tt,...Kf(t,r)};av(o);let n=t.key;await Wy(n,o);let s=await Gf(e,o);return Cl(s,o),s.destroy=()=>Ms(s),o.onCreate&&await o.onCreate(s,s.state,s.context,o),s},qM=(e={},t=Tt,r)=>cv({deps:{isUndefined:oe},...e},W({domqlOptions:{onlyResolveExtends:!0}},t),r);_l(hc);export{cm as ANIMATION_PROPS,HP as ARIA_ROLES,km as ATTR_TRANSFORMS,lm as BLOCK_PROPS,et as CDN_PROVIDERS,Pa as CONFIG,ut as CSS_NATIVE_COLOR_REGEX,se as CSS_PROPS_REGISTRY,Kr as CSS_UNITS,Es as DEFAULT_CONFIG,ye as DEFAULT_CSS_PROPERTIES_LIST,Ss as DELEGATED_EVENTS,Ky as DESIGN_SYSTEM_OPTIONS,_u as DOMQL_EVENTS,Dt as DOMQ_PROPERTIES,h_ as DOM_EVENTS,zu as ENV,St as FACTORY,hm as FLEX_PROPS,fm as FONT_PROPS,mm as GRID_PROPS,kc as HTML_ATTRIBUTES,so as HTML_TAGS,Cr as LIFECYCLE_EVENTS,to as METHODS,cn as METHODS_EXL,um as MISC_PROPS,em as MIXINS,Ze as NODE_ENV,$n as OPTIONS,Ht as PACKAGE_MANAGER_TO_CDN,an as PARSED_DOMQ_PROPERTIES,pm as POSITION_PROPS,Mt as PROPS_METHODS,Ae as REGISTRY,El as ROUTER_OPTIONS,wu as STATE_PROPERTIES,xs as SVG_TAGS,dm as THEME_PROPS,Er as TIMING_PROPS,tn as TYPES,ka as UNIVERSAL_RESERVED_KEYS,qh as VALUE_TRANSFORMERS,xT as activateConfig,oa as addCaching,ra as addContext,bc as addDelegatedEvent,mp as addExtend,Ce as addExtends,lu as addItemAfterEveryElement,As as addMethods,nn as addProtoToArray,Qi as addRef,GS as animation,nc as appendSVGSprite,ic as appendSvgIconsSprite,Em as applyAttrTransforms,Ly as applyCSS,Mp as applyDependentState,tc as applyDocument,la as applyEvent,fa as applyEventUpdate,_s as applyExtends,Nh as applyHeadings,wm as applyInitialState,yr as applyMediaSequenceVars,En as applyProps,ac as applyReset,Ba as applySequenceGlobalVars,Yt as applySequenceVars,Za as applySpacingSequence,Ge as applyStateMethods,ec as applyTimingSequence,ym as applyTrueProps,Ka as applyTypographySequence,ru as arrayContainsOtherArray,uu as arraysEqual,ur as arrayzeValue,Ft as batch,US as breakpoints,pr as buildImgSrcset,dr as buildSourcesAndImg,Hp as cache,kr as cacheNode,Sd as call,Cd as captureSnapshot,Gh as changeGlobalTheme,_S as changeLightness,Jt as checkAttributeByTagName,Am as checkEventFunctions,$p as checkForStateTypes,Xa as checkIfBoxSize,ca as checkIfInherits,hu as checkIfStringIsInArray,QS as class,Eu as clone,bn as cloneAndMergeArrayExtend,Yu as cloneFunction,LS as color,xt as colorStringToRgbaArray,Cy as components,up as concatAddExtends,ja as convertSvgToSymbol,sh as copyJavaScriptToClipboard,nh as copyStringToClipboard,cv as create,HM as createAsync,Ji as createBasedOnType,xv as createComputed,Eh as createConfig,ek as createDefine,ie as createEffect,Pp as createElement,Mi as createElementExtends,vn as createExtends,io as createExtendsFromKeys,zi as createExtendsStack,bs as createHTMLNode,Xu as createIfConditionFlag,Fp as createInheritedState,mn as createKey,Fu as createNestedObject,Lp as createNestedObjectByKeyPath,Ti as createObjectWithoutPrototype,ea as createParent,ta as createPath,Tn as createProps,Yi as createPropsStack,Rp as createRoot,jp as createScope,$t as createSignal,qM as createSkeleton,hn as createSnapshotId,p_ as createState,Be as createStore,UM as createSync,Zt as css,kh as cssMediaVars,_h as cssVars,Su as customDecodeURIComponent,vu as customEncodeURIComponent,au as cutArrayAfterValue,iu as cutArrayBeforeValue,yn as debounce,qu as debounceOnContext,xu as decodeNewlines,Y as deepClone,Iu as deepContains,ts as deepDefaults,je as deepDestringifyFunctions,Li as deepExtend,W as deepMerge,lt as deepMergeExtends,ln as deepStringifyFunctions,Po as defaultDefine,xd as defineSetter,un as destringifyGlobalScope,Ms as destroy,Dd as detectHeightOnInit,Nu as detectInfiniteLoop,_r as detectTag,qS as devices,Ar as dispose,bu as encodeNewlines,fr as error,ju as excludeKeysFromObject,V as exec,qP as executeAttr,vP as exetuteClassPerComponent,pp as extendCachedRegistry,Sn as extendStackRegistry,_n as extractArrayExtend,GP as extractConditionalAttrs,Aa as fetchLibraryData,Md as fibonacciNumberByIndex,pu as filterArrays,du as filterArraysFast,UP as filterAttributesByTagName,Wi as finalizeExtends,Ca as findClosestNumber,Jd as findClosestNumberInFactory,Ih as findHeadingLetter,Na as findHeadings,aa as findInheritedState,gu as findKeyPosition,ao as flattenExtend,OS as font,IS as fontFace,RS as fontFamily,PS as fontFamilyTypes,$d as formatDate,$i as generateHash,dn as generateKey,Yd as generateMetaTags,We as generateSequence,iw as generateSequencePosition,fs as generateSprite,La as generateSubSequence,md as get,A as getActiveConfig,Zh as getActiveDocument,Gs as getActiveLang,tt as getCDNUrl,zw as getCacheSize,bp as getCapitalCaseKeys,bo as getCdnProviderFromConfig,ia as getChildStateInKey,jn as getChildren,H as getColor,bh as getColorShade,Gn as getContext,op as getCookie,Jn as getDB,wo as getDefaultOrFirstKey,fh as getEmotionStylesheet,gp as getExtendsInElement,xn as getExtendsStack,Di as getExtendsStackRegistry,Kt as getFnPrefixAndValue,AS as getFontFace,_o as getFontFaceEach,wh as getFontFaceEachString,Ta as getFontFaceString,Ga as getFontFamily,vh as getFontFormat,Ya as getFontSizeByKey,ou as getFrequencyInArray,wn as getHashedExtend,Pd as getImportMapScript,Mu as getInObjectByPath,lf as getLanguages,hf as getLocalStateLang,sp as getLocalStorage,fe as getMediaColor,ot as getMediaTheme,Uu as getNev,Si as getObserver,Xd as getPageMetadata,sa as getParentStateInKey,zn as getPath,Qn as getQuery,yd as getRef,mr as getRgbTone,Hn as getRoot,qn as getRootContext,Un as getRootData,Vn as getRootState,na as getRootStateInKey,Ma as getSequenceValue,Ph as getSequenceValueBySymbols,_t as getSequenceValuePropertyPair,Qa as getShadow,wv as getSignals,Ve as getSpacingBasedOnRatio,ce as getSpacingByKey,xp as getSpreadChildren,Da as getSubratio,Fa as getSubratioDifference,qe as getSystemGlobalTheme,Va as getTheme,He as getTimingByKey,nt as getTimingFunction,Qf as global,MS as gradient,JS as grid,ro as hasFunction,oo as hasHandlerPlugin,Ou as hasOwnProperty,xS as hexToRgb,hh as hexToRgbArray,SS as hexToRgba,yh as hslToRgb,jS as icons,Bi as inheritChildExtends,Ni as inheritChildPropsExtends,On as inheritParentProps,ji as inheritRecursiveChildExtends,Et as init,qx as initPolyglot,Ep as initProps,ne as injectGlobal,_e as is,E as isArray,_i as isBoolean,te as isCSSVar,vp as isContextComponent,Bu as isCyclic,we as isDOMNode,Ci as isDate,me as isDefined,jt as isDevelopment,Ai as isEmpty,Ru as isEmptyObject,Ei as isEqualDeep,k as isFunction,ss as isGoogleFontsUrl,en as isHtmlElement,Hu as isLocal,_d as isMethod,tp as isMobile,mt as isNode,tu as isNot,ar as isNotProduction,ki as isNull,at as isNumber,v as isObject,L as isObjectLike,Bd as isPhoto,Bt as isProduction,vt as isResolvedColor,Gr as isScalingUnit,Vu as isStaging,Dp as isState,he as isStore,S as isString,Ku as isStringFunction,vs as isSvgTag,Oi as isTest,Wu as isTesting,oe as isUndefined,Ed as isUniversallyReservedKey,lp as isValidHtmlTag,ys as isValidTag,H_ as isWasmLoaded,Zr as joinArrays,hp as jointStacks,gs as keyframes,wa as keys,Hd as loadCssFile,Ud as loadJavascript,zd as loadJavascriptFile,Vd as loadJavascriptFileEmbedSync,Wd as loadJavascriptFileSync,qd as loadRemoteCSS,xo as loadRemoteScript,uf as loadTranslations,V_ as loadWasm,vd as log,Qu as logGroupIf,Ju as logIf,pd as lookdown,dd as lookdownAll,ud as lookup,nr as lowercaseFirstLetter,Pu as makeObjectWithoutPrototype,Cu as map,kn as mapStringsWithContextComponents,ft as matchesComponentNaming,$S as media,Gu as memoize,J as merge,rs as mergeSharedLibraries,bS as mixTwoColors,wS as mixTwoRgb,xh as mixTwoRgba,Yn as nextElement,vo as normalizeLibraryKey,wt as numToLetterMap,fn as objectToString,An as objectizeStringProperty,Ut as opacify,pn as overwrite,ke as overwriteDeep,ir as overwriteShallow,Np as overwriteState,_a as parse,qt as parseColorToken,Nn as parseDeep,qi as pickupElementFromProps,Ui as pickupPropsFromElement,Ks as polyglotFunctions,mf as polyglotPlugin,le as popConfig,Xn as previousElement,Ap as propExists,Gi as propertizeElement,Cp as propertizeUpdate,ue as pushConfig,ws as registerEvent,Dy as reinit,Cs as remove,ih as removeChars,np as removeCookie,xc as removeDelegatedEvent,Pn as removeDuplicateProps,Jr as removeDuplicatesInArray,nu as removeFromArray,$u as removeFromObject,Du as removeNestedKeyByPath,on as removeValueFromArray,cu as removeValueFromArrayAll,fu as reorderArrayByValues,or as replaceLiteralsWithObjectFields,yu as replaceOctalEscapeSequences,X as resolveAsset,lc as resolveColorsInGradient,_m as resolveFileSource,rt as resolveFileUrl,no as resolveHandler,st as resolvePropValue,rh as resolveSharedLibraries,CS as returnSubThemeOrDefault,Zi as returnValueAsText,mh as rgbArrayToHex,gh as rgbToHSL,vS as rgbToHex,Je as runPluginHook,Mh as runThroughMedia,as as scratchDefaultConfig,hs as scratchSystem,br as scratchUtils,eu as self,zS as semanticIcons,Gt as sequence,Ao as set,Ah as setActiveConfig,Lw as setActiveDocument,Wn as setActiveRootState,KI as setClass,CP as setClassname,xr as setColor,rp as setCookie,_l as setCssEngineHook,Ea as setCustomFont,gr as setCustomFontMedia,Pw as setEach,qa as setFont,ps as setFontFamily,is as setFontImport,vr as setGradient,Fi as setHashedExtend,Sh as setInCustomFontMedia,Lu as setInObjectByPath,pf as setLang,ip as setLocalStorage,Ua as setMediaTheme,Sa as setNodeStyles,bv as setObserver,gd as setProps,Rn as setPropsPrototype,ds as setSVG,$a as setScalingVar,Sr as setShadow,Oh as setSubScalingVar,sc as setSvgIcon,Ha as setTheme,Rw as setValue,aw as setVariables,hc as setWasmEngine,BS as shadow,DS as spacing,Ja as splitSpacedValue,hr as splitTopLevelCommas,Uh as splitTransition,Bn as spotByPath,So as srcsetFor,sn as stringIncludesAny,Tu as stringToObject,KS as svg,YS as svgData,su as swapItemsInArray,In as syncProps,XS as templates,NS as theme,VS as timing,Ra as toCamel,os as toCamelCase,ns as toDashCase,ch as toDescriptionCase,ah as toTitleCase,Od as toggleFullscreen,Vh as transformBackgroundImage,kt as transformBorder,uc as transformBorderRadius,cc as transformBoxShadow,a_ as transformClassname,fc as transformDuration,Wh as transformShadow,re as transformSize,M as transformSizeRatio,zh as transformTextStroke,Tw as transformTransition,bm as transformersByPrefix,Hh as transfromGap,ff as translate,zt as triggerEventOn,Vp as triggerEventOnUpdate,mu as trimStringFromSymbols,Oa as typography,ES as unit,rn as unstackArrayOfObjects,ks as update,Tp as updateProps,GI as updateVars,df as upsertTranslation,ve as useCssInProps,s_ as usePropsAsCSS,i_ as useSelectorsAsCSS,Zn as variables,tw as vars,yo as verbose,Kn as warn,_ as window};
77
+ `}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},jb={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(nf):t.extends?t.extends=[t.extends,nf]:t.extends=[nf]}};var hk=async(t,e={})=>{let r=e.symbolsConfig,o=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,n=e.key=e.key||o||(w(t)?t:"smblsapp");if(e.define=e.define||Ao,e.cssPropsRegistry=nt,e.window=uy(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(u=>typeof u=="string")){let{resolveSharedLibraries:u}=await Promise.resolve().then(()=>(O(),Ed));e.sharedLibraries=await u(e.sharedLibraries)}wy(e)}let[s,i]=xy(n,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&Hs.prepareContext(e);let a=Sy(t,e);e.state=a,Ln(a),e.pages=_y(t,e),e.components=py(e),e.utils=dy(e),ze[e.packageManager]&&(e.dependencies=await gy(e)),e.methods=hy(e),e.routerOptions=Zm(t,e),e.defaultExtends=[Os],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&S(e.globalScope)&&(e.globalScope=nn(e.globalScope));let c=(p,u)=>{let d=u?p[u]:p;if(!S(d))return;let h=Nt(d);try{Object.assign(d,h)}catch(g){if(u)p[u]=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=p=>e.plugins.some(u=>u.name===p);if(e.polyglot&&!l("polyglot")){e.plugins.push(Tl);for(let p in zs)p in e.functions||(e.functions[p]=zs[p])}if(l("helmet")||e.plugins.push(ry),e.fetch&&!l("fetch")&&e.plugins.push(da),e.designSystem?.typography?.useCapsize!==!1&&!l("capsize")&&(e.plugins.push(Ey),e.cssPropsRegistry.useCapsize=Ay),e.shorthand&&!l("shorthand")&&e.plugins.push(Hs),e.analyze&&!l("analyze")){let p=e.analyze===!0?{}:e.analyze;e.analyze=zl(p),e.plugins.push(Fo)}return e.sync!==!1&&!l("sync")&&e.plugins.push(Lb),e.inspect&&!l("inspect")&&e.plugins.push(jb),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!l("notifications")&&e.plugins.push(Mb),e},af=async(t,e)=>{S(e)||(e={}),de(t)?(t={},e.parent=t):w(t)?(t={},e.key=t):S(t)||(t={});let r=e.window||(typeof window<"u"?window:null),o=r?.__BRENDER__,n=null;if(o){let c=e.document||(typeof document<"u"?document:null);c&&(n=Array.from(c.head.querySelectorAll("style")))}if(await hk(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&&S(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=ay(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await my({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(o)return gk(zt,t,i,e,r,n);let a=zt(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},gk=async(t,e,r,o,n,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,o.key,{verbose:o.verbose,context:o,...o.domqlOptions});return mk(n),c},mk=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var cf=(t,e)=>W(t,S(e)?e:{}),yk=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 o=t.themeStorageKey;if(r==="auto"&&o&&typeof localStorage<"u")try{let s=localStorage.getItem(o);s&&(r=s)}catch{}let n=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",n),t.globalTheme=r,t.themeRoot=e},bk=()=>{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}},Bb=t=>{let e=bk();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},Vb=(t,e=Ae,r)=>{let o={...Ae,...cf(e,r)};return Bb(o),yk(o),af(t,o).then(s=>{if(xl(s,o),s.destroy=()=>Ls(s),s.onCreate&&s.onCreate(s,s.state,s.context,o),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})},PF=(t,e=Ae,r)=>{let o=Vb(t,e,r),n={...Ae,...cf(e,r)},s=n.key;return ey(o,s,{utils:Co,...n}),o},IF=async(t,e=Ae,r)=>{let o={...Ae,...cf(e,r)};Bb(o);let n=e.key;await ty(n,o);let s=await af(t,o);return xl(s,o),s.destroy=()=>Ls(s),o.onCreate&&await o.onCreate(s,s.state,s.context,o),s},$F=(t={},e=Ae,r)=>Vb({deps:{isUndefined:ct},...t},W({domqlOptions:{onlyResolveExtends:!0}},e),r);yl(cc);export{wh as ANIMATION_PROPS,SO as ARIA_ROLES,Nh as ATTR_TRANSFORMS,kh as BLOCK_PROPS,Zt as CDN_PROVIDERS,Ca as CONFIG,ce as CSS_NATIVE_COLOR_REGEX,nt as CSS_PROPS_REGISTRY,zr as CSS_UNITS,Cs as DEFAULT_CONFIG,gt as DEFAULT_CSS_PROPERTIES_LIST,bs as DELEGATED_EVENTS,iy as DESIGN_SYSTEM_OPTIONS,Mf as DOMQL_EVENTS,$e as DOMQ_PROPERTIES,G_ as DOM_EVENTS,eu as ENV,xe as FACTORY,Th as FLEX_PROPS,vh as FONT_PROPS,Oh as GRID_PROPS,bc as HTML_ATTRIBUTES,Qr as HTML_TAGS,_r as LIFECYCLE_EVENTS,Yr as METHODS,en as METHODS_EXL,Ch as MISC_PROPS,hh as MIXINS,Kt as NODE_ENV,En as OPTIONS,ze as PACKAGE_MANAGER_TO_CDN,tn as PARSED_DOMQ_PROPERTIES,Ah as POSITION_PROPS,De as PROPS_METHODS,Ct as REGISTRY,_l as ROUTER_OPTIONS,Lf as STATE_PROPERTIES,ms as SVG_TAGS,Eh as THEME_PROPS,ks as TIMING_PROPS,Yo as TYPES,ba as UNIVERSAL_RESERVED_KEYS,ih as VALUE_TRANSFORMERS,GA as activateConfig,Zi as addCaching,Xi as addContext,pc as addDelegatedEvent,Ou as addExtend,kt as addExtends,kf as addItemAfterEveryElement,vs as addMethods,Jo as addProtoToArray,Gi as addRef,AS as animation,Ja as appendSVGSprite,tc as appendSvgIconsSprite,Vh as applyAttrTransforms,Km as applyCSS,Zu as applyDependentState,Ya as applyDocument,oa as applyEvent,na as applyEventUpdate,Ss as applyExtends,Jd as applyHeadings,Lh as applyInitialState,dr as applyMediaSequenceVars,_n as applyProps,ec as applyReset,$a as applySequenceGlobalVars,qe as applySequenceVars,Ha as applySpacingSequence,Wt as applyStateMethods,Ka as applyTimingSequence,Ph as applyTrueProps,za as applyTypographySequence,mf as arrayContainsOtherArray,Cf as arraysEqual,lr as arrayzeValue,Ie as batch,vS as breakpoints,Qn as buildImgSrcset,ts as buildSourcesAndImg,np as cache,Sr as cacheNode,Dp as call,jp as captureSnapshot,ah as changeGlobalTheme,rS as changeLightness,Xe as checkAttributeByTagName,Bh as checkEventFunctions,Gu as checkForStateTypes,Wa as checkIfBoxSize,ra as checkIfInherits,Tf as checkIfStringIsInArray,IS as class,Vf as clone,pn as cloneAndMergeArrayExtend,lu as cloneFunction,gS as color,ye as colorStringToRgbaArray,ko as components,Cu as concatAddExtends,Fa as convertSvgToSymbol,xd as copyJavaScriptToClipboard,bd as copyStringToClipboard,Vb as create,PF as createAsync,qi as createBasedOnType,Jb as createComputed,Vd as createConfig,Iw as createDefine,st as createEffect,Hu as createElement,Pi as createElementExtends,hn as createExtends,to as createExtendsFromKeys,Di as createExtendsStack,gs as createHTMLNode,fu as createIfConditionFlag,Ku as createInheritedState,ln as createKey,Kf as createNestedObject,Xu as createNestedObjectByKeyPath,wi as createObjectWithoutPrototype,Ki as createParent,Yi as createPath,wn as createProps,Ui as createPropsStack,Wu as createRoot,tp as createScope,Pe as createSignal,$F as createSkeleton,cn as createSnapshotId,H_ as createState,Mt as createStore,IF as createSync,Ke as css,Nd as cssMediaVars,Md as cssVars,Df as customDecodeURIComponent,Ff as customEncodeURIComponent,_f as cutArrayAfterValue,Sf as cutArrayBeforeValue,un as debounce,iu as debounceOnContext,$f as decodeNewlines,Y as deepClone,qf as deepContains,Yn as deepDefaults,Nt as deepDestringifyFunctions,Ri as deepExtend,W as deepMerge,ie as deepMergeExtends,rn as deepStringifyFunctions,Ao as defaultDefine,$p as defineSetter,nn as destringifyGlobalScope,Ls as destroy,Yp as detectHeightOnInit,Jf as detectInfiniteLoop,xr as detectTag,CS as devices,wr as dispose,If as encodeNewlines,cr as error,tu as excludeKeysFromObject,G as exec,wO as executeAttr,ZT as exetuteClassPerComponent,Au as extendCachedRegistry,gn as extendStackRegistry,yn as extractArrayExtend,kO as extractConditionalAttrs,Sa as fetchLibraryData,Zp as fibonacciNumberByIndex,Af as filterArrays,Ef as filterArraysFast,_O as filterAttributesByTagName,Li as finalizeExtends,xa as findClosestNumber,pd as findClosestNumberInFactory,qd as findHeadingLetter,Ia as findHeadings,ea as findInheritedState,Rf as findKeyPosition,eo as flattenExtend,cS as font,uS as fontFace,lS as fontFamily,fS as fontFamilyTypes,Gp as formatDate,Ei as generateHash,an as generateKey,ld as generateMetaTags,Bt as generateSequence,jS as generateSequencePosition,as as generateSprite,Ra as generateSubSequence,Op as get,A as getActiveConfig,uh as getActiveDocument,Vs as getActiveLang,Jt as getCDNUrl,S_ as getCacheSize,Iu as getCapitalCaseKeys,uo as getCdnProviderFromConfig,ta as getChildStateInKey,Fn as getChildren,X as getColor,Id as getColorShade,Vn as getContext,yu as getCookie,qn as getDB,mo as getDefaultOrFirstKey,vd as getEmotionStylesheet,Ru as getExtendsInElement,dn as getExtendsStack,Oi as getExtendsStackRegistry,He as getFnPrefixAndValue,sS as getFontFace,yo as getFontFaceEach,Ld as getFontFaceEachString,wa as getFontFaceString,Va as getFontFamily,Fd as getFontFormat,Ua as getFontSizeByKey,yf as getFrequencyInArray,mn as getHashedExtend,Hp as getImportMapScript,Zf as getInObjectByPath,wl as getLanguages,El as getLocalStateLang,xu as getLocalStorage,ht as getMediaColor,te as getMediaTheme,su as getNev,gi as getObserver,fd as getPageMetadata,Qi as getParentStateInKey,Dn as getPath,Gn as getQuery,Pp as getRef,ur as getRgbTone,Nn as getRoot,Bn as getRootContext,jn as getRootData,Mn as getRootState,Ji as getRootStateInKey,Pa as getSequenceValue,Hd as getSequenceValueBySymbols,_e as getSequenceValuePropertyPair,Ga as getShadow,ex as getSignals,le as getSpacingBasedOnRatio,at as getSpacingByKey,$u as getSpreadChildren,Oa as getSubratio,Ta as getSubratioDifference,Ut as getSystemGlobalTheme,Ma as getTheme,Vt as getTimingByKey,ee as getTimingFunction,df as global,mS as gradient,PS as grid,Xr as hasFunction,Zr as hasHandlerPlugin,Uf as hasOwnProperty,Jx as hexToRgb,Td as hexToRgbArray,tS as hexToRgba,Pd as hslToRgb,xS as icons,$i as inheritChildExtends,Ii as inheritChildPropsExtends,kn as inheritParentProps,Fi as inheritRecursiveChildExtends,Ce as init,Cy as initPolyglot,Vu as initProps,ot as injectGlobal,_t as is,T as isArray,yi as isBoolean,et as isCSSVar,Fu as isContextComponent,Qf as isCyclic,xt as isDOMNode,xi as isDate,St as isDefined,Ne as isDevelopment,Si as isEmpty,Wf as isEmptyObject,_i as isEqualDeep,C as isFunction,rs as isGoogleFontsUrl,Ko as isHtmlElement,nu as isLocal,Mp as isMethod,gu as isMobile,de as isNode,gf as isNot,sr as isNotProduction,bi as isNull,ne as isNumber,S as isObject,L as isObjectLike,Qp as isPhoto,Me as isProduction,be as isResolvedColor,Vr as isScalingUnit,ou as isStaging,Yu as isState,pt as isStore,w as isString,cu as isStringFunction,ys as isSvgTag,ki as isTest,ru as isTesting,ct as isUndefined,Vp as isUniversallyReservedKey,ku as isValidHtmlTag,hs as isValidTag,ww as isWasmLoaded,Hr as joinArrays,Tu as jointStacks,ds as keyframes,ma as keys,nd as loadCssFile,sd as loadJavascript,ed as loadJavascriptFile,od as loadJavascriptFileEmbedSync,rd as loadJavascriptFileSync,id as loadRemoteCSS,po as loadRemoteScript,vl as loadTranslations,_w as loadWasm,Fp as log,du as logGroupIf,pu as logIf,Ap as lookdown,Ep as lookdownAll,Cp as lookup,rr as lowercaseFirstLetter,Hf as makeObjectWithoutPrototype,jf as map,bn as mapStringsWithContextComponents,ae as matchesComponentNaming,pS as media,au as memoize,Z as merge,Xn as mergeSharedLibraries,Zx as mixTwoColors,eS as mixTwoRgb,$d as mixTwoRgba,Un as nextElement,ho as normalizeLibraryKey,Se as numToLetterMap,on as objectToString,Sn as objectizeStringProperty,es as opacify,sn as overwrite,wt as overwriteDeep,nr as overwriteShallow,Ju as overwriteState,ya as parse,Ue as parseColorToken,In as parseDeep,Bi as pickupElementFromProps,ji as pickupPropsFromElement,zs as polyglotFunctions,Tl as polyglotPlugin,lt as popConfig,Wn as previousElement,Bu as propExists,Vi as propertizeElement,ju as propertizeUpdate,ft as pushConfig,xs as registerEvent,Gm as reinit,ws as remove,Sd as removeChars,bu as removeCookie,dc as removeDelegatedEvent,Cn as removeDuplicateProps,qr as removeDuplicatesInArray,bf as removeFromArray,Gf as removeFromObject,Yf as removeNestedKeyByPath,Zo as removeValueFromArray,wf as removeValueFromArrayAll,vf as reorderArrayByValues,er as replaceLiteralsWithObjectFields,Pf as replaceOctalEscapeSequences,vt as resolveAsset,oc as resolveColorsInGradient,Mh as resolveFileSource,Qt as resolveFileUrl,Jr as resolveHandler,Ye as resolvePropValue,md as resolveSharedLibraries,nS as returnSubThemeOrDefault,Hi as returnValueAsText,Od as rgbArrayToHex,Rd as rgbToHSL,Qx as rgbToHex,Yt as runPluginHook,Zd as runThroughMedia,ns as scratchDefaultConfig,us as scratchSystem,hr as scratchUtils,hf as self,SS as semanticIcons,We as sequence,So as set,Bd as setActiveConfig,g_ as setActiveDocument,Ln as setActiveRootState,EP as setClass,rO as setClassname,gr as setColor,mu as setCookie,yl as setCssEngineHook,_a as setCustomFont,pr as setCustomFontMedia,f_ as setEach,Ba as setFont,ls as setFontFamily,os as setFontImport,mr as setGradient,Ti as setHashedExtend,Dd as setInCustomFontMedia,Xf as setInObjectByPath,Cl as setLang,Su as setLocalStorage,ja as setMediaTheme,ga as setNodeStyles,Zb as setObserver,Rp as setProps,vn as setPropsPrototype,fs as setSVG,Ea as setScalingVar,yr as setShadow,Ud as setSubScalingVar,Qa as setSvgIcon,Na as setTheme,l_ as setValue,BS as setVariables,cc as setWasmEngine,bS as shadow,hS as spacing,qa as splitSpacedValue,fr as splitTopLevelCommas,sh as splitTransition,$n as spotByPath,go as srcsetFor,Qo as stringIncludesAny,zf as stringToObject,ES as svg,TS as svgData,xf as swapItemsInArray,An as syncProps,OS as templates,yS as theme,wS as timing,va as toCamel,Zn as toCamelCase,Jn as toDashCase,wd as toDescriptionCase,_d as toTitleCase,Up as toggleFullscreen,oh as transformBackgroundImage,we as transformBorder,sc as transformBorderRadius,rc as transformBoxShadow,B_ as transformClassname,nc as transformDuration,rh as transformShadow,rt as transformSize,M as transformSizeRatio,eh as transformTextStroke,a_ as transformTransition,Ih as transformersByPrefix,nh as transfromGap,kl as translate,je as triggerEventOn,op as triggerEventOnUpdate,Of as trimStringFromSymbols,ka as typography,iS as unit,Xo as unstackArrayOfObjects,_s as update,zu as updateProps,AP as updateVars,Al as upsertTranslation,Pt as useCssInProps,N_ as usePropsAsCSS,j_ as useSelectorsAsCSS,Hn as variables,FS as vars,fo as verbose,zn as warn,k as window};