smbls 3.14.306 → 3.14.310

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,44 +1,44 @@
1
- var dx=Object.create;var _i=Object.defineProperty;var hx=Object.getOwnPropertyDescriptor;var mx=Object.getOwnPropertyNames;var gx=Object.getPrototypeOf,yx=Object.prototype.hasOwnProperty;var $=(e,t)=>()=>(e&&(t=e(e=0)),t);var Si=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),F=(e,t)=>{for(var r in t)_i(e,r,{get:t[r],enumerable:!0})},bx=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mx(t))!yx.call(e,o)&&o!==r&&_i(e,o,{get:()=>t[o],enumerable:!(n=hx(t,o))||n.enumerable});return e};var xx=(e,t,r)=>(r=e!=null?dx(gx(e)):{},bx(t||!e||!e.__esModule?_i(r,"default",{value:e,enumerable:!0}):r,e));var Tf,Of,k,X,Kr=$(()=>{"use strict";Tf=globalThis,Of=globalThis,k=globalThis,X=k.document});var ht,to,ke,Xr=$(()=>{"use strict";Kr();ht=e=>(typeof Node=="object"?e instanceof k.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,to=e=>(typeof HTMLElement=="object"?e instanceof k.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,ke=e=>typeof k<"u"&&(k.Node&&e instanceof k.Node||k.Window&&e instanceof k.Window||e===k||e===document)});var S,w,ot,v,Oi,Ri,T,Pi,L,ve,me,ro,Ce,Rf,de=$(()=>{"use strict";Xr();S=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,w=e=>typeof e=="string",ot=e=>typeof e=="number",v=e=>typeof e=="function",Oi=e=>e===!0||e===!1,Ri=e=>e===null,T=e=>Array.isArray(e),Pi=e=>e instanceof Date,L=e=>e===null?!1:typeof e=="object",ve=e=>e!==void 0,me=e=>e===void 0,ro={boolean:Oi,array:T,object:S,string:w,date:Pi,number:ot,null:Ri,function:v,objectLike:L,node:ht,htmlElement:to,defined:ve},Ce=e=>(...t)=>t.some(r=>ro[r](e)),Rf=e=>(...t)=>!t.some(r=>ro[r](e))});var Pf,If,$f,Ff,Yr,no,Df,Lf,oo,Nf,Mf,jf,Bf,Vf,Uf,zf,Zr,so,nr=$(()=>{"use strict";st();de();Pf=(e,t)=>t.every(r=>e.includes(r)),If=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},$f=(e,t)=>{if(w(t)&&(t=parseInt(t)),ot(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},Ff=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Yr=(...e)=>[].concat(...e),no=(e,t=[])=>e.reduce((r,n)=>G(r,J(n,{exclude:t}),t),{}),Df=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},Lf=(e,t)=>{if(!T(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},oo=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Nf=(e,t)=>e.filter(r=>r!==t),Mf=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},jf=(e,t,r)=>{let n=[...e],o=n.indexOf(t),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},Bf=(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},Vf=(e,t)=>e.filter(r=>!t.includes(r)),Uf=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},zf=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Zr=e=>T(e)?[...new Set(e)]:e,so=(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:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let s=Ax[n],i=t||this.state||{},a=this;return e.replace(s,(c,l,f,p)=>{let u=f.trim();if(p){let d=a?.context,m=d?.functions?.[p]||d?.utils?.[p]||d?.methods?.[p]||d?.snippets?.[p]||a?.[p];if(m&&typeof m=="function")try{return String(m.call(a,u)??"")}catch{return""}return""}if(l){let d=(l.match(/\.\.\//g)||[]).length,m=i;for(let g=0;g<d;g++){if(!m||!m.parent)return"";m=m.parent}if(u==="parent")return String(m.value??"");let h=Jr(m,u);return String(h??"")}else{let d=Jr(i,u);if(d!=null)return String(d);let m=a?.context?.polyglot;if(m?.translations){let h=i?.root?.lang||i?.lang||a?.context?.state?.lang||m.defaultLang||"en",g=m.translations[h];if(g){let b=Jr(g,u);if(b!=null&&typeof b!="object")return String(b);for(let _ in g){let x=g[_];if(x&&typeof x=="object"&&!Array.isArray(x)){let C=Jr(x,u);if(C!=null&&typeof C!="object")return String(C)}}}let y=Jr(m.translations,u);if(y!=null&&typeof y!="object")return String(y)}return""}})}var io,Wf,Ax,Jr,sr,Hf,Ex,Gf,qf,Kf,Tx,Xf,Yf,Qr=$(()=>{"use strict";io=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},Wf=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},Ax={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Jr=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e);sr=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Hf=(e,t)=>{let r=e.split(`
2
- `),n=-1,o=-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,n=f+1,s=r[f].indexOf(t)+1,r[f].includes("{}")){o=n,i=r[f].indexOf("{}")+3;break}let p=r[f].slice(s+t.length);if(p.includes("{")||p.includes("["))c=1;else{o=f+1,i=r[f].length+1;break}}else if(l&&(c+=(r[f].match(/{/g)||[]).length,c+=(r[f].match(/\[/g)||[]).length,c-=(r[f].match(/}/g)||[]).length,c-=(r[f].match(/]/g)||[]).length,c===0)){o=f+1,i=r[f].lastIndexOf("}")!==-1?r[f].lastIndexOf("}")+2:r[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},Ex=/\\([0-7]{1,3})/g,Gf=e=>e.replace(Ex,(t,r)=>String.fromCharCode(parseInt(r,8))),qf=e=>e.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Kf=e=>e.replace(/\/\/\/\/\/n/g,`
3
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),Tx=/[^a-zA-Z0-9\s]/g,Xf=e=>e.replace(Tx,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),Yf=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))});var Dt,ao,Zf,Lt,Nt,en,co,Jf,ir=$(()=>{"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"]),ao=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Zf=["ref","parent","__element","__depends","__ref","__children","root"],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"]),Nt=new Set(["update","__element"]),en=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"]),co=new Set(["node","context","extends","__element","__ref",...en,...Lt,...Nt]),Jf=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Qf,Mt,Y,tu,ee,G,ru,nu,J,lo,Ox,fo,Rx,Px,Ix,tn,$x,Fx,eu,it,Dx,Lx,Nx,uo,ou,su,Ii,iu,au,po,ar,Ae,$i,Mx,cu,lu,Fi,fu,uu,pu,du,hu,mu,gu,st=$(()=>{"use strict";Kr();de();nr();Qr();Xr();ir();Qf="production",Mt=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,Y=(e,t,r,n)=>{if(v(e))return t?typeof e.call!="function"?e:e.call(t,t,r||t.state,n||t.context):void 0;if(e!=null&&t?.context?.plugins&&(T(e)||S(e)&&!ke(e))){let o=t.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(e,t);if(typeof i=="function")return Y(i,t,r,n)}}return e},tu=(e,t,r)=>{for(let n in t)e[n]=Y(t[n],r)},ee=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Mt(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},G=(e,t,r=co)=>ru(e,t,r,null),ru=(e,t,r,n)=>{if(e===t)return e;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===e&&n[s+1]===t)return e}let o=r instanceof Set;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||Mt(s)||s==="constructor"||s==="prototype"||(o?r.has(s):r.includes(s)))continue;let i=e[s],a=t[s];if(L(i)&&L(a)){let c=n||[];c.push(e,t),ru(i,a,r,c),c.length-=2}else i===void 0&&(e[s]=a)}return e},nu=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Mt(o)||(r?t.has(o):t.includes(o))||(n[o]=e[o]));return n},J=(e,t={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=t;if(!L(e)||ke(e))return e;if(s.has(e))return s.get(e);let a=r instanceof Set?r:r.length>3?new Set(r):null,c=p=>a?a.has(p):r.includes(p),l=T(e)?[]:{};s.set(e,l);let f=[[e,l]];for(;f.length;){let[p,u]=f.pop();for(let d in p){if(!Object.prototype.hasOwnProperty.call(p,d)||Mt(d)||d==="__proto__"||c(d))continue;let m=p[d];if(!(n&&m===void 0)&&!(o&&m===null)){if(ke(m)){u[d]=m;continue}if(i&&d==="extends"&&T(m)){u[d]=no(m,r);continue}if(v(m)){u[d]=m;continue}if(L(m))if(s.has(m))u[d]=s.get(m);else{let h=T(m)?[]:{};s.set(m,h),u[d]=h,f.push([m,h])}else u[d]=m}}}return l},lo=(e,t={})=>{(e.node||e.__ref||e.parent||e.__element||e.parse)&&((e.__element||e.parent?.__element).warn("Trying to clone element or state at",e),e=e.parse?.());for(let r in e){let n=e[r];if(v(n))t[r]=n.toString();else if(S(n))t[r]={},lo(n,t[r]);else if(T(n)){let o=t[r]=[];for(let s=0;s<n.length;s++){let i=n[s];S(i)?(o[s]={},lo(i,o[s])):v(i)?o[s]=i.toString():o[s]=i}}else t[r]=n}return t},Ox=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),fo=(e={},t=0)=>{if(e===null||typeof e!="object")return String(e);let r=!1;for(let s in e){r=!0;break}if(!r)return"{}";let n=" ".repeat(t),o=`{
4
- `;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let i=e[s],a=!1;for(let l=0;l<s.length;l++)if(Ox.has(s[l])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,T(i)){o+=`[
5
- `;for(let l of i)L(l)&&l!==null?o+=`${n} ${fo(l,t+2)},
6
- `:w(l)?o+=`${n} '${l}',
1
+ var hx=Object.create;var _i=Object.defineProperty;var gx=Object.getOwnPropertyDescriptor;var mx=Object.getOwnPropertyNames;var yx=Object.getPrototypeOf,bx=Object.prototype.hasOwnProperty;var $=(t,e)=>()=>(t&&(e=t(t=0)),e);var Si=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),F=(t,e)=>{for(var r in e)_i(t,r,{get:e[r],enumerable:!0})},xx=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of mx(e))!bx.call(t,o)&&o!==r&&_i(t,o,{get:()=>e[o],enumerable:!(n=gx(e,o))||n.enumerable});return t};var _x=(t,e,r)=>(r=t!=null?hx(yx(t)):{},xx(e||!t||!t.__esModule?_i(r,"default",{value:t,enumerable:!0}):r,t));var Tf,Of,k,Y,Kr=$(()=>{"use strict";Tf=globalThis,Of=globalThis,k=globalThis,Y=k.document});var he,eo,kt,Yr=$(()=>{"use strict";Kr();he=t=>(typeof Node=="object"?t instanceof k.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,eo=t=>(typeof HTMLElement=="object"?t instanceof k.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,kt=t=>typeof k<"u"&&(k.Node&&t instanceof k.Node||k.Window&&t instanceof k.Window||t===k||t===document)});var _,S,oe,C,Oi,Ri,T,Pi,N,vt,gt,ro,Ct,Rf,dt=$(()=>{"use strict";Yr();_=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,S=t=>typeof t=="string",oe=t=>typeof t=="number",C=t=>typeof t=="function",Oi=t=>t===!0||t===!1,Ri=t=>t===null,T=t=>Array.isArray(t),Pi=t=>t instanceof Date,N=t=>t===null?!1:typeof t=="object",vt=t=>t!==void 0,gt=t=>t===void 0,ro={boolean:Oi,array:T,object:_,string:S,date:Pi,number:oe,null:Ri,function:C,objectLike:N,node:he,htmlElement:eo,defined:vt},Ct=t=>(...e)=>e.some(r=>ro[r](t)),Rf=t=>(...e)=>!e.some(r=>ro[r](t))});var Pf,If,$f,Ff,Xr,no,Df,Lf,oo,Mf,Nf,jf,Bf,Vf,Uf,zf,Zr,so,nr=$(()=>{"use strict";se();dt();Pf=(t,e)=>e.every(r=>t.includes(r)),If=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},$f=(t,e)=>{if(S(e)&&(e=parseInt(e)),oe(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},Ff=(t,e,r)=>{e<0||r<0||e>=t.length||r>=t.length||([t[e],t[r]]=[t[r],t[e]])},Xr=(...t)=>[].concat(...t),no=(t,e=[])=>t.reduce((r,n)=>G(r,Q(n,{exclude:e}),e),{}),Df=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},Lf=(t,e)=>{if(!T(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},oo=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},Mf=(t,e)=>t.filter(r=>r!==e),Nf=(t,e)=>{let r=[];for(let n=0;n<t.length;n++)r.push(t[n]),n<t.length-1&&r.push(e);return r},jf=(t,e,r)=>{let n=[...t],o=n.indexOf(e),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},Bf=(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},Vf=(t,e)=>t.filter(r=>!e.includes(r)),Uf=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},zf=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},Zr=t=>T(t)?[...new Set(t)]:t,so=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function or(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=Ex[n],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=Jr(h,u);return String(g??"")}else{let d=Jr(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=Jr(m,u);if(b!=null&&typeof b!="object")return String(b);for(let w in m){let x=m[w];if(x&&typeof x=="object"&&!Array.isArray(x)){let v=Jr(x,u);if(v!=null&&typeof v!="object")return String(v)}}}let y=Jr(h.translations,u);if(y!=null&&typeof y!="object")return String(y)}return""}})}var io,Wf,Ex,Jr,sr,Hf,Tx,Gf,qf,Kf,Ox,Yf,Xf,Qr=$(()=>{"use strict";io=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},Wf=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},Ex={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Jr=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);sr=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Hf=(t,e)=>{let r=t.split(`
2
+ `),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<r.length;f++)if(a.test(r[f])&&!l){if(l=!0,n=f+1,s=r[f].indexOf(e)+1,r[f].includes("{}")){o=n,i=r[f].indexOf("{}")+3;break}let p=r[f].slice(s+e.length);if(p.includes("{")||p.includes("["))c=1;else{o=f+1,i=r[f].length+1;break}}else if(l&&(c+=(r[f].match(/{/g)||[]).length,c+=(r[f].match(/\[/g)||[]).length,c-=(r[f].match(/}/g)||[]).length,c-=(r[f].match(/]/g)||[]).length,c===0)){o=f+1,i=r[f].lastIndexOf("}")!==-1?r[f].lastIndexOf("}")+2:r[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},Tx=/\\([0-7]{1,3})/g,Gf=t=>t.replace(Tx,(e,r)=>String.fromCharCode(parseInt(r,8))),qf=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Kf=t=>t.replace(/\/\/\/\/\/n/g,`
3
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),Ox=/[^a-zA-Z0-9\s]/g,Yf=t=>t.replace(Ox,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Xf=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var De,ao,Zf,Le,Me,tn,co,Jf,ir=$(()=>{"use strict";De=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"]),ao=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Zf=["ref","parent","__element","__depends","__ref","__children","root"],Le=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"]),Me=new Set(["update","__element"]),tn=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"]),co=new Set(["node","context","extends","__element","__ref",...tn,...Le,...Me]),Jf=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Qf,Ne,X,eu,et,G,ru,nu,Q,lo,Rx,fo,Px,Ix,$x,en,Fx,Dx,tu,ie,Lx,Mx,Nx,uo,ou,su,Ii,iu,au,po,ar,At,$i,jx,cu,lu,Fi,fu,uu,pu,du,hu,gu,mu,se=$(()=>{"use strict";Kr();dt();nr();Qr();Yr();ir();Qf="production",Ne=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,X=(t,e,r,n)=>{if(C(t))return e?typeof t.call!="function"?t:t.call(e,e,r||e.state,n||e.context):void 0;if(t!=null&&e?.context?.plugins&&(T(t)||_(t)&&!kt(t))){let o=e.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i=="function")return X(i,e,r,n)}}return t},eu=(t,e,r)=>{for(let n in e)t[n]=X(e[n],r)},et=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Ne(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},G=(t,e,r=co)=>ru(t,e,r,null),ru=(t,e,r,n)=>{if(t===e)return t;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===t&&n[s+1]===e)return t}let o=r instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Ne(s)||s==="constructor"||s==="prototype"||(o?r.has(s):r.includes(s)))continue;let i=t[s],a=e[s];if(N(i)&&N(a)){let c=n||[];c.push(t,e),ru(i,a,r,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},nu=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Ne(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},Q=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!N(t)||kt(t))return t;if(s.has(t))return s.get(t);let a=r instanceof Set?r:r.length>3?new Set(r):null,c=p=>a?a.has(p):r.includes(p),l=T(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[p,u]=f.pop();for(let d in p){if(!Object.prototype.hasOwnProperty.call(p,d)||Ne(d)||d==="__proto__"||c(d))continue;let h=p[d];if(!(n&&h===void 0)&&!(o&&h===null)){if(kt(h)){u[d]=h;continue}if(i&&d==="extends"&&T(h)){u[d]=no(h,r);continue}if(C(h)){u[d]=h;continue}if(N(h))if(s.has(h))u[d]=s.get(h);else{let g=T(h)?[]:{};s.set(h,g),u[d]=g,f.push([h,g])}else u[d]=h}}}return l},lo=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let r in t){let n=t[r];if(C(n))e[r]=n.toString();else if(_(n))e[r]={},lo(n,e[r]);else if(T(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];_(i)?(o[s]={},lo(i,o[s])):C(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},Rx=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),fo=(t={},e=0)=>{if(t===null||typeof t!="object")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return"{}";let n=" ".repeat(e),o=`{
4
+ `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let l=0;l<s.length;l++)if(Rx.has(s[l])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,T(i)){o+=`[
5
+ `;for(let l of i)N(l)&&l!==null?o+=`${n} ${fo(l,e+2)},
6
+ `:S(l)?o+=`${n} '${l}',
7
7
  `:o+=`${n} ${l},
8
- `;o+=`${n} ]`}else L(i)?o+=fo(i,t+1):w(i)?o+=io(i,[`
8
+ `;o+=`${n} ]`}else N(i)?o+=fo(i,e+1):S(i)?o+=io(i,[`
9
9
  `,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
10
- `}return o+=`${n}}`,o},Rx=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],Px=/^["[{]/,Ix=/^(export|import)\s/,tn=e=>{if(!e)return!1;let t=e.trim().replace(/\n\s*/g," ").trim();if(t===""||t==="{}"||t==="[]"||Ix.test(t)||!Rx.some(s=>s.test(t)))return!1;let n=t.charCodeAt(0),o=t.includes("=>");return!(n===123&&!o||n===91||Px.test(t)&&!o)},$x=e=>(0,eval)(e),Fx=(e,t)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(e);if(!r)return null;let n=r[0].length,o=[],s=n,i=1,a=null,c=e.length,l=new RegExp("^(?:const|let|var)\\s+"+t+"\\b");for(;s<c&&i>0;){let p=e[s];if(p==="/"&&e[s+1]==="/"){let u=e.indexOf(`
11
- `,s);s=u===-1?c:u;continue}if(p==="/"&&e[s+1]==="*"){let u=e.indexOf("*/",s+2);s=u===-1?c:u+2;continue}if(p==='"'||p==="'"||p==="`"){let u=p;for(s++;s<c;){if(e[s]==="\\"){s+=2;continue}if(e[s]===u){s++;break}if(u==="`"&&e[s]==="$"&&e[s+1]==="{"){s+=2;let d=1;for(;s<c&&d>0;)e[s]==="{"?d++:e[s]==="}"&&d--,s++;continue}s++}continue}if(p==="{"){i++,s++;continue}if(p==="}"){i--,s++;continue}if(i===1&&l.test(e.slice(s))){let u=s,d=0,m=s;for(;m<c;){let h=e[m];if(h==='"'||h==="'"||h==="`"){let g=h;for(m++;m<c;){if(e[m]==="\\"){m+=2;continue}if(e[m]===g){m++;break}m++}continue}if(h==="("||h==="["||h==="{"){d++,m++;continue}if(h===")"||h==="]"||h==="}"){if(d===0)break;d--,m++;continue}if(d===0&&(h===";"||h===`
12
- `)){m++;break}m++}o.push([u,m]),s=m;continue}s++}if(!o.length)return null;let f=e;for(let p=o.length-1;p>=0;p--)f=f.slice(0,o[p][0])+f.slice(o[p][1]);return f},eu=(e,t,r)=>{let n=String(e).trimStart();if(/^(export|import)\s/.test(n))return e;try{return r.window.eval(`(${e})`)}catch(o){let s=o&&o.message?o.message:String(o),i=/await is only valid in async/.test(s),a=/Identifier '([^']+)' has already been declared/.exec(s),c=null;if(i){let l=String(e).trim();if(/^function[\s(]/.test(l))try{c=r.window.eval("(async "+l+")")}catch{}}else if(a){let l=String(e),f=a[1];for(let p=0;p<5;p++){let u=Fx(l,f);if(!u||u===l)break;l=u;try{c=r.window.eval("("+l+")");break}catch(d){let m=/Identifier '([^']+)' has already been declared/.exec(d&&d.message||String(d));if(!m||m[1]!==f)break}}}return c||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${t} \u2014 value will be left as a string. Reason: `+s+`.
13
- First 200 chars of source: `+String(e).slice(0,200)),e)}},it=(e,t={},r={window:{eval:$x}})=>{if(!e||typeof e!="object")return t;let n=[[e,t]];for(;n.length;){let[o,s]=n.pop();for(let i in o){if(!Object.prototype.hasOwnProperty.call(o,i))continue;let a=o[i];if(w(a))tn(a)?s[i]=eu(a,`"${i}"`,r):s[i]=a;else if(T(a)){let c=s[i]=[];for(let l=0;l<a.length;l++){let f=a[l];if(w(f))c.push(tn(f)?eu(f,`array index ${l} (prop "${i}")`,r):f);else if(S(f)){let p={};c.push(p),n.push([f,p])}else c.push(f)}}else if(S(a)){let c=s[i]&&typeof s[i]=="object"&&!T(s[i])?s[i]:s[i]={};n.push([a,c])}else s[i]=a}}return t},Dx="Set",Lx="Map",Nx=e=>!e||typeof e!="object"?e:e.__type===Dx&&Array.isArray(e.values)?new Set(e.values):e.__type===Lx&&Array.isArray(e.entries)?new Map(e.entries):e,uo=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];w(o)&&tn(o)?r.push([n,o]):t[n]=Nx(o)}for(let[n,o]of r)try{let s=Object.keys(t).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
14
- `);t[n]=k.eval(`(function(__gs__) { ${s}
15
- return (${o}); })`)(t)}catch{try{t[n]=k.eval(`(${o})`)}catch{t[n]=o}}return t},ou=(e,t={verbose:!0})=>{try{return e?k.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},su=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),Ii=e=>{for(let t in e)return!1;return!0},iu=e=>S(e)&&Ii(e),au=()=>Object.create(null),po=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&Mt(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},ar=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Mt(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Ae=(e,t,r={},n=new WeakMap)=>{if(!L(e)||!L(t)||ke(e)||ke(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&Mt(a)||a==="constructor"||a==="prototype")continue;let c=e[a],l=t[a];ke(l)?e[a]=l:L(c)&&L(l)?e[a]=Ae(c,l,r,n):l!==void 0&&(e[a]=l)}return e},$i=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!$i(e[i],t[i],r))return!1}return!0},Mx=new Set(["node","__ref"]),cu=(e,t,r=Mx)=>{if(e===t)return!0;if(!L(e)||!L(t)||ke(e)||ke(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(ke(l)||ke(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)},lu=(e,t)=>{if(t==null)return e;if(Ce(t)("string","number"))delete e[t];else if(T(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},Fi=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]=Fi(e[r]));return t},fu=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},uu=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},pu=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},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;n++){if(r==null)return;r=r[t[n]]}return r},hu=e=>{let r=[],n=0;for(let o=0;o<e.length;o++)if(r.length<2)r.push(e[o]);else if(e[o]===r[o%2]?n++:(r=[e[o-1],e[o]],n=1),n>=20)return(Qf==="test"||Qf==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},mu=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},gu=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}});var ho,mo,go,yo=$(()=>{"use strict";st();ho=(function(){let e=0;function t(){return e++,e}return t})(),mo=ho,go=(e,t,r)=>(Y(r,e)||r||e.key||ho()).toString()});var Ke,yu,jt,Di,bu,xu,_u,Bt,Su,cr,Li=$(()=>{"use strict";Ke="production",yu=Ke,jt=(e=Ke)=>e==="production",Di=(e=Ke)=>e==="testing"||e==="test",bu=Di,xu=(e=Ke)=>e==="staging",_u=(e=Ke)=>e==="local",Bt=(e=Ke)=>e==="development"||e==="dev"||e==="local",Su=(e,t=Ke)=>t[e],cr=(e=Ke)=>!jt(e)});function bo(e,t,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||e.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,t),a&&e.apply(o,s)}}function Cu(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var wu,ku,jx,vu,rn,nn,Be,lr=$(()=>{"use strict";wu=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},ku=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},jx=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,vu=e=>jx.test(e),rn=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},nn=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},Be=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o}});var Au,Eu=$(()=>{"use strict";de();st();Au=(e,t)=>{let{__ref:r}=e,n=e.if;if(v(n)){let o;try{o=n(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?Y(n,e)?r.__if=!0:delete r.__if:r.__if=!0}});var Tu,Ou,Ru=$(()=>{"use strict";Tu=(e,...t)=>{e&&t.map(r=>console.log(r))},Ou=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function Du(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 Lu(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 Pu,Iu,$u,Fu,Nu=$(()=>{"use strict";de();Kr();Pu=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Iu=(e,t,r=365)=>{if(me(X)||me(X.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;X.cookie=`${e}=${t};${o};path=/`},$u=e=>{if(me(X)||me(X.cookie))return;let t=`${e}=`,n=decodeURIComponent(X.cookie).split(";");for(let o=0;o<n.length;o++){let s=n[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return""},Fu=e=>{me(X)||me(X.cookie)||(X.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var on,Mu,ju,Ni=$(()=>{"use strict";on={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"])},Mu=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"]),ju=e=>on.body.has(e)});var Mi,Bu,sn,So,Ee,Vu,ji,wo,Uu,ko,Bi,Vi,vo,Ui,an,Bx,at,zu,xo,Co,Wu,_o,Hu,Gu,zi,Wi,Hi,Gi,qi,Ki,qu,Ao=$(()=>{"use strict";nr();Xi();st();de();Mi="production",Bu=e=>e.sourcemap!==!1&&Mi!=="production",sn=e=>{if(e.includes("+"))return e.split("+").filter(ct);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!ct(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},So=(e,t,r)=>{let n=[],o=sn(r);o&&(n=[...o]);let s=e.extends;return s&&(n=T(s)?[...n,...s]:[...n,s]),n},Ee=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},Vu=(e,t)=>{if(!e)return t;let{extends:r}=t,n=T(r)?r:[r],o=T(e)?e:[e];return{...t,extends:Yr(o,n)}},ji=()=>Math.random().toString(36).substring(2),wo={},Uu={},ko=e=>wo[e.__hash],Bi=(e,t)=>{let r=ji();return w(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(wo[r]=t),t},Vi=(e,t)=>e.__hash?t.concat(ko(e)):Bi(e,t),vo=(e,t,r,n=new Set,o,s)=>{for(let i of e)T(i)?vo(i,t,r,n,o,s):an(i,t,r,n,o,void 0,s);return t},Ui=(e,t,r,n=new Set,o,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),o&&o.push(s)),a&&an(a,t,r,n,o,s,i),t},an=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(T(e))return vo(e,t,r,n,o,i);let a=s;return w(e)?(a=e,e=Co(e,r)):i&&S(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?Ui(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},Bx=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),at=(e,t,r,n,o)=>{t=J(t);for(let s in t){if(Bx.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&n?S(a)&&!T(a)?(r[s]=r[s]||{},zu(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(S(i)&&S(a)){let c=r?r[s]=r[s]||{}:void 0,l=o?.[s];ct(s)?e[s]=at(i,a,c,n,l):at(i,a,c,n,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(T(i)&&T(a))e[s]=i.concat(a);else if(T(i)&&S(a)){let c=at({},i);e[s]=at(c,a)}}}}return e},zu=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=t[o];S(s)&&!T(s)?(e[o]=e[o]||{},zu(e[o],s,r,n)):e[o]=r}}},xo=(e,t,r)=>e.reduce((n,o,s)=>{let i=J(o),a=r?r[s]:void 0;return at(n,i,t,a)},{}),Co=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(w(e)){let i=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Mi==="test"||Mi==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Wu=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),_o=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return ko(e)||[];let s=an(e,[],t,new Set,r,void 0,n);return r?s:Vi(e,s)},Hu=(e,t)=>{if(!e)return t;let r=T(e)?e:[e];return Yr(r,t)},Gu=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(ct(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},zi=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&o?.components){let c=`${i}.${s}`;o.components[c]?Ee([c,...a],e):Ee(e.extends,e)}else Ee(e.extends,e)}else if(typeof e.extends=="string"&&s&&o?.components){let i=`${e.extends}.${s}`;o.components[i]?Ee(i,e):Ee(e.extends,e)}else Ee(e.extends,e);return Wi(e,t,r),Hi(e,t,r),Gi(e,t,r),e.component&&Ee(Y(e.component,e),e),o.defaultExtends&&Ee(o.defaultExtends,e),Zr(n.__extends)},Wi=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Ee(t.childProps.extends,e),n.__extends},Hi=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Ee(s,e),n.__extends},Gi=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return o&&!i&&!s&&Ee(o,e),n.__extends},qi=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=Bu(r),a=i?[...n.__extends]:null,c=Zr(n.__extends.map((l,f)=>Co(l,o,r,f===0&&s)));if(i){let l=new WeakMap;for(let u=0;u<c.length;u++){let d=c[u],m=a[u];d&&S(d)&&w(m)&&l.set(d,m)}let f=[],p=_o(c,o,f,l);n.__extendsStack=p,n.__extendsNames=f}else{let l=_o(c,o);n.__extendsStack=l}return n.__extendsStack},Ki=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Bu(r)){let s={},i=n.__extendsNames||[],a=xo(o,s,i),c={};at(e,a,c,void 0,s),n.__sourcemap=c}else{let s=xo(o);at(e,s)}return e},qu=(e,t,r={})=>(zi(e,t,r),qi(e,t,r),Ki(e,t,r),e)});function Ku(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function Xu(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function Yu(e,t,r){let{context:n}=t||{},[o]=sn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var ct,Xi=$(()=>{"use strict";Ao();de();ct=e=>{if(!w(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function Zu(e,t){let{props:r,on:n}=t,o=sr(e.split("on")[1]),s=n[o],i=r[e];v(s)?n[o]=(...a)=>{if(s(...a)!==!1&&v(i))return i(...a)}:n[o]=i}var Ju=$(()=>{"use strict";Qr();de()});function Zi(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(v(o)||o!=null&&rn(this.context))){let m=sr(n.slice(2));e.on&&(e.on[m]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],l=S(a)||v(a),f=S(c)||v(c);if(l||f)continue;let p=n.charAt(0);if(ep.has(p)){e.props[n]=o,delete e[n],r.push(n);continue}let u=Yi.test(n)||Qu.test(n)||Ux(o),d=Dt.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function Ji(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=v(o)||o!=null&&rn(this.context);if(s&&i){Zu(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(ep.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=S(c)||v(c),p=S(l)||v(l),u=Yi.test(n)||Qu.test(n),d=Dt.has(n);(u||d||f||p)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function Qi(e=this){let t=[];return Zi.call(this,e,{cachedKeys:t}),Ji.call(this,e,{cachedKeys:t}),e}function tp(e={}){return e.on||(e.on={}),e.props||(e.props={}),Qi.call(this,e)}function ea(e,t){this.__element.update({props:e},t)}function Po(e){let t={update:ea.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Yi,Qu,ep,Vx,Ux,Oo,Eo,rp,Ro,Io,$o,ta,To,np,op,ra=$(()=>{"use strict";ir();Ju();st();de();Qr();lr();Yi=/^[A-Z]/,Qu=/^\d+$/,ep=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),Vx=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),Ux=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(Vx.has(t)||Yi.test(t))return!0;return!1},Oo=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return L(n)?{...n}:(o.__propsStack.push(n),{})};Eo=e=>Ce(e)("string","number")?{inheritedString:e}:e,rp=(e,t)=>!e||!t.length?!1:t.includes(e),Ro=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let s=o[e.key],i=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let c=Eo(i);n.unshift(c)}if(s){let c=Eo(s);n.unshift(c)}return n};Io=e=>{let t=new Set;return e.filter(r=>!r||Nt.has(r)||t.has(r)?!1:(t.add(r),!0))},$o=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(Nt.has(o))return n;for(;v(o);)o=Y(o,t);return G(n,J(o,{exclude:Nt}))},{}),Po(t),t.props),ta=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Ro(e,t)]),S(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),T(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Io(o),n.__propsStack},To=(e,t)=>{let{__ref:r}=e,n=ta(e,t);n.length?$o(n,e):(r.__propsStack=[],e.props={})},np=function(e,t,r){let{__ref:n}=e;if(n.__if)To(e,t);else try{To(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return Po(e),e},op=(e,t,r)=>{let{__ref:n}=t,s=[...n.__propsStack||[]],i=Ro(t,r);return i.length&&(s=[...i,...s]),e&&(s=[e,...s]),n.__propsStack=Io(s),n.__propsStack.length&&$o(n.__propsStack,t),t}});var sp,na,oa,sa,ia,ip,aa,ca,la,ap,cp=$(()=>{"use strict";Ao();yo();Xr();ra();Ni();de();sp="production",na=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=on.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},oa=(e,t,r)=>{if(e===void 0)return(sp==="test"||sp==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Ce(e)("string","number")?na(e,t,r):v(e)?{props:e}:e},sa=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},ia=(e,t,r,n,o)=>{if(!t)return o;if(ht(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},ip=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},aa=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},ca=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),la=(e,t,r)=>{let n=sa(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=So(e,t,r),n.path=aa(e,t,r),n},ap=(e,t,r,n,o)=>{let i=e?.__hash?{extends:[e]}:oa(e,t,r);if(!i)return;let a=ia(i,t,r,n,o),c=go(i,a,r);la(i,a,c);let l=Oo(i,a,c),f=ca(i,a,c,n,o),p=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:p}}});var lp,fa,ua,pa,da,fp,ha,up,pp,dp,hp,mp=$(()=>{"use strict";nr();ir();st();de();lp=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Ce(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},fa=(e,t)=>{if(!e.includes("~/"))return;if(e.split("~/").length>1)return t.root},ua=(e,t)=>{if(!e.includes("../"))return;let n=e.split("../").length-1;for(let o=0;o<n;o++){if(!t.parent)return null;t=t.parent}return t},pa=(e,t,r={})=>{let n=w(e)?e.split("/"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let c=t[i];c||(c=t[i]={}),c[a]||(c[a]={}),e=a,t=c}return r.returnParent?t:t[e]},da=(e,t,r={})=>{let o=e.__ref.__state;if(!ha(e))return;let s=fa(o,t.state),i=t.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=ua(o,t.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return pa(o,i,r)},fp=(e,t)=>{let r=e.__ref,n=da(e,t);if(n===void 0)return e.state;if(Ce(n)("object","array"))return J(n);if(Ce(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},ha=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Ce(r)("number","string","boolean"))},up=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},pp=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?t||{}:{},o=o[r[i]];return n},dp=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=J(n,Lt),s={[e.key]:o},i=S(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?so(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},hp=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){G(e,t,Lt);return}(o?ar:Ae)(e,t,Lt)}});var zx,gp,yp=$(()=>{"use strict";zx=(e,t)=>{let r=t;for(;r;){if(r===e)return!0;r=Object.getPrototypeOf(r)}return!1},gp=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,s=n?.globalScope;if(!e.scope)o?e.scope=o:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=o||s;i&&!zx(e.scope,i)&&Object.setPrototypeOf(e.scope,i)}}});var bp,ma,Vt,ga,xp,ya=$(()=>{"use strict";de();lr();bp=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},ma=(e,t,r,n,o)=>{if(e=nn(e,t),!!v(e))try{let s=e.call(t,t,r||t.state,n||t.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},Vt=(e,t,r)=>{if(!t)throw new Error("Element is required");Be(e,t,r);let n=bp(e,t);if(n){let{state:o,context:s}=t;return ma(n,t,o,s,r)}},ga=(e,t,r,n,o,s)=>{if(e=nn(e,r),!!v(e))try{let i=e.call(r,t,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},xp=(e,t,r,n)=>{Be(e,r,t,n);let o=bp(e,r);if(o){let{state:s,context:i}=r;return ga(o,t,r,s,i,n)}}});var _p,Fo,ba=$(()=>{"use strict";_p={},Fo={}});var kp={};F(kp,{setup:()=>Hx,supabaseAdapter:()=>wp});var Sp,Wx,Hx,xa,Gx,wp,vp=$(()=>{"use strict";Sp=new Map,Wx=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,Hx=async({url:e,key:t,projectId:r,createClient:n,auth:o,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");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let l=Wx(c,t,o===!1),f=Sp.get(l);return f||(f=await n(c,t,a),f?.auth&&Sp.set(l,f)),!f||!f.auth?null:wp(f)},xa=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},Gx=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;e=e.order(s,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},wp=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:s,...i})=>{let c=(r?e.schema(r):e).from(t).select(n||"*");if(c=xa(c,o),c=Gx(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:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:s})=>{let a=(r?e.schema(r):e).from(t).update(n);return a=xa(a,o),a.select(s||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=xa(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})});var Ap={};F(Ap,{restAdapter:()=>Cp,setup:()=>Kx});var qx,mt,Kx,Cp,Ep=$(()=>{"use strict";qx=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},mt=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},Kx=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return Cp(e,t,r,n)},Cp=(e,t={},r,n={})=>{let o=r?.token||null,s=f=>{let p={...t,...f};return o&&(p.Authorization=`Bearer ${o}`),p},i=f=>({...s(f),"Content-Type":"application/json"}),a=f=>({...n,...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=>{o=f},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let f=await mt(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 mt(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(f)}));return p.data?.token&&(o=p.data.token),p},signOut:async()=>(r?.signOutUrl&&await mt(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:f,params:p,select:u,limit:d,offset:m,order:h,single:g,headers:y,baseUrl:b})=>{let _={...p};return u&&(_.select=u),d&&(_.limit=d),m&&(_.offset=m),g&&(_.single=!0),h&&(typeof h=="string"?_.order=h:Array.isArray(h)?_.order=h.map(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):h.by&&(_.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),mt(qx(b||e,f||"",_),a({headers:s(y)}))},rpc:({from:f,params:p,headers:u,baseUrl:d})=>mt(c(`rpc/${f}`,d),a({method:"POST",headers:i(u),body:JSON.stringify(p)})),insert:({from:f,data:p,headers:u,baseUrl:d})=>mt(c(f,d),a({method:"POST",headers:i(u),body:JSON.stringify(p)})),update:({from:f,data:p,params:u,method:d,headers:m,baseUrl:h})=>{let g=u?.id||p?.id,y=g?`${f}/${g}`:f;return mt(c(y,h),a({method:d||"PATCH",headers:i(m),body:JSON.stringify(p)}))},delete:({from:f,params:p,headers:u,baseUrl:d})=>{let m=p?.id,h=m?`${f}/${m}`:f;return mt(c(h,d),a({method:"DELETE",headers:s(u)}))}}}});var Op={};F(Op,{localAdapter:()=>Tp,setup:()=>Yx});var _a,Xx,Yx,Tp,Rp=$(()=>{"use strict";_a=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},Xx=(e,{order:t,limit:r,offset:n,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},Yx=async({data:e,...t})=>Tp(e,t),Tp=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=f=>{if(!r[f])if(o)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(o)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},c=(f,p,u,d)=>{let m=n[f];if(m)for(let h of m)h(u,d,{event:p,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:p,...u})=>{let m=i(f).filter(h=>_a(h,p));return Xx(m,u)},insert:async({from:f,data:p})=>{let u=i(f),m=(Array.isArray(p)?p:[p]).map(h=>{let g={id:h.id||++l,...h};return u.push(g),g});a(f);for(let h of m)c(f,"INSERT",h,null);return{data:Array.isArray(p)?m:m[0],error:null}},update:async({from:f,data:p,params:u})=>{let d=i(f),m=[];for(let h=0;h<d.length;h++)if(_a(d[h],u)){let g={...d[h]};Object.assign(d[h],p),m.push(d[h]),c(f,"UPDATE",d[h],g)}return a(f),{data:m,error:null}},delete:async({from:f,params:p})=>{let u=i(f),d=[];for(let m=u.length-1;m>=0;m--)_a(u[m],p)&&(d.push(u[m]),u.splice(m,1),c(f,"DELETE",null,d[d.length-1]));return a(f),{data:d,error:null}},subscribe:({from:f,on:p},u)=>{n[f]||(n[f]=[]);let d=(m,h,g)=>{p&&p!=="*"&&p!==g.event||u(m,h,g)};return n[f].push(d),()=>{let m=n[f].indexOf(d);m>-1&&n[f].splice(m,1)}}}}});var gn={};F(gn,{createAdapter:()=>r_,default:()=>p_,executeFetch:()=>mn,fetchPlugin:()=>Aa,initAdapterAuth:()=>jo,parseDuration:()=>fn,queryClient:()=>u_,registerAdapter:()=>t_,resolveDb:()=>Fp});var Zx,Jx,Do,ln,Lo,ka,Qx,e_,t_,r_,Fp,fn,ye,Dp,cn,n_,hn,un,pn,No,va,Mo,o_,Pp,Sa,Lp,Np,fr,Ip,s_,$p,i_,Bo,Mp,jo,Ca,Ie,Ve,dn,Ut,Xe,gt,a_,c_,l_,wa,f_,mn,u_,Aa,p_,zt=$(()=>{"use strict";R();Zx=["select","rpc","insert","update","delete","subscribe"],Jx={supabase:()=>Promise.resolve().then(()=>(vp(),kp)),rest:()=>Promise.resolve().then(()=>(Ep(),Ap)),local:()=>Promise.resolve().then(()=>(Rp(),Op))},Do=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),ln=(()=>{if(typeof globalThis<"u"&&globalThis[Do])return globalThis[Do];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Do,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Do]}catch{}return e})(),Lo=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),ka=(()=>{if(typeof globalThis<"u"&&globalThis[Lo])return globalThis[Lo];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Lo,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Lo]}catch{}return e})(),Qx=5e3,e_=e=>new Promise(t=>{if(ln[e])return t(ln[e]);let r=ka[e]||=[],n=!1,o=()=>{n||(n=!0,t(ln[e]||null))};r.push(o),setTimeout(o,Qx)}),t_=(e,t)=>{ln[e]=t;let r=ka[e];if(r&&r.length){ka[e]=[];for(let n of r)n()}},r_=e=>{let t={};for(let r of Zx)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},Fp=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=ln[n]||Jx[n];if(!o&&(o=await e_(n),!o))throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},fn=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},ye=new Map,Dp=new Map,cn=new Map,n_=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=i_(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},hn=e=>ye.get(e)||null,un=(e,t,r)=>{let n=ye.get(e),o={data:t,error:r,time:Date.now(),stale:!1};ye.set(e,o);let s=Dp.get(e);if(s)for(let i of s)v(i)&&i(o);return o},pn=e=>{if(e){let t=ye.get(e);t&&(t.stale=!0);return}for(let[,t]of ye)t.stale=!0},No=e=>{if(e){ye.delete(e);return}ye.clear()},va=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)}:w(e)?{staleTime:fn(e),gcTime:3e5}:{staleTime:fn(e.stale||e.staleTime)||6e4,gcTime:fn(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Mo=null,o_=()=>{Mo||(Mo=setInterval(()=>{let e=Date.now();for(let[t,r]of ye){let n=Dp.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&ye.delete(t)}},3e4),Mo.unref&&Mo.unref())};o_();Pp=3,Sa=e=>Math.min(1e3*2**e,3e4),Lp=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:Pp,delay:Sa}:typeof t=="number"?{count:t,delay:Sa}:{count:t.count??Pp,delay:v(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:Sa}},Np=async(e,t)=>{let{count:r,delay:n}=t,o;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(o=i.error,s<r){let a=v(n)?n(s,o):n;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=v(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},fr={focus:new Set,online:new Set},Ip=!1,s_=()=>{if(Ip||typeof window>"u")return;Ip=!0;let e=()=>{for(let r of fr.focus)r()},t=()=>{for(let r of fr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},$p=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(w(e))return{from:e,method:"select",query:!0,on:"create"};if(S(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},i_=e=>(!e||v(e),e),Bo=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},Mp=(e,t,r)=>{let n;if(!e)n=void 0;else if(v(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=v(s)?s(t,t.state):s}}return n},jo=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Ca=async(e,t)=>{if(v(e.select))return e.auth!==!1&&await jo(e,t),e;if(e.__resolved)return e.auth!==!1&&await jo(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=Fp(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 jo(r,t),r):null},Ie=(e,t,...r)=>{let n=v(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},Ve=(e,t,r,...n)=>{let o=e&&v(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},dn=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())t[s]=i;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},Ut=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...n}):s.update({[i]:t},{preventFetch:!0,...n})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...n})}},Xe=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},gt=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||v(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||v(e.skip)&&e.skip(t,t.state))return;let s=await Ca(o,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:m,fields:h,as:g,limit:y,offset:b,order:_,headers:x,baseUrl:C,page:E,cursor:P,getNextPageParam:B,getPreviousPageParam:O,infinite:I,placeholderData:V,initialData:te,select:W,keepPreviousData:M}=e,H=w(W)?W:void 0;if(l&&v(t.getQuery)){let K=t.getQuery(s.name||"paths");K&&(H=K.select||K.length&&K.join(",")||H)}let q=Mp(f,t,r),ae=va(p),Wr=Lp(e),yi=Bo(t,r),ux=yi?`:${yi}`:"",ne=ae?p?.key||`${a}:${c}:${JSON.stringify(q||"")}${I?":infinite":""}${E?":p"+JSON.stringify(E):""}${ux}`:null;if(!i.__fetchInitialized&&ne&&(i.__fetchInitialized=!0,te!==void 0)){let K=v(te)?te():te;un(ne,K,null)}if((c==="select"||c==="rpc")&&ne&&ae){let K=hn(ne);if(K&&!K.error){let U=Date.now()-K.time,re=K.stale||U>(ae.staleTime||0),j=K.data;if(v(W)&&(j=W(j,t,t.state)),u&&(j=u(j,t,t.state)),Ut(t,j,g),!re){Xe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(V!==void 0){let U=v(V)?V(t,t.state):V;U!==void 0&&Ut(t,U,g)}}if(ne&&cn.has(ne)&&!n.force){let K=cn.get(ne);try{let U=await Promise.race([K,new Promise((re,j)=>setTimeout(()=>j("DEDUP_TIMEOUT"),15e3))]);if(U?.data!==void 0){let re=U.data;v(W)&&(re=W(re,t,t.state)),u&&(re=u(re,t,t.state)),Ut(t,re,g),Ie(t,"onFetchComplete",re),Ve(e,t,"onFetchComplete",re)}}catch{}return}let px=!hn(ne)?.data;Xe(t,{isFetching:!0,isLoading:px,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Ie(t,"onFetchStart"),Ve(e,t,"onFetchStart");let rt=r?.analyze?.emitNetwork,bi=rt?typeof performance<"u"?performance.now():Date.now():0;rt&&rt({phase:"start",mode:"query",from:a,method:c,cacheKey:ne,lang:yi});let Af=Np(async()=>{if(m!==!1&&s.auth!==!1&&s.getSession){let j=await s.getSession();if(m===!0&&!j){let ge={message:"Not authenticated"};return Xe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ge,status:"error",fetchStatus:"idle"}),Ie(t,"onFetchError",ge),Ve(e,t,"onFetchError",ge),{data:null,error:ge}}}let K=s[c];if(!v(K))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let U={from:a,select:H,params:q,single:d,limit:y,offset:b,order:_,headers:x,baseUrl:C},re=Bo(t,r);if(re&&(U.headers={...U.headers,"Accept-Language":re}),E!==void 0){if(S(E))E.offset!==void 0&&(U.offset=E.offset),E.limit!==void 0&&(U.limit=E.limit),E.cursor!==void 0&&(U.params={...U.params,cursor:E.cursor});else if(typeof E=="number"){let j=e.pageSize||y||20;U.offset=(E-1)*j,U.limit=j}}if(P!==void 0&&(U.params={...U.params,cursor:P}),c==="insert"||c==="update"||c==="upsert"){let j;if(h===!0||e.on==="submit")j=dn(t);else if(T(h)){let ge=dn(t);j={};for(let xi of h)j[xi]=ge[xi]}else t.state?.parse?j=t.state.parse():S(t.state)&&(j={...t.state});u&&(j=u(j,t,t.state)),U.data=j}if(c==="rpc"){let j=q;if(e.on==="submit"){let ge=dn(t);j=e.transformParams?e.transformParams(ge,t,t.state):ge}U.params=j}if(c==="subscribe"){let j=s.subscribe({from:a,params:q,on:e.subscribeOn},(ge,xi,kv)=>{Ut(t,ge,g),Ie(t,"onFetchComplete",ge),Ve(e,t,"onFetchComplete",ge)});return i.__unsubscribe=j,{data:null,error:null,subscribed:!0}}return K(U)},Wr);ne&&cn.set(ne,Af);try{let K=await Af;if(K?.subscribed)return;let{data:U,error:re}=K||{};if(re){ne&&un(ne,null,re),Xe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:re,status:"error",fetchStatus:"idle"}),Ie(t,"onFetchError",re),Ve(e,t,"onFetchError",re),rt&&rt({phase:"error",mode:"query",from:a,method:c,cacheKey:ne,error:re.message||re,durationMs:(typeof performance<"u"?performance.now():Date.now())-bi});return}if(U!==void 0){if((c==="select"||c==="rpc")&&ne){let ge=un(ne,U,null);ge.gcTime=ae?.gcTime||3e5}let j=U;I&&T(U)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(U):i.__pages.push(U),j=i.__pages.flat(),B&&(i.__nextPageParam=B(U,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),O&&(i.__prevPageParam=O(U,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),v(W)&&(j=W(j,t,t.state)),u&&(j=u(j,t,t.state)),(!M||j!==void 0)&&Ut(t,j,g),Xe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Ie(t,"onFetchComplete",j),Ve(e,t,"onFetchComplete",j),rt&&rt({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:ne,durationMs:(typeof performance<"u"?performance.now():Date.now())-bi})}}catch(K){Xe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:K,status:"error",fetchStatus:"idle"}),Ie(t,"onFetchError",K),Ve(e,t,"onFetchError",K),rt&&rt({phase:"error",mode:"query",from:a,method:c,cacheKey:ne,error:K.message||String(K),durationMs:(typeof performance<"u"?performance.now():Date.now())-bi})}finally{ne&&cn.delete(ne)}},a_=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||gt;if(n==="submit"){let i=c=>{c.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,r))},c_=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),s_();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:fn(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&gt(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=Bo(t,r),a=n_(e,i),c=hn(a),l=va(e.cache);(!c||c.stale||Date.now()-c.time>(l?.staleTime||0))&&gt(e,t,r,{force:!0})};fr.focus.add(s),n.__fetchCleanups.push(()=>fr.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>gt(e,t,r,{force:!0});fr.online.add(s),n.__fetchCleanups.push(()=>fr.online.delete(s))}},l_=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():S(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=v(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&Ut(e,i,o),s},wa=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Ut(e,n,t.as),delete r.__optimisticSnapshot)},f_=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await Ca(n,r);if(!o)return;let s=t.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:p,auth:u,headers:d,baseUrl:m,invalidates:h,optimistic:g,onMutate:y,onSuccess:b,onError:_,onSettled:x}=e,C;if(c===!0||p==="submit")C=dn(t);else if(T(c)){let O=dn(t);C={};for(let I of c)C[I]=O[I]}else t.state?.parse?C=t.state.parse():S(t.state)&&(C={...t.state});l&&(C=l(C,t,t.state)),v(y)&&y(C,t,t.state);let E=g?l_(t,e,C):null;s.__fetching=!0,Xe(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Ie(t,"onFetchStart"),Ve(e,t,"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&&o.auth!==!1&&o.getSession){let q=await o.getSession();if(u===!0&&!q){E!==void 0&&wa(t,e);let ae={message:"Not authenticated"};Ie(t,"onFetchError",ae),Ve(e,t,"onFetchError",ae);return}}let O=o[i];if(!v(O))return;let I={from:a,data:C,headers:d,baseUrl:m};e.params&&(I.params=Mp(e.params,t,r));let V=Bo(t,r);V&&(I.headers={...I.headers,"Accept-Language":V});let te=Lp(e),W=await Np(()=>O(I),te),{data:M,error:H}=W||{};if(H){E!==void 0&&wa(t,e),Xe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:H,status:"error",fetchStatus:"idle"}),Ie(t,"onFetchError",H),v(_)&&_(H,C,t),v(x)&&x(null,H,C,t),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-B});return}if(delete s.__optimisticSnapshot,M!==void 0){let q=f?{[f]:M}:M;t.state?.update&&t.state.update(q,{preventFetch:!0})}if(Xe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Ie(t,"onFetchComplete",M),Ve(e,t,"onFetchComplete",M),v(b)&&b(M,C,t),v(x)&&x(M,null,C,t),P&&P({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-B}),h){let q=T(h)?h:[h];for(let ae of q)if(ae===!0||ae==="*")for(let[Wr]of ye)Wr.startsWith(a+":")&&pn(Wr);else pn(ae)}}catch(O){E!==void 0&&wa(t,e),Xe(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:O,status:"error",fetchStatus:"idle"}),Ie(t,"onFetchError",O),Ve(e,t,"onFetchError",O),v(_)&&_(O,C,t),v(x)&&x(null,O,C,t),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:O.message||String(O),durationMs:(typeof performance<"u"?performance.now():Date.now())-B})}finally{s.__fetching=!1}},mn=(e,t,r,n)=>{if(!e||!n?.fetch)return;let s=Y(e,t);if(!s)return;let i=T(s)?s.map(c=>$p(Y(c,t),t)).filter(Boolean):[$p(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?f_:gt;c.on==="create"?f(c,t,n):Promise.resolve().then(()=>{a_({...c,__runner:f},t,n)}),!l&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&c_(c,t,n)}let a=t.__ref;a.refetch=c=>{for(let l of i)gt(l,t,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__nextPageParam;if(l==null)return;let f={...c,cursor:l};gt(f,t,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__prevPageParam;if(l==null)return;let f={...c,cursor:l};gt(f,t,n,{direction:"previous",force:!0})}},u_={invalidateQueries:e=>{if(!e){pn();return}if(w(e))for(let[t]of ye)(t.startsWith(e)||t.includes(e))&&pn(t);else if(T(e)){let t=e.join(":");for(let[r]of ye)r.includes(t)&&pn(r)}},removeQueries:e=>{if(!e){No();return}if(w(e))for(let[t]of ye)(t.startsWith(e)||t.includes(e))&&No(t)},getQueryData:e=>hn(e)?.data??void 0,setQueryData:(e,t)=>{let r=hn(e),n=v(t)?t(r?.data):t;un(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await Ca(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=n[e.method||"select"];if(!v(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=un(o,i.data,null);a.gcTime=va(e.cache)?.gcTime||3e5}return i},getCache:()=>ye,clear:()=>No(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of ye)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||No(r))}},Aa={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||cn.clear(),mn(t,e,e.state,e.context))}},p_=mn});function Uo(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function Bp(e){let t=this,{parent:r}=t;if(v(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 Vp(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=t[s];if(s===e)return i;if(v(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 Up(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===e)t.push(a);else if(v(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 Ta(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(S(n)&&o)Ta.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function zp(e){let t=this;if(Vt("beforeRemove",t,e)===!1)return t;v(t.node.remove)?t.node.remove():jt()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=oo(t.parent.__ref.__children,t.key)),Vt("remove",t,e)}function Wp(e){return this[e]}function Hp(e,t){let r=this;if(e)return r.update(e,t),r}function Gp(e){return e?this.__ref&&this.__ref[e]:this.__ref}function zo(){return this.getRef("__children").map(t=>this[t])}function Wo(){return this.getRef().path}function Go(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=jp();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=v(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=jp()),e?t?.[e]:t}function qo(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function Ko(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function Xo(e){let t=this.getRoot()?.context;return e?t[e]:t}function Yo(e){let t=this.context;return e?t[e]:t}function Oa(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||Dt.has(r)&&!ao.has(r)||t.push(r);return t}function Ra(e=[]){let t=this,r={},n=Oa.call(t),o=n.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let c=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let l=v(c&&c.parse)?c.parse():c;r[a]=v(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 ve(c)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=c)}return r}function Vo(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=Ra.call(r,e),o=e.length?new Set(e):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>L(a)?Vo.call(a,e,t):a):L(i)&&(n[s]=Vo.call(i,e,t))}return n}function yn(...e){if(yt!=="test"&&yt!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
16
- `,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",t[o]))),console.log(t),console.groupEnd(t.key),t}function Xp(...e){(yt==="test"||yt==="development")&&console.log(...e)}function Zo(...e){(yt==="test"||yt==="development")&&console.warn(...e)}function ur(...e){if(yt==="test"||yt==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&yn.call(this),new Error(...e)}}function Jo(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),s=n[o+1];return r[s]}function Qo(e){let t=e||this,{key:r,parent:n}=t,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function es(e={}){let t=this;t.data||(t.data={}),t.data.varCaches||(t.data.varCaches={});let r=t.data.varCaches,n={},o;for(let s in e)e[s]!==r[s]&&(o=!0,n[s]=e[s]);return{changed:s=>{if(!o)return;let i=s(n,J(r));for(let a in n)r[a]=n[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(n),clearTimeout(a)},i)}}}function Yp(e,...t){let r=this.context,n=r.utils?.[e]||r.functions?.[e]||r.methods?.[e]||r.snippets?.[e];if(n)try{let o=n.call(this,...t);return o&&typeof o.then=="function"&&o.catch(s=>{ur.call(this,s)}),o}catch(o){if(ur.call(this,o),r?.strictMode)throw o}}async function ts(){let e=this,t=e.context?.fetch;if(!t)return null;if(typeof t.select=="function"){if(!t.__authInitialized&&t.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(zt(),gn));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(zt(),gn));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(zt(),gn)).then(({resolveDb:o})=>o(t));t.__resolving=r;let n=await r;if(t.__resolved=n,e.context.fetch=n,delete t.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(zt(),gn));await o(n,e.context)}return n}function rs(e){let t=this,r=e||Fo.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(Ea(t,n),r===!0)return n;let o=__[r];return o?o(n):n}function Jp(e,t){return!!(en.has(e)||t?.context?.methods?.[e])}var yt,qp,Ho,jp,Kp,Ea,d_,Zp,h_,m_,g_,y_,b_,x_,__,Qp=$(()=>{"use strict";ya();ir();de();st();Li();nr();ba();yt="production";qp=null,Ho=e=>{qp=e||null},jp=()=>qp||null;Kp=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n});Ea=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&d_(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=e[o[a]];c&&c.__ref&&Ea(c,t)}let s=r.contentElementKey||"content",i=e[s];i&&i.__ref&&Ea(i,t)},d_=(e,t)=>{let n=t.replaceAll("../","").replaceAll("~/","").split("/"),o=e;for(let s=0;s<n.length;s++){let i=n[s];s===n.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},Zp=(e,t=0)=>{let r=" ".repeat(t),n=Object.entries(e);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
17
- ${Zp(i,t+1)}
10
+ `}return o+=`${n}}`,o},Px=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],Ix=/^["[{]/,$x=/^(export|import)\s/,en=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||$x.test(e)||!Px.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||Ix.test(e)&&!o)},Fx=t=>(0,eval)(t),Dx=(t,e)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(t);if(!r)return null;let n=r[0].length,o=[],s=n,i=1,a=null,c=t.length,l=new RegExp("^(?:const|let|var)\\s+"+e+"\\b");for(;s<c&&i>0;){let p=t[s];if(p==="/"&&t[s+1]==="/"){let u=t.indexOf(`
11
+ `,s);s=u===-1?c:u;continue}if(p==="/"&&t[s+1]==="*"){let u=t.indexOf("*/",s+2);s=u===-1?c:u+2;continue}if(p==='"'||p==="'"||p==="`"){let u=p;for(s++;s<c;){if(t[s]==="\\"){s+=2;continue}if(t[s]===u){s++;break}if(u==="`"&&t[s]==="$"&&t[s+1]==="{"){s+=2;let d=1;for(;s<c&&d>0;)t[s]==="{"?d++:t[s]==="}"&&d--,s++;continue}s++}continue}if(p==="{"){i++,s++;continue}if(p==="}"){i--,s++;continue}if(i===1&&l.test(t.slice(s))){let u=s,d=0,h=s;for(;h<c;){let g=t[h];if(g==='"'||g==="'"||g==="`"){let m=g;for(h++;h<c;){if(t[h]==="\\"){h+=2;continue}if(t[h]===m){h++;break}h++}continue}if(g==="("||g==="["||g==="{"){d++,h++;continue}if(g===")"||g==="]"||g==="}"){if(d===0)break;d--,h++;continue}if(d===0&&(g===";"||g===`
12
+ `)){h++;break}h++}o.push([u,h]),s=h;continue}s++}if(!o.length)return null;let f=t;for(let p=o.length-1;p>=0;p--)f=f.slice(0,o[p][0])+f.slice(o[p][1]);return f},tu=(t,e,r)=>{let n=String(t).trimStart();if(/^(export|import)\s/.test(n))return t;try{return r.window.eval(`(${t})`)}catch(o){let s=o&&o.message?o.message:String(o),i=/await is only valid in async/.test(s),a=/Identifier '([^']+)' has already been declared/.exec(s),c=null;if(i){let l=String(t).trim();if(/^function[\s(]/.test(l))try{c=r.window.eval("(async "+l+")")}catch{}}else if(a){let l=String(t),f=a[1];for(let p=0;p<5;p++){let u=Dx(l,f);if(!u||u===l)break;l=u;try{c=r.window.eval("("+l+")");break}catch(d){let h=/Identifier '([^']+)' has already been declared/.exec(d&&d.message||String(d));if(!h||h[1]!==f)break}}}return c||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \u2014 value will be left as a string. Reason: `+s+`.
13
+ First 200 chars of source: `+String(t).slice(0,200)),t)}},ie=(t,e={},r={window:{eval:Fx}})=>{if(!t||typeof t!="object")return e;let n=[[t,e]];for(;n.length;){let[o,s]=n.pop();for(let i in o){if(!Object.prototype.hasOwnProperty.call(o,i))continue;let a=o[i];if(S(a))en(a)?s[i]=tu(a,`"${i}"`,r):s[i]=a;else if(T(a)){let c=s[i]=[];for(let l=0;l<a.length;l++){let f=a[l];if(S(f))c.push(en(f)?tu(f,`array index ${l} (prop "${i}")`,r):f);else if(_(f)){let p={};c.push(p),n.push([f,p])}else c.push(f)}}else if(_(a)){let c=s[i]&&typeof s[i]=="object"&&!T(s[i])?s[i]:s[i]={};n.push([a,c])}else s[i]=a}}return e},Lx="Set",Mx="Map",Nx=t=>!t||typeof t!="object"?t:t.__type===Lx&&Array.isArray(t.values)?new Set(t.values):t.__type===Mx&&Array.isArray(t.entries)?new Map(t.entries):t,uo=t=>{if(!t||typeof t!="object")return t;let e={},r=[];for(let n of Object.keys(t)){let o=t[n];S(o)&&en(o)?r.push([n,o]):e[n]=Nx(o)}for(let[n,o]of r)try{let s=Object.keys(e).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
14
+ `);e[n]=k.eval(`(function(__gs__) { ${s}
15
+ return (${o}); })`)(e)}catch{try{e[n]=k.eval(`(${o})`)}catch{e[n]=o}}return e},ou=(t,e={verbose:!0})=>{try{return t?k.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},su=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Ii=t=>{for(let e in t)return!1;return!0},iu=t=>_(t)&&Ii(t),au=()=>Object.create(null),po=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&Ne(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},ar=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Ne(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},At=(t,e,r={},n=new WeakMap)=>{if(!N(t)||!N(e)||kt(t)||kt(e))return e;if(n.has(t))return n.get(t);n.set(t,t);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Ne(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];kt(l)?t[a]=l:N(c)&&N(l)?t[a]=At(c,l,r,n):l!==void 0&&(t[a]=l)}return t},$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 n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!$i(t[i],e[i],r))return!1}return!0},jx=new Set(["node","__ref"]),cu=(t,e,r=jx)=>{if(t===e)return!0;if(!N(t)||!N(e)||kt(t)||kt(e))return t===e;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(kt(l)||kt(f)){if(l!==f)return!1}else if(N(l)&&N(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},lu=(t,e)=>{if(e==null)return t;if(Ct(e)("string","number"))delete t[e];else if(T(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Fi=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]=Fi(t[r]));return e},fu=(t,e)=>{if(t.length===0)return e;let r={},n=r;for(let o=0;o<t.length;o++)o===t.length-1&&e?n[t[o]]=e:(n[t[o]]={},n=n[t[o]]);return r},uu=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++){if(r[e[o]]===void 0)return;r=r[e[o]]}let n=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},pu=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++)(!n[e[o]]||typeof n[e[o]]!="object")&&(n[e[o]]={}),n=n[e[o]];return n[e[e.length-1]]=r,t},du=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length;n++){if(r==null)return;r=r[e[n]]}return r},hu=t=>{let r=[],n=0;for(let o=0;o<t.length;o++)if(r.length<2)r.push(t[o]);else if(t[o]===r[o%2]?n++:(r=[t[o-1],t[o]],n=1),n>=20)return(Qf==="test"||Qf==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},gu=t=>{let e=new WeakSet;function r(n){if(n&&typeof n=="object"){if(e.has(n))return!0;e.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(t)},mu=(t,e)=>{let r=e instanceof Set?e:new Set(e),n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!r.has(o)&&(n[o]=t[o]);return n}});var ho,go,mo,yo=$(()=>{"use strict";se();ho=(function(){let t=0;function e(){return t++,t}return e})(),go=ho,mo=(t,e,r)=>(X(r,t)||r||t.key||ho()).toString()});var Kt,yu,je,Di,bu,xu,_u,Be,Su,cr,Li=$(()=>{"use strict";Kt="production",yu=Kt,je=(t=Kt)=>t==="production",Di=(t=Kt)=>t==="testing"||t==="test",bu=Di,xu=(t=Kt)=>t==="staging",_u=(t=Kt)=>t==="local",Be=(t=Kt)=>t==="development"||t==="dev"||t==="local",Su=(t,e=Kt)=>e[t],cr=(t=Kt)=>!je(t)});function bo(t,e,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||t.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,e),a&&t.apply(o,s)}}function Cu(t,e=window){let r=function(){return t.apply(e,arguments)};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var wu,ku,Bx,vu,rn,nn,Bt,lr=$(()=>{"use strict";wu=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},ku=t=>{let e={};return(...r)=>{let n=r[0];if(n in e)return e[n];{let o=t(n);return e[n]=o,o}}},Bx=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,vu=t=>Bx.test(t),rn=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},nn=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(t,e);if(typeof o=="function")return o}return t},Bt=(t,e,...r)=>{let n=e?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[t]=="function"&&(s[t](e,...r),o=!0);return o}});var Au,Eu=$(()=>{"use strict";dt();se();Au=(t,e)=>{let{__ref:r}=t,n=t.if;if(C(n)){let o;try{o=n(t,t.state,t.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?X(n,t)?r.__if=!0:delete r.__if:r.__if=!0}});var Tu,Ou,Ru=$(()=>{"use strict";Tu=(t,...e)=>{t&&e.map(r=>console.log(r))},Ou=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function Du(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 Lu(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 Pu,Iu,$u,Fu,Mu=$(()=>{"use strict";dt();Kr();Pu=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Iu=(t,e,r=365)=>{if(gt(Y)||gt(Y.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;Y.cookie=`${t}=${e};${o};path=/`},$u=t=>{if(gt(Y)||gt(Y.cookie))return;let e=`${t}=`,n=decodeURIComponent(Y.cookie).split(";");for(let o=0;o<n.length;o++){let s=n[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},Fu=t=>{gt(Y)||gt(Y.cookie)||(Y.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var on,Nu,ju,Mi=$(()=>{"use strict";on={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"])},Nu=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"]),ju=t=>on.body.has(t)});var Ni,Bu,sn,So,Et,Vu,ji,wo,Uu,ko,Bi,Vi,vo,Ui,an,Vx,ae,zu,xo,Co,Wu,_o,Hu,Gu,zi,Wi,Hi,Gi,qi,Ki,qu,Ao=$(()=>{"use strict";nr();Yi();se();dt();Ni="production",Bu=t=>t.sourcemap!==!1&&Ni!=="production",sn=t=>{if(t.includes("+"))return t.split("+").filter(ce);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!ce(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},So=(t,e,r)=>{let n=[],o=sn(r);o&&(n=[...o]);let s=t.extends;return s&&(n=T(s)?[...n,...s]:[...n,s]),n},Et=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return n.includes(t)||(n=Array.isArray(t)?[...n,...t]:[...n,t],r.__extends=n),n},Vu=(t,e)=>{if(!t)return e;let{extends:r}=e,n=T(r)?r:[r],o=T(t)?t:[t];return{...e,extends:Xr(o,n)}},ji=()=>Math.random().toString(36).substring(2),wo={},Uu={},ko=t=>wo[t.__hash],Bi=(t,e)=>{let r=ji();return S(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(wo[r]=e),e},Vi=(t,e)=>t.__hash?e.concat(ko(t)):Bi(t,e),vo=(t,e,r,n=new Set,o,s)=>{for(let i of t)T(i)?vo(i,e,r,n,o,s):an(i,e,r,n,o,void 0,s);return e},Ui=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends,c={...t};delete c.extends;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),o&&o.push(s)),a&&an(a,e,r,n,o,s,i),e},an=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(T(t))return vo(t,e,r,n,o,i);let a=s;return S(t)?(a=t,t=Co(t,r)):i&&_(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends?Ui(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},Vx=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),ae=(t,e,r,n,o)=>{e=Q(e);for(let s in e){if(Vx.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,r&&n?_(a)&&!T(a)?(r[s]=r[s]||{},zu(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(_(i)&&_(a)){let c=r?r[s]=r[s]||{}:void 0,l=o?.[s];ce(s)?t[s]=ae(i,a,c,n,l):ae(i,a,c,n,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(T(i)&&T(a))t[s]=i.concat(a);else if(T(i)&&_(a)){let c=ae({},i);t[s]=ae(c,a)}}}}return t},zu=(t,e,r,n)=>{if(n||(n=new WeakSet),!n.has(e)){n.add(e);for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=e[o];_(s)&&!T(s)?(t[o]=t[o]||{},zu(t[o],s,r,n)):t[o]=r}}},xo=(t,e,r)=>t.reduce((n,o,s)=>{let i=Q(o),a=r?r[s]:void 0;return ae(n,i,e,a)},{}),Co=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(S(t)){let i=o&&(o[t+"."+n]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(Ni==="test"||Ni==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},Wu=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),_o=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return ko(t)||[];let s=an(t,[],e,new Set,r,void 0,n);return r?s:Vi(t,s)},Hu=(t,e)=>{if(!t)return e;let r=T(t)?t:[t];return Xr(r,e)},Gu=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(ce(o)&&e.push(o),o==="extends"&&(typeof n[o]=="string"?e.push(n[o]):Array.isArray(n[o])&&(e=e.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(t),e},zi=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant;if(t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i=="string"&&s&&o?.components){let c=`${i}.${s}`;o.components[c]?Et([c,...a],t):Et(t.extends,t)}else Et(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Et(i,t):Et(t.extends,t)}else Et(t.extends,t);return Wi(t,e,r),Hi(t,e,r),Gi(t,e,r),t.component&&Et(X(t.component,t),t),o.defaultExtends&&Et(o.defaultExtends,t),Zr(n.__extends)},Wi=(t,e,r={})=>{let{__ref:n}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Et(e.childProps.extends,t),n.__extends},Hi=(t,e,r={})=>{let{__ref:n}=t,o=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Et(s,t),n.__extends},Gi=(t,e,r={})=>{let{__ref:n}=t,o=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&Et(o,t),n.__extends},qi=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=Bu(r),a=i?[...n.__extends]:null,c=Zr(n.__extends.map((l,f)=>Co(l,o,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&&_(d)&&S(h)&&l.set(d,h)}let f=[],p=_o(c,o,f,l);n.__extendsStack=p,n.__extendsNames=f}else{let l=_o(c,o);n.__extendsStack=l}return n.__extendsStack},Ki=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Bu(r)){let s={},i=n.__extendsNames||[],a=xo(o,s,i),c={};ae(t,a,c,void 0,s),n.__sourcemap=c}else{let s=xo(o);ae(t,s)}return t},qu=(t,e,r={})=>(zi(t,e,r),qi(t,e,r),Ki(t,e,r),t)});function Ku(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Yu(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Xu(t,e,r){let{context:n}=e||{},[o]=sn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var ce,Yi=$(()=>{"use strict";Ao();dt();ce=t=>{if(!S(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Zu(t,e){let{props:r,on:n}=e,o=sr(t.split("on")[1]),s=n[o],i=r[t];C(s)?n[o]=(...a)=>{if(s(...a)!==!1&&C(i))return i(...a)}:n[o]=i}var Ju=$(()=>{"use strict";Qr();dt()});function Zi(t,e={}){let r=e.cachedKeys||[];for(let n in t){let o=t[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(C(o)||o!=null&&rn(this.context))){let h=sr(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],l=_(a)||C(a),f=_(c)||C(c);if(l||f)continue;let p=n.charAt(0);if(tp.has(p)){t.props[n]=o,delete t[n],r.push(n);continue}let u=Xi.test(n)||Qu.test(n)||zx(o),d=De.has(n);!u&&!d&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function Ji(t=this,e){let r=e.cachedKeys||[];for(let n in t.props){let o=t.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=C(o)||o!=null&&rn(this.context);if(s&&i){Zu(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(tp.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=_(c)||C(c),p=_(l)||C(l),u=Xi.test(n)||Qu.test(n),d=De.has(n);(u||d||f||p)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function Qi(t=this){let e=[];return Zi.call(this,t,{cachedKeys:e}),Ji.call(this,t,{cachedKeys:e}),t}function ep(t={}){return t.on||(t.on={}),t.props||(t.props={}),Qi.call(this,t)}function ta(t,e){this.__element.update({props:t},e)}function Po(t){let e={update:ta.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Xi,Qu,tp,Ux,zx,Oo,Eo,rp,Ro,Io,$o,ea,To,np,op,ra=$(()=>{"use strict";ir();Ju();se();dt();Qr();lr();Xi=/^[A-Z]/,Qu=/^\d+$/,tp=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),Ux=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),zx=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(Ux.has(e)||Xi.test(e))return!0;return!1},Oo=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return N(n)?{...n}:(o.__propsStack.push(n),{})};Eo=t=>Ct(t)("string","number")?{inheritedString:t}:t,rp=(t,e)=>!t||!e.length?!1:e.includes(t),Ro=(t,e)=>{let{__ref:r}=t,n=r.__propsStack||[],o=e.props;if(!o)return n;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=Eo(i);n.unshift(c)}if(s){let c=Eo(s);n.unshift(c)}return n};Io=t=>{let e=new Set;return t.filter(r=>!r||Me.has(r)||e.has(r)?!1:(e.add(r),!0))},$o=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(Me.has(o))return n;for(;C(o);)o=X(o,e);return G(n,Q(o,{exclude:Me}))},{}),Po(e),e.props),ea=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Ro(t,e)]),_(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),T(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Io(o),n.__propsStack},To=(t,e)=>{let{__ref:r}=t,n=ea(t,e);n.length?$o(n,t):(r.__propsStack=[],t.props={})},np=function(t,e,r){let{__ref:n}=t;if(n.__if)To(t,e);else try{To(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return Po(t),t},op=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Ro(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=Io(s),n.__propsStack.length&&$o(n.__propsStack,e),e}});var sp,na,oa,sa,ia,ip,aa,ca,la,ap,cp=$(()=>{"use strict";Ao();yo();Yr();ra();Mi();dt();sp="production",na=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=on.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},oa=(t,e,r)=>{if(t===void 0)return(sp==="test"||sp==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Ct(t)("string","number")?na(t,e,r):C(t)?{props:t}:t},sa=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},ia=(t,e,r,n,o)=>{if(!e)return o;if(he(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},ip=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},aa=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},ca=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),la=(t,e,r)=>{let n=sa(t,e);return t.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=So(t,e,r),n.path=aa(t,e,r),n},ap=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:oa(t,e,r);if(!i)return;let a=ia(i,e,r,n,o),c=mo(i,a,r);la(i,a,c);let l=Oo(i,a,c),f=ca(i,a,c,n,o),p=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:p}}});var lp,fa,ua,pa,da,fp,ha,up,pp,dp,hp,gp=$(()=>{"use strict";nr();ir();se();dt();lp=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Ct(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},fa=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},ua=(t,e)=>{if(!t.includes("../"))return;let n=t.split("../").length-1;for(let o=0;o<n;o++){if(!e.parent)return null;e=e.parent}return e},pa=(t,e,r={})=>{let n=S(t)?t.split("/"):[t],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},da=(t,e,r={})=>{let o=t.__ref.__state;if(!ha(t))return;let s=fa(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=ua(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return pa(o,i,r)},fp=(t,e)=>{let r=t.__ref,n=da(t,e);if(n===void 0)return t.state;if(Ct(n)("object","array"))return Q(n);if(Ct(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},ha=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Ct(r)("number","string","boolean"))},up=function(t){return N(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},pp=(t,e)=>{if(!t)return e||{};let r=t.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?e||{}:{},o=o[r[i]];return n},dp=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=Q(n,Le),s={[t.key]:o},i=_(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?so(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},hp=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){G(t,e,Le);return}(o?ar:At)(t,e,Le)}});var Wx,mp,yp=$(()=>{"use strict";Wx=(t,e)=>{let r=e;for(;r;){if(r===t)return!0;r=Object.getPrototypeOf(r)}return!1},mp=(t,e)=>{let{__ref:r}=t,n=t.context||e.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=e.scope||r.root?.scope,s=n?.globalScope;if(!t.scope)o?t.scope=o:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=o||s;i&&!Wx(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var bp,ga,Ve,ma,xp,ya=$(()=>{"use strict";dt();lr();bp=(t,e)=>{let r="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},ga=(t,e,r,n,o)=>{if(t=nn(t,e),!!C(t))try{let s=t.call(e,e,r||e.state,n||e.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},Ve=(t,e,r)=>{if(!e)throw new Error("Element is required");Bt(t,e,r);let n=bp(t,e);if(n){let{state:o,context:s}=e;return ga(n,e,o,s,r)}},ma=(t,e,r,n,o,s)=>{if(t=nn(t,r),!!C(t))try{let i=t.call(r,e,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},xp=(t,e,r,n)=>{Bt(t,r,e,n);let o=bp(t,r);if(o){let{state:s,context:i}=r;return ma(o,e,r,s,i,n)}}});var _p,Fo,ba=$(()=>{"use strict";_p={},Fo={}});var kp={};F(kp,{setup:()=>Gx,supabaseAdapter:()=>wp});var Sp,Hx,Gx,xa,qx,wp,vp=$(()=>{"use strict";Sp=new Map,Hx=(t,e,r)=>`${t}|${e}|${r?"off":"on"}`,Gx=async({url:t,key:e,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let c=t||r&&`https://${r}.supabase.co`;if(!c||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let l=Hx(c,e,o===!1),f=Sp.get(l);return f||(f=await n(c,e,a),f?.auth&&Sp.set(l,f)),!f||!f.auth?null:wp(f)},xa=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},qx=(t,{limit:e,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},wp=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,schema:r,select:n,params:o,headers:s,...i})=>{let c=(r?t.schema(r):t).from(e).select(n||"*");if(c=xa(c,o),c=qx(c,i),s)try{for(let l in s)c.setHeader?c=c.setHeader(l,s[l]):t.rest&&(t.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return c},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).insert(n).select(o||"*"),update:({from:e,schema:r,data:n,params:o,select:s})=>{let a=(r?t.schema(r):t).from(e).update(n);return a=xa(a,o),a.select(s||"*")},upsert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).upsert(n).select(o||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=xa(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var Ap={};F(Ap,{restAdapter:()=>Cp,setup:()=>Yx});var Kx,ge,Yx,Cp,Ep=$(()=>{"use strict";Kx=(t,e,r)=>{let n=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${n}${e}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},ge=async(t,e)=>{let r=await globalThis.fetch(t,e),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},Yx=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return Cp(t,e,r,n)},Cp=(t,e={},r,n={})=>{let o=r?.token||null,s=f=>{let p={...e,...f};return o&&(p.Authorization=`Bearer ${o}`),p},i=f=>({...s(f),"Content-Type":"application/json"}),a=f=>({...n,...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=>{o=f},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let f=await ge(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return f.error?null:f.data},signIn:async f=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let p=await ge(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(f)}));return p.data?.token&&(o=p.data.token),p},signOut:async()=>(r?.signOutUrl&&await ge(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:f,params:p,select:u,limit:d,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let w={...p};return u&&(w.select=u),d&&(w.limit=d),h&&(w.offset=h),m&&(w.single=!0),g&&(typeof g=="string"?w.order=g:Array.isArray(g)?w.order=g.map(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):g.by&&(w.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),ge(Kx(b||t,f||"",w),a({headers:s(y)}))},rpc:({from:f,params:p,headers:u,baseUrl:d})=>ge(c(`rpc/${f}`,d),a({method:"POST",headers:i(u),body:JSON.stringify(p)})),insert:({from:f,data:p,headers:u,baseUrl:d})=>ge(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 ge(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 ge(c(g,d),a({method:"DELETE",headers:s(u)}))}}}});var Op={};F(Op,{localAdapter:()=>Tp,setup:()=>Zx});var _a,Xx,Zx,Tp,Rp=$(()=>{"use strict";_a=(t,e)=>{if(!e)return!0;for(let r in e){let n=e[r];if(n===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(t[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(t[r]>n[o])||o==="gte"&&!(t[r]>=n[o])||o==="lt"&&!(t[r]<n[o])||o==="lte"&&!(t[r]<=n[o])||o==="neq"&&t[r]===n[o]||o==="like"&&!String(t[r]).includes(n[o]))return!1}else if(t[r]!==n)return!1}return!0},Xx=(t,{order:e,limit:r,offset:n,single:o})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},Zx=async({data:t,...e})=>Tp(t,e),Tp=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!r[f])if(o)try{let 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(o)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},c=(f,p,u,d)=>{let h=n[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=>_a(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(_a(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--)_a(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)=>{n[f]||(n[f]=[]);let d=(h,g,m)=>{p&&p!=="*"&&p!==m.event||u(h,g,m)};return n[f].push(d),()=>{let h=n[f].indexOf(d);h>-1&&n[f].splice(h,1)}}}}});var mn={};F(mn,{createAdapter:()=>n_,default:()=>d_,executeFetch:()=>gn,fetchPlugin:()=>Aa,initAdapterAuth:()=>jo,parseDuration:()=>fn,queryClient:()=>p_,registerAdapter:()=>r_,resolveDb:()=>Fp});var Jx,Qx,Do,ln,Lo,ka,t_,e_,r_,n_,Fp,fn,yt,Dp,cn,o_,hn,un,pn,Mo,va,No,s_,Pp,Sa,Lp,Mp,fr,Ip,i_,$p,a_,Bo,Np,jo,Ca,It,Vt,dn,Ue,Yt,me,c_,l_,f_,wa,u_,gn,p_,Aa,d_,ze=$(()=>{"use strict";P();Jx=["select","rpc","insert","update","delete","subscribe"],Qx={supabase:()=>Promise.resolve().then(()=>(vp(),kp)),rest:()=>Promise.resolve().then(()=>(Ep(),Ap)),local:()=>Promise.resolve().then(()=>(Rp(),Op))},Do=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),ln=(()=>{if(typeof globalThis<"u"&&globalThis[Do])return globalThis[Do];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Do,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Do]}catch{}return t})(),Lo=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),ka=(()=>{if(typeof globalThis<"u"&&globalThis[Lo])return globalThis[Lo];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Lo,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Lo]}catch{}return t})(),t_=5e3,e_=t=>new Promise(e=>{if(ln[t])return e(ln[t]);let r=ka[t]||=[],n=!1,o=()=>{n||(n=!0,e(ln[t]||null))};r.push(o),setTimeout(o,t_)}),r_=(t,e)=>{ln[t]=e;let r=ka[t];if(r&&r.length){ka[t]=[];for(let n of r)n()}},n_=t=>{let e={};for(let r of Jx)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},Fp=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,n=typeof e=="string"?e:typeof t=="string"?t:null;if(!n)return null;let o=ln[n]||Qx[n];if(!o&&(o=await e_(n),!o))throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},fn=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),n=e[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},yt=new Map,Dp=new Map,cn=new Map,o_=(t,e)=>{if(t.cache?.key)return t.cache.key;let r=a_(t.params),n=`${t.from}:${t.method}:${JSON.stringify(r||"")}`;return e?`${n}:${e}`:n},hn=t=>yt.get(t)||null,un=(t,e,r)=>{let n=yt.get(t),o={data:e,error:r,time:Date.now(),stale:!1};yt.set(t,o);let s=Dp.get(t);if(s)for(let i of s)C(i)&&i(o);return o},pn=t=>{if(t){let e=yt.get(t);e&&(e.stale=!0);return}for(let[,e]of yt)e.stale=!0},Mo=t=>{if(t){yt.delete(t);return}yt.clear()},va=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)}:S(t)?{staleTime:fn(t),gcTime:3e5}:{staleTime:fn(t.stale||t.staleTime)||6e4,gcTime:fn(t.gc||t.gcTime||t.expire)||3e5,key:t.key},No=null,s_=()=>{No||(No=setInterval(()=>{let t=Date.now();for(let[e,r]of yt){let n=Dp.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&yt.delete(e)}},3e4),No.unref&&No.unref())};s_();Pp=3,Sa=t=>Math.min(1e3*2**t,3e4),Lp=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:Pp,delay:Sa}:typeof e=="number"?{count:e,delay:Sa}:{count:e.count??Pp,delay:C(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:Sa}},Mp=async(t,e)=>{let{count:r,delay:n}=e,o;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(o=i.error,s<r){let a=C(n)?n(s,o):n;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=C(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},fr={focus:new Set,online:new Set},Ip=!1,i_=()=>{if(Ip||typeof window>"u")return;Ip=!0;let t=()=>{for(let r of fr.focus)r()},e=()=>{for(let r of fr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},$p=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(S(t))return{from:t,method:"select",query:!0,on:"create"};if(_(t)){let n={...t};return n.from=n.from||r.__state||e.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},a_=t=>(!t||C(t),t),Bo=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},Np=(t,e,r)=>{let n;if(!t)n=void 0;else if(C(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=C(s)?s(e,e.state):s}}return n},jo=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(n,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await t.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Ca=async(t,e)=>{if(C(t.select))return t.auth!==!1&&await jo(t,e),t;if(t.__resolved)return t.auth!==!1&&await jo(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=Fp(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 jo(r,e),r):null},It=(t,e,...r)=>{let n=C(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},Vt=(t,e,r,...n)=>{let o=t&&C(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},dn=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())e[s]=i;return e}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},Ue=(t,e,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=r.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&i in e?s.update(e,{preventFetch:!0,...n}):s.update({[i]:e},{preventFetch:!0,...n})}else{let i=r?{[r]:e}:e;s.update(i,{preventFetch:!0,...n})}},Yt=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},me=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||!e||!e.__ref||t.enabled===!1||C(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||C(t.skip)&&t.skip(e,e.state))return;let s=await Ca(o,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:w,headers:x,baseUrl:v,page:A,cursor:R,getNextPageParam:W,getPreviousPageParam:O,infinite:L,placeholderData:V,initialData:J,select:M,keepPreviousData:I}=t,H=S(M)?M:void 0;if(l&&C(e.getQuery)){let K=e.getQuery(s.name||"paths");K&&(H=K.select||K.length&&K.join(",")||H)}let q=Np(f,e,r),at=va(p),Wr=Lp(t),yi=Bo(e,r),px=yi?`:${yi}`:"",nt=at?p?.key||`${a}:${c}:${JSON.stringify(q||"")}${L?":infinite":""}${A?":p"+JSON.stringify(A):""}${px}`:null;if(!i.__fetchInitialized&&nt&&(i.__fetchInitialized=!0,J!==void 0)){let K=C(J)?J():J;un(nt,K,null)}if((c==="select"||c==="rpc")&&nt&&at){let K=hn(nt);if(K&&!K.error){let U=Date.now()-K.time,rt=K.stale||U>(at.staleTime||0),B=K.data;if(C(M)&&(B=M(B,e,e.state)),u&&(B=u(B,e,e.state)),Ue(e,B,m),!rt){Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(V!==void 0){let U=C(V)?V(e,e.state):V;U!==void 0&&Ue(e,U,m)}}if(nt&&cn.has(nt)&&!n.force){let K=cn.get(nt);try{let U=await Promise.race([K,new Promise((rt,B)=>setTimeout(()=>B("DEDUP_TIMEOUT"),15e3))]);if(U?.data!==void 0){let rt=U.data;C(M)&&(rt=M(rt,e,e.state)),u&&(rt=u(rt,e,e.state)),Ue(e,rt,m),It(e,"onFetchComplete",rt),Vt(t,e,"onFetchComplete",rt)}}catch{}return}let dx=!hn(nt)?.data;Yt(e,{isFetching:!0,isLoading:dx,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),It(e,"onFetchStart"),Vt(t,e,"onFetchStart");let re=r?.analyze?.emitNetwork,bi=re?typeof performance<"u"?performance.now():Date.now():0;re&&re({phase:"start",mode:"query",from:a,method:c,cacheKey:nt,lang:yi});let Af=Mp(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let B=await s.getSession();if(h===!0&&!B){let mt={message:"Not authenticated"};return Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:mt,status:"error",fetchStatus:"idle"}),It(e,"onFetchError",mt),Vt(t,e,"onFetchError",mt),{data:null,error:mt}}}let K=s[c];if(!C(K))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let U={from:a,select:H,params:q,single:d,limit:y,offset:b,order:w,headers:x,baseUrl:v},rt=Bo(e,r);if(rt&&(U.headers={...U.headers,"Accept-Language":rt}),A!==void 0){if(_(A))A.offset!==void 0&&(U.offset=A.offset),A.limit!==void 0&&(U.limit=A.limit),A.cursor!==void 0&&(U.params={...U.params,cursor:A.cursor});else if(typeof A=="number"){let B=t.pageSize||y||20;U.offset=(A-1)*B,U.limit=B}}if(R!==void 0&&(U.params={...U.params,cursor:R}),c==="insert"||c==="update"||c==="upsert"){let B;if(g===!0||t.on==="submit")B=dn(e);else if(T(g)){let mt=dn(e);B={};for(let xi of g)B[xi]=mt[xi]}else e.state?.parse?B=e.state.parse():_(e.state)&&(B={...e.state});u&&(B=u(B,e,e.state)),U.data=B}if(c==="rpc"){let B=q;if(t.on==="submit"){let mt=dn(e);B=t.transformParams?t.transformParams(mt,e,e.state):mt}U.params=B}if(c==="subscribe"){let B=s.subscribe({from:a,params:q,on:t.subscribeOn},(mt,xi,vv)=>{Ue(e,mt,m),It(e,"onFetchComplete",mt),Vt(t,e,"onFetchComplete",mt)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return K(U)},Wr);nt&&cn.set(nt,Af);try{let K=await Af;if(K?.subscribed)return;let{data:U,error:rt}=K||{};if(rt){nt&&un(nt,null,rt),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:rt,status:"error",fetchStatus:"idle"}),It(e,"onFetchError",rt),Vt(t,e,"onFetchError",rt),re&&re({phase:"error",mode:"query",from:a,method:c,cacheKey:nt,error:rt.message||rt,durationMs:(typeof performance<"u"?performance.now():Date.now())-bi});return}if(U!==void 0){if((c==="select"||c==="rpc")&&nt){let mt=un(nt,U,null);mt.gcTime=at?.gcTime||3e5}let B=U;L&&T(U)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(U):i.__pages.push(U),B=i.__pages.flat(),W&&(i.__nextPageParam=W(U,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),O&&(i.__prevPageParam=O(U,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),C(M)&&(B=M(B,e,e.state)),u&&(B=u(B,e,e.state)),(!I||B!==void 0)&&Ue(e,B,m),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),It(e,"onFetchComplete",B),Vt(t,e,"onFetchComplete",B),re&&re({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:nt,durationMs:(typeof performance<"u"?performance.now():Date.now())-bi})}}catch(K){Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:K,status:"error",fetchStatus:"idle"}),It(e,"onFetchError",K),Vt(t,e,"onFetchError",K),re&&re({phase:"error",mode:"query",from:a,method:c,cacheKey:nt,error:K.message||String(K),durationMs:(typeof performance<"u"?performance.now():Date.now())-bi})}finally{nt&&cn.delete(nt)}},c_=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||me;if(n==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(t,e,r))},l_=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),i_();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:fn(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&me(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Bo(e,r),a=o_(t,i),c=hn(a),l=va(t.cache);(!c||c.stale||Date.now()-c.time>(l?.staleTime||0))&&me(t,e,r,{force:!0})};fr.focus.add(s),n.__fetchCleanups.push(()=>fr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>me(t,e,r,{force:!0});fr.online.add(s),n.__fetchCleanups.push(()=>fr.online.delete(s))}},f_=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():_(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=C(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Ue(t,i,o),s},wa=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Ue(t,n,e.as),delete r.__optimisticSnapshot)},u_=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await Ca(n,r);if(!o)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:w,onSettled:x}=t,v;if(c===!0||p==="submit")v=dn(e);else if(T(c)){let O=dn(e);v={};for(let L of c)v[L]=O[L]}else e.state?.parse?v=e.state.parse():_(e.state)&&(v={...e.state});l&&(v=l(v,e,e.state)),C(y)&&y(v,e,e.state);let A=m?f_(e,t,v):null;s.__fetching=!0,Yt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),It(e,"onFetchStart"),Vt(t,e,"onFetchStart");let R=r?.analyze?.emitNetwork,W=R?typeof performance<"u"?performance.now():Date.now():0;R&&R({phase:"start",mode:"mutation",from:a,method:i});try{if(u!==!1&&o.auth!==!1&&o.getSession){let q=await o.getSession();if(u===!0&&!q){A!==void 0&&wa(e,t);let at={message:"Not authenticated"};It(e,"onFetchError",at),Vt(t,e,"onFetchError",at);return}}let O=o[i];if(!C(O))return;let L={from:a,data:v,headers:d,baseUrl:h};t.params&&(L.params=Np(t.params,e,r));let V=Bo(e,r);V&&(L.headers={...L.headers,"Accept-Language":V});let J=Lp(t),M=await Mp(()=>O(L),J),{data:I,error:H}=M||{};if(H){A!==void 0&&wa(e,t),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:H,status:"error",fetchStatus:"idle"}),It(e,"onFetchError",H),C(w)&&w(H,v,e),C(x)&&x(null,H,v,e),R&&R({phase:"error",mode:"mutation",from:a,method:i,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-W});return}if(delete s.__optimisticSnapshot,I!==void 0){let q=f?{[f]:I}:I;e.state?.update&&e.state.update(q,{preventFetch:!0})}if(Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),It(e,"onFetchComplete",I),Vt(t,e,"onFetchComplete",I),C(b)&&b(I,v,e),C(x)&&x(I,null,v,e),R&&R({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-W}),g){let q=T(g)?g:[g];for(let at of q)if(at===!0||at==="*")for(let[Wr]of yt)Wr.startsWith(a+":")&&pn(Wr);else pn(at)}}catch(O){A!==void 0&&wa(e,t),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:O,status:"error",fetchStatus:"idle"}),It(e,"onFetchError",O),Vt(t,e,"onFetchError",O),C(w)&&w(O,v,e),C(x)&&x(null,O,v,e),R&&R({phase:"error",mode:"mutation",from:a,method:i,error:O.message||String(O),durationMs:(typeof performance<"u"?performance.now():Date.now())-W})}finally{s.__fetching=!1}},gn=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=X(t,e);if(!s)return;let i=T(s)?s.map(c=>$p(X(c,e),e)).filter(Boolean):[$p(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?u_:me;c.on==="create"?f(c,e,n):Promise.resolve().then(()=>{c_({...c,__runner:f},e,n)}),!l&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&l_(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let l of i)me(l,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__nextPageParam;if(l==null)return;let f={...c,cursor:l};me(f,e,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__prevPageParam;if(l==null)return;let f={...c,cursor:l};me(f,e,n,{direction:"previous",force:!0})}},p_={invalidateQueries:t=>{if(!t){pn();return}if(S(t))for(let[e]of yt)(e.startsWith(t)||e.includes(t))&&pn(e);else if(T(t)){let e=t.join(":");for(let[r]of yt)r.includes(e)&&pn(r)}},removeQueries:t=>{if(!t){Mo();return}if(S(t))for(let[e]of yt)(e.startsWith(t)||e.includes(t))&&Mo(e)},getQueryData:t=>hn(t)?.data??void 0,setQueryData:(t,e)=>{let r=hn(t),n=C(e)?e(r?.data):e;un(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await Ca(r,e);if(!n)return;let o=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=n[t.method||"select"];if(!C(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let a=un(o,i.data,null);a.gcTime=va(t.cache)?.gcTime||3e5}return i},getCache:()=>yt,clear:()=>Mo(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of yt)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||Mo(r))}},Aa={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||cn.clear(),gn(e,t,t.state,t.context))}},d_=gn});function Uo(t){let e=this,{__ref:r}=e,n=[].concat(t),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",e.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function Bp(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 Vp(t){let e=this,{__ref:r}=e,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=e[s];if(s===t)return i;if(C(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function Up(t,e=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===t)e.push(a);else if(C(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function Ta(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];if(_(n)&&o)Ta.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function zp(t){let e=this;if(Ve("beforeRemove",e,t)===!1)return e;C(e.node.remove)?e.node.remove():je()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=oo(e.parent.__ref.__children,e.key)),Ve("remove",e,t)}function Wp(t){return this[t]}function Hp(t,e){let r=this;if(t)return r.update(t,e),r}function Gp(t){return t?this.__ref&&this.__ref[t]:this.__ref}function zo(){return this.getRef("__children").map(e=>this[e])}function Wo(){return this.getRef().path}function Go(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=jp();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=C(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=jp()),t?e?.[t]:e}function qo(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function Ko(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Yo(t){let e=this.getRoot()?.context;return t?e[t]:e}function Xo(t){let e=this.context;return t?e[t]:e}function Oa(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||De.has(r)&&!ao.has(r)||e.push(r);return e}function Ra(t=[]){let e=this,r={},n=Oa.call(e),o=n.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=C(c&&c.parse)?c.parse():c;r[a]=C(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...p}=e[a];r[a]=p}else vt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Vo(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=Ra.call(r,t),o=t.length?new Set(t):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>N(a)?Vo.call(a,t,e):a):N(i)&&(n[s]=Vo.call(i,t,e))}return n}function yn(...t){if(ye!=="test"&&ye!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
16
+ `,"font-weight: bold",e[n])):(console.log(r.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function Yp(...t){(ye==="test"||ye==="development")&&console.log(...t)}function Zo(...t){(ye==="test"||ye==="development")&&console.warn(...t)}function ur(...t){if(ye==="test"||ye==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&yn.call(this),new Error(...t)}}function Jo(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function Qo(t){let e=t||this,{key:r,parent:n}=e,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function ts(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,n={},o;for(let s in t)t[s]!==r[s]&&(o=!0,n[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(n,Q(r));for(let a in n)r[a]=n[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(n),clearTimeout(a)},i)}}}function Xp(t,...e){let r=this.context,n=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(n)try{let o=n.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{ur.call(this,s)}),o}catch(o){if(ur.call(this,o),r?.strictMode)throw o}}async function es(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ze(),mn));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ze(),mn));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(ze(),mn)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.fetch=n,delete e.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ze(),mn));await o(n,t.context)}return n}function rs(t){let e=this,r=t||Fo.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(Ea(e,n),r===!0)return n;let o=S_[r];return o?o(n):n}function Jp(t,e){return!!(tn.has(t)||e?.context?.methods?.[t])}var ye,qp,Ho,jp,Kp,Ea,h_,Zp,g_,m_,y_,b_,x_,__,S_,Qp=$(()=>{"use strict";ya();ir();dt();se();Li();nr();ba();ye="production";qp=null,Ho=t=>{qp=t||null},jp=()=>qp||null;Kp=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});Ea=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&h_(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&Ea(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&Ea(i,e)},h_=(t,e)=>{let n=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;for(let s=0;s<n.length;s++){let i=n[s];s===n.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},Zp=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
17
+ ${Zp(i,e+1)}
18
18
  ${r}}`).join(`
19
- `):""},h_=e=>`{
20
- ${Zp(e,1)}
21
- }`,m_=e=>{let t={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;t.include.push(a),r(n[i],a)}s.length&&(t.fields[o||"_root"]=s)};return r(e,""),t},g_=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:n}=t(e),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},y_=(e,t)=>{let r=[],n=[],o=new Set,s=(f,p,u)=>{o.add(p),u&&n.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=[...o][0]||"_root",c=r.length?r.join(", "):"*",l=n.length?`
19
+ `):""},g_=t=>`{
20
+ ${Zp(t,1)}
21
+ }`,m_=t=>{let e={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),r(n[i],a)}s.length&&(e.fields[o||"_root"]=s)};return r(t,""),e},y_=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=e(t),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},b_=(t,e)=>{let r=[],n=[],o=new Set,s=(f,p,u)=>{o.add(p),u&&n.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=[...o][0]||"_root",c=r.length?r.join(", "):"*",l=n.length?`
22
22
  `+n.join(`
23
23
  `):"";return`SELECT ${c}
24
- FROM ${a}${l}`},b_=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?t.push(i):r(n[s],i)}};return r(e,""),t},x_=e=>{let t=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${t(n[s])})`);return o.join(", ")},r=Object.keys(e);return r.length===1&&e[r[0]]!==!0?{from:r[0],select:t(e[r[0]])}:{from:null,select:t(e)}},__={graphql:h_,"json-api":m_,odata:g_,sql:y_,supabase:x_,paths:b_}});var S_,ed,td=$(()=>{"use strict";yo();S_={snapshotId:mo},ed=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let a=S_.snapshotId();return r.__currentSnapshot=a,[a,e]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var Pa,rd,nd=$(()=>{Pa=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),rd=e=>typeof e=="string"&&Pa.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 sd=$(()=>{"use strict"});function w_(e){return/^[0-9.]+$/.test(e)&&e!==""}var Ye,Wt,bn,Ze,id,ad=$(()=>{"use strict";Ye={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${Ye.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${Ye.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${Ye.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${Ye.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!w_(t)?`${Ye.symbols.url}/${e}`:`${Ye.symbols.url}/${e}/${t}.js`}},Wt={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},bn=(e={})=>{let{packageManager:t}=e;return Wt[t]||null},Ze=(e,t="latest",r="esmsh")=>(Ye[r]||Ye.esmsh).formatUrl(e,t),id=(e,t="skypack")=>{let r=e.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=Ze(s,i,t)}return`<script type="importmap">{
24
+ FROM ${a}${l}`},x_=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?e.push(i):r(n[s],i)}};return r(t,""),e},__=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},S_={graphql:g_,"json-api":m_,odata:y_,sql:b_,supabase:__,paths:x_}});var w_,td,ed=$(()=>{"use strict";yo();w_={snapshotId:go},td=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=w_.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var Pa,rd,nd=$(()=>{Pa=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),rd=t=>typeof t=="string"&&Pa.has(t)});async function od(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 sd=$(()=>{"use strict"});function k_(t){return/^[0-9.]+$/.test(t)&&t!==""}var Xt,We,bn,Zt,id,ad=$(()=>{"use strict";Xt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${Xt.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${Xt.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${Xt.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${Xt.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!k_(e)?`${Xt.symbols.url}/${t}`:`${Xt.symbols.url}/${t}/${e}.js`}},We={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},bn=(t={})=>{let{packageManager:e}=t;return We[e]||null},Zt=(t,e="latest",r="esmsh")=>(Xt[r]||Xt.esmsh).formatUrl(t,e),id=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=Zt(s,i,e)}return`<script type="importmap">{
25
25
  "imports": ${JSON.stringify(o,null,2)}
26
- }<\/script>`}});var cd,ld=$(()=>{"use strict";cd=e=>{if(!e)return"";let t=new Date(e),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),n=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)} ${n}, ${r}`}});var fd,ud=$(()=>{"use strict";fd=(e,t)=>{let r=setTimeout(()=>{let{props:n}=e;if(!t.clientHeight){let{node:{clientHeight:o}}=e;o&&(t.clientHeight=o)}if(t.active){if(n.height==="auto")return;e.update({height:t.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{e.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else e.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var pd,dd=$(()=>{"use strict";pd=function(t){let r=[0,1];for(let n=2;n<=t;n++)r[n]=r[n-1]+r[n-2];return r[t]}});var hd,md=$(()=>{"use strict";hd=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function xn(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${e}"]`);if(i)return o(i);let a=n.createElement("script");a.src=e,a.async=t.async===!0,a.type=t.type||"text/javascript",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${e}`))},n.head.appendChild(a)})}async function Sd(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${e}"]`);if(i)return o(i);let a=n.createElement("link");a.href=e,a.rel=t.rel||"stylesheet",a.type="text/css",a.media=t.media||"all",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${e}`))},n.head.appendChild(a)})}var gd,yd,bd,xd,_d,wd=$(()=>{"use strict";gd=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=t,i.src=e,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${e}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),yd=(e,t=document,r="text/javascript")=>new Promise((n,o)=>{let s=t.createElement("script");s.type=r,s.src=e;let i=t.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",t.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${e}`),t.body.removeChild(i),n()},s.onerror=()=>{t.body.removeChild(i),o(new Error(`Failed to load: ${e}`))},t.body.appendChild(s)}),bd=(e,t=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",e,!1),o.send(),o.status===200){let s=t.createElement("script");s.type=n,s.text=o.responseText,t.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${e}`)},xd=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=e,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),_d=(e,t=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=t,s.id=o,s.innerHTML=e,r.body.appendChild(s)}catch(s){console.warn(s)}}});function C_(e,t){if(!t||typeof t!="object")return e;let r=o=>{if(!v_(o))return o;let s=t[o];return s?.src?s.src:o},n={...e};for(let[o,s]of Object.entries(n))typeof s=="string"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i=="string"?r(i):i));return n}function ns(e,t){if(!e||!t)return;let r=t.split("."),n=e;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function A_(e,t,r){let o=(t.config||t.settings||{}).polyglot||t.polyglot,s=r?.lang||o?.defaultLang||"en",a=(o?.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,m)=>{let h=d.trim();if(m==="polyglot")return a[h]??ns(a,h)??u;if(m==="getLocalStateLang")return ns(c,h+s)??u;let g=ns(c,h);return g!==void 0?g:a[h]??ns(a,h)??u}));return l}function kd(e){let t={...e};for(let[r,n]of Object.entries(t))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){t[r]=`{{ ${a[1]} }}`;continue}delete t[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){t[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){t[r]=`{{ ${i[1]} }}`;continue}}}return t}function Cd(e,t,r,{isProduction:n=!1,channel:o="production"}={}){let s=e.pages?.[t],i=S(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},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 h=e.name||e.key;h?n?u.title=h:o==="development"?u.title=`${h} / dev:symbo.ls`:o==="staging"?u.title=`${h} / staging:symbo.ls`:u.title=`${h} / symbo.ls`:u.title="Symbols demo"}u=A_(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 h=(u["og:url"]||u.url||"").replace(/\/$/,"");if(h&&d&&d!=="/"){let g=d.startsWith("/")?d:"/"+d;u["og:url"]=h+g}}u=C_(u,e.files);let m=e.name||e.app?.metadata?.title||e.app?.name||"";for(let[h,g]of Object.entries(u))if(typeof g=="string"&&g.includes("{{")){let y=g.replace(/\{\{[^}]*\}\}/g,"").trim();y?u[h]=y:h==="title"?u[h]=m:delete u[h]}return u}var $e,k_,vd,v_,Ad=$(()=>{"use strict";de();$e=e=>{if(e==null)return"";let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.toString().replace(/[&<>"']/g,r=>t[r])},k_=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${$e(r)}"`).join(" "),vd=(e,t)=>(t||(e={...e,robots:"noindex"}),Object.entries(e).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${$e(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${$e(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${$e(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="string")n.push(`<link rel="icon" href="${$e(f)}">`);else if(typeof f=="object"){let p=k_(f);/rel=/.test(p)?n.push(`<link ${p}>`):n.push(`<link rel="icon" ${p}>`)}}),n;if(o==="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}="${$e(d)}"`).join(" ");n.push(`<link rel="alternate" ${p}>`)}}),n;let i=(l,f,p="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${p}="${$e(l)}" content="${$e(f)}">`);else if(Array.isArray(f))f.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")n.push(`<meta ${p}="${$e(l)}" content="${$e(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([m,h])=>h!==void 0).map(([m,h])=>`${m}="${$e(h)}"`).join(" ");n.push(`<meta ${d}>`)}});else if(typeof f=="object"){let u=Object.entries(f).filter(([d,m])=>m!==void 0).map(([d,m])=>`${d}="${$e(m)}"`).join(" ");n.push(`<meta ${u}>`)}};if(o.startsWith("http-equiv:")){let l=o.replace("http-equiv:","");return i(l,s,"http-equiv"),n}if(o.startsWith("itemprop:")){let l=o.replace("itemprop:","");return i(l,s,"itemprop"),n}let c=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(l=>o.startsWith(l));if(c){let l=o.replace(c,"");return i(`${c.replace(":","")}:${l}`,s,c==="twitter:"||c==="DC:"||c==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let l=o.startsWith("apple:")?"apple-":"msapplication-",f=o.replace(/^apple:|^msapplication:/,"");return i(`${l}${f}`,s,"name"),n}return i(o,s),n},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
27
- `)),v_=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")});var Ia,Ed,Td=$(()=>{"use strict";de();Ia=(e,t)=>(T(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Ed=(e,t)=>(e=parseFloat(e),S(t)&&(t=Object.values(t)),Ia(e,t))});function _n(e){let t=String(e||"").trim();if(!t)return{owner:Od,key:"",full:""};let r=null,n=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=Od);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function $a(e,t={}){if((t.provider||"kv")==="api")return Rd(e,t);let n=await O_(e,t);return n||Rd(e,t)}async function O_(e,t={}){let r=t.kvBaseUrl||E_,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function Rd(e,t={}){let r=t.apiBaseUrl||T_,{key:n}=_n(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(d=>{let{key:m}=_n(d?.key);return m.toLowerCase()===n.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,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 Pd(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async n=>{if(S(n))return n;if(w(n)){let{full:o}=_n(n);if(!o)return null;try{let s=await $a(o,t);return s||console.warn(`[smbls] Shared library "${o}" not found`),s}catch(s){return console.warn(`[smbls] Failed to fetch shared library "${o}":`,s.message),null}}return null}))).filter(Boolean)}var Od,E_,T_,os,ss,Id=$(()=>{"use strict";de();Od="system",E_="https://smbls-kv.nika-980.workers.dev",T_="https://api.symbols.app";os=(e,t)=>{for(let r in t)r in e?S(e[r])&&S(t[r])&&os(e[r],t[r]):e[r]=t[r]},ss=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(S(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(S(n[o])&&S(e[o]))if(o==="designSystem")os(e[o],n[o]);else for(let s in n[o])s in e[o]||(e[o][s]=n[o][s]);else o in e||(e[o]=n[o])}}}});var $d,Fd,Dd,is,Ld,as,Nd,pr,Md=$(()=>{"use strict";de();$d=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},Fd=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)}},Dd=e=>e.replace(/[^a-zA-Z0-9_]/g,""),is=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,"")),Ld=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),as=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Nd=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},pr=e=>{if(T(e))return e;if(w(e))return e.split(" ");if(S(e))return Object.values(e);if(ot(e))return[e]}});var jd,Bd=$(()=>{"use strict";jd=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}});var Te,Sn,cs,ls,Vd=$(()=>{"use strict";Te=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},Sn=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},cs=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return Sn(t,{keepOneX:!1})},ls=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,c]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:Sn(c,{keepOneX:!0})}});let o=r.get(e.type)||[],s=Sn(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var Ud={};F(Ud,{CDN_PROVIDERS:()=>Ye,DOMQL_EVENTS:()=>Jf,DOMQ_PROPERTIES:()=>Dt,ENV:()=>yu,HTML_TAGS:()=>on,METHODS:()=>en,METHODS_EXL:()=>co,NODE_ENV:()=>Ke,OPTIONS:()=>Fo,PACKAGE_MANAGER_TO_CDN:()=>Wt,PARSED_DOMQ_PROPERTIES:()=>ao,PROPS_METHODS:()=>Nt,STATE_METHODS:()=>Lt,STATE_PROPERTIES:()=>Zf,SVG_TAGS:()=>Mu,TYPES:()=>ro,UNIVERSAL_RESERVED_KEYS:()=>Pa,addCaching:()=>la,addContext:()=>ca,addExtend:()=>Hu,addExtends:()=>Ee,addItemAfterEveryElement:()=>Mf,addProtoToArray:()=>so,addRef:()=>sa,applyDependentState:()=>dp,applyEvent:()=>ma,applyEventUpdate:()=>ga,applyExtends:()=>qu,applyProps:()=>To,arrayContainsOtherArray:()=>Pf,arraysEqual:()=>Bf,arrayzeValue:()=>pr,buildImgSrcset:()=>cs,buildSourcesAndImg:()=>ls,cache:()=>_p,call:()=>Yp,captureSnapshot:()=>ed,checkForStateTypes:()=>lp,checkIfInherits:()=>ha,checkIfStringIsInArray:()=>zf,clone:()=>nu,cloneAndMergeArrayExtend:()=>xo,cloneFunction:()=>Cu,concatAddExtends:()=>Vu,copyJavaScriptToClipboard:()=>Fd,copyStringToClipboard:()=>$d,createBasedOnType:()=>oa,createElement:()=>ap,createElementExtends:()=>zi,createExtends:()=>So,createExtendsFromKeys:()=>sn,createExtendsStack:()=>qi,createIfConditionFlag:()=>Au,createInheritedState:()=>fp,createKey:()=>go,createNestedObject:()=>fu,createNestedObjectByKeyPath:()=>pp,createObjectWithoutPrototype:()=>Fi,createParent:()=>ia,createPath:()=>aa,createProps:()=>Oo,createPropsStack:()=>ta,createRoot:()=>ip,createScope:()=>gp,createSnapshotId:()=>mo,customDecodeURIComponent:()=>Yf,customEncodeURIComponent:()=>Xf,cutArrayAfterValue:()=>Lf,cutArrayBeforeValue:()=>Df,debounce:()=>bo,debounceOnContext:()=>wu,decodeNewlines:()=>Kf,deepClone:()=>J,deepContains:()=>cu,deepDefaults:()=>os,deepDestringifyFunctions:()=>it,deepExtend:()=>Ui,deepMerge:()=>G,deepMergeExtends:()=>at,deepStringifyFunctions:()=>lo,defineSetter:()=>Kp,destringifyGlobalScope:()=>uo,detectHeightOnInit:()=>fd,detectInfiniteLoop:()=>hu,document:()=>X,encodeNewlines:()=>qf,error:()=>ur,excludeKeysFromObject:()=>gu,exec:()=>Y,extendCachedRegistry:()=>Uu,extendStackRegistry:()=>wo,extractArrayExtend:()=>vo,fetchLibraryData:()=>$a,fibonacciNumberByIndex:()=>pd,filterArrays:()=>Vf,filterArraysFast:()=>Uf,finalizeExtends:()=>Ki,findClosestNumber:()=>Ia,findClosestNumberInFactory:()=>Ed,findInheritedState:()=>da,findKeyPosition:()=>Hf,flattenExtend:()=>an,formatDate:()=>cd,generateHash:()=>ji,generateKey:()=>ho,generateMetaTags:()=>vd,get:()=>Wp,getCDNUrl:()=>Ze,getCapitalCaseKeys:()=>Ku,getCdnProviderFromConfig:()=>bn,getChildStateInKey:()=>pa,getChildren:()=>zo,getContext:()=>Yo,getCookie:()=>$u,getDB:()=>ts,getEmotionStylesheet:()=>jd,getExtendsInElement:()=>Gu,getExtendsStack:()=>_o,getExtendsStackRegistry:()=>Vi,getFrequencyInArray:()=>If,getHashedExtend:()=>ko,getImportMapScript:()=>id,getInObjectByPath:()=>du,getLocalStorage:()=>Du,getNev:()=>Su,getPageMetadata:()=>Cd,getParentStateInKey:()=>ua,getPath:()=>Wo,getQuery:()=>rs,getRef:()=>Gp,getRoot:()=>qo,getRootContext:()=>Xo,getRootData:()=>Ko,getRootState:()=>Go,getRootStateInKey:()=>fa,getSpreadChildren:()=>Xu,global:()=>Tf,hasFunction:()=>tn,hasHandlerPlugin:()=>rn,hasOwnProperty:()=>su,inheritChildExtends:()=>Hi,inheritChildPropsExtends:()=>Wi,inheritParentProps:()=>Ro,inheritRecursiveChildExtends:()=>Gi,initProps:()=>np,is:()=>Ce,isArray:()=>T,isBoolean:()=>Oi,isContextComponent:()=>Yu,isCyclic:()=>mu,isDOMNode:()=>ke,isDate:()=>Pi,isDefined:()=>ve,isDevelopment:()=>Bt,isEmpty:()=>Ii,isEmptyObject:()=>iu,isEqualDeep:()=>$i,isFunction:()=>v,isHtmlElement:()=>to,isLocal:()=>_u,isMethod:()=>Jp,isMobile:()=>Pu,isNode:()=>ht,isNot:()=>Rf,isNotProduction:()=>cr,isNull:()=>Ri,isNumber:()=>ot,isObject:()=>S,isObjectLike:()=>L,isPhoto:()=>hd,isProduction:()=>jt,isStaging:()=>xu,isState:()=>up,isString:()=>w,isStringFunction:()=>vu,isTest:()=>Di,isTesting:()=>bu,isUndefined:()=>me,isUniversallyReservedKey:()=>rd,isValidHtmlTag:()=>ju,joinArrays:()=>Yr,jointStacks:()=>Wu,keys:()=>Oa,loadCssFile:()=>xd,loadJavascript:()=>_d,loadJavascriptFile:()=>gd,loadJavascriptFileEmbedSync:()=>bd,loadJavascriptFileSync:()=>yd,loadRemoteCSS:()=>Sd,loadRemoteScript:()=>xn,log:()=>Xp,logGroupIf:()=>Ou,logIf:()=>Tu,lookdown:()=>Vp,lookdownAll:()=>Up,lookup:()=>Bp,lowercaseFirstLetter:()=>sr,makeObjectWithoutPrototype:()=>au,map:()=>tu,mapStringsWithContextComponents:()=>Co,matchesComponentNaming:()=>ct,memoize:()=>ku,merge:()=>ee,mergeSharedLibraries:()=>ss,nextElement:()=>Jo,normalizeLibraryKey:()=>_n,objectToString:()=>fo,objectizeStringProperty:()=>Eo,overwrite:()=>po,overwriteDeep:()=>Ae,overwriteShallow:()=>ar,overwriteState:()=>hp,parse:()=>Ra,parseDeep:()=>Vo,pickupElementFromProps:()=>Ji,pickupPropsFromElement:()=>Zi,previousElement:()=>Qo,propExists:()=>rp,propertizeElement:()=>Qi,propertizeUpdate:()=>tp,remove:()=>zp,removeChars:()=>Dd,removeCookie:()=>Fu,removeDuplicateProps:()=>Io,removeDuplicatesInArray:()=>Zr,removeFromArray:()=>$f,removeFromObject:()=>lu,removeNestedKeyByPath:()=>uu,removeValueFromArray:()=>oo,removeValueFromArrayAll:()=>Nf,reorderArrayByValues:()=>jf,replaceLiteralsWithObjectFields:()=>or,replaceOctalEscapeSequences:()=>Gf,resolveAsset:()=>Te,resolveHandler:()=>nn,resolveSharedLibraries:()=>Pd,returnValueAsText:()=>na,runPluginHook:()=>Be,self:()=>Of,setActiveRootState:()=>Ho,setCookie:()=>Iu,setHashedExtend:()=>Bi,setInObjectByPath:()=>pu,setLocalStorage:()=>Lu,setNodeStyles:()=>Ta,setProps:()=>Hp,setPropsPrototype:()=>Po,spotByPath:()=>Uo,srcsetFor:()=>Sn,stringIncludesAny:()=>io,stringToObject:()=>ou,swapItemsInArray:()=>Ff,syncProps:()=>$o,toCamelCase:()=>is,toDashCase:()=>as,toDescriptionCase:()=>Nd,toTitleCase:()=>Ld,toggleFullscreen:()=>od,triggerEventOn:()=>Vt,triggerEventOnUpdate:()=>xp,trimStringFromSymbols:()=>Wf,unstackArrayOfObjects:()=>no,update:()=>ea,updateProps:()=>op,variables:()=>es,verbose:()=>yn,warn:()=>Zo,window:()=>k});var R=$(()=>{"use strict";yo();Li();de();st();lr();nr();Xr();Eu();Ru();Qr();Kr();Nu();Ni();Xi();ra();Ao();cp();mp();ir();yp();Qp();ba();td();ya();nd();sd();ad();ld();ud();dd();md();wd();Ad();Td();Id();Md();Bd();Vd()});var Bb=Si((FF,jb)=>{var Mr=1e3,jr=Mr*60,Br=jr*60,er=Br*24,Vk=er*7,Uk=er*365.25;jb.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return zk(e);if(r==="number"&&isFinite(e))return t.long?Hk(e):Wk(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function zk(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Uk;case"weeks":case"week":case"w":return r*Vk;case"days":case"day":case"d":return r*er;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Br;case"minutes":case"minute":case"mins":case"min":case"m":return r*jr;case"seconds":case"second":case"secs":case"sec":case"s":return r*Mr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Wk(e){var t=Math.abs(e);return t>=er?Math.round(e/er)+"d":t>=Br?Math.round(e/Br)+"h":t>=jr?Math.round(e/jr)+"m":t>=Mr?Math.round(e/Mr)+"s":e+"ms"}function Hk(e){var t=Math.abs(e);return t>=er?di(e,t,er,"day"):t>=Br?di(e,t,Br,"hour"):t>=jr?di(e,t,jr,"minute"):t>=Mr?di(e,t,Mr,"second"):e+" ms"}function di(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var Ub=Si((DF,Vb)=>{function Gk(e){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=Bb(),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,m;function h(...g){if(!h.enabled)return;let y=h,b=Number(new Date),_=b-(p||b);y.diff=_,y.prev=p,y.curr=b,p=b,g[0]=r.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");let x=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,(E,P)=>{if(E==="%%")return"%";x++;let B=r.formatters[P];if(typeof B=="function"){let O=g[x];E=B.call(y,O),g.splice(x,1),x--}return E}),r.formatArgs.call(y,g),(y.log||r.log).apply(y,g)}return h.namespace=f,h.useColors=r.useColors(),h.color=r.selectColor(f),h.extend=n,h.destroy=r.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(d!==r.namespaces&&(d=r.namespaces,m=r.enabled(f)),m),set:g=>{u=g}}),typeof r.init=="function"&&r.init(h),h}function n(f,p){let u=r(this.namespace+(typeof p>"u"?":":p)+f);return u.log=this.log,u}function o(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,m=-1,h=0;for(;u<f.length;)if(d<p.length&&(p[d]===f[u]||p[d]==="*"))p[d]==="*"?(m=d,h=u,d++):(u++,d++);else if(m!==-1)d=m+1,h++,u=h;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}Vb.exports=Gk});var zb=Si((we,hi)=>{we.formatArgs=Kk;we.save=Xk;we.load=Yk;we.useColors=qk;we.storage=Zk();we.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`."))}})();we.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 qk(){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 Kk(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+hi.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}we.log=console.debug||console.log||(()=>{});function Xk(e){try{e?we.storage.setItem("debug",e):we.storage.removeItem("debug")}catch{}}function Yk(){let e;try{e=we.storage.getItem("debug")||we.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Zk(){try{return localStorage}catch{}}hi.exports=Ub()(we);var{formatters:Jk}=hi.exports;Jk.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Se=null,Zn=0,Jn=[],Hr=()=>Se,_x=e=>{Se=e},Qn=0,wi=[];function nt(e){let t=new Set;function r(){return Se&&(t.add(Se),Se._sources.add(s)),e}function n(i){i!==e&&(e=i,vx(t))}function o(){return e}let s={get:r,set:n,peek:o,_subscribers:t,_type:"signal"};return s}function Sx(e){let t,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){vi(o);let s=Se;Se=o;try{t=e(),r=!1}finally{Se=s}},_notify(){r=!0,n.size>0&&Ef(n)},get(){return Se&&(n.add(Se),Se._sources.add(o)),r&&o._execute(),t},peek(){return r&&o._execute(),t}};return o._execute(),o}var It=new Set,ki=!1;function ce(e,t){let r=t?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;vi(n);let o=Se;Se=n;try{e()}catch(s){console.error("[smbls] effect error:",s)}finally{Se=o}},_notify(){n._disposed||(Zn>0?Jn.push(n):Qn>0?wi.push(n):Ci(n))},dispose(){n._disposed=!0,vi(n)}};return n._execute(),n}function $t(e){Zn++;try{e()}finally{Zn--,Zn===0&&kx()}}function Ci(e){It.add(e),ki||(ki=!0,queueMicrotask(wx))}var rr=[];function wx(){if(ki=!1,It.size!==0){if(It.size===1){let[e]=It;It.clear(),e._disposed||e._execute();return}rr.length=0;for(let e of It)rr.push(e);It.clear(),rr.sort((e,t)=>e._depth-t._depth);for(let e=0;e<rr.length;e++){let t=rr[e];t._disposed||t._execute()}rr.length=0}}function kx(){for(let e=0;e<Jn.length;e++)Ci(Jn[e]);Jn.length=0}function Ef(e){Qn++;try{for(let t of e)t._notify()}finally{if(Qn--,Qn===0&&wi.length>0){let t=wi.splice(0);for(let r=0;r<t.length;r++)Ci(t[r])}}}function vx(e){Ef(e)}function vi(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var Ft=Symbol("store"),eo=Symbol("signals"),Ai=e=>!e||typeof e!="object"||Array.isArray(e)||e[Ft]||Object.isFrozen(e)||typeof Node<"u"&&e instanceof Node||e.__ref||e.nodeType||e.nodeName;function je(e,t,r){r===void 0&&(r=0);let n={},o={},s=t&&t.maxDepth||8;if(e&&typeof e=="object")for(let y in e){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(e,y))continue;let b=e[y];r<s&&b&&typeof b=="object"&&!Ai(b)?(o[y]=b,n[y]=nt(je(b,t,r+1))):(o[y]=b,n[y]=nt(b))}let i=new Proxy(o,{get(y,b){if(b===Ft)return!0;if(b===eo)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return p;if(b==="values")return u;if(b==="replace")return d;if(b==="add")return m;if(b==="remove")return h;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(n,b))return n[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==i)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&Hr()!=null)return n[b]=nt(void 0),n[b].get()},set(y,b,_){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=_,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=_,_&&typeof _=="object"&&!Ai(_)?n[b].set(je(_,t,r+1)):n[b].set(_)):(y[b]=_,_&&typeof _=="object"&&!Ai(_)?n[b]=nt(je(_,t,r+1)):n[b]=nt(_)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){$t(()=>{for(let x in y)x!=="__proto__"&&(i[x]=y[x])});let _=o.__element;return _&&_.onUpdate&&!b?.quiet&&_.onUpdate(_,i,_.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 _ in n){if(_==="parent"||_==="root"||_.startsWith("__"))continue;let x=n[_].peek();x&&x[Ft]?b[_]=x.parse(y):b[_]=x}return b}function f(){return $t(()=>{for(let y in n)delete i[y]}),i}function p(){return Object.keys(n)}function u(){return Object.keys(n).map(y=>n[y].peek())}function d(y){return $t(()=>{for(let b in n)b in y||delete i[b];for(let b in y)b!=="__proto__"&&(i[b]=y[b])}),i}function m(y,b){return i[y]=b,i}function h(y){return delete i[y],i}function g(){f(),o.__element=null,o.parent=null}return i}function le(e){return e&&e[Ft]===!0}function Cx(e){return e[eo]}function Ti(e,t){let r={},n={};if(e&&typeof e=="object")for(let i in e)n[i]=e[i],r[i]=nt(e[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=t;for(;a;){let c=a[eo];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[Ft]?a[Ei]:null}return null};return new Proxy(n,{get(i,a){return a===Ft?!0:a===eo?r:a===Ei?t:a==="__raw"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():t&&a!=="then"&&a!=="constructor"?t[a]:i[a]},set(i,a,c){let l=o(a);return l?(l===r&&(i[a]=c),l[a].set(c),!0):(i[a]=c,r[a]=nt(c),!0)},has(i,a){if(a in r||a in i)return!0;let c=t;for(;c;){if(a in c)return!0;c=c[Ft]?c[Ei]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var Ei=Symbol("scope.parent");var yr={};F(yr,{CSS_NATIVE_COLOR_REGEX:()=>lt,CSS_UNITS:()=>qr,applyMediaSequenceVars:()=>gr,applySequenceGlobalVars:()=>Ga,applySequenceVars:()=>Kt,changeLightness:()=>D_,colorStringToRgbaArray:()=>bt,convertSvgToSymbol:()=>qa,findHeadingLetter:()=>ah,findHeadings:()=>Ha,generateSequence:()=>Fe,generateSequencePosition:()=>xS,generateSprite:()=>gs,generateSubSequence:()=>za,getColorShade:()=>qd,getDefaultOrFirstKey:()=>wn,getFnPrefixAndValue:()=>qt,getFontFace:()=>M_,getFontFaceEach:()=>kn,getFontFaceEachString:()=>Zd,getFontFaceString:()=>Da,getFontFormat:()=>Xd,getRgbTone:()=>hr,getSequenceValue:()=>Wa,getSequenceValueBySymbols:()=>ih,getSequenceValuePropertyPair:()=>wt,getSubratio:()=>Ua,getSubratioDifference:()=>Va,hexToRgb:()=>P_,hexToRgbArray:()=>zd,hexToRgba:()=>$_,hslToRgb:()=>Gd,isCSSVar:()=>oe,isGoogleFontsUrl:()=>us,isResolvedColor:()=>xt,isScalingUnit:()=>Gr,mixTwoColors:()=>R_,mixTwoRgb:()=>F_,mixTwoRgba:()=>Kd,numToLetterMap:()=>St,opacify:()=>fs,parseColorToken:()=>Ht,resolveFileUrl:()=>Je,returnSubThemeOrDefault:()=>N_,rgbArrayToHex:()=>Wd,rgbToHSL:()=>Hd,rgbToHex:()=>I_,setCustomFont:()=>Fa,setCustomFontMedia:()=>mr,setFontImport:()=>ps,setInCustomFontMedia:()=>Yd,setScalingVar:()=>Ba,setSubScalingVar:()=>oh,setVariables:()=>_S,splitTopLevelCommas:()=>dr});var Gr=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",qr=["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"];R();var bt=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&&X&&k){let t=X.body.appendChild(X.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){X.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return X.body.removeChild(t),[0,0,0,0];e=k.getComputedStyle(t).color,X.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]},R_=(e,t,r=.5)=>(e=bt(e),t=bt(t),Kd(e,t,r)),P_=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},zd=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},I_=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),Wd=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),$_=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},F_=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},D_=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},Hd=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),s=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},Gd=(e,t,r,n=t*Math.min(r,1-r),o=(s,i=(s+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],qd=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},Kd=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},fs=(e,t)=>{let r=bt(e);if(!r){cr()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},oe=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,lt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,L_=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Ht=e=>{if(!w(e))return null;if(lt.test(e))return{passthrough:e};if(oe(e))return{cssVar:e};let t=e.match(L_);if(!t)return null;let[,r,n,o]=t,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},xt=e=>w(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),dr=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},hr=(e,t)=>{w(e)&&e.includes("rgb")&&(e=bt(e).join(", ")),w(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),ot(t)&&(t+="");let r=Wd(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=qd(r,parseFloat(t));return zd(o).join(", ")}else{let[o,s,i]=e,a=Hd(o,s,i),[c,l,f]=a;return Gd(c,l,parseFloat(t)/100*255)}};var N_=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e};var Je=(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},wn=(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},Xd=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},us=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),ps=e=>`@import url('${e}');`,Yd=e=>`@font-face { ${e} }`,Fa=(e,t,r,n={})=>{let i=(Array.isArray(t)?t:[t]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Xd(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
26
+ }<\/script>`}});var cd,ld=$(()=>{"use strict";cd=t=>{if(!t)return"";let e=new Date(t),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),n=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${n}, ${r}`}});var fd,ud=$(()=>{"use strict";fd=(t,e)=>{let r=setTimeout(()=>{let{props:n}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(n.height==="auto")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{t.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else t.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var pd,dd=$(()=>{"use strict";pd=function(e){let r=[0,1];for(let n=2;n<=e;n++)r[n]=r[n-1]+r[n-2];return r[e]}});var hd,gd=$(()=>{"use strict";hd=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function xn(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=n.createElement("script");a.src=t,a.async=e.async===!0,a.type=e.type||"text/javascript",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},n.head.appendChild(a)})}async function Sd(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=n.createElement("link");a.href=t,a.rel=e.rel||"stylesheet",a.type="text/css",a.media=e.media||"all",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},n.head.appendChild(a)})}var md,yd,bd,xd,_d,wd=$(()=>{"use strict";md=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=e,i.src=t,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),yd=(t,e=document,r="text/javascript")=>new Promise((n,o)=>{let s=e.createElement("script");s.type=r,s.src=t;let i=e.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",e.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),n()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),bd=(t,e=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",t,!1),o.send(),o.status===200){let s=e.createElement("script");s.type=n,s.text=o.responseText,e.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${t}`)},xd=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),_d=(t,e=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=e,s.id=o,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}}});function A_(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!C_(o))return o;let s=e[o];return s?.src?s.src:o},n={...t};for(let[o,s]of Object.entries(n))typeof s=="string"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i=="string"?r(i):i));return n}function ns(t,e){if(!t||!e)return;let r=e.split("."),n=t;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function E_(t,e,r){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=r?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=r?.state||{},l={...t};for(let[f,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]??ns(a,g)??u;if(h==="getLocalStateLang")return ns(c,g+s)??u;let m=ns(c,g);return m!==void 0?m:a[g]??ns(a,g)??u}));return l}function kd(t){let e={...t};for(let[r,n]of Object.entries(e))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function Cd(t,e,r,{isProduction:n=!1,channel:o="production"}={}){let s=t.pages?.[e],i=_(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=kd(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},p=kd(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?n?u.title=g:o==="development"?u.title=`${g} / dev:symbo.ls`:o==="staging"?u.title=`${g} / staging:symbo.ls`:u.title=`${g} / symbo.ls`:u.title="Symbols demo"}u=E_(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=A_(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 $t,v_,vd,C_,Ad=$(()=>{"use strict";dt();$t=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},v_=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${$t(r)}"`).join(" "),vd=(t,e)=>(e||(t={...t,robots:"noindex"}),Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${$t(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${$t(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${$t(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f=="string")n.push(`<link rel="icon" href="${$t(f)}">`);else if(typeof f=="object"){let p=v_(f);/rel=/.test(p)?n.push(`<link ${p}>`):n.push(`<link rel="icon" ${p}>`)}}),n;if(o==="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}="${$t(d)}"`).join(" ");n.push(`<link rel="alternate" ${p}>`)}}),n;let i=(l,f,p="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${p}="${$t(l)}" content="${$t(f)}">`);else if(Array.isArray(f))f.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")n.push(`<meta ${p}="${$t(l)}" content="${$t(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${$t(g)}"`).join(" ");n.push(`<meta ${d}>`)}});else if(typeof f=="object"){let u=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${$t(h)}"`).join(" ");n.push(`<meta ${u}>`)}};if(o.startsWith("http-equiv:")){let l=o.replace("http-equiv:","");return i(l,s,"http-equiv"),n}if(o.startsWith("itemprop:")){let l=o.replace("itemprop:","");return i(l,s,"itemprop"),n}let c=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(l=>o.startsWith(l));if(c){let l=o.replace(c,"");return i(`${c.replace(":","")}:${l}`,s,c==="twitter:"||c==="DC:"||c==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let l=o.startsWith("apple:")?"apple-":"msapplication-",f=o.replace(/^apple:|^msapplication:/,"");return i(`${l}${f}`,s,"name"),n}return i(o,s),n},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
27
+ `)),C_=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var Ia,Ed,Td=$(()=>{"use strict";dt();Ia=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),Ed=(t,e)=>(t=parseFloat(t),_(e)&&(e=Object.values(e)),Ia(t,e))});function _n(t){let e=String(t||"").trim();if(!e)return{owner:Od,key:"",full:""};let r=null,n=e;if(e.includes("/")){let s=e.indexOf("/");r=e.slice(0,s),n=e.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=Od);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function $a(t,e={}){if((e.provider||"kv")==="api")return Rd(t,e);let n=await R_(t,e);return n||Rd(t,e)}async function R_(t,e={}){let r=e.kvBaseUrl||T_,n=e.env||"production",o=`${r}/kv/${encodeURIComponent(t)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function Rd(t,e={}){let r=e.apiBaseUrl||O_,{key:n}=_n(t);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(d=>{let{key:h}=_n(d?.key);return h.toLowerCase()===n.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,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 Pd(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(_(n))return n;if(S(n)){let{full:o}=_n(n);if(!o)return null;try{let s=await $a(o,e);return s||console.warn(`[smbls] Shared library "${o}" not found`),s}catch(s){return console.warn(`[smbls] Failed to fetch shared library "${o}":`,s.message),null}}return null}))).filter(Boolean)}var Od,T_,O_,os,ss,Id=$(()=>{"use strict";dt();Od="system",T_="https://smbls-kv.nika-980.workers.dev",O_="https://api.symbols.app";os=(t,e)=>{for(let r in e)r in t?_(t[r])&&_(e[r])&&os(t[r],e[r]):t[r]=e[r]},ss=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r];if(_(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(_(n[o])&&_(t[o]))if(o==="designSystem")os(t[o],n[o]);else for(let s in n[o])s in t[o]||(t[o][s]=n[o][s]);else o in t||(t[o]=n[o])}}}});var $d,Fd,Dd,is,Ld,as,Md,pr,Nd=$(()=>{"use strict";dt();$d=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Fd=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)}},Dd=t=>t.replace(/[^a-zA-Z0-9_]/g,""),is=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,"")),Ld=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),as=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Md=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},pr=t=>{if(T(t))return t;if(S(t))return t.split(" ");if(_(t))return Object.values(t);if(oe(t))return[t]}});var jd,Bd=$(()=>{"use strict";jd=()=>{let t=document.styleSheets[0],e="";if(t)try{let r=t.cssRules||t.rules;for(let n=0;n<r.length;n++)e+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return e}});var Tt,Sn,cs,ls,Vd=$(()=>{"use strict";Tt=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let r=t.context;if(!r)return null;let n=r.assets&&r.assets[e]||r.files&&r.files[e];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},Sn=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let r=t.some(o=>typeof o.width=="number"),n=[];for(let o of t)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&e?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},cs=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return Sn(e,{keepOneX:!1})},ls=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let r=new Map;for(let a of t.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,c]of r)a!==t.type&&n.push({tag:"source",attr:{type:a,srcset:Sn(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=Sn(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var Ud={};F(Ud,{CDN_PROVIDERS:()=>Xt,DOMQL_EVENTS:()=>Jf,DOMQ_PROPERTIES:()=>De,ENV:()=>yu,HTML_TAGS:()=>on,METHODS:()=>tn,METHODS_EXL:()=>co,NODE_ENV:()=>Kt,OPTIONS:()=>Fo,PACKAGE_MANAGER_TO_CDN:()=>We,PARSED_DOMQ_PROPERTIES:()=>ao,PROPS_METHODS:()=>Me,STATE_METHODS:()=>Le,STATE_PROPERTIES:()=>Zf,SVG_TAGS:()=>Nu,TYPES:()=>ro,UNIVERSAL_RESERVED_KEYS:()=>Pa,addCaching:()=>la,addContext:()=>ca,addExtend:()=>Hu,addExtends:()=>Et,addItemAfterEveryElement:()=>Nf,addProtoToArray:()=>so,addRef:()=>sa,applyDependentState:()=>dp,applyEvent:()=>ga,applyEventUpdate:()=>ma,applyExtends:()=>qu,applyProps:()=>To,arrayContainsOtherArray:()=>Pf,arraysEqual:()=>Bf,arrayzeValue:()=>pr,buildImgSrcset:()=>cs,buildSourcesAndImg:()=>ls,cache:()=>_p,call:()=>Xp,captureSnapshot:()=>td,checkForStateTypes:()=>lp,checkIfInherits:()=>ha,checkIfStringIsInArray:()=>zf,clone:()=>nu,cloneAndMergeArrayExtend:()=>xo,cloneFunction:()=>Cu,concatAddExtends:()=>Vu,copyJavaScriptToClipboard:()=>Fd,copyStringToClipboard:()=>$d,createBasedOnType:()=>oa,createElement:()=>ap,createElementExtends:()=>zi,createExtends:()=>So,createExtendsFromKeys:()=>sn,createExtendsStack:()=>qi,createIfConditionFlag:()=>Au,createInheritedState:()=>fp,createKey:()=>mo,createNestedObject:()=>fu,createNestedObjectByKeyPath:()=>pp,createObjectWithoutPrototype:()=>Fi,createParent:()=>ia,createPath:()=>aa,createProps:()=>Oo,createPropsStack:()=>ea,createRoot:()=>ip,createScope:()=>mp,createSnapshotId:()=>go,customDecodeURIComponent:()=>Xf,customEncodeURIComponent:()=>Yf,cutArrayAfterValue:()=>Lf,cutArrayBeforeValue:()=>Df,debounce:()=>bo,debounceOnContext:()=>wu,decodeNewlines:()=>Kf,deepClone:()=>Q,deepContains:()=>cu,deepDefaults:()=>os,deepDestringifyFunctions:()=>ie,deepExtend:()=>Ui,deepMerge:()=>G,deepMergeExtends:()=>ae,deepStringifyFunctions:()=>lo,defineSetter:()=>Kp,destringifyGlobalScope:()=>uo,detectHeightOnInit:()=>fd,detectInfiniteLoop:()=>hu,document:()=>Y,encodeNewlines:()=>qf,error:()=>ur,excludeKeysFromObject:()=>mu,exec:()=>X,extendCachedRegistry:()=>Uu,extendStackRegistry:()=>wo,extractArrayExtend:()=>vo,fetchLibraryData:()=>$a,fibonacciNumberByIndex:()=>pd,filterArrays:()=>Vf,filterArraysFast:()=>Uf,finalizeExtends:()=>Ki,findClosestNumber:()=>Ia,findClosestNumberInFactory:()=>Ed,findInheritedState:()=>da,findKeyPosition:()=>Hf,flattenExtend:()=>an,formatDate:()=>cd,generateHash:()=>ji,generateKey:()=>ho,generateMetaTags:()=>vd,get:()=>Wp,getCDNUrl:()=>Zt,getCapitalCaseKeys:()=>Ku,getCdnProviderFromConfig:()=>bn,getChildStateInKey:()=>pa,getChildren:()=>zo,getContext:()=>Xo,getCookie:()=>$u,getDB:()=>es,getEmotionStylesheet:()=>jd,getExtendsInElement:()=>Gu,getExtendsStack:()=>_o,getExtendsStackRegistry:()=>Vi,getFrequencyInArray:()=>If,getHashedExtend:()=>ko,getImportMapScript:()=>id,getInObjectByPath:()=>du,getLocalStorage:()=>Du,getNev:()=>Su,getPageMetadata:()=>Cd,getParentStateInKey:()=>ua,getPath:()=>Wo,getQuery:()=>rs,getRef:()=>Gp,getRoot:()=>qo,getRootContext:()=>Yo,getRootData:()=>Ko,getRootState:()=>Go,getRootStateInKey:()=>fa,getSpreadChildren:()=>Yu,global:()=>Tf,hasFunction:()=>en,hasHandlerPlugin:()=>rn,hasOwnProperty:()=>su,inheritChildExtends:()=>Hi,inheritChildPropsExtends:()=>Wi,inheritParentProps:()=>Ro,inheritRecursiveChildExtends:()=>Gi,initProps:()=>np,is:()=>Ct,isArray:()=>T,isBoolean:()=>Oi,isContextComponent:()=>Xu,isCyclic:()=>gu,isDOMNode:()=>kt,isDate:()=>Pi,isDefined:()=>vt,isDevelopment:()=>Be,isEmpty:()=>Ii,isEmptyObject:()=>iu,isEqualDeep:()=>$i,isFunction:()=>C,isHtmlElement:()=>eo,isLocal:()=>_u,isMethod:()=>Jp,isMobile:()=>Pu,isNode:()=>he,isNot:()=>Rf,isNotProduction:()=>cr,isNull:()=>Ri,isNumber:()=>oe,isObject:()=>_,isObjectLike:()=>N,isPhoto:()=>hd,isProduction:()=>je,isStaging:()=>xu,isState:()=>up,isString:()=>S,isStringFunction:()=>vu,isTest:()=>Di,isTesting:()=>bu,isUndefined:()=>gt,isUniversallyReservedKey:()=>rd,isValidHtmlTag:()=>ju,joinArrays:()=>Xr,jointStacks:()=>Wu,keys:()=>Oa,loadCssFile:()=>xd,loadJavascript:()=>_d,loadJavascriptFile:()=>md,loadJavascriptFileEmbedSync:()=>bd,loadJavascriptFileSync:()=>yd,loadRemoteCSS:()=>Sd,loadRemoteScript:()=>xn,log:()=>Yp,logGroupIf:()=>Ou,logIf:()=>Tu,lookdown:()=>Vp,lookdownAll:()=>Up,lookup:()=>Bp,lowercaseFirstLetter:()=>sr,makeObjectWithoutPrototype:()=>au,map:()=>eu,mapStringsWithContextComponents:()=>Co,matchesComponentNaming:()=>ce,memoize:()=>ku,merge:()=>et,mergeSharedLibraries:()=>ss,nextElement:()=>Jo,normalizeLibraryKey:()=>_n,objectToString:()=>fo,objectizeStringProperty:()=>Eo,overwrite:()=>po,overwriteDeep:()=>At,overwriteShallow:()=>ar,overwriteState:()=>hp,parse:()=>Ra,parseDeep:()=>Vo,pickupElementFromProps:()=>Ji,pickupPropsFromElement:()=>Zi,previousElement:()=>Qo,propExists:()=>rp,propertizeElement:()=>Qi,propertizeUpdate:()=>ep,remove:()=>zp,removeChars:()=>Dd,removeCookie:()=>Fu,removeDuplicateProps:()=>Io,removeDuplicatesInArray:()=>Zr,removeFromArray:()=>$f,removeFromObject:()=>lu,removeNestedKeyByPath:()=>uu,removeValueFromArray:()=>oo,removeValueFromArrayAll:()=>Mf,reorderArrayByValues:()=>jf,replaceLiteralsWithObjectFields:()=>or,replaceOctalEscapeSequences:()=>Gf,resolveAsset:()=>Tt,resolveHandler:()=>nn,resolveSharedLibraries:()=>Pd,returnValueAsText:()=>na,runPluginHook:()=>Bt,self:()=>Of,setActiveRootState:()=>Ho,setCookie:()=>Iu,setHashedExtend:()=>Bi,setInObjectByPath:()=>pu,setLocalStorage:()=>Lu,setNodeStyles:()=>Ta,setProps:()=>Hp,setPropsPrototype:()=>Po,spotByPath:()=>Uo,srcsetFor:()=>Sn,stringIncludesAny:()=>io,stringToObject:()=>ou,swapItemsInArray:()=>Ff,syncProps:()=>$o,toCamelCase:()=>is,toDashCase:()=>as,toDescriptionCase:()=>Md,toTitleCase:()=>Ld,toggleFullscreen:()=>od,triggerEventOn:()=>Ve,triggerEventOnUpdate:()=>xp,trimStringFromSymbols:()=>Wf,unstackArrayOfObjects:()=>no,update:()=>ta,updateProps:()=>op,variables:()=>ts,verbose:()=>yn,warn:()=>Zo,window:()=>k});var P=$(()=>{"use strict";yo();Li();dt();se();lr();nr();Yr();Eu();Ru();Qr();Kr();Mu();Mi();Yi();ra();Ao();cp();gp();ir();yp();Qp();ba();ed();ya();nd();sd();ad();ld();ud();dd();gd();wd();Ad();Td();Id();Nd();Bd();Vd()});var Vb=Si((jF,Bb)=>{var Nr=1e3,jr=Nr*60,Br=jr*60,tr=Br*24,Uk=tr*7,zk=tr*365.25;Bb.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Wk(t);if(r==="number"&&isFinite(t))return e.long?Gk(t):Hk(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Wk(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*zk;case"weeks":case"week":case"w":return r*Uk;case"days":case"day":case"d":return r*tr;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Br;case"minutes":case"minute":case"mins":case"min":case"m":return r*jr;case"seconds":case"second":case"secs":case"sec":case"s":return r*Nr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Hk(t){var e=Math.abs(t);return e>=tr?Math.round(t/tr)+"d":e>=Br?Math.round(t/Br)+"h":e>=jr?Math.round(t/jr)+"m":e>=Nr?Math.round(t/Nr)+"s":t+"ms"}function Gk(t){var e=Math.abs(t);return e>=tr?di(t,e,tr,"day"):e>=Br?di(t,e,Br,"hour"):e>=jr?di(t,e,jr,"minute"):e>=Nr?di(t,e,Nr,"second"):t+" ms"}function di(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var zb=Si((BF,Ub)=>{function qk(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=Vb(),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),w=b-(p||b);y.diff=w,y.prev=p,y.curr=b,p=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let x=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(A,R)=>{if(A==="%%")return"%";x++;let W=r.formatters[R];if(typeof W=="function"){let O=m[x];A=W.call(y,O),m.splice(x,1),x--}return A}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=f,g.useColors=r.useColors(),g.color=r.selectColor(f),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>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 n(f,p){let u=r(this.namespace+(typeof p>"u"?":":p)+f);return u.log=this.log,u}function o(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}Ub.exports=qk});var Wb=Si((wt,hi)=>{wt.formatArgs=Yk;wt.save=Xk;wt.load=Zk;wt.useColors=Kk;wt.storage=Jk();wt.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();wt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Kk(){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 Yk(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+hi.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),t.splice(n,0,e)}wt.log=console.debug||console.log||(()=>{});function Xk(t){try{t?wt.storage.setItem("debug",t):wt.storage.removeItem("debug")}catch{}}function Zk(){let t;try{t=wt.storage.getItem("debug")||wt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Jk(){try{return localStorage}catch{}}hi.exports=zb()(wt);var{formatters:Qk}=hi.exports;Qk.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var St=null,Zn=0,Jn=[],Hr=()=>St,Sx=t=>{St=t},Qn=0,wi=[];function ne(t){let e=new Set;function r(){return St&&(e.add(St),St._sources.add(s)),t}function n(i){i!==t&&(t=i,Cx(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:"signal"};return s}function wx(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){vi(o);let s=St;St=o;try{e=t(),r=!1}finally{St=s}},_notify(){r=!0,n.size>0&&Ef(n)},get(){return St&&(n.add(St),St._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var Ie=new Set,ki=!1;function ct(t,e){let r=e?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;vi(n);let o=St;St=n;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{St=o}},_notify(){n._disposed||(Zn>0?Jn.push(n):Qn>0?wi.push(n):Ci(n))},dispose(){n._disposed=!0,vi(n)}};return n._execute(),n}function $e(t){Zn++;try{t()}finally{Zn--,Zn===0&&vx()}}function Ci(t){Ie.add(t),ki||(ki=!0,queueMicrotask(kx))}var rr=[];function kx(){if(ki=!1,Ie.size!==0){if(Ie.size===1){let[t]=Ie;Ie.clear(),t._disposed||t._execute();return}rr.length=0;for(let t of Ie)rr.push(t);Ie.clear(),rr.sort((t,e)=>t._depth-e._depth);for(let t=0;t<rr.length;t++){let e=rr[t];e._disposed||e._execute()}rr.length=0}}function vx(){for(let t=0;t<Jn.length;t++)Ci(Jn[t]);Jn.length=0}function Ef(t){Qn++;try{for(let e of t)e._notify()}finally{if(Qn--,Qn===0&&wi.length>0){let e=wi.splice(0);for(let r=0;r<e.length;r++)Ci(e[r])}}}function Cx(t){Ef(t)}function vi(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Fe=Symbol("store"),to=Symbol("signals"),Ai=t=>!t||typeof t!="object"||Array.isArray(t)||t[Fe]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function jt(t,e,r){r===void 0&&(r=0);let n={},o={},s=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let y in t){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(t,y))continue;let b=t[y];r<s&&b&&typeof b=="object"&&!Ai(b)?(o[y]=b,n[y]=ne(jt(b,e,r+1))):(o[y]=b,n[y]=ne(b))}let i=new Proxy(o,{get(y,b){if(b===Fe)return!0;if(b===to)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return 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(n,b))return n[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==i)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&Hr()!=null)return n[b]=ne(void 0),n[b].get()},set(y,b,w){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=w,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=w,w&&typeof w=="object"&&!Ai(w)?n[b].set(jt(w,e,r+1)):n[b].set(w)):(y[b]=w,w&&typeof w=="object"&&!Ai(w)?n[b]=ne(jt(w,e,r+1)):n[b]=ne(w)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){$e(()=>{for(let x in y)x!=="__proto__"&&(i[x]=y[x])});let w=o.__element;return w&&w.onUpdate&&!b?.quiet&&w.onUpdate(w,i,w.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 w in n){if(w==="parent"||w==="root"||w.startsWith("__"))continue;let x=n[w].peek();x&&x[Fe]?b[w]=x.parse(y):b[w]=x}return b}function f(){return $e(()=>{for(let y in n)delete i[y]}),i}function p(){return Object.keys(n)}function u(){return Object.keys(n).map(y=>n[y].peek())}function d(y){return $e(()=>{for(let b in n)b in y||delete i[b];for(let b in y)b!=="__proto__"&&(i[b]=y[b])}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){f(),o.__element=null,o.parent=null}return i}function lt(t){return t&&t[Fe]===!0}function Ax(t){return t[to]}function Ti(t,e){let r={},n={};if(t&&typeof t=="object")for(let i in t)n[i]=t[i],r[i]=ne(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[to];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[Fe]?a[Ei]:null}return null};return new Proxy(n,{get(i,a){return a===Fe?!0:a===to?r:a===Ei?e:a==="__raw"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():e&&a!=="then"&&a!=="constructor"?e[a]:i[a]},set(i,a,c){let l=o(a);return l?(l===r&&(i[a]=c),l[a].set(c),!0):(i[a]=c,r[a]=ne(c),!0)},has(i,a){if(a in r||a in i)return!0;let c=e;for(;c;){if(a in c)return!0;c=c[Fe]?c[Ei]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var Ei=Symbol("scope.parent");var yr={};F(yr,{CSS_NATIVE_COLOR_REGEX:()=>le,CSS_UNITS:()=>qr,applyMediaSequenceVars:()=>mr,applySequenceGlobalVars:()=>Ga,applySequenceVars:()=>Ke,changeLightness:()=>L_,colorStringToRgbaArray:()=>be,convertSvgToSymbol:()=>qa,findHeadingLetter:()=>ah,findHeadings:()=>Ha,generateSequence:()=>Ft,generateSequencePosition:()=>_S,generateSprite:()=>ms,generateSubSequence:()=>za,getColorShade:()=>qd,getDefaultOrFirstKey:()=>wn,getFnPrefixAndValue:()=>qe,getFontFace:()=>j_,getFontFaceEach:()=>kn,getFontFaceEachString:()=>Zd,getFontFaceString:()=>Da,getFontFormat:()=>Yd,getRgbTone:()=>hr,getSequenceValue:()=>Wa,getSequenceValueBySymbols:()=>ih,getSequenceValuePropertyPair:()=>we,getSubratio:()=>Ua,getSubratioDifference:()=>Va,hexToRgb:()=>I_,hexToRgbArray:()=>zd,hexToRgba:()=>F_,hslToRgb:()=>Gd,isCSSVar:()=>ot,isGoogleFontsUrl:()=>us,isResolvedColor:()=>xe,isScalingUnit:()=>Gr,mixTwoColors:()=>P_,mixTwoRgb:()=>D_,mixTwoRgba:()=>Kd,numToLetterMap:()=>Se,opacify:()=>fs,parseColorToken:()=>He,resolveFileUrl:()=>Jt,returnSubThemeOrDefault:()=>N_,rgbArrayToHex:()=>Wd,rgbToHSL:()=>Hd,rgbToHex:()=>$_,setCustomFont:()=>Fa,setCustomFontMedia:()=>gr,setFontImport:()=>ps,setInCustomFontMedia:()=>Xd,setScalingVar:()=>Ba,setSubScalingVar:()=>oh,setVariables:()=>SS,splitTopLevelCommas:()=>dr});var Gr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",qr=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];P();var be=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&Y&&k){let e=Y.body.appendChild(Y.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){Y.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return Y.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,Y.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]},P_=(t,e,r=.5)=>(t=be(t),e=be(e),Kd(t,e,r)),I_=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},zd=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},$_=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Wd=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),F_=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},D_=(t,e,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(t[o]+(e[o]-t[o])*r);return`rgb(${n})`},L_=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},Hd=(t,e,r)=>{let n=Math.max(t,e,r),o=n-Math.min(t,e,r),s=1-Math.abs(n+n-o-1),i=o&&(n==t?(e-r)/o:n==e?2+(r-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},Gd=(t,e,r,n=e*Math.min(r,1-r),o=(s,i=(s+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],qd=(t,e)=>{let r=parseInt(t,16),n=(r>>16)+e;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},Kd=(t,e,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(t[o]+(e[o]-t[o])*r)}return`rgba(${n})`},fs=(t,e)=>{let r=be(t);if(!r){cr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},ot=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,le=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,M_=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,He=t=>{if(!S(t))return null;if(le.test(t))return{passthrough:t};if(ot(t))return{cssVar:t};let e=t.match(M_);if(!e)return null;let[,r,n,o]=e,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},xe=t=>S(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),dr=t=>{let e=[],r="",n=0;for(let o of t){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){e.push(r),r="";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},hr=(t,e)=>{S(t)&&t.includes("rgb")&&(t=be(t).join(", ")),S(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),oe(e)&&(e+="");let r=Wd(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=qd(r,parseFloat(e));return zd(o).join(", ")}else{let[o,s,i]=t,a=Hd(o,s,i),[c,l,f]=a;return Gd(c,l,parseFloat(e)/100*255)}};var N_=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Jt=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let r=e[t];return r?r.content&&r.content.src:null},wn=(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},Yd=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},us=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),ps=t=>`@import url('${t}');`,Xd=t=>`@font-face { ${t} }`,Fa=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Yd(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
28
28
  `);return`
29
- font-family: '${e}';
29
+ font-family: '${t}';
30
30
  font-style: ${n.fontStyle||"normal"};${r?`
31
31
  font-weight: ${r};`:""}${n.fontStretch?`
32
32
  font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
33
33
  font-display: ${n.fontDisplay};`:""}
34
- src: ${i};`},mr=(e,t,r,n)=>`@font-face {${Fa(e,t,r,n)}
35
- }`,kn=(e,t,r)=>Object.keys(t).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=t[o],f=Array.isArray(s)?s.map(p=>Je(p,r)||p):Je(s,r)||s;return Fa(e,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),M_=e=>Object.keys(e).map(r=>kn(r,e[r].value)),Zd=(e,t,r)=>{if(t&&t.isVariable){let s=Je(t.url,r)||t.url;return us(s)?ps(s):mr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return kn(e,t,r).map(Yd);let o=Array.isArray(t.url)?t.url.map(s=>Je(s,r)||s):Je(t.url,r)||t.url;return mr(e,o,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},Da=(e,t)=>Object.keys(e).map(n=>Zd(n,e[n].value,t));R();R();R();var ds={};F(ds,{animation:()=>sS,breakpoints:()=>nS,class:()=>uS,color:()=>K_,devices:()=>oS,document:()=>rS,font:()=>V_,fontFace:()=>W_,fontFamily:()=>U_,fontFamilyTypes:()=>z_,gradient:()=>X_,grid:()=>fS,icons:()=>J_,media:()=>H_,reset:()=>pS,semanticIcons:()=>Q_,sequence:()=>Gt,shadow:()=>Z_,sizes:()=>hS,spacing:()=>q_,svg:()=>iS,svgData:()=>aS,templates:()=>cS,theme:()=>Y_,timing:()=>tS,typography:()=>La,unit:()=>j_,vars:()=>dS});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 j_={default:"em"};var B_={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:{}},La=B_;var V_={};var U_={},z_={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},W_={};var H_={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var G_={base:La.base,type:"spacing",ratio:Gt.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},q_=G_;var K_={},X_={};var Y_={};var Z_={};var J_={},Q_={};var eS={default:150,base:150,type:"timing",ratio:Gt["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},tS=eS;var rS={};var nS={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},oS={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 sS={};var iS={},aS={};var cS={};var lS={},fS=lS;var uS={};var pS={},dS={},hS={};var Jd={},Qd={},hs=ds,ms={},Na=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in hs){let t=e.toLowerCase();ms[t]=hs[e];let r=Na(t);r!==t&&(ms[r]=hs[e]),t!==e&&(ms[e]=hs[e])}var Ma={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Jd,cssMediaVars:Qd,CSS_VARS:Jd,CSS_MEDIA_VARS:Qd,_scratchConfig:!0,...ms},eh=J(Ma),_t={active:"0",0:Ma},YA=e=>(ve(e)&&(_t.active=e),_t[e||_t.active]),vn=[],fe=e=>{e&&e._scratchConfig&&vn.push(e)},se=()=>{vn.pop()},A=e=>vn.length?vn[vn.length-1]:_t[e||_t.active]||Ma,th=e=>{if(S(e))return _t.active="1",_t[1]=G(e,J(eh)),e},mS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],gS=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],yS=e=>{for(let t of gS){let r;for(let n of t){let o=e[n];S(o)&&(r=r?G(o,r):o)}if(r)for(let n of t)S(e[n])&&(e[n]=r)}},rh=(e,t,{cleanBase:r=!1}={})=>{let n=r?null:A(),o=J(!r&&n&&n._scratchConfig?n:eh);for(let i of mS)delete o[i];let s=G(t||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,yS(s),e&&(_t[e]=s),s};var St={"-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"},ja=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let c=nh.has(t.unit)?"rem":t.unit;t.vars[n]=s+c},qt=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},nh=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ba=(e,t)=>{let{base:r,type:n,unit:o}=t,s=nh.has(o)?"rem":o,i=(Gr(s)?1:r)+s;if(e===0)return i;let c="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${c}-ratio`;if(e>0){let f=St[e-1];return`calc(var(${c}-${f}) * var(${l}))`}if(e<0){let f=St[e+1],p=Math.abs(e),u=Math.pow(sh,2*p),d=St[p];return d?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${d}) / ${u.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},oh=(e,t,r,n)=>{let{type:o}=n,i=e===2&&t.length===2?e+1:e,l=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},Va=(e,t)=>{let n=(e*t-e)/1.618,o=e*t-n,s=e+n,i=(o+s)/2;return[o,i,s]},Ua=(e,t)=>Va(e,t).map(r=>r/e),za=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,f,[p,u,d]=Va(o,s);l>16?f=[p,u,d]:f=[p,d],f.forEach((m,h)=>{let g=~~(m/n*1e3)/1e3,y=i+(h+1),b=a+(h+1)/10,_=oh(h+1,f,i,t),x={key:r+(h+1),variable:y,value:m,scaling:g,scalingVariable:_,index:b};ja(x,t)})},sh=1.618,bS=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(sh,2*n);return Math.max(o,s)},Fe=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),c="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=o[1]-l,p=St[f],u=bS(f,r,n),d=~~(u/r*100)/100,m=c+p,h=Ba(f,e),g={key:p,variable:m,value:u,base:r,scaling:d,scalingVariable:h,ratio:n,index:f};ja(g,e),s&&za(g,e)}return e},xS=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=w(t)?t:St[t],a=w(t)?Object.entries(St).find(([,g])=>g===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...e},l=n*Math.pow(o,a),f=~~(l/n*100)/100,d="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,m=Ba(a,e),h={key:i,variable:d,value:l,base:n,scaling:f,scalingVariable:m,ratio:o,index:a};return ja(h,c),s&&za(h,c),c},Wa=(e="A",t)=>{let r=A(),{unit:n}=r;if(w(e)&&oe(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,c=a.test(e);if(qr.some(x=>e.includes(x))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let u=`--${t.varPrefix?t.varPrefix+"-":""}${as(t.type.replace(".","-"))}-`,d=e.toUpperCase(),m=d.slice(0,1)==="-"?"-":"",h=m?d.slice(1):d,g="";h.includes("_")&&(g="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let y=x=>a.test(x)?`var(${u}${x}${g})`:x;if(h.includes("+")){let[x,C]=h.split("+"),E=`${y(x)} + ${y(C)}`;return m?`calc((${E}) * -1)`:`calc(${E})`}else if(h.includes("*")){let[x,C]=h.split("*"),E=`${y(x)} * ${y(C)}`;return m?`calc((${E}) * -1)`:`calc(${E})`}else if(h.includes("-")){let[x,C]=h.split("-"),E=`${y(x)} - ${y(C)}`;return m?`calc((${E}) * -1)`:`calc(${E})`}let b=r.sizes;if(b){let x=b[e]||b[e.toLowerCase()];if(x!==void 0)return m?`calc(${x} * -1)`:x}if(!o[h]&&h.length===2&&(r.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||r.useVariable){let x=`var(${u}${h}${g})`;return m?`calc(${x} * -1)`:x}let _=o?o[h]:null;return _?s==="ms"||s==="s"?m+_.val+s:m+_.scaling+s:console.warn("can't find",o,h)},ih=(e,t)=>{if(!["+","-","*","/",","].filter(s=>e.includes(s+" ")).length)return e;let n=/(\s*[+\-*/,]\s*)/;return e.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Wa(i,t)}).join("")},wt=(e,t,r,n)=>{if(typeof e!="string")return A().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let s=qt(e);n=s[0],e=s[1]}return["+","-","*","/",","].filter(s=>e.includes(s+" ")).length?e=ih(e,r):e=Wa(e,r),{[t]:n?`${n}(${e})`:e}},ah=(e,t)=>St[e-t],Ha=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=ah(t,o);return r[s]})};R();var _S=(e,t)=>{let r=A(),{cssVars:n}=r;L(e.value)||(n[e.var]=e.value)},Ga=(e,t,r)=>{let n=A(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:c}=t,f="--"+(t.varPrefix?t.varPrefix+"-":"")+(c&&c.replace(".","-"));e[`${f}-base`]=i,e[`${f}-unit`]=s;let p=`${f}-ratio`;e[p]=a;let[u,d,m]=Ua(i,a);e[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,e[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${d/a})`,e[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${m/a})`},ch=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Kt=(e,t={})=>{let r=A(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=ch.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=e;c||Ga(s,e,t);for(let p in l){let u=l[p],d=(e.type===o.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"})`)}},gr=(e,t,r={})=>{let n=A(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),c=e[t],l=c.unit||e.unit||o.default,f=ch.has(l)?"rem":l,{mediaRegenerate:p}=e,{sequence:u,scales:d}=c,m=s[a];if(!m&&n.verbose&&console.warn("Can't find media query ",m),!p){let h=i[`@media ${m}`];h||(h=i[`@media ${m}`]={}),Ga(h,c,r);let g=e.unit||o.default;if(f!==g&&u)for(let y in u){let b=u[y],_=d[y]+f;h[b.variable+"_default"]=_,h[b.variable]=_}return}for(let h in u){let g=u[h],y=(Gr(f)?d[h]:u[h].val)+f;!m&&n.verbose&&console.warn("Can't find query ",m);let b=i[`@media ${m}`];b||(b=i[`@media ${m}`]={}),b[g.variable]=`var(${g.variable+"_"+a})`,i[g.variable+"_"+a]=y}};R();var fh=cr(),gs=e=>{let t=A(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},SS=e=>{let t=e&&(e.default||e);if(!w(t))return fh&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return o?o.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},wS=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},lh=new Set,qa=(e,t)=>{let r=t&&t.default?t.default:t;if(!w(r))return fh&&!lh.has(e)&&(lh.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=SS(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,l=wS(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return l=l.replace(/width="[^"]*"/,""),l=l.replace(/height="[^"]*"/,""),l=l.replace("</svg","</symbol"),l=CS(l),l},kS="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",vS=new RegExp(`<(${kS})\\b([^>]*?)\\s*/>`,"g"),CS=e=>e.replace(vS,"<$1$2></$1>");var _s={};F(_s,{appendSVGSprite:()=>uc,appendSvgIconsSprite:()=>dc,applyDocument:()=>cc,applyHeadings:()=>mh,applyReset:()=>hc,applySpacingSequence:()=>oc,applyTimingSequence:()=>ac,applyTypographySequence:()=>tc,checkIfBoxSize:()=>nc,getColor:()=>Q,getFontFamily:()=>ec,getFontSizeByKey:()=>rc,getMediaColor:()=>be,getMediaTheme:()=>Qe,getShadow:()=>ic,getSpacingBasedOnRatio:()=>ft,getSpacingByKey:()=>he,getTheme:()=>Ya,getTimingByKey:()=>Ue,getTimingFunction:()=>et,runThroughMedia:()=>hh,setColor:()=>br,setFont:()=>Qa,setFontFamily:()=>bs,setGradient:()=>xr,setMediaTheme:()=>Ja,setSVG:()=>xs,setShadow:()=>_r,setSvgIcon:()=>pc,setTheme:()=>Za,splitSpacedValue:()=>sc});R();var Q=(e,t,r)=>{let n=r||A();if(!w(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(oe(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(T(e))[o,s,i]=e;else{let p=Ht(e);if(!p){let{color:u,gradient:d}=n,m=d[e]||u[e];return m?n.useVariable?`var(${m.var})`:m.value:e}if(p.passthrough)return p.passthrough;if(p.cssVar)return`var(${p.cssVar})`;o=p.name,s=p.alpha,i=p.tone}let{color:a,gradient:c}=n,l=a[o]||c[o];if(!l)return n.verbose&&console.warn("Can't find color ",o),e;t&&(l[t]?l=l[t]:n.verbose&&console.warn(e," - does not have ",t));let f=l.rgb;return f?(i&&!l[i]&&(f=hr(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:n.useVariable?`var(${l.var})`:`rgb(${f})`):n.useVariable?`var(${l.var})`:l.value},be=(e,t,r)=>{let n=r||A();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!w(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(oe(e))return`var(${e})`;let o;if(T(e))o=e[0];else{let l=Ht(e);if(!l)return e;if(l.passthrough)return l.passthrough;if(l.cssVar)return`var(${l.cssVar})`;o=l.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=S(a);if(c&&a.value)return Q(e,`@${t}`,r);if(c){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return Q(e,`@${t}`,r);{let l={};for(let f in a){if(f.charCodeAt(0)!==64)continue;let p=n.media[f.slice(1)];if(!p)continue;let u="@media "+(p==="print"?`${p}`:`screen and ${p}`);l[u]=Q(e,f,r)}return l}}else return n.verbose&&console.warn("Can't find color",e),e},br=(e,t,r)=>{let n=A();if(w(e)&&oe(e)){let h=e.slice(2);if(e=Q(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=h.split(" "),y=n.color[g[0]];if(y&&!y.value&&!y.rgb&&(w(y)||T(y)||S(y))&&(n.color[g[0]]=br(y,g[0]),y=n.color[g[0]]),y&&y.value){let b=y.rgb,_=g[1]!==void 0?g[1]:"1",x=g[2];x&&(b=hr(b,x)),e=`rgba(${b}, ${_})`}else{let b=g[2],_=g[1]!==void 0?g[1]:"1";if(b)try{let x=bt(g[0]);x&&x.length>=3?e=`rgba(${hr(x.slice(0,3).join(", "),b)}, ${_})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(T(e)&&(e={"@light":e[0],"@dark":e[1]}),S(e)){let h={};for(let g in e)h[g]=br(e[g],t,g.slice(0,1)==="@"?g.slice(1):g);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,b,_={};for(let x in h){if(x.charCodeAt(0)!==64)continue;let C=x.slice(1),E=h[x],P=E&&(E.value||E);!P||typeof P!="string"||(_[C]=P,(C==="light"||b===void 0)&&(b=P))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let x in _){let C=`[data-theme="${x}"]`;if(n.cssMediaVars[C]||(n.cssMediaVars[C]={}),n.cssMediaVars[C][y]=_[x],x==="light"||x==="dark"){let E=`@media (prefers-color-scheme: ${x})`;n.cssMediaVars[E]||(n.cssMediaVars[E]={}),n.cssMediaVars[E][y]=_[x]}}h.var=y}}return h}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),i=e.value||e;if(w(i)&&i.includes(".")&&!i.includes("(")){let[h,g]=i.split("."),y=n.color[h];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+g)||1})`)}if(w(i)&&!i.includes("(")&&!i.startsWith("#")){let h=Ht(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(w(g)||T(g)||S(g))&&(n.color[h.name]=br(g,h.name));let y=n.color[h.name];if(y&&y.rgb){let b=y.rgb;h.tone&&(b=hr(b,h.tone));let _=h.alpha?parseFloat(h.alpha):1;i=`rgba(${b}, ${_})`}}}let a=bt(i),[c,l,f,p=1]=a,u=parseFloat(p.toFixed(2)),d=`${c}, ${l}, ${f}`,m=`rgba(${d}, ${u})`;return n.useVariable&&(n.cssVars[s]=m),{var:s,rgb:d,alpha:u,value:m}},xr=(e,t,r)=>{let n=A();if(w(e)&&oe(e)&&(e=Q(e.slice(2))),T(e))return{"@light":xr(e[0],t,"light"),"@dark":xr(e[0],t,"dark")};if(S(e)){let i={};for(let a in e)i[a]=xr(e[a],t,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[s]=e.value||e),{var:s,value:e.value||e}};R();var AS=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"]),uh=["color","Color","background","Background","fill","Fill","stroke","Stroke"],ES=e=>{for(let t=0;t<uh.length;t++)if(e.includes(uh[t]))return!0;return!1},ys=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(a=>{let l=["color","Color","background","border"].some(f=>a.includes(f));return t[a]=l?Q(e[a]):e[a]}),t},Cn=e=>(e.value||(e.value=ys(e)),e.value),Ya=(e,t)=>{let r=A();if(r.useVariable)return Qe(e,t);let n=r.theme;if(w(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return Cn(i);e=[o,s||t]}}if(L(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return Cn(a[s]);if(i&&i[s])return Cn(i[s]);if(c&&c[s])return Cn(c[s])}else if(S(e))return ys(e)},TS=(e,t,r)=>{if(S(t))e.variants.inverse.value=ys(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},OS=(e,t,r,n)=>{let o=Ya(r);n[`&:${t}`]=o,S(r)&&!r.value&&(r.value=o)},RS=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return OS(e,o,s,t),e}),e):void 0},PS=(e,t,r,n)=>{let o=Ya(r);n[`@media (prefers-color-scheme: ${t})`]=o,S(r)&&!r.value&&(r.value=o)},IS=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&PS(e,o,s,t),o==="inverse"&&TS(e,s,t),e}),e):void 0},$S=(e,t)=>{let r=A(),{helpers:n}=e;return n?(Object.keys(n).map(s=>{let i=n[s];return w(i)?n[s]=r.theme[i]:Cn(n[s]),e}),e):void 0},Za=(e,t)=>{let r=A();if(r.useVariable)return Ja(e,t);let{state:n,media:o,helpers:s}=e,i=ys(e,t),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return RS(e,i),IS(e,i),$S(e,i),{var:c,value:i,state:n,media:o,helpers:s}};var Ka=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let 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===":")&&ES(l))for(let p in e){if(c.has(p))continue;let u=e[p]?.[l];if(u===void 0)continue;let d=Q(u,`@${p}`);d!==void 0&&w(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!AS.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 m in e)L(e[m]?.[l])&&(d[m]=e[m][l]);i[l]=Ka(d,`${t}-${u}`,r)}else if(f===":"&&p){let u=l.replace(/^:+/,""),d={};for(let m in e)L(e[m]?.[l])&&(d[m]=e[m][l]);i[l]=Ka(d,`${t}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let d=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${l}`,m=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,h;for(let g in e){if(c.has(g))continue;let y=e[g]?.[l];if(y===void 0)continue;let b=Q(y,`@${g}`);if(b===void 0)continue;(m&&g===m||!m&&(g==="light"||h===void 0))&&(h=b);let _=`[data-theme="${g}"]`;if(o[_]||(o[_]={}),o[_][d]=b,g==="dark"||g==="light"){let x=`@media (prefers-color-scheme: ${g})`;o[x]||(o[x]={}),o[x][d]=b}}h!==void 0&&(n[d]=h),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=(e,t,r,n)=>{let o=A(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(L(e)){if(a&&o.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=Ka(c,t,o);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]=Ja(f,t,c,n||p)}else if(!a){let p=Q(f,n),u=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],d=u.length?"-"+u.join("-"):"",h=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${d}-${c}`;o.useVariable?(o.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(w(e)&&oe(e)){let l=o.theme[e.slice(2)];return Qe(l,n)}return i},Xa=e=>{let t=A(),r={};for(let n in e){let o=n.slice(0,1);if(L(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Xa(e[n]):o==="."&&(r[`&${n}`]=Xa(e[n]))}else r[n]=e[n]}return r},dh=(e,t)=>{let r=t.shift();return e[r]?dh(e[r],t):e},ph=(e,t)=>T(t)?dh(e,t):w(t)&&e[t]?e[t]:e;var Qe=(e,t)=>{let r=A();if(w(e)&&oe(e)&&(e=Qe(e.slice(2))),!e||!w(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=T(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=ph(s,o):s&&t&&(s=ph(s,t)),Xa(s)};R();R();var Qa=(e,t)=>{let r=A(),n=`--font-${t}`;if(!e||T(e)&&!e[0])return;let o;if(e.isVariable){let s=Je(e.url,r.files)||e.url;us(s)?o=ps(s):o=mr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=kn(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>Je(i,r.files)||i):Je(e.url,r.files)||e.url;o=mr(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},ec=(e,t)=>{let r=A(),{fontFamily:n}=r;return wn(t||n,e)},bs=(e,t)=>{let r=A(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),S(s)&&(s=pr(s));let a=`--font-family-${t}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};R();var hh=e=>{let t=A(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,c=o.slice(1),{type:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:m,unit:h}=e;ee(i,{type:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:m,unit:h});let g=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||h,b=!i.unit&&g.has(h)?"rem":y,_=n[c],x="@media "+(_==="print"?`${_}`:`screen and ${_}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){ee(i,{sequence:{},scales:{},vars:{}}),Fe(i),gr(e,o);continue}ee(i,{sequence:{},scales:{},templates:{},vars:{}}),Fe(i),gr(e,o)}},mh=e=>{let t=A();if(e.h1Matches){let r=e.unit,n=Ha(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},tc=()=>{let e=A(),{typography:t}=e;Fe(t),mh(t),Kt(t),hh(t)},rc=e=>{let t=A(),{typography:r}=t;return wt(e,"fontSize",r)};R();R();var FS=e=>{let r=A().spacing||{},n=parseFloat(e.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return Fe(o),o},DS=e=>{for(let t in e){let r=e[t];if(!(t.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=e;ee(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Fe(r),gr(e,t)}},nc=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},oc=()=>{let e=A(),{spacing:t}=e;Fe(t),Kt(t),DS(t)},LS=e=>{let t=A(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:Fe(e)},he=(e,t="padding",r,n)=>{let o=LS(r);if(w(e)&&!n&&e.includes("(")){let i=qt(e);n=i[0],e=i[1]}let s=n?[e]:pr(e);if(T(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)=>wt(s[f],t+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return wt(e,t,o,n)}},ft=(e,t,r,n)=>{let o=A(),{spacing:s}=o,i=r||e[t];if(!n&&w(i)&&i.includes("(")){let a=qt(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=FS(e);return he(i,t,a,n)}return he(i,t,s,n)},sc=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=qr.some(i=>e.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};R();var _r=(e,t,r,n)=>{let o=A();if(T(e))return{"@light":_r(e[0],t,"light"),"@dark":_r(e[1],t,"dark")};if(S(e)){let a={};for(let c in e)a[c]=_r(e[c],t,c.startsWith("@")?c.slice(1):c);return a}w(e)&&!lt.test(e)&&(e=dr(e).map(a=>(a=a.trim(),a.split(/\s+/).map(c=>{if(c=c.trim(),!c)return"";if(c.startsWith("--"))return`var(${c})`;let l=Q(c);if(xt(l))return l;if(/^\d/.test(c)||c==="0"||c.includes("px")||c.slice(-2)==="em"||c==="inset"||c==="none")return c;let f=he(c,"shadow");return f&&f.shadow?f.shadow:c}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=e),{var:i,value:e}},ic=(e,t)=>{let r=A();if(t||(t=r.globalTheme),!w(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(oe(e))return`var(${e})`;let[n]=T(e)?e:e.split(" "),s=r.shadow[n],i=S(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(s[t])return s[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(i&&s.value)return s.value;if(i){let a={};for(let 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",e),e};R();var ac=()=>{let e=A(),{timing:t}=e;Fe(t),Kt(t)},et=e=>{let t=A(),{timing:r}=t;return r[e]||r[is(e)]||e},Ue=(e,t="timing")=>{let r=A(),{timing:n}=r;return wt(e,t,n)};R();var cc=()=>{let e=A(),{document:t,fontFamily:r,theme:n,typography:o}=e;return ee(t,{theme:n.document,fontFamily:wn(r),fontSize:o.base,lineHeight:o.lineHeight})};R();var fc={document:X},xs=(e,t)=>{let r=A();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?qa(t,e):e},uc=(e,t=fc)=>{let r=A(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];yh(n,t)},pc=(e,t)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[t]?xs(e,t):e},dc=(e,t=fc)=>{let r=A(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];yh(n,t)},lc=(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},NS=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,s=new r().parseFromString(n,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},gh=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},yh=(e,t=fc)=>{let r=A(),n=t.document||X;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),gs(e);let o=n.querySelector("#svgSprite"),s=gs(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=NS(n,s);if(o)if(a)gh(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let c=lc(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=lc(n);c&&c.nodeType&&(gh(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let c=lc(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};R();var hc=(e={})=>{let t=A(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let c=r,l=n.templates;c.body={...t.useDocumentTheme?Qe("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?Qe("document"):{};if(r.html&&Ae(r.html,a),n.unit){let{media:c}=t;for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let p=f.unit,u=f.base||n.base,d=f.browserDefault||n.browserDefault,m=l.slice(1),h=c[m];if(!h)continue;let g="@media "+(h==="print"?h:"screen and "+h);r[g]||(r[g]={}),r[g].html||(r[g].html={}),r[g].html.fontSize=u/d+p}}return G(ee(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};R();var MS=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),jS=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),BS=e=>MS.has(e),kt=e=>{let t=e+"";if(lt.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(oe(o))return`var(${o})`;if(BS(o)||/^\d/.test(o)||o==="0")return o;let s=Q(o);if(xt(s))return s;let i=he(o,"border");return i&&i.border?i.border:o}).join(" ")},bh=e=>lt.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(oe(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=Q(t);return xt(r)?r:t}).join(" "),xh=(e,t)=>ic(e,t),mc=(e,t)=>lt.test(e)?e:dr(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(oe(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Q(n);if(xt(o)){let i=be(n,t);return S(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=he(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),gc=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",a=dr(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||jS.has(f)||f==="transparent"||lt.test(f))return f;let p=Q(f);return xt(p)?p:f}).join(" ")));return n+a.join(", ")+s},_h=(e,t)=>{let r=A();return e.split(", ").map(n=>oe(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?gc(n,t):r.gradient[e]?{backgroundImage:be(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Ht(n)?`url(${n})`:n).join(" ")},Sh=e=>w(e)&&e.split(" ").map(t=>he(t,"gap").gap).join(" "),VS=e=>{let t=e.split(" ");return t.length?t.map(r=>oe(r)?`var(${r})`:r.length<3||r.includes("ms")?Ue(r).timing||r:et(r)?et(r):r).join(" "):e},yc=(e,t,r)=>{if(w(e))return e.split(",").map(n=>Ue(n).timing||n).join(",")},wh=e=>{let t=e.split(",");if(t.length)return t.map(VS).join(",")};function ie(e,t,r={},n={}){let o=Y.call(this,t||r[e]);if(o==null)return;let s;if(w(o)){if(o.includes("(")){let c=qt(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=nc(e);!i&&a&&!n.ratio&&(o=sc(o))}return n.ratio?ft(r,e,o,s):he(o,e,void 0,s)}var N=(e,t=null,r)=>ie(e,t,r,{ratio:!0}),bc=(e,t,r)=>{if(w(e))return{borderRadius:e.split(" ").map((n,o)=>ft(t,r,n)[r]).join(" ")}};R();var US=(e,t)=>{let r=A(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},Oe=e=>e,kh={color:br,gradient:xr,font:Qa,fontFamily:bs,fontfamily:bs,theme:Za,icons:pc,semanticIcons:Oe,semanticicons:Oe,svg:xs,svgData:Oe,typography:Oe,shadow:_r,spacing:Oe,media:Oe,grid:Oe,class:Oe,timing:Oe,reset:Oe,unit:Oe,animation:Oe,vars:US,sizes:Oe},zS=(e,t,r)=>{let n=A(),o=Na(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=kh[o]||kh[s];if(a)try{let c=a(t,r);return i&&(i[r]=c),i}catch(c){n.verbose&&console.warn("Error setting",s,"value",t,r,c)}n.verbose&&console.warn("Can not find",s,"method in scratch")},WS=(e,t)=>{let r=A(),n=e.toLowerCase();return Object.keys(t).sort((s,i)=>{let a=S(t[s])||T(t[s])?1:0,c=S(t[i])||T(t[i])?1:0;return a-c}).forEach(s=>{try{return zS(n,t[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",t[s],s,i)}}),r[n]||r[e]},vh=(e,t)=>{let r=t||A();r.globalTheme=e;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(e&&e!=="auto")a.setAttribute("data-theme",e),e==="dark"||e==="light"?a.style.colorScheme=e:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let 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(o&&r.cssVars){let a=r.scopeSelector||":root",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let 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},HS={},An=(e,t=HS)=>{let r=t.config||A(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:p,useDocumentTheme:u,useDefaultConfig:d,semanticIcons:m,files:h,assets:g,...y}=e;t.newConfig&&(r=th(t.newConfig)),h!==void 0&&(r.files=h),g!==void 0&&(r.assets=g),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),l!==void 0&&(r.useIconSprite=l),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),m!==void 0&&(r.semanticIcons=m),r.verbose&&console.log(r);let _=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=_&&_.defaultView||(typeof window<"u"?window:null),C=_&&(r.themeRoot||_.documentElement);if(C&&typeof C.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")C.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?C.style.colorScheme=r.globalTheme:C.style.colorScheme="light dark";else if(x&&x.matchMedia){let I=te=>{C.setAttribute("data-theme",te.matches?"dark":"light")},V=x.matchMedia("(prefers-color-scheme: dark)");if(I(V),C.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=I;try{V.addEventListener("change",I)}catch{V.addListener(I)}}}else C.setAttribute("data-theme","light"),C.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let E=Object.keys(y),P=new Set(E);if(E.forEach(O=>{let I=O.toLowerCase();I!==O&&P.has(I)&&G(y[I],y[O])}),E.map(O=>{let I=O.toLowerCase();if(!(I!==O&&P.has(I)))return WS(O,y[O])}),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{tc()}catch(O){r.verbose&&console.warn("Error applying typography sequence",O)}if(y.spacing)try{oc()}catch(O){r.verbose&&console.warn("Error applying spacing sequence",O)}if(y.timing)try{ac()}catch(O){r.verbose&&console.warn("Error applying timing sequence",O)}cc();let B=hc();return B&&(r.reset=B),r};var Sr=new Map,GS=null,_c=null,qS=null;function Sc(e){e.batchAtomicCss&&(_c=e.batchAtomicCss),e.compoundCssClass&&(qS=e.compoundCssClass)}var KS=new Set;function XS(e){try{let t=A();t&&(t.document=e)}catch{}e&&KS.add(e)}function Th(){try{let e=A();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}var YS={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 Ss(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 ZS(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Ss(t)}function Ch(e,t,r){let n=(r?r+"":"")+e+":"+t,o=Sr.get(n),s=o?null:Xt(e);if(!o){let a=YS[e]||Ss(e),c=ZS(t);o=r?`_${r}_${a}-${c}`:`_${a}-${c}`,Sr.set(n,o)}if(typeof t=="string"&&(t.indexOf("}")!==-1||t.indexOf("{")!==-1))return o;let i=`.${o}{${s||Xt(e)}:${t}}`;return De(i),o}var Ah=new WeakMap;function De(e,t){let r=Oh(t);if(!r)return;let n=Ah.get(r);if(n||(n=new Set,Ah.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var Eh=new WeakMap;function Oh(e){let t=e||Th();if(!t||!t.head)return null;let r=Eh.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return Eh.set(t,o),GS=o,o}var JS=8;function Yt(e,t,r){if(!e||typeof e!="object")return"";let n=null,o=0,s=[],i=[];for(let c in e){let l=e[c];l==null||l===!1||l===""||(typeof l=="object"?i.push([c,l]):_c?(n||(n=[]),n.push(c,String(l)),o++):s.push(Ch(c,String(l),r)))}if(n&&o>=JS){let c=n.join("\0"),l=_c(c),f=l.indexOf("\0"),p=l.substring(0,f),u=l.substring(f+1);if(u){let d=u.split(`
36
- `);for(let m=0;m<d.length;m++)d[m]&&De(d[m])}s.push(p)}else if(n)for(let c=0;c<n.length;c+=2)s.push(Ch(n[c],n[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push(QS(i[c][0],i[c][1],r));return s.concat(a).join(" ").trim()}var xc=new Map;function QS(e,t,r){let n=(r?r+"":"")+e+JSON.stringify(t),o=Sr.get(n);if(o){let u=xc.get(o);if(u)for(let d=0;d<u.length;d++)De(u[d]);return o}o=r?`_${r}_c${Ss(n)}`:`_c${Ss(n)}`;let s="",i=[],a=u=>typeof u=="string"&&(u.indexOf("{")!==-1||u.indexOf("}")!==-1),c=(u,d)=>{let m="";for(let h in d){let g=d[h];if(g!=null)if(typeof g=="object")c([...u,h],g);else{if(a(g))continue;m+=`${Xt(h)}:${g};`}}m&&(u.length===0?s+=m:i.push({chain:u,body:m}))};c([],t);let l=u=>{if(!u.length)return`.${o}`;let d=u[0].split(",").map(m=>m.trim()).map(m=>m.includes("&")?m.replace(/&/g,`.${o}`):m.startsWith(":")?`.${o}${m}`:`.${o} ${m}`);for(let m=1;m<u.length;m++){let h=u[m].split(",").map(y=>y.trim()),g=[];for(let y of d)for(let b of h)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}{.${o}{${s}}}`;f.push(u),De(u)}for(let u of i){let d=l(u.chain),m=`${e}{${d}{${u.body}}}`;f.push(m),De(m)}return xc.set(o,f),Sr.set(n,o),o}let p=l([e]);if(s){let u=`${p}{${s}}`;f.push(u),De(u)}for(let u of i){let m=`${l([e,...u.chain])}{${u.body}}`;f.push(m),De(m)}return xc.set(o,f),Sr.set(n,o),o}function ue(e){if(Oh(),typeof e=="string"){De(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let c in i){let l=c.startsWith("--")?c:Xt(c);a+=`${l}:${i[c]};`}De(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Xt(s);De(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let c=o[a];if(typeof c=="object"&&c!==null)i=!0;else{let l=a.startsWith("--")?a:Xt(a);s+=`${l}:${c};`}}if(s&&De(`${n}{${s}}`),i){let a=[],c=[];for(let l in o)typeof o[l]=="object"&&o[l]!==null&&(l.startsWith("@media")||l.startsWith("@supports")?a.push(l):c.push(l));a.sort((l,f)=>{let 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)ue({[`${n} ${l}`]:o[l]});for(let l of a)ue({[l]:{[n]:o[l]}})}}}}function ws(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${Xt(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return De(`@keyframes ${e}{${r}}`),e}function ew(){return Sr.size}R();var wc="http://www.w3.org/2000/svg",Cs=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"]),tw=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 ks(e){return tw.has(e)||Cs.has(e)}function As(e){return Cs.has(e)}function wr(e){let{tag:t,key:r}=e;if(typeof t=="function"&&(t=t(e)),t===!0&&(t=r),typeof t=="string"&&ks(t))return t;if(!r||typeof r!="string")return"div";let n=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),ks(o)&&!n.has(o)?o:"div"}var Rh={};function vs(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(As(e)){let n=t?.parent;if(e==="svg"||n?.node?.namespaceURI===wc)return r.createElementNS(wc,e);if(e!=="svg")return r.createElement("div")}return r.createElement(e)}function kr(e){let t=e.tag=wr(e),r=As(t)&&(t==="svg"||e.parent?.node?.namespaceURI===wc)?"svg:"+t:t,n=e?.context?.document||globalThis.document,o=Rh[r];if(o||(o=Rh[r]=vs(t,e)),!o)return null;let s=n&&o.ownerDocument!==n?vs(t,e):o.cloneNode(!0);return t==="string"&&(s.nodeValue=e.text||""),s}var Re=new Set(["extends","children","content","childrenAs","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","subscribeTo","autoGrow","__name","__ref","__hash","__text","parent","node"]),Ph={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},vr=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove"]),kc=new Set(["load","error","abort","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),Ih=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Es=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 vc=new WeakMap,rw={passive:!0},nw={passive:!0,capture:!0},Cc=(e,t)=>Ih.has(e)?t?nw:rw:t||!1;function Fh(e){let t=vc.get(e);return t||(t={handlers:new Map,installed:new Set},vc.set(e,t)),t}function ow(e,t){let r=Fh(t);if(r.installed.has(e))return;r.installed.add(e);let n=e==="focus"||e==="blur"||e==="focusin"||e==="focusout"||e==="mouseenter"||e==="mouseleave",o=e==="mouseenter"||e==="mouseleave";t.addEventListener(e,s=>{let i=s.target;for(;i&&i!==t;){let a=r.handlers.get(e);if(a){let c=a.get(i);if(c){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},Cc(e,n))}function Ac(e,t,r,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let o=Fh(n);ow(e,n),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,r)}function Ec(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let n=vc.get(r);if(!n)return;let o=n.handlers.get(e);o&&o.delete(t)}function $h(e){return Es.has(e)&&!vr.has(e)}function Ts(e,t,r){let{node:n,context:o}=t;if(!n)return;let s=o?.designSystem,i=c=>{s&&fe(s);try{let l=r.call(t,c,t,t.state,o);if(l&&typeof l.then=="function"){l.catch(f=>{t.error=f,console.error("[DOMQL] Async event error:",f)}).finally(()=>{s&&se()});return}}catch(l){if(t.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}s&&se()},a=kc.has(e);if(!a&&$h(e)){let c=o?.rootNode||n.ownerDocument?.documentElement;Ac(e,n,i,c)}else n.addEventListener(e,i,Cc(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(!a&&$h(e)){let c=o?.rootNode||n.ownerDocument?.documentElement;Ec(e,n,c)}else n.removeEventListener(e,i,Cc(e,!1))})}function Dh(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 Os(e,t,r){let n=Dh(t);if(!n.length)return;let o=(e.context||r?.context||{}).components||{};for(let s=0;s<n.length;s++){let i=Lh(n[s],o);i&&i!==t&&Nh(e,i,r,new Set([t]))}}function Lh(e,t){if(typeof e=="string"){if(e.includes(">")){let r=e.split(">").map(o=>o.trim()),n=t[r[0]]||t[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return t[e]||t[`smbls.${e}`]||null}return typeof e=="object"&&e!==null?e:null}function Nh(e,t,r,n=new Set){if(n.has(t))return;n.add(t);let o=Dh(t);if(o.length){let s=(e.context||r?.context||{}).components||{};for(let i=0;i<o.length;i++){let a=Lh(o[i],s);a&&Nh(e,a,r,n)}}for(let s in t){if(s==="extends"||s==="extend")continue;let i=t[s];e[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?e[s]={...i}:e[s]=i:typeof e[s]=="object"&&typeof i=="object"&&!Array.isArray(e[s])&&!Array.isArray(i)&&e[s]!==null&&i!==null?e[s]=Mh(e[s],i):e[s]=i}}function Mh(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Mh(o,s):r[n]=s}return r}lr();function Rs(e={},t={}){let r=this,n=r.__ref;if(n){if((typeof e=="string"||typeof e=="number")&&(e={text:e}),!t.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,t)===!1)return r;if($t(()=>{if(e.state&&le(r.state)&&r.state.update(e.state),e.text!==void 0&&(r.text=e.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=e.text??"":r.node.textContent=e.text??"")),e.html!==void 0&&(r.html=e.html,!n.__exec.html&&r.node&&(r.node.innerHTML=e.html)),e.style&&r.node?.style){if(!n.__exec.style)for(let o in e.style){let s=e.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,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 o in e.attr){let s=e.attr[o];s==null||s===!1?r.node.removeAttribute(o):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(o,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,e.attr)}if(e.data&&r.node?.dataset){for(let o in e.data)r.node.dataset[o]=e.data[o];r.data||(r.data={}),Object.assign(r.data,e.data)}for(let o in e){if(Re.has(o)||o==="state")continue;let s=e[o],i=r[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,t);else if(typeof s=="object"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&ze(s,r,o,t)}else o!=="text"&&o!=="html"&&o!=="style"&&o!=="attr"&&o!=="data"&&(r[o]=s)}}),r.node&&n.__conditionalRunners)for(let o of n.__conditionalRunners)o();return Be("update",r),!t.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,t),r}}function Cr(e){if(!e)return;let t=e.__ref;if(t){try{typeof e.onBeforeRemove=="function"&&e.onBeforeRemove(e,e.state,e.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(t.__effects){for(let r=0;r<t.__effects.length;r++)t.__effects[r].dispose();t.__effects.length=0}if(t.__eventCleanup){for(let r=0;r<t.__eventCleanup.length;r++)t.__eventCleanup[r]();t.__eventCleanup.length=0}if(t.__children){for(let r=0;r<t.__children.length;r++){let n=t.__children[r],o=e[n];o&&o.__ref&&Cr(o)}t.__children.length=0}if(e.node?.parentNode&&e.node.remove(),e.state?.destroy&&e.state.__element===e&&e.state.destroy(),e.parent?.__ref?.__children){let r=e.parent.__ref.__children.indexOf(e.key);r!==-1&&e.parent.__ref.__children.splice(r,1),delete e.parent[e.key]}try{typeof e.onRemove=="function"&&e.onRemove(e)}catch(r){console.error("[smbls] onRemove error:",r)}e.node=null,e.parent=null,e.__ref=null}}function Ps(){Cr(this)}R();R();var sw=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],iw=["none","forwards","backwards","both"],aw=["normal","reverse","alternate","alternate-reverse"],cw=["running","paused"],lw=e=>/^[\d.]+m?s$/.test(e),fw=0,jh=new Map,Tc=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(S(e)){let o=JSON.stringify(e),s=jh.get(o);if(s)return s;let i=`smbls-anim-${fw++}`,a=ws(i,e);return jh.set(o,a),a}let n=r&&r[e];return S(n)?ws(e,n):e},uw=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let p of n)r&&r[p]?o=p:lw(p)?s.push(p):sw.includes(p)||p.startsWith("cubic-bezier")||p.startsWith("steps(")?i=p:p==="infinite"||/^\d+$/.test(p)?a=p==="infinite"?p:Number(p):aw.includes(p)?c=p:iw.includes(p)?l=p:cw.includes(p)?f=p:o||(o=p);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},Bh={animation:(e,t)=>{if(w(e)&&e.includes(" ")){let r=uw(e,t);return{animationName:Tc(r.name||e,t),animationDuration:r.durations[0]||Ue(t.animationDuration||"A").timing,animationDelay:r.durations[1]||Ue(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||et(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:Tc(e,t),animationDuration:Ue(t.animationDuration||"A").timing,animationDelay:Ue(t.animationDelay||"0s").timing,animationTimingFunction:et(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:Tc(e,t)}),animationDuration:e=>({animationDuration:Ue(e).timing}),animationDelay:e=>({animationDelay:Ue(e).timing}),animationTimingFunction:e=>({animationTimingFunction:et(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};R();var Vh={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>N("height",e,t),width:(e,t)=>N("width",e,t),boxSizing:e=>me(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!w(e))return;let[t,r]=e.split(" ");return{...ie("height",t),...ie("width",r||t)}},inlineSize:(e,t)=>N("inlineSize",e,t),blockSize:(e,t)=>N("blockSize",e,t),minWidth:(e,t)=>N("minWidth",e,t),maxWidth:(e,t)=>N("maxWidth",e,t),widthRange:e=>{if(!w(e))return;let[t,r]=e.split(" ");return{...ie("minWidth",t),...ie("maxWidth",r||t)}},minHeight:(e,t)=>N("minHeight",e,t),maxHeight:(e,t)=>N("maxHeight",e,t),heightRange:e=>{if(!w(e))return;let[t,r]=e.split(" ");return{...ie("minHeight",t),...ie("maxHeight",r||t)}},size:e=>{if(!w(e))return;let[t,r]=e.split(" ");return{...N("inlineSize",t),...N("blockSize",r||t)}},minBlockSize:(e,t)=>N("minBlockSize",e,t),minInlineSize:(e,t)=>N("minInlineSize",e,t),maxBlockSize:(e,t)=>N("maxBlockSize",e,t),maxInlineSize:(e,t)=>N("maxInlineSize",e,t),minSize:e=>{if(!w(e))return;let[t,r]=e.split(" ");return{...ie("minInlineSize",t),...ie("minBlockSize",r||t)}},maxSize:e=>{if(!w(e))return;let[t,r]=e.split(" ");return{...ie("maxInlineSize",t),...ie("maxBlockSize",r||t)}},borderWidth:(e,t)=>N("borderWidth",e,t),padding:(e,t)=>N("padding",e,t),scrollPadding:(e,t)=>N("scrollPadding",e,t),paddingInline:e=>{if(!w(e))return;let[t,r]=e.split(" ");return{...ie("paddingInlineStart",t),...ie("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!w(e))return;let[t,r]=e.split(" ");return{...ie("paddingBlockStart",t),...ie("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>N("paddingBlockStart",e,t),paddingBottom:(e,t)=>N("paddingBlockEnd",e,t),paddingLeft:(e,t)=>N("paddingInlineStart",e,t),paddingRight:(e,t)=>N("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>N("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>N("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>N("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>N("paddingInlineEnd",e,t),margin:(e,t)=>N("margin",e,t),marginInline:e=>{if(!w(e))return;let[t,r]=e.split(" ");return{...ie("marginInlineStart",t),...ie("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!w(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...ie("marginBlockStart",r),...ie("marginBlockEnd",n||r)}},marginTop:(e,t)=>N("marginBlockStart",e,t),marginBottom:(e,t)=>N("marginBlockEnd",e,t),marginLeft:(e,t)=>N("marginInlineStart",e,t),marginRight:(e,t)=>N("marginInlineEnd",e,t),marginInlineStart:(e,t)=>N("marginInlineStart",e,t),marginInlineEnd:(e,t)=>N("marginInlineEnd",e,t),marginBlockStart:(e,t)=>N("marginBlockStart",e,t),marginBlockEnd:(e,t)=>N("marginBlockEnd",e,t),gap:e=>({gap:Sh(e)}),columnGap:(e,t)=>ft(t,"columnGap",e),rowGap:(e,t)=>ft(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!w(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!w(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>bc(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>bc(e??t.round,t,"borderRadius")};var Uh={fontSize:e=>rc(e)||e,fontFamily:e=>({fontFamily:ec(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})};var zh={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0};var Wh={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>he(r,"k").k).join(" ")}},left:e=>he(e,"left"),top:e=>he(e,"top"),right:e=>he(e,"right"),bottom:e=>he(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>he(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=>he(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};R();var We=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},Hh={theme:(e,t)=>{if(e)return t.themeModifier?Qe(e,`@${t.themeModifier}`):Qe(e)},color:(e,t)=>{let r=We(t);if(e)return{color:be(e,r)}},background:(e,t)=>{let r=We(t);if(e)return w(e)&&e.includes("gradient")?{background:gc(e,r)}:{background:be(e,r)}},backgroundColor:(e,t)=>{let r=We(t);if(e)return{backgroundColor:be(e,r)}},backgroundImage:(e,t,r,n)=>{let o=We(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:_h(e,o)}},textStroke:e=>({WebkitTextStroke:bh(e)}),outline:e=>({outline:kt(e)}),outlineOffset:(e,t)=>N("outlineOffset",e,t),border:e=>({border:kt(e)}),borderColor:(e,t)=>{let r=We(t);if(e)return{borderColor:be(e,r)}},borderTopColor:(e,t)=>{let r=We(t);if(e)return{borderTopColor:be(e,r)}},borderBottomColor:(e,t)=>{let r=We(t);if(e)return{borderBottomColor:be(e,r)}},borderLeftColor:(e,t)=>{let r=We(t);if(e)return{borderLeftColor:be(e,r)}},borderRightColor:(e,t)=>{let r=We(t);if(e)return{borderRightColor:be(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=We(t);if(e)return{boxShadow:xh(e,r)}},boxShadow:(e,t)=>{if(!w(e))return;let[r,n]=e.split("!importan"),o=We(t),s=n?" !important":"";return{boxShadow:mc(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:mc(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:kt(e)})};var Is={transition:e=>({transition:wh(e)}),transitionDuration:e=>({transitionDuration:yc(e)}),transitionDelay:e=>({transitionDelay:yc(e)}),transitionTimingFunction:e=>({transitionTimingFunction:et(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};R();var Gh={flow:(e,t)=>{let r=t.reverse;if(!w(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var qh={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 pe={...Bh,...Vh,...Uh,...zh,...Wh,...Hh,...Is,...Gh,...qh};var xe=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"]);R();var pw=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,dw=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=Le(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(pw),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=n.designSystem?.scopeSelector||":root",p=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${p} &`]:i}}return l},Kh=(e,t,r)=>({[e]:Le(t,r)}),En=(e,t,r)=>{let n=`&${e}`,o=Le(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[n]=s);for(let l in i){let f=a.map(p=>`${p} ${l}`).join(", ");c[f]=i[l]}return c}}return{[n]:o}},Oc=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return v(r)?r.call(t,t):!!r},hw=(e,t,r)=>{let n=e.slice(1),o=Oc(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Le(t,r)},mw=(e,t,r)=>({[e]:t}),gw=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Oc(n,r);s!==void 0&&(o=s)}if(o)return Le(t,r)},yw=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Oc(n,r);s!==void 0&&(o=s)}if(!o)return Le(t,r)},Xh=(e,t)=>Le(e,t),Yh={"@":dw,":":En,"[":En,"*":En,"+":En,"~":En,"&":Kh,">":Kh,$:hw,"-":mw,".":gw,"!":yw};var Rc=jt(),bw=(e,t,r)=>{let n=t?.context?.designSystem;n&&fe(n);try{let o={},s={},i=(a,c)=>{if(r.unpack){o={...o,...c};return}o[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)=>ee(u,f[d]),{});o.designSystemClass=p}}else if(a==="true"){let l=Y(c,t);ee(o,Xh(l,t))}else if(t.classlist[a]){let l=t.classlist[a],f=v(l)?l(t,t.state,t.context):l;f&&i(a,f),!Rc&&S(o[a])&&(o[a].label=a)}else if(pe[a]){let l=Y(c,t);T(l)&&(l=l.reduce((p,u)=>ee(p,u),{}));let f=pe[a](l,t,t.state,t.context);T(f)&&(f=f.reduce((p,u)=>ee(p,u),{})),f&&i(a,f),!Rc&&S(o[a])&&(o[a].label=a)}else if(xe.has(a)){let l=Y(c,t);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!Rc&&S(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&se()}},xw=(e,t)=>{let r={};for(let n in e){let o=Yh[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?Ae(r[i],s[i]):r[i]=s[i])}}return r},Le=(e,t,r={unpack:!0})=>{let[n,o]=bw(e,t,r),s=xw(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return po(n,s);n._selectors=s}return n},eR=(e,t)=>{let r={};if(e.class)for(let n in e.class)r[n]=e.class[n](t);return r};R();var _w=e=>{if(S(e))return Le(e,e)},sR=(e,t)=>{let r=_w(e);return typeof t=="function"?t(r):Yt(r)};R();function Qh(e,t,r){let n=e?.context?.analyze;if(!n||!n.emit||t==="warn"&&!n.shouldCapture("warnings")||t==="error"&&!n.shouldCapture("errors"))return;let o=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:t==="error"?"error":"warning",level:t,hook:t==="error"?"el.error":"el.warn",element:{key:e.key!=null?String(e.key):null,name:e.__name||null,tag:e.tag||null},message:o||null,args:r})}function Sw(...e){return Qh(this,"warn",e),Zo.apply(this,e)}function ww(...e){return Qh(this,"error",e),ur.apply(this,e)}var Zh={update:Rs,remove:Ps,getDB:ts,getQuery:rs,getRootData:Ko,getChildren:zo,getPath:Wo,nextElement:Jo,previousElement:Qo,verbose:yn,warn:Sw,error:ww,variables:es,spotByPath:Uo,set(e,t){if(this.removeContent(),e!=null){let r=this.context?.__create;r&&r(e,this,"content",t)}this.__ref&&(this.__ref.contentManaged=!0)},reset(e){let t=this.context?.__create;if(!t)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),t(o,r,n,e)},lookup(e){let t=this.parent;for(;t;){if(typeof e=="function"){if(e(t))return t}else if(typeof e=="string"){if(t.key===e)return t;if(t[e]&&t[e].__ref)return t[e]}t=t.parent}return null},lookdown(e){let t=this.__ref;if(!t?.__children)return null;for(let r of t.__children){let n=this[r];if(!n)continue;if(typeof e=="function"){if(e(n))return n}else if(typeof e=="string"&&n.key===e)return n;let o=n.lookdown?.(e);if(o)return o}return null},lookdownAll(e,t=[]){let r=this.__ref;if(!r?.__children)return t;for(let n of r.__children){let o=this[n];o&&(typeof e=="function"?e(o)&&t.push(o):typeof e=="string"&&o.key===e&&t.push(o),o.lookdownAll?.(e,t))}return t},getRef(){return this.__ref},getRoot:qo,getRootState:Go,getRootContext:Xo,getContext:Yo,parse(e){let t={},r=e?new Set(e):null,n=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!r?.has(o)){if(n&&n[o]!==void 0){t[o]=n[o];continue}typeof this[o]!="function"&&(t[o]=this[o])}return t},parseDeep(e){let t=this.parse(e),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(t[n]=this[n].parseDeep(e));return t},keys(){return Object.keys(this)},log(...e){if(e.length){let t={};for(let r of e)t[r]=this[r];console.log(t)}else console.log(this)},setProps(e,t){return this.update(e,t)},setNodeStyles(e){if(this.node?.style)for(let t in e){let r=e[t];if(r==null)continue;let n=t.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(e,...t){let r=this.context,n=r?.methods?.[e]||r?.functions?.[e]||r?.utils?.[e]||this[e];if(typeof n=="function")return n.call(this,...t)},removeContent(){let e=this.__ref;if(!e?.__children)return;let t=this.content;if(t?.remove){t.remove(),delete this.content;let r=e.__children.indexOf("content");r!==-1&&e.__children.splice(r,1)}t?.node?.parentNode&&t.node.parentNode.removeChild(t.node)}},Jh=new WeakMap;function kw(e){if(!e)return Zh;let t=Jh.get(e);if(t)return t;t=Object.create(Zh);let r=e.methods;if(r)for(let n in r)t[n]=r[n];return Jh.set(e,t),t}function $s(e){let t=kw(e.context);Object.setPrototypeOf(e,t)}R();lr();var vw=(e,t,r)=>{Object.defineProperty(e,t,{value:r,enumerable:!1,configurable:!0,writable:!0})},He=(e,t)=>{if(le(t)){let o=t.__raw||t;t.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){t[s]=!t[s]},enumerable:!1,configurable:!0}),t.set||Object.defineProperty(o,"set",{value:function(s,i={}){return t.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&t.update(s,i),t},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,a={}){let 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(o,"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(o,"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(o,"reset",{value:function(s={}){let i=t.parse();return t.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(t);return t.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(t),t.update(t.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=t;for(;a?.parent&&le(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(s,i={}){if(t.parent)return t.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return t.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=t,i=le(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,le(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!t||typeof t!="object")return;let r=()=>{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&delete t[o]},n={update(o){if(!o||typeof o!="object")return t;for(let s in o)t[s]=o[s];return t},apply(o){if(typeof o!="function")return t;let s=o(t);return s?t.update(s):t},parse(){return{...t}},toggle(o){return t[o]=!t[o],t},set(o){if(!o||typeof o!="object")return t;r();for(let s in o)t[s]=o[s];return t},replace(o){return t.set(o)},clean(){return r(),t}};for(let o in n)typeof t[o]!="function"&&vw(t,o,n[o])};var Cw=function(e,t,r){return e.state=em(e,t,r),e.state},em=function(e,t,r){let{__ref:n}=e,o=e.state;if(o==null||o===!1){let s=t?.state||{};return He(e,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",Aw(o,e,t);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=je({value:o});return s.__element=e,t?.state&&(s.parent=t.state),He(e,s),s}if(typeof o=="function"&&(o=o(e,t?.state)||{}),typeof o=="object"&&!le(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=je({...o});if(s.__element=e,!Object.getOwnPropertyDescriptor(s,"root")){let i=t?.state?.root||t?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return t?.state&&(s.parent=t.state,t.state.__children&&(t.state.__children[e.key]=s)),He(e,s),typeof e.onStateCreated=="function"&&e.onStateCreated(e,s,e.context,r),s}return le(o)?(o.__element=e,o):t?.state||{}};function Pc(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function Aw(e,t,r){if(!r?.state)return{};if(e===".")return r.state;if(e.startsWith("../")){let o=e.slice(3),s=r.state?.parent;return o&&s?Pc(s,o):s??r.state??{}}if(e.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let s=e.slice(2);return s?Pc(o,s):o??{}}let n=Pc(r.state,e);if(n&&typeof n=="object"&&!le(n)&&!Object.getOwnPropertyDescriptor(n,"root")){let o=r.state?.root||r.state;Object.defineProperty(n,"root",{get:()=>o,enumerable:!1,configurable:!0})}return n}var Ew=(e,t)=>{if(!e)return rm;let r=Rw(e,t);return!r||!r.state?rm:Iw(r.state)},Tw=()=>Hr()!=null,Ow=128;function Rw(e,t){let r=typeof t=="function"?t:typeof t=="string"?s=>!!s?.[t]:s=>!!s?.state,n=e,o=null;for(let s=0;s<Ow&&n;s++){if(r(n)&&n.state)return n;if(n.state&&!o&&(o=n),!n.parent||n.parent===n)break;n=n.parent}return o}var Pw={get(e,t){return e[t]}},tm=new WeakMap,Iw=e=>{let t=tm.get(e);return t||(t=new Proxy(e,Pw),tm.set(e,t)),t},rm=new Proxy(Object.create(null),{get(){},has(){return!1}});R();var ER=["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"],Ic={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"]},$w=["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"],$c=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-")||$c(t)||Ic.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(Ic,e)?Ic[e].includes(t):!1,im=e=>{if(!w(e))return!1;let t=e.toLowerCase();return $w.includes(t)},TR=(e,t,r)=>{let n={};for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(r&&o in r)continue;if(o==="aria"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])ve(t[o][a])&&(n["aria-"+a]=t[o][a]);continue}if(o==="data"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])if(ve(t[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());n["data-"+c]=t[o][a]}continue}let s=Jt(e,o),i=im(o);if(ve(t[o])&&(s||i)){let a=$c(o)||o;n[a]=t[o]}}return n},OR=(e,t)=>{let r={};if(e.attr)for(let n in e.attr)r[n]=e.attr[n](t,t.state,t.context);if(e.aria&&typeof e.aria=="object")for(let n in e.aria){let o=e.aria[n];typeof o=="function"&&(r["aria-"+n]=o(t,t.state,t.context))}if(e.data&&typeof e.data=="object")for(let n in e.data){let o=e.data[n];if(typeof o=="function"){let s=n.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=o(t,t.state,t.context)}}return r},Zt=(e,t)=>{let r=e.call("exec",t,e);if(r)return w(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r},nm=(e,t)=>{let r=(e.preSrc||"")+(Zt(e,t)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=e;if(!n.files&&!n.assets)return r;if(r.startsWith("/assets/")){let o=r.slice(8),s=n.assets&&(n.assets[r]||n.assets[o]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let o=r.slice(7),s=n.files&&(n.files[r]||n.files[o]);return s&&s.content?s.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},om={src:e=>nm(e,e.src),href:e=>Zt(e,e.href),action:e=>Zt(e,e.action),poster:e=>nm(e,e.poster),data:e=>Zt(e,e.data)},am=e=>{let t=e.tag||"div",r={};for(let n in om)if(e[n]!==void 0&&Jt(t,n)){let o=om[n](e);o!==void 0&&(r[n]=o)}return r},sm=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return v(r)?r.call(t,t):!!r},Fw=(e,t,r)=>{if(e==="$"){let o=sm(t,r);return o===void 0&&(o=!!r[t]),o}let n=r[t]===!0||r.state[t];if(!n){let o=sm(t,r);o!==void 0&&(n=o)}return e==="."?!!n:!n},Dw=new Set(["$",".","!"]),RR=(e,t,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(Fw(a,c,f))return v(l)?l(f):l}};for(let s in e){let i=s.charAt(0);if(!Dw.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])o("aria-"+d,a[l][d],i,c);continue}if(l==="data"&&a[l]&&typeof a[l]=="object"){for(let d in a[l]){let m=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase());o("data-"+m,a[l][d],i,c)}continue}let f=Jt(t,l),p=im(l);if(!f&&!p)continue;let u=$c(l)||l;o(u,a[l],i,c)}}return n};var Lw=1;function Er(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function Nw(e){return e.charAt(2).toLowerCase()+e.slice(3)}function Mw(e){return e.toLowerCase()}function Nc(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Nc(o,s):r[n]=s}return r}function ze(e,t,r,n={},o){if(e==null||e===!1)return null;(typeof e=="string"||typeof e=="number")&&(e={text:e});let s=Object.create(null);s.key=r||e.key||`_${Lw++}`,s.parent=t||null,s.context=e.context||t?.context||n.context||{},s.context.__create||(s.context.__create=ze);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 h=r.indexOf("_");if(h>0){let g=r.substring(0,h),y=s.context?.components;y&&(y[g]||y["smbls."+g])&&(e={extends:g,...e})}}Os(s,e,n);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let h in e){if(h==="parent"||h==="node"||h==="__ref"||h==="extends"||h==="context"||h==="props")continue;let g=e[h],y=s[h],b=y&&g&&typeof y=="object"&&typeof g=="object"&&!Array.isArray(y)&&!Array.isArray(g)&&typeof y!="function"&&typeof g!="function";b&&h.charCodeAt(0)>=65&&h.charCodeAt(0)<=90?s[h]=Nc(y,g):b&&a.has(h)?s[h]={...y,...g}:s[h]=g}function l(h){for(let g in h){let y=h[g],b=s[g],_=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";_&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=Nc(b,y):_&&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||null;if(e.scope!==void 0||f){let h={};f&&Object.assign(h,f),e.scope!==void 0&&Object.assign(h,e.scope),s.scope=Ti(h,d)}else d&&(s.scope=d);if(e.if!==void 0&&(s.if=e.if),$s(s),jw(s,t,e),s.if!=null){let h;if(typeof s.if=="function")try{h=s.if(s,s.state,s.context)}catch(g){if(h=!1,i.__ifError=g,typeof console<"u"&&console.warn){let y=s.key||s.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${y} \u2014 treating as false:`,g?.message||g)}}else h=s.if;i.__if=!!h}if(i.__if)typeof e.if=="function"&&(i.__ifInitialized=!0);else return t&&(t[s.key]=s),typeof e.if=="function"&&Mc(s,{if:e.if}),s;s.tag||(s.tag=wr(s)),vt("Init",s,n);let m=s.node=kr(s);if(!m)return s;vt("AttachNode",s,n),m.setAttribute&&s.key&&m.setAttribute("data-key",s.key),m.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&m.setAttribute("data-smbls-app",s.context.key),s.id&&m.setAttribute&&(m.id=s.id),um(s,n),Mc(s,e),jc(s),lm(s),qw(s);try{pm(s,n)}catch(h){if(typeof console<"u"&&console.error){let g=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${g}:`,h?.message||h,h?.stack?`
37
- `+h.stack.split(`
34
+ src: ${i};`},gr=(t,e,r,n)=>`@font-face {${Fa(t,e,r,n)}
35
+ }`,kn=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=e[o],f=Array.isArray(s)?s.map(p=>Jt(p,r)||p):Jt(s,r)||s;return Fa(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),j_=t=>Object.keys(t).map(r=>kn(r,t[r].value)),Zd=(t,e,r)=>{if(e&&e.isVariable){let s=Jt(e.url,r)||e.url;return us(s)?ps(s):gr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return kn(t,e,r).map(Xd);let o=Array.isArray(e.url)?e.url.map(s=>Jt(s,r)||s):Jt(e.url,r)||e.url;return gr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Da=(t,e)=>Object.keys(t).map(n=>Zd(n,t[n].value,e));P();P();P();var ds={};F(ds,{animation:()=>iS,breakpoints:()=>oS,class:()=>pS,color:()=>Y_,devices:()=>sS,document:()=>nS,font:()=>U_,fontFace:()=>H_,fontFamily:()=>z_,fontFamilyTypes:()=>W_,gradient:()=>X_,grid:()=>uS,icons:()=>Q_,media:()=>G_,reset:()=>dS,semanticIcons:()=>tS,sequence:()=>Ge,shadow:()=>J_,sizes:()=>gS,spacing:()=>K_,svg:()=>aS,svgData:()=>cS,templates:()=>lS,theme:()=>Z_,timing:()=>rS,typography:()=>La,unit:()=>B_,vars:()=>hS});var Ge={"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 B_={default:"em"};var V_={browserDefault:16,base:16,type:"font-size",ratio:Ge["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},La=V_;var U_={};var z_={},W_={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},H_={};var G_={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var q_={base:La.base,type:"spacing",ratio:Ge.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},K_=q_;var Y_={},X_={};var Z_={};var J_={};var Q_={},tS={};var eS={default:150,base:150,type:"timing",ratio:Ge["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},rS=eS;var nS={};var oS={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},sS={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 iS={};var aS={},cS={};var lS={};var fS={},uS=fS;var pS={};var dS={},hS={},gS={};var Jd={},Qd={},hs=ds,gs={},Ma=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in hs){let e=t.toLowerCase();gs[e]=hs[t];let r=Ma(e);r!==e&&(gs[r]=hs[t]),e!==t&&(gs[t]=hs[t])}var Na={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Jd,cssMediaVars:Qd,CSS_VARS:Jd,CSS_MEDIA_VARS:Qd,_scratchConfig:!0,...gs},th=Q(Na),_e={active:"0",0:Na},ZE=t=>(vt(t)&&(_e.active=t),_e[t||_e.active]),vn=[],ft=t=>{t&&t._scratchConfig&&vn.push(t)},st=()=>{vn.pop()},E=t=>vn.length?vn[vn.length-1]:_e[t||_e.active]||Na,eh=t=>{if(_(t))return _e.active="1",_e[1]=G(t,Q(th)),t},mS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],yS=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],bS=t=>{for(let e of yS){let r;for(let n of e){let o=t[n];_(o)&&(r=r?G(o,r):o)}if(r)for(let n of e)_(t[n])&&(t[n]=r)}},rh=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:E(),o=Q(!r&&n&&n._scratchConfig?n:th);for(let i of mS)delete o[i];let s=G(e||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,bS(s),t&&(_e[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"},ja=(t,e)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},e.scales[r]=s;let c=nh.has(e.unit)?"rem":e.unit;e.vars[n]=s+c},qe=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},nh=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ba=(t,e)=>{let{base:r,type:n,unit:o}=e,s=nh.has(o)?"rem":o,i=(Gr(s)?1:r)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=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(sh,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}))`}},oh=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,l=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},Va=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Ua=(t,e)=>Va(t,e).map(r=>r/t),za=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[p,u,d]=Va(o,s);l>16?f=[p,u,d]:f=[p,d],f.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,w=oh(g+1,f,i,e),x={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:w,index:b};ja(x,e)})},sh=1.618,xS=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let n=Math.abs(t),o=e*Math.pow(r,t),s=e*Math.pow(r,n)/Math.pow(sh,2*n);return Math.max(o,s)},Ft=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=o[1]-l,p=Se[f],u=xS(f,r,n),d=~~(u/r*100)/100,h=c+p,g=Ba(f,t),m={key:p,variable:h,value:u,base:r,scaling:d,scalingVariable:g,ratio:n,index:f};ja(m,t),s&&za(m,t)}return t},_S=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=S(e)?e:Se[e],a=S(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=n*Math.pow(o,a),f=~~(l/n*100)/100,d="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=Ba(a,t),g={key:i,variable:d,value:l,base:n,scaling:f,scalingVariable:h,ratio:o,index:a};return ja(g,c),s&&za(g,c),c},Wa=(t="A",e)=>{let r=E(),{unit:n}=r;if(S(t)&&ot(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(qr.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+"-":""}${as(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,v]=g.split("+"),A=`${y(x)} + ${y(v)}`;return h?`calc((${A}) * -1)`:`calc(${A})`}else if(g.includes("*")){let[x,v]=g.split("*"),A=`${y(x)} * ${y(v)}`;return h?`calc((${A}) * -1)`:`calc(${A})`}else if(g.includes("-")){let[x,v]=g.split("-"),A=`${y(x)} - ${y(v)}`;return h?`calc((${A}) * -1)`:`calc(${A})`}let b=r.sizes;if(b){let x=b[t]||b[t.toLowerCase()];if(x!==void 0)return h?`calc(${x} * -1)`:x}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||r.useVariable){let x=`var(${u}${g}${m})`;return h?`calc(${x} * -1)`:x}let w=o?o[g]:null;return w?s==="ms"||s==="s"?h+w.val+s:h+w.scaling+s:console.warn("can't find",o,g)},ih=(t,e)=>{if(!["+","-","*","/",","].filter(s=>t.includes(s+" ")).length)return t;let n=/(\s*[+\-*/,]\s*)/;return t.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Wa(i,e)}).join("")},we=(t,e,r,n)=>{if(typeof t!="string")return E().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=qe(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=ih(t,r):t=Wa(t,r),{[e]:n?`${n}(${t})`:t}},ah=(t,e)=>Se[t-e],Ha=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=ah(e,o);return r[s]})};P();var SS=(t,e)=>{let r=E(),{cssVars:n}=r;N(t.value)||(n[t.var]=t.value)},Ga=(t,e,r)=>{let n=E(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let p=`${f}-ratio`;t[p]=a;let[u,d,h]=Ua(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})`},ch=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ke=(t,e={})=>{let r=E(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=ch.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||Ga(s,t,e);for(let p in l){let u=l[p],d=(t.type===o.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"})`)}},mr=(t,e,r={})=>{let n=E(),{unit:o,media:s,cssVars:i}=n,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=ch.has(l)?"rem":l,{mediaRegenerate:p}=t,{sequence:u,scales:d}=c,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!p){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),Ga(g,c,r);let m=t.unit||o.default;if(f!==m&&u)for(let y in u){let b=u[y],w=d[y]+f;g[b.variable+"_default"]=w,g[b.variable]=w}return}for(let g in u){let m=u[g],y=(Gr(f)?d[g]:u[g].val)+f;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};P();var fh=cr(),ms=t=>{let e=E(),r="";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},wS=t=>{let e=t&&(t.default||t);if(!S(e))return fh&&console.warn("parseRootAttributes:",e,"is not a string"),{};let r=e.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return o?o.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},kS=(t,e)=>{let r=[];if(t.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return t;let n=t;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},lh=new Set,qa=(t,e)=>{let r=e&&e.default?e.default:e;if(!S(r))return fh&&!lh.has(t)&&(lh.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=r;let n=wS(e),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,l=kS(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return l=l.replace(/width="[^"]*"/,""),l=l.replace(/height="[^"]*"/,""),l=l.replace("</svg","</symbol"),l=AS(l),l},vS="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",CS=new RegExp(`<(${vS})\\b([^>]*?)\\s*/>`,"g"),AS=t=>t.replace(CS,"<$1$2></$1>");var _s={};F(_s,{appendSVGSprite:()=>uc,appendSvgIconsSprite:()=>dc,applyDocument:()=>cc,applyHeadings:()=>gh,applyReset:()=>hc,applySpacingSequence:()=>oc,applyTimingSequence:()=>ac,applyTypographySequence:()=>ec,checkIfBoxSize:()=>nc,getColor:()=>tt,getFontFamily:()=>tc,getFontSizeByKey:()=>rc,getMediaColor:()=>bt,getMediaTheme:()=>Qt,getShadow:()=>ic,getSpacingBasedOnRatio:()=>fe,getSpacingByKey:()=>ht,getTheme:()=>Xa,getTimingByKey:()=>Ut,getTimingFunction:()=>te,runThroughMedia:()=>hh,setColor:()=>br,setFont:()=>Qa,setFontFamily:()=>bs,setGradient:()=>xr,setMediaTheme:()=>Ja,setSVG:()=>xs,setShadow:()=>_r,setSvgIcon:()=>pc,setTheme:()=>Za,splitSpacedValue:()=>sc});P();var tt=(t,e,r)=>{let n=r||E();if(!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(T(t))[o,s,i]=t;else{let p=He(t);if(!p){let{color:u,gradient:d}=n,h=d[t]||u[t];return h?n.useVariable?`var(${h.var})`:h.value:t}if(p.passthrough)return p.passthrough;if(p.cssVar)return`var(${p.cssVar})`;o=p.name,s=p.alpha,i=p.tone}let{color:a,gradient:c}=n,l=a[o]||c[o];if(!l)return n.verbose&&console.warn("Can't find color ",o),t;e&&(l[e]?l=l[e]:n.verbose&&console.warn(t," - does not have ",e));let f=l.rgb;return f?(i&&!l[i]&&(f=hr(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:n.useVariable?`var(${l.var})`:`rgb(${f})`):n.useVariable?`var(${l.var})`:l.value},bt=(t,e,r)=>{let n=r||E();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let o;if(T(t))o=t[0];else{let l=He(t);if(!l)return t;if(l.passthrough)return l.passthrough;if(l.cssVar)return`var(${l.cssVar})`;o=l.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=_(a);if(c&&a.value)return tt(t,`@${e}`,r);if(c){if(n.useVariable&&a.var)return`var(${a.var})`;if(e)return tt(t,`@${e}`,r);{let l={};for(let f in a){if(f.charCodeAt(0)!==64)continue;let p=n.media[f.slice(1)];if(!p)continue;let u="@media "+(p==="print"?`${p}`:`screen and ${p}`);l[u]=tt(t,f,r)}return l}}else return n.verbose&&console.warn("Can't find color",t),t},br=(t,e,r)=>{let n=E();if(S(t)&&ot(t)){let g=t.slice(2);if(t=tt(g),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=g.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(S(y)||T(y)||_(y))&&(n.color[m[0]]=br(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,w=m[1]!==void 0?m[1]:"1",x=m[2];x&&(b=hr(b,x)),t=`rgba(${b}, ${w})`}else{let b=m[2],w=m[1]!==void 0?m[1]:"1";if(b)try{let x=be(m[0]);x&&x.length>=3?t=`rgba(${hr(x.slice(0,3).join(", "),b)}, ${w})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(T(t)&&(t={"@light":t[0],"@dark":t[1]}),_(t)){let g={};for(let m in t)g[m]=br(t[m],e,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`,b,w={};for(let x in g){if(x.charCodeAt(0)!==64)continue;let v=x.slice(1),A=g[x],R=A&&(A.value||A);!R||typeof R!="string"||(w[v]=R,(v==="light"||b===void 0)&&(b=R))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let x in w){let v=`[data-theme="${x}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][y]=w[x],x==="light"||x==="dark"){let A=`@media (prefers-color-scheme: ${x})`;n.cssMediaVars[A]||(n.cssMediaVars[A]={}),n.cssMediaVars[A][y]=w[x]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;if(S(i)&&i.includes(".")&&!i.includes("(")){let[g,m]=i.split("."),y=n.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(S(i)&&!i.includes("(")&&!i.startsWith("#")){let g=He(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(S(m)||T(m)||_(m))&&(n.color[g.name]=br(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=hr(b,g.tone));let w=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${w})`}}}let a=be(i),[c,l,f,p=1]=a,u=parseFloat(p.toFixed(2)),d=`${c}, ${l}, ${f}`,h=`rgba(${d}, ${u})`;return n.useVariable&&(n.cssVars[s]=h),{var:s,rgb:d,alpha:u,value:h}},xr=(t,e,r)=>{let n=E();if(S(t)&&ot(t)&&(t=tt(t.slice(2))),T(t))return{"@light":xr(t[0],e,"light"),"@dark":xr(t[0],e,"dark")};if(_(t)){let i={};for(let a in t)i[a]=xr(t[a],e,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[s]=t.value||t),{var:s,value:t.value||t}};P();var ES=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"]),uh=["color","Color","background","Background","fill","Fill","stroke","Stroke"],TS=t=>{for(let e=0;e<uh.length;e++)if(t.includes(uh[e]))return!0;return!1},ys=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let l=["color","Color","background","border"].some(f=>a.includes(f));return e[a]=l?tt(t[a]):t[a]}),e},Cn=t=>(t.value||(t.value=ys(t)),t.value),Xa=(t,e)=>{let r=E();if(r.useVariable)return Qt(t,e);let n=r.theme;if(S(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return Cn(i);t=[o,s||e]}}if(N(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return Cn(a[s]);if(i&&i[s])return Cn(i[s]);if(c&&c[s])return Cn(c[s])}else if(_(t))return ys(t)},OS=(t,e,r)=>{if(_(e))t.variants.inverse.value=ys(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},RS=(t,e,r,n)=>{let o=Xa(r);n[`&:${e}`]=o,_(r)&&!r.value&&(r.value=o)},PS=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return RS(t,o,s,e),t}),t):void 0},IS=(t,e,r,n)=>{let o=Xa(r);n[`@media (prefers-color-scheme: ${e})`]=o,_(r)&&!r.value&&(r.value=o)},$S=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&IS(t,o,s,e),o==="inverse"&&OS(t,s,e),t}),t):void 0},FS=(t,e)=>{let r=E(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return S(i)?n[s]=r.theme[i]:Cn(n[s]),t}),t):void 0},Za=(t,e)=>{let r=E();if(r.useVariable)return Ja(t,e);let{state:n,media:o,helpers:s}=t,i=ys(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return PS(t,i),$S(t,i),FS(t,i),{var:c,value:i,state:n,media:o,helpers:s}};var Ka=(t,e,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let l in t)if(t[l])for(let f of Object.keys(t[l]))a.add(f);let c=new Set;for(let l of a){let f=l.slice(0,1);if(!(f==="@"||f==="."||f===":")&&TS(l))for(let p in t){if(c.has(p))continue;let u=t[p]?.[l];if(u===void 0)continue;let d=tt(u,`@${p}`);d!==void 0&&S(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!ES.has(d)&&c.add(p)}}for(let l of a){let f=l.slice(0,1),p=Object.values(t).some(u=>N(u?.[l]));if(f==="."&&p){let u=l.slice(1),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=Ka(d,`${e}-${u}`,r)}else if(f===":"&&p){let u=l.replace(/^:+/,""),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=Ka(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=tt(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let w=`[data-theme="${m}"]`;if(o[w]||(o[w]={}),o[w][d]=b,m==="dark"||m==="light"){let x=`@media (prefers-color-scheme: ${m})`;o[x]||(o[x]={}),o[x][d]=b}}g!==void 0&&(n[d]=g),i[l]=`var(${d})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Ja=(t,e,r,n)=>{let o=E(),{cssVars:s}=o,i={value:t},a=!r&&!n;if(N(t)){if(a&&o.useVariable){let c={};for(let l in t)l.startsWith("@")&&N(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=Ka(c,e,o);Object.assign(i,l)}}for(let c in t){let l=c.slice(0,1),f=t[c];if(l==="@"||l===":"||l==="."){let p=l==="@"&&c;i[c]=Ja(f,e,c,n||p)}else if(!a){let p=tt(f,n),u=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=u.length?"-"+u.join("-"):"",g=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${d}-${c}`;o.useVariable?(o.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(S(t)&&ot(t)){let l=o.theme[t.slice(2)];return Qt(l,n)}return i},Ya=t=>{let e=E(),r={};for(let n in t){let o=n.slice(0,1);if(N(t[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Ya(t[n]):o==="."&&(r[`&${n}`]=Ya(t[n]))}else r[n]=t[n]}return r},dh=(t,e)=>{let r=e.shift();return t[r]?dh(t[r],e):t},ph=(t,e)=>T(e)?dh(t,e):S(e)&&t[e]?t[e]:t;var Qt=(t,e)=>{let r=E();if(S(t)&&ot(t)&&(t=Qt(t.slice(2))),!t||!S(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=T(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=ph(s,o):s&&e&&(s=ph(s,e)),Ya(s)};P();P();var Qa=(t,e)=>{let r=E(),n=`--font-${e}`;if(!t||T(t)&&!t[0])return;let o;if(t.isVariable){let s=Jt(t.url,r.files)||t.url;us(s)?o=ps(s):o=gr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=kn(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Jt(i,r.files)||i):Jt(t.url,r.files)||t.url;o=gr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},tc=(t,e)=>{let r=E(),{fontFamily:n}=r;return wn(e||n,t)},bs=(t,e)=>{let r=E(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),_(s)&&(s=pr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};P();var hh=t=>{let e=E(),{typography:r,media:n}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:h,unit:g}=t;et(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,w=n[c],x="@media "+(w==="print"?`${w}`:`screen and ${w}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){et(i,{sequence:{},scales:{},vars:{}}),Ft(i),mr(t,o);continue}et(i,{sequence:{},scales:{},templates:{},vars:{}}),Ft(i),mr(t,o)}},gh=t=>{let e=E();if(t.h1Matches){let r=t.unit,n=Ha(t),{templates:o}=t;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},ec=()=>{let t=E(),{typography:e}=t;Ft(e),gh(e),Ke(e),hh(e)},rc=t=>{let e=E(),{typography:r}=e;return we(t,"fontSize",r)};P();P();var DS=t=>{let r=E().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return Ft(o),o},LS=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;et(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Ft(r),mr(t,e)}},nc=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},oc=()=>{let t=E(),{spacing:e}=t;Ft(e),Ke(e),LS(e)},MS=t=>{let e=E(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Ft(t)},ht=(t,e="padding",r,n)=>{let o=MS(r);if(S(t)&&!n&&t.includes("(")){let i=qe(t);n=i[0],t=i[1]}let s=n?[t]:pr(t);if(T(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,f)=>we(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return we(t,e,o,n)}},fe=(t,e,r,n)=>{let o=E(),{spacing:s}=o,i=r||t[e];if(!n&&S(i)&&i.includes("(")){let a=qe(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=DS(t);return ht(i,e,a,n)}return ht(i,e,s,n)},sc=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=qr.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};P();var _r=(t,e,r,n)=>{let o=E();if(T(t))return{"@light":_r(t[0],e,"light"),"@dark":_r(t[1],e,"dark")};if(_(t)){let a={};for(let c in t)a[c]=_r(t[c],e,c.startsWith("@")?c.slice(1):c);return a}S(t)&&!le.test(t)&&(t=dr(t).map(a=>(a=a.trim(),a.split(/\s+/).map(c=>{if(c=c.trim(),!c)return"";if(c.startsWith("--"))return`var(${c})`;let l=tt(c);if(xe(l))return l;if(/^\d/.test(c)||c==="0"||c.includes("px")||c.slice(-2)==="em"||c==="inset"||c==="none")return c;let f=ht(c,"shadow");return f&&f.shadow?f.shadow:c}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},ic=(t,e)=>{let r=E();if(e||(e=r.globalTheme),!S(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(ot(t))return`var(${t})`;let[n]=T(t)?t:t.split(" "),s=r.shadow[n],i=_(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let l=r.media[c.slice(1)],f="@media "+(l==="print"?`${l}`:`screen and ${l}`);a[f]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};P();var ac=()=>{let t=E(),{timing:e}=t;Ft(e),Ke(e)},te=t=>{let e=E(),{timing:r}=e;return r[t]||r[is(t)]||t},Ut=(t,e="timing")=>{let r=E(),{timing:n}=r;return we(t,e,n)};P();var cc=()=>{let t=E(),{document:e,fontFamily:r,theme:n,typography:o}=t;return et(e,{theme:n.document,fontFamily:wn(r),fontSize:o.base,lineHeight:o.lineHeight})};P();var fc={document:Y},xs=(t,e)=>{let r=E();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?qa(e,t):t},uc=(t,e=fc)=>{let r=E(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];yh(n,e)},pc=(t,e)=>{let r=E();return r.useIconSprite&&!r.semanticIcons?.[e]?xs(t,e):t},dc=(t,e=fc)=>{let r=E(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];yh(n,e)},lc=(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},NS=(t,e)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new r().parseFromString(n,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},mh=(t,e,r)=>{for(;e.firstChild;){let n=e.firstChild;r.appendChild(t.importNode(n,!0)),n.remove()}},yh=(t,e=fc)=>{let r=E(),n=e.document||Y;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),ms(t);let o=n.querySelector("#svgSprite"),s=ms(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=NS(n,s);if(o)if(a)mh(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let c=lc(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=lc(n);c&&c.nodeType&&(mh(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let c=lc(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};P();var hc=(t={})=>{let e=E(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,l=n.templates;c.body={...e.useDocumentTheme?Qt("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?Qt("document"):{};if(r.html&&At(r.html,a),n.unit){let{media:c}=e;for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let p=f.unit,u=f.base||n.base,d=f.browserDefault||n.browserDefault,h=l.slice(1),g=c[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=u/d+p}}return G(et(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};P();var jS=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),BS=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),VS=t=>jS.has(t),ke=t=>{let e=t+"";if(le.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(ot(o))return`var(${o})`;if(VS(o)||/^\d/.test(o)||o==="0")return o;let s=tt(o);if(xe(s))return s;let i=ht(o,"border");return i&&i.border?i.border:o}).join(" ")},bh=t=>le.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(ot(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=tt(e);return xe(r)?r:e}).join(" "),xh=(t,e)=>ic(t,e),gc=(t,e)=>le.test(t)?t:dr(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(ot(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=tt(n);if(xe(o)){let i=bt(n,e);return _(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=ht(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),mc=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(")")),s=")",a=dr(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||BS.has(f)||f==="transparent"||le.test(f))return f;let p=tt(f);return xe(p)?p:f}).join(" ")));return n+a.join(", ")+s},_h=(t,e)=>{let r=E();return t.split(", ").map(n=>ot(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?mc(n,e):r.gradient[t]?{backgroundImage:bt(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!He(n)?`url(${n})`:n).join(" ")},Sh=t=>S(t)&&t.split(" ").map(e=>ht(e,"gap").gap).join(" "),US=t=>{let e=t.split(" ");return e.length?e.map(r=>ot(r)?`var(${r})`:r.length<3||r.includes("ms")?Ut(r).timing||r:te(r)?te(r):r).join(" "):t},yc=(t,e,r)=>{if(S(t))return t.split(",").map(n=>Ut(n).timing||n).join(",")},wh=t=>{let e=t.split(",");if(e.length)return e.map(US).join(",")};function it(t,e,r={},n={}){let o=X.call(this,e||r[t]);if(o==null)return;let s;if(S(o)){if(o.includes("(")){let c=qe(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=nc(t);!i&&a&&!n.ratio&&(o=sc(o))}return n.ratio?fe(r,t,o,s):ht(o,t,void 0,s)}var j=(t,e=null,r)=>it(t,e,r,{ratio:!0}),bc=(t,e,r)=>{if(S(t))return{borderRadius:t.split(" ").map((n,o)=>fe(e,r,n)[r]).join(" ")}};P();var zS=(t,e)=>{let r=E(),{cssVars:n}=r,o=e.startsWith("--")?e:`--${e}`;return n[o]=t,t},Ot=t=>t,kh={color:br,gradient:xr,font:Qa,fontFamily:bs,fontfamily:bs,theme:Za,icons:pc,semanticIcons:Ot,semanticicons:Ot,svg:xs,svgData:Ot,typography:Ot,shadow:_r,spacing:Ot,media:Ot,grid:Ot,class:Ot,timing:Ot,reset:Ot,unit:Ot,animation:Ot,vars:zS,sizes:Ot},WS=(t,e,r)=>{let n=E(),o=Ma(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=kh[o]||kh[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){n.verbose&&console.warn("Error setting",s,"value",e,r,c)}n.verbose&&console.warn("Can not find",s,"method in scratch")},HS=(t,e)=>{let r=E(),n=t.toLowerCase();return Object.keys(e).sort((s,i)=>{let a=_(e[s])||T(e[s])?1:0,c=_(e[i])||T(e[i])?1:0;return a-c}).forEach(s=>{try{return WS(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},vh=(t,e)=>{let r=e||E();r.globalTheme=t;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(t&&t!=="auto")a.setAttribute("data-theme",t),t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=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(o&&r.cssVars){let a=r.scopeSelector||":root",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let 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},GS={},An=(t,e=GS)=>{let r=e.config||E(),{version:n,verbose:o,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=eh(e.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),l!==void 0&&(r.useIconSprite=l),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 w=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=w&&w.defaultView||(typeof window<"u"?window:null),v=w&&(r.themeRoot||w.documentElement);if(v&&typeof v.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")v.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?v.style.colorScheme=r.globalTheme:v.style.colorScheme="light dark";else if(x&&x.matchMedia){let L=J=>{v.setAttribute("data-theme",J.matches?"dark":"light")},V=x.matchMedia("(prefers-color-scheme: dark)");if(L(V),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=L;try{V.addEventListener("change",L)}catch{V.addListener(L)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let A=Object.keys(y),R=new Set(A);if(A.forEach(O=>{let L=O.toLowerCase();L!==O&&R.has(L)&&G(y[L],y[O])}),A.map(O=>{let L=O.toLowerCase();if(!(L!==O&&R.has(L)))return HS(O,y[O])}),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{ec()}catch(O){r.verbose&&console.warn("Error applying typography sequence",O)}if(y.spacing)try{oc()}catch(O){r.verbose&&console.warn("Error applying spacing sequence",O)}if(y.timing)try{ac()}catch(O){r.verbose&&console.warn("Error applying timing sequence",O)}cc();let W=hc();return W&&(r.reset=W),r};var Sr=new Map,qS=null,_c=null,KS=null;function Sc(t){t.batchAtomicCss&&(_c=t.batchAtomicCss),t.compoundCssClass&&(KS=t.compoundCssClass)}var YS=new Set;function XS(t){try{let e=E();e&&(e.document=t)}catch{}t&&YS.add(t)}function Th(){try{let t=E();if(t?.document)return t.document}catch{}return typeof document<"u"?document:null}var ZS={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 Ye(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Ss(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 JS(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Ss(e)}function Ch(t,e,r){let n=(r?r+"":"")+t+":"+e,o=Sr.get(n),s=o?null:Ye(t);if(!o){let a=ZS[t]||Ss(t),c=JS(e);o=r?`_${r}_${a}-${c}`:`_${a}-${c}`,Sr.set(n,o)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return o;let i=`.${o}{${s||Ye(t)}:${e}}`;return Dt(i),o}var Ah=new WeakMap;function Dt(t,e){let r=Oh(e);if(!r)return;let n=Ah.get(r);if(n||(n=new Set,Ah.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var Eh=new WeakMap;function Oh(t){let e=t||Th();if(!e||!e.head)return null;let r=Eh.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let n=e.head.querySelector("style[data-smbls]");n||(n=e.createElement("style"),n.setAttribute("data-smbls",""),e.head.appendChild(n));let o=n.sheet;return Eh.set(e,o),qS=o,o}var QS=8;function Xe(t,e,r){if(!t||typeof t!="object")return"";let n=null,o=0,s=[],i=[];for(let c in t){let l=t[c];l==null||l===!1||l===""||(typeof l=="object"?i.push([c,l]):_c?(n||(n=[]),n.push(c,String(l)),o++):s.push(Ch(c,String(l),r)))}if(n&&o>=QS){let c=n.join("\0"),l=_c(c),f=l.indexOf("\0"),p=l.substring(0,f),u=l.substring(f+1);if(u){let d=u.split(`
36
+ `);for(let h=0;h<d.length;h++)d[h]&&Dt(d[h])}s.push(p)}else if(n)for(let c=0;c<n.length;c+=2)s.push(Ch(n[c],n[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push(tw(i[c][0],i[c][1],r));return s.concat(a).join(" ").trim()}var xc=new Map;function tw(t,e,r){let n=(r?r+"":"")+t+JSON.stringify(e),o=Sr.get(n);if(o){let u=xc.get(o);if(u)for(let d=0;d<u.length;d++)Dt(u[d]);return o}o=r?`_${r}_c${Ss(n)}`:`_c${Ss(n)}`;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+=`${Ye(g)}:${m};`}}h&&(u.length===0?s+=h:i.push({chain:u,body:h}))};c([],e);let l=u=>{if(!u.length)return`.${o}`;let d=u[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${o}`):h.startsWith(":")?`.${o}${h}`:`.${o} ${h}`);for(let h=1;h<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}{.${o}{${s}}}`;f.push(u),Dt(u)}for(let u of i){let d=l(u.chain),h=`${t}{${d}{${u.body}}}`;f.push(h),Dt(h)}return xc.set(o,f),Sr.set(n,o),o}let p=l([t]);if(s){let u=`${p}{${s}}`;f.push(u),Dt(u)}for(let u of i){let h=`${l([t,...u.chain])}{${u.body}}`;f.push(h),Dt(h)}return xc.set(o,f),Sr.set(n,o),o}function ut(t){if(Oh(),typeof t=="string"){Dt(t);return}let e=Object.keys(t),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};e.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of e){let o=t[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let c in i){let l=c.startsWith("--")?c:Ye(c);a+=`${l}:${i[c]};`}Dt(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Ye(s);Dt(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let c=o[a];if(typeof c=="object"&&c!==null)i=!0;else{let l=a.startsWith("--")?a:Ye(a);s+=`${l}:${c};`}}if(s&&Dt(`${n}{${s}}`),i){let a=[],c=[];for(let l in o)typeof o[l]=="object"&&o[l]!==null&&(l.startsWith("@media")||l.startsWith("@supports")?a.push(l):c.push(l));a.sort((l,f)=>{let 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)ut({[`${n} ${l}`]:o[l]});for(let l of a)ut({[l]:{[n]:o[l]}})}}}}function ws(t,e){let r="";for(let n in e){let o="";for(let s in e[n])o+=`${Ye(s)}:${e[n][s]};`;r+=`${n}{${o}}`}return Dt(`@keyframes ${t}{${r}}`),t}function ew(){return Sr.size}P();var wc="http://www.w3.org/2000/svg",Cs=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"]),rw=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 ks(t){return rw.has(t)||Cs.has(t)}function As(t){return Cs.has(t)}function wr(t){let{tag:e,key:r}=t;if(typeof e=="function"&&(e=e(t)),e===!0&&(e=r),typeof e=="string"&&ks(e))return e;if(!r||typeof r!="string")return"div";let n=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),ks(o)&&!n.has(o)?o:"div"}var Rh={};function vs(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(As(t)){let n=e?.parent;if(t==="svg"||n?.node?.namespaceURI===wc)return r.createElementNS(wc,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function kr(t){let e=t.tag=wr(t),n=As(e)&&(e==="svg"||t.parent?.node?.namespaceURI===wc)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=Rh[n];if(s||(s=Rh[n]=vs(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?vs(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var Rt=new Set(["extends","children","content","childrenAs","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","subscribeTo","autoGrow","__name","__ref","__hash","__text","parent","node"]),Ph={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},vr=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove"]),kc=new Set(["load","error","abort","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),Ih=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Es=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 vc=new WeakMap,nw={passive:!0},ow={passive:!0,capture:!0},Cc=(t,e)=>Ih.has(t)?e?ow:nw:e||!1;function Fh(t){let e=vc.get(t);return e||(e={handlers:new Map,installed:new Set},vc.set(t,e)),e}function sw(t,e){let r=Fh(e);if(r.installed.has(t))return;r.installed.add(t);let n=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave",o=t==="mouseenter"||t==="mouseleave";e.addEventListener(t,s=>{let i=s.target;for(;i&&i!==e;){let a=r.handlers.get(t);if(a){let c=a.get(i);if(c){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},Cc(t,n))}function Ac(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=Fh(n);sw(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function Ec(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=vc.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function $h(t){return Es.has(t)&&!vr.has(t)}function Ts(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o?.designSystem,i=c=>{s&&ft(s);try{let l=r.call(e,c,e,e.state,o);if(l&&typeof l.then=="function"){l.catch(f=>{e.error=f,console.error("[DOMQL] Async event error:",f)}).finally(()=>{s&&st()});return}}catch(l){if(e.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}s&&st()},a=kc.has(t);if(!a&&$h(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;Ac(t,n,i,c)}else n.addEventListener(t,i,Cc(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(!a&&$h(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;Ec(t,n,c)}else n.removeEventListener(t,i,Cc(t,!1))})}function Dh(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 Os(t,e,r){let n=Dh(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=Lh(n[i],s);a&&a!==e&&Mh(t,a,r,new Set([e]))}}function Lh(t,e){if(typeof t=="string"){if(t.includes(">")){let r=t.split(">").map(o=>o.trim()),n=e[r[0]]||e[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function Mh(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=Dh(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=Lh(o[a],i);c&&Mh(t,c,r,n)}}for(let s in e){if(s==="extends"||s==="extend")continue;let i=e[s];t[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?t[s]={...i}:t[s]=i:typeof t[s]=="object"&&typeof i=="object"&&!Array.isArray(t[s])&&!Array.isArray(i)&&t[s]!==null&&i!==null?t[s]=Nh(t[s],i):t[s]=i}}function Nh(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Nh(o,s):r[n]=s}return r}lr();function Rs(t={},e={}){let r=this,n=r.__ref;if(n){if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,e)===!1)return r;if($e(()=>{if(t.state&&lt(r.state)&&r.state.update(t.state),t.text!==void 0&&(r.text=t.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=t.text??"":r.node.textContent=t.text??"")),t.html!==void 0&&(r.html=t.html,!n.__exec.html&&r.node&&(r.node.innerHTML=t.html)),t.style&&r.node?.style){if(!n.__exec.style)for(let o in t.style){let s=t.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let o in t.attr){let s=t.attr[o];s==null||s===!1?r.node.removeAttribute(o):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(o,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let o in t.data)r.node.dataset[o]=t.data[o];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let o in t){if(Rt.has(o)||o==="state")continue;let s=t[o],i=r[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,e);else if(typeof s=="object"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&zt(s,r,o,e)}else o!=="text"&&o!=="html"&&o!=="style"&&o!=="attr"&&o!=="data"&&(r[o]=s)}}),r.node&&n.__conditionalRunners)for(let o of n.__conditionalRunners)o();return Bt("update",r),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}}function Cr(t){if(!t)return;let e=t.__ref;if(e){try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){for(let r=0;r<e.__children.length;r++){let n=e.__children[r],o=t[n];o&&o.__ref&&Cr(o)}e.__children.length=0}if(t.node?.parentNode&&t.node.remove(),t.state?.destroy&&t.state.__element===t&&t.state.destroy(),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(r){console.error("[smbls] onRemove error:",r)}t.node=null,t.parent=null,t.__ref=null}}function Ps(){Cr(this)}P();P();var iw=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],aw=["none","forwards","backwards","both"],cw=["normal","reverse","alternate","alternate-reverse"],lw=["running","paused"],fw=t=>/^[\d.]+m?s$/.test(t),uw=0,jh=new Map,Tc=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(_(t)){let o=JSON.stringify(t),s=jh.get(o);if(s)return s;let i=`smbls-anim-${uw++}`,a=ws(i,t);return jh.set(o,a),a}let n=r&&r[t];return _(n)?ws(t,n):t},pw=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let p of n)r&&r[p]?o=p:fw(p)?s.push(p):iw.includes(p)||p.startsWith("cubic-bezier")||p.startsWith("steps(")?i=p:p==="infinite"||/^\d+$/.test(p)?a=p==="infinite"?p:Number(p):cw.includes(p)?c=p:aw.includes(p)?l=p:lw.includes(p)?f=p:o||(o=p);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},Bh={animation:(t,e)=>{if(S(t)&&t.includes(" ")){let r=pw(t,e);return{animationName:Tc(r.name||t,e),animationDuration:r.durations[0]||Ut(e.animationDuration||"A").timing,animationDelay:r.durations[1]||Ut(e.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||te(e.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.animationIterationCount||1,animationPlayState:r.playState||e.animationPlayState,animationDirection:r.direction||e.animationDirection}}return{animationName:Tc(t,e),animationDuration:Ut(e.animationDuration||"A").timing,animationDelay:Ut(e.animationDelay||"0s").timing,animationTimingFunction:te(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||"both",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:Tc(t,e)}),animationDuration:t=>({animationDuration:Ut(t).timing}),animationDelay:t=>({animationDelay:Ut(t).timing}),animationTimingFunction:t=>({animationTimingFunction:te(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};P();var Vh={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>j("height",t,e),width:(t,e)=>j("width",t,e),boxSizing:t=>gt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("height",e),...it("width",r||e)}},inlineSize:(t,e)=>j("inlineSize",t,e),blockSize:(t,e)=>j("blockSize",t,e),minWidth:(t,e)=>j("minWidth",t,e),maxWidth:(t,e)=>j("maxWidth",t,e),widthRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("minWidth",e),...it("maxWidth",r||e)}},minHeight:(t,e)=>j("minHeight",t,e),maxHeight:(t,e)=>j("maxHeight",t,e),heightRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("minHeight",e),...it("maxHeight",r||e)}},size:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...j("inlineSize",e),...j("blockSize",r||e)}},minBlockSize:(t,e)=>j("minBlockSize",t,e),minInlineSize:(t,e)=>j("minInlineSize",t,e),maxBlockSize:(t,e)=>j("maxBlockSize",t,e),maxInlineSize:(t,e)=>j("maxInlineSize",t,e),minSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("minInlineSize",e),...it("minBlockSize",r||e)}},maxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("maxInlineSize",e),...it("maxBlockSize",r||e)}},borderWidth:(t,e)=>j("borderWidth",t,e),padding:(t,e)=>j("padding",t,e),scrollPadding:(t,e)=>j("scrollPadding",t,e),paddingInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("paddingInlineStart",e),...it("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("paddingBlockStart",e),...it("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>j("paddingBlockStart",t,e),paddingBottom:(t,e)=>j("paddingBlockEnd",t,e),paddingLeft:(t,e)=>j("paddingInlineStart",t,e),paddingRight:(t,e)=>j("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>j("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>j("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>j("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>j("paddingInlineEnd",t,e),margin:(t,e)=>j("margin",t,e),marginInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...it("marginInlineStart",e),...it("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!S(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...it("marginBlockStart",r),...it("marginBlockEnd",n||r)}},marginTop:(t,e)=>j("marginBlockStart",t,e),marginBottom:(t,e)=>j("marginBlockEnd",t,e),marginLeft:(t,e)=>j("marginInlineStart",t,e),marginRight:(t,e)=>j("marginInlineEnd",t,e),marginInlineStart:(t,e)=>j("marginInlineStart",t,e),marginInlineEnd:(t,e)=>j("marginInlineEnd",t,e),marginBlockStart:(t,e)=>j("marginBlockStart",t,e),marginBlockEnd:(t,e)=>j("marginBlockEnd",t,e),gap:t=>({gap:Sh(t)}),columnGap:(t,e)=>fe(e,"columnGap",t),rowGap:(t,e)=>fe(e,"rowGap",t),flexWrap:t=>({display:"flex",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!S(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,e)=>bc(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>bc(t??e.round,e,"borderRadius")};var Uh={fontSize:t=>rc(t)||t,fontFamily:t=>({fontFamily:tc(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var zh={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.assets&&n.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=n.files&&n.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var Wh={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>ht(r,"k").k).join(" ")}},left:t=>ht(t,"left"),top:t=>ht(t,"top"),right:t=>ht(t,"right"),bottom:t=>ht(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>ht(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=>ht(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};P();var Wt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Hh={theme:(t,e)=>{if(t)return e.themeModifier?Qt(t,`@${e.themeModifier}`):Qt(t)},color:(t,e)=>{let r=Wt(e);if(t)return{color:bt(t,r)}},background:(t,e)=>{let r=Wt(e);if(t)return S(t)&&t.includes("gradient")?{background:mc(t,r)}:{background:bt(t,r)}},backgroundColor:(t,e)=>{let r=Wt(e);if(t)return{backgroundColor:bt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Wt(e);if(!t)return;let s=n.assets&&n.assets[t];if(s&&s.content)t=s.content.src;else{let i=n.files&&n.files[t];i&&i.content&&(t=i.content.src)}return{backgroundImage:_h(t,o)}},textStroke:t=>({WebkitTextStroke:bh(t)}),outline:t=>({outline:ke(t)}),outlineOffset:(t,e)=>j("outlineOffset",t,e),border:t=>({border:ke(t)}),borderColor:(t,e)=>{let r=Wt(e);if(t)return{borderColor:bt(t,r)}},borderTopColor:(t,e)=>{let r=Wt(e);if(t)return{borderTopColor:bt(t,r)}},borderBottomColor:(t,e)=>{let r=Wt(e);if(t)return{borderBottomColor:bt(t,r)}},borderLeftColor:(t,e)=>{let r=Wt(e);if(t)return{borderLeftColor:bt(t,r)}},borderRightColor:(t,e)=>{let r=Wt(e);if(t)return{borderRightColor:bt(t,r)}},borderLeft:t=>({borderLeft:ke(t)}),borderTop:t=>({borderTop:ke(t)}),borderRight:t=>({borderRight:ke(t)}),borderBottom:t=>({borderBottom:ke(t)}),shadow:(t,e)=>{let r=Wt(e);if(t)return{boxShadow:xh(t,r)}},boxShadow:(t,e)=>{if(!S(t))return;let[r,n]=t.split("!importan"),o=Wt(e),s=n?" !important":"";return{boxShadow:gc(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:gc(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:ke(t)})};var Is={transition:t=>({transition:wh(t)}),transitionDuration:t=>({transitionDuration:yc(t)}),transitionDelay:t=>({transitionDelay:yc(t)}),transitionTimingFunction:t=>({transitionTimingFunction:te(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};P();var Gh={flow:(t,e)=>{let r=e.reverse;if(!S(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(t,e)=>({display:"flex",flexWrap:t}),align:(t,e)=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var qh={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 pt={...Bh,...Vh,...Uh,...zh,...Wh,...Hh,...Is,...Gh,...qh};var xt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);P();var dw=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,hw=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=Lt(e,r);if(!s)return{[t]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(dw),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=n.designSystem?.scopeSelector||":root",p=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${p} &`]:i}}return l},Kh=(t,e,r)=>({[t]:Lt(e,r)}),En=(t,e,r)=>{let n=`&${t}`,o=Lt(e,r);if(t.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[n]=s);for(let l in i){let f=a.map(p=>`${p} ${l}`).join(", ");c[f]=i[l]}return c}}return{[n]:o}},Oc=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},gw=(t,e,r)=>{let n=t.slice(1),o=Oc(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Lt(e,r)},mw=(t,e,r)=>({[t]:e}),yw=(t,e,r)=>{let n=t.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Oc(n,r);s!==void 0&&(o=s)}if(o)return Lt(e,r)},bw=(t,e,r)=>{let n=t.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Oc(n,r);s!==void 0&&(o=s)}if(!o)return Lt(e,r)},Yh=(t,e)=>Lt(t,e),Xh={"@":hw,":":En,"[":En,"*":En,"+":En,"~":En,"&":Kh,">":Kh,$:gw,"-":mw,".":yw,"!":bw};var Rc=je(),xw=(t,e,r)=>{let n=e?.context?.designSystem;n&&ft(n);try{let o={},s={},i=(a,c)=>{if(r.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(a==="class"&&e.call("isString",t.class)){let l=c.split(" ");if(l.length){let f=e.context.designSystem.class,p=l.reduce((u,d)=>et(u,f[d]),{});o.designSystemClass=p}}else if(a==="true"){let l=X(c,e);et(o,Yh(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),!Rc&&_(o[a])&&(o[a].label=a)}else if(pt[a]){let l=X(c,e);T(l)&&(l=l.reduce((p,u)=>et(p,u),{}));let f=pt[a](l,e,e.state,e.context);T(f)&&(f=f.reduce((p,u)=>et(p,u),{})),f&&i(a,f),!Rc&&_(o[a])&&(o[a].label=a)}else if(xt.has(a)){let l=X(c,e);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!Rc&&_(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&st()}},_w=(t,e)=>{let r={};for(let n in t){let o=Xh[n.slice(0,1)];if(o){let s=o(n,t[n],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?At(r[i],s[i]):r[i]=s[i])}}return r},Lt=(t,e,r={unpack:!0})=>{let[n,o]=xw(t,e,r),s=_w(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return po(n,s);n._selectors=s}return n},eR=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};P();var Sw=t=>{if(_(t))return Lt(t,t)},iR=(t,e)=>{let r=Sw(t);return typeof e=="function"?e(r):Xe(r)};P();function Qh(t,e,r){let n=t?.context?.analyze;if(!n||!n.emit||e==="warn"&&!n.shouldCapture("warnings")||e==="error"&&!n.shouldCapture("errors"))return;let o=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:o||null,args:r})}function ww(...t){return Qh(this,"warn",t),Zo.apply(this,t)}function kw(...t){return Qh(this,"error",t),ur.apply(this,t)}var Zh={update:Rs,remove:Ps,getDB:es,getQuery:rs,getRootData:Ko,getChildren:zo,getPath:Wo,nextElement:Jo,previousElement:Qo,verbose:yn,warn:ww,error:kw,variables:ts,spotByPath:Uo,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}this.__ref&&(this.__ref.contentManaged=!0)},reset(t){let e=this.context?.__create;if(!e)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),e(o,r,n,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let r of e.__children){let n=this[r];if(!n)continue;if(typeof t=="function"){if(t(n))return n}else if(typeof t=="string"&&n.key===t)return n;let o=n.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let r=this.__ref;if(!r?.__children)return e;for(let n of r.__children){let o=this[n];o&&(typeof t=="function"?t(o)&&e.push(o):typeof t=="string"&&o.key===t&&e.push(o),o.lookdownAll?.(t,e))}return e},getRef(){return this.__ref},getRoot:qo,getRootState:Go,getRootContext:Yo,getContext:Xo,parse(t){let e={},r=t?new Set(t):null,n=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!r?.has(o)){if(n&&n[o]!==void 0){e[o]=n[o];continue}typeof this[o]!="function"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(e[n]=this[n].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let r of t)e[r]=this[r];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let r=t[e];if(r==null)continue;let n=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(t,...e){let r=this.context,n=r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof n=="function")return n.call(this,...e)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let r=t.__children.indexOf("content");r!==-1&&t.__children.splice(r,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},Jh=new WeakMap;function vw(t){if(!t)return Zh;let e=Jh.get(t);if(e)return e;e=Object.create(Zh);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return Jh.set(t,e),e}function $s(t){let e=vw(t.context);Object.setPrototypeOf(t,e)}P();lr();var Cw=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Ht=(t,e)=>{if(lt(e)){let o=e.__raw||e;e.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(o,"set",{value:function(s,i={}){return e.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.update(s,i),e},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(e);return e.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(e),e.update(e.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=e;for(;a?.parent&&lt(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(s,i={}){if(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=e,i=lt(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,lt(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let r=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},n={update(o){if(!o||typeof o!="object")return e;for(let s in o)e[s]=o[s];return e},apply(o){if(typeof o!="function")return e;let s=o(e);return s?e.update(s):e},parse(){return{...e}},toggle(o){return e[o]=!e[o],e},set(o){if(!o||typeof o!="object")return e;r();for(let s in o)e[s]=o[s];return e},replace(o){return e.set(o)},clean(){return r(),e}};for(let o in n)typeof e[o]!="function"&&Cw(e,o,n[o])};var Aw=function(t,e,r){return t.state=tg(t,e,r),t.state},tg=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Ht(t,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",Ew(o,t,e);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=jt({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Ht(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!lt(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=jt({...o});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Ht(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,r),s}return lt(o)?(o.__element=t,o):e?.state||{}};function Pc(t,e){if(!e)return t;let r=e.split("/"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function Ew(t,e,r){if(!r?.state)return{};if(t===".")return r.state;if(t.startsWith("../")){let o=t.slice(3),s=r.state?.parent;return o&&s?Pc(s,o):s??r.state??{}}if(t.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?Pc(o,s):o??{}}let n=Pc(r.state,t);if(n&&typeof n=="object"&&!lt(n)&&!Object.getOwnPropertyDescriptor(n,"root")){let o=r.state?.root||r.state;Object.defineProperty(n,"root",{get:()=>o,enumerable:!1,configurable:!0})}return n}var Tw=(t,e)=>{if(!t)return rg;let r=Pw(t,e);return!r||!r.state?rg:$w(r.state)},Ow=()=>Hr()!=null,Rw=128;function Pw(t,e){let r=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,n=t,o=null;for(let s=0;s<Rw&&n;s++){if(r(n)&&n.state)return n;if(n.state&&!o&&(o=n),!n.parent||n.parent===n)break;n=n.parent}return o}var Iw={get(t,e){return t[e]}},eg=new WeakMap,$w=t=>{let e=eg.get(t);return e||(e=new Proxy(t,Iw),eg.set(t,e)),e},rg=new Proxy(Object.create(null),{get(){},has(){return!1}});P();var TR=["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"],Ic={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"]},Fw=["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"],$c=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,Je=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||$c(e)||Ic.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(Ic,t)?Ic[t].includes(e):!1,ig=t=>{if(!S(t))return!1;let e=t.toLowerCase();return Fw.includes(e)},OR=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;if(o==="aria"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])vt(e[o][a])&&(n["aria-"+a]=e[o][a]);continue}if(o==="data"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])if(vt(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());n["data-"+c]=e[o][a]}continue}let s=Je(t,o),i=ig(o);if(vt(e[o])&&(s||i)){let a=$c(o)||o;n[a]=e[o]}}return n},RR=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let n in t.aria){let o=t.aria[n];typeof o=="function"&&(r["aria-"+n]=o(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let n in t.data){let o=t.data[n];if(typeof o=="function"){let s=n.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=o(e,e.state,e.context)}}return r},Ze=(t,e)=>{let r=t.call("exec",e,t);if(r)return S(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},ng=(t,e)=>{let r=(t.preSrc||"")+(Ze(t,e)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=t;if(!n.files&&!n.assets)return r;if(r.startsWith("/assets/")){let o=r.slice(8),s=n.assets&&(n.assets[r]||n.assets[o]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let o=r.slice(7),s=n.files&&(n.files[r]||n.files[o]);return s&&s.content?s.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},og={src:t=>ng(t,t.src),href:t=>Ze(t,t.href),action:t=>Ze(t,t.action),poster:t=>ng(t,t.poster),data:t=>Ze(t,t.data)},ag=t=>{let e=t.tag||"div",r={};for(let n in og)if(t[n]!==void 0&&Je(e,n)){let o=og[n](t);o!==void 0&&(r[n]=o)}return r},sg=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},Dw=(t,e,r)=>{if(t==="$"){let o=sg(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=sg(e,r);o!==void 0&&(n=o)}return t==="."?!!n:!n},Lw=new Set(["$",".","!"]),PR=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(Dw(a,c,f))return C(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!Lw.has(i))continue;let a=t[s];if(!a||typeof a!="object")continue;let c=s.slice(1);for(let l in a){if(r&&l in r)continue;if(l==="aria"&&a[l]&&typeof a[l]=="object"){for(let d in a[l])o("aria-"+d,a[l][d],i,c);continue}if(l==="data"&&a[l]&&typeof a[l]=="object"){for(let d in a[l]){let h=d.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());o("data-"+h,a[l][d],i,c)}continue}let f=Je(e,l),p=ig(l);if(!f&&!p)continue;let u=$c(l)||l;o(u,a[l],i,c)}}return n};var Mw=1;function Er(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function Nw(t){return t.charAt(2).toLowerCase()+t.slice(3)}function jw(t){return t.toLowerCase()}function Mc(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Mc(o,s):r[n]=s}return r}function zt(t,e,r,n={},o){if(t==null||t===!1)return null;(typeof t=="string"||typeof t=="number")&&(t={text:t});let s=Object.create(null);s.key=r||t.key||`_${Mw++}`,s.parent=e||null,s.context=t.context||e?.context||n.context||{},s.context.__create||(s.context.__create=zt);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||s,path:e?.__ref?.path?[...e.__ref.path,s.key]:[s.key]};if(r&&!t.extends&&!t.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(t={extends:m,...t})}}Os(s,t,n);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let g in t){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=t[g],y=s[g],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=Mc(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],w=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";w&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=Mc(b,y):w&&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||null;if(t.scope!==void 0||f){let g={};f&&Object.assign(g,f),t.scope!==void 0&&Object.assign(g,t.scope),s.scope=Ti(g,d)}else d&&(s.scope=d);if(t.if!==void 0&&(s.if=t.if),$s(s),Bw(s,e,t),s.if!=null){let g;if(typeof s.if=="function")try{g=s.if(s,s.state,s.context)}catch(m){if(g=!1,i.__ifError=m,typeof console<"u"&&console.warn){let y=s.key||s.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${y} \u2014 treating as false:`,m?.message||m)}}else g=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"&&Nc(s,{if:t.if}),s;s.tag||(s.tag=wr(s)),ve("Init",s,n);let h=s.node=kr(s);if(!h)return s;ve("AttachNode",s,n),h.setAttribute&&s.key&&h.setAttribute("data-key",s.key),h.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&h.setAttribute("data-smbls-app",s.context.key),s.id&&h.setAttribute&&(h.id=s.id),pg(s,n),Nc(s,t),jc(s),fg(s),Kw(s);try{dg(s,n)}catch(g){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`
37
+ `+g.stack.split(`
38
38
  `).slice(0,6).join(`
39
- `):"")}}if(Uc(s,t,o),t&&(t[s.key]=s,t.__ref?.__children&&(t.__ref.__children.includes(s.key)||t.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let h=s.context?.designSystem;h&&fe(h);try{let g=s.html(s,s.state,s.context);g!=null&&typeof g!="function"&&(s.node.innerHTML=g)}catch{}finally{h&&se()}}if(vt("Create",s,n),vt("Complete",s,n),vt("Render",s,n),vt("RenderRouter",s,n),typeof s.onFrame=="function"){let h=s.onFrame,g=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){g&&fe(g);try{h(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{g&&se()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function jw(e,t,r){let n=!t,o=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&e.context?.state,i=r.state!==void 0&&!s?r.state:e.state&&!le(e.state)?e.state:void 0;if(i==null){if(t?.state)e.state=t.state,He(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=le(c)?c:je(c),e.state.__element=e,e.state.root=e.state,He(e,e.state)}else e.state={},Object.defineProperty(e.state,"root",{value:e.state,enumerable:!1,configurable:!0,writable:!0}),He(e,e.state);return}if(typeof i=="string"){if(e.state=cm(i,t),e.state&&typeof e.state=="object"&&!le(e.state)){let a=t?.state?.root||t?.state||e.state;Object.defineProperty(e.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}He(e,e.state);return}if(typeof i=="function"){let a=i(e,t?.state);e.state=je(a||{})}else e.state=je({...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,He(e,e.state)}function Fc(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function cm(e,t){if(!t)return{};if(e===".")return t.state||{};if(e.startsWith("../")){let o=e.slice(3);return o?Fc(t.state,o):t.state??{}}if(e.startsWith("~/")){let o=t.state?.root||t.state,s=e.slice(2);return s?Fc(o,s):o??{}}if(t.state?.[e]!==void 0)return t.state[e];let r=Fc(t.state,e);if(r!=null&&Object.keys(r).length>0)return r;let n=t.context?.polyglot;if(n?.translations){let o=t.state?.root?.lang||n.defaultLang||"en",s=n.translations[o];if(s?.[e]!==void 0)return s[e];if(n.translations[e]!==void 0)return n.translations[e]}return{}}function Bw(e){let t=e.__ref,r=e.tag||"div",n=e.context?.designSystem,o=[],s=Object.keys(e);for(let i=0;i<s.length;i++){let a=s[i];if(typeof e[a]!="function"||Re.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Er(a)||pe[a]||xe&&xe.has(a)||Jt(r,a)||o.push({prop:a,fn:e[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:c}=o[i];t.__exec[a]=c,Object.defineProperty(e,a,{get(){n&&fe(n);try{return c(e,e.state,e.context)}catch{return}finally{n&&se()}},set(l){delete t.__exec[a],Object.defineProperty(e,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Mc(e,t){let r=e.__ref;if(Bw(e),typeof e.text=="function"){let o=e.text,s=ce(()=>{if(!r.contentManaged)try{let i=o(e,e.state,e.context);e.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=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=o}else if(typeof e.text=="string"&&e.text.includes("{{")){let o=e.text,s=ce(()=>{if(r.contentManaged)return;let i=or.call(e,o,e.state);i!=null&&(e.text=i),e.node&&(e.tag==="string"?e.node.nodeValue=i??"":e.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&typeof e[o]=="function"&&!Re.has(o)&&!Er(o)&&!r.__exec[o]){if(pe[o]){let s=e[o],i=o,a=ce(()=>{let c=e.context?.designSystem;c&&fe(c);try{let l=s(e,e.state,e.context),f=pe[i](l,e,e.state,e.context);f&&e.node?Ar(e.node,f):e.node&&(i==="show"||i==="hide")&&(e.node.style.display="")}finally{c&&se()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}else if(xe&&xe.has(o)){let s=e[o],i=o,a=ce(()=>{let c=e.context?.designSystem;c&&fe(c);try{let l=s(e,e.state,e.context);e.node&&(l!=null?Ar(e.node,{[i]:l}):e.node.style[i]="")}finally{c&&se()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}}if(typeof t.html=="function"){let o=t.html,s=ce(()=>{let i=e.context?.designSystem;i&&fe(i);try{let a=o(e,e.state,e.context);e.node&&a!=null&&typeof a!="function"&&(e.node.innerHTML=a)}finally{i&&se()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof t.value=="function"){let o=t.value,s=ce(()=>{try{let i=o(e,e.state,e.context);if(!e.node||!("value"in e.node))return;let a=i==null?"":String(i);if(e.node.value===a)return;let 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=o}if(typeof t.style=="function"){let o=t.style,s=ce(()=>{let i=o(e,e.state,e.context);Ar(e.node,i)},{depth:r.path.length});r.__effects.push(s),r.__exec.style=o}else if(e.style&&typeof e.style=="object")for(let o in e.style){let s=e.style[o];if(typeof s!="function")continue;let i=ce(()=>{try{let a=s(e,e.state,e.context);e.node&&Ar(e.node,{[o]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}if(e.attr&&typeof e.attr=="object"){for(let o in e.attr)if(typeof e.attr[o]=="function"){let s=e.attr[o],i=o,a=ce(()=>{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 o in e.aria){let s=e.aria[o];if(typeof s!="function")continue;let i="aria-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=ce(()=>{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 o in e.data){let s=e.data[o];if(typeof s!="function")continue;let i="data-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=ce(()=>{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 n=e.classlist&&typeof e.classlist=="object"&&!Array.isArray(e.classlist)?e.classlist:e.class&&typeof e.class=="object"&&!Array.isArray(e.class)?e.class:null;if(n)for(let o in n){let s=n[o];if(typeof s!="function")continue;let i=ce(()=>{try{let a=s(e,e.state,e.context);if(!e.node?.classList)return;typeof a=="string"?e.node.classList.add(a):a?e.node.classList.add(o):e.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof t.if=="function"){let o=t.if,s=ce(()=>{let i;try{i=o(e,e.state,e.context)}catch(c){if(i=!1,r.__ifError=c,typeof console<"u"&&console.warn){let l=e.key||e.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${l} \u2014 treating as false:`,c?.message||c)}return}let 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 m=c[p[d]];if(m?.node?.parentNode===l){f=m.node;break}}f?l.insertBefore(e.node,f):l.appendChild(e.node)}else Uc(e,e.parent);jc(e)}else{if(r.__ifInitialized=!0,e.tag||(e.tag=wr(e)),vt("Init",e,{}),e.node||(e.node=kr(e)),!e.node)return;vt("AttachNode",e,{}),e.node.setAttribute&&e.key&&e.node.setAttribute("data-key",e.key),e.id&&e.node.setAttribute&&(e.node.id=e.id),um(e,{});let c=t.if;delete t.if;try{Mc(e,t)}finally{t.if=c}jc(e),lm(e),pm(e,{}),Uc(e,e.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||Re.has(o)||typeof e[o]!="function")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||Er(o))continue;let i=e[o];r.__exec[o]=i;let a=e.tag||"div";if(Jt(a,o)&&!pe[o]&&!(xe&&xe.has(o))){let c=o,l=ce(()=>{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)}}zw(e),Ww(e)}function jc(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),Gw(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"&&Ar(t,e.style),e.attr&&typeof e.attr=="object")for(let r in e.attr){let n=e.attr[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.setAttribute&&t.setAttribute(r,n===!0?"":n)}if(e.data&&typeof e.data=="object")for(let r in e.data){let n=e.data[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.dataset&&(t.dataset[r]=n===!0?"":n)}if(e.classlist||e.class){let r=e.classlist||e.class;if(typeof r=="string")r.split(" ").forEach(n=>n&&t.classList.add(n));else if(typeof r=="object")for(let n in r){let o=typeof r[n]=="function"?r[n](e,e.state,e.context):r[n];o&&t.classList.add(typeof o=="string"?o:n)}}}}function Ar(e,t){if(!e||!t||!e.style)return;let r=null;for(let n in t){let o=t[n];if(o!=null){if(n.charAt(0)==="&"&&typeof o=="object"){r||(r={}),r[n]=o;continue}try{let s=String(o),i=n.replace(/[A-Z]/g,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&&Uw(e,r)}var Vw=0;function Uw(e,t){let r=`_ds${Vw++}`;e.classList.add(r);let n=e.ownerDocument,o=n.querySelector("style[data-smbls-scoped]");o||(o=n.createElement("style"),o.setAttribute("data-smbls-scoped",""),n.head.appendChild(o));let s="";for(let i in t){let a="."+r,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 m=u.includes("&")?c.split(", ").map(g=>u.replace(/&/g,g)).join(", "):c.split(", ").map(g=>`${g} ${u}`).join(", "),h="";for(let g in d)h+=`${g.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${d[g]};`;p+=`${m} { ${h} }
40
- `}else f+=`${u.replace(/[A-Z]/g,m=>"-"+m.toLowerCase())}: ${d};`}f&&(s+=`${c} { ${f} }
41
- `),p&&(s+=p)}}s&&(o.textContent+=s)}function zw(e){let t=e.subscribeTo;if(!Array.isArray(t)||t.length===0)return;let r=e.__ref;for(let n=0;n<t.length;n++){let o=t[n];if(typeof o!="string"||o.length===0)continue;let s=o.split("."),i=s[0],a=s.slice(1),c={value:!1},l=ce(()=>{let f=e.state&&(le(e.state)?e.state.root:null);if(!f||!le(f))return;let p=f;p=p[i];for(let u=0;u<a.length&&!(p==null||typeof p!="object")&&le(p);u++)p=p[a[u]];if(c.value&&typeof e.onUpdate=="function"){let u=e.context?.designSystem;u&&fe(u);try{e.onUpdate(e,e.state,e.context)}catch(d){e.context?.plugins?.length&&Be("error",e,{hook:"onUpdate",error:d})||console.error("[DOMQL] subscribeTo onUpdate error:",d)}finally{u&&se()}}},{depth:r.path.length});c.value=!0,r.__effects.push(l)}}function Ww(e){let t=e.__ref;t.__conditionalRunners=[];for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let s=e[r];if(!s||typeof s!="object")continue;let i=n==="!",a={lastMatch:!1,appliedKeys:null},c=()=>{if(!e.node)return;let f,p=e[o];if(p===void 0)if(e.state&&o in e.state)f=e.state[o];else{let m=e.context?.cases?.[o];if(m===void 0)return;try{f=typeof m=="function"?m.call(e,e):m}catch(h){f=!1,t.__conditionalError=h,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` case fn threw on ${e.key||"?"} \u2014 treating as false:`,h?.message||h)}}else if(typeof p=="function")try{f=p(e,e.state,e.context)}catch(m){f=!1,t.__conditionalError=m,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` predicate threw on ${e.key||"?"} \u2014 treating as false:`,m?.message||m)}else f=p;let u=i?!f:!!f;if(u===a.lastMatch)return;a.lastMatch=u;let d=e.context?.designSystem;d&&fe(d);try{if(u){let m={};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(pe[g]){let b=pe[g](y,e,e.state,e.context);if(b){let _=Array.isArray(b)?b:[b];for(let x of _)x&&Object.assign(m,x)}}else xe&&xe.has(g)&&(m[g]=y)}let h=Object.keys(m);h.length?(Ar(e.node,m),a.appliedKeys=h):a.appliedKeys=null}else if(a.appliedKeys){for(let m of a.appliedKeys)e.node.style[m]="";a.appliedKeys=null}}finally{d&&se()}};t.__conditionalRunners.push(c);let l=ce(c,{depth:t.path.length});t.__effects.push(l)}}var Dc=new WeakSet;function Hw(e){let t=e.ownerDocument;!t||Dc.has(t)||(Dc.add(t),queueMicrotask(()=>{Dc.delete(t);let r=t.body||t.documentElement;r&&r.offsetWidth}))}var Lc=new WeakSet;function Gw(e){let{node:t}=e;if(!t)return;if(Lc.has(e)){console.error("[applyCssInProps] re-entry detected for element",e.key,"prop path:",e.__ref?.path);return}Lc.add(e);let r=e.context?.designSystem;r&&fe(r);try{let n={},o=!1;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||typeof e[s]=="function"||Re.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!Er(s)){if(pe[s]){let a=e[s],c=pe[s](a,e,e.state,e.context);if(c){if(Array.isArray(c))for(let l of c)l&&Object.assign(n,l);else Object.assign(n,c);o=!0}}else if(xe&&xe.has(s)){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="&"){let a=e[s];a&&typeof a=="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=e[s];if(a&&typeof a=="object"){let 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(pe[l]){let p=pe[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);n[`[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 h in u)if(pe[h]){let g=pe[h](u[h],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[h]=u[h];let m=p.startsWith(":")?"":" ";if(l.includes(",")){let h=l.split(",").map(g=>`${g.trim()}${m}${p}`).join(", ");n[h]=d}else n[`${l}${m}${p}`]=d}else f[p]=u}Object.keys(f).length&&(n[l]=f)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(t.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let s=Yt(n,null,e.context?.cssPrefix);if(s&&t.classList){let a=s.split(" ").filter(Boolean),c=!1;for(let l of a)t.classList.add(l),c||(l.charCodeAt(0)===95&&l.charCodeAt(1)===99||l.charCodeAt(0)===95&&l.indexOf("_c",1)!==-1)&&(c=!0);c&&Hw(t)}let i=e.display!=null&&typeof e.display!="function"?e.display:e.hide===!0||e.show===!1?"none":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i==="none"){let 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&&se(),Lc.delete(e)}}function lm(e){let{node:t}=e;if(!t||!t.setAttribute)return;if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());t.setAttribute(i,s===!0?"":s)}let r=am(e);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&t.setAttribute(o,s===!0?"":s)}let n=e.tag||"div";for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||typeof e[o]=="function"||Re.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!Er(o)&&!(pe[o]||xe&&xe.has(o))&&Jt(n,o)){let i=e[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=or(i,e,e.state,e.context),e[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;t.setAttribute(o,i===!0?"":i)}}}function qw(e){if(!e.autoGrow)return;let t=e.node;if(!t||t.tagName!=="TEXTAREA")return;let r=e.autoGrow,n=r&&typeof r=="object"&&r.max?String(r.max):null;n&&(t.style.maxHeight=n);let o=()=>{t.style.height="auto",t.style.height=t.scrollHeight+"px"};o(),t.addEventListener("input",o),e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{try{t.removeEventListener("input",o)}catch{}})}var fm=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function um(e,t){for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||!Er(r)||fm.has(r))continue;let n=e[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let s=n;n=function(i){return e.call(s,i)}}if(typeof n!="function")continue;let o=Nw(r);vr.has(o)||Ts(Mw(o),e,n)}Kw(e)}function Kw(e){let t=e.node;if(!t||!t.addEventListener)return;let r={},n=!1;for(let u of fm){let d=e[u];typeof d=="function"&&(r[u]=d,n=!0)}if(!n)return;let o=typeof e.swipeThreshold=="number"?e.swipeThreshold:40,s=typeof e.swipeMaxDuration=="number"?e.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,f=u=>{let d=u.touches&&u.touches[0]||u.changedTouches&&u.changedTouches[0];d&&(i=d.clientX,a=d.clientY,c=Date.now(),l=!0)},p=u=>{if(!l)return;l=!1;let d=u.changedTouches&&u.changedTouches[0]||u.touches&&u.touches[0];if(!d)return;let m=d.clientX-i,h=d.clientY-a,g=Date.now()-c;if(g>s)return;let y=Math.abs(m),b=Math.abs(h);if(Math.max(y,b)<o)return;let _;if(y>b*1.2)_=m<0?"left":"right";else if(b>y*1.2)_=h<0?"up":"down";else return;let x="onSwipe"+_.charAt(0).toUpperCase()+_.slice(1),C=r[x],E=r.onSwipe;C&&C.call(e,u,e,e.state,e.context),E&&E.call(e,{direction:_,dx:m,dy:h,dt:g,event:u},e,e.state,e.context)};t.addEventListener("touchstart",f,{passive:!0}),t.addEventListener("touchend",p,{passive:!0}),e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{try{t.removeEventListener("touchstart",f)}catch{}try{t.removeEventListener("touchend",p)}catch{}})}function Bc(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Bc(o,s):r[n]=s}return r}function Vc(e,t,r){if(!t||!e.node)return;let n=e.childExtends;if(Array.isArray(t)){let o=(e.context?.document||globalThis.document)?.createDocumentFragment();if(!o)return;let 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=Bc(f,c));if(n&&!c.ignoreChildExtends)if(c.extends){let d=Array.isArray(c.extends)?c.extends:[c.extends],m=Array.isArray(n)?n:[n];c={...c,extends:[...m,...d]}}else c={extends:n,...c};let p=c?.key||`${a}`,u=ze(c,e,p,r);u?.node&&o.appendChild(u.node)}e.node.appendChild(o);return}if(typeof t=="string"){let o=cm(t,e);if(Array.isArray(o)){Vc(e,o,r);return}}if(typeof t=="object")for(let o in t){if(Re.has(o))continue;let s=t[o];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),e.childProps&&(s=Bc(e.childProps,s)),n&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(n)?n:[n];s={...s,extends:[...a,...i]}}else s={extends:n,...s};ze(s,e,o,r)}}}function pm(e,t){let{children:r,content:n}=e,o=e.childExtends;if(typeof r=="function"){let i=r;r=i(e,e.state,e.context),e.children=r;let a=e.__ref,c=!1,l=ce(()=>{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 b=0;b<f.length;b++){let _=f[b],x=p;if(typeof p=="function")try{x=p(e,_)}catch{x=null}let C=x&&x.key||_&&_.key||`${b}`;u.push(C),d.set(C,{rawChild:_,childProps:x})}let m=new Set(u),h=a.__children.slice();for(let b of h)if(!m.has(b)){let _=e[b];_?.remove&&_.remove(),delete e[b]}let g=e.childExtends,y=(e.context?.document||globalThis.document)?.createDocumentFragment();for(let b of u){let _=d.get(b),x=_.rawChild,C=e[b];if(C&&C.state){if(x&&typeof x=="object"){let I=C.state;if(typeof I.replace=="function")I.replace(x);else if(typeof I.update=="function"){for(let V in I)if(!(V==="__element"||V==="root"||V==="parent"||V==="update")&&!Object.prototype.hasOwnProperty.call(x,V))try{I[V]=void 0}catch{}I.update(x)}else for(let V in x)I[V]=x[V]}continue}let E=x;(typeof x=="string"||typeof x=="number")&&(E={value:x,text:x});let P=_.childProps,B=P?{...P,state:E}:{state:E};if(g&&!B.ignoreChildExtends)if(B.extends){let I=Array.isArray(B.extends)?B.extends:[B.extends],V=Array.isArray(g)?g:[g];B={...B,extends:[...V,...I]}}else B={extends:g,...B};let O=ze(B,e,b,t);O?.node&&y&&y.appendChild(O.node)}y&&y.childNodes.length&&e.node&&e.node.appendChild(y),a.__children=u;return}for(let p of[...a.__children]){let u=e[p];u?.remove&&u.remove(),delete e[p]}a.__children=[],Vc(e,f,t)}},{depth:a.path.length});a.__effects.push(l)}if(Vc(e,r||n,t),r||n)return;let s=e.context?.components||{};{let i=Object.keys(e);for(let a=0;a<i.length;a++){let 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||Re.has(u)||typeof e[u]=="function"&&(u.startsWith("on")||u.startsWith(".")))break;let m=e[u];m!==void 0&&(f[u]=m,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)||Re.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}),o&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(o)?o:[o];c={...c,extends:[...f,...l]}}else c={extends:o,...c};ze(c,e,i,t)}}}function Uc(e,t,r){let{node:n}=e;if(!n)return;let o=t?.node||(t?.nodeType?t:null);if(o)if(r?.position==="before"&&r.node)o.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?o.insertBefore(n,s):o.appendChild(n)}else o.appendChild(n)}function vt(e,t,r){let n=e.charAt(0).toLowerCase()+e.slice(1);t.context?.plugins?.length&&Be(n,t,r);let o="on"+e,s=t[o];if(typeof s=="function"){let i=e==="Render"||e==="RenderRouter";if(i){if(t.__ref.__inRender)return!0;t.__ref.__inRender=!0}let a=t.context?.designSystem;a&&fe(a);try{if(s(t,t.state,t.context,r)===!1)return!1}catch(c){if(t.context?.plugins?.length&&Be("error",t,{hook:o,error:c})||console.error(`[DOMQL] Lifecycle "${o}" error:`,c),t.context?.strictMode)throw c}finally{a&&se(),i&&(t.__ref.__inRender=!1)}}return!0}var dm={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"]},hm={"gradient-blue-light":`linear-gradient(to right,
39
+ `):"")}}if(Uc(s,e,o),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let g=s.context?.designSystem;g&&ft(g);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}finally{g&&st()}}if(ve("Create",s,n),ve("Complete",s,n),ve("Render",s,n),ve("RenderRouter",s,n),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&ft(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&st()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function Bw(t,e,r){let n=!e,o=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&t.context?.state,i=r.state!==void 0&&!s?r.state:t.state&&!lt(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,Ht(t,t.state);else if(t.context?.state){let a=t.context.state,c={...a},l=t.context?.polyglot;if(l?.translations){let f=a.lang||l.defaultLang||"en",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=lt(c)?c:jt(c),t.state.__element=t,t.state.root=t.state,Ht(t,t.state)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Ht(t,t.state);return}if(typeof i=="string"){if(t.state=lg(i,e),t.state&&typeof t.state=="object"&&!lt(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}Ht(t,t.state);return}if(typeof i=="function"){let a=i(t,e?.state);t.state=jt(a||{})}else t.state=jt({...i});t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Ht(t,t.state)}function Fc(t,e){if(!e)return t;let r=e.split("/"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function lg(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let o=t.slice(3);return o?Fc(e.state,o):e.state??{}}if(t.startsWith("~/")){let o=e.state?.root||e.state,s=t.slice(2);return s?Fc(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=Fc(e.state,t);if(r!=null&&Object.keys(r).length>0)return r;let n=e.context?.polyglot;if(n?.translations){let o=e.state?.root?.lang||n.defaultLang||"en",s=n.translations[o];if(s?.[t]!==void 0)return s[t];if(n.translations[t]!==void 0)return n.translations[t]}return{}}function Vw(t){let e=t.__ref,r=t.tag||"div",n=t.context?.designSystem,o=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||Rt.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Er(a)||pt[a]||xt&&xt.has(a)||Je(r,a)||o.push({prop:a,fn:t[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:c}=o[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){n&&ft(n);try{return c(t,t.state,t.context)}catch{return}finally{n&&st()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Nc(t,e){let r=t.__ref;if(Vw(t),typeof t.text=="function"){let o=t.text,s=ct(()=>{if(!r.contentManaged)try{let i=o(t,t.state,t.context);t.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=or.call(t,i,t.state)),t.tag==="string"?t.node.nodeValue=i:t.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}else if(typeof t.text=="string"&&t.text.includes("{{")){let o=t.text,s=ct(()=>{if(r.contentManaged)return;let i=or.call(t,o,t.state);i!=null&&(t.text=i),t.node&&(t.tag==="string"?t.node.nodeValue=i??"":t.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&typeof t[o]=="function"&&!Rt.has(o)&&!Er(o)&&!r.__exec[o]){if(pt[o]){let s=t[o],i=o,a,c=ct(()=>{let l=t.context?.designSystem;l&&ft(l);try{let f=s(t,t.state,t.context),p=pt[i](f,t,t.state,t.context);if(p&&t.node){let u=cg(p);(u===null||u!==a)&&(a=u,Ar(t.node,p))}else t.node&&(i==="show"||i==="hide")&&(a=void 0,t.node.style.display="")}finally{l&&st()}},{depth:r.path.length});r.__effects.push(c),r.__exec[o]=s}else if(xt&&xt.has(o)){let s=t[o],i=o,a,c=ct(()=>{let l=t.context?.designSystem;l&&ft(l);try{let f=s(t,t.state,t.context);if(t.node)if(f!=null){let p=i+":"+String(f);p!==a&&(a=p,Ar(t.node,{[i]:f}))}else a=void 0,t.node.style[i]=""}finally{l&&st()}},{depth:r.path.length});r.__effects.push(c),r.__exec[o]=s}}if(typeof e.html=="function"){let o=e.html,s=ct(()=>{let i=t.context?.designSystem;i&&ft(i);try{let a=o(t,t.state,t.context);t.node&&a!=null&&typeof a!="function"&&(t.node.innerHTML=a)}finally{i&&st()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof e.value=="function"){let o=e.value,s=ct(()=>{try{let i=o(t,t.state,t.context);if(!t.node||!("value"in t.node))return;let a=i==null?"":String(i);if(t.node.value===a)return;let c=typeof document<"u"&&document.activeElement===t.node,l=c&&typeof t.node.selectionStart=="number"?t.node.selectionStart:null,f=c&&typeof t.node.selectionEnd=="number"?t.node.selectionEnd:null;if(t.node.value=a,c&&l!=null&&f!=null)try{t.node.setSelectionRange(l,f)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=o}if(typeof e.style=="function"){let o=e.style,s,i=ct(()=>{let a=o(t,t.state,t.context),c=cg(a);(c===null||c!==s)&&(s=c,Ar(t.node,a))},{depth:r.path.length});r.__effects.push(i),r.__exec.style=o}else if(t.style&&typeof t.style=="object")for(let o in t.style){let s=t.style[o];if(typeof s!="function")continue;let i,a=ct(()=>{try{let c=s(t,t.state,t.context);if(t.node){let l=o+":"+String(c);l!==i&&(i=l,Ar(t.node,{[o]:c}))}}catch{}},{depth:r.path.length});r.__effects.push(a)}if(t.attr&&typeof t.attr=="object"){for(let o in t.attr)if(typeof t.attr[o]=="function"){let s=t.attr[o],i=o,a=ct(()=>{try{let c=s(t,t.state,t.context);t.node?.setAttribute&&(c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let s=t.aria[o];if(typeof s!="function")continue;let i="aria-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=ct(()=>{try{let c=s(t,t.state,t.context);if(!t.node?.setAttribute)return;c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(t.data&&typeof t.data=="object")for(let o in t.data){let s=t.data[o];if(typeof s!="function")continue;let a="data-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),c=ct(()=>{try{let l=s(t,t.state,t.context);if(!t.node?.setAttribute)return;l==null||l===!1?t.node.removeAttribute(a):typeof l!="function"&&typeof l!="object"&&t.node.setAttribute(a,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(c)}let n=t.classlist&&typeof t.classlist=="object"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class=="object"&&!Array.isArray(t.class)?t.class:null;if(n)for(let o in n){let s=n[o];if(typeof s!="function")continue;let i=ct(()=>{try{let a=s(t,t.state,t.context);if(!t.node?.classList)return;typeof a=="string"?t.node.classList.add(a):a?t.node.classList.add(o):t.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof e.if=="function"){let o=e.if,s=ct(()=>{let i;try{i=o(t,t.state,t.context)}catch(c){if(i=!1,r.__ifError=c,typeof console<"u"&&console.warn){let l=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${l} \u2014 treating as false:`,c?.message||c)}return}let 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=kr(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 Uc(t,t.parent);jc(t)}else{if(r.__ifInitialized=!0,t.tag||(t.tag=wr(t)),ve("Init",t,{}),t.node||(t.node=kr(t)),!t.node)return;ve("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),pg(t,{});let c=e.if;delete e.if;try{Nc(t,e)}finally{e.if=c}jc(t),fg(t),dg(t,{}),Uc(t,t.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||Rt.has(o)||typeof t[o]!="function")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||Er(o))continue;let i=t[o];r.__exec[o]=i;let a=t.tag||"div";if(Je(a,o)&&!pt[o]&&!(xt&&xt.has(o))){let c=o,l=ct(()=>{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)}}Ww(t),Hw(t)}function jc(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),qw(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"&&Ar(e,t.style),t.attr&&typeof t.attr=="object")for(let r in t.attr){let n=t.attr[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||e.setAttribute&&e.setAttribute(r,n===!0?"":n)}if(t.data&&typeof t.data=="object")for(let r in t.data){let n=t.data[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||e.dataset&&(e.dataset[r]=n===!0?"":n)}if(t.classlist||t.class){let r=t.classlist||t.class;if(typeof r=="string")r.split(" ").forEach(n=>n&&e.classList.add(n));else if(typeof r=="object")for(let n in r){let o=typeof r[n]=="function"?r[n](t,t.state,t.context):r[n];o&&e.classList.add(typeof o=="string"?o:n)}}}}function cg(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function Ar(t,e){if(!t||!e||!t.style)return;let r=null;for(let n in e){let o=e[n];if(o!=null){if(n.charAt(0)==="&"&&typeof o=="object"){r||(r={}),r[n]=o;continue}try{let s=String(o),i=n.replace(/[A-Z]/g,f=>"-"+f.toLowerCase()),a=s.trim(),c=/\s*!important\s*$/.test(a),l=a.replace(/\s*!important\s*$/,"");t.style.setProperty(i,l,c?"important":"")}catch{}}}r&&zw(t,r)}var Uw=0;function zw(t,e){let r=`_ds${Uw++}`;t.classList.add(r);let n=t.ownerDocument,o=n.querySelector("style[data-smbls-scoped]");o||(o=n.createElement("style"),o.setAttribute("data-smbls-scoped",""),n.head.appendChild(o));let s="";for(let i in e){let a="."+r,c=i.replace(/&/g,a).split(",").map(f=>{let 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} }
40
+ `}else f+=`${u.replace(/[A-Z]/g,h=>"-"+h.toLowerCase())}: ${d};`}f&&(s+=`${c} { ${f} }
41
+ `),p&&(s+=p)}}s&&(o.textContent+=s)}function Ww(t){let e=t.subscribeTo;if(!Array.isArray(e)||e.length===0)return;let r=t.__ref;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o!="string"||o.length===0)continue;let s=o.split("."),i=s[0],a=s.slice(1),c={value:!1},l=ct(()=>{let f=t.state&&(lt(t.state)?t.state.root:null);if(!f||!lt(f))return;let p=f;p=p[i];for(let u=0;u<a.length&&!(p==null||typeof p!="object");u++)if(lt(p))p=p[a[u]];else break;if(c.value&&typeof t.onUpdate=="function"){let u=t.context?.designSystem;u&&ft(u);try{t.onUpdate(t,t.state,t.context)}catch(d){t.context?.plugins?.length&&Bt("error",t,{hook:"onUpdate",error:d})||console.error("[DOMQL] subscribeTo onUpdate error:",d)}finally{u&&st()}}},{depth:r.path.length});c.value=!0,r.__effects.push(l)}}function Hw(t){let e=t.__ref;e.__conditionalRunners=[];for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let s=t[r];if(!s||typeof s!="object")continue;let i=n==="!",a={lastMatch:!1,appliedKeys:null},c=()=>{if(!t.node)return;let f,p=t[o];if(p===void 0)if(t.state&&o in t.state)f=t.state[o];else{let h=t.context?.cases?.[o];if(h===void 0)return;try{f=typeof h=="function"?h.call(t,t):h}catch(g){f=!1,e.__conditionalError=g,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,g?.message||g)}}else if(typeof p=="function")try{f=p(t,t.state,t.context)}catch(h){f=!1,e.__conditionalError=h,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,h?.message||h)}else 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(pt[m]){let b=pt[m](y,t,t.state,t.context);if(b){let w=Array.isArray(b)?b:[b];for(let x of w)x&&Object.assign(h,x)}}else xt&&xt.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(Ar(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&&st()}};e.__conditionalRunners.push(c);let l=ct(c,{depth:e.path.length});e.__effects.push(l)}}var Dc=new WeakSet;function Gw(t){let e=t.ownerDocument;!e||Dc.has(e)||(Dc.add(e),queueMicrotask(()=>{Dc.delete(e);let r=e.body||e.documentElement;r&&r.offsetWidth}))}var Lc=new WeakSet;function qw(t){let{node:e}=t;if(!e)return;if(Lc.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Lc.add(t);let r=t.context?.designSystem;r&&ft(r);try{let n={},o=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]=="function"||Rt.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!Er(s)){if(pt[s]){let a=t[s],c=pt[s](a,t,t.state,t.context);if(c){if(Array.isArray(c))for(let l of c)l&&Object.assign(n,l);else Object.assign(n,c);o=!0}}else if(xt&&xt.has(s)){let a=t[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=t[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="&"){let a=t[s];a&&typeof a=="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=t[s];if(a&&typeof a=="object"){let c={};for(let l in a){let f=a[l];if(typeof f=="function"&&(f=f(t,t.state,t.context)),!(f==null||typeof f=="function"))if(pt[l]){let p=pt[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);n[`[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(pt[m]){let y=pt[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(", ");n[m]=h}else n[`${f}${g}${u}`]=h}else p[u]=d}Object.keys(p).length&&(n[f]=p)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(e.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let s=Xe(n,null,t.context?.cssPrefix);if(s&&e.classList){let a=s.split(" ").filter(Boolean),c=!1;for(let l of a)e.classList.add(l),c||(l.charCodeAt(0)===95&&l.charCodeAt(1)===99||l.charCodeAt(0)===95&&l.indexOf("_c",1)!==-1)&&(c=!0);c&&Gw(e)}let i=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i==="none"){let c=[];for(let l of e.classList)l.startsWith("_d-")&&l!=="_d-none"&&c.push(l);for(let l of c)e.classList.remove(l);e.classList.add("_d-none")}else e.style.display=t.display}}}finally{r&&st(),Lc.delete(t)}}function fg(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let s=t.aria[o];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(i,s===!0?"":s)}let r=ag(t);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(o,s===!0?"":s)}let n=t.tag||"div";for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||typeof t[o]=="function"||Rt.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!Er(o)&&!(pt[o]||xt&&xt.has(o))&&Je(n,o)){let i=t[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=or(i,t,t.state,t.context),t[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;e.setAttribute(o,i===!0?"":i)}}}function Kw(t){if(!t.autoGrow)return;let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let r=t.autoGrow,n=r&&typeof r=="object"&&r.max?String(r.max):null;n&&(e.style.maxHeight=n);let o=()=>{e.style.height="auto",e.style.height=e.scrollHeight+"px"};o(),e.addEventListener("input",o),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("input",o)}catch{}})}var ug=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function pg(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!Er(r)||ug.has(r))continue;let n=t[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let s=n;n=function(a){return t.call(s,a)}}if(typeof n!="function")continue;let o=Nw(r);vr.has(o)||Ts(jw(o),t,n)}Yw(t)}function Yw(t){let e=t.node;if(!e||!e.addEventListener)return;let r={},n=!1;for(let u of ug){let d=t[u];typeof d=="function"&&(r[u]=d,n=!0)}if(!n)return;let o=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,f=u=>{let d=u.touches&&u.touches[0]||u.changedTouches&&u.changedTouches[0];d&&(i=d.clientX,a=d.clientY,c=Date.now(),l=!0)},p=u=>{if(!l)return;l=!1;let d=u.changedTouches&&u.changedTouches[0]||u.touches&&u.touches[0];if(!d)return;let h=d.clientX-i,g=d.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(h),b=Math.abs(g);if(Math.max(y,b)<o)return;let w;if(y>b*1.2)w=h<0?"left":"right";else if(b>y*1.2)w=g<0?"up":"down";else return;let x="onSwipe"+w.charAt(0).toUpperCase()+w.slice(1),v=r[x],A=r.onSwipe;v&&v.call(t,u,t,t.state,t.context),A&&A.call(t,{direction:w,dx:h,dy:g,dt:m,event:u},t,t.state,t.context)};e.addEventListener("touchstart",f,{passive:!0}),e.addEventListener("touchend",p,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("touchstart",f)}catch{}try{e.removeEventListener("touchend",p)}catch{}})}function Bc(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Bc(o,s):r[n]=s}return r}function Vc(t,e,r){if(!e||!t.node)return;let n=t.childExtends;if(Array.isArray(e)){let s=(t.context?.document||globalThis.document)?.createDocumentFragment();if(!s)return;let i=t.childProps,a=t.childrenAs;for(let c=0;c<e.length;c++){let l=e[c],f=l;(typeof l=="string"||typeof l=="number")&&(l={text:l});let 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=Bc(p,l));if(n&&!l.ignoreChildExtends)if(l.extends){let h=Array.isArray(l.extends)?l.extends:[l.extends],g=Array.isArray(n)?n:[n];l={...l,extends:[...g,...h]}}else l={extends:n,...l};let 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 o=lg(e,t);if(Array.isArray(o)){Vc(t,o,r);return}}if(typeof e=="object")for(let o in e){if(Rt.has(o))continue;let s=e[o];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),t.childProps&&(s=Bc(t.childProps,s)),n&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(n)?n:[n];s={...s,extends:[...a,...i]}}else s={extends:n,...s};zt(s,t,o,r)}}}function dg(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r=="function"){let i=r;r=i(t,t.state,t.context),t.children=r;let a=t.__ref,c=!1,l=ct(()=>{let f=i(t,t.state,t.context);if(!c){c=!0;return}if(f===t.children)return;if(t.children=f,Array.isArray(f)&&t.childrenAs==="state"){let d=t.childProps,h=[],g=new Map;for(let v=0;v<f.length;v++){let A=f[v],R=d;if(typeof d=="function")try{R=d(t,A)}catch{R=null}let W=R&&R.key||A&&A.key||`${v}`;h.push(W),g.set(W,{rawChild:A,childProps:R})}let m=new Set(h),y=a.__children.slice();for(let v of y)if(!m.has(v)){let A=t[v];A?.remove&&A.remove(),delete t[v]}let b=t.childExtends,x=(t.context?.document||globalThis.document)?.createDocumentFragment();for(let v of h){let A=g.get(v),R=A.rawChild,W=t[v];if(W&&W.state){if(R&&typeof R=="object"){let M=W.state;if(typeof M.replace=="function")M.replace(R);else if(typeof M.update=="function"){for(let I in M)if(!(I==="__element"||I==="root"||I==="parent"||I==="update")&&!Object.prototype.hasOwnProperty.call(R,I))try{M[I]=void 0}catch{}M.update(R)}else for(let I in R)M[I]=R[I]}continue}let O=R;(typeof R=="string"||typeof R=="number")&&(O={value:R,text:R});let L=A.childProps,V=L?{...L,state:O}:{state:O};if(b&&!V.ignoreChildExtends)if(V.extends){let M=Array.isArray(V.extends)?V.extends:[V.extends],I=Array.isArray(b)?b:[b];V={...V,extends:[...I,...M]}}else V={extends:b,...V};let J=zt(V,t,v,e);J?.node&&x&&x.appendChild(J.node)}x&&x.childNodes.length&&t.node&&t.node.appendChild(x),a.__children=h;return}for(let d of[...a.__children]){let h=t[d];h?.remove&&h.remove(),delete t[d]}a.__children=[],Vc(t,f,e)},{depth:a.path.length});a.__effects.push(l)}if(Vc(t,r||n,e),r||n)return;let s=t.context?.components||{};{let i=Object.keys(t);for(let a=0;a<i.length;a++){let c=i[a];if(!c.endsWith("Extends")||typeof t[c]!="string")continue;let l=c.slice(0,-7);if(!l||l.charCodeAt(0)<65||l.charCodeAt(0)>90)continue;let f={extends:t[c]};delete t[c];for(let p=a+1;p<i.length;p++){let u=i[p],d=u.charCodeAt(0);if(d>=65&&d<=90||Rt.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)||Rt.has(i)||typeof t[i]!="object"||t[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let c=t[i];if(!c.__ref){if(!c.extends&&!c.extend){let l=s[i]||s[`smbls.${i}`];l&&(c={extends:l,...c})}if(t.childProps&&(c={...t.childProps,...c}),o&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(o)?o:[o];c={...c,extends:[...f,...l]}}else c={extends:o,...c};zt(c,t,i,e)}}}function Uc(t,e,r){let{node:n}=t;if(!n)return;let o=e?.node||(e?.nodeType?e:null);if(o)if(r?.position==="before"&&r.node)o.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?o.insertBefore(n,s):o.appendChild(n)}else o.appendChild(n)}function ve(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Bt(n,e,r);let o="on"+t,s=e[o];if(typeof s=="function"){let i=t==="Render"||t==="RenderRouter";if(i){if(e.__ref.__inRender)return!0;e.__ref.__inRender=!0}let a=e.context?.designSystem;a&&ft(a);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(c){if(e.context?.plugins?.length&&Bt("error",e,{hook:o,error:c})||console.error(`[DOMQL] Lifecycle "${o}" error:`,c),e.context?.strictMode)throw c}finally{a&&st(),i&&(e.__ref.__inRender=!1)}}return!0}var hg={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"]},gg={"gradient-blue-light":`linear-gradient(to right,
42
42
  rgba(4, 116, 242, 1),
43
43
  rgba(0, 48, 103, 1)
44
44
  )`,"gradient-blue-dark":`linear-gradient(to right,
@@ -64,15 +64,15 @@ FROM ${a}${l}`},b_=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
64
64
  #1E54F0 36%,
65
65
  #8B4CCA 69%,
66
66
  #C66894 100%
67
- )`};var Xw={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"}}}},Yw={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},Zw={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"}}},mm={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...Xw,...Yw,...Zw,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var gm={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var ym={ratio:1.618,subSequence:!0};var bm={SourceSans:[{url:""}]},xm={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var _m={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 Sm={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 wm={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Fs={version:"0.0.1",color:dm,gradient:hm,theme:mm,typography:gm,spacing:ym,font:bm,fontFamily:xm,timing:wm,icons:_m,media:Sm,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var On={};F(On,{A:()=>Lg,AssetPicture:()=>Bm,Audio:()=>zm,Avatar:()=>Zg,B:()=>cg,Block:()=>km,Box:()=>Ms,Br:()=>pg,Button:()=>jg,ButtonSet:()=>zg,COMPONENTS:()=>Or,Caption:()=>Qm,Checkbox:()=>wg,CheckboxHgroup:()=>kg,Circle:()=>Nm,CircleButton:()=>Vg,Clickable:()=>Fm,Data:()=>fg,Dialog:()=>Hg,DialogFooter:()=>qg,DialogHeader:()=>Gg,Dropdown:()=>Qg,DropdownList:()=>ey,DropdownParent:()=>ty,DropdownParentFocus:()=>ry,DropdownSiblingFocus:()=>ny,FileIcon:()=>Ig,Flex:()=>Cm,Focusable:()=>Dm,FocusableComponent:()=>Lm,Footnote:()=>ag,Form:()=>Pm,Grid:()=>Em,Gutter:()=>Om,H1:()=>Gm,H2:()=>qm,H3:()=>Km,H4:()=>Xm,H5:()=>Ym,H6:()=>Zm,Headline:()=>sg,Hgroup:()=>yg,HgroupButton:()=>xg,HgroupRows:()=>bg,Hoverable:()=>$m,Hr:()=>ug,I:()=>lg,Icon:()=>Rg,IconButton:()=>Wg,IconText:()=>Pg,Iframe:()=>Im,Img:()=>Rm,Inline:()=>vm,InlineFlex:()=>Am,InlineGrid:()=>Tm,Input:()=>_g,Italic:()=>ng,KangorooButton:()=>Ug,Li:()=>dg,Link:()=>bl,Notification:()=>oy,NumberInput:()=>Sg,Ol:()=>mg,P:()=>Jm,Picture:()=>jm,Radio:()=>vg,RadioHgroup:()=>Cg,Range:()=>Jg,RouteLink:()=>Ng,RouterLink:()=>xl,SHAPES:()=>Ls,Select:()=>Mg,Shape:()=>Kc,Span:()=>Hm,SquareButton:()=>Bg,Strong:()=>eg,Subhead:()=>ig,Svg:()=>Vm,Text:()=>Wm,Textarea:()=>Tg,TextareaWithButton:()=>Og,Theme:()=>Mm,Title:()=>og,Toggle:()=>Ag,ToggleHgroup:()=>Eg,Tooltip:()=>Kg,TooltipHidden:()=>Xg,TooltipParent:()=>Yg,U:()=>tg,Ul:()=>hg,Underline:()=>rg,Video:()=>Um,depth:()=>Ns,getSystemGlobalTheme:()=>Tn});var zc={};F(zc,{Block:()=>km,Flex:()=>Cm,Grid:()=>Em,Gutter:()=>Om,Inline:()=>vm,InlineFlex:()=>Am,InlineGrid:()=>Tm});var km={display:"block"},vm={display:"inline"},Cm={display:"flex"},Am={display:"inline-flex"},Em={display:"grid"},Tm={display:"inline-grid"},Om={boxSize:"C1"};var Wc={};F(Wc,{Img:()=>Rm});R();var Rm={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Te(e);return t&&t.src||e.src},srcset:e=>{let t=Te(e);return(t?cs(t):"")||e.srcset}}};var Hc={};F(Hc,{Form:()=>Pm});var Pm={tag:"form"};var Gc={};F(Gc,{Iframe:()=>Im});var Im={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var qc={};F(qc,{Clickable:()=>Fm,Focusable:()=>Dm,FocusableComponent:()=>Lm,Hoverable:()=>$m});var Jw={appearance:"none",cursor:"pointer",fontFamily:"inherit"},$m={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}}},Fm={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},Dm={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},Lm={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:Jw};var Zc={};F(Zc,{Picture:()=>jm});var Yc={};F(Yc,{Theme:()=>Mm,getSystemGlobalTheme:()=>Tn});var Xc={};F(Xc,{Circle:()=>Nm,SHAPES:()=>Ls,Shape:()=>Kc,default:()=>Qw,depth:()=>Ns});R();var Ne=A(),Ns={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Ne.unit.default} 4${Ne.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Ne.unit.default} 6${Ne.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Ne.unit.default} 10${Ne.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Ne.unit.default} 16${Ne.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Ne.unit.default} 26${Ne.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Ne.unit.default} 42${Ne.unit.default}`}},Tr=e=>Q(e.shapeDirectionColor)||Q(e.borderColor)||Q(e.backgroundColor)||Q(e.background),Ds=e=>{let t=Is.transition(e.transition,e);return t&&t.transition},Ls={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:Tr(e),transition:Ds(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:Tr(e),transition:Ds(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:Tr(e),transition:Ds(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:Ds(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Tr(e)} 25%, transparent 25%), linear-gradient(315deg, ${Tr(e)} 25%, transparent 25%)`},"&:after":{background:Tr(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)"}}}},Kc={deps:{exec:Y,getSpacingBasedOnRatio:ft,getMediaColor:be},classlist:{shape:e=>e.deps.exec(Ls[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Ls[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}}},Nm={round:"100%"},Qw=Kc;R();var Tn=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},Mm={deps:{depth:Ns},classlist:{depth:e=>!me(e.depth)&&e.deps.depth[e.depth]}};var jm={deps:{getSystemGlobalTheme:Tn},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Tn},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}};var Jc={};F(Jc,{AssetPicture:()=>Bm});R();var Bm={tag:"picture",children:e=>{let t=Te(e);if(t)return ls(t,e.alt)}};var Qc={};F(Qc,{Svg:()=>Vm});var Vm={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=u=>`<use xlink:href="#${u}" />`,c=e.spriteId;if(c)return a(c);if(o&&o[i])return a(i);let l=Symbol.for(i),f=o[l];if(f&&o[f])return a(f);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let p=0;for(let u=0;u<i.length;u++)p=(p<<5)-p+i.charCodeAt(u)|0;return f=o[l]=`svg-${(p>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:t.document,emotion:t.emotion}),a(f)}};var el={};F(el,{Video:()=>Um});R();var Um={tag:"video",controls:!0,attr:{src:e=>{let t=Te(e);return t&&t.src||e.src}},children:e=>{let t=Te(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 tl={};F(tl,{Audio:()=>zm});R();var zm={tag:"audio",controls:!0,attr:{src:e=>{let t=Te(e);return t&&t.src||e.src}},children:e=>{let t=Te(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 rl={};F(rl,{B:()=>cg,Caption:()=>Qm,Data:()=>fg,Footnote:()=>ag,H1:()=>Gm,H2:()=>qm,H3:()=>Km,H4:()=>Xm,H5:()=>Ym,H6:()=>Zm,Headline:()=>sg,I:()=>lg,Italic:()=>ng,P:()=>Jm,Span:()=>Hm,Strong:()=>eg,Subhead:()=>ig,Text:()=>Wm,Title:()=>og,U:()=>tg,Underline:()=>rg});var Wm={},Hm={tag:"span"},Gm={tag:"h1"},qm={tag:"h2"},Km={tag:"h3"},Xm={tag:"h4"},Ym={tag:"h5"},Zm={tag:"h6"},Jm={tag:"p"},Qm={tag:"caption"},eg={tag:"strong",fontWeight:"700"},tg={tag:"u"},rg={tag:"u"},ng={tag:"i"},og={},sg={tag:"h6",fontSize:"B",fontWeight:500},ig={tag:"span",fontSize:"Z1"},ag={tag:"span",fontSize:"Z"},cg={tag:"b"},lg={tag:"i"},fg={tag:"data"};var nl={};F(nl,{Box:()=>Ms,Br:()=>pg,Hr:()=>ug,Li:()=>dg,Ol:()=>mg,Ul:()=>hg});var e0=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Le(t,e,{unpack:!1});r.__class=n},Ms={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:e0},ug={tag:"hr",margin:"C1 0"},pg={tag:"br"},dg={tag:"li"},hg={tag:"ul",childExtends:{extends:"Li"}},mg={tag:"ol",childExtends:{extends:"Li"}};var ol={};F(ol,{Hgroup:()=>yg,HgroupButton:()=>xg,HgroupRows:()=>bg});var gg=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},yg={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:gg,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:gg,margin:"0",color:"paragraph"}},bg={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},xg={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var sl={};F(sl,{Input:()=>_g});var _g={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 il={};F(il,{NumberInput:()=>Sg});var Sg={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 al={};F(al,{Checkbox:()=>wg,CheckboxHgroup:()=>kg});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"}}},kg={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var cl={};F(cl,{Radio:()=>vg,RadioHgroup:()=>Cg});var vg={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}},Cg={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var ll={};F(ll,{Toggle:()=>Ag,ToggleHgroup:()=>Eg});var Ag={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}},Eg={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var fl={};F(fl,{Textarea:()=>Tg,TextareaWithButton:()=>Og});var Tg={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"}},Og={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 ul={};F(ul,{FileIcon:()=>Ig,Icon:()=>Rg,IconText:()=>Pg});var Rg={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=x=>{let C=x[".isActive"];if(C)return x.call("exec",C.name||C.icon)},l=(x,C,E)=>{let{semanticIcons:P}=E&&E.designSystem,{toCamelCase:B}=E&&E.utils,O=f(x,C),V=B(O).split(/([a-z])([A-Z])/g),te=V[1]?V[0]:O.split(".")[0].split(" ")[0],W=P&&P[te];if(W){let M=O.includes(".")?"sfsymbols."+O.split(".").slice(1).join("."):"sfsymbols";return O=W[M]||W[O.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${O}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(x,C)=>{let{key:E}=x,P=x.call("exec",x.name||x.icon||E,x);return x.call("isString",P)&&P.includes("{{")&&(P=x.call("replaceLiteralsWithObjectFields",P)),x.call("isString",P)?P:E},p=f(e,t);if(p.includes(" ")){let x=p.split(" ");p=x[0]+x.slice(1).map(C=>C.charAt(0).toUpperCase()+C.slice(1)).join("")}let u=a(p),d=u.split(/([a-z])([A-Z])/g),m=l(e,t,r);if(m){Object.assign(e,m);return}let h;e.isActive&&(h=c(e));let g=n[".isActive"];n&&n.isActive&&g&&g.icon&&(h=e.call("exec",g.icon||g.Icon.name||g.Icon.icon,e)),e.call("isString",h)&&h.includes("{{")&&(h=e.call("replaceLiteralsWithObjectFields",h));let y;o[h]&&(y=h),o[u]?y=u:o[d[0]+d[1]]?y=d[0]+d[1]:o[d[0]]?y=d[0]:i&&e.warn("Can't find icon:",p,y);let b=o[y],_=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||_||o.noIcon})},attr:{viewBox:"0 0 24 24"}},Pg={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},Ig={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var _l={};F(_l,{A:()=>Lg,Link:()=>bl,RouteLink:()=>Ng,RouterLink:()=>xl});var yl={};F(yl,{default:()=>s0,getActiveRoute:()=>gl,lastLevel:()=>Bs,lastPathname:()=>js,matchRoute:()=>dl,parseQuery:()=>hl,parseRoutePattern:()=>pl,router:()=>tt,runGuards:()=>ml});R();var Fg=/^:(.+)/,Dg=/^\*$/,$g=new Map,pl=e=>{let t=$g.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(Fg);a?n.push({index:i,name:a[1]}):Dg.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return $g.set(e,s),s},dl=(e,t,r=0)=>{let o=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||"");if(!t)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in t){if(l==="/*")continue;let f=pl(l),p=t0(o,f);p>a&&(a=p,i=l,c=r0(o,f))}return!i&&t["/*"]&&(i="/*"),{key:i,content:i?t[i]:null,params:c,routePath:s}},t0=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(Fg.test(r[i]))o+=1;else if(Dg.test(r[i]))o+=.5;else return-1;return o},r0=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},hl=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((n,o)=>{t[o]!==void 0?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(n)):t[o]=n}),t},ml=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},gl=(e=0,t)=>{t||(t=typeof k<"u"?k.location.pathname:"/");let n=t.split("/")[e+1];if(n)return`/${n}`},js,Bs=0,n0=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,o0={level:Bs,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:X&&X.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},tt=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||k,i=o?.context?.document||X,a={...o0,...o.context.routerOptions,...n};Bs=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let l=c.contentElementKey||a.contentElementKey||"content",f=s.location.origin!=="null"?s.location.origin:"http://localhost";e=n0(e);let p=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,u=new p(f+e),{pathname:d,search:m,hash:h}=u,g=hl(m),y=o.node,b=h&&h!==s.location.hash.slice(1),_=d!==js;js=d;let x,C,E,P;if(a.useParamsMatching){let O=dl(d,o.routes,a.level);x=O.key,C=O.routePath,E=O.content,P=O.params}else{x=gl(a.level,d),C=x;let O=o.routes;E=O?O[x||"/"]||O["/*"]:null,P={}}let B=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!E){a.onNotFound?a.onNotFound({pathname:d,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",d,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let O={pathname:d,route:x,params:P,query:g,hash:h,element:o,state:r},I=await ml(a.guards,O);if(I===!1)return;if(typeof I=="string")return tt(I,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,d+(m||"")+(h||""))}catch{}if(_||!b){let O={route:x,routePath:C,hash:h,debugging:!1};Object.keys(P).length&&(O.params=P),Object.keys(g).length&&(O.query=g),a.updateState&&o.state.update(O,{preventContentUpdate:!0}),l&&a.removeOldElement&&o[l].remove();let I=o.__ref?.origin?.content,V={};if(I)for(let W in I){let M=I[W];W==="__ref"||W==="props"||W==="node"||W==="parent"||W==="key"||(typeof M=="string"||typeof M=="number"||typeof M=="boolean"||typeof M=="object"&&M!==null&&!M.node&&!M.__ref)&&(V[W]=M)}let te={...V,...typeof E=="object"?E:{extends:E}};a.useFragment&&(te.tag="fragment");try{if(typeof o?.set!="function")return;o.set(te,{contentElementKey:l})}catch(W){console.error("[smbls/router] failed to render route content",d,W)}}if(a.scrollToTop&&B?.scrollTo&&B.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&E[l]?.node?.scrollTo&&E[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let O=i.getElementById(h);if(O&&B?.scrollTo){let I=O.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);B.scrollTo({...a.scrollToOptions||{},top:I,left:0})}}Vt("routeChanged",o,a)},s0=tt;var i0=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=n,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 m=u;if(p&&p.customRouterElement){let h=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),g=u;for(let y of h){if(!g||!g[y]){g=null;break}g=g[y]}g&&(m=g,u.routes&&(m.routes=u.routes))}(f.router||l.router||c.router||tt)(a,m,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...p,...t.routerOptions})}catch(m){console.warn(m)}}},bl={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Zt(e,e.href)||Zt(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:i0},Lg={extends:"Link"},xl={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=n,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 m=u;if(p&&p.customRouterElement){let h=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),g=u;for(let y of h){if(!g||!g[y]){g=null;break}g=g[y]}g&&(m=g,u.routes&&(m.routes=u.routes))}(f.router||l.router||c.router||tt)(a,m,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...p,...t.routerOptions})}catch(m){console.warn(m)}}}},Ng={extends:[bl,xl]};var Sl={};F(Sl,{Select:()=>Mg});var Mg={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 wl={};F(wl,{Button:()=>jg,ButtonSet:()=>zg,CircleButton:()=>Vg,IconButton:()=>Wg,KangorooButton:()=>Ug,SquareButton:()=>Bg});var jg={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)},Bg={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"},Vg={extends:"SquareButton",round:"C"},Ug={extends:"Button",childExtends:"IconText"},zg={tag:"nav",display:"flex",childExtends:"SquareButton"},Wg={extends:["SquareButton","ClickableItem"],round:"Z"};var kl={};F(kl,{Dialog:()=>Hg,DialogFooter:()=>qg,DialogHeader:()=>Gg});var Hg={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Gg={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},qg={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 vl={};F(vl,{Tooltip:()=>Kg,TooltipHidden:()=>Xg,TooltipParent:()=>Yg});R();var Kg={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=>ve(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)}},Xg={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)}},Yg={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var Cl={};F(Cl,{Avatar:()=>Zg});var Zg={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 Al={};F(Al,{Range:()=>Jg});var Jg={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:fs("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:fs("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}};var El={};F(El,{Dropdown:()=>Qg,DropdownList:()=>ey,DropdownParent:()=>ty,DropdownParentFocus:()=>ry,DropdownSiblingFocus:()=>ny});var Qg={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"},ey={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"}}},ty={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},ry={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},ny={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}};var Tl={};F(Tl,{Notification:()=>oy});var oy={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 Or=Object.assign({},zc,Wc,Hc,Gc,qc,Zc,Jc,Qc,Xc,el,tl,Yc,rl,nl,ol,sl,il,al,cl,ll,fl,ul,_l,Sl,wl,kl,vl,Cl,Al,El,Tl);function Vs(e){if(e==null)return 0;if(typeof e!="object")return sy(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let n=0;n<e.length;n++)t=(t^Vs(e[n]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let n=0;n<r.length;n++)t=(t^sy(r[n]))*16777619,t=(t^Vs(e[r[n]]))*16777619;return t>>>0}function sy(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function Us(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!=typeof t||typeof e!="object")return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!Us(e[o],t[o]))return!1;return!0}let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(t,s)||!Us(e[s],t[s]))return!1}return!0}function Ol(e,t){if(t===void 0)return e;if(e===void 0)return t;if(t===null)return null;if(typeof t!="object"||Array.isArray(t))return t;if(typeof e!="object"||Array.isArray(e))return{...t};let r=!1,n={};for(let o in e)if(o in t){let s=Ol(e[o],t[o]);n[o]=s,s!==e[o]&&(r=!0)}else n[o]=e[o];for(let o in t)o in e||(n[o]=t[o],r=!0);return r?n:e}function Rl(e,t,r){if(!t||typeof t!="object")return e;if(!e||typeof e!="object")return t;if(r||(r=new WeakSet),r.has(t))return e;r.add(t);for(let n in t){let o=t[n];o&&typeof o=="object"&&!Array.isArray(o)&&e[n]&&typeof e[n]=="object"&&!Array.isArray(e[n])?Rl(e[n],o,r):e[n]=o}return e}function Ct(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 Rr(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Rn(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Ct(t)}function iy(e){return e.split(`
68
- `).map(Ct).join(`
69
- `)}var ay={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 cy(e,t){let r=ay[e]||Ct(e),n=Rn(t),o=`_${r}-${n}`,s=Rr(e),i=`.${o}{${s}: ${t}}`;return`${o}
70
- ${i}`}var ly=e=>typeof e=="string"&&(e.indexOf("{")!==-1||e.indexOf("}")!==-1);function fy(e){let t=e.split("\0"),r=[],n=[];for(let o=0;o+1<t.length;o+=2){let s=t[o],i=t[o+1];if(!i||ly(i))continue;let a=ay[s]||Ct(s),c=Rn(i),l=`_${a}-${c}`,f=Rr(s);r.push(l),n.push(`.${l}{${f}:${i}}`)}return r.join(" ")+"\0"+n.join(`
71
- `)}function uy(e,t){let r=e+t,n=`_c${Ct(r)}`,o=t.split("\0"),s="";for(let a=0;a+1<o.length;a+=2){let c=o[a],l=o[a+1];l&&(ly(l)||(s+=`${Rr(c)}:${l};`))}let i;if(e.startsWith("@media"))i=`${e}{.${n}{${s}}}`;else if(e.startsWith(":")||e.startsWith("&")){let a=e.startsWith("&")?e.slice(1):e;i=`.${n}${a}{${s}}`}else e.includes("&")?i=`${e.replace("&",`.${n}`)}{${s}}`:i=`.${n} ${e}{${s}}`;return`${n}
72
- ${i}`}var Pl=null;function Il(e){Pl=e}var Ge={structuralHash:Vs,deepEqual:Us,mergeStructural:Ol,overwriteDeep:Rl,shortHash:Ct,toKebab:Rr,sanitizeValue:Rn,batchShortHash:iy,atomicCssClass:cy,batchAtomicCss:fy,compoundCssClass:uy},py=!1,zs=null;function u0(e){return zs||(zs=import(e||"@symbo.ls/wasm/pkg").then(t=>(t.structuralHash&&(Ge.structuralHash=t.structuralHash),t.deepEqual&&(Ge.deepEqual=t.deepEqual),t.mergeStructural&&(Ge.mergeStructural=t.mergeStructural),t.overwriteDeep&&(Ge.overwriteDeep=t.overwriteDeep),t.shortHash&&(Ge.shortHash=t.shortHash),t.toKebab&&(Ge.toKebab=t.toKebab),t.sanitizeValue&&(Ge.sanitizeValue=t.sanitizeValue),t.batchShortHash&&(Ge.batchShortHash=t.batchShortHash),t.atomicCssClass&&(Ge.atomicCssClass=t.atomicCssClass),t.batchAtomicCss&&(Ge.batchAtomicCss=t.batchAtomicCss),t.compoundCssClass&&(Ge.compoundCssClass=t.compoundCssClass),py=!0,Pl&&t.batchAtomicCss&&Pl({batchAtomicCss:t.batchAtomicCss,compoundCssClass:t.compoundCssClass}),!0)).catch(t=>(console.debug("[smbls] WASM not available, using JS fallbacks:",t.message),!1)),zs)}function p0(){return py}R();var Pn={};F(Pn,{CDN_PROVIDERS:()=>Ye,DOMQL_EVENTS:()=>Jf,DOMQ_PROPERTIES:()=>Dt,ENV:()=>yu,HTML_TAGS:()=>on,METHODS:()=>en,METHODS_EXL:()=>co,NODE_ENV:()=>Ke,OPTIONS:()=>Fo,PACKAGE_MANAGER_TO_CDN:()=>Wt,PARSED_DOMQ_PROPERTIES:()=>ao,PROPS_METHODS:()=>Nt,STATE_METHODS:()=>Lt,STATE_PROPERTIES:()=>Zf,SVG_TAGS:()=>Mu,TYPES:()=>ro,UNIVERSAL_RESERVED_KEYS:()=>Pa,addCaching:()=>la,addContext:()=>ca,addExtend:()=>Hu,addExtends:()=>Ee,addItemAfterEveryElement:()=>Mf,addProtoToArray:()=>so,addRef:()=>sa,applyCSS:()=>my,applyDependentState:()=>dp,applyEvent:()=>ma,applyEventUpdate:()=>ga,applyExtends:()=>qu,applyProps:()=>To,arrayContainsOtherArray:()=>Pf,arraysEqual:()=>Bf,arrayzeValue:()=>pr,buildImgSrcset:()=>cs,buildSourcesAndImg:()=>ls,cache:()=>_p,call:()=>Yp,captureSnapshot:()=>ed,checkForStateTypes:()=>lp,checkIfInherits:()=>ha,checkIfStringIsInArray:()=>zf,clone:()=>nu,cloneAndMergeArrayExtend:()=>xo,cloneFunction:()=>Cu,concatAddExtends:()=>Vu,copyJavaScriptToClipboard:()=>Fd,copyStringToClipboard:()=>$d,createBasedOnType:()=>oa,createElement:()=>ap,createElementExtends:()=>zi,createExtends:()=>So,createExtendsFromKeys:()=>sn,createExtendsStack:()=>qi,createIfConditionFlag:()=>Au,createInheritedState:()=>fp,createKey:()=>go,createNestedObject:()=>fu,createNestedObjectByKeyPath:()=>pp,createObjectWithoutPrototype:()=>Fi,createParent:()=>ia,createPath:()=>aa,createProps:()=>Oo,createPropsStack:()=>ta,createRoot:()=>ip,createScope:()=>gp,createSnapshotId:()=>mo,customDecodeURIComponent:()=>Yf,customEncodeURIComponent:()=>Xf,cutArrayAfterValue:()=>Lf,cutArrayBeforeValue:()=>Df,debounce:()=>bo,debounceOnContext:()=>wu,decodeNewlines:()=>Kf,deepClone:()=>J,deepContains:()=>cu,deepDefaults:()=>os,deepDestringifyFunctions:()=>it,deepExtend:()=>Ui,deepMerge:()=>G,deepMergeExtends:()=>at,deepStringifyFunctions:()=>lo,defineSetter:()=>Kp,destringifyGlobalScope:()=>uo,detectHeightOnInit:()=>fd,detectInfiniteLoop:()=>hu,document:()=>X,encodeNewlines:()=>qf,error:()=>ur,excludeKeysFromObject:()=>gu,exec:()=>Y,extendCachedRegistry:()=>Uu,extendStackRegistry:()=>wo,extractArrayExtend:()=>vo,fetchLibraryData:()=>$a,fibonacciNumberByIndex:()=>pd,filterArrays:()=>Vf,filterArraysFast:()=>Uf,finalizeExtends:()=>Ki,findClosestNumber:()=>Ia,findClosestNumberInFactory:()=>Ed,findInheritedState:()=>da,findKeyPosition:()=>Hf,flattenExtend:()=>an,formatDate:()=>cd,generateHash:()=>ji,generateKey:()=>ho,generateMetaTags:()=>vd,get:()=>Wp,getActiveRoute:()=>gl,getCDNUrl:()=>Ze,getCapitalCaseKeys:()=>Ku,getCdnProviderFromConfig:()=>bn,getChildStateInKey:()=>pa,getChildren:()=>zo,getContext:()=>Yo,getCookie:()=>$u,getDB:()=>ts,getEmotionStylesheet:()=>jd,getExtendsInElement:()=>Gu,getExtendsStack:()=>_o,getExtendsStackRegistry:()=>Vi,getFrequencyInArray:()=>If,getHashedExtend:()=>ko,getImportMapScript:()=>id,getInObjectByPath:()=>du,getLocalStorage:()=>Du,getNev:()=>Su,getPageMetadata:()=>Cd,getParentStateInKey:()=>ua,getPath:()=>Wo,getQuery:()=>rs,getRef:()=>Gp,getRoot:()=>qo,getRootContext:()=>Xo,getRootData:()=>Ko,getRootState:()=>Go,getRootStateInKey:()=>fa,getSpreadChildren:()=>Xu,global:()=>Tf,hasFunction:()=>tn,hasHandlerPlugin:()=>rn,hasOwnProperty:()=>su,inheritChildExtends:()=>Hi,inheritChildPropsExtends:()=>Wi,inheritParentProps:()=>Ro,inheritRecursiveChildExtends:()=>Gi,init:()=>At,initProps:()=>np,is:()=>Ce,isArray:()=>T,isBoolean:()=>Oi,isContextComponent:()=>Yu,isCyclic:()=>mu,isDOMNode:()=>ke,isDate:()=>Pi,isDefined:()=>ve,isDevelopment:()=>Bt,isEmpty:()=>Ii,isEmptyObject:()=>iu,isEqualDeep:()=>$i,isFunction:()=>v,isHtmlElement:()=>to,isLocal:()=>_u,isMethod:()=>Jp,isMobile:()=>Pu,isNode:()=>ht,isNot:()=>Rf,isNotProduction:()=>cr,isNull:()=>Ri,isNumber:()=>ot,isObject:()=>S,isObjectLike:()=>L,isPhoto:()=>hd,isProduction:()=>jt,isStaging:()=>xu,isState:()=>up,isString:()=>w,isStringFunction:()=>vu,isTest:()=>Di,isTesting:()=>bu,isUndefined:()=>me,isUniversallyReservedKey:()=>rd,isValidHtmlTag:()=>ju,joinArrays:()=>Yr,jointStacks:()=>Wu,keys:()=>Oa,lastLevel:()=>Bs,lastPathname:()=>js,loadCssFile:()=>xd,loadJavascript:()=>_d,loadJavascriptFile:()=>gd,loadJavascriptFileEmbedSync:()=>bd,loadJavascriptFileSync:()=>yd,loadRemoteCSS:()=>Sd,loadRemoteScript:()=>xn,log:()=>Xp,logGroupIf:()=>Ou,logIf:()=>Tu,lookdown:()=>Vp,lookdownAll:()=>Up,lookup:()=>Bp,lowercaseFirstLetter:()=>sr,makeObjectWithoutPrototype:()=>au,map:()=>tu,mapStringsWithContextComponents:()=>Co,matchRoute:()=>dl,matchesComponentNaming:()=>ct,memoize:()=>ku,merge:()=>ee,mergeSharedLibraries:()=>ss,nextElement:()=>Jo,normalizeLibraryKey:()=>_n,objectToString:()=>fo,objectizeStringProperty:()=>Eo,overwrite:()=>po,overwriteDeep:()=>Ae,overwriteShallow:()=>ar,overwriteState:()=>hp,parse:()=>Ra,parseDeep:()=>Vo,parseQuery:()=>hl,parseRoutePattern:()=>pl,pickupElementFromProps:()=>Ji,pickupPropsFromElement:()=>Zi,previousElement:()=>Qo,propExists:()=>rp,propertizeElement:()=>Qi,propertizeUpdate:()=>tp,reinit:()=>hy,remove:()=>zp,removeChars:()=>Dd,removeCookie:()=>Fu,removeDuplicateProps:()=>Io,removeDuplicatesInArray:()=>Zr,removeFromArray:()=>$f,removeFromObject:()=>lu,removeNestedKeyByPath:()=>uu,removeValueFromArray:()=>oo,removeValueFromArrayAll:()=>Nf,reorderArrayByValues:()=>jf,replaceLiteralsWithObjectFields:()=>or,replaceOctalEscapeSequences:()=>Gf,resolveAsset:()=>Te,resolveHandler:()=>nn,resolveSharedLibraries:()=>Pd,returnValueAsText:()=>na,router:()=>tt,runGuards:()=>ml,runPluginHook:()=>Be,scratchSystem:()=>_s,scratchUtils:()=>yr,self:()=>Of,set:()=>An,setActiveRootState:()=>Ho,setCookie:()=>Iu,setHashedExtend:()=>Bi,setInObjectByPath:()=>pu,setLocalStorage:()=>Lu,setNodeStyles:()=>Ta,setProps:()=>Hp,setPropsPrototype:()=>Po,spotByPath:()=>Uo,srcsetFor:()=>Sn,stringIncludesAny:()=>io,stringToObject:()=>ou,swapItemsInArray:()=>Ff,syncProps:()=>$o,toCamelCase:()=>is,toDashCase:()=>as,toDescriptionCase:()=>Nd,toTitleCase:()=>Ld,toggleFullscreen:()=>od,triggerEventOn:()=>Vt,triggerEventOnUpdate:()=>xp,trimStringFromSymbols:()=>Wf,unstackArrayOfObjects:()=>no,update:()=>ea,updateProps:()=>op,variables:()=>es,verbose:()=>yn,warn:()=>Zo,window:()=>k});R();R();var d0=A(),dy=(e=d0,t)=>{let r=S(t.localFile)?t.localFile:{},n=J(r.designSystem||{});return G(e,n)},h0={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},At=(e,t=h0)=>{let r=dy(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let g=new URLSearchParams(window.location.search).get("globalTheme");g&&(s=g)}let i=An({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=n);let a=Da(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,p=i.useSvgSprite,u=e.svg,d=i.useIconSprite,m=e.icons;if(f&&ue(a),l&&(ue({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let g={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?g[y]={[o]:i.CSS_MEDIA_VARS[y]}:g[y]=i.CSS_MEDIA_VARS[y];ue(g)}c&&ue(i.reset);let h=i.animation;if(h){let g={};for(let y in h)g[`@keyframes ${y}`]=h[y];ue(g)}return(u||p)&&uc(i.svg,{document:t.document}),(m||d)&&dc(i.icons,{document:t.document}),i},Ws={},hy=(e,t=Ws)=>{let r=dy(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=An({verbose:!1,...r});if(!t.preventInject){if(ue({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];ue(i)}ue(s.reset)}return s},my=(e,t=Ws)=>{ue(e)},RI=(e,t=Ws)=>{let r=t.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(ue({[r]:e.CSS_VARS}),e.CSS_MEDIA_VARS){let o={};for(let s in e.CSS_MEDIA_VARS)s.startsWith("@media")?o[s]={[n]:e.CSS_MEDIA_VARS[s]}:o[s]=e.CSS_MEDIA_VARS[s];ue(o)}};var PI=(e,t=Ws)=>{};R();var gy=e=>!e||e==="srcdoc"||e==="about:srcdoc"||e==="blank"||e==="about:blank"?"/":e,$l={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},In=(e,t)=>{if(!t)return e;let r=Array.isArray(t)?t:t.split("."),n=e;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},yy=(e,t)=>{if(t.router===!1)return;t.router===!0?t.router=$l:t.router=ee(t.router||{},$l);let r=t.router,n=async(s,i)=>{let a=s.context?.window||k;if(!a.location)return;let{pathname:c,search:l,hash:f}=a.location;c=gy(c);let p=c+l+f,u=s;if(r.customRouterElement){let d=In(s,r.customRouterElement);d&&(u=d,s.routes&&(u.routes=s.routes))}u.routes&&await tt(p,u,{},{initialRender:!0,pushState:!1})},o=!me(e.onRenderRouter);return r&&r.initRouter&&!o&&(e.onRenderRouter=n),m0(t,r),r},Fl=(e,t)=>{if(t.router===!1)return;let r=t.router||$l;if(!r.popState)return;let n=t.utils&&t.utils.router?t.utils.router:tt,o=t.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=gy(a);let f=a+c+l,p=e;if(r.customRouterElement){let u=In(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})};o.addEventListener("popstate",s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>o.removeEventListener("popstate",s))},m0=(e,t)=>{let{components:r}=e;if(t&&t.injectRouterInLinkComponent)return G(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};R();var Dl=k&&k.location?k.location.host.includes("dev."):Bt(),by=Dl?"http://localhost:8080/get":"https://api.symbols.app/get",g0={endpoint:by},xy=async(e,t=g0)=>{let r=t.endpoint||by,n=t.serviceRoute?T(t.serviceRoute)?t.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):t.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":e,"X-Metadata":t.metadata}}),await o.json()}catch(s){if(v(t.onError))return t.onError(s);console.error(s)}},y0=async(e,t)=>{let{editor:r}=t;if(r&&r.remote){let n=await xy(e,r),o=Dl||t.isDevelopment?it(n):it(n.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{Ae(t[s],o[s.toLowerCase()])}):Ae(t[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{Ae(t[s],o[s.toLowerCase()])})}return t},b0=async(e,t,r)=>{let{editor:n}=t;if(n&&n.remote){let o=await xy(e,n),s=Dl||t.isDevelopment?it(o):it(o.releases[0]);r(s)}},_y=async(e,t)=>{if(e&&t.editor)try{t.editor.async||await y0(e,t)}catch(r){console.error(r)}},Sy=(e,t,r,n)=>{if(t&&r.editor)try{r.editor.async&&b0(t,r,n||(o=>{let s=o.designSystem;S(s)&&r.utils.init(s),S(o.state)&&e.state.set(o.state)}))}catch(o){console.error(o)}};var Hs=e=>{if(!e||e.__destroyed)return!1;let t=e.context;if(!t)return e.__destroyed=!0,!1;if(Array.isArray(t.__teardowns)){for(let r of t.__teardowns)try{r()}catch(n){console.error("[smbls] destroy teardown error:",n)}t.__teardowns.length=0}try{Cr(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};R();var x0={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"}},_0=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}"]`},Gs=(e,t,r)=>{if(!e)return{};let n=v(e)?Y(e,t,r):{...e};if(!S(n))return{};for(let o in n){let s=n[o];v(s)&&(s=Y(s,t,r)),w(s)&&s.includes("{{")&&t?.call&&(s=t.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var S0=(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},wy=e=>{let t=5381,r=String(e);for(let n=0;n<r.length;n++)t=(t*33^r.charCodeAt(n))>>>0;return t.toString(36)},Ll=(e,t,r,n)=>{let o=e.head||e.querySelector("head");if(!o)return;let s=new Map;for(let a of o.querySelectorAll(`[${t}]`))s.set(a.getAttribute(t),a);let i=new Set;for(let a of r)i.add(a);for(let[a,c]of s)i.has(a)||c.remove();for(let a of r){if(s.has(a))continue;let c=n(a);c&&(c.setAttribute(t,a),o.appendChild(c))}},qs=(e,t)=>{if(!(!S(e)||!t)){for(let r in e){let n=e[r];if(n==null||r==="jsonLd"||r==="styles"||r==="scripts")continue;let o=x0[r];if(!o)continue;let s=_0(o),i=t.querySelector(s)||S0(o,t);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}if(Array.isArray(e.jsonLd)){let n=e.jsonLd.filter(s=>s!=null).map(s=>w(s)?s:JSON.stringify(s)),o=n.map(wy);Ll(t,"data-smbls-jsonld",o,s=>{let i=o.indexOf(s),a=t.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=n[i],a})}if(Array.isArray(e.styles)){let r=e.styles.filter(o=>o!=null&&String(o).trim()),n=r.map(wy);Ll(t,"data-smbls-style",n,o=>{let s=n.indexOf(o),i=t.createElement("style");return i.textContent=String(r[s]),i})}if(Array.isArray(e.scripts)){let r=e.scripts.filter(o=>o&&(w(o)?o.trim():o.src)),n=r.map(o=>w(o)?o:String(o.src));Ll(t,"data-smbls-script",n,o=>{let s=n.indexOf(o),i=r[s],a=t.createElement("script");return w(i)?a.setAttribute("src",i):(i.src&&a.setAttribute("src",i.src),i.type&&a.setAttribute("type",i.type),i.async&&(a.async=!0),i.defer&&(a.defer=!0),i.integrity&&a.setAttribute("integrity",i.integrity),i.crossorigin&&a.setAttribute("crossorigin",i.crossorigin),i.referrerpolicy&&a.setAttribute("referrerpolicy",i.referrerpolicy),i.nomodule&&(a.noModule=!0),i.body&&(a.textContent=String(i.body))),a})}}};var ky={name:"helmet",create(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=Gs(t,e,e.state);qs(n,r)},update(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=Gs(t,e,e.state);qs(n,r)}};zt();var vy=(e,t,r,n)=>{e&&mn(e,t,r,n)},Cy=(e,t,r)=>{if(!e)return;let n=t.context?.document||typeof document<"u"&&document;if(!n)return;let o=Gs(e,t,r);qs(o,n)},Ay=async(e,t)=>{if(!e)return;let r={tag:"fragment",...e},n=async()=>{await t.set(r,{preventDefineUpdate:"$router"})};return t.lazyLoad?window.requestAnimationFrame(n):await n(),r},$n={routes:e=>e,metadata:Cy,fetch:vy,$router:Ay},w0=(e={})=>{let t={routes:r=>r};return e.metadata!==!1&&(t.metadata=Cy),e.fetch!==!1&&(t.fetch=vy),e.router!==!1&&(t.$router=Ay),t};var Ey={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Nl={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Ks={...Ey,router:Nl},k0={state:{},pages:{},components:{},router:Nl,define:$n},Et=k0;R();R();var Ty=(e,t)=>L(e.extends)?e.extends:[];R();var Iy=e=>{let t=typeof window<"u"?window:globalThis||{};t.document||(t.document={body:{}});let r=typeof document<"u"?document:t.document;e.document=e.document||r;let n=e.window;return n&&n!==t&&typeof n.URL!="function"?(typeof console<"u"&&console.warn&&!globalThis.__smblsRouterUrlWarned&&(globalThis.__smblsRouterUrlWarned=!0,console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub (warned once; applies to every embed app this session)")),e.window=t):e.window=n||t,e.window},Oy=(e="smbls")=>{let t={};for(let r in Or)Object.prototype.hasOwnProperty.call(Or,r)&&(ct(r)?t[`smbls.${r}`]=Or[r]:t[r]=Or[r]);return t},$y=e=>e.components?{...Oy(),...e.components}:Oy(),Fy=e=>({...Pn,...yl,...yr,...e.utils,...e.snippets,...e.functions}),Dy=e=>({...e.methods||{},require:e.utils.require,requireOnDemand:e.utils.requireOnDemand,router:e.utils.router}),Ry={},Ly=async({dependencies:e,dependenciesOnDemand:t,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Wt[s]||bn(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=Bt()&&n?`?${Math.random()}`:"",p=Ze(c,l,o)+f;try{if(Ry[c])continue;Ry[c]=!0,await Promise.race([xn(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 ${o}:`,u),o!=="symbols")try{let d=Ze(c,l,"symbols")+f;await Promise.race([xn(d,{document:r}),new Promise((m,h)=>setTimeout(()=>h(new Error(`Timeout fallback ${c}`)),2e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return e},Ny=async(e,t)=>{let r=t.window||window,n=t.cdnProvider||bn(t.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,p=i.window||window;if(!p.packages[a]){let u=Bt()?`?${Math.random()}`:"";if(l&&l[a]){let d=l[a],m=Ze(a,d,c)+u;try{await i.utils.loadRemoteScript(m,{window:p,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let g=Ze(a,d,"symbols")+u;await i.utils.loadRemoteScript(g,{window:p,document:f})}}}else{let d=Ze(a,"latest",c)+u;try{await i.utils.loadRemoteScript(d,{window:p,document:f})}catch(m){if(console.error(`Failed to load ${a} from ${c}:`,m),c!=="symbols"){let h=Ze(a,"latest","symbols")+u;await i.utils.loadRemoteScript(h,{window:p,document:f})}}p.packages[a]="loadedOnDeman"}}return await p.require(a,c)};r.packages?r.packages=ee(r.packages,e):r.packages=e,r.require||(t.utils.require=await o(t),r.require=t.utils.require),r.requireOnDemand||(t.utils.requireOnDemand=await s(t),r.requireOnDemand=t.utils.requireOnDemand)},v0=/\s+/g,My=(e,t)=>typeof e=="function"?e(t,t?.state,t?.context):e,C0=(e,t)=>{let r="";for(let n in e){let o=e[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${My(o,t)}`)}return r},A0=(e,t,r)=>{if(!e)return;let{key:n}=t;e===!0&&(e=t.classlist={key:n}),typeof e=="string"&&(e=t.classlist={default:e}),e!==null&&typeof e=="object"&&!Array.isArray(e)&&(e=C0(e,t));let o=e.replace(v0," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},E0=()=>(e,t,r)=>{let n=My(e,t);if(e){let{__ref:o}=t;o.__class.style=n}jy()(t.classlist,t,t.state,!0)},jy=()=>(e,t,r,n)=>{if(t.style&&!n)return;let{__ref:o}=t,{__class:s,__classNames:i}=o;if(!(e===null||typeof e!="object"||Array.isArray(e))){t.class&&(i.classProps=t.class),t.attr?.class&&(i.class=t.attr.class);for(let a in s){let 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=Yt(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];t.node&&A0(i,t,t.node)}},T0=()=>({style:E0(),classlist:jy()}),O0=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],Py=!1,By=(e,t)=>{let r=t.document||(t.parent&&t.parent.documentElement?t.parent:null)||document,n=t.initOptions||{},o=t.registry||T0(),s=t.designSystem?G(J(t.designSystem),Fs):J(Fs),i={};for(let d of O0)t[d]!==void 0&&(i[d]=t[d]);let a,c=Py&&!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){fe(a);try{if(ue({[l]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let d={};for(let m in a.CSS_MEDIA_VARS)m.startsWith("@media")?d[m]={[f]:a.CSS_MEDIA_VARS[m]}:d[m]=a.CSS_MEDIA_VARS[m];ue(d)}}finally{se()}}}else if(c){let d=rh(e,s,{cleanBase:!0});for(let h in i)d[h]=i[h];d.document=r;let m=e.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);t.cssPrefix=m,d.varPrefix=m,fe(d);try{a=At(d,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:l,...Ks,...i,...n})}finally{se()}}else{let d=A();d&&(d.document=r),a=At(s,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:l,...Ks,...i,...n}),a&&a!==d&&(a.document=r),Py=!0}let p=a?.CONFIG||a,u=p?.font;if(u){fe(p);try{for(let d in u){let m=u[d];if(!m?.fontFace)continue;let h=Array.isArray(m.fontFace)?m.fontFace:[m.fontFace];for(let g of h)typeof g=="string"&&g.includes("font-family")&&ue(`@font-face { ${g} }`)}}finally{se()}}return[a,o]},Vy=(e,t)=>{let r={};t.state&&G(r,t.state),e&&e.state&&G(r,e.state);let n=t.polyglot;if(n?.translations){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(n.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=o||r.lang||n.defaultLang||"en";o&&o!==r.lang&&(r.lang=o);let i=n.translations[s];if(i&&typeof i=="object")for(let c in i)r[c]=i[c];let a=new Set(n.languages||[]);for(let c in n.translations)!a.has(c)&&r[c]===void 0&&(r[c]=n.translations[c])}return r.isRootState=!0,J(r)},Uy=(e,t)=>{S(e.routes)&&S(t.pages)&&ee(e.routes,t.pages);let r=e.routes||t.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n==="index"?"":n;r["/"+o]=r[n],delete r[n]}return r},zy=e=>{ss(e,e.sharedLibraries)};R();var Hy="smbls_lang",R0="smbls_t_",P0="smbls_tv_",Pr={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)}}},Fn={};function Ys(){let e=this?.context,t=e?.polyglot;return(this?.state?.root||e?.state?.root)?.lang||t?.defaultLang||"en"}function Ml(){let e=this?.context?.polyglot;return e?e.languages?e.languages:e.translations?Object.keys(e.translations):[]:[]}var Xs=(e,t)=>{if(!e||!t)return;if(e[t]!==void 0)return e[t];if(t.indexOf(".")===-1)return;let r=t.split("."),n=e;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},Wy=(e,t,r)=>{let n=t.lastIndexOf(".");if(n===-1)return e[t+"_"+r];let o=Xs(e,t.substring(0,n));if(o!=null)return o[t.substring(n+1)+"_"+r]};function jl(e,t){if(!e)return"";let r=this?.context,n=r?.polyglot,o=t||this.call("getActiveLang"),s=this?.state;if(s){let l=Wy(s,e,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=Xs(l,e);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[o];if(l){let f=Xs(l,e);if(f!==void 0)return f}}let c=n?.defaultLang||"en";if(s){let l=Wy(s,e,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=Xs(l,e);if(f!==void 0)return f}}return e}async function Bl(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!r||!n)return;let o=r.storagePrefix||R0,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):P0);if(r.translations&&r.translations[e]&&!r.fetch||!r.fetch||r._fetchFailed?.[e])return;if(!n.translations?.[e]){let c=Pr.get(o+e);if(c)try{let l=JSON.parse(c),f={translations:{...n.translations||{}}};f.translations[e]=l,n.update&&n.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(r.storagePrefix||"smbls")+":"+e;if(Fn[i])return Fn[i];let a=this;return Fn[i]=(async()=>{try{let c=r.fetch,l=parseInt(Pr.get(s+e),10)||0,f,p,u;if(v(c)){let m=await c(e,l,a);if(!m||m.changed===!1)return;f=m.translations||m.data||m,p=m.version||0,u=!0}else if(S(c)){let m=a.getDB||(()=>t.fetch),h=v(m)?await m.call(a):t.fetch;if(!h)return;let g=c.rpc||c.from||"get_translations_if_changed",y={p_lang:e,p_cached_version:l,...c.params||{}},b=await h.rpc({from:g,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[e]=!0,b.error;let _=b.data;if(!_||!_.changed)return;f=_.translations||{},p=_.version||0,u=!0}else return;if(!u||!f)return;Pr.set(o+e,JSON.stringify(f)),p&&Pr.set(s+e,String(p));let d={translations:{...n.translations||{}}};d.translations[e]=f,n.update&&n.update(d)}catch(c){if(r.verbose!==!1){let l=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",e,"-",l)}}finally{delete Fn[i]}})(),Fn[i]}async function Vl(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!n||this.call("getActiveLang")===e)return;let o=r?.storageLangKey||Hy;Pr.set(o,e),r?.fetch&&await this.call("loadTranslations",e),t?.state&&(t.state.lang=e);let s=r?.translations?.[e],i={lang:e};if(s&&typeof s=="object")for(let c in s){let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}if(n.update&&n.update(i),s&&typeof s=="object")for(let c in s){let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&n[c]&&typeof n[c]=="object"&&!Array.isArray(n[c]))for(let f in l)n[c][f]=l[f]}let a=this?.context?.document||globalThis.document;if(a&&s){let c=a.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let 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 Ul(e,t,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[t]&&(s.translations[t][e]=r),o?.translations?.[t]&&(o.translations[t][e]=r),o?.fetch&&S(o.fetch)){let i=this.getDB||(()=>n.fetch),a=v(i)?await i.call(this):n.fetch;if(!a)return;let c=o.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 Gy(){let e=this?.context,t=e?.polyglot;if(!t)return;let r=this?.state?.root||e?.state?.root;if(!r)return;let n=t.storageLangKey||Hy,s=Pr.get(n)||t.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),t.fetch&&!(t.translations&&t.translations[s])&&await this.call("loadTranslations",s)}function zl(e){try{let t=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||t?.defaultLang||"en",o=this?.state;if(!o)return"";let s=e.lastIndexOf(".");if(s===-1)return o[e+n]??"";let i=e.substring(0,s).split("."),a=o;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[e.substring(s+1)+n]??""}catch{return""}}var Wl={name:"polyglot",render(e){e.parent&&e.parent.parent||e.__polyglotInitialized||(e.__polyglotInitialized=!0,Gy.call(e))}};var Zs={polyglot:jl,getLocalStateLang:zl,getActiveLang:Ys,getLang:Ys,setLang:Vl,getLanguages:Ml,loadTranslations:Bl,upsertTranslation:Ul};zt();var Js={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}},Qs=e=>parseFloat(e.toFixed(4)),I0=(e,t,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=t,c=Math.abs(o),l=n+c+s,f=r!==void 0?r:l/i*e,p=f/e,u=l/i,d=(n-a+s/2)/i-(p-u)/2,m=(c+s/2)/i-(p-u)/2;return{fontSize:`${Qs(e/16)}rem`,lineHeight:`${Qs(f)}px`,capHeightTrim:`${Qs(-d)}em`,baselineTrim:`${Qs(-m)}em`}},$0=(e,t)=>{if(typeof e=="number")return e;let r=t?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(e).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(e);return isNaN(o)?null:typeof e=="string"&&e.endsWith("rem")?o*(r.typography?.browserDefault||16):o},F0=(e,t)=>{let n=t?.designSystem?.font_family||{};if(e){let s=n[e];if(s?.metrics)return s.metrics;let i=String(e).toLowerCase().replace(/['"]/g,"").trim();if(Js[i])return Js[i]}let o=n.default||Object.keys(n)[0];if(o){let s=n[o];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(Js[a])return Js[a]}}return null},qy=(e,t,r,n)=>{if(!e)return;let o=$0(t.fontSize,n);if(!o)return;let s=F0(t.fontFamily,n);if(!s)return;let i=t.lineHeight?parseFloat(t.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=I0(o,s,i),f={};return t.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},Ky={name:"capsize",init(e){e.useCapsize===void 0&&e.fontSize&&(e.useCapsize=!0)}};var Dn={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"},Me=Object.create(null);for(let e in Dn)Me[Dn[e]]=e;var Hl=Object.create(null);for(let e in Dn){let t=Dn[e];if(Hl[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${Hl[t]}"`);Hl[t]=e}var Tt=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Ln(e){return/^[A-Z]/.test(e)}function Nn(e){return/^[:@.!$>&]/.test(e)||e.startsWith("> ")}function D0(e){return e.trim().split(/\s+/).filter(Boolean)}function Xy(e){return e.replace(/_/g," ")}function L0(e){if(!e||typeof e!="string")return{};let t={},r=D0(e);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),l=Me[c]||c;t[l]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=Me[n]||n;t[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Me[s]||s;if(i.includes(",")){t[a]=i.split(",").map(Xy);continue}t[a]=Xy(i)}return t}function Mn(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Mn(r):r});let t={};for(let r in e){let n=e[r];if(Ln(r)){t[r]=Gl(n);continue}let o=Me[r]||r;if(Nn(r)&&o===r){t[r]=Gl(n);continue}if(Tt.has(o)||Tt.has(r)){t[o]=n;continue}t[o]=Gl(n)}return t}function Gl(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Mn(t):t}):typeof e=="object"?Mn(e):e}function jn(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?jn(r):r});let t={};if(typeof e.in=="string"){let r=L0(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Ln(r)){t[r]=ql(n);continue}let o=Me[r]||r;if(Nn(r)&&o===r){t[r]=ql(n);continue}if(Tt.has(o)||Tt.has(r)){t[o]=n;continue}t[o]=ql(n)}return t}function ql(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?jn(t):t}):typeof e=="object"?jn(e):e}function N0(e){let t="",r=0;for(;r<e.length;){if(e[r]==="\\"&&r+1<e.length){let n=e[r+1];if(n===","||n==="_"||n==="\\"){t+=n,r+=2;continue}}e[r]==="_"?t+=" ":t+=e[r],r++}return t}function M0(e){let t=[],r="",n=0;for(;n<e.length;){if(e[n]==="\\"&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}if(e[n]===","){t.push(r),r="",n++;continue}r+=e[n],n++}return t.push(r),t}function Yy(e){return e.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(e)?Number(e.slice(1)):N0(e)}function Kl(e){if(!e||typeof e!="string")return{};let t={},r=e.trim().split(/\s+/).filter(Boolean);for(let n of r){if(n.startsWith("!")){let l=n.slice(1),f=Me[l]||l;t[f]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=Me[n]||n;t[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Me[s]||s,c=M0(i);if(c.length>1){t[a]=c.map(Yy);continue}t[a]=Yy(i)}return t}function Bn(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Bn(r):r});let t={};if(typeof e.in=="string"){let r=Kl(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Ln(r)){typeof n=="string"?t[r]=Kl(n):t[r]=Xl(n);continue}let o=Me[r]||r;if(Nn(r)&&o===r){typeof n=="string"?t[r]=Kl(n):t[r]=Xl(n);continue}if(Tt.has(o)||Tt.has(r)){t[o]=n;continue}t[o]=Xl(n)}return t}function Xl(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Bn(t):t}):typeof e=="object"?Bn(e):e}var j0={shorten:Mn,stringify:jn,stringifyFurther:Bn};function B0(e,t){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>t(n));let r={};for(let n in e){let o=e[n];r[n]=o&&typeof o=="object"?t(o):o}return r}var V0=["components","pages","snippets"],ei={name:"shorthand",prepareContext(e){let t=e.shorthand;if(!t)return;let n=j0[t===!0?"shorten":t];if(n){for(let o of V0)e[o]&&(e[o]=B0(e[o],n));e.app&&typeof e.app=="object"&&(e.app=n(e.app))}}};var U0=0,z0=()=>`${Date.now().toString(36)}-${(U0++).toString(36)}`,z=(e,t,r={})=>({id:z0(),ts:Date.now(),type:e,level:t,...r}),W0=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},Ir=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:W0(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null;var $r=e=>e?.context?.analyze,H0={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"}},G0=(e,{category:t,type:r,level:n})=>o=>{let s=$r(o);!s||!s.shouldCapture(t)||s.emit(z(r,n,{hook:e,element:Ir(o)}))},Zy=e=>(t,r)=>{let n=$r(t);!n||!n.shouldCapture("state")||n.emit(z("state","debug",{hook:e,element:Ir(t),changedKeys:r?.changedKeys||null}))},Vn={name:"analyze",error(e,t){let r=$r(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(z("error","error",{hook:t?.hook||"error",element:Ir(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=$r(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=$r(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=$r(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:Ir(e),durationMs:r}))},beforeStateUpdate:Zy("beforeStateUpdate"),stateUpdate:Zy("stateUpdate")};for(let[e,t]of Object.entries(H0))Vn[e]=G0(e,t);R();var ti={error:0,warn:1,info:2,debug:3,trace:4};var Yl=(e,t)=>{let r=ti[e],n=ti[t];return r==null||n==null?!0:r<=n},ri=e=>ti[e]!=null?e:"warn";R();var ni=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var q0=(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},K0=(e,t)=>{if(t!=="redact"){if(t==="hash"){let r=0,n=String(e);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},Zl=(e,t,r,n)=>{if(n>6||e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(s=>Zl(s,t,r,n+1));let o={};for(let s of Object.keys(e))if(q0(s,t)||ni.test(s)){let a=K0(e[s],r);a!==void 0&&(o[s]=a)}else o[s]=Zl(e[s],t,r,n+1);return o},Jl=(e=[],t="mask")=>{let r=Array.isArray(e)?e:[e];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...m}=n,h=Zl(m,r,t,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...h}}};var Jy=e=>{let t=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,n=e.config.buildHash||null,o=e.config.appId||null;return s=>{if(!s)return s;let i=e.context?.routerOptions?.currentRoute||null,a=k,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:t,app:{id:o,build:n,route:i},meta:{ua:r,viewport:c}}}},Qy=()=>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},eb=(e=1e3,t=500)=>{let r=new Map;return n=>{if(!n)return n;let o=`${n.type}:${n.level}:${n.message||""}:${n.error?.message||""}`,s=r.get(o),i=n.ts||Date.now();if(s&&i-s<e)return null;if(r.set(o,i),r.size>t){let a=Math.ceil(t/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return n}},tb=e=>t=>{if(!t)return t;let r=e[t.type];return r==null||r>=1?t:Math.random()>r?null:t},rb={redact:e=>Jl(e.config.redact||[],e.config.maskStrategy),enrich:e=>Jy(e),summarize:()=>Qy(),dedupe:e=>eb(e.config.cache?.dedupeWindowMs||1e3),sample:e=>tb(e.config.sample||{})},X0=(e,t)=>{if(typeof e=="function")return e;if(typeof e=="string"){let r=rb[e];return r?r(t):null}return null},Ql=e=>{let t=e.config,r=Array.isArray(t.transformers)?t.transformers.slice():[],n=r.findIndex(s=>s==="redact");n>=0&&r.splice(n,1);let o=[];t.redact!==!1&&o.push(rb.redact(e));for(let s of r){let i=X0(s,e);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=o.slice(o.indexOf(a)+1),f=[];for(let p of c){let u=p,d=!1;for(let m of l)if(u=m(u),u==null){d=!0;break}!d&&u!=null&&f.push(u)}return f}i=c}return i}};R();R();var oi=typeof k<"u"&&typeof k.document<"u",Y0=5e3,Z0=50,J0=3,Q0=1500,ek=1e3,nb=e=>e?e.level==="error"||e.type==="error"?"bug":e.type==="network"?"network":e.type==="console"?e.level==="error"||e.level==="warn"?"bug":"log":e.level==="warn"?"bug":e.level==="info"?"log":"verbose":"verbose",tk=e=>{try{return JSON.stringify(e)}catch{return null}},rk=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},nk=e=>{if(!e)return null;let t=String(e),r;return(r=t.match(/Edg\/([\d.]+)/))?{name:"Edge",version:r[1]}:(r=t.match(/OPR\/([\d.]+)/))?{name:"Opera",version:r[1]}:(r=t.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:r[1]}:/Chrome\/([\d.]+)/.test(t)&&/Safari\//.test(t)?(r=t.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:r[1]}):(r=t.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:r[1]}:{name:null,version:null}},ok=()=>{if(!oi)return null;try{let e=k.document?.documentElement?.getAttribute("data-theme")||null,t=typeof k.matchMedia=="function"?k.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:e||(t?"dark":t===!1?"light":null),forced:e||null,prefers:t==null?null:t?"dark":"light"}}catch{return null}},sk=()=>{if(!oi)return null;let e=k.location,t=typeof navigator<"u"?navigator:null,r=typeof screen<"u"?screen:null;return{url:e?.href||null,path:e?.pathname||null,referrer:k.document?.referrer||null,title:k.document?.title||null,ua:t?.userAgent||null,browser:nk(t?.userAgent),language:t?.language||null,languages:t?.languages||null,timezone:rk(),viewport:k.innerWidth?{w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}:null,screen:r?{w:r.width||null,h:r.height||null,availW:r.availWidth||null,availH:r.availHeight||null,colorDepth:r.colorDepth||null,orientation:r.orientation?.type||null}:null,theme:ok()}},ef=(e={})=>{let t=e.url,r=typeof e.transport=="function"?e.transport:null;if(!t&&!r)return()=>{};let n=e.apiKey||null,o=e.appKey||e.appId||null,s=e.tenantKey||e.tenant||null,i=e.release||null,a=e.env||null,c=e.sdk||null,l=typeof e.getAuth=="function"?e.getAuth:null,f=typeof e.getContext=="function"?e.getContext:null,p=typeof e.classify=="function"?e.classify:nb,u=typeof e.beforeSend=="function"?e.beforeSend:null,d=e.batchMs!=null?e.batchMs:Y0,m=e.maxBatch||Z0,h=e.maxRetries!=null?e.maxRetries:J0,g=e.backoffMs||Q0,y=e.queueLimit||ek,b=e.sampleRate!=null?e.sampleRate:1,_=e.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),x=[],C=[],E=null,P=null,B=()=>{E||!x.length||(E=setTimeout(te,d))},O=M=>{if(P)return;let H=g*Math.pow(2,Math.max(0,M-1));P=setTimeout(()=>{if(P=null,!C.length)return;let q=C.shift();V(q.envelope,q.attempt)},H)},I=M=>{let H=f?ik(f):null,q={v:1,session:{id:_,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:c,page:sk(),user:H?.user||null,traits:H?.traits||null,tags:H?.tags||null,events:M};if(u)try{return u(q)||null}catch{return q}return q},V=async(M,H=1)=>{if(M)try{let q=!0;if(r){let ae=await r(M);q=ae!==!1&&ae?.ok!==!1}else q=await ak(t,M,{apiKey:n,getAuth:l});!q&&H<h&&(C.push({envelope:M,attempt:H+1}),O(H+1))}catch{H<h&&(C.push({envelope:M,attempt:H+1}),O(H+1))}},te=(M=!1)=>{if(E&&(clearTimeout(E),E=null),!x.length)return;let H=x;x=[];let q=I(H);if(q){if(M&&oi&&navigator.sendBeacon&&t){let ae=tk(q);if(ae)try{navigator.sendBeacon(t,new k.Blob([ae],{type:"application/json"}));return}catch{}}V(q)}};oi&&(k.addEventListener("pagehide",()=>te(!0),{passive:!0}),k.addEventListener("beforeunload",()=>te(!0),{passive:!0}),k.addEventListener("visibilitychange",()=>{k.document.visibilityState==="hidden"&&te(!0)},{passive:!0}));let W=M=>{if(!M||b<1&&Math.random()>b)return;let H={...M,log_type:p(M)};x.push(H),x.length>y&&(x=x.slice(-y)),x.length>=m?te():B()};return W.flush=()=>te(!1),W.sessionId=_,W},ik=e=>{try{return e()}catch{return null}},ak=async(e,t,{apiKey:r,getAuth:n})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(r&&(o["X-Analyze-Key"]=r),n)try{let s=await n();s&&(o.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(e,{method:"POST",headers:o,body:JSON.stringify(t),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var ck={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},lk="\x1B[0m",si=typeof k<"u"&&typeof k.document<"u",sb=(e={})=>{let t=e.minLevel||null,r=console.error.bind(console),n=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?n:o,a=`[analyze:${s.type}]`;if(si)i(a,s);else{let c=ck[s.level]||"";i(`${c}${a}${lk}`,s)}}},ib=(e,t={})=>{let r=t.max||e.config.cache?.max||500,n=new Array(r),o=0,s=0,i=a=>{n[o]=a,o=(o+1)%r,s<r&&s++};return e.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+r)%r;for(let l=0;l<s;l++)a[l]=n[(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:()=>{o=0,s=0}},i},ab=(e={})=>{let t=e.url,r=e.batchMs!=null?e.batchMs:5e3,n=e.maxBatch||50;if(!t)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let c=JSON.stringify({events:o});o=[];let l=si?new k.Blob([c],{type:"application/json"}):c;if(si&&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(()=>{})};si&&(k.addEventListener("pagehide",i,{passive:!0}),k.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},ob={console:sb,memory:ib,beacon:ab,remote:ef},tf=e=>{let t=Array.isArray(e.config.sinks)?e.config.sinks:["console"],r=[];for(let n of t)if(typeof n=="function")r.push(n);else if(typeof n=="string"){let o=ob[n];if(!o)continue;r.push(n==="memory"?o(e,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=ob[n.type];if(!o)continue;r.push(n.type==="memory"?o(e,n):o(n))}return r};R();var fk=typeof k<"u"&&typeof k.document<"u",uk=new Set(["password","hidden"]),cb=(e,t)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=t?(r=i,e(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(e(...o),o=null)},t-(i-r))))}},rf="__analyzeKeyPath",Fr=e=>{let t=e.target;if(!t)return{selector:null,key:null,path:null};if(t[rf])return t[rf];let r=[],n=t,o=0,s=null;for(;n&&o<64;){if(n.getAttribute){let a=n.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}n=n.parentNode,o++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:t.tagName?.toLowerCase()||null};else{let a=(t.tagName||"unknown").toLowerCase(),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[rf]=i}catch{}return i},pk=(e,t)=>{if(t==="mask")return"***";if(t!=="redact"){if(t==="hash"){let r=0,n=String(e||"");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},dk=e=>!!(!e||e.tagName==="INPUT"&&uk.has(e.type)||ni.test(e.name||"")||ni.test(e.id||"")||e.dataset?.analyze==="skip"),nf=e=>{if(!fk)return;let t=e.config.capture,r=e.config.throttle,n=e.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),n.push(()=>s.removeEventListener(i,a,c))};if(t.errors&&(o(k,"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}))}),o(k,"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){o(k,"click",i=>{e.emit(z("pointer","info",{hook:"click",target:Fr(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:lb(i)}))},{passive:!0,capture:!0}),o(k,"dblclick",i=>{e.emit(z("pointer","info",{hook:"dblclick",target:Fr(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(k,"contextmenu",i=>{e.emit(z("pointer","info",{hook:"contextmenu",target:Fr(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=cb(i=>{e.emit(z("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);o(k,"pointermove",s,{passive:!0})}if(t.keyboard&&o(k,"keydown",s=>{e.emit(z("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:lb(s),target:Fr(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=dk(a),f=a.dataset?.analyze==="track",p=null;f&&!l?p=a.value:e.config.maskFormValues!==!1&&(p=pk(a.value,e.config.maskStrategy)),e.emit(z("forms","info",{hook:i.type,target:Fr(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:p}))};o(k,"input",s,{passive:!0,capture:!0}),o(k,"change",s,{passive:!0,capture:!0}),o(k,"submit",i=>{e.emit(z("forms","info",{hook:"submit",target:Fr(i)}))},{passive:!0,capture:!0})}if(t.scroll){let s=cb(()=>{e.emit(z("scroll","trace",{hook:"scroll",x:k.scrollX,y:k.scrollY}))},r.scroll);o(k,"scroll",s,{passive:!0,capture:!0})}if(t.viewport){let s=bo(()=>{e.emit(z("viewport","info",{hook:"resize",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))},r.resize);o(k,"resize",s,{passive:!0}),o(k,"orientationchange",()=>{e.emit(z("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(k.document,"visibilitychange",()=>{e.emit(z("viewport","info",{hook:"visibilitychange",hidden:k.document.hidden}))},{passive:!0}),e.emit(z("viewport","info",{hook:"initial",w:k.innerWidth,h:k.innerHeight,dpr:k.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(fb)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(t.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let 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{}n.push(()=>s.disconnect())}catch{}},lb=e=>({shift:!!e.shiftKey,ctrl:!!e.ctrlKey,alt:!!e.altKey,meta:!!e.metaKey}),hk=e=>{let t={name:e.name||"Error",message:typeof e.message=="string"?e.message:String(e),stack:typeof e.stack=="string"?e.stack:null};return e.cause!==void 0&&(t.cause=fb(e.cause)),t},fb=e=>{if(e==null)return e;if(e instanceof Error)return hk(e);if(typeof e=="object")try{return JSON.parse(JSON.stringify(e))}catch{return String(e)}return e};R();var mk=typeof k<"u"&&typeof k.document<"u";var of=e=>{if(mk&&e.config.capture.network){if(typeof k.fetch=="function"){let t=k.fetch.bind(k),r=function(n,o){if(o?.headers?.["X-Analyze-Beacon"])return t(n,o);let s=typeof n=="string"?n:n&&n.url||"",i=(o?.method||typeof n=="object"&&n?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return e.emit(z("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),t(n,o).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})};k.fetch=r,e.__teardown.push(()=>{k.fetch=t})}if(typeof k.XMLHttpRequest=="function"){let t=k.XMLHttpRequest,r=t.prototype.open,n=t.prototype.send;t.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},t.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();e.emit(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),n.apply(this,arguments)},e.__teardown.push(()=>{t.prototype.open=r,t.prototype.send=n})}}};var gk={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},yk={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},bk={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},xk={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},_k=e=>{let t={...gk,...e};return t.replay&&Object.assign(t,yk),t.telemetry&&Object.assign(t,bk),t.remote&&Object.assign(t,xk),t},Sk=64,wk=()=>{if(typeof k>"u"||!k.location)return null;try{let t=new URLSearchParams(k.location.search).get("analyze");return t||null}catch{return null}},sf=(e={})=>{let t=e===!0?{}:{...e};t.capture=_k(t.capture||{});let r=wk();(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=ri(t.level||"warn"),t.cache={max:500,dedupeWindowMs:1e3,...t.cache||{}},t.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...t.throttle||{}},t.maskFormValues==null&&(t.maskFormValues=!0),t.maskStrategy||(t.maskStrategy="mask"),Array.isArray(t.sinks)||(t.sinks=["console","memory"]),Array.isArray(t.transformers)||(t.transformers=["enrich","summarize"]);let n={config:t,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=Ql(n),n.__sinks=tf(n))};return n.shouldCapture=s=>n.config.enabled===!1?!1:!!n.config.capture[s],n.emit=s=>{if(s&&n.config.enabled!==!1&&!n.__paused&&Yl(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<Sk&&n.__preBuffer.push(s);return}o(),ub(n,s)}},n.activate=s=>{if(n.context==null&&(n.context=s||null),n.__ready)return;n.__ready=!0;let i=n.__preBuffer;if(n.__preBuffer=[],i.length){o();for(let a of i)ub(n,a)}try{nf(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{of(n)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of n.__onActivate||[])try{a(n)}catch(c){console.error("[analyze] onActivate error:",c)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=ri(s)},n.setCapture=(s,i)=>{n.config.capture[s]=!!i},n.query=s=>n.__memory?n.__memory.query(s):[],n.snapshot=()=>n.__memory?n.__memory.snapshot():[],n.emitNetwork=s=>{if(!n.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},n.flush=()=>{if(n.__sinks)for(let s of n.__sinks)typeof s.flush=="function"&&s.flush()},n.replay=()=>({initialSnapshot:n.__initialSnapshot,events:n.snapshot()}),n.destroy=()=>{for(let s of n.__teardown)try{s()}catch{}n.__teardown=[],n.__ready=!1,n.__paused=!0},n.__onActivate=[],n.onActivate=s=>{n.__onActivate.push(s)},n},ub=(e,t)=>{let r=e.__pipeline(t);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof e.config.onEvent=="function")try{e.config.onEvent(o)}catch{}for(let s of e.__sinks)try{s(o)}catch(i){console.error("[analyze] sink error:",i)}}};var qe=Object.create(null);qe.open="0";qe.close="1";qe.ping="2";qe.pong="3";qe.message="4";qe.upgrade="5";qe.noop="6";var Un=Object.create(null);Object.keys(qe).forEach(e=>{Un[qe[e]]=e});var zn={type:"error",data:"parser error"};var hb=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",mb=typeof ArrayBuffer=="function",gb=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Wn=({type:e,data:t},r,n)=>hb&&t instanceof Blob?r?n(t):pb(t,n):mb&&(t instanceof ArrayBuffer||gb(t))?r?n(t):pb(new Blob([t]),n):n(qe[e]+(t||"")),pb=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function db(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var af;function yb(e,t){if(hb&&e.data instanceof Blob)return e.data.arrayBuffer().then(db).then(t);if(mb&&(e.data instanceof ArrayBuffer||gb(e.data)))return t(db(e.data));Wn(e,!1,r=>{af||(af=new TextEncoder),t(af.encode(r))})}var bb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<bb.length;e++)Hn[bb.charCodeAt(e)]=e;var xb=e=>{let t=e.length*.75,r=e.length,n,o=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(n=0;n<r;n+=4)s=Hn[e.charCodeAt(n)],i=Hn[e.charCodeAt(n+1)],a=Hn[e.charCodeAt(n+2)],c=Hn[e.charCodeAt(n+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l};var kk=typeof ArrayBuffer=="function",Gn=(e,t)=>{if(typeof e!="string")return{type:"message",data:_b(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:vk(e.substring(1),t)}:Un[r]?e.length>1?{type:Un[r],data:e.substring(1)}:{type:Un[r]}:zn},vk=(e,t)=>{if(kk){let r=xb(e);return _b(r,t)}else return{base64:!0,data:e}},_b=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;var Sb="",wb=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{Wn(s,!1,a=>{n[i]=a,++o===r&&t(n.join(Sb))})})},kb=(e,t)=>{let r=e.split(Sb),n=[];for(let o=0;o<r.length;o++){let s=Gn(r[o],t);if(n.push(s),s.type==="error")break}return n};function vb(){return new TransformStream({transform(e,t){yb(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var cf;function ii(e){return e.reduce((t,r)=>t+r.length,0)}function ai(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function Cb(e,t){cf||(cf=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(ii(r)<1)break;let c=ai(r,1);s=(c[0]&128)===128,o=c[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(ii(r)<2)break;let c=ai(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(ii(r)<8)break;let c=ai(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(zn);break}o=f*Math.pow(2,32)+l.getUint32(4),n=3}else{if(ii(r)<o)break;let c=ai(r,o);a.enqueue(Gn(s?c:cf.decode(c),t)),n=0}if(o===0||o>e){a.enqueue(zn);break}}}})}var lf=4;function Z(e){if(e)return Ck(e)}function Ck(e){for(var t in Z.prototype)e[t]=Z.prototype[t];return e}Z.prototype.on=Z.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Z.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Z.prototype.off=Z.prototype.removeListener=Z.prototype.removeAllListeners=Z.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};Z.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};Z.prototype.emitReserved=Z.prototype.emit;Z.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Z.prototype.hasListeners=function(e){return!!this.listeners(e).length};var ut=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),_e=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Ab="arraybuffer";function ci(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var Ak=_e.setTimeout,Ek=_e.clearTimeout;function pt(e,t){t.useNativeTimers?(e.setTimeoutFn=Ak.bind(_e),e.clearTimeoutFn=Ek.bind(_e)):(e.setTimeoutFn=_e.setTimeout.bind(_e),e.clearTimeoutFn=_e.clearTimeout.bind(_e))}var Tk=1.33;function Eb(e){return typeof e=="string"?Ok(e):Math.ceil((e.byteLength||e.size)*Tk)}function Ok(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function li(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Tb(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function Ob(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var fi=class extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}},dt=class extends Z{constructor(t){super(),this.writable=!1,pt(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,n){return super.emitReserved("error",new fi(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let r=Gn(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=Tb(t);return r.length?"?"+r:""}};var qn=class extends dt{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};kb(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,wb(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]=li()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var Rb=!1;try{Rb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Pb=Rb;function Rk(){}var ff=class extends qn{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Ot=class e extends Z{constructor(t,r,n){super(),this.createRequest=t,pt(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=ci(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Rk,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()}};Ot.requestsCount=0;Ot.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ib);else if(typeof addEventListener=="function"){let e="onpagehide"in _e?"pagehide":"unload";addEventListener(e,Ib,!1)}}function Ib(){for(let e in Ot.requests)Ot.requests.hasOwnProperty(e)&&Ot.requests[e].abort()}var Pk=(function(){let e=$b({xdomain:!1});return e&&e.responseType!==null})(),Rt=class extends ff{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=Pk&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ot($b,this.uri(),t)}};function $b(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Pb))return new XMLHttpRequest}catch{}if(!t)try{return new _e[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Fb=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",pf=class extends dt{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=Fb?{}:ci(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;Wn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&ut(()=>{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]=li()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},uf=_e.WebSocket||_e.MozWebSocket,Pt=class extends pf{createSocket(t,r,n){return Fb?new uf(t,r,n):r?new uf(t,r):new uf(t)}doWrite(t,r){this.ws.send(r)}};var Dr=class extends dt{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=Cb(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=vb();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:c})=>{a||(this.onPacket(c),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;this._writer.write(n).then(()=>{o&&ut(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var df={websocket:Pt,webtransport:Dr,polling:Rt};var Ik=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$k=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Lr(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=Ik.exec(e||""),s={},i=14;for(;i--;)s[$k[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=Fk(s,s.path),s.queryKey=Dk(s,s.query),s}function Fk(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Dk(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var hf=typeof addEventListener=="function"&&typeof removeEventListener=="function",ui=[];hf&&addEventListener("offline",()=>{ui.forEach(e=>e())},!1);var Qt=class e extends Z{constructor(t,r){if(super(),this.binaryType=Ab,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=Lr(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Lr(r.host).host);pt(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Ob(this.opts.query)),hf&&(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"})},ui.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=lf,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=Eb(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,ut(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:t,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),hf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=ui.indexOf(this._offlineEventListener);n!==-1&&ui.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};Qt.protocol=lf;var pi=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),n=!1;Qt.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",p=>{if(!n)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(()=>{n||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let u=new Error("probe error");u.transport=r.name,this.emitReserved("upgradeError",u)}}))};function s(){n||(n=!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",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}},Nr=class extends pi{constructor(t,r={}){let n=typeof t=="object"?t:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>df[o]).filter(o=>!!o)),super(t,n)}};var mF=Nr.protocol;function Db(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=Lr(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let s=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+t,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var Sf={};F(Sf,{Decoder:()=>xf,Encoder:()=>bf,PacketType:()=>D,isPacketValid:()=>rv,protocol:()=>Gb});var Nk=typeof ArrayBuffer=="function",Mk=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Lb=Object.prototype.toString,jk=typeof Blob=="function"||typeof Blob<"u"&&Lb.call(Blob)==="[object BlobConstructor]",Bk=typeof File=="function"||typeof File<"u"&&Lb.call(File)==="[object FileConstructor]";function Xn(e){return Nk&&(e instanceof ArrayBuffer||Mk(e))||jk&&e instanceof Blob||Bk&&e instanceof File}function Kn(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Kn(e[r]))return!0;return!1}if(Xn(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Kn(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Kn(e[r]))return!0;return!1}function Nb(e){let t=[],r=e.data,n=e;return n.data=mf(r,t),n.attachments=t.length,{packet:n,buffers:t}}function mf(e,t){if(!e)return e;if(Xn(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=mf(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=mf(e[n],t));return r}return e}function Mb(e,t){return e.data=gf(e.data,t),delete e.attachments,e}function gf(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]=gf(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=gf(e[r],t));return e}var Wb=xx(zb(),1),yf=(0,Wb.default)("socket.io-parser"),Hb=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Gb=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 bf=class{constructor(t){this.replacer=t}encode(t){return yf("encoding packet %j",t),(t.type===D.EVENT||t.type===D.ACK)&&Kn(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)),yf("encoded %j as %s",t,r),r}encodeAsBinary(t){let r=Nb(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},xf=class e extends Z{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===D.BINARY_EVENT;n||r.type===D.BINARY_ACK?(r.type=n?D.EVENT:D.ACK,this.reconstructor=new _f(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Xn(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(D[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===D.BINARY_EVENT||n.type===D.BINARY_ACK){let s=r+1;for(;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(!qb(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(s,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if(e.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return yf("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case D.CONNECT:return mi(r);case D.DISCONNECT:return r===void 0;case D.CONNECT_ERROR:return typeof r=="string"||mi(r);case D.EVENT:case D.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&Hb.indexOf(r[0])===-1);case D.ACK:case D.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},_f=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=Mb(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Qk(e){return typeof e=="string"}var qb=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function ev(e){return e===void 0||qb(e)}function mi(e){return Object.prototype.toString.call(e)==="[object Object]"}function tv(e,t){switch(e){case D.CONNECT:return t===void 0||mi(t);case D.DISCONNECT:return t===void 0;case D.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&Hb.indexOf(t[0])===-1);case D.ACK:return Array.isArray(t);case D.CONNECT_ERROR:return typeof t=="string"||mi(t);default:return!1}}function rv(e){return Qk(e.nsp)&&ev(e.id)&&tv(e.type,e.data)}function Pe(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var nv=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Vr=class extends Z{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[Pe(t,"open",this.onopen.bind(this)),Pe(t,"packet",this.onpacket.bind(this)),Pe(t,"error",this.onerror.bind(this)),Pe(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var n,o,s;if(nv.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=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[t]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[t]=i}emitWithAck(t,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...s)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...s)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type: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(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case 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 n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:D.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type: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 n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,t.data)}}};function 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 Z{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,pt(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new tr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||Sf;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Nr(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=Pe(r,"open",function(){n.onopen(),t&&t()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},i=Pe(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(Pe(t,"ping",this.onping.bind(this)),Pe(t,"data",this.ondata.bind(this)),Pe(t,"error",this.onerror.bind(this)),Pe(t,"close",this.onclose.bind(this)),Pe(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){ut(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new Vr(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var Yn={};function zr(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=Db(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=Yn[o]&&s in Yn[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,c;return a?c=new Ur(n,t):(Yn[o]||(Yn[o]=new Ur(n,t)),c=Yn[o]),r.query&&!t.query&&(t.query=r.queryKey),c.socket(r.path,t)}Object.assign(zr,{Manager:Ur,Socket:Vr,io:zr,connect:zr});R();var ov=new Set(["__proto__","constructor","prototype"]),Kb=e=>{if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(ov.has(e[t]))return!1;return!0},sv=(e,t)=>{!e||!Kb(t)||t.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},e)},iv=(e,t,r,n=!1)=>{!e||!Kb(t)||t.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},e)},Xb=(e,t)=>{let r=new Set;if(!Array.isArray(t))return r;for(let[n,o,s]of t)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":sv(e,o);break;case"update":case"set":iv(e,o,s,!0);break;default:break}return r};R();var Yb=(e,t,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?At(a):ar(r[i],a):r[i]=a}),s&&(r.schema=s))},Zb=(e,t,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=Xb(r,o);if(s.has("state")&&t.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;e.call("router",i+a+c,e.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&At(r.designSystem)};var av={success:"green",error:"red",warning:"yellow"},Jb=(e,t,r)=>{if(e.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected&&t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},Qb={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:av[e.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(t,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(t,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(t,r,n)}}),IconText:null,childrenAs:"state",children:({state:e})=>e.notifications}};var cv=!1,lv=()=>cv?"http://localhost:8080":"https://api.symbols.app",fv=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}},uv=async e=>{try{let t=e||lv(),r=await k.fetch(`${t}/service-token`,{method:"GET"}),n;try{let o=await r.clone().json();if(o&&typeof o.token=="string")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},rx=(e,t,r,n)=>{e.on("snapshot",Yb(t,r,n)),e.on("ops",Zb(t,r,n)),e.on("clients",o=>{n.editor?.verbose&&Jb(o,t,r)}),e.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},pv=async(e,t,r,n)=>{let o=await uv(n);if(!o)return console.warn("[sync] no service token \u2014 collab disabled"),null;let s=r.key;if(!s)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let i=r.editor?.projectId||null,a=zr(n,{path:"/collab-socket",transports:["websocket"],auth:{token:o,projectId:i,projectKey:s,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),rx(a,e,t,r),a},dv=(e,t,r)=>{let n=zr({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),rx(n,e,t,r),n.on("reload",()=>{typeof k<"u"&&k.location&&k.location.reload()}),n},hv=async(e,t,r)=>{let{mode:n,baseUrl:o}=fv(r);return n?n==="collab"?pv(e,t,r,o):n==="runner"?dv(e,t,r):null:null},mv={onInit:hv};var nx=e=>typeof e>"u",ex=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),tx=e=>e?.editor?.runtime==="runner",ox=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},sx={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!nx(r.liveSync)?r.liveSync:ex(t)||tx(t))&&(ex(t)&&!tx(t)&&!t?.key||ox(e,mv))}},ix={name:"notifications",beforeCreate(e,t){if(!t)return;let r=nx(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&ox(e,Qb)}};R();function ax(e){return w(e)?e:T(e)?e.find(t=>w(t)):""}function kf(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&ax(e.extends),n=e.parent&&e.parent.childExtends&&ax(e.parent.childExtends);return(t||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function gi(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=kf(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?gi(e.parent):o&&(t[o]||r[o])?e:gi(e.parent)}var gv=(e,t,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&e.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{e.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(e.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),e.Inspector.state.update({area:!1}))}},wf={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:gv,onMousemove:(e,t,r)=>{let n=e.target.ref,o=gi(n),s=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=kf(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(e.altKey&&e.shiftKey){let{x:l,y:f,width:p,height:u}=o.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 n=e.target.ref,o=gi(n);if(!o)return;let s=kf(o);if(!s)return;let i=n.context.editor;if(i&&i.onInspect)return i.onInspect(s,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return n.context.socket?.emit&&n.context.socket.emit("route",a),e.preventDefault(),e.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(e,t)=>!(t.area&&t.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:e})=>{let{components:t}=e;if(S(t)){let{Content:r,...n}=t;for(let o in n)On[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(e,t,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,s;if(!o)s="display: none !important";else if(n){let{x:i,y:a,width:c,height:l}=n;s=`
67
+ )`};var Xw={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"}}}},Zw={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},Jw={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"}}},mg={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...Xw,...Zw,...Jw,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var yg={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var bg={ratio:1.618,subSequence:!0};var xg={SourceSans:[{url:""}]},_g={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var Sg={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 wg={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 kg={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Fs={version:"0.0.1",color:hg,gradient:gg,theme:mg,typography:yg,spacing:bg,font:xg,fontFamily:_g,timing:kg,icons:Sg,media:wg,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var On={};F(On,{A:()=>Mm,AssetPicture:()=>Vg,Audio:()=>Wg,Avatar:()=>Jm,B:()=>lm,Block:()=>vg,Box:()=>Ns,Br:()=>dm,Button:()=>Bm,ButtonSet:()=>Wm,COMPONENTS:()=>Or,Caption:()=>tm,Checkbox:()=>km,CheckboxHgroup:()=>vm,Circle:()=>Ng,CircleButton:()=>Um,Clickable:()=>Dg,Data:()=>um,Dialog:()=>Gm,DialogFooter:()=>Km,DialogHeader:()=>qm,Dropdown:()=>ty,DropdownList:()=>ey,DropdownParent:()=>ry,DropdownParentFocus:()=>ny,DropdownSiblingFocus:()=>oy,FileIcon:()=>$m,Flex:()=>Ag,Focusable:()=>Lg,FocusableComponent:()=>Mg,Footnote:()=>cm,Form:()=>Ig,Grid:()=>Tg,Gutter:()=>Rg,H1:()=>qg,H2:()=>Kg,H3:()=>Yg,H4:()=>Xg,H5:()=>Zg,H6:()=>Jg,Headline:()=>im,Hgroup:()=>bm,HgroupButton:()=>_m,HgroupRows:()=>xm,Hoverable:()=>Fg,Hr:()=>pm,I:()=>fm,Icon:()=>Pm,IconButton:()=>Hm,IconText:()=>Im,Iframe:()=>$g,Img:()=>Pg,Inline:()=>Cg,InlineFlex:()=>Eg,InlineGrid:()=>Og,Input:()=>Sm,Italic:()=>om,KangorooButton:()=>zm,Li:()=>hm,Link:()=>bl,Notification:()=>sy,NumberInput:()=>wm,Ol:()=>mm,P:()=>Qg,Picture:()=>Bg,Radio:()=>Cm,RadioHgroup:()=>Am,Range:()=>Qm,RouteLink:()=>Nm,RouterLink:()=>xl,SHAPES:()=>Ls,Select:()=>jm,Shape:()=>Kc,Span:()=>Gg,SquareButton:()=>Vm,Strong:()=>em,Subhead:()=>am,Svg:()=>Ug,Text:()=>Hg,Textarea:()=>Om,TextareaWithButton:()=>Rm,Theme:()=>jg,Title:()=>sm,Toggle:()=>Em,ToggleHgroup:()=>Tm,Tooltip:()=>Ym,TooltipHidden:()=>Xm,TooltipParent:()=>Zm,U:()=>rm,Ul:()=>gm,Underline:()=>nm,Video:()=>zg,depth:()=>Ms,getSystemGlobalTheme:()=>Tn});var zc={};F(zc,{Block:()=>vg,Flex:()=>Ag,Grid:()=>Tg,Gutter:()=>Rg,Inline:()=>Cg,InlineFlex:()=>Eg,InlineGrid:()=>Og});var vg={display:"block"},Cg={display:"inline"},Ag={display:"flex"},Eg={display:"inline-flex"},Tg={display:"grid"},Og={display:"inline-grid"},Rg={boxSize:"C1"};var Wc={};F(Wc,{Img:()=>Pg});P();var Pg={tag:"img",attr:{title:t=>t.title||t.alt,src:t=>{let e=Tt(t);return e&&e.src||t.src},srcset:t=>{let e=Tt(t);return(e?cs(e):"")||t.srcset}}};var Hc={};F(Hc,{Form:()=>Ig});var Ig={tag:"form"};var Gc={};F(Gc,{Iframe:()=>$g});var $g={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var qc={};F(qc,{Clickable:()=>Dg,Focusable:()=>Lg,FocusableComponent:()=>Mg,Hoverable:()=>Fg});var Qw={appearance:"none",cursor:"pointer",fontFamily:"inherit"},Fg={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}},Lg={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:t=>t.tabIndex}},Mg={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:Qw};var Zc={};F(Zc,{Picture:()=>Bg});var Xc={};F(Xc,{Theme:()=>jg,getSystemGlobalTheme:()=>Tn});var Yc={};F(Yc,{Circle:()=>Ng,SHAPES:()=>Ls,Shape:()=>Kc,default:()=>t0,depth:()=>Ms});P();var Mt=E(),Ms={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Mt.unit.default} 4${Mt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Mt.unit.default} 6${Mt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Mt.unit.default} 10${Mt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Mt.unit.default} 16${Mt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Mt.unit.default} 26${Mt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Mt.unit.default} 42${Mt.unit.default}`}},Tr=t=>tt(t.shapeDirectionColor)||tt(t.borderColor)||tt(t.backgroundColor)||tt(t.background),Ds=t=>{let e=Is.transition(t.transition,t);return e&&e.transition},Ls={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:Tr(t),transition:Ds(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:Tr(t),transition:Ds(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:Tr(t),transition:Ds(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:Ds(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Tr(t)} 25%, transparent 25%), linear-gradient(315deg, ${Tr(t)} 25%, transparent 25%)`},"&:after":{background:Tr(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)"}}}},Kc={deps:{exec:X,getSpacingBasedOnRatio:fe,getMediaColor:bt},classlist:{shape:t=>t.deps.exec(Ls[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Ls[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}}},Ng={round:"100%"},t0=Kc;P();var Tn=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},jg={deps:{depth:Ms},classlist:{depth:t=>!gt(t.depth)&&t.deps.depth[t.depth]}};var Bg={deps:{getSystemGlobalTheme:Tn},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Tn},tag:"source",attr:{media:t=>{let{key:e,context:r,deps:n}=t,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent?.src||e.src}};var Jc={};F(Jc,{AssetPicture:()=>Vg});P();var Vg={tag:"picture",children:t=>{let e=Tt(t);if(e)return ls(e,t.alt)}};var Qc={};F(Qc,{Svg:()=>Ug});var Ug={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!="function")return t.call("exec",t.html,t);let{designSystem:r,utils:n}=e,o=r&&r.svg,s=t.spriteId||r&&r.useSvgSprite,i=t.call("exec",t.src,t);if(!s&&i)return i;let a=u=>`<use xlink:href="#${u}" />`,c=t.spriteId;if(c)return a(c);if(o&&o[i])return a(i);let l=Symbol.for(i),f=o[l];if(f&&o[f])return a(f);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let p=0;for(let u=0;u<i.length;u++)p=(p<<5)-p+i.charCodeAt(u)|0;return f=o[l]=`svg-${(p>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var tl={};F(tl,{Video:()=>zg});P();var zg={tag:"video",controls:!0,attr:{src:t=>{let e=Tt(t);return e&&e.src||t.src}},children:t=>{let e=Tt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var el={};F(el,{Audio:()=>Wg});P();var Wg={tag:"audio",controls:!0,attr:{src:t=>{let e=Tt(t);return e&&e.src||t.src}},children:t=>{let e=Tt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var rl={};F(rl,{B:()=>lm,Caption:()=>tm,Data:()=>um,Footnote:()=>cm,H1:()=>qg,H2:()=>Kg,H3:()=>Yg,H4:()=>Xg,H5:()=>Zg,H6:()=>Jg,Headline:()=>im,I:()=>fm,Italic:()=>om,P:()=>Qg,Span:()=>Gg,Strong:()=>em,Subhead:()=>am,Text:()=>Hg,Title:()=>sm,U:()=>rm,Underline:()=>nm});var Hg={},Gg={tag:"span"},qg={tag:"h1"},Kg={tag:"h2"},Yg={tag:"h3"},Xg={tag:"h4"},Zg={tag:"h5"},Jg={tag:"h6"},Qg={tag:"p"},tm={tag:"caption"},em={tag:"strong",fontWeight:"700"},rm={tag:"u"},nm={tag:"u"},om={tag:"i"},sm={},im={tag:"h6",fontSize:"B",fontWeight:500},am={tag:"span",fontSize:"Z1"},cm={tag:"span",fontSize:"Z"},lm={tag:"b"},fm={tag:"i"},um={tag:"data"};var nl={};F(nl,{Box:()=>Ns,Br:()=>dm,Hr:()=>pm,Li:()=>hm,Ol:()=>mm,Ul:()=>gm});var e0=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Lt(e,t,{unpack:!1});r.__class=n},Ns={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:e0},pm={tag:"hr",margin:"C1 0"},dm={tag:"br"},hm={tag:"li"},gm={tag:"ul",childExtends:{extends:"Li"}},mm={tag:"ol",childExtends:{extends:"Li"}};var ol={};F(ol,{Hgroup:()=>bm,HgroupButton:()=>_m,HgroupRows:()=>xm});var ym=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},bm={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:ym,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:ym,margin:"0",color:"paragraph"}},xm={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},_m={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var sl={};F(sl,{Input:()=>Sm});var Sm={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 il={};F(il,{NumberInput:()=>wm});var wm={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 al={};F(al,{Checkbox:()=>km,CheckboxHgroup:()=>vm});var km={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"}}},vm={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var cl={};F(cl,{Radio:()=>Cm,RadioHgroup:()=>Am});var Cm={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}},Am={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var ll={};F(ll,{Toggle:()=>Em,ToggleHgroup:()=>Tm});var Em={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}},Tm={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var fl={};F(fl,{Textarea:()=>Om,TextareaWithButton:()=>Rm});var Om={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"}},Rm={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 ul={};F(ul,{FileIcon:()=>$m,Icon:()=>Pm,IconText:()=>Im});var Pm={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,r)=>{let{parent:n}=t,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=x=>{let v=x[".isActive"];if(v)return x.call("exec",v.name||v.icon)},l=(x,v,A)=>{let{semanticIcons:R}=A&&A.designSystem,{toCamelCase:W}=A&&A.utils,O=f(x,v),V=W(O).split(/([a-z])([A-Z])/g),J=V[1]?V[0]:O.split(".")[0].split(" ")[0],M=R&&R[J];if(M){let I=O.includes(".")?"sfsymbols."+O.split(".").slice(1).join("."):"sfsymbols";return O=M[I]||M[O.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${O}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(x,v)=>{let{key:A}=x,R=x.call("exec",x.name||x.icon||A,x);return x.call("isString",R)&&R.includes("{{")&&(R=x.call("replaceLiteralsWithObjectFields",R)),x.call("isString",R)?R:A},p=f(t,e);if(p.includes(" ")){let x=p.split(" ");p=x[0]+x.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=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=t.call("exec",m.icon||m.Icon.name||m.Icon.icon,t)),t.call("isString",g)&&g.includes("{{")&&(g=t.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[u]?y=u:o[d[0]+d[1]]?y=d[0]+d[1]:o[d[0]]?y=d[0]:i&&t.warn("Can't find icon:",p,y);let b=o[y],w=n&&n.src||t.src;Object.assign(t,{spriteId:s&&y,src:b||w||o.noIcon})},attr:{viewBox:"0 0 24 24"}},Im={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t;return t.call("exec",e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},$m={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var _l={};F(_l,{A:()=>Mm,Link:()=>bl,RouteLink:()=>Nm,RouterLink:()=>xl});var yl={};F(yl,{default:()=>i0,getActiveRoute:()=>ml,lastLevel:()=>Bs,lastPathname:()=>js,matchRoute:()=>dl,parseQuery:()=>hl,parseRoutePattern:()=>pl,router:()=>ee,runGuards:()=>gl});P();var Dm=/^:(.+)/,Lm=/^\*$/,Fm=new Map,pl=t=>{let e=Fm.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(Dm);a?n.push({index:i,name:a[1]}):Lm.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return Fm.set(t,s),s},dl=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||"");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=pl(l),p=r0(o,f);p>a&&(a=p,i=l,c=n0(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},r0=(t,e)=>{let{segments:r,hasWildcard:n}=e;if(!n&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let o=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])o+=3;else if(Dm.test(r[i]))o+=1;else if(Lm.test(r[i]))o+=.5;else return-1;return o},n0=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},hl=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((n,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(n)):e[o]=n}),e},gl=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let n=await r(e);if(n===!1)return!1;if(typeof n=="string")return n}return!0},ml=(t=0,e)=>{e||(e=typeof k<"u"?k.location.pathname:"/");let n=e.split("/")[t+1];if(n)return`/${n}`},js,Bs=0,o0=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,s0={level:Bs,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:Y&&Y.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},ee=async(t,e,r={},n={})=>{let o=e||void 0,s=o?.context?.window||k,i=o?.context?.document||Y,a={...s0,...o.context.routerOptions,...n};Bs=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let l=c.contentElementKey||a.contentElementKey||"content",f=s.location.origin!=="null"?s.location.origin:"http://localhost";t=o0(t);let p=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,u=new p(f+t),{pathname:d,search:h,hash:g}=u,m=hl(h),y=o.node,b=g&&g!==s.location.hash.slice(1),w=d!==js;js=d;let x,v,A,R;if(a.useParamsMatching){let O=dl(d,o.routes,a.level);x=O.key,v=O.routePath,A=O.content,R=O.params}else{x=ml(a.level,d),v=x;let O=o.routes;A=O?O[x||"/"]||O["/*"]:null,R={}}let W=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!A){a.onNotFound?a.onNotFound({pathname:d,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",d,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let O={pathname:d,route:x,params:R,query:m,hash:g,element:o,state:r},L=await gl(a.guards,O);if(L===!1)return;if(typeof L=="string")return ee(L,e,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,d+(h||"")+(g||""))}catch{}if(w||!b){let O={route:x,routePath:v,hash:g,debugging:!1};Object.keys(R).length&&(O.params=R),Object.keys(m).length&&(O.query=m),a.updateState&&o.state.update(O,{preventContentUpdate:!0}),l&&a.removeOldElement&&o[l].remove();let L=o.__ref?.origin?.content,V={};if(L)for(let M in L){let I=L[M];M==="__ref"||M==="props"||M==="node"||M==="parent"||M==="key"||(typeof I=="string"||typeof I=="number"||typeof I=="boolean"||typeof I=="object"&&I!==null&&!I.node&&!I.__ref)&&(V[M]=I)}let J={...V,...typeof A=="object"?A:{extends:A}};a.useFragment&&(J.tag="fragment");try{if(typeof o?.set!="function")return;o.set(J,{contentElementKey:l})}catch(M){console.error("[smbls/router] failed to render route content",d,M)}}if(a.scrollToTop&&W?.scrollTo&&W.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&A[l]?.node?.scrollTo&&A[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let O=i.getElementById(g);if(O&&W?.scrollTo){let L=O.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);W.scrollTo({...a.scrollToOptions||{},top:L,left:0})}}Ve("routeChanged",o,a)},i0=ee;var a0=(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",o,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=n,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||ee)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...p,...e.routerOptions})}catch(h){console.warn(h)}}},bl={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Ze(t,t.href)||Ze(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:a0},Mm={extends:"Link"},xl={onClick:(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",o,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=n,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||ee)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...p,...e.routerOptions})}catch(h){console.warn(h)}}}},Nm={extends:[bl,xl]};var Sl={};F(Sl,{Select:()=>jm});var jm={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 wl={};F(wl,{Button:()=>Bm,ButtonSet:()=>Wm,CircleButton:()=>Um,IconButton:()=>Hm,KangorooButton:()=>zm,SquareButton:()=>Vm});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)},Vm={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"},Um={extends:"SquareButton",round:"C"},zm={extends:"Button",childExtends:"IconText"},Wm={tag:"nav",display:"flex",childExtends:"SquareButton"},Hm={extends:["SquareButton","ClickableItem"],round:"Z"};var kl={};F(kl,{Dialog:()=>Gm,DialogFooter:()=>Km,DialogHeader:()=>qm});var Gm={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},qm={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Km={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 vl={};F(vl,{Tooltip:()=>Ym,TooltipHidden:()=>Xm,TooltipParent:()=>Zm});P();var Ym={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>vt(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},Xm={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)}},Zm={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var Cl={};F(Cl,{Avatar:()=>Jm});var Jm={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 Al={};F(Al,{Range:()=>Qm});var Qm={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:fs("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:fs("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(t,e,r)=>{let n=t.call("exec",t[e],t);return(t.call("isFunction",n)?n(t,t.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var El={};F(El,{Dropdown:()=>ty,DropdownList:()=>ey,DropdownParent:()=>ry,DropdownParentFocus:()=>ny,DropdownSiblingFocus:()=>oy});var ty={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"},ey={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"}}},ry={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},ny={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},oy={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var Tl={};F(Tl,{Notification:()=>sy});var sy={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 Or=Object.assign({},zc,Wc,Hc,Gc,qc,Zc,Jc,Qc,Yc,tl,el,Xc,rl,nl,ol,sl,il,al,cl,ll,fl,ul,_l,Sl,wl,kl,vl,Cl,Al,El,Tl);function Vs(t){if(t==null)return 0;if(typeof t!="object")return iy(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let n=0;n<t.length;n++)e=(e^Vs(t[n]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let n=0;n<r.length;n++)e=(e^iy(r[n]))*16777619,e=(e^Vs(t[r[n]]))*16777619;return e>>>0}function iy(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function Us(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!="object")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!Us(t[o],e[o]))return!1;return!0}let r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(e,s)||!Us(t[s],e[s]))return!1}return!0}function Ol(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!="object"||Array.isArray(e))return e;if(typeof t!="object"||Array.isArray(t))return{...e};let r=!1,n={};for(let o in t)if(o in e){let s=Ol(t[o],e[o]);n[o]=s,s!==t[o]&&(r=!0)}else n[o]=t[o];for(let o in e)o in t||(n[o]=e[o],r=!0);return r?n:t}function Rl(t,e,r){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(r||(r=new WeakSet),r.has(e))return t;r.add(e);for(let n in e){let o=e[n];o&&typeof o=="object"&&!Array.isArray(o)&&t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?Rl(t[n],o,r):t[n]=o}return t}function Ce(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function Rr(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Rn(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Ce(e)}function ay(t){return t.split(`
68
+ `).map(Ce).join(`
69
+ `)}var cy={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 ly(t,e){let r=cy[t]||Ce(t),n=Rn(e),o=`_${r}-${n}`,s=Rr(t),i=`.${o}{${s}: ${e}}`;return`${o}
70
+ ${i}`}var fy=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function uy(t){let e=t.split("\0"),r=[],n=[];for(let o=0;o+1<e.length;o+=2){let s=e[o],i=e[o+1];if(!i||fy(i))continue;let a=cy[s]||Ce(s),c=Rn(i),l=`_${a}-${c}`,f=Rr(s);r.push(l),n.push(`.${l}{${f}:${i}}`)}return r.join(" ")+"\0"+n.join(`
71
+ `)}function py(t,e){let r=t+e,n=`_c${Ce(r)}`,o=e.split("\0"),s="";for(let a=0;a+1<o.length;a+=2){let c=o[a],l=o[a+1];l&&(fy(l)||(s+=`${Rr(c)}:${l};`))}let i;if(t.startsWith("@media"))i=`${t}{.${n}{${s}}}`;else if(t.startsWith(":")||t.startsWith("&")){let a=t.startsWith("&")?t.slice(1):t;i=`.${n}${a}{${s}}`}else t.includes("&")?i=`${t.replace("&",`.${n}`)}{${s}}`:i=`.${n} ${t}{${s}}`;return`${n}
72
+ ${i}`}var Pl=null;function Il(t){Pl=t}var Gt={structuralHash:Vs,deepEqual:Us,mergeStructural:Ol,overwriteDeep:Rl,shortHash:Ce,toKebab:Rr,sanitizeValue:Rn,batchShortHash:ay,atomicCssClass:ly,batchAtomicCss:uy,compoundCssClass:py},dy=!1,zs=null;function p0(t){return zs||(zs=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(Gt.structuralHash=e.structuralHash),e.deepEqual&&(Gt.deepEqual=e.deepEqual),e.mergeStructural&&(Gt.mergeStructural=e.mergeStructural),e.overwriteDeep&&(Gt.overwriteDeep=e.overwriteDeep),e.shortHash&&(Gt.shortHash=e.shortHash),e.toKebab&&(Gt.toKebab=e.toKebab),e.sanitizeValue&&(Gt.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(Gt.batchShortHash=e.batchShortHash),e.atomicCssClass&&(Gt.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(Gt.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(Gt.compoundCssClass=e.compoundCssClass),dy=!0,Pl&&e.batchAtomicCss&&Pl({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),zs)}function d0(){return dy}P();var Pn={};F(Pn,{CDN_PROVIDERS:()=>Xt,DOMQL_EVENTS:()=>Jf,DOMQ_PROPERTIES:()=>De,ENV:()=>yu,HTML_TAGS:()=>on,METHODS:()=>tn,METHODS_EXL:()=>co,NODE_ENV:()=>Kt,OPTIONS:()=>Fo,PACKAGE_MANAGER_TO_CDN:()=>We,PARSED_DOMQ_PROPERTIES:()=>ao,PROPS_METHODS:()=>Me,STATE_METHODS:()=>Le,STATE_PROPERTIES:()=>Zf,SVG_TAGS:()=>Nu,TYPES:()=>ro,UNIVERSAL_RESERVED_KEYS:()=>Pa,addCaching:()=>la,addContext:()=>ca,addExtend:()=>Hu,addExtends:()=>Et,addItemAfterEveryElement:()=>Nf,addProtoToArray:()=>so,addRef:()=>sa,applyCSS:()=>my,applyDependentState:()=>dp,applyEvent:()=>ga,applyEventUpdate:()=>ma,applyExtends:()=>qu,applyProps:()=>To,arrayContainsOtherArray:()=>Pf,arraysEqual:()=>Bf,arrayzeValue:()=>pr,buildImgSrcset:()=>cs,buildSourcesAndImg:()=>ls,cache:()=>_p,call:()=>Xp,captureSnapshot:()=>td,checkForStateTypes:()=>lp,checkIfInherits:()=>ha,checkIfStringIsInArray:()=>zf,clone:()=>nu,cloneAndMergeArrayExtend:()=>xo,cloneFunction:()=>Cu,concatAddExtends:()=>Vu,copyJavaScriptToClipboard:()=>Fd,copyStringToClipboard:()=>$d,createBasedOnType:()=>oa,createElement:()=>ap,createElementExtends:()=>zi,createExtends:()=>So,createExtendsFromKeys:()=>sn,createExtendsStack:()=>qi,createIfConditionFlag:()=>Au,createInheritedState:()=>fp,createKey:()=>mo,createNestedObject:()=>fu,createNestedObjectByKeyPath:()=>pp,createObjectWithoutPrototype:()=>Fi,createParent:()=>ia,createPath:()=>aa,createProps:()=>Oo,createPropsStack:()=>ea,createRoot:()=>ip,createScope:()=>mp,createSnapshotId:()=>go,customDecodeURIComponent:()=>Xf,customEncodeURIComponent:()=>Yf,cutArrayAfterValue:()=>Lf,cutArrayBeforeValue:()=>Df,debounce:()=>bo,debounceOnContext:()=>wu,decodeNewlines:()=>Kf,deepClone:()=>Q,deepContains:()=>cu,deepDefaults:()=>os,deepDestringifyFunctions:()=>ie,deepExtend:()=>Ui,deepMerge:()=>G,deepMergeExtends:()=>ae,deepStringifyFunctions:()=>lo,defineSetter:()=>Kp,destringifyGlobalScope:()=>uo,detectHeightOnInit:()=>fd,detectInfiniteLoop:()=>hu,document:()=>Y,encodeNewlines:()=>qf,error:()=>ur,excludeKeysFromObject:()=>mu,exec:()=>X,extendCachedRegistry:()=>Uu,extendStackRegistry:()=>wo,extractArrayExtend:()=>vo,fetchLibraryData:()=>$a,fibonacciNumberByIndex:()=>pd,filterArrays:()=>Vf,filterArraysFast:()=>Uf,finalizeExtends:()=>Ki,findClosestNumber:()=>Ia,findClosestNumberInFactory:()=>Ed,findInheritedState:()=>da,findKeyPosition:()=>Hf,flattenExtend:()=>an,formatDate:()=>cd,generateHash:()=>ji,generateKey:()=>ho,generateMetaTags:()=>vd,get:()=>Wp,getActiveRoute:()=>ml,getCDNUrl:()=>Zt,getCapitalCaseKeys:()=>Ku,getCdnProviderFromConfig:()=>bn,getChildStateInKey:()=>pa,getChildren:()=>zo,getContext:()=>Xo,getCookie:()=>$u,getDB:()=>es,getEmotionStylesheet:()=>jd,getExtendsInElement:()=>Gu,getExtendsStack:()=>_o,getExtendsStackRegistry:()=>Vi,getFrequencyInArray:()=>If,getHashedExtend:()=>ko,getImportMapScript:()=>id,getInObjectByPath:()=>du,getLocalStorage:()=>Du,getNev:()=>Su,getPageMetadata:()=>Cd,getParentStateInKey:()=>ua,getPath:()=>Wo,getQuery:()=>rs,getRef:()=>Gp,getRoot:()=>qo,getRootContext:()=>Yo,getRootData:()=>Ko,getRootState:()=>Go,getRootStateInKey:()=>fa,getSpreadChildren:()=>Yu,global:()=>Tf,hasFunction:()=>en,hasHandlerPlugin:()=>rn,hasOwnProperty:()=>su,inheritChildExtends:()=>Hi,inheritChildPropsExtends:()=>Wi,inheritParentProps:()=>Ro,inheritRecursiveChildExtends:()=>Gi,init:()=>Ae,initProps:()=>np,is:()=>Ct,isArray:()=>T,isBoolean:()=>Oi,isContextComponent:()=>Xu,isCyclic:()=>gu,isDOMNode:()=>kt,isDate:()=>Pi,isDefined:()=>vt,isDevelopment:()=>Be,isEmpty:()=>Ii,isEmptyObject:()=>iu,isEqualDeep:()=>$i,isFunction:()=>C,isHtmlElement:()=>eo,isLocal:()=>_u,isMethod:()=>Jp,isMobile:()=>Pu,isNode:()=>he,isNot:()=>Rf,isNotProduction:()=>cr,isNull:()=>Ri,isNumber:()=>oe,isObject:()=>_,isObjectLike:()=>N,isPhoto:()=>hd,isProduction:()=>je,isStaging:()=>xu,isState:()=>up,isString:()=>S,isStringFunction:()=>vu,isTest:()=>Di,isTesting:()=>bu,isUndefined:()=>gt,isUniversallyReservedKey:()=>rd,isValidHtmlTag:()=>ju,joinArrays:()=>Xr,jointStacks:()=>Wu,keys:()=>Oa,lastLevel:()=>Bs,lastPathname:()=>js,loadCssFile:()=>xd,loadJavascript:()=>_d,loadJavascriptFile:()=>md,loadJavascriptFileEmbedSync:()=>bd,loadJavascriptFileSync:()=>yd,loadRemoteCSS:()=>Sd,loadRemoteScript:()=>xn,log:()=>Yp,logGroupIf:()=>Ou,logIf:()=>Tu,lookdown:()=>Vp,lookdownAll:()=>Up,lookup:()=>Bp,lowercaseFirstLetter:()=>sr,makeObjectWithoutPrototype:()=>au,map:()=>eu,mapStringsWithContextComponents:()=>Co,matchRoute:()=>dl,matchesComponentNaming:()=>ce,memoize:()=>ku,merge:()=>et,mergeSharedLibraries:()=>ss,nextElement:()=>Jo,normalizeLibraryKey:()=>_n,objectToString:()=>fo,objectizeStringProperty:()=>Eo,overwrite:()=>po,overwriteDeep:()=>At,overwriteShallow:()=>ar,overwriteState:()=>hp,parse:()=>Ra,parseDeep:()=>Vo,parseQuery:()=>hl,parseRoutePattern:()=>pl,pickupElementFromProps:()=>Ji,pickupPropsFromElement:()=>Zi,previousElement:()=>Qo,propExists:()=>rp,propertizeElement:()=>Qi,propertizeUpdate:()=>ep,reinit:()=>gy,remove:()=>zp,removeChars:()=>Dd,removeCookie:()=>Fu,removeDuplicateProps:()=>Io,removeDuplicatesInArray:()=>Zr,removeFromArray:()=>$f,removeFromObject:()=>lu,removeNestedKeyByPath:()=>uu,removeValueFromArray:()=>oo,removeValueFromArrayAll:()=>Mf,reorderArrayByValues:()=>jf,replaceLiteralsWithObjectFields:()=>or,replaceOctalEscapeSequences:()=>Gf,resolveAsset:()=>Tt,resolveHandler:()=>nn,resolveSharedLibraries:()=>Pd,returnValueAsText:()=>na,router:()=>ee,runGuards:()=>gl,runPluginHook:()=>Bt,scratchSystem:()=>_s,scratchUtils:()=>yr,self:()=>Of,set:()=>An,setActiveRootState:()=>Ho,setCookie:()=>Iu,setHashedExtend:()=>Bi,setInObjectByPath:()=>pu,setLocalStorage:()=>Lu,setNodeStyles:()=>Ta,setProps:()=>Hp,setPropsPrototype:()=>Po,spotByPath:()=>Uo,srcsetFor:()=>Sn,stringIncludesAny:()=>io,stringToObject:()=>ou,swapItemsInArray:()=>Ff,syncProps:()=>$o,toCamelCase:()=>is,toDashCase:()=>as,toDescriptionCase:()=>Md,toTitleCase:()=>Ld,toggleFullscreen:()=>od,triggerEventOn:()=>Ve,triggerEventOnUpdate:()=>xp,trimStringFromSymbols:()=>Wf,unstackArrayOfObjects:()=>no,update:()=>ta,updateProps:()=>op,variables:()=>ts,verbose:()=>yn,warn:()=>Zo,window:()=>k});P();P();var h0=E(),hy=(t=h0,e)=>{let r=_(e.localFile)?e.localFile:{},n=Q(r.designSystem||{});return G(t,n)},g0={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Ae=(t,e=g0)=>{let r=hy(t||{},e),n=e.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=e.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=An({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:s,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...r},{newConfig:e.newConfig,config:e.config});i&&(i.scopeSelector=n);let a=Da(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&&ut(a),l&&(ut({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];ut(m)}c&&ut(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];ut(m)}return(u||p)&&uc(i.svg,{document:e.document}),(h||d)&&dc(i.icons,{document:e.document}),i},Ws={},gy=(t,e=Ws)=>{let r=hy(t||{},e),n=e.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=An({verbose:!1,...r});if(!e.preventInject){if(ut({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];ut(i)}ut(s.reset)}return s},my=(t,e=Ws)=>{ut(t)},DI=(t,e=Ws)=>{let r=e.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(ut({[r]:t.CSS_VARS}),t.CSS_MEDIA_VARS){let o={};for(let s in t.CSS_MEDIA_VARS)s.startsWith("@media")?o[s]={[n]:t.CSS_MEDIA_VARS[s]}:o[s]=t.CSS_MEDIA_VARS[s];ut(o)}};var LI=(t,e=Ws)=>{};P();var yy=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,$l={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},In=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),n=t;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},by=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=$l:e.router=et(e.router||{},$l);let r=e.router,n=async(s,i)=>{let a=s.context?.window||k;if(!a.location)return;let{pathname:c,search:l,hash:f}=a.location;c=yy(c);let p=c+l+f,u=s;if(r.customRouterElement){let d=In(s,r.customRouterElement);d&&(u=d,s.routes&&(u.routes=s.routes))}u.routes&&await ee(p,u,{},{initialRender:!0,pushState:!1})},o=!gt(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.onRenderRouter=n),m0(e,r),r},Fl=(t,e)=>{if(e.router===!1)return;let r=e.router||$l;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:ee,o=e.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=yy(a);let f=a+c+l,p=t;if(r.customRouterElement){let u=In(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})};o.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>o.removeEventListener("popstate",s))},m0=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return G(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};P();var Dl=k&&k.location?k.location.host.includes("dev."):Be(),xy=Dl?"http://localhost:8080/get":"https://api.symbols.app/get",y0={endpoint:xy},_y=async(t,e=y0)=>{let r=e.endpoint||xy,n=e.serviceRoute?T(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(C(e.onError))return e.onError(s);console.error(s)}},b0=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await _y(t,r),o=Dl||e.isDevelopment?ie(n):ie(n.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{At(e[s],o[s.toLowerCase()])}):At(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{At(e[s],o[s.toLowerCase()])})}return e},x0=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await _y(t,n),s=Dl||e.isDevelopment?ie(o):ie(o.releases[0]);r(s)}},Sy=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await b0(t,e)}catch(r){console.error(r)}},wy=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&x0(e,r,n||(o=>{let s=o.designSystem;_(s)&&r.utils.init(s),_(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var Hs=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let r of e.__teardowns)try{r()}catch(n){console.error("[smbls] destroy teardown error:",n)}e.__teardowns.length=0}try{Cr(t)}catch(r){console.error("[smbls] dispose error:",r)}if(e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.fetch&&e.fetch.__resolving&&delete e.fetch.__resolving,e.db&&e.db.__resolved&&delete e.db.__resolved,e.db&&e.db.__resolving&&delete e.db.__resolving,e.analyze?.destroy)try{e.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return t.__destroyed=!0,!0};P();var _0={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"}},S0=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}"]`},Gs=(t,e,r)=>{if(!t)return{};let n=C(t)?X(t,e,r):{...t};if(!_(n))return{};for(let o in n){let s=n[o];C(s)&&(s=X(s,e,r)),S(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var w0=(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},ky=t=>{let e=5381,r=String(t);for(let n=0;n<r.length;n++)e=(e*33^r.charCodeAt(n))>>>0;return e.toString(36)},Ll=(t,e,r,n)=>{let o=t.head||t.querySelector("head");if(!o)return;let s=new Map;for(let a of o.querySelectorAll(`[${e}]`))s.set(a.getAttribute(e),a);let i=new Set;for(let a of r)i.add(a);for(let[a,c]of s)i.has(a)||c.remove();for(let a of r){if(s.has(a))continue;let c=n(a);c&&(c.setAttribute(e,a),o.appendChild(c))}},qs=(t,e)=>{if(!(!_(t)||!e)){for(let r in t){let n=t[r];if(n==null||r==="jsonLd"||r==="styles"||r==="scripts")continue;let o=_0[r];if(!o)continue;let s=S0(o),i=e.querySelector(s)||w0(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}if(Array.isArray(t.jsonLd)){let n=t.jsonLd.filter(s=>s!=null).map(s=>S(s)?s:JSON.stringify(s)),o=n.map(ky);Ll(e,"data-smbls-jsonld",o,s=>{let i=o.indexOf(s),a=e.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=n[i],a})}if(Array.isArray(t.styles)){let r=t.styles.filter(o=>o!=null&&String(o).trim()),n=r.map(ky);Ll(e,"data-smbls-style",n,o=>{let s=n.indexOf(o),i=e.createElement("style");return i.textContent=String(r[s]),i})}if(Array.isArray(t.scripts)){let r=t.scripts.filter(o=>o&&(S(o)?o.trim():o.src)),n=r.map(o=>S(o)?o:String(o.src));Ll(e,"data-smbls-script",n,o=>{let s=n.indexOf(o),i=r[s],a=e.createElement("script");return S(i)?a.setAttribute("src",i):(i.src&&a.setAttribute("src",i.src),i.type&&a.setAttribute("type",i.type),i.async&&(a.async=!0),i.defer&&(a.defer=!0),i.integrity&&a.setAttribute("integrity",i.integrity),i.crossorigin&&a.setAttribute("crossorigin",i.crossorigin),i.referrerpolicy&&a.setAttribute("referrerpolicy",i.referrerpolicy),i.nomodule&&(a.noModule=!0),i.body&&(a.textContent=String(i.body))),a})}}};var vy={name:"helmet",create(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Gs(e,t,t.state);qs(n,r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Gs(e,t,t.state);qs(n,r)}};ze();var Cy=(t,e,r,n)=>{t&&gn(t,e,r,n)},Ay=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Gs(t,e,r);qs(o,n)},Ey=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},n=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(n):await n(),r},$n={routes:t=>t,metadata:Ay,fetch:Cy,$router:Ey},k0=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=Ay),t.fetch!==!1&&(e.fetch=Cy),t.router!==!1&&(e.$router=Ey),e};var Ty={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Ml={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Ks={...Ty,router:Ml},v0={state:{},pages:{},components:{},router:Ml,define:$n},Ee=v0;P();P();var Oy=(t,e)=>N(t.extends)?t.extends:[];P();var $y=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;t.document=t.document||r;let n=t.window;return n&&n!==e&&typeof n.URL!="function"?(typeof console<"u"&&console.warn&&!globalThis.__smblsRouterUrlWarned&&(globalThis.__smblsRouterUrlWarned=!0,console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub (warned once; applies to every embed app this session)")),t.window=e):t.window=n||e,t.window},Ry=(t="smbls")=>{let e={};for(let r in Or)Object.prototype.hasOwnProperty.call(Or,r)&&(ce(r)?e[`smbls.${r}`]=Or[r]:e[r]=Or[r]);return e},Fy=t=>t.components?{...Ry(),...t.components}:Ry(),Dy=t=>({...Pn,...yl,...yr,...t.utils,...t.snippets,...t.functions}),Ly=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),Py={},My=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=We[s]||bn(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=Be()&&n?`?${Math.random()}`:"",p=Zt(c,l,o)+f;try{if(Py[c])continue;Py[c]=!0,await Promise.race([xn(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 ${o}:`,u),o!=="symbols")try{let d=Zt(c,l,"symbols")+f;await Promise.race([xn(d,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${c}`)),2e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},Ny=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||bn(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,p=i.window||window;if(!p.packages[a]){let u=Be()?`?${Math.random()}`:"";if(l&&l[a]){let d=l[a],h=Zt(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=Zt(a,d,"symbols")+u;await i.utils.loadRemoteScript(m,{window:p,document:f})}}}else{let d=Zt(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=Zt(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=et(r.packages,t):r.packages=t,r.require||(e.utils.require=await o(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},C0=/\s+/g,jy=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,A0=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${jy(o,e)}`)}return r},E0=(t,e,r)=>{if(!t)return;let{key:n}=e;t===!0&&(t=e.classlist={key:n}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=A0(t,e));let o=t.replace(C0," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},T0=()=>(t,e,r)=>{let n=jy(t,e);if(t){let{__ref:o}=e;o.__class.style=n}By()(e.classlist,e,e.state,!0)},By=()=>(t,e,r,n)=>{if(e.style&&!n)return;let{__ref:o}=e,{__class:s,__classNames:i}=o;if(!(t===null||typeof t!="object"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c=="string"||typeof c=="number"?l=c:typeof c=="boolean"?l=e.key:l=Xe(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&E0(i,e,e.node)}},O0=()=>({style:T0(),classlist:By()}),R0=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],Iy=!1,Vy=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,n=e.initOptions||{},o=e.registry||O0(),s=e.designSystem?G(Q(e.designSystem),Fs):Q(Fs),i={};for(let d of R0)e[d]!==void 0&&(i[d]=e[d]);let a,c=Iy&&!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=E(t)||E(),a&&(a.document=r),a?.CSS_VARS){ft(a);try{if(ut({[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];ut(d)}}finally{st()}}}else if(c){let d=rh(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=Ae(d,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...Ks,...i,...n})}finally{st()}}else{let d=E();d&&(d.document=r),a=Ae(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...Ks,...i,...n}),a&&a!==d&&(a.document=r),Iy=!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")&&ut(`@font-face { ${m} }`)}}finally{st()}}return[a,o]},Uy=(t,e)=>{let r={};e.state&&G(r,e.state),t&&t.state&&G(r,t.state);let n=e.polyglot;if(n?.translations){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(n.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=o||r.lang||n.defaultLang||"en";o&&o!==r.lang&&(r.lang=o);let i=n.translations[s];if(i&&typeof i=="object")for(let c in i)r[c]=i[c];let a=new Set(n.languages||[]);for(let c in n.translations)!a.has(c)&&r[c]===void 0&&(r[c]=n.translations[c])}return r.isRootState=!0,Q(r)},zy=(t,e)=>{_(t.routes)&&_(e.pages)&&et(t.routes,e.pages);let r=t.routes||e.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n==="index"?"":n;r["/"+o]=r[n],delete r[n]}return r},Wy=t=>{ss(t,t.sharedLibraries)};P();var Gy="smbls_lang",P0="smbls_t_",I0="smbls_tv_",Pr={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)}}},Fn={};function Xs(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function Nl(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Ys=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),n=t;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},Hy=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=Ys(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function jl(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=Hy(s,t,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=Ys(l,t);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[o];if(l){let f=Ys(l,t);if(f!==void 0)return f}}let c=n?.defaultLang||"en";if(s){let l=Hy(s,t,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=Ys(l,t);if(f!==void 0)return f}}return t}async function Bl(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||P0,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):I0);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=Pr.get(o+t);if(c)try{let l=JSON.parse(c),f={translations:{...n.translations||{}}};f.translations[t]=l,n.update&&n.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(r.storagePrefix||"smbls")+":"+t;if(Fn[i])return Fn[i];let a=this;return Fn[i]=(async()=>{try{let c=r.fetch,l=parseInt(Pr.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(_(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 w=b.data;if(!w||!w.changed)return;f=w.translations||{},p=w.version||0,u=!0}else return;if(!u||!f)return;Pr.set(o+t,JSON.stringify(f)),p&&Pr.set(s+t,String(p));let d={translations:{...n.translations||{}}};d.translations[t]=f,n.update&&n.update(d)}catch(c){if(r.verbose!==!1){let l=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",t,"-",l)}}finally{delete Fn[i]}})(),Fn[i]}async function Vl(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call("getActiveLang")===t)return;let o=r?.storageLangKey||Gy;Pr.set(o,t),r?.fetch&&await this.call("loadTranslations",t),e?.state&&(e.state.lang=t);let s=r?.translations?.[t],i={lang:t};if(s&&typeof s=="object")for(let c in s){let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}if(n.update&&n.update(i),s&&typeof s=="object")for(let c in s){let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&n[c]&&typeof n[c]=="object"&&!Array.isArray(n[c]))for(let f in l)n[c][f]=l[f]}let a=this?.context?.document||globalThis.document;if(a&&s){let c=a.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let 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 Ul(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&_(o.fetch)){let i=this.getDB||(()=>n.fetch),a=C(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(l?.error)throw l.error;return l.data}}async function qy(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let n=e.storageLangKey||Gy,s=Pr.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function zl(t){try{let e=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",o=this?.state;if(!o)return"";let s=t.lastIndexOf(".");if(s===-1)return o[t+n]??"";let i=t.substring(0,s).split("."),a=o;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+n]??""}catch{return""}}var Wl={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,qy.call(t))}};var Zs={polyglot:jl,getLocalStateLang:zl,getActiveLang:Xs,getLang:Xs,setLang:Vl,getLanguages:Nl,loadTranslations:Bl,upsertTranslation:Ul};ze();var Js={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}},Qs=t=>parseFloat(t.toFixed(4)),$0=(t,e,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(o),l=n+c+s,f=r!==void 0?r:l/i*t,p=f/t,u=l/i,d=(n-a+s/2)/i-(p-u)/2,h=(c+s/2)/i-(p-u)/2;return{fontSize:`${Qs(t/16)}rem`,lineHeight:`${Qs(f)}px`,capHeightTrim:`${Qs(-d)}em`,baselineTrim:`${Qs(-h)}em`}},F0=(t,e)=>{if(typeof t=="number")return t;let r=e?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(t).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(t);return isNaN(o)?null:typeof t=="string"&&t.endsWith("rem")?o*(r.typography?.browserDefault||16):o},D0=(t,e)=>{let n=e?.designSystem?.font_family||{};if(t){let s=n[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(Js[i])return Js[i]}let o=n.default||Object.keys(n)[0];if(o){let s=n[o];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(Js[a])return Js[a]}}return null},Ky=(t,e,r,n)=>{if(!t)return;let o=F0(e.fontSize,n);if(!o)return;let s=D0(e.fontFamily,n);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=$0(o,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},Yy={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}};var Dn={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},Nt=Object.create(null);for(let t in Dn)Nt[Dn[t]]=t;var Hl=Object.create(null);for(let t in Dn){let e=Dn[t];if(Hl[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${Hl[e]}"`);Hl[e]=t}var Te=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Ln(t){return/^[A-Z]/.test(t)}function Mn(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function L0(t){return t.trim().split(/\s+/).filter(Boolean)}function Xy(t){return t.replace(/_/g," ")}function M0(t){if(!t||typeof t!="string")return{};let e={},r=L0(t);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),l=Nt[c]||c;e[l]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=Nt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Nt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(Xy);continue}e[a]=Xy(i)}return e}function Nn(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Nn(r):r});let e={};for(let r in t){let n=t[r];if(Ln(r)){e[r]=Gl(n);continue}let o=Nt[r]||r;if(Mn(r)&&o===r){e[r]=Gl(n);continue}if(Te.has(o)||Te.has(r)){e[o]=n;continue}e[o]=Gl(n)}return e}function Gl(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Nn(e):e}):typeof t=="object"?Nn(t):t}function jn(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?jn(r):r});let e={};if(typeof t.in=="string"){let r=M0(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r==="in")continue;let n=t[r];if(Ln(r)){e[r]=ql(n);continue}let o=Nt[r]||r;if(Mn(r)&&o===r){e[r]=ql(n);continue}if(Te.has(o)||Te.has(r)){e[o]=n;continue}e[o]=ql(n)}return e}function ql(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?jn(e):e}):typeof t=="object"?jn(t):t}function N0(t){let e="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){let n=t[r+1];if(n===","||n==="_"||n==="\\"){e+=n,r+=2;continue}}t[r]==="_"?e+=" ":e+=t[r],r++}return e}function j0(t){let e=[],r="",n=0;for(;n<t.length;){if(t[n]==="\\"&&n+1<t.length){r+=t[n]+t[n+1],n+=2;continue}if(t[n]===","){e.push(r),r="",n++;continue}r+=t[n],n++}return e.push(r),e}function Zy(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):N0(t)}function Kl(t){if(!t||typeof t!="string")return{};let e={},r=t.trim().split(/\s+/).filter(Boolean);for(let n of r){if(n.startsWith("!")){let l=n.slice(1),f=Nt[l]||l;e[f]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=Nt[n]||n;e[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Nt[s]||s,c=j0(i);if(c.length>1){e[a]=c.map(Zy);continue}e[a]=Zy(i)}return e}function Bn(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Bn(r):r});let e={};if(typeof t.in=="string"){let r=Kl(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r==="in")continue;let n=t[r];if(Ln(r)){typeof n=="string"?e[r]=Kl(n):e[r]=Yl(n);continue}let o=Nt[r]||r;if(Mn(r)&&o===r){typeof n=="string"?e[r]=Kl(n):e[r]=Yl(n);continue}if(Te.has(o)||Te.has(r)){e[o]=n;continue}e[o]=Yl(n)}return e}function Yl(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Bn(e):e}):typeof t=="object"?Bn(t):t}var B0={shorten:Nn,stringify:jn,stringifyFurther:Bn};function V0(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(n=>e(n));let r={};for(let n in t){let o=t[n];r[n]=o&&typeof o=="object"?e(o):o}return r}var U0=["components","pages","snippets"],ti={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let n=B0[e===!0?"shorten":e];if(n){for(let o of U0)t[o]&&(t[o]=V0(t[o],n));t.app&&typeof t.app=="object"&&(t.app=n(t.app))}}};var z0=0,W0=()=>`${Date.now().toString(36)}-${(z0++).toString(36)}`,z=(t,e,r={})=>({id:W0(),ts:Date.now(),type:t,level:e,...r}),H0=t=>{let e=[],r=t,n=0;for(;r&&n<32;)r.key!=null&&e.unshift(String(r.key)),r=r.parent,n++;return e.join(" > ")},Ir=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:H0(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var $r=t=>t?.context?.analyze,G0={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"}},q0=(t,{category:e,type:r,level:n})=>o=>{let s=$r(o);!s||!s.shouldCapture(e)||s.emit(z(r,n,{hook:t,element:Ir(o)}))},Jy=t=>(e,r)=>{let n=$r(e);!n||!n.shouldCapture("state")||n.emit(z("state","debug",{hook:t,element:Ir(e),changedKeys:r?.changedKeys||null}))},Vn={name:"analyze",error(t,e){let r=$r(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=e?.error||e?.err||(e instanceof Error?e:null);r.emit(z("error","error",{hook:e?.hook||"error",element:Ir(t),error:n,message:n?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=$r(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(z("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=$r(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=$r(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(z("update","debug",{hook:"update",element:Ir(t),durationMs:r}))},beforeStateUpdate:Jy("beforeStateUpdate"),stateUpdate:Jy("stateUpdate")};for(let[t,e]of Object.entries(G0))Vn[t]=q0(t,e);P();var ei={error:0,warn:1,info:2,debug:3,trace:4};var Xl=(t,e)=>{let r=ei[t],n=ei[e];return r==null||n==null?!0:r<=n},ri=t=>ei[t]!=null?t:"warn";P();var ni=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var K0=(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},Y0=(t,e)=>{if(e!=="redact"){if(e==="hash"){let r=0,n=String(t);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},Zl=(t,e,r,n)=>{if(n>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>Zl(s,e,r,n+1));let o={};for(let s of Object.keys(t))if(K0(s,e)||ni.test(s)){let a=Y0(t[s],r);a!==void 0&&(o[s]=a)}else o[s]=Zl(t[s],e,r,n+1);return o},Jl=(t=[],e="mask")=>{let r=Array.isArray(t)?t:[t];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...h}=n,g=Zl(h,r,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...g}}};var Qy=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,n=t.config.buildHash||null,o=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=k,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:o,build:n,route:i},meta:{ua:r,viewport:c}}}},tb=()=>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},eb=(t=1e3,e=500)=>{let r=new Map;return n=>{if(!n)return n;let o=`${n.type}:${n.level}:${n.message||""}:${n.error?.message||""}`,s=r.get(o),i=n.ts||Date.now();if(s&&i-s<t)return null;if(r.set(o,i),r.size>e){let a=Math.ceil(e/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return n}},rb=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},nb={redact:t=>Jl(t.config.redact||[],t.config.maskStrategy),enrich:t=>Qy(t),summarize:()=>tb(),dedupe:t=>eb(t.config.cache?.dedupeWindowMs||1e3),sample:t=>rb(t.config.sample||{})},X0=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=nb[t];return r?r(e):null}return null},Ql=t=>{let e=t.config,r=Array.isArray(e.transformers)?e.transformers.slice():[],n=r.findIndex(s=>s==="redact");n>=0&&r.splice(n,1);let o=[];e.redact!==!1&&o.push(nb.redact(t));for(let s of r){let i=X0(s,t);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=o.slice(o.indexOf(a)+1),f=[];for(let 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}};P();P();var oi=typeof k<"u"&&typeof k.document<"u",Z0=5e3,J0=50,Q0=3,tk=1500,ek=1e3,ob=t=>t?t.level==="error"||t.type==="error"?"bug":t.type==="network"?"network":t.type==="console"?t.level==="error"||t.level==="warn"?"bug":"log":t.level==="warn"?"bug":t.level==="info"?"log":"verbose":"verbose",rk=t=>{try{return JSON.stringify(t)}catch{return null}},nk=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},ok=t=>{if(!t)return null;let e=String(t),r;return(r=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:r[1]}:(r=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:r[1]}:(r=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:r[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(r=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:r[1]}):(r=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:r[1]}:{name:null,version:null}},sk=()=>{if(!oi)return null;try{let t=k.document?.documentElement?.getAttribute("data-theme")||null,e=typeof k.matchMedia=="function"?k.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:t||(e?"dark":e===!1?"light":null),forced:t||null,prefers:e==null?null:e?"dark":"light"}}catch{return null}},ik=()=>{if(!oi)return null;let t=k.location,e=typeof navigator<"u"?navigator:null,r=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:k.document?.referrer||null,title:k.document?.title||null,ua:e?.userAgent||null,browser:ok(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:nk(),viewport:k.innerWidth?{w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}:null,screen:r?{w:r.width||null,h:r.height||null,availW:r.availWidth||null,availH:r.availHeight||null,colorDepth:r.colorDepth||null,orientation:r.orientation?.type||null}:null,theme:sk()}},tf=(t={})=>{let e=t.url,r=typeof t.transport=="function"?t.transport:null;if(!e&&!r)return()=>{};let n=t.apiKey||null,o=t.appKey||t.appId||null,s=t.tenantKey||t.tenant||null,i=t.release||null,a=t.env||null,c=t.sdk||null,l=typeof t.getAuth=="function"?t.getAuth:null,f=typeof t.getContext=="function"?t.getContext:null,p=typeof t.classify=="function"?t.classify:ob,u=typeof t.beforeSend=="function"?t.beforeSend:null,d=t.batchMs!=null?t.batchMs:Z0,h=t.maxBatch||J0,g=t.maxRetries!=null?t.maxRetries:Q0,m=t.backoffMs||tk,y=t.queueLimit||ek,b=t.sampleRate!=null?t.sampleRate:1,w=t.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),x=[],v=[],A=null,R=null,W=()=>{A||!x.length||(A=setTimeout(J,d))},O=I=>{if(R)return;let H=m*Math.pow(2,Math.max(0,I-1));R=setTimeout(()=>{if(R=null,!v.length)return;let q=v.shift();V(q.envelope,q.attempt)},H)},L=I=>{let H=f?ak(f):null,q={v:1,session:{id:w,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:c,page:ik(),user:H?.user||null,traits:H?.traits||null,tags:H?.tags||null,events:I};if(u)try{return u(q)||null}catch{return q}return q},V=async(I,H=1)=>{if(I)try{let q=!0;if(r){let at=await r(I);q=at!==!1&&at?.ok!==!1}else q=await ck(e,I,{apiKey:n,getAuth:l});!q&&H<g&&(v.push({envelope:I,attempt:H+1}),O(H+1))}catch{H<g&&(v.push({envelope:I,attempt:H+1}),O(H+1))}},J=(I=!1)=>{if(A&&(clearTimeout(A),A=null),!x.length)return;let H=x;x=[];let q=L(H);if(q){if(I&&oi&&navigator.sendBeacon&&e){let at=rk(q);if(at)try{navigator.sendBeacon(e,new k.Blob([at],{type:"application/json"}));return}catch{}}V(q)}};oi&&(k.addEventListener("pagehide",()=>J(!0),{passive:!0}),k.addEventListener("beforeunload",()=>J(!0),{passive:!0}),k.addEventListener("visibilitychange",()=>{k.document.visibilityState==="hidden"&&J(!0)},{passive:!0}));let M=I=>{if(!I||b<1&&Math.random()>b)return;let H={...I,log_type:p(I)};x.push(H),x.length>y&&(x=x.slice(-y)),x.length>=h?J():W()};return M.flush=()=>J(!1),M.sessionId=w,M},ak=t=>{try{return t()}catch{return null}},ck=async(t,e,{apiKey:r,getAuth:n})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(r&&(o["X-Analyze-Key"]=r),n)try{let s=await n();s&&(o.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(t,{method:"POST",headers:o,body:JSON.stringify(e),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var lk={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},fk="\x1B[0m",si=typeof k<"u"&&typeof k.document<"u",ib=(t={})=>{let e=t.minLevel||null,r=console.error.bind(console),n=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?n:o,a=`[analyze:${s.type}]`;if(si)i(a,s);else{let c=lk[s.level]||"";i(`${c}${a}${fk}`,s)}}},ab=(t,e={})=>{let r=e.max||t.config.cache?.max||500,n=new Array(r),o=0,s=0,i=a=>{n[o]=a,o=(o+1)%r,s<r&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+r)%r;for(let l=0;l<s;l++)a[l]=n[(c+l)%r];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{o=0,s=0}},i},cb=(t={})=>{let e=t.url,r=t.batchMs!=null?t.batchMs:5e3,n=t.maxBatch||50;if(!e)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let c=JSON.stringify({events:o});o=[];let l=si?new k.Blob([c],{type:"application/json"}):c;if(si&&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(()=>{})};si&&(k.addEventListener("pagehide",i,{passive:!0}),k.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},sb={console:ib,memory:ab,beacon:cb,remote:tf},ef=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],r=[];for(let n of e)if(typeof n=="function")r.push(n);else if(typeof n=="string"){let o=sb[n];if(!o)continue;r.push(n==="memory"?o(t,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=sb[n.type];if(!o)continue;r.push(n.type==="memory"?o(t,n):o(n))}return r};P();var uk=typeof k<"u"&&typeof k.document<"u",pk=new Set(["password","hidden"]),lb=(t,e)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=e?(r=i,t(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(t(...o),o=null)},e-(i-r))))}},rf="__analyzeKeyPath",Fr=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[rf])return e[rf];let r=[],n=e,o=0,s=null;for(;n&&o<64;){if(n.getAttribute){let a=n.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}n=n.parentNode,o++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||"unknown").toLowerCase(),c=e.id?`#${e.id}`:"",l=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[rf]=i}catch{}return i},dk=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let r=0,n=String(t||"");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},hk=t=>!!(!t||t.tagName==="INPUT"&&pk.has(t.type)||ni.test(t.name||"")||ni.test(t.id||"")||t.dataset?.analyze==="skip"),nf=t=>{if(!uk)return;let e=t.config.capture,r=t.config.throttle,n=t.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),n.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(o(k,"error",s=>{t.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}))}),o(k,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(z("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(k,"click",i=>{t.emit(z("pointer","info",{hook:"click",target:Fr(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:fb(i)}))},{passive:!0,capture:!0}),o(k,"dblclick",i=>{t.emit(z("pointer","info",{hook:"dblclick",target:Fr(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(k,"contextmenu",i=>{t.emit(z("pointer","info",{hook:"contextmenu",target:Fr(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=lb(i=>{t.emit(z("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);o(k,"pointermove",s,{passive:!0})}if(e.keyboard&&o(k,"keydown",s=>{t.emit(z("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:fb(s),target:Fr(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=hk(a),f=a.dataset?.analyze==="track",p=null;f&&!l?p=a.value:t.config.maskFormValues!==!1&&(p=dk(a.value,t.config.maskStrategy)),t.emit(z("forms","info",{hook:i.type,target:Fr(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:p}))};o(k,"input",s,{passive:!0,capture:!0}),o(k,"change",s,{passive:!0,capture:!0}),o(k,"submit",i=>{t.emit(z("forms","info",{hook:"submit",target:Fr(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=lb(()=>{t.emit(z("scroll","trace",{hook:"scroll",x:k.scrollX,y:k.scrollY}))},r.scroll);o(k,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=bo(()=>{t.emit(z("viewport","info",{hook:"resize",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))},r.resize);o(k,"resize",s,{passive:!0}),o(k,"orientationchange",()=>{t.emit(z("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(k.document,"visibilitychange",()=>{t.emit(z("viewport","info",{hook:"visibilitychange",hidden:k.document.hidden}))},{passive:!0}),t.emit(z("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(z("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(ub)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(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{}n.push(()=>s.disconnect())}catch{}},fb=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),gk=t=>{let e={name:t.name||"Error",message:typeof t.message=="string"?t.message:String(t),stack:typeof t.stack=="string"?t.stack:null};return t.cause!==void 0&&(e.cause=ub(t.cause)),e},ub=t=>{if(t==null)return t;if(t instanceof Error)return gk(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};P();var mk=typeof k<"u"&&typeof k.document<"u";var of=t=>{if(mk&&t.config.capture.network){if(typeof k.fetch=="function"){let e=k.fetch.bind(k),r=function(n,o){if(o?.headers?.["X-Analyze-Beacon"])return e(n,o);let s=typeof n=="string"?n:n&&n.url||"",i=(o?.method||typeof n=="object"&&n?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(z("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(n,o).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(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 t.emit(z("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,n=e.prototype.send;e.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},e.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(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;t.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;t.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),n.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=r,e.prototype.send=n})}}};var yk={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},bk={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},xk={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},_k={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},Sk=t=>{let e={...yk,...t};return e.replay&&Object.assign(e,bk),e.telemetry&&Object.assign(e,xk),e.remote&&Object.assign(e,_k),e},wk=64,kk=()=>{if(typeof k>"u"||!k.location)return null;try{let e=new URLSearchParams(k.location.search).get("analyze");return e||null}catch{return null}},sf=(t={})=>{let e=t===!0?{}:{...t};e.capture=Sk(e.capture||{});let r=kk();(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=ri(e.level||"warn"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy="mask"),Array.isArray(e.sinks)||(e.sinks=["console","memory"]),Array.isArray(e.transformers)||(e.transformers=["enrich","summarize"]);let n={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=Ql(n),n.__sinks=ef(n))};return n.shouldCapture=s=>n.config.enabled===!1?!1:!!n.config.capture[s],n.emit=s=>{if(s&&n.config.enabled!==!1&&!n.__paused&&Xl(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<wk&&n.__preBuffer.push(s);return}o(),pb(n,s)}},n.activate=s=>{if(n.context==null&&(n.context=s||null),n.__ready)return;n.__ready=!0;let i=n.__preBuffer;if(n.__preBuffer=[],i.length){o();for(let a of i)pb(n,a)}try{nf(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{of(n)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of n.__onActivate||[])try{a(n)}catch(c){console.error("[analyze] onActivate error:",c)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=ri(s)},n.setCapture=(s,i)=>{n.config.capture[s]=!!i},n.query=s=>n.__memory?n.__memory.query(s):[],n.snapshot=()=>n.__memory?n.__memory.snapshot():[],n.emitNetwork=s=>{if(!n.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},n.flush=()=>{if(n.__sinks)for(let s of n.__sinks)typeof s.flush=="function"&&s.flush()},n.replay=()=>({initialSnapshot:n.__initialSnapshot,events:n.snapshot()}),n.destroy=()=>{for(let s of n.__teardown)try{s()}catch{}n.__teardown=[],n.__ready=!1,n.__paused=!0},n.__onActivate=[],n.onActivate=s=>{n.__onActivate.push(s)},n},pb=(t,e)=>{let r=t.__pipeline(e);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof t.config.onEvent=="function")try{t.config.onEvent(o)}catch{}for(let s of t.__sinks)try{s(o)}catch(i){console.error("[analyze] sink error:",i)}}};var qt=Object.create(null);qt.open="0";qt.close="1";qt.ping="2";qt.pong="3";qt.message="4";qt.upgrade="5";qt.noop="6";var Un=Object.create(null);Object.keys(qt).forEach(t=>{Un[qt[t]]=t});var zn={type:"error",data:"parser error"};var gb=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",mb=typeof ArrayBuffer=="function",yb=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Wn=({type:t,data:e},r,n)=>gb&&e instanceof Blob?r?n(e):db(e,n):mb&&(e instanceof ArrayBuffer||yb(e))?r?n(e):db(new Blob([e]),n):n(qt[t]+(e||"")),db=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function hb(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var af;function bb(t,e){if(gb&&t.data instanceof Blob)return t.data.arrayBuffer().then(hb).then(e);if(mb&&(t.data instanceof ArrayBuffer||yb(t.data)))return e(hb(t.data));Wn(t,!1,r=>{af||(af=new TextEncoder),e(af.encode(r))})}var xb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<xb.length;t++)Hn[xb.charCodeAt(t)]=t;var _b=t=>{let e=t.length*.75,r=t.length,n,o=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let l=new ArrayBuffer(e),f=new Uint8Array(l);for(n=0;n<r;n+=4)s=Hn[t.charCodeAt(n)],i=Hn[t.charCodeAt(n+1)],a=Hn[t.charCodeAt(n+2)],c=Hn[t.charCodeAt(n+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l};var vk=typeof ArrayBuffer=="function",Gn=(t,e)=>{if(typeof t!="string")return{type:"message",data:Sb(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:Ck(t.substring(1),e)}:Un[r]?t.length>1?{type:Un[r],data:t.substring(1)}:{type:Un[r]}:zn},Ck=(t,e)=>{if(vk){let r=_b(t);return Sb(r,e)}else return{base64:!0,data:t}},Sb=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var wb="",kb=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{Wn(s,!1,a=>{n[i]=a,++o===r&&e(n.join(wb))})})},vb=(t,e)=>{let r=t.split(wb),n=[];for(let o=0;o<r.length;o++){let s=Gn(r[o],e);if(n.push(s),s.type==="error")break}return n};function Cb(){return new TransformStream({transform(t,e){bb(t,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})}var cf;function ii(t){return t.reduce((e,r)=>e+r.length,0)}function ai(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function Ab(t,e){cf||(cf=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(ii(r)<1)break;let c=ai(r,1);s=(c[0]&128)===128,o=c[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(ii(r)<2)break;let c=ai(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(ii(r)<8)break;let c=ai(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(zn);break}o=f*Math.pow(2,32)+l.getUint32(4),n=3}else{if(ii(r)<o)break;let c=ai(r,o);a.enqueue(Gn(s?c:cf.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(zn);break}}}})}var lf=4;function Z(t){if(t)return Ak(t)}function Ak(t){for(var e in Z.prototype)t[e]=Z.prototype[e];return t}Z.prototype.on=Z.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};Z.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};Z.prototype.off=Z.prototype.removeListener=Z.prototype.removeAllListeners=Z.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+t],this};Z.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this};Z.prototype.emitReserved=Z.prototype.emit;Z.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};Z.prototype.hasListeners=function(t){return!!this.listeners(t).length};var ue=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),_t=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Eb="arraybuffer";function ci(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var Ek=_t.setTimeout,Tk=_t.clearTimeout;function pe(t,e){e.useNativeTimers?(t.setTimeoutFn=Ek.bind(_t),t.clearTimeoutFn=Tk.bind(_t)):(t.setTimeoutFn=_t.setTimeout.bind(_t),t.clearTimeoutFn=_t.clearTimeout.bind(_t))}var Ok=1.33;function Tb(t){return typeof t=="string"?Rk(t):Math.ceil((t.byteLength||t.size)*Ok)}function Rk(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}function li(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Ob(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function Rb(t){let e={},r=t.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var fi=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},de=class extends Z{constructor(e){super(),this.writable=!1,pe(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,n){return super.emitReserved("error",new fi(e,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let r=Gn(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=Ob(e);return r.length?"?"+r:""}};var qn=class extends de{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let r=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};vb(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,kb(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]=li()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var Pb=!1;try{Pb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Ib=Pb;function Pk(){}var ff=class extends qn{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,r){let n=this.request({method:"POST",data:e});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=e}},Oe=class t extends Z{constructor(e,r,n){super(),this.createRequest=e,pe(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var e;let r=ci(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Pk,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Oe.requestsCount=0;Oe.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",$b);else if(typeof addEventListener=="function"){let t="onpagehide"in _t?"pagehide":"unload";addEventListener(t,$b,!1)}}function $b(){for(let t in Oe.requests)Oe.requests.hasOwnProperty(t)&&Oe.requests[t].abort()}var Ik=(function(){let t=Fb({xdomain:!1});return t&&t.responseType!==null})(),Re=class extends ff{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=Ik&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Oe(Fb,this.uri(),e)}};function Fb(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Ib))return new XMLHttpRequest}catch{}if(!e)try{return new _t[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Db=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",pf=class extends de{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=Db?{}:ci(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;Wn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&ue(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=li()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},uf=_t.WebSocket||_t.MozWebSocket,Pe=class extends pf{createSocket(e,r,n){return Db?new uf(e,r,n):r?new uf(e,r):new uf(e)}doWrite(e,r){this.ws.send(r)}};var Dr=class extends de{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let r=Ab(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=Cb();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:c})=>{a||(this.onPacket(c),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;this._writer.write(n).then(()=>{o&&ue(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var df={websocket:Pe,webtransport:Dr,polling:Re};var $k=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Fk=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Lr(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),n=t.indexOf("]");r!=-1&&n!=-1&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let o=$k.exec(t||""),s={},i=14;for(;i--;)s[Fk[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=Dk(s,s.path),s.queryKey=Lk(s,s.query),s}function Dk(t,e){let r=/\/{2,9}/g,n=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Lk(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var hf=typeof addEventListener=="function"&&typeof removeEventListener=="function",ui=[];hf&&addEventListener("offline",()=>{ui.forEach(t=>t())},!1);var Qe=class t extends Z{constructor(e,r){if(super(),this.binaryType=Eb,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let n=Lr(e);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Lr(r.host).host);pe(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Rb(this.opts.query)),hf&&(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"})},ui.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=lf,r.transport=e,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=Tb(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ue(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,n){return this._sendPacket("message",e,r,n),this}send(e,r,n){return this._sendPacket("message",e,r,n),this}_sendPacket(e,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:e,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),hf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=ui.indexOf(this._offlineEventListener);n!==-1&&ui.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Qe.protocol=lf;var pi=class extends Qe{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let r=this.createTransport(e),n=!1;Qe.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",p=>{if(!n)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Qe.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let u=new Error("probe error");u.transport=r.name,this.emitReserved("upgradeError",u)}}))};function s(){n||(n=!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",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&r.push(e[n]);return r}},Mr=class extends pi{constructor(e,r={}){let n=typeof e=="object"?e:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>df[o]).filter(o=>!!o)),super(e,n)}};var _F=Mr.protocol;function Lb(t,e="",r){let n=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),n=Lr(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let s=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+e,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var Sf={};F(Sf,{Decoder:()=>xf,Encoder:()=>bf,PacketType:()=>D,isPacketValid:()=>nv,protocol:()=>qb});var Nk=typeof ArrayBuffer=="function",jk=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Mb=Object.prototype.toString,Bk=typeof Blob=="function"||typeof Blob<"u"&&Mb.call(Blob)==="[object BlobConstructor]",Vk=typeof File=="function"||typeof File<"u"&&Mb.call(File)==="[object FileConstructor]";function Yn(t){return Nk&&(t instanceof ArrayBuffer||jk(t))||Bk&&t instanceof Blob||Vk&&t instanceof File}function Kn(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(Kn(t[r]))return!0;return!1}if(Yn(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Kn(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Kn(t[r]))return!0;return!1}function Nb(t){let e=[],r=t.data,n=t;return n.data=gf(r,e),n.attachments=e.length,{packet:n,buffers:e}}function gf(t,e){if(!t)return t;if(Yn(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=gf(t[n],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=gf(t[n],e));return r}return t}function jb(t,e){return t.data=mf(t.data,e),delete t.attachments,t}function mf(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]=mf(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=mf(t[r],e));return t}var Hb=_x(Wb(),1),yf=(0,Hb.default)("socket.io-parser"),Gb=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],qb=5,D;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(D||(D={}));var bf=class{constructor(e){this.replacer=e}encode(e){return yf("encoding packet %j",e),(e.type===D.EVENT||e.type===D.ACK)&&Kn(e)?this.encodeAsBinary({type:e.type===D.EVENT?D.BINARY_EVENT:D.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===D.BINARY_EVENT||e.type===D.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),yf("encoded %j as %s",e,r),r}encodeAsBinary(e){let r=Nb(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},xf=class t extends Z{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);let n=r.type===D.BINARY_EVENT;n||r.type===D.BINARY_ACK?(r.type=n?D.EVENT:D.ACK,this.reconstructor=new _f(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Yn(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let r=0,n={type:Number(e.charAt(0))};if(D[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===D.BINARY_EVENT||n.type===D.BINARY_ACK){let s=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);let i=e.substring(s,r);if(i!=Number(i)||e.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!Kb(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););n.nsp=e.substring(s,r)}else n.nsp="/";let o=e.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}n.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return yf("decoded %s as %j",e,n),n}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case D.CONNECT:return gi(r);case D.DISCONNECT:return r===void 0;case D.CONNECT_ERROR:return typeof r=="string"||gi(r);case D.EVENT:case D.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&Gb.indexOf(r[0])===-1);case D.ACK:case D.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},_f=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=jb(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function tv(t){return typeof t=="string"}var Kb=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function ev(t){return t===void 0||Kb(t)}function gi(t){return Object.prototype.toString.call(t)==="[object Object]"}function rv(t,e){switch(t){case D.CONNECT:return e===void 0||gi(e);case D.DISCONNECT:return e===void 0;case D.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&Gb.indexOf(e[0])===-1);case D.ACK:return Array.isArray(e);case D.CONNECT_ERROR:return typeof e=="string"||gi(e);default:return!1}}function nv(t){return tv(t.nsp)&&ev(t.id)&&rv(t.type,t.data)}function Pt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var ov=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Vr=class extends Z{constructor(e,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Pt(e,"open",this.onopen.bind(this)),Pt(e,"packet",this.onpacket.bind(this)),Pt(e,"error",this.onerror.bind(this)),Pt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...r){var n,o,s;if(ov.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:D.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let f=this.ids++,p=r.pop();this._registerAckCallback(f,p),i.id=f}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((o,...s)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...s)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:D.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case D.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case D.EVENT:case D.BINARY_EVENT:this.onevent(e);break;case D.ACK:case D.BINARY_ACK:this.onack(e);break;case D.DISCONNECT:this.ondisconnect();break;case D.CONNECT_ERROR:this.destroy();let n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:D.ACK,id:e,data:o}))}}onack(e){let r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:D.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,e.data)}}};function er(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}er.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};er.prototype.reset=function(){this.attempts=0};er.prototype.setMin=function(t){this.ms=t};er.prototype.setMax=function(t){this.max=t};er.prototype.setJitter=function(t){this.jitter=t};var Ur=class extends Z{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,pe(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new er({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let o=r.parser||Sf;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Mr(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=Pt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Pt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Pt(e,"ping",this.onping.bind(this)),Pt(e,"data",this.ondata.bind(this)),Pt(e,"error",this.onerror.bind(this)),Pt(e,"close",this.onclose.bind(this)),Pt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){ue(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Vr(this,e,r),this.nsps[e]=n),n}_destroy(e){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let n=0;n<r.length;n++)this.engine.write(r[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var Xn={};function zr(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=Lb(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=Xn[o]&&s in Xn[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Ur(n,e):(Xn[o]||(Xn[o]=new Ur(n,e)),c=Xn[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(zr,{Manager:Ur,Socket:Vr,io:zr,connect:zr});P();var sv=new Set(["__proto__","constructor","prototype"]),Yb=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(sv.has(t[e]))return!1;return!0},iv=(t,e)=>{!t||!Yb(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},av=(t,e,r,n=!1)=>{!t||!Yb(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},t)},Xb=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[n,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":iv(t,o);break;case"update":case"set":av(t,o,s,!0);break;default:break}return r};P();var Zb=(t,e,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Ae(a):ar(r[i],a):r[i]=a}),s&&(r.schema=s))},Jb=(t,e,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=Xb(r,o);if(s.has("state")&&e.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Ae(r.designSystem)};var cv={success:"green",error:"red",warning:"yellow"},Qb=(t,e,r)=>{if(t.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},tx={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:cv[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var lv=!1,fv=()=>lv?"http://localhost:8080":"https://api.symbols.app",uv=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}},pv=async t=>{try{let e=t||fv(),r=await k.fetch(`${e}/service-token`,{method:"GET"}),n;try{let o=await r.clone().json();if(o&&typeof o.token=="string")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||"").replace(/\s+/gu,"")||void 0}catch(e){console.error("[sync] Failed to fetch service-token",e)}},nx=(t,e,r,n)=>{t.on("snapshot",Zb(e,r,n)),t.on("ops",Jb(e,r,n)),t.on("clients",o=>{n.editor?.verbose&&Qb(o,e,r)}),t.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},dv=async(t,e,r,n)=>{let o=await pv(n);if(!o)return console.warn("[sync] no service token \u2014 collab disabled"),null;let s=r.key;if(!s)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let i=r.editor?.projectId||null,a=zr(n,{path:"/collab-socket",transports:["websocket"],auth:{token:o,projectId:i,projectKey:s,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),nx(a,t,e,r),a},hv=(t,e,r)=>{let n=zr({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),nx(n,t,e,r),n.on("reload",()=>{typeof k<"u"&&k.location&&k.location.reload()}),n},gv=async(t,e,r)=>{let{mode:n,baseUrl:o}=uv(r);return n?n==="collab"?dv(t,e,r,o):n==="runner"?hv(t,e,r):null:null},mv={onInit:gv};var ox=t=>typeof t>"u",ex=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),rx=t=>t?.editor?.runtime==="runner",sx=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},ix={name:"sync",beforeCreate(t,e){let r=e&&e.editor;(r&&!ox(r.liveSync)?r.liveSync:ex(e)||rx(e))&&(ex(e)&&!rx(e)&&!e?.key||sx(t,mv))}},ax={name:"notifications",beforeCreate(t,e){if(!e)return;let r=ox(e.notifications)?null:e.notifications,n=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&n)&&sx(t,tx)}};P();function cx(t){return S(t)?t:T(t)?t.find(e=>S(e)):""}function kf(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&cx(t.extends),n=t.parent&&t.parent.childExtends&&cx(t.parent.childExtends);return(e||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function mi(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:n}=t.context,o=kf(t);return n&&n.onInitInspect&&!n.onInitInspect(o,t,t.state)?mi(t.parent):o&&(e[o]||r[o])?t:mi(t.parent)}var yv=(t,e,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{t.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},wf={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:yv,onMousemove:(t,e,r)=>{let n=t.target.ref,o=mi(n),s=e.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=kf(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:p,height:u}=o.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 n=t.target.ref,o=mi(n);if(!o)return;let s=kf(o);if(!s)return;let i=n.context.editor;if(i&&i.onInspect)return i.onInspect(s,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return n.context.socket?.emit&&n.context.socket.emit("route",a),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(t,e)=>!(e.area&&e.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:t})=>{let{components:e}=t;if(_(e)){let{Content:r,...n}=e;for(let o in n)On[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(t,e,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,s;if(!o)s="display: none !important";else if(n){let{x:i,y:a,width:c,height:l}=n;s=`
73
73
  display: block !important;
74
74
  top: ${a-6}px;
75
75
  left: ${i-6}px;
76
76
  width: ${c+12}px;
77
77
  height: ${l+12}px;
78
- `}return t.node.style=s,t.Span.node.innerText=r.focusKey,!1}}},cx={name:"inspect",beforeCreate(e,t){Array.isArray(e.extends)?e.extends.push(wf):e.extends?e.extends=[e.extends,wf]:e.extends=[wf]}};var yv=async(e,t={})=>{let r=t.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=t.key=t.key||n||(w(e)?e:"smblsapp");if(t.define=t.define||$n,t.cssPropsRegistry=pe,t.window=Iy(t),t.sharedLibraries&&t.sharedLibraries.length){if(t.sharedLibraries.some(d=>typeof d=="string")){let{resolveSharedLibraries:d}=await Promise.resolve().then(()=>(R(),Ud));t.sharedLibraries=await d(t.sharedLibraries)}zy(t)}let[s,i]=By(o,t);t.designSystem=s,t.registry=i,t.cases||(t.cases={}),t.shorthand&&ei.prepareContext(t);let a=Vy(e,t);t.state=a,Ho(a),t.pages=Uy(e,t),t.components=$y(t),t.utils=Fy(t),Wt[t.packageManager]&&(t.dependencies=await Ly(t)),t.methods=Dy(t),t.routerOptions=yy(e,t),t.defaultExtends=[Ms],t.snippets=t.snippets||{},t.functions=t.functions||{},t.plugins=t.plugins||[],t.globalScope&&S(t.globalScope)&&(t.globalScope=uo(t.globalScope));let c=(u,d)=>{let m=d?u[d]:u;if(!S(m))return;let h=it(m);try{Object.assign(m,h)}catch(g){if(d)u[d]=h;else throw g}};c(e),c(t,"components"),c(t,"pages"),c(t,"functions"),c(t,"methods"),c(t,"snippets"),c(t,"app");let l=u=>u&&typeof u.select=="function";t.fetch?.__resolved&&!l(t.fetch.__resolved)&&delete t.fetch.__resolved,t.db?.__resolved&&!l(t.db.__resolved)&&delete t.db.__resolved;let f=u=>t.plugins.some(d=>d.name===u);if(t.polyglot&&!f("polyglot")){t.plugins.push(Wl);for(let u in Zs)u in t.functions||(t.functions[u]=Zs[u])}if(f("helmet")||t.plugins.push(ky),t.fetch&&!f("fetch")&&t.plugins.push(Aa),t.designSystem?.typography?.useCapsize!==!1&&!f("capsize")&&(t.plugins.push(Ky),t.cssPropsRegistry.useCapsize=qy),t.shorthand&&!f("shorthand")&&t.plugins.push(ei),t.analyze&&!f("analyze")){let u=t.analyze===!0?{}:t.analyze;t.analyze=sf(u),t.plugins.push(Vn)}return t.sync!==!1&&!f("sync")&&t.plugins.push(sx),t.inspect&&!f("inspect")&&t.plugins.push(cx),(t.notifications===!0||t.editor&&t.editor.verbose===!0)&&t.notifications!==!1&&!f("notifications")&&t.plugins.push(ix),t},vf=async(e,t)=>{S(t)||(t={}),ht(e)?(e={},t.parent=e):w(e)?(e={},t.key=e):S(e)||(e={});let r=t.window||(typeof window<"u"?window:null),n=r?.__BRENDER__,o=null;if(n){let c=t.document||(typeof document<"u"?document:null);c&&(o=Array.from(c.head.querySelectorAll("style")))}if(await yv(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&&S(t.app))for(let c in t.app)e[c]===void 0&&(e[c]=t.app[c]);e.extends=Ty(e,t),t.router!==!1&&(e.routes=t.pages),e.state=t.state,e.context=t,e.data=e.data||{},t.skipDesignSystemInit||await Ny({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(n)return bv(ze,e,i,t,r,o);let a=ze(e,i,t.key,{verbose:t.verbose,context:t,...t.domqlOptions});return typeof window<"u"&&!t.document&&(window.__smblsApp=a),a},bv=async(e,t,r,n,o,s)=>{let i=r.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of r.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f==="script"||f==="link"||f==="style"||f==="svg"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll("[data-br]").forEach(l=>l.removeAttribute("data-br"));let c=e(t,r,n.key,{verbose:n.verbose,context:n,...n.domqlOptions});return xv(o),c},xv=e=>{e&&(delete e.__BRENDER__,delete e.__BR_REGISTRY__)};var Cf=(e,t)=>G(e,S(t)?t:{}),_v=e=>{if(typeof document>"u")return;let t=e.themeRoot||e.document&&e.document.documentElement||document.documentElement;if(!t||typeof t.setAttribute!="function")return;let r=e.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(r=s)}}catch{}let n=e.themeStorageKey;if(r==="auto"&&n&&typeof localStorage<"u")try{let s=localStorage.getItem(n);s&&(r=s)}catch{}let o=r==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():r;t.setAttribute("data-theme",o),e.globalTheme=r,e.themeRoot=t},Sv=()=>{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}},lx=e=>{let t=Sv();t&&(e.editor||(e.editor={}),e.editor.runtime||(e.editor.runtime=t),t==="runner"&&typeof e.editor.livesync>"u"&&(e.editor.livesync=!0))},fx=(e,t=Et,r)=>{let n={...Et,...Cf(t,r)};return lx(n),_v(n),vf(e,n).then(s=>{if(Fl(s,n),s.destroy=()=>Hs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=In(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&s.onCreate(s,s.state,s.context,n),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},jD=(e,t=Et,r)=>{let n=fx(e,t,r),o={...Et,...Cf(t,r)},s=o.key;return Sy(n,s,{utils:Pn,...o}),n},BD=async(e,t=Et,r)=>{let n={...Et,...Cf(t,r)};lx(n);let o=t.key;await _y(o,n);let s=await vf(e,n);return Fl(s,n),s.destroy=()=>Hs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=In(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},VD=(e={},t=Et,r)=>fx({deps:{isUndefined:me},...e},G({domqlOptions:{onlyResolveExtends:!0}},t),r);Il(Sc);export{Bh as ANIMATION_PROPS,ER as ARIA_ROLES,om as ATTR_TRANSFORMS,Vh as BLOCK_PROPS,Ye as CDN_PROVIDERS,Ma as CONFIG,lt as CSS_NATIVE_COLOR_REGEX,pe as CSS_PROPS_REGISTRY,qr as CSS_UNITS,Fs as DEFAULT_CONFIG,xe as DEFAULT_CSS_PROPERTIES_LIST,Es as DELEGATED_EVENTS,Ey as DESIGN_SYSTEM_OPTIONS,Jf as DOMQL_EVENTS,Dt as DOMQ_PROPERTIES,$w as DOM_EVENTS,yu as ENV,_t as FACTORY,Gh as FLEX_PROPS,Uh as FONT_PROPS,qh as GRID_PROPS,Ic as HTML_ATTRIBUTES,on as HTML_TAGS,vr as LIFECYCLE_EVENTS,en as METHODS,co as METHODS_EXL,zh as MISC_PROPS,Ph as MIXINS,Ke as NODE_ENV,Fo as OPTIONS,Wt as PACKAGE_MANAGER_TO_CDN,ao as PARSED_DOMQ_PROPERTIES,Wh as POSITION_PROPS,Nt as PROPS_METHODS,Re as REGISTRY,Nl as ROUTER_OPTIONS,Zf as STATE_PROPERTIES,Cs as SVG_TAGS,Hh as THEME_PROPS,Is as TIMING_PROPS,ro as TYPES,Pa as UNIVERSAL_RESERVED_KEYS,kh as VALUE_TRANSFORMERS,YA as activateConfig,la as addCaching,ca as addContext,Ac as addDelegatedEvent,Hu as addExtend,Ee as addExtends,Mf as addItemAfterEveryElement,$s as addMethods,so as addProtoToArray,sa as addRef,sS as animation,uc as appendSVGSprite,dc as appendSvgIconsSprite,am as applyAttrTransforms,my as applyCSS,dp as applyDependentState,cc as applyDocument,ma as applyEvent,ga as applyEventUpdate,Os as applyExtends,mh as applyHeadings,em as applyInitialState,gr as applyMediaSequenceVars,To as applyProps,hc as applyReset,Ga as applySequenceGlobalVars,Kt as applySequenceVars,oc as applySpacingSequence,He as applyStateMethods,ac as applyTimingSequence,Xh as applyTrueProps,tc as applyTypographySequence,Pf as arrayContainsOtherArray,Bf as arraysEqual,pr as arrayzeValue,$t as batch,nS as breakpoints,cs as buildImgSrcset,ls as buildSourcesAndImg,_p as cache,kr as cacheNode,Yp as call,ed as captureSnapshot,vh as changeGlobalTheme,D_ as changeLightness,Jt as checkAttributeByTagName,im as checkEventFunctions,lp as checkForStateTypes,nc as checkIfBoxSize,ha as checkIfInherits,zf as checkIfStringIsInArray,uS as class,nu as clone,xo as cloneAndMergeArrayExtend,Cu as cloneFunction,K_ as color,bt as colorStringToRgbaArray,On as components,Vu as concatAddExtends,qa as convertSvgToSymbol,Fd as copyJavaScriptToClipboard,$d as copyStringToClipboard,fx as create,jD as createAsync,oa as createBasedOnType,Sx as createComputed,rh as createConfig,w0 as createDefine,ce as createEffect,ap as createElement,zi as createElementExtends,So as createExtends,sn as createExtendsFromKeys,qi as createExtendsStack,vs as createHTMLNode,Au as createIfConditionFlag,fp as createInheritedState,go as createKey,fu as createNestedObject,pp as createNestedObjectByKeyPath,Fi as createObjectWithoutPrototype,ia as createParent,aa as createPath,Oo as createProps,ta as createPropsStack,ip as createRoot,gp as createScope,Ti as createScopeStore,nt as createSignal,VD as createSkeleton,mo as createSnapshotId,Cw as createState,je as createStore,BD as createSync,Yt as css,Qd as cssMediaVars,Jd as cssVars,Yf as customDecodeURIComponent,Xf as customEncodeURIComponent,Lf as cutArrayAfterValue,Df as cutArrayBeforeValue,bo as debounce,wu as debounceOnContext,Kf as decodeNewlines,J as deepClone,cu as deepContains,os as deepDefaults,it as deepDestringifyFunctions,Ui as deepExtend,G as deepMerge,at as deepMergeExtends,lo as deepStringifyFunctions,$n as defaultDefine,Kp as defineSetter,uo as destringifyGlobalScope,Hs as destroy,fd as detectHeightOnInit,hu as detectInfiniteLoop,wr as detectTag,oS as devices,Cr as dispose,qf as encodeNewlines,ur as error,gu as excludeKeysFromObject,Y as exec,OR as executeAttr,eR as exetuteClassPerComponent,Uu as extendCachedRegistry,wo as extendStackRegistry,vo as extractArrayExtend,RR as extractConditionalAttrs,$a as fetchLibraryData,pd as fibonacciNumberByIndex,Vf as filterArrays,Uf as filterArraysFast,TR as filterAttributesByTagName,Ki as finalizeExtends,Ia as findClosestNumber,Ed as findClosestNumberInFactory,ah as findHeadingLetter,Ha as findHeadings,da as findInheritedState,Hf as findKeyPosition,an as flattenExtend,V_ as font,W_ as fontFace,U_ as fontFamily,z_ as fontFamilyTypes,cd as formatDate,ji as generateHash,ho as generateKey,vd as generateMetaTags,Fe as generateSequence,xS as generateSequencePosition,gs as generateSprite,za as generateSubSequence,Wp as get,A as getActiveConfig,Th as getActiveDocument,Ys as getActiveLang,Ze as getCDNUrl,ew as getCacheSize,Ku as getCapitalCaseKeys,bn as getCdnProviderFromConfig,pa as getChildStateInKey,zo as getChildren,Q as getColor,qd as getColorShade,Yo as getContext,$u as getCookie,ts as getDB,wn as getDefaultOrFirstKey,jd as getEmotionStylesheet,Gu as getExtendsInElement,_o as getExtendsStack,Vi as getExtendsStackRegistry,qt as getFnPrefixAndValue,M_ as getFontFace,kn as getFontFaceEach,Zd as getFontFaceEachString,Da as getFontFaceString,ec as getFontFamily,Xd as getFontFormat,rc as getFontSizeByKey,If as getFrequencyInArray,ko as getHashedExtend,id as getImportMapScript,du as getInObjectByPath,Ml as getLanguages,zl as getLocalStateLang,Du as getLocalStorage,be as getMediaColor,Qe as getMediaTheme,Su as getNev,Hr as getObserver,Cd as getPageMetadata,ua as getParentStateInKey,Wo as getPath,rs as getQuery,Gp as getRef,hr as getRgbTone,qo as getRoot,Xo as getRootContext,Ko as getRootData,Go as getRootState,fa as getRootStateInKey,Wa as getSequenceValue,ih as getSequenceValueBySymbols,wt as getSequenceValuePropertyPair,ic as getShadow,Cx as getSignals,ft as getSpacingBasedOnRatio,he as getSpacingByKey,Xu as getSpreadChildren,Ua as getSubratio,Va as getSubratioDifference,We as getSystemGlobalTheme,Ya as getTheme,Ue as getTimingByKey,et as getTimingFunction,Tf as global,X_ as gradient,fS as grid,tn as hasFunction,rn as hasHandlerPlugin,su as hasOwnProperty,P_ as hexToRgb,zd as hexToRgbArray,$_ as hexToRgba,Gd as hslToRgb,J_ as icons,Hi as inheritChildExtends,Wi as inheritChildPropsExtends,Ro as inheritParentProps,Gi as inheritRecursiveChildExtends,At as init,Gy as initPolyglot,np as initProps,ue as injectGlobal,Ce as is,T as isArray,Oi as isBoolean,oe as isCSSVar,Yu as isContextComponent,mu as isCyclic,ke as isDOMNode,Pi as isDate,ve as isDefined,Bt as isDevelopment,Ii as isEmpty,iu as isEmptyObject,$i as isEqualDeep,v as isFunction,us as isGoogleFontsUrl,to as isHtmlElement,_u as isLocal,Jp as isMethod,Pu as isMobile,ht as isNode,Rf as isNot,cr as isNotProduction,Ri as isNull,ot as isNumber,S as isObject,L as isObjectLike,hd as isPhoto,jt as isProduction,xt as isResolvedColor,Gr as isScalingUnit,xu as isStaging,up as isState,le as isStore,w as isString,vu as isStringFunction,As as isSvgTag,Di as isTest,bu as isTesting,Tw as isTracking,me as isUndefined,rd as isUniversallyReservedKey,ju as isValidHtmlTag,ks as isValidTag,p0 as isWasmLoaded,Yr as joinArrays,Wu as jointStacks,ws as keyframes,Oa as keys,xd as loadCssFile,_d as loadJavascript,gd as loadJavascriptFile,bd as loadJavascriptFileEmbedSync,yd as loadJavascriptFileSync,Sd as loadRemoteCSS,xn as loadRemoteScript,Bl as loadTranslations,u0 as loadWasm,Xp as log,Ou as logGroupIf,Tu as logIf,Vp as lookdown,Up as lookdownAll,Bp as lookup,sr as lowercaseFirstLetter,au as makeObjectWithoutPrototype,tu as map,Co as mapStringsWithContextComponents,ct as matchesComponentNaming,H_ as media,ku as memoize,ee as merge,ss as mergeSharedLibraries,R_ as mixTwoColors,F_ as mixTwoRgb,Kd as mixTwoRgba,Jo as nextElement,_n as normalizeLibraryKey,St as numToLetterMap,fo as objectToString,Eo as objectizeStringProperty,fs as opacify,po as overwrite,Ae as overwriteDeep,ar as overwriteShallow,hp as overwriteState,Ra as parse,Ht as parseColorToken,Vo as parseDeep,Ji as pickupElementFromProps,Zi as pickupPropsFromElement,Zs as polyglotFunctions,Wl as polyglotPlugin,se as popConfig,Qo as previousElement,rp as propExists,Qi as propertizeElement,tp as propertizeUpdate,fe as pushConfig,Ts as registerEvent,hy as reinit,Ps as remove,Dd as removeChars,Fu as removeCookie,Ec as removeDelegatedEvent,Io as removeDuplicateProps,Zr as removeDuplicatesInArray,$f as removeFromArray,lu as removeFromObject,uu as removeNestedKeyByPath,oo as removeValueFromArray,Nf as removeValueFromArrayAll,jf as reorderArrayByValues,or as replaceLiteralsWithObjectFields,Gf as replaceOctalEscapeSequences,Te as resolveAsset,gc as resolveColorsInGradient,nm as resolveFileSource,Je as resolveFileUrl,nn as resolveHandler,Zt as resolvePropValue,Pd as resolveSharedLibraries,N_ as returnSubThemeOrDefault,na as returnValueAsText,Wd as rgbArrayToHex,Hd as rgbToHSL,I_ as rgbToHex,Be as runPluginHook,hh as runThroughMedia,ds as scratchDefaultConfig,_s as scratchSystem,yr as scratchUtils,Of as self,Q_ as semanticIcons,Gt as sequence,An as set,th as setActiveConfig,XS as setActiveDocument,Ho as setActiveRootState,PI as setClass,sR as setClassname,br as setColor,Iu as setCookie,Il as setCssEngineHook,Fa as setCustomFont,mr as setCustomFontMedia,WS as setEach,Qa as setFont,bs as setFontFamily,ps as setFontImport,xr as setGradient,Bi as setHashedExtend,Yd as setInCustomFontMedia,pu as setInObjectByPath,Vl as setLang,Lu as setLocalStorage,Ja as setMediaTheme,Ta as setNodeStyles,_x as setObserver,Hp as setProps,Po as setPropsPrototype,xs as setSVG,Ba as setScalingVar,_r as setShadow,oh as setSubScalingVar,pc as setSvgIcon,Za as setTheme,zS as setValue,_S as setVariables,Sc as setWasmEngine,Z_ as shadow,hS as sizes,q_ as spacing,sc as splitSpacedValue,dr as splitTopLevelCommas,wh as splitTransition,Uo as spotByPath,Sn as srcsetFor,io as stringIncludesAny,ou as stringToObject,iS as svg,aS as svgData,Ff as swapItemsInArray,$o as syncProps,cS as templates,Y_ as theme,tS as timing,Na as toCamel,is as toCamelCase,as as toDashCase,Nd as toDescriptionCase,Ld as toTitleCase,od as toggleFullscreen,_h as transformBackgroundImage,kt as transformBorder,bc as transformBorderRadius,mc as transformBoxShadow,_w as transformClassname,yc as transformDuration,xh as transformShadow,ie as transformSize,N as transformSizeRatio,bh as transformTextStroke,VS as transformTransition,Yh as transformersByPrefix,Sh as transfromGap,jl as translate,Vt as triggerEventOn,xp as triggerEventOnUpdate,Wf as trimStringFromSymbols,La as typography,j_ as unit,no as unstackArrayOfObjects,Rs as update,op as updateProps,RI as updateVars,Ul as upsertTranslation,Le as useCssInProps,Ew as useHostState,bw as usePropsAsCSS,xw as useSelectorsAsCSS,es as variables,dS as vars,yn as verbose,Zo as warn,k as window};
78
+ `}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},lx={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(wf):t.extends?t.extends=[t.extends,wf]:t.extends=[wf]}};var bv=async(t,e={})=>{let r=e.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=e.key=e.key||n||(S(t)?t:"smblsapp");if(e.define=e.define||$n,e.cssPropsRegistry=pt,e.window=$y(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(d=>typeof d=="string")){let{resolveSharedLibraries:d}=await Promise.resolve().then(()=>(P(),Ud));e.sharedLibraries=await d(e.sharedLibraries)}Wy(e)}let[s,i]=Vy(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&ti.prepareContext(e);let a=Uy(t,e);e.state=a,Ho(a),e.pages=zy(t,e),e.components=Fy(e),e.utils=Dy(e),We[e.packageManager]&&(e.dependencies=await My(e)),e.methods=Ly(e),e.routerOptions=by(t,e),e.defaultExtends=[Ns],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&_(e.globalScope)&&(e.globalScope=uo(e.globalScope));let c=(u,d)=>{let h=d?u[d]:u;if(!_(h))return;let g=ie(h);try{Object.assign(h,g)}catch(m){if(d)u[d]=g;else throw m}};c(t),c(e,"components"),c(e,"pages"),c(e,"functions"),c(e,"methods"),c(e,"snippets"),c(e,"app");let l=u=>u&&typeof u.select=="function";e.fetch?.__resolved&&!l(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!l(e.db.__resolved)&&delete e.db.__resolved;let f=u=>e.plugins.some(d=>d.name===u);if(e.polyglot&&!f("polyglot")){e.plugins.push(Wl);for(let u in Zs)u in e.functions||(e.functions[u]=Zs[u])}if(f("helmet")||e.plugins.push(vy),e.fetch&&!f("fetch")&&e.plugins.push(Aa),e.designSystem?.typography?.useCapsize!==!1&&!f("capsize")&&(e.plugins.push(Yy),e.cssPropsRegistry.useCapsize=Ky),e.shorthand&&!f("shorthand")&&e.plugins.push(ti),e.analyze&&!f("analyze")){let u=e.analyze===!0?{}:e.analyze;e.analyze=sf(u),e.plugins.push(Vn)}return e.sync!==!1&&!f("sync")&&e.plugins.push(ix),e.inspect&&!f("inspect")&&e.plugins.push(lx),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!f("notifications")&&e.plugins.push(ax),e},vf=async(t,e)=>{_(e)||(e={}),he(t)?(t={},e.parent=t):S(t)?(t={},e.key=t):_(t)||(t={});let r=e.window||(typeof window<"u"?window:null),n=r?.__BRENDER__,o=null;if(n){let c=e.document||(typeof document<"u"?document:null);c&&(o=Array.from(c.head.querySelectorAll("style")))}if(await bv(t,e),e.useReset!==!1){let c=e.document||(typeof document<"u"?document:null);if(c){let l=c.head.querySelector("style[data-smbls]");l||(l=c.createElement("style"),l.setAttribute("data-smbls",""),c.head.appendChild(l));let f=l.sheet;if(f){try{f.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{f.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&_(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=Oy(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await Ny({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate=="function")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin "${c.name||"?"}" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return t;let i=e.parent||s.body;if(n)return xv(zt,t,i,e,r,o);let a=zt(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},xv=async(t,e,r,n,o,s)=>{let i=r.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of r.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f==="script"||f==="link"||f==="style"||f==="svg"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll("[data-br]").forEach(l=>l.removeAttribute("data-br"));let c=t(e,r,n.key,{verbose:n.verbose,context:n,...n.domqlOptions});return _v(o),c},_v=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var Cf=(t,e)=>G(t,_(e)?e:{}),Sv=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let r=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(r=s)}}catch{}let n=t.themeStorageKey;if(r==="auto"&&n&&typeof localStorage<"u")try{let s=localStorage.getItem(n);s&&(r=s)}catch{}let o=r==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():r;e.setAttribute("data-theme",o),t.globalTheme=r,t.themeRoot=e},wv=()=>{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}},fx=t=>{let e=wv();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},ux=(t,e=Ee,r)=>{let n={...Ee,...Cf(e,r)};return fx(n),Sv(n),vf(t,n).then(s=>{if(Fl(s,n),s.destroy=()=>Hs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=In(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&s.onCreate(s,s.state,s.context,n),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},WD=(t,e=Ee,r)=>{let n=ux(t,e,r),o={...Ee,...Cf(e,r)},s=o.key;return wy(n,s,{utils:Pn,...o}),n},HD=async(t,e=Ee,r)=>{let n={...Ee,...Cf(e,r)};fx(n);let o=e.key;await Sy(o,n);let s=await vf(t,n);return Fl(s,n),s.destroy=()=>Hs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=In(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},GD=(t={},e=Ee,r)=>ux({deps:{isUndefined:gt},...t},G({domqlOptions:{onlyResolveExtends:!0}},e),r);Il(Sc);export{Bh as ANIMATION_PROPS,TR as ARIA_ROLES,og as ATTR_TRANSFORMS,Vh as BLOCK_PROPS,Xt as CDN_PROVIDERS,Na as CONFIG,le as CSS_NATIVE_COLOR_REGEX,pt as CSS_PROPS_REGISTRY,qr as CSS_UNITS,Fs as DEFAULT_CONFIG,xt as DEFAULT_CSS_PROPERTIES_LIST,Es as DELEGATED_EVENTS,Ty as DESIGN_SYSTEM_OPTIONS,Jf as DOMQL_EVENTS,De as DOMQ_PROPERTIES,Fw as DOM_EVENTS,yu as ENV,_e as FACTORY,Gh as FLEX_PROPS,Uh as FONT_PROPS,qh as GRID_PROPS,Ic as HTML_ATTRIBUTES,on as HTML_TAGS,vr as LIFECYCLE_EVENTS,tn as METHODS,co as METHODS_EXL,zh as MISC_PROPS,Ph as MIXINS,Kt as NODE_ENV,Fo as OPTIONS,We as PACKAGE_MANAGER_TO_CDN,ao as PARSED_DOMQ_PROPERTIES,Wh as POSITION_PROPS,Me as PROPS_METHODS,Rt as REGISTRY,Ml as ROUTER_OPTIONS,Zf as STATE_PROPERTIES,Cs as SVG_TAGS,Hh as THEME_PROPS,Is as TIMING_PROPS,ro as TYPES,Pa as UNIVERSAL_RESERVED_KEYS,kh as VALUE_TRANSFORMERS,ZE as activateConfig,la as addCaching,ca as addContext,Ac as addDelegatedEvent,Hu as addExtend,Et as addExtends,Nf as addItemAfterEveryElement,$s as addMethods,so as addProtoToArray,sa as addRef,iS as animation,uc as appendSVGSprite,dc as appendSvgIconsSprite,ag as applyAttrTransforms,my as applyCSS,dp as applyDependentState,cc as applyDocument,ga as applyEvent,ma as applyEventUpdate,Os as applyExtends,gh as applyHeadings,tg as applyInitialState,mr as applyMediaSequenceVars,To as applyProps,hc as applyReset,Ga as applySequenceGlobalVars,Ke as applySequenceVars,oc as applySpacingSequence,Ht as applyStateMethods,ac as applyTimingSequence,Yh as applyTrueProps,ec as applyTypographySequence,Pf as arrayContainsOtherArray,Bf as arraysEqual,pr as arrayzeValue,$e as batch,oS as breakpoints,cs as buildImgSrcset,ls as buildSourcesAndImg,_p as cache,kr as cacheNode,Xp as call,td as captureSnapshot,vh as changeGlobalTheme,L_ as changeLightness,Je as checkAttributeByTagName,ig as checkEventFunctions,lp as checkForStateTypes,nc as checkIfBoxSize,ha as checkIfInherits,zf as checkIfStringIsInArray,pS as class,nu as clone,xo as cloneAndMergeArrayExtend,Cu as cloneFunction,Y_ as color,be as colorStringToRgbaArray,On as components,Vu as concatAddExtends,qa as convertSvgToSymbol,Fd as copyJavaScriptToClipboard,$d as copyStringToClipboard,ux as create,WD as createAsync,oa as createBasedOnType,wx as createComputed,rh as createConfig,k0 as createDefine,ct as createEffect,ap as createElement,zi as createElementExtends,So as createExtends,sn as createExtendsFromKeys,qi as createExtendsStack,vs as createHTMLNode,Au as createIfConditionFlag,fp as createInheritedState,mo as createKey,fu as createNestedObject,pp as createNestedObjectByKeyPath,Fi as createObjectWithoutPrototype,ia as createParent,aa as createPath,Oo as createProps,ea as createPropsStack,ip as createRoot,mp as createScope,Ti as createScopeStore,ne as createSignal,GD as createSkeleton,go as createSnapshotId,Aw as createState,jt as createStore,HD as createSync,Xe as css,Qd as cssMediaVars,Jd as cssVars,Xf as customDecodeURIComponent,Yf as customEncodeURIComponent,Lf as cutArrayAfterValue,Df as cutArrayBeforeValue,bo as debounce,wu as debounceOnContext,Kf as decodeNewlines,Q as deepClone,cu as deepContains,os as deepDefaults,ie as deepDestringifyFunctions,Ui as deepExtend,G as deepMerge,ae as deepMergeExtends,lo as deepStringifyFunctions,$n as defaultDefine,Kp as defineSetter,uo as destringifyGlobalScope,Hs as destroy,fd as detectHeightOnInit,hu as detectInfiniteLoop,wr as detectTag,sS as devices,Cr as dispose,qf as encodeNewlines,ur as error,mu as excludeKeysFromObject,X as exec,RR as executeAttr,eR as exetuteClassPerComponent,Uu as extendCachedRegistry,wo as extendStackRegistry,vo as extractArrayExtend,PR as extractConditionalAttrs,$a as fetchLibraryData,pd as fibonacciNumberByIndex,Vf as filterArrays,Uf as filterArraysFast,OR as filterAttributesByTagName,Ki as finalizeExtends,Ia as findClosestNumber,Ed as findClosestNumberInFactory,ah as findHeadingLetter,Ha as findHeadings,da as findInheritedState,Hf as findKeyPosition,an as flattenExtend,U_ as font,H_ as fontFace,z_ as fontFamily,W_ as fontFamilyTypes,cd as formatDate,ji as generateHash,ho as generateKey,vd as generateMetaTags,Ft as generateSequence,_S as generateSequencePosition,ms as generateSprite,za as generateSubSequence,Wp as get,E as getActiveConfig,Th as getActiveDocument,Xs as getActiveLang,Zt as getCDNUrl,ew as getCacheSize,Ku as getCapitalCaseKeys,bn as getCdnProviderFromConfig,pa as getChildStateInKey,zo as getChildren,tt as getColor,qd as getColorShade,Xo as getContext,$u as getCookie,es as getDB,wn as getDefaultOrFirstKey,jd as getEmotionStylesheet,Gu as getExtendsInElement,_o as getExtendsStack,Vi as getExtendsStackRegistry,qe as getFnPrefixAndValue,j_ as getFontFace,kn as getFontFaceEach,Zd as getFontFaceEachString,Da as getFontFaceString,tc as getFontFamily,Yd as getFontFormat,rc as getFontSizeByKey,If as getFrequencyInArray,ko as getHashedExtend,id as getImportMapScript,du as getInObjectByPath,Nl as getLanguages,zl as getLocalStateLang,Du as getLocalStorage,bt as getMediaColor,Qt as getMediaTheme,Su as getNev,Hr as getObserver,Cd as getPageMetadata,ua as getParentStateInKey,Wo as getPath,rs as getQuery,Gp as getRef,hr as getRgbTone,qo as getRoot,Yo as getRootContext,Ko as getRootData,Go as getRootState,fa as getRootStateInKey,Wa as getSequenceValue,ih as getSequenceValueBySymbols,we as getSequenceValuePropertyPair,ic as getShadow,Ax as getSignals,fe as getSpacingBasedOnRatio,ht as getSpacingByKey,Yu as getSpreadChildren,Ua as getSubratio,Va as getSubratioDifference,Wt as getSystemGlobalTheme,Xa as getTheme,Ut as getTimingByKey,te as getTimingFunction,Tf as global,X_ as gradient,uS as grid,en as hasFunction,rn as hasHandlerPlugin,su as hasOwnProperty,I_ as hexToRgb,zd as hexToRgbArray,F_ as hexToRgba,Gd as hslToRgb,Q_ as icons,Hi as inheritChildExtends,Wi as inheritChildPropsExtends,Ro as inheritParentProps,Gi as inheritRecursiveChildExtends,Ae as init,qy as initPolyglot,np as initProps,ut as injectGlobal,Ct as is,T as isArray,Oi as isBoolean,ot as isCSSVar,Xu as isContextComponent,gu as isCyclic,kt as isDOMNode,Pi as isDate,vt as isDefined,Be as isDevelopment,Ii as isEmpty,iu as isEmptyObject,$i as isEqualDeep,C as isFunction,us as isGoogleFontsUrl,eo as isHtmlElement,_u as isLocal,Jp as isMethod,Pu as isMobile,he as isNode,Rf as isNot,cr as isNotProduction,Ri as isNull,oe as isNumber,_ as isObject,N as isObjectLike,hd as isPhoto,je as isProduction,xe as isResolvedColor,Gr as isScalingUnit,xu as isStaging,up as isState,lt as isStore,S as isString,vu as isStringFunction,As as isSvgTag,Di as isTest,bu as isTesting,Ow as isTracking,gt as isUndefined,rd as isUniversallyReservedKey,ju as isValidHtmlTag,ks as isValidTag,d0 as isWasmLoaded,Xr as joinArrays,Wu as jointStacks,ws as keyframes,Oa as keys,xd as loadCssFile,_d as loadJavascript,md as loadJavascriptFile,bd as loadJavascriptFileEmbedSync,yd as loadJavascriptFileSync,Sd as loadRemoteCSS,xn as loadRemoteScript,Bl as loadTranslations,p0 as loadWasm,Yp as log,Ou as logGroupIf,Tu as logIf,Vp as lookdown,Up as lookdownAll,Bp as lookup,sr as lowercaseFirstLetter,au as makeObjectWithoutPrototype,eu as map,Co as mapStringsWithContextComponents,ce as matchesComponentNaming,G_ as media,ku as memoize,et as merge,ss as mergeSharedLibraries,P_ as mixTwoColors,D_ as mixTwoRgb,Kd as mixTwoRgba,Jo as nextElement,_n as normalizeLibraryKey,Se as numToLetterMap,fo as objectToString,Eo as objectizeStringProperty,fs as opacify,po as overwrite,At as overwriteDeep,ar as overwriteShallow,hp as overwriteState,Ra as parse,He as parseColorToken,Vo as parseDeep,Ji as pickupElementFromProps,Zi as pickupPropsFromElement,Zs as polyglotFunctions,Wl as polyglotPlugin,st as popConfig,Qo as previousElement,rp as propExists,Qi as propertizeElement,ep as propertizeUpdate,ft as pushConfig,Ts as registerEvent,gy as reinit,Ps as remove,Dd as removeChars,Fu as removeCookie,Ec as removeDelegatedEvent,Io as removeDuplicateProps,Zr as removeDuplicatesInArray,$f as removeFromArray,lu as removeFromObject,uu as removeNestedKeyByPath,oo as removeValueFromArray,Mf as removeValueFromArrayAll,jf as reorderArrayByValues,or as replaceLiteralsWithObjectFields,Gf as replaceOctalEscapeSequences,Tt as resolveAsset,mc as resolveColorsInGradient,ng as resolveFileSource,Jt as resolveFileUrl,nn as resolveHandler,Ze as resolvePropValue,Pd as resolveSharedLibraries,N_ as returnSubThemeOrDefault,na as returnValueAsText,Wd as rgbArrayToHex,Hd as rgbToHSL,$_ as rgbToHex,Bt as runPluginHook,hh as runThroughMedia,ds as scratchDefaultConfig,_s as scratchSystem,yr as scratchUtils,Of as self,tS as semanticIcons,Ge as sequence,An as set,eh as setActiveConfig,XS as setActiveDocument,Ho as setActiveRootState,LI as setClass,iR as setClassname,br as setColor,Iu as setCookie,Il as setCssEngineHook,Fa as setCustomFont,gr as setCustomFontMedia,HS as setEach,Qa as setFont,bs as setFontFamily,ps as setFontImport,xr as setGradient,Bi as setHashedExtend,Xd as setInCustomFontMedia,pu as setInObjectByPath,Vl as setLang,Lu as setLocalStorage,Ja as setMediaTheme,Ta as setNodeStyles,Sx as setObserver,Hp as setProps,Po as setPropsPrototype,xs as setSVG,Ba as setScalingVar,_r as setShadow,oh as setSubScalingVar,pc as setSvgIcon,Za as setTheme,WS as setValue,SS as setVariables,Sc as setWasmEngine,J_ as shadow,gS as sizes,K_ as spacing,sc as splitSpacedValue,dr as splitTopLevelCommas,wh as splitTransition,Uo as spotByPath,Sn as srcsetFor,io as stringIncludesAny,ou as stringToObject,aS as svg,cS as svgData,Ff as swapItemsInArray,$o as syncProps,lS as templates,Z_ as theme,rS as timing,Ma as toCamel,is as toCamelCase,as as toDashCase,Md as toDescriptionCase,Ld as toTitleCase,od as toggleFullscreen,_h as transformBackgroundImage,ke as transformBorder,bc as transformBorderRadius,gc as transformBoxShadow,Sw as transformClassname,yc as transformDuration,xh as transformShadow,it as transformSize,j as transformSizeRatio,bh as transformTextStroke,US as transformTransition,Xh as transformersByPrefix,Sh as transfromGap,jl as translate,Ve as triggerEventOn,xp as triggerEventOnUpdate,Wf as trimStringFromSymbols,La as typography,B_ as unit,no as unstackArrayOfObjects,Rs as update,op as updateProps,DI as updateVars,Ul as upsertTranslation,Lt as useCssInProps,Tw as useHostState,xw as usePropsAsCSS,_w as useSelectorsAsCSS,ts as variables,hS as vars,yn as verbose,Zo as warn,k as window};