smbls 3.14.20 → 3.14.21
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/CHANGELOG.md +6 -0
- package/dist/smbls.cjs +55 -55
- package/dist/smbls.embed.iife.js +16 -0
- package/dist/smbls.esm.js +31 -31
- package/dist/smbls.iife-string.js +1 -1
- package/dist/smbls.iife.js +55 -55
- package/embed.js +91 -0
- package/package.json +10 -3
package/dist/smbls.esm.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
var
|
|
2
|
-
`),o=-1,n=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<r.length;f++)if(a.test(r[f])&&!l){if(l=!0,o=f+1,s=r[f].indexOf(e)+1,r[f].includes("{}")){n=o,i=r[f].indexOf("{}")+3;break}let
|
|
3
|
-
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),
|
|
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(
|
|
5
|
-
`;for(let l of i)
|
|
1
|
+
var qb=Object.create;var pi=Object.defineProperty;var Gb=Object.getOwnPropertyDescriptor;var Kb=Object.getOwnPropertyNames;var Yb=Object.getPrototypeOf,Xb=Object.prototype.hasOwnProperty;var I=(t,e)=>()=>(t&&(e=t(t=0)),e);var di=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$=(t,e)=>{for(var r in e)pi(t,r,{get:e[r],enumerable:!0})},Zb=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Kb(e))!Xb.call(t,n)&&n!==r&&pi(t,n,{get:()=>e[n],enumerable:!(o=Gb(e,n))||o.enumerable});return t};var Jb=(t,e,r)=>(r=t!=null?qb(Yb(t)):{},Zb(e||!t||!t.__esModule?pi(r,"default",{value:t,enumerable:!0}):r,t));var gf,mf,k,q,Vr=I(()=>{gf=globalThis,mf=globalThis,k=globalThis,q=k.document});var pe,Ko,xt,zr=I(()=>{Vr();pe=t=>(typeof Node=="object"?t instanceof k.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,Ko=t=>(typeof HTMLElement=="object"?t instanceof k.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,xt=t=>typeof k<"u"&&(k.Node&&t instanceof k.Node||k.Window&&t instanceof k.Window||t===k||t===document)});var S,w,oe,C,xi,Si,T,_i,j,St,ct,Yo,_t,yf,it=I(()=>{zr();S=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,w=t=>typeof t=="string",oe=t=>typeof t=="number",C=t=>typeof t=="function",xi=t=>t===!0||t===!1,Si=t=>t===null,T=t=>Array.isArray(t),_i=t=>t instanceof Date,j=t=>t===null?!1:typeof t=="object",St=t=>t!==void 0,ct=t=>t===void 0,Yo={boolean:xi,array:T,object:S,string:w,date:_i,number:oe,null:Si,function:C,objectLike:j,node:pe,htmlElement:Ko,defined:St},_t=t=>(...e)=>e.some(r=>Yo[r](t)),yf=t=>(...e)=>!e.some(r=>Yo[r](t))});var bf,xf,Sf,_f,Ur,Xo,wf,kf,Zo,vf,Cf,Af,Ef,Tf,Of,Rf,Wr,Jo,Qe=I(()=>{ne();it();bf=(t,e)=>e.every(r=>t.includes(r)),xf=(t,e)=>{let r=0;for(let o=0;o<t.length;o++)t[o]===e&&r++;return r},Sf=(t,e)=>{if(w(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},_f=(t,e,r)=>{e<0||r<0||e>=t.length||r>=t.length||([t[e],t[r]]=[t[r],t[e]])},Ur=(...t)=>[].concat(...t),Xo=(t,e=[])=>t.reduce((r,o)=>W(r,Y(o,{exclude:e}),e),{}),wf=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},kf=(t,e)=>{if(!T(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},Zo=(t,e)=>{let r=t.indexOf(e);if(r>-1){let o=[...t];return o.splice(r,1),o}return t},vf=(t,e)=>t.filter(r=>r!==e),Cf=(t,e)=>{let r=[];for(let o=0;o<t.length;o++)r.push(t[o]),o<t.length-1&&r.push(e);return r},Af=(t,e,r)=>{let o=[...t],n=o.indexOf(e),s=o.indexOf(r);if(n!==-1&&s!==-1){let i=o.splice(n,1)[0],a=s<n?s:s+1;o.splice(a,0,i)}return o},Ef=(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},Tf=(t,e)=>t.filter(r=>!e.includes(r)),Of=(t,e)=>{let r=new Set(e);return t.filter(o=>!r.has(o))},Rf=(t,e)=>{if(!t)return 0;let r=0;for(let o=0;o<e.length;o++)t.includes(e[o])&&r++;return r},Wr=t=>T(t)?[...new Set(t)]:t,Jo=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function tr(t,e,r={}){let{bracketsLength:o=2}=r,n=o===3?"{{{":"{{";if(!t.includes(n))return t;let s=nx[o],i=e||this.state||{},a=this;return t.replace(s,(c,l,f,u)=>{let p=f.trim();if(u){let d=a?.context,h=d?.functions?.[u]||d?.utils?.[u]||d?.methods?.[u]||d?.snippets?.[u]||a?.[u];if(h&&typeof h=="function")try{return String(h.call(a,p)??"")}catch{return""}return""}if(l){let d=(l.match(/\.\.\//g)||[]).length,h=i;for(let m=0;m<d;m++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let g=Hr(h,p);return String(g??"")}else{let d=Hr(i,p);if(d!=null)return String(d);let h=a?.context?.polyglot;if(h?.translations){let g=i?.root?.lang||i?.lang||a?.context?.state?.lang||h.defaultLang||"en",m=h.translations[g];if(m){let b=Hr(m,p);if(b!=null&&typeof b!="object")return String(b);for(let x in m){let _=m[x];if(_&&typeof _=="object"&&!Array.isArray(_)){let v=Hr(_,p);if(v!=null&&typeof v!="object")return String(v)}}}let y=Hr(h.translations,p);if(y!=null&&typeof y!="object")return String(y)}return""}})}var Qo,Pf,nx,Hr,er,If,sx,$f,Ff,Df,ix,jf,Lf,qr=I(()=>{Qo=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},Pf=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},nx={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Hr=(t,e)=>e.split(".").reduce((r,o)=>r?.[o],t);er=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,If=(t,e)=>{let r=t.split(`
|
|
2
|
+
`),o=-1,n=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<r.length;f++)if(a.test(r[f])&&!l){if(l=!0,o=f+1,s=r[f].indexOf(e)+1,r[f].includes("{}")){n=o,i=r[f].indexOf("{}")+3;break}let u=r[f].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{n=f+1,i=r[f].length+1;break}}else if(l&&(c+=(r[f].match(/{/g)||[]).length,c+=(r[f].match(/\[/g)||[]).length,c-=(r[f].match(/}/g)||[]).length,c-=(r[f].match(/]/g)||[]).length,c===0)){n=f+1,i=r[f].lastIndexOf("}")!==-1?r[f].lastIndexOf("}")+2:r[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:o,endLineNumber:n}},sx=/\\([0-7]{1,3})/g,$f=t=>t.replace(sx,(e,r)=>String.fromCharCode(parseInt(r,8))),Ff=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Df=t=>t.replace(/\/\/\/\/\/n/g,`
|
|
3
|
+
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),ix=/[^a-zA-Z0-9\s]/g,jf=t=>t.replace(ix,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Lf=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var Ie,tn,Mf,$e,Fe,Gr,en,Nf,rr=I(()=>{Ie=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),tn=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Mf=["ref","parent","__element","__depends","__ref","__children","root"],$e=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"]),Fe=new Set(["update","__element"]),Gr=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),en=new Set(["node","context","extends","__element","__ref",...Gr,...$e,...Fe]),Nf=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Bf,De,G,Vf,Z,W,zf,Uf,Y,rn,ax,on,cx,lx,Kr,fx,Mt,ux,nn,Wf,Hf,wi,qf,Gf,sn,or,wt,ki,px,Kf,Yf,vi,Xf,Zf,Jf,Qf,tu,eu,ru,ne=I(()=>{Vr();it();Qe();qr();zr();rr();Bf="production",De=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,G=(t,e,r,o)=>{if(C(t))return e?typeof t.call!="function"?t:t.call(e,e,r||e.state,o||e.context):void 0;if(t!=null&&e?.context?.plugins&&(T(t)||S(t)&&!xt(t))){let n=e.context.plugins;for(let s of n)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i=="function")return G(i,e,r,o)}}return t},Vf=(t,e,r)=>{for(let o in e)t[o]=G(e[o],r)},Z=(t,e,r=[])=>{let o=r instanceof Set;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(De(n)||(o?r.has(n):r.includes(n))||t[n]===void 0&&(t[n]=e[n]));return t},W=(t,e,r=en)=>zf(t,e,r,null),zf=(t,e,r,o)=>{if(t===e)return t;if(o){for(let s=0;s<o.length;s+=2)if(o[s]===t&&o[s+1]===e)return t}let n=r instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||De(s)||s==="constructor"||s==="prototype"||(n?r.has(s):r.includes(s)))continue;let i=t[s],a=e[s];if(j(i)&&j(a)){let c=o||[];c.push(t,e),zf(i,a,r,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},Uf=(t,e=[])=>{let r=e instanceof Set,o={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(De(n)||(r?e.has(n):e.includes(n))||(o[n]=t[n]));return o},Y=(t,e={})=>{let{exclude:r=[],cleanUndefined:o=!1,cleanNull:n=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=e,c=s||k||globalThis;if(!j(t)||xt(t))return t;if(i.has(t))return i.get(t);let l=T(t)?[]:{};i.set(t,l);let f=r instanceof Set?r:r.length>3?new Set(r):null;for(let u in t){if(!Object.prototype.hasOwnProperty.call(t,u)||De(u)||u==="__proto__"||(f?f.has(u):r.includes(u)))continue;let p=t[u];if(!(o&&p===void 0)&&!(n&&p===null)){if(xt(p)){l[u]=p;continue}if(a&&u==="extends"&&T(p)){l[u]=Xo(p,r);continue}if(C(p)){l[u]=p;continue}j(p)?l[u]=Y(p,{...e,visited:i}):l[u]=p}}return l},rn=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let r in t){let o=t[r];if(C(o))e[r]=o.toString();else if(S(o))e[r]={},rn(o,e[r]);else if(T(o)){let n=e[r]=[];for(let s=0;s<o.length;s++){let i=o[s];S(i)?(n[s]={},rn(i,n[s])):C(i)?n[s]=i.toString():n[s]=i}}else e[r]=o}return e},ax=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),on=(t={},e=0)=>{if(t===null||typeof t!="object")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return"{}";let o=" ".repeat(e),n=`{
|
|
4
|
+
`;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let l=0;l<s.length;l++)if(ax.has(s[l])){a=!0;break}let c=a?`'${s}'`:s;if(n+=`${o} ${c}: `,T(i)){n+=`[
|
|
5
|
+
`;for(let l of i)j(l)&&l!==null?n+=`${o} ${on(l,e+2)},
|
|
6
6
|
`:w(l)?n+=`${o} '${l}',
|
|
7
7
|
`:n+=`${o} ${l},
|
|
8
|
-
`;n+=`${o} ]`}else
|
|
8
|
+
`;n+=`${o} ]`}else j(i)?n+=on(i,e+1):w(i)?n+=Qo(i,[`
|
|
9
9
|
`,"'"])?`\`${i}\``:`'${i}'`:n+=i;n+=`,
|
|
10
|
-
`}return n+=`${o}}`,n},
|
|
11
|
-
First 200 chars of source: `+String(n).slice(0,200)),e[o]=n}else e[o]=n;else if(T(n)){let s=e[o]=[];for(let i=0;i<n.length;i++){let a=n[i];if(w(a))if(
|
|
12
|
-
First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else S(a)?s.push(Mt(a)):s.push(a)}}else S(n)?e[o]=Mt(n,e[o]):e[o]=n}return e},nn=t=>{if(!t||typeof t!="object")return t;let e={},r=[];for(let o of Object.keys(t)){let n=t[o];w(n)&&
|
|
10
|
+
`}return n+=`${o}}`,n},cx=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],lx=/^["[{]/,Kr=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||!cx.some(n=>n.test(e)))return!1;let r=e.charCodeAt(0),o=e.includes("=>");return!(r===123&&!o||r===91||lx.test(e)&&!o)},fx=t=>(0,eval)(t),Mt=(t,e={},r={window:{eval:fx}})=>{for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let n=t[o];if(w(n))if(Kr(n))try{e[o]=r.window.eval(`(${n})`)}catch(s){typeof console<"u"&&console.warn&&console.warn('[smbls] deepDestringifyFunctions: eval failed on "'+o+'" \u2014 function will be left as a string and el.call("'+o+'") will silently no-op. Reason: '+(s&&s.message?s.message:String(s))+`.
|
|
11
|
+
First 200 chars of source: `+String(n).slice(0,200)),e[o]=n}else e[o]=n;else if(T(n)){let s=e[o]=[];for(let i=0;i<n.length;i++){let a=n[i];if(w(a))if(Kr(a))try{s.push(r.window.eval(`(${a})`))}catch(c){typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed in array at index ${i} (prop "${o}"). Reason: ${c&&c.message?c.message:String(c)}.
|
|
12
|
+
First 200 chars: ${String(a).slice(0,200)}`),s.push(a)}else s.push(a);else S(a)?s.push(Mt(a)):s.push(a)}}else S(n)?e[o]=Mt(n,e[o]):e[o]=n}return e},ux=t=>!t||typeof t!="object"?t:t.__type==="Set"&&Array.isArray(t.values)?new Set(t.values):t.__type==="Map"&&Array.isArray(t.entries)?new Map(t.entries):t,nn=t=>{if(!t||typeof t!="object")return t;let e={},r=[];for(let o of Object.keys(t)){let n=t[o];w(n)&&Kr(n)?r.push([o,n]):e[o]=ux(n)}for(let[o,n]of r)try{let s=Object.keys(e).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
|
|
13
13
|
`);e[o]=k.eval(`(function(__gs__) { ${s}
|
|
14
|
-
return (${n}); })`)(e)}catch{try{e[o]=k.eval(`(${n})`)}catch{e[o]=n}}return e},Uf=(t,e={verbose:!0})=>{try{return t?k.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Wf=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),_i=t=>{for(let e in t)return!1;return!0},Hf=t=>S(t)&&_i(t),qf=()=>Object.create(null),sn=(t,e,r={})=>{let o=r.exclude||[],n=r.preventUnderscore;for(let s in e)o.includes(s)||!n&&Le(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},nr=(t,e,r=[])=>{let o=r instanceof Set;for(let n in e)Le(n)||n==="constructor"||n==="prototype"||(o?r.has(n):r.includes(n))||(t[n]=e[n]);return t},wt=(t,e,r={},o=new WeakMap)=>{if(!L(t)||!L(e)||xt(t)||xt(e))return e;if(o.has(t))return o.get(t);o.set(t,t);let n=r.exclude,s=n?n instanceof Set?n:new Set(n):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Le(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];xt(l)?t[a]=l:L(c)&&L(l)?t[a]=wt(c,l,r,o):l!==void 0&&(t[a]=l)}return t},wi=(t,e,r=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let o=Object.keys(t),n=Object.keys(e);if(o.length!==n.length)return!1;for(let s=0;s<o.length;s++){let i=o[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!wi(t[i],e[i],r))return!1}return!0},fx=new Set(["node","__ref"]),Gf=(t,e,r=fx)=>{if(t===e)return!0;if(!L(t)||!L(e)||xt(t)||xt(e))return t===e;let o=r instanceof Set?r:new Set(r),n=new WeakSet;function s(i,a){if(n.has(a))return!0;n.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||o.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(xt(l)||xt(f)){if(l!==f)return!1}else if(L(l)&&L(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},Kf=(t,e)=>{if(e==null)return t;if(_t(e)("string","number"))delete t[e];else if(T(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},ki=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]=ki(t[r]));return e},Xf=(t,e)=>{if(t.length===0)return e;let r={},o=r;for(let n=0;n<t.length;n++)n===t.length-1&&e?o[t[n]]=e:(o[t[n]]={},o=o[t[n]]);return r},Yf=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length-1;n++){if(r[e[n]]===void 0)return;r=r[e[n]]}let o=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,o)&&delete r[o]},Zf=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let o=t;for(let n=0;n<e.length-1;n++)(!o[e[n]]||typeof o[e[n]]!="object")&&(o[e[n]]={}),o=o[e[n]];return o[e[e.length-1]]=r,t},Jf=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length;o++){if(r==null)return;r=r[e[o]]}return r},Qf=t=>{let r=[],o=0;for(let n=0;n<t.length;n++)if(r.length<2)r.push(t[n]);else if(t[n]===r[n%2]?o++:(r=[t[n-1],t[n]],o=1),o>=20)return(jf==="test"||jf==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},tu=t=>{let e=new WeakSet;function r(o){if(o&&typeof o=="object"){if(e.has(o))return!0;e.add(o);for(let n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&r(o[n]))return console.log(o,"cycle at "+n),!0}return!1}return r(t)},eu=(t,e)=>{let r=e instanceof Set?e:new Set(e),o={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&!r.has(n)&&(o[n]=t[n]);return o}});var an,cn,ln,fn=I(()=>{"use strict";se();an=(function(){let t=0;function e(){return t++,t}return e})(),cn=an,ln=(t,e,r)=>(G(r,t)||r||t.key||an()).toString()});var Kt,ru,Ne,vi,ou,nu,su,Me,iu,sr,Ci=I(()=>{"use strict";Kt="production",ru=Kt,Ne=(t=Kt)=>t==="production",vi=(t=Kt)=>t==="testing"||t==="test",ou=vi,nu=(t=Kt)=>t==="staging",su=(t=Kt)=>t==="local",Me=(t=Kt)=>t==="development"||t==="dev"||t==="local",iu=(t,e=Kt)=>e[t],sr=(t=Kt)=>!Ne(t)});function un(t,e,r){let o;return function(){let n=this,s=arguments,i=function(){o=null,r||t.apply(n,s)},a=r&&!o;clearTimeout(o),o=setTimeout(i,e),a&&t.apply(n,s)}}function fu(t,e=window){let r=function(){return t.apply(e,arguments)};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r}var au,cu,ux,lu,Zr,Jr,Xt,ir=I(()=>{"use strict";au=(t,e,r=300)=>{let o;return(...n)=>{clearTimeout(o),o=setTimeout(()=>{e.apply(t,n)},r)}},cu=t=>{let e={};return(...r)=>{let o=r[0];if(o in e)return e[o];{let n=t(o);return e[o]=n,n}}},ux=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,lu=t=>ux.test(t),Zr=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Jr=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let o of r)if(o.resolveHandler){let n=o.resolveHandler(t,e);if(typeof n=="function")return n}return t},Xt=(t,e,...r)=>{let o=e?.context?.plugins;if(!o)return!1;let n=!1;for(let s of o)typeof s[t]=="function"&&(s[t](e,...r),n=!0);return n}});var uu,pu=I(()=>{"use strict";it();se();uu=(t,e)=>{let{__ref:r}=t,o=t.if;if(C(o)){let n;try{n=o(t,t.state,t.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}n?r.__if=!0:delete r.__if}else o!=null&&typeof o=="object"?G(o,t)?r.__if=!0:delete r.__if:r.__if=!0}});var du,hu,gu=I(()=>{"use strict";du=(t,...e)=>{t&&e.map(r=>console.log(r))},hu=(t,e,...r)=>{t&&(console.group(e),r.map(o=>console.log(o)),console.groupEnd(e))}});function Su(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 _u(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 mu,yu,bu,xu,wu=I(()=>{"use strict";it();Ur();mu=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),yu=(t,e,r=365)=>{if(ct(q)||ct(q.cookie))return;let o=new Date;o.setTime(o.getTime()+r*24*60*60*1e3);let n=`expires=${o.toUTCString()}`;q.cookie=`${t}=${e};${n};path=/`},bu=t=>{if(ct(q)||ct(q.cookie))return;let e=`${t}=`,o=decodeURIComponent(q.cookie).split(";");for(let n=0;n<o.length;n++){let s=o[n];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},xu=t=>{ct(q)||ct(q.cookie)||(q.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Qr,ku,vu,Ai=I(()=>{"use strict";Qr={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},ku=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"]),vu=t=>Qr.body.has(t)});var Ei,Cu,to,hn,kt,Au,Ti,gn,Eu,mn,Oi,Ri,yn,Pi,eo,px,ie,Tu,pn,bn,Ou,dn,Ru,Pu,Ii,$i,Fi,Di,Li,Ni,Iu,xn=I(()=>{"use strict";tr();Mi();se();it();Ei="production",Cu=t=>t.sourcemap!==!1&&Ei!=="production",to=t=>{if(t.includes("+"))return t.split("+").filter(ae);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!ae(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},hn=(t,e,r)=>{let o=[],n=to(r);n&&(o=[...n]);let s=t.extends;return s&&(o=T(s)?[...o,...s]:[...o,s]),o},kt=(t,e)=>{let{__ref:r}=e,{__extends:o}=r;if(!t)return o;let n=e.variant,s=e.context;if(n&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${n}`;s.components[i]&&(t=i)}return o.includes(t)||(o=Array.isArray(t)?[...o,...t]:[...o,t],r.__extends=o),o},Au=(t,e)=>{if(!t)return e;let{extends:r}=e,o=T(r)?r:[r],n=T(t)?t:[t];return{...e,extends:Hr(n,o)}},Ti=()=>Math.random().toString(36).substring(2),gn={},Eu={},mn=t=>gn[t.__hash],Oi=(t,e)=>{let r=Ti();return w(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(gn[r]=e),e},Ri=(t,e)=>t.__hash?e.concat(mn(t)):Oi(t,e),yn=(t,e,r,o=new Set,n,s)=>{for(let i of t)T(i)?yn(i,e,r,o,n,s):eo(i,e,r,o,n,void 0,s);return e},Pi=(t,e,r,o=new Set,n,s,i)=>{let a=t.extends,c={...t};delete c.extends;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),n&&n.push(s)),a&&eo(a,e,r,o,n,s,i),e},eo=(t,e,r,o=new Set,n,s,i)=>{if(!t||o.has(t))return e;if(T(t))return yn(t,e,r,o,n,i);let a=s;return w(t)?(a=t,t=bn(t,r)):i&&S(t)&&i.has(t)&&(a=i.get(t)),o.add(t),t?.extends?Pi(t,e,r,o,n,a,i):t&&(e.push(t),n&&n.push(a)),e},px=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),ie=(t,e,r,o,n)=>{e=X(e);for(let s in e){if(px.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,r&&o?S(a)&&!T(a)?(r[s]=r[s]||{},Tu(r[s],a,o)):r[s]=o:r&&n?.[s]&&(r[s]=n[s]);else if(S(i)&&S(a)){let c=r?r[s]=r[s]||{}:void 0,l=n?.[s];ae(s)?t[s]=ie(i,a,c,o,l):ie(i,a,c,o,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(T(i)&&T(a))t[s]=i.concat(a);else if(T(i)&&S(a)){let c=ie({},i);t[s]=ie(c,a)}}}}return t},Tu=(t,e,r,o)=>{if(o||(o=new WeakSet),!o.has(e)){o.add(e);for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||n==="__proto__"||n==="constructor"||n==="prototype")continue;let s=e[n];S(s)&&!T(s)?(t[n]=t[n]||{},Tu(t[n],s,r,o)):t[n]=r}}},pn=(t,e,r)=>t.reduce((o,n,s)=>{let i=X(n),a=r?r[s]:void 0;return ie(o,i,e,a)},{}),bn=(t,e,r={},o)=>{let n=e?.components||r.components,s=e?.pages||r.pages;if(w(t)){let i=n&&(n[t+"."+o]||n[t]||n["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(Ei==="test"||Ei==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},Ou=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),dn=(t,e,r,o)=>{if(!t)return[];if(t.__hash)return mn(t)||[];let s=eo(t,[],e,new Set,r,void 0,o);return r?s:Ri(t,s)},Ru=(t,e)=>{if(!t)return e;let r=T(t)?t:[t];return Hr(r,e)},Pu=t=>{let e=[];function r(o){for(let n in o)Object.prototype.hasOwnProperty.call(o,n)&&(ae(n)&&e.push(n),n==="extends"&&(typeof o[n]=="string"?e.push(o[n]):Array.isArray(o[n])&&(e=e.concat(o[n]))),typeof o[n]=="object"&&o[n]!==null&&r(o[n]))}return r(t),e},Ii=(t,e,r={})=>{let{__ref:o}=t,n=t.context||e.context,s=t.variant;if(t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i=="string"&&s&&n?.components){let c=`${i}.${s}`;n.components[c]?kt([c,...a],t):kt(t.extends,t)}else kt(t.extends,t)}else if(typeof t.extends=="string"&&s&&n?.components){let i=`${t.extends}.${s}`;n.components[i]?kt(i,t):kt(t.extends,t)}else kt(t.extends,t);return $i(t,e,r),Fi(t,e,r),Di(t,e,r),t.component&&kt(G(t.component,t),t),n.defaultExtends&&kt(n.defaultExtends,t),qr(o.__extends)},$i=(t,e,r={})=>{let{__ref:o}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&kt(e.childProps.extends,t),o.__extends},Fi=(t,e,r={})=>{let{__ref:o}=t,n=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!n&&s&&kt(s,t),o.__extends},Di=(t,e,r={})=>{let{__ref:o}=t,n=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return n&&!i&&!s&&kt(n,t),o.__extends},Li=(t,e,r={})=>{let{__ref:o}=t,n=t.context||e.context,s=t.variant,i=Cu(r),a=i?[...o.__extends]:null,c=qr(o.__extends.map((l,f)=>bn(l,n,r,f===0&&s)));if(i){let l=new WeakMap;for(let u=0;u<c.length;u++){let d=c[u],h=a[u];d&&S(d)&&w(h)&&l.set(d,h)}let f=[],p=dn(c,n,f,l);o.__extendsStack=p,o.__extendsNames=f}else{let l=dn(c,n);o.__extendsStack=l}return o.__extendsStack},Ni=(t,e,r={})=>{let{__ref:o}=t,{__extendsStack:n}=o;if(Cu(r)){let s={},i=o.__extendsNames||[],a=pn(n,s,i),c={};ie(t,a,c,void 0,s),o.__sourcemap=c}else{let s=pn(n);ie(t,s)}return t},Iu=(t,e,r={})=>(Ii(t,e,r),Li(t,e,r),Ni(t,e,r),t)});function $u(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Fu(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Du(t,e,r){let{context:o}=e||{},[n]=to(r),s=r||n;return o?.components?.[s]||o?.pages?.[s]}var ae,Mi=I(()=>{"use strict";xn();it();ae=t=>{if(!w(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Lu(t,e){let{props:r,on:o}=e,n=rr(t.split("on")[1]),s=o[n],i=r[t];C(s)?o[n]=(...a)=>{if(s(...a)!==!1&&C(i))return i(...a)}:o[n]=i}var Nu=I(()=>{"use strict";Kr();it()});function Bi(t,e={}){let r=e.cachedKeys||[];for(let o in t){let n=t[o];if(o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o[2]===o[2].toUpperCase()&&(C(n)||n!=null&&Zr(this.context))){let h=rr(o.slice(2));t.on&&(t.on[h]=n),delete t[o];continue}if(o==="childProps"){t.props[o]=n,delete t[o],r.push(o);continue}let a=this.define?.[o],c=this.context?.define?.[o],l=S(a)||C(a),f=S(c)||C(c);if(l||f)continue;let p=o.charAt(0);if(ju.has(p)){t.props[o]=n,delete t[o],r.push(o);continue}let u=ji.test(o)||Mu.test(o)||hx(n),d=$e.has(o);!u&&!d&&(o in t.props||(t.props[o]=n),delete t[o],r.push(o))}return t}function Vi(t=this,e){let r=e.cachedKeys||[];for(let o in t.props){let n=t.props[o],s=o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110,i=C(n)||n!=null&&Zr(this.context);if(s&&i){Lu(o,t),delete t.props[o];continue}if(r.includes(o)||o==="childProps")continue;let a=o.charAt(0);if(ju.has(a))continue;let c=this.define?.[o],l=this.context?.define?.[o],f=S(c)||C(c),p=S(l)||C(l),u=ji.test(o)||Mu.test(o),d=$e.has(o);(u||d||f||p)&&(t[o]===void 0||n===null)&&(t[o]=n,t.props&&delete t.props[o])}return t}function zi(t=this){let e=[];return Bi.call(this,t,{cachedKeys:e}),Vi.call(this,t,{cachedKeys:e}),t}function Bu(t={}){return t.on||(t.on={}),t.props||(t.props={}),zi.call(this,t)}function Ui(t,e){this.__element.update({props:t},e)}function vn(t){let e={update:Ui.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var ji,Mu,ju,dx,hx,wn,Sn,Vu,kn,Cn,An,Wi,_n,zu,Uu,Hi=I(()=>{"use strict";or();Nu();se();it();Kr();ir();ji=/^[A-Z]/,Mu=/^\d+$/,ju=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),dx=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),hx=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(dx.has(e)||ji.test(e))return!0;return!1},wn=(t,e,r)=>{let{props:o,__ref:n}=t;if(n.__propsStack=[],o)n.__initialProps=o;else return{};return L(o)?{...o}:(n.__propsStack.push(o),{})};Sn=t=>_t(t)("string","number")?{inheritedString:t}:t,Vu=(t,e)=>!t||!e.length?!1:e.includes(t),kn=(t,e)=>{let{__ref:r}=t,o=r.__propsStack||[],n=e.props;if(!n)return o;let s=n[t.key],i=n.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=Sn(i);o.unshift(c)}if(s){let c=Sn(s);o.unshift(c)}return o};Cn=t=>{let e=new Set;return t.filter(r=>!r||De.has(r)||e.has(r)?!1:(e.add(r),!0))},An=(t,e,r)=>(e.props=t.reduce((o,n)=>{if(De.has(n))return o;for(;C(n);)n=G(n,e);return W(o,X(n,{exclude:De}))},{}),vn(e),e.props),Wi=(t,e)=>{let{props:r,__ref:o}=t,n=o.__propsStack||[];if(e?.props&&(n=[...kn(t,e)]),S(r)?n.push(r):r==="inherit"&&e?.props?n.push(e.props):r&&n.push(r),T(o.__extendsStack))for(let s=0;s<o.__extendsStack.length;s++){let i=o.__extendsStack[s];i.props&&i.props!==r&&n.push(i.props)}return o.__propsStack=Cn(n),o.__propsStack},_n=(t,e)=>{let{__ref:r}=t,o=Wi(t,e);o.length?An(o,t):(r.__propsStack=[],t.props={})},zu=function(t,e,r){let{__ref:o}=t;if(o.__if)_n(t,e);else try{_n(t,e)}catch(n){t.context?.designSystem?.verbose&&console.warn("initProps error at",o.path?.join("."),n),t.props={},o.__propsStack=[]}return vn(t),t},Uu=(t,e,r)=>{let{__ref:o}=e,s=[...o.__propsStack||[]],i=kn(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),o.__propsStack=Cn(s),o.__propsStack.length&&An(o.__propsStack,e),e}});var Wu,qi,Gi,Ki,Xi,Hu,Yi,Zi,Ji,qu,Gu=I(()=>{"use strict";xn();fn();Wr();Hi();Ai();it();Wu="production",qi=(t,e,r)=>{let o=e.childExtends&&e.childExtends.tag,n=e.childProps&&e.childProps.tag,s=Qr.body.has(r)&&r;return{text:t,tag:o||n||s||"string"}},Gi=(t,e,r)=>{if(t===void 0)return(Wu==="test"||Wu==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:_t(t)("string","number")?qi(t,e,r):C(t)?{props:t}:t},Ki=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Xi=(t,e,r,o,n)=>{if(!e)return n;if(de(e)){let s={key:":root",node:e};return n[`${r}_parent`]=s,s}return e},Hu=(t,e)=>{let{__ref:r}=t,{__ref:o}=e,n=e&&e.key===":root";r?.root||(r.root=n?t:o?.root)},Yi=(t,e,r)=>{let{__ref:o}=e;return o||(o=e.ref={}),o.path||(o.path=[]),o.path.concat(r)},Zi=(t,e,r,o,n)=>(o.context&&!n.context&&!t.context&&(n.context=o.context),o.context||e.context||n.context||t.context),Ji=(t,e,r)=>{let o=Ki(t,e);return t.__ref=o,o.__defineCache||(o.__defineCache={}),o.__exec||(o.__exec={}),o.__execProps||(o.__execProps={}),o.__class||(o.__class={}),o.__classNames||(o.__classNames={}),o.__attr||(o.__attr={}),o.__changes||(o.__changes=[]),o.__children||(o.__children=[]),o.__extends=hn(t,e,r),o.path=Yi(t,e,r),o},qu=(t,e,r,o,n)=>{let i=t?.__hash?{extends:[t]}:Gi(t,e,r);if(!i)return;let a=Xi(i,e,r,o,n),c=ln(i,a,r);Ji(i,a,c);let l=wn(i,a,c),f=Zi(i,a,c,o,n),p=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:p}}});var Ku,Qi,ta,ea,ra,Xu,oa,Yu,Zu,Ju,Qu,tp=I(()=>{"use strict";tr();or();se();it();Ku=t=>{let{state:e,props:r,__ref:o}=t,n=r?.state||e;return _t(n)("string","number")?(o.__state=n,{value:n}):n===!0?(o.__state=t.key,{}):n?(o.__hasRootState=!0,n):!1},Qi=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},ta=(t,e)=>{if(!t.includes("../"))return;let o=t.split("../").length-1;for(let n=0;n<o;n++){if(!e.parent)return null;e=e.parent}return e},ea=(t,e,r={})=>{let o=w(t)?t.split("/"):[t],n=o.length-1;for(let s=0;s<n;s++){let i=o[s],a=o[s+1];if(i==="__proto__"||a==="__proto__")return;let c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},ra=(t,e,r={})=>{let n=t.__ref.__state;if(!oa(t))return;let s=Qi(n,e.state),i=e.state;if(s)i=s,n=n.replaceAll("~/","");else{let a=ta(n,e.state);a&&(i=a,n=n.replaceAll("../",""))}if(i)return ea(n,i,r)},Xu=(t,e)=>{let r=t.__ref,o=ra(t,e);if(o===void 0)return t.state;if(_t(o)("object","array"))return X(o);if(_t(o)("string","number","boolean"))return r.__stateType=typeof o,{value:o};console.warn(r.__state,"is not present. Replacing with",{})},oa=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&_t(r)("number","string","boolean"))},Yu=function(t){return L(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},Zu=(t,e)=>{if(!t)return e||{};let r=t.split("/"),o={},n=o,s=r.length-1;for(let i=0;i<=s;i++)n[r[i]]=i===s?e||{}:{},n=n[r[i]];return o},Ju=(t,e)=>{let{__element:r}=e,o=r?.state;if(!o)return;let n=X(o,Fe),s={[t.key]:n},i=S(o.__depends)?{...o.__depends,...s}:s;return Array.isArray(o)?Jo(o,{...Object.getPrototypeOf(o),__depends:i}):Object.setPrototypeOf(o,{...Object.getPrototypeOf(o),__depends:i}),n},Qu=(t,e,r={})=>{let{overwrite:o}=r;if(!o)return;let n=o==="shallow";if(o==="merge"){W(t,e,Fe);return}(n?nr:wt)(t,e,Fe)}});var ep,rp=I(()=>{"use strict";ep=(t,e)=>{let{__ref:r}=t,o=t.context||e.context||r.root?.context;o&&!o.globalScope&&(o.globalScope={});let n=e.scope||r.root?.scope,s=o?.globalScope;if(!t.scope)n?t.scope=n:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=n||s;i&&Object.setPrototypeOf(t.scope,i)}}});var op,na,je,sa,np,ia=I(()=>{"use strict";it();ir();op=(t,e)=>{let r="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},na=(t,e,r,o,n)=>{if(t=Jr(t,e),!!C(t))try{let s=t.call(e,e,r||e.state,o||e.context,n);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},je=(t,e,r)=>{if(!e)throw new Error("Element is required");Xt(t,e,r);let o=op(t,e);if(o){let{state:n,context:s}=e;return na(o,e,n,s,r)}},sa=(t,e,r,o,n,s)=>{if(t=Jr(t,r),!!C(t))try{let i=t.call(r,e,r,o||r.state,n||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},np=(t,e,r,o)=>{Xt(t,r,e,o);let n=op(t,r);if(n){let{state:s,context:i}=r;return sa(n,e,r,s,i,o)}}});var sp,En,aa=I(()=>{"use strict";sp={},En={}});var cp={};$(cp,{setup:()=>mx,supabaseAdapter:()=>ap});var ip,gx,mx,ca,yx,ap,lp=I(()=>{ip=new Map,gx=(t,e,r)=>`${t}|${e}|${r?"off":"on"}`,mx=async({url:t,key:e,projectId:r,createClient:o,auth:n,retry:s,adapter:i,...a})=>{let c=t||r&&`https://${r}.supabase.co`;if(!c||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");o||(o=(await import("@supabase/supabase-js")).createClient),n===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let l=gx(c,e,n===!1),f=ip.get(l);return f||(f=await o(c,e,a),f?.auth&&ip.set(l,f)),!f||!f.auth?null:ap(f)},ca=(t,e)=>{if(!e)return t;for(let r in e){let o=e[r];if(o===null)t=t.is(r,null);else if(Array.isArray(o))t=t.in(r,o);else if(typeof o=="object")for(let n in o)n==="gt"?t=t.gt(r,o[n]):n==="gte"?t=t.gte(r,o[n]):n==="lt"?t=t.lt(r,o[n]):n==="lte"?t=t.lte(r,o[n]):n==="neq"?t=t.neq(r,o[n]):n==="like"?t=t.like(r,o[n]):n==="ilike"?t=t.ilike(r,o[n]):n==="in"?t=t.in(r,o[n]):n==="is"?t=t.is(r,o[n]):n==="contains"?t=t.contains(r,o[n]):n==="containedBy"?t=t.containedBy(r,o[n]):n==="textSearch"&&(t=t.textSearch(r,o[n]));else t=t.eq(r,o)}return t},yx=(t,{limit:e,offset:r,order:o,single:n}={})=>{if(o)if(Array.isArray(o))for(let s of o){let i=typeof s=="string"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof o=="string"?o:o.by;t=t.order(s,{ascending:o.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),n&&(t=t.single()),t},ap=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((o,n)=>e(o,n));return()=>r.unsubscribe()},select:async({from:e,schema:r,select:o,params:n,headers:s,...i})=>{let a=(r?t.schema(r):t).from(e).select(o||"*");if(a=ca(a,n),a=yx(a,i),s)try{for(let c in s)a.setHeader?a=a.setHeader(c,s[c]):t.rest&&(t.rest.headers[c]=s[c])}catch(c){console.warn("[supabase] setHeader failed:",c.message)}return a},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,schema:r,data:o,select:n})=>(r?t.schema(r):t).from(e).insert(o).select(n||"*"),update:({from:e,schema:r,data:o,params:n,select:s})=>{let i=(r?t.schema(r):t).from(e).update(o);return i=ca(i,n),i.select(s||"*")},upsert:({from:e,schema:r,data:o,select:n})=>(r?t.schema(r):t).from(e).upsert(o).select(n||"*"),delete:({from:e,params:r})=>{let o=t.from(e).delete();return o=ca(o,r),o},subscribe:({from:e,params:r,on:o},n)=>{let s=o||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>n(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:o,options:n})=>t.storage.from(e).upload(r,o,n),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var up={};$(up,{restAdapter:()=>fp,setup:()=>xx});var bx,he,xx,fp,pp=I(()=>{bx=(t,e,r)=>{let o=e&&!e.startsWith("/")?"/":"",n=new URL(`${t}${o}${e}`);if(r)for(let s in r){let i=r[s];i!=null&&n.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return n.toString()},he=async(t,e)=>{let r=await globalThis.fetch(t,e),o=r.headers.get("content-type"),n=o&&o.includes("json")?await r.json():await r.text();return{data:n,error:r.ok?null:n?.message||n?.error||r.statusText,status:r.status}},xx=async({url:t,headers:e,auth:r,fetchOptions:o})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return fp(t,e,r,o)},fp=(t,e={},r,o={})=>{let n=r?.token||null,s=l=>{let f={...e,...l};return n&&(f.Authorization=`Bearer ${n}`),f},i=l=>({...s(l),"Content-Type":"application/json"}),a=l=>({...o,...l}),c=(l,f)=>{let p=f||t;if(l&&(l.startsWith("http://")||l.startsWith("https://")))return l;let u=l&&!l.startsWith("/")?"/":"";return`${p}${u}${l||""}`};return{name:"rest",setToken:l=>{n=l},getSession:async()=>{if(!r?.sessionUrl)return n?{token:n}:null;let l=await he(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return l.error?null:l.data},signIn:async l=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let f=await he(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(l)}));return f.data?.token&&(n=f.data.token),f},signOut:async()=>(r?.signOutUrl&&await he(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),n=null,{error:null}),select:({from:l,params:f,select:p,limit:u,offset:d,order:h,single:g,headers:m,baseUrl:y})=>{let b={...f};return p&&(b.select=p),u&&(b.limit=u),d&&(b.offset=d),g&&(b.single=!0),h&&(typeof h=="string"?b.order=h:Array.isArray(h)?b.order=h.map(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):h.by&&(b.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),he(bx(y||t,l||"",b),a({headers:s(m)}))},rpc:({from:l,params:f,headers:p,baseUrl:u})=>he(c(`rpc/${l}`,u),a({method:"POST",headers:i(p),body:JSON.stringify(f)})),insert:({from:l,data:f,headers:p,baseUrl:u})=>he(c(l,u),a({method:"POST",headers:i(p),body:JSON.stringify(f)})),update:({from:l,data:f,params:p,method:u,headers:d,baseUrl:h})=>{let g=p?.id||f?.id,m=g?`${l}/${g}`:l;return he(c(m,h),a({method:u||"PATCH",headers:i(d),body:JSON.stringify(f)}))},delete:({from:l,params:f,headers:p,baseUrl:u})=>{let d=f?.id,h=d?`${l}/${d}`:l;return he(c(h,u),a({method:"DELETE",headers:s(p)}))}}}});var hp={};$(hp,{localAdapter:()=>dp,setup:()=>_x});var la,Sx,_x,dp,gp=I(()=>{la=(t,e)=>{if(!e)return!0;for(let r in e){let o=e[r];if(o===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(o)){if(!o.includes(t[r]))return!1}else if(typeof o=="object"){for(let n in o)if(n==="gt"&&!(t[r]>o[n])||n==="gte"&&!(t[r]>=o[n])||n==="lt"&&!(t[r]<o[n])||n==="lte"&&!(t[r]<=o[n])||n==="neq"&&t[r]===o[n]||n==="like"&&!String(t[r]).includes(o[n]))return!1}else if(t[r]!==o)return!1}return!0},Sx=(t,{order:e,limit:r,offset:o,single:n})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[i]?a?1:-1:0)}return o&&(s=s.slice(o)),r&&(s=s.slice(0,r)),n?{data:s[0]||null,error:null}:{data:s,error:null}},_x=async({data:t,...e})=>dp(t,e),dp=(t={},e={})=>{let r={},o={},n=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!r[f])if(n)try{let p=localStorage.getItem(s+f);r[f]=p?JSON.parse(p):t[f]||[]}catch{r[f]=t[f]||[]}else r[f]=t[f]||[];return r[f]},a=f=>{if(n)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},c=(f,p,u,d)=>{let h=o[f];if(h)for(let g of h)g(u,d,{event:p,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:p,...u})=>{let d=i(f).filter(h=>la(h,p));return Sx(d,u)},insert:async({from:f,data:p})=>{let u=i(f),d=(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 d)c(f,"INSERT",h,null);return{data:Array.isArray(p)?d:d[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(la(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--)la(u[h],p)&&(d.push(u[h]),u.splice(h,1),c(f,"DELETE",null,d[d.length-1]));return a(f),{data:d,error:null}},subscribe:({from:f,on:p},u)=>{o[f]||(o[f]=[]);let d=(h,g,m)=>{p&&p!=="*"&&p!==m.event||u(h,g,m)};return o[f].push(d),()=>{let h=o[f].indexOf(d);h>-1&&o[f].splice(h,1)}}}}});var lo={};$(lo,{createAdapter:()=>vx,default:()=>Fx,executeFetch:()=>co,fetchPlugin:()=>ha,initAdapterAuth:()=>Pn,parseDuration:()=>oo,queryClient:()=>$x,registerAdapter:()=>kx,resolveDb:()=>Sp});var wx,Tn,xp,kx,vx,Sp,oo,dt,_p,ro,Cx,ao,no,so,On,pa,Rn,Ax,mp,fa,wp,kp,ar,yp,Ex,bp,Tx,In,vp,Pn,da,Et,jt,io,Be,Yt,ge,Ox,Rx,Px,ua,Ix,co,$x,ha,Fx,Ve=I(()=>{O();wx=["select","rpc","insert","update","delete","subscribe"],Tn=Symbol.for("@symbo.ls/fetch:BUILTIN_ADAPTERS"),xp=(()=>{if(typeof globalThis<"u"&&globalThis[Tn])return globalThis[Tn];let t={supabase:()=>Promise.resolve().then(()=>(lp(),cp)),rest:()=>Promise.resolve().then(()=>(pp(),up)),local:()=>Promise.resolve().then(()=>(gp(),hp))};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Tn,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Tn]}catch{}return t})(),kx=(t,e)=>{xp[t]=e},vx=t=>{let e={};for(let r of wx)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},Sp=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,o=typeof e=="string"?e:typeof t=="string"?t:null;if(!o)return null;let n=xp[o];if(!n)throw new Error(`Unknown db adapter: "${o}". Use registerAdapter() for adapters with optional deps.`);return(await n()).setup(r)},oo=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),o=e[2];return o==="ms"?r:o==="s"?r*1e3:o==="m"?r*6e4:o==="h"?r*36e5:0},dt=new Map,_p=new Map,ro=new Map,Cx=(t,e)=>{if(t.cache?.key)return t.cache.key;let r=Tx(t.params),o=`${t.from}:${t.method}:${JSON.stringify(r||"")}`;return e?`${o}:${e}`:o},ao=t=>dt.get(t)||null,no=(t,e,r)=>{let o=dt.get(t),n={data:e,error:r,time:Date.now(),stale:!1};dt.set(t,n);let s=_p.get(t);if(s)for(let i of s)C(i)&&i(n);return n},so=t=>{if(t){let e=dt.get(t);e&&(e.stale=!0);return}for(let[,e]of dt)e.stale=!0},On=t=>{if(t){dt.delete(t);return}dt.clear()},pa=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:w(t)?{staleTime:oo(t),gcTime:3e5}:{staleTime:oo(t.stale||t.staleTime)||6e4,gcTime:oo(t.gc||t.gcTime||t.expire)||3e5,key:t.key},Rn=null,Ax=()=>{Rn||(Rn=setInterval(()=>{let t=Date.now();for(let[e,r]of dt){let o=_p.get(e);!(o&&o.size>0)&&t-r.time>(r.gcTime||3e5)&&dt.delete(e)}},3e4),Rn.unref&&Rn.unref())};Ax();mp=3,fa=t=>Math.min(1e3*2**t,3e4),wp=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:mp,delay:fa}:typeof e=="number"?{count:e,delay:fa}:{count:e.count??mp,delay:C(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:fa}},kp=async(t,e)=>{let{count:r,delay:o}=e,n;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(n=i.error,s<r){let a=C(o)?o(s,n):o;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(n=i,s<r){let a=C(o)?o(s,i):o;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:n}},ar={focus:new Set,online:new Set},yp=!1,Ex=()=>{if(yp||typeof window>"u")return;yp=!0;let t=()=>{for(let r of ar.focus)r()},e=()=>{for(let r of ar.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},bp=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(w(t))return{from:t,method:"select",query:!0,on:"create"};if(S(t)){let o={...t};return o.from=o.from||r.__state||e.key,o.method=o.method||"select",o.on=o.on||"create",o.query===void 0&&(o.query=!0),o}return null},Tx=t=>(!t||C(t),t),In=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},vp=(t,e,r)=>{let o;if(!t)o=void 0;else if(C(t))o=t(e,e.state);else{o={};for(let n in t){let s=t[n];o[n]=C(s)?s(e,e.state):s}}return o},Pn=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(o,n)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:o,session:n,loading:!1}})};try{let o=await t.getSession();r(o?.user||null,o)}catch(o){console.warn("[fetch] Failed to restore auth session:",o.message)}t.onAuthStateChange&&t.onAuthStateChange((o,n)=>{r(n?.user||null,n)})},da=async(t,e)=>{if(C(t.select))return t.auth!==!1&&await Pn(t,e),t;if(t.__resolved)return t.auth!==!1&&await Pn(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=Sp(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 Pn(r,e),r):null},Et=(t,e,...r)=>{let o=C(t[e])?t[e]:null;o&&o.call(t,...r,t,t.state,t.context)},jt=(t,e,r,...o)=>{let n=t&&C(t[r])?t[r]:null;n&&n.call(e,...o,e,e.state,e.context)},io=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let n=new FormData(r);for(let[s,i]of n.entries())e[s]=i;return e}let o=r.querySelectorAll("input, textarea, select");for(let n=0;n<o.length;n++){let s=o[n],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},Be=(t,e,r,o={})=>{let n=r&&r.startsWith("~/"),s=n&&t.state?.root||t.state;if(s?.update)if(n){let i=r.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&i in e?s.update(e,{preventFetch:!0,...o}):s.update({[i]:e},{preventFetch:!0,...o})}else{let i=r?{[r]:e}:e;s.update(i,{preventFetch:!0,...o})}},Yt=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},ge=async(t,e,r,o={})=>{let n=r?.fetch;if(!n||!e||!e.__ref||t.enabled===!1||C(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||C(t.skip)&&t.skip(e,e.state))return;let s=await da(n,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:p,transform:u,single:d,auth:h,fields:g,as:m,limit:y,offset:b,order:x,headers:_,baseUrl:v,page:E,cursor:P,getNextPageParam:B,getPreviousPageParam:R,infinite:D,placeholderData:Q,initialData:V,select:j,keepPreviousData:Ft}=t,Dt=w(j)?j:void 0;if(l&&C(e.getQuery)){let H=e.getQuery(s.name||"paths");H&&(Dt=H.select||H.length&&H.join(",")||Dt)}let Gt=vp(f,e,r),Lt=pa(p),Wo=wp(t),ci=In(e,r),Ub=ci?`:${ci}`:"",tt=Lt?p?.key||`${a}:${c}:${JSON.stringify(Gt||"")}${D?":infinite":""}${E?":p"+JSON.stringify(E):""}${Ub}`:null;if(!i.__fetchInitialized&&tt&&(i.__fetchInitialized=!0,V!==void 0)){let H=C(V)?V():V;no(tt,H,null)}if((c==="select"||c==="rpc")&&tt&&Lt){let H=ao(tt);if(H&&!H.error){let U=Date.now()-H.time,J=H.stale||U>(Lt.staleTime||0),M=H.data;if(C(j)&&(M=j(M,e,e.state)),u&&(M=u(M,e,e.state)),Be(e,M,m),!J){Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(Q!==void 0){let U=C(Q)?Q(e,e.state):Q;U!==void 0&&Be(e,U,m)}}if(tt&&ro.has(tt)&&!o.force){let H=ro.get(tt);try{let U=await Promise.race([H,new Promise((J,M)=>setTimeout(()=>M("DEDUP_TIMEOUT"),15e3))]);if(U?.data!==void 0){let J=U.data;C(j)&&(J=j(J,e,e.state)),u&&(J=u(J,e,e.state)),Be(e,J,m),Et(e,"onFetchComplete",J),jt(t,e,"onFetchComplete",J)}}catch{}return}let Wb=!ao(tt)?.data;Yt(e,{isFetching:!0,isLoading:Wb,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Et(e,"onFetchStart"),jt(t,e,"onFetchStart");let oe=r?.analyze?.emitNetwork,li=oe?typeof performance<"u"?performance.now():Date.now():0;oe&&oe({phase:"start",mode:"query",from:a,method:c,cacheKey:tt,lang:ci});let ff=kp(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let M=await s.getSession();if(h===!0&&!M){let ut={message:"Not authenticated"};return Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ut,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",ut),jt(t,e,"onFetchError",ut),{data:null,error:ut}}}let H=s[c];if(!C(H))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let U={from:a,select:Dt,params:Gt,single:d,limit:y,offset:b,order:x,headers:_,baseUrl:v},J=In(e,r);if(J&&(U.headers={...U.headers,"Accept-Language":J}),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 M=t.pageSize||y||20;U.offset=(E-1)*M,U.limit=M}}if(P!==void 0&&(U.params={...U.params,cursor:P}),c==="insert"||c==="update"||c==="upsert"){let M;if(g===!0||t.on==="submit")M=io(e);else if(T(g)){let ut=io(e);M={};for(let fi of g)M[fi]=ut[fi]}else e.state?.parse?M=e.state.parse():S(e.state)&&(M={...e.state});u&&(M=u(M,e,e.state)),U.data=M}if(c==="rpc"){let M=Gt;if(t.on==="submit"){let ut=io(e);M=t.transformParams?t.transformParams(ut,e,e.state):ut}U.params=M}if(c==="subscribe"){let M=s.subscribe({from:a,params:Gt,on:t.subscribeOn},(ut,fi,Sk)=>{Be(e,ut,m),Et(e,"onFetchComplete",ut),jt(t,e,"onFetchComplete",ut)});return i.__unsubscribe=M,{data:null,error:null,subscribed:!0}}return H(U)},Wo);tt&&ro.set(tt,ff);try{let H=await ff;if(H?.subscribed)return;let{data:U,error:J}=H||{};if(J){tt&&no(tt,null,J),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:J,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",J),jt(t,e,"onFetchError",J),oe&&oe({phase:"error",mode:"query",from:a,method:c,cacheKey:tt,error:J.message||J,durationMs:(typeof performance<"u"?performance.now():Date.now())-li});return}if(U!==void 0){if((c==="select"||c==="rpc")&&tt){let ut=no(tt,U,null);ut.gcTime=Lt?.gcTime||3e5}let M=U;D&&T(U)&&(i.__pages||(i.__pages=[]),o.direction==="previous"?i.__pages.unshift(U):i.__pages.push(U),M=i.__pages.flat(),B&&(i.__nextPageParam=B(U,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),R&&(i.__prevPageParam=R(U,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),C(j)&&(M=j(M,e,e.state)),u&&(M=u(M,e,e.state)),(!Ft||M!==void 0)&&Be(e,M,m),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Et(e,"onFetchComplete",M),jt(t,e,"onFetchComplete",M),oe&&oe({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:tt,durationMs:(typeof performance<"u"?performance.now():Date.now())-li})}}catch(H){Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:H,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",H),jt(t,e,"onFetchError",H),oe&&oe({phase:"error",mode:"query",from:a,method:c,cacheKey:tt,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-li})}finally{tt&&ro.delete(tt)}},Ox=(t,e,r)=>{let o=t.on,n=e.__ref;n.__fetchListeners||(n.__fetchListeners=[]);let s=t.__runner||ge;if(o==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),n.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(o==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),n.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else o==="stateChange"&&(n.__fetchOnStateChange=()=>s(t,e,r))},Rx=(t,e,r)=>{let o=e.__ref;o.__fetchCleanups||(o.__fetchCleanups=[]),Ex();let n=t.refetchInterval;if(n){let s=typeof n=="number"?n:oo(n);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&ge(t,e,r,{force:!0})},s);o.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=In(e,r),a=Cx(t,i),c=ao(a),l=pa(t.cache);(!c||c.stale||Date.now()-c.time>(l?.staleTime||0))&&ge(t,e,r,{force:!0})};ar.focus.add(s),o.__fetchCleanups.push(()=>ar.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>ge(t,e,r,{force:!0});ar.online.add(s),o.__fetchCleanups.push(()=>ar.online.delete(s))}},Px=(t,e,r)=>{if(!e.optimistic)return null;let o=t.__ref,n=e.as,s=t.state?.parse?t.state.parse():S(t.state)?{...t.state}:t.state;o.__optimisticSnapshot=s;let i=C(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Be(t,i,n),s},ua=(t,e)=>{let r=t.__ref,o=r.__optimisticSnapshot;o!==void 0&&(Be(t,o,e.as),delete r.__optimisticSnapshot)},Ix=async(t,e,r)=>{let o=r?.fetch;if(!o)return;let n=await da(o,r);if(!n)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:p,auth:u,headers:d,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:_}=t,v;if(c===!0||p==="submit")v=io(e);else if(T(c)){let R=io(e);v={};for(let D of c)v[D]=R[D]}else e.state?.parse?v=e.state.parse():S(e.state)&&(v={...e.state});l&&(v=l(v,e,e.state)),C(y)&&y(v,e,e.state);let E=m?Px(e,t,v):null;s.__fetching=!0,Yt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Et(e,"onFetchStart"),jt(t,e,"onFetchStart");let P=r?.analyze?.emitNetwork,B=P?typeof performance<"u"?performance.now():Date.now():0;P&&P({phase:"start",mode:"mutation",from:a,method:i});try{if(u!==!1&&n.auth!==!1&&n.getSession){let Gt=await n.getSession();if(u===!0&&!Gt){E!==void 0&&ua(e,t);let Lt={message:"Not authenticated"};Et(e,"onFetchError",Lt),jt(t,e,"onFetchError",Lt);return}}let R=n[i];if(!C(R))return;let D={from:a,data:v,headers:d,baseUrl:h};t.params&&(D.params=vp(t.params,e,r));let Q=In(e,r);Q&&(D.headers={...D.headers,"Accept-Language":Q});let V=wp(t),j=await kp(()=>R(D),V),{data:Ft,error:Dt}=j||{};if(Dt){E!==void 0&&ua(e,t),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Dt,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",Dt),C(x)&&x(Dt,v,e),C(_)&&_(null,Dt,v,e),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:Dt.message||String(Dt),durationMs:(typeof performance<"u"?performance.now():Date.now())-B});return}if(delete s.__optimisticSnapshot,Ft!==void 0){let Gt=f?{[f]:Ft}:Ft;e.state?.update&&e.state.update(Gt,{preventFetch:!0})}if(Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Et(e,"onFetchComplete",Ft),jt(t,e,"onFetchComplete",Ft),C(b)&&b(Ft,v,e),C(_)&&_(Ft,null,v,e),P&&P({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-B}),g){let Gt=T(g)?g:[g];for(let Lt of Gt)if(Lt===!0||Lt==="*")for(let[Wo]of dt)Wo.startsWith(a+":")&&so(Wo);else so(Lt)}}catch(R){E!==void 0&&ua(e,t),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:R,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",R),jt(t,e,"onFetchError",R),C(x)&&x(R,v,e),C(_)&&_(null,R,v,e),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:R.message||String(R),durationMs:(typeof performance<"u"?performance.now():Date.now())-B})}finally{s.__fetching=!1}},co=(t,e,r,o)=>{if(!t||!o?.fetch)return;let n=G(t,e);if(!n)return;let s=T(n)?n.map(a=>bp(G(a,e),e)).filter(Boolean):[bp(n,e)].filter(Boolean);for(let a of s){let c=a.method==="insert"||a.method==="update"||a.method==="upsert"||a.method==="delete",l=c?Ix:ge;a.on==="create"?l(a,e,o):Promise.resolve().then(()=>{Ox({...a,__runner:l},e,o)}),!c&&a.on==="create"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&Rx(a,e,o)}let i=e.__ref;i.refetch=a=>{for(let c of s)ge(c,e,o,{force:!0,...a})},i.fetchNextPage=()=>{let a=s[0];if(!a||!a.infinite)return;let c=i.__nextPageParam;if(c==null)return;let l={...a,cursor:c};ge(l,e,o,{direction:"next",force:!0})},i.fetchPreviousPage=()=>{let a=s[0];if(!a||!a.infinite)return;let c=i.__prevPageParam;if(c==null)return;let l={...a,cursor:c};ge(l,e,o,{direction:"previous",force:!0})}},$x={invalidateQueries:t=>{if(!t){so();return}if(w(t))for(let[e]of dt)(e.startsWith(t)||e.includes(t))&&so(e);else if(T(t)){let e=t.join(":");for(let[r]of dt)r.includes(e)&&so(r)}},removeQueries:t=>{if(!t){On();return}if(w(t))for(let[e]of dt)(e.startsWith(t)||e.includes(t))&&On(e)},getQueryData:t=>ao(t)?.data??void 0,setQueryData:(t,e)=>{let r=ao(t),o=C(e)?e(r?.data):e;no(t,o,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let o=await da(r,e);if(!o)return;let n=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=o[t.method||"select"];if(!C(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let a=no(n,i.data,null);a.gcTime=pa(t.cache)?.gcTime||3e5}return i},getCache:()=>dt,clear:()=>On(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of dt)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||On(r))}},ha={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||ro.clear(),co(e,t,t.state,t.context))}},Fx=co});function Fn(t){let e=this,{__ref:r}=e,o=[].concat(t),n=r.root[o[0]];if(!o||!o.length)return console.log(o,"on",e.key,"is undefined");for(;n.key===o[0]&&(o.shift(),!!o.length);)if(n=n[o[0]],!n)return;return n}function Ap(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 Ep(t){let e=this,{__ref:r}=e,o=r?.__children;if(o)for(let n=0;n<o.length;n++){let s=o[n],i=e[s];if(s===t)return i;if(C(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function Tp(t,e=[]){let r=this,{__ref:o}=r,n=o?.__children;if(n){for(let s=0;s<n.length;s++){let i=n[s],a=r[i];if(i===t)e.push(a);else if(C(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function ma(t={}){let e=this;if(e.node?.style){for(let r in t){let o=t[r],n=e[r];if(S(o)&&n)ma.call(n,o);else if(o!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(o).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function Op(t){let e=this;if(je("beforeRemove",e,t)===!1)return e;C(e.node.remove)?e.node.remove():Ne()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=Zo(e.parent.__ref.__children,e.key)),je("remove",e,t)}function Rp(t){return this[t]}function Pp(t,e){let r=this;if(t)return r.update(t,e),r}function Ip(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Dn(){return this.getRef("__children").map(e=>this[e])}function Ln(){return this.getRef().path}function Mn(t){let e=null,r=o=>o.__element&&o.root?.isRootState;if(!this)e=Cp();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let o=this.state&&r(this.state),n=C(this.state)&&this.parent.state&&r(this.parent.state);(o||n)&&(e=this.state.root||this.parent.state.root)}return e||(e=Cp()),t?e?.[t]:e}function jn(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function Bn(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Vn(t){let e=this.getRoot()?.context;return t?e[t]:e}function zn(t){let e=this.context;return t?e[t]:e}function ya(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||$e.has(r)&&!tn.has(r)||e.push(r);return e}function ba(t=[]){let e=this,r={},o=ya.call(e),n=o.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<o.length;i++){let a=o[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||n&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=C(c&&c.parse)?c.parse():c;r[a]=C(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...p}=e[a];r[a]=p}else St(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function $n(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let o=ba.call(r,t),n=t.length?new Set(t):null;for(let s in o){if(n&&n.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=o[s];Array.isArray(i)?o[s]=i.map(a=>L(a)?$n.call(a,t,e):a):L(i)&&(o[s]=$n.call(i,t,e))}return o}function fo(...t){if(me!=="test"&&me!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(o=>console.log(`%c${o}:
|
|
15
|
-
`,"font-weight: bold",e[o])):(console.log(r.path),e.keys().forEach(
|
|
16
|
-
${
|
|
14
|
+
return (${n}); })`)(e)}catch{try{e[o]=k.eval(`(${n})`)}catch{e[o]=n}}return e},Wf=(t,e={verbose:!0})=>{try{return t?k.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Hf=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),wi=t=>{for(let e in t)return!1;return!0},qf=t=>S(t)&&wi(t),Gf=()=>Object.create(null),sn=(t,e,r={})=>{let o=r.exclude||[],n=r.preventUnderscore;for(let s in e)o.includes(s)||!n&&De(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},or=(t,e,r=[])=>{let o=r instanceof Set;for(let n in e)De(n)||n==="constructor"||n==="prototype"||(o?r.has(n):r.includes(n))||(t[n]=e[n]);return t},wt=(t,e,r={},o=new WeakMap)=>{if(!j(t)||!j(e)||xt(t)||xt(e))return e;if(o.has(t))return o.get(t);o.set(t,t);let n=r.exclude,s=n?n instanceof Set?n:new Set(n):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&De(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];xt(l)?t[a]=l:j(c)&&j(l)?t[a]=wt(c,l,r,o):l!==void 0&&(t[a]=l)}return t},ki=(t,e,r=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let o=Object.keys(t),n=Object.keys(e);if(o.length!==n.length)return!1;for(let s=0;s<o.length;s++){let i=o[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!ki(t[i],e[i],r))return!1}return!0},px=new Set(["node","__ref"]),Kf=(t,e,r=px)=>{if(t===e)return!0;if(!j(t)||!j(e)||xt(t)||xt(e))return t===e;let o=r instanceof Set?r:new Set(r),n=new WeakSet;function s(i,a){if(n.has(a))return!0;n.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||o.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(xt(l)||xt(f)){if(l!==f)return!1}else if(j(l)&&j(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},Yf=(t,e)=>{if(e==null)return t;if(_t(e)("string","number"))delete t[e];else if(T(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},vi=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]=vi(t[r]));return e},Xf=(t,e)=>{if(t.length===0)return e;let r={},o=r;for(let n=0;n<t.length;n++)n===t.length-1&&e?o[t[n]]=e:(o[t[n]]={},o=o[t[n]]);return r},Zf=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length-1;n++){if(r[e[n]]===void 0)return;r=r[e[n]]}let o=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,o)&&delete r[o]},Jf=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let o=t;for(let n=0;n<e.length-1;n++)(!o[e[n]]||typeof o[e[n]]!="object")&&(o[e[n]]={}),o=o[e[n]];return o[e[e.length-1]]=r,t},Qf=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length;o++){if(r==null)return;r=r[e[o]]}return r},tu=t=>{let e=[],r=0;for(let o=0;o<t.length;o++)if(e.length<2)e.push(t[o]);else if(t[o]===e[o%2]?r++:(e=[t[o-1],t[o]],r=1),r>=20)return(Bf==="test"||Bf==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",e),!0},eu=t=>{let e=new WeakSet;function r(o){if(o&&typeof o=="object"){if(e.has(o))return!0;e.add(o);for(let n in o)if(Object.prototype.hasOwnProperty.call(o,n)&&r(o[n]))return console.log(o,"cycle at "+n),!0}return!1}return r(t)},ru=(t,e)=>{let r=e instanceof Set?e:new Set(e),o={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&!r.has(n)&&(o[n]=t[n]);return o}});var an,cn,ln,fn=I(()=>{ne();an=(function(){let t=0;function e(){return t++,t}return e})(),cn=an,ln=(t,e,r)=>(G(r,t)||r||t.key||an()).toString()});var Kt,ou,je,Ci,nu,su,iu,Le,au,nr,Ai=I(()=>{Kt="production",ou=Kt,je=(t=Kt)=>t==="production",Ci=(t=Kt)=>t==="testing"||t==="test",nu=Ci,su=(t=Kt)=>t==="staging",iu=(t=Kt)=>t==="local",Le=(t=Kt)=>t==="development"||t==="dev"||t==="local",au=(t,e=Kt)=>e[t],nr=(t=Kt)=>!je(t)});function un(t,e,r){let o;return function(){let n=this,s=arguments,i=function(){o=null,r||t.apply(n,s)},a=r&&!o;clearTimeout(o),o=setTimeout(i,e),a&&t.apply(n,s)}}function uu(t,e=window){let r=function(){return t.apply(e,arguments)};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r}var cu,lu,dx,fu,Yr,Xr,Zr,pn=I(()=>{cu=(t,e,r=300)=>{let o;return(...n)=>{clearTimeout(o),o=setTimeout(()=>{e.apply(t,n)},r)}},lu=t=>{let e={};return(...r)=>{let o=r[0];if(o in e)return e[o];{let n=t(o);return e[o]=n,n}}},dx=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,fu=t=>dx.test(t),Yr=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Xr=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let o of r)if(o.resolveHandler){let n=o.resolveHandler(t,e);if(typeof n=="function")return n}return t},Zr=(t,e,...r)=>{let o=e?.context?.plugins;if(!o)return!1;let n=!1;for(let s of o)typeof s[t]=="function"&&(s[t](e,...r),n=!0);return n}});var pu,du=I(()=>{it();ne();pu=(t,e)=>{let{__ref:r}=t,o=t.if;if(C(o)){let n;try{n=o(t,t.state,t.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}n?r.__if=!0:delete r.__if}else o!=null&&typeof o=="object"?G(o,t)?r.__if=!0:delete r.__if:r.__if=!0}});var hu,gu,mu=I(()=>{hu=(t,...e)=>{t&&e.map(r=>console.log(r))},gu=(t,e,...r)=>{t&&(console.group(e),r.map(o=>console.log(o)),console.groupEnd(e))}});function _u(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 wu(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 yu,bu,xu,Su,ku=I(()=>{it();Vr();yu=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),bu=(t,e,r=365)=>{if(ct(q)||ct(q.cookie))return;let o=new Date;o.setTime(o.getTime()+r*24*60*60*1e3);let n=`expires=${o.toUTCString()}`;q.cookie=`${t}=${e};${n};path=/`},xu=t=>{if(ct(q)||ct(q.cookie))return;let e=`${t}=`,r=decodeURIComponent(q.cookie).split(";");for(let o=0;o<r.length;o++){let n=r[o];for(;n.charAt(0)===" ";)n=n.substring(1);if(n.indexOf(e)===0)return n.substring(e.length,n.length)}return""},Su=t=>{ct(q)||ct(q.cookie)||(q.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Jr,vu,Cu,Ei=I(()=>{Jr={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"])},vu=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"]),Cu=t=>Jr.body.has(t)});var Ti,Au,Qr,gn,kt,Eu,Oi,mn,Tu,yn,Ri,Pi,bn,Ii,to,hx,se,Ou,dn,xn,Ru,hn,Pu,Iu,$i,Fi,Di,ji,Li,Mi,$u,Sn=I(()=>{Qe();Ni();ne();it();Ti="production",Au=t=>t.sourcemap!==!1&&Ti!=="production",Qr=t=>{if(t.includes("+"))return t.split("+").filter(ie);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!ie(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},gn=(t,e,r)=>{let o=[],n=Qr(r);n&&(o=[...n]);let s=t.extends;return s&&(o=T(s)?[...o,...s]:[...o,s]),o},kt=(t,e)=>{let{__ref:r}=e,{__extends:o}=r;if(!t)return o;let n=e.variant,s=e.context;if(n&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${n}`;s.components[i]&&(t=i)}return o.includes(t)||(o=Array.isArray(t)?[...o,...t]:[...o,t],r.__extends=o),o},Eu=(t,e)=>{if(!t)return e;let{extends:r}=e,o=T(r)?r:[r],n=T(t)?t:[t];return{...e,extends:Ur(n,o)}},Oi=()=>Math.random().toString(36).substring(2),mn={},Tu={},yn=t=>mn[t.__hash],Ri=(t,e)=>{let r=Oi();return w(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(mn[r]=e),e},Pi=(t,e)=>t.__hash?e.concat(yn(t)):Ri(t,e),bn=(t,e,r,o=new Set,n,s)=>{for(let i of t)T(i)?bn(i,e,r,o,n,s):to(i,e,r,o,n,void 0,s);return e},Ii=(t,e,r,o=new Set,n,s,i)=>{let a=t.extends,c={...t};delete c.extends;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),n&&n.push(s)),a&&to(a,e,r,o,n,s,i),e},to=(t,e,r,o=new Set,n,s,i)=>{if(!t||o.has(t))return e;if(T(t))return bn(t,e,r,o,n,i);let a=s;return w(t)?(a=t,t=xn(t,r)):i&&S(t)&&i.has(t)&&(a=i.get(t)),o.add(t),t?.extends?Ii(t,e,r,o,n,a,i):t&&(e.push(t),n&&n.push(a)),e},hx=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),se=(t,e,r,o,n)=>{e=Y(e);for(let s in e){if(hx.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,r&&o?S(a)&&!T(a)?(r[s]=r[s]||{},Ou(r[s],a,o)):r[s]=o:r&&n?.[s]&&(r[s]=n[s]);else if(S(i)&&S(a)){let c=r?r[s]=r[s]||{}:void 0,l=n?.[s];ie(s)?t[s]=se(i,a,c,o,l):se(i,a,c,o,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(T(i)&&T(a))t[s]=i.concat(a);else if(T(i)&&S(a)){let c=se({},i);t[s]=se(c,a)}}}}return t},Ou=(t,e,r,o)=>{if(o||(o=new WeakSet),!o.has(e)){o.add(e);for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||n==="__proto__"||n==="constructor"||n==="prototype")continue;let s=e[n];S(s)&&!T(s)?(t[n]=t[n]||{},Ou(t[n],s,r,o)):t[n]=r}}},dn=(t,e,r)=>t.reduce((o,n,s)=>{let i=Y(n),a=r?r[s]:void 0;return se(o,i,e,a)},{}),xn=(t,e,r={},o)=>{let n=e?.components||r.components,s=e?.pages||r.pages;if(w(t)){let i=n&&(n[t+"."+o]||n[t]||n["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(Ti==="test"||Ti==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},Ru=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),hn=(t,e,r,o)=>{if(!t)return[];if(t.__hash)return yn(t)||[];let n=to(t,[],e,new Set,r,void 0,o);return r?n:Pi(t,n)},Pu=(t,e)=>{if(!t)return e;let r=T(t)?t:[t];return Ur(r,e)},Iu=t=>{let e=[];function r(o){for(let n in o)Object.prototype.hasOwnProperty.call(o,n)&&(ie(n)&&e.push(n),n==="extends"&&(typeof o[n]=="string"?e.push(o[n]):Array.isArray(o[n])&&(e=e.concat(o[n]))),typeof o[n]=="object"&&o[n]!==null&&r(o[n]))}return r(t),e},$i=(t,e,r={})=>{let{__ref:o}=t,n=t.context||e.context,s=t.variant;if(t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i=="string"&&s&&n?.components){let c=`${i}.${s}`;n.components[c]?kt([c,...a],t):kt(t.extends,t)}else kt(t.extends,t)}else if(typeof t.extends=="string"&&s&&n?.components){let i=`${t.extends}.${s}`;n.components[i]?kt(i,t):kt(t.extends,t)}else kt(t.extends,t);return Fi(t,e,r),Di(t,e,r),ji(t,e,r),t.component&&kt(G(t.component,t),t),n.defaultExtends&&kt(n.defaultExtends,t),Wr(o.__extends)},Fi=(t,e,r={})=>{let{__ref:o}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&kt(e.childProps.extends,t),o.__extends},Di=(t,e,r={})=>{let{__ref:o}=t,n=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!n&&s&&kt(s,t),o.__extends},ji=(t,e,r={})=>{let{__ref:o}=t,n=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return n&&!i&&!s&&kt(n,t),o.__extends},Li=(t,e,r={})=>{let{__ref:o}=t,n=t.context||e.context,s=t.variant,i=Au(r),a=i?[...o.__extends]:null,c=Wr(o.__extends.map((l,f)=>xn(l,n,r,f===0&&s)));if(i){let l=new WeakMap;for(let p=0;p<c.length;p++){let d=c[p],h=a[p];d&&S(d)&&w(h)&&l.set(d,h)}let f=[],u=hn(c,n,f,l);o.__extendsStack=u,o.__extendsNames=f}else{let l=hn(c,n);o.__extendsStack=l}return o.__extendsStack},Mi=(t,e,r={})=>{let{__ref:o}=t,{__extendsStack:n}=o;if(Au(r)){let s={},i=o.__extendsNames||[],a=dn(n,s,i),c={};se(t,a,c,void 0,s),o.__sourcemap=c}else{let s=dn(n);se(t,s)}return t},$u=(t,e,r={})=>($i(t,e,r),Li(t,e,r),Mi(t,e,r),t)});function Fu(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Du(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function ju(t,e,r){let{context:o}=e||{},[n]=Qr(r),s=r||n;return o?.components?.[s]||o?.pages?.[s]}var ie,Ni=I(()=>{Sn();it();ie=t=>{if(!w(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Lu(t,e){let{props:r,on:o}=e,n=er(t.split("on")[1]),s=o[n],i=r[t];C(s)?o[n]=(...a)=>{if(s(...a)!==!1&&C(i))return i(...a)}:o[n]=i}var Mu=I(()=>{qr();it()});function Vi(t,e={}){let r=e.cachedKeys||[];for(let o in t){let n=t[o];if(o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o[2]===o[2].toUpperCase()&&(C(n)||n!=null&&Yr(this.context))){let p=er(o.slice(2));t.on&&(t.on[p]=n),delete t[o];continue}if(o==="childProps"){t.props[o]=n,delete t[o],r.push(o);continue}let s=this.define?.[o],i=this.context?.define?.[o],a=S(s)||C(s),c=S(i)||C(i);if(a||c)continue;let l=o.charAt(0);if(Bu.has(l)){t.props[o]=n,delete t[o],r.push(o);continue}let f=Bi.test(o)||Nu.test(o)||mx(n),u=Ie.has(o);!f&&!u&&(o in t.props||(t.props[o]=n),delete t[o],r.push(o))}return t}function zi(t=this,e){let r=e.cachedKeys||[];for(let o in t.props){let n=t.props[o],s=o.length>2&&o.charCodeAt(0)===111&&o.charCodeAt(1)===110,i=C(n)||n!=null&&Yr(this.context);if(s&&i){Lu(o,t),delete t.props[o];continue}if(r.includes(o)||o==="childProps")continue;let a=o.charAt(0);if(Bu.has(a))continue;let c=this.define?.[o],l=this.context?.define?.[o],f=S(c)||C(c),u=S(l)||C(l),p=Bi.test(o)||Nu.test(o),d=Ie.has(o);(p||d||f||u)&&(t[o]===void 0||n===null)&&(t[o]=n,t.props&&delete t.props[o])}return t}function Ui(t=this){let e=[];return Vi.call(this,t,{cachedKeys:e}),zi.call(this,t,{cachedKeys:e}),t}function Vu(t={}){return t.on||(t.on={}),t.props||(t.props={}),Ui.call(this,t)}function Wi(t,e){this.__element.update({props:t},e)}function Cn(t){let e={update:Wi.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Bi,Nu,Bu,gx,mx,kn,_n,zu,vn,An,En,Hi,wn,Uu,Wu,qi=I(()=>{rr();Mu();ne();it();qr();pn();Bi=/^[A-Z]/,Nu=/^\d+$/,Bu=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),gx=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),mx=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(gx.has(e)||Bi.test(e))return!0;return!1},kn=(t,e,r)=>{let{props:o,__ref:n}=t;if(n.__propsStack=[],o)n.__initialProps=o;else return{};return j(o)?{...o}:(n.__propsStack.push(o),{})};_n=t=>_t(t)("string","number")?{inheritedString:t}:t,zu=(t,e)=>!t||!e.length?!1:e.includes(t),vn=(t,e)=>{let{__ref:r}=t,o=r.__propsStack||[],n=e.props;if(!n)return o;let s=n[t.key],i=n.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=_n(i);o.unshift(c)}if(s){let c=_n(s);o.unshift(c)}return o};An=t=>{let e=new Set;return t.filter(r=>!r||Fe.has(r)||e.has(r)?!1:(e.add(r),!0))},En=(t,e,r)=>(e.props=t.reduce((o,n)=>{if(Fe.has(n))return o;for(;C(n);)n=G(n,e);return W(o,Y(n,{exclude:Fe}))},{}),Cn(e),e.props),Hi=(t,e)=>{let{props:r,__ref:o}=t,n=o.__propsStack||[];if(e?.props&&(n=[...vn(t,e)]),S(r)?n.push(r):r==="inherit"&&e?.props?n.push(e.props):r&&n.push(r),T(o.__extendsStack))for(let s=0;s<o.__extendsStack.length;s++){let i=o.__extendsStack[s];i.props&&i.props!==r&&n.push(i.props)}return o.__propsStack=An(n),o.__propsStack},wn=(t,e)=>{let{__ref:r}=t,o=Hi(t,e);o.length?En(o,t):(r.__propsStack=[],t.props={})},Uu=function(t,e,r){let{__ref:o}=t;if(o.__if)wn(t,e);else try{wn(t,e)}catch(n){t.context?.designSystem?.verbose&&console.warn("initProps error at",o.path?.join("."),n),t.props={},o.__propsStack=[]}return Cn(t),t},Wu=(t,e,r)=>{let{__ref:o}=e,n=[...o.__propsStack||[]],s=vn(e,r);return s.length&&(n=[...s,...n]),t&&(n=[t,...n]),o.__propsStack=An(n),o.__propsStack.length&&En(o.__propsStack,e),e}});var Hu,Gi,Ki,Yi,Xi,qu,Zi,Ji,Qi,Gu,Ku=I(()=>{Sn();fn();zr();qi();Ei();it();Hu="production",Gi=(t,e,r)=>{let o=e.childExtends&&e.childExtends.tag,n=e.childProps&&e.childProps.tag,s=Jr.body.has(r)&&r;return{text:t,tag:o||n||s||"string"}},Ki=(t,e,r)=>{if(t===void 0)return(Hu==="test"||Hu==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:_t(t)("string","number")?Gi(t,e,r):C(t)?{props:t}:t},Yi=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Xi=(t,e,r,o,n)=>{if(!e)return n;if(pe(e)){let s={key:":root",node:e};return n[`${r}_parent`]=s,s}return e},qu=(t,e)=>{let{__ref:r}=t,{__ref:o}=e,n=e&&e.key===":root";r?.root||(r.root=n?t:o?.root)},Zi=(t,e,r)=>{let{__ref:o}=e;return o||(o=e.ref={}),o.path||(o.path=[]),o.path.concat(r)},Ji=(t,e,r,o,n)=>(o.context&&!n.context&&!t.context&&(n.context=o.context),o.context||e.context||n.context||t.context),Qi=(t,e,r)=>{let o=Yi(t,e);return t.__ref=o,o.__defineCache||(o.__defineCache={}),o.__exec||(o.__exec={}),o.__execProps||(o.__execProps={}),o.__class||(o.__class={}),o.__classNames||(o.__classNames={}),o.__attr||(o.__attr={}),o.__changes||(o.__changes=[]),o.__children||(o.__children=[]),o.__extends=gn(t,e,r),o.path=Zi(t,e,r),o},Gu=(t,e,r,o,n)=>{let s=t?.__hash?{extends:[t]}:Ki(t,e,r);if(!s)return;let i=Xi(s,e,r,o,n),a=ln(s,i,r);Qi(s,i,a);let c=kn(s,i,a),l=Ji(s,i,a,o,n),f=s.on||{};return{...s,key:a,props:c,parent:i,context:l,on:f}}});var Yu,ta,ea,ra,oa,Xu,na,Zu,Ju,Qu,tp,ep=I(()=>{Qe();rr();ne();it();Yu=t=>{let{state:e,props:r,__ref:o}=t,n=r?.state||e;return _t(n)("string","number")?(o.__state=n,{value:n}):n===!0?(o.__state=t.key,{}):n?(o.__hasRootState=!0,n):!1},ta=(t,e)=>{if(t.includes("~/")&&t.split("~/").length>1)return e.root},ea=(t,e)=>{if(!t.includes("../"))return;let r=t.split("../").length-1;for(let o=0;o<r;o++){if(!e.parent)return null;e=e.parent}return e},ra=(t,e,r={})=>{let o=w(t)?t.split("/"):[t],n=o.length-1;for(let s=0;s<n;s++){let i=o[s],a=o[s+1];if(i==="__proto__"||a==="__proto__")return;let c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},oa=(t,e,r={})=>{let o=t.__ref.__state;if(!na(t))return;let n=ta(o,e.state),s=e.state;if(n)s=n,o=o.replaceAll("~/","");else{let i=ea(o,e.state);i&&(s=i,o=o.replaceAll("../",""))}if(s)return ra(o,s,r)},Xu=(t,e)=>{let r=t.__ref,o=oa(t,e);if(o===void 0)return t.state;if(_t(o)("object","array"))return Y(o);if(_t(o)("string","number","boolean"))return r.__stateType=typeof o,{value:o};console.warn(r.__state,"is not present. Replacing with",{})},na=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&_t(r)("number","string","boolean"))},Zu=function(t){return j(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},Ju=(t,e)=>{if(!t)return e||{};let r=t.split("/"),o={},n=o,s=r.length-1;for(let i=0;i<=s;i++)n[r[i]]=i===s?e||{}:{},n=n[r[i]];return o},Qu=(t,e)=>{let{__element:r}=e,o=r?.state;if(!o)return;let n=Y(o,$e),s={[t.key]:n},i=S(o.__depends)?{...o.__depends,...s}:s;return Array.isArray(o)?Jo(o,{...Object.getPrototypeOf(o),__depends:i}):Object.setPrototypeOf(o,{...Object.getPrototypeOf(o),__depends:i}),n},tp=(t,e,r={})=>{let{overwrite:o}=r;if(!o)return;let n=o==="shallow";if(o==="merge"){W(t,e,$e);return}(n?or:wt)(t,e,$e)}});var rp,op=I(()=>{rp=(t,e)=>{let{__ref:r}=t,o=t.context||e.context||r.root?.context;o&&!o.globalScope&&(o.globalScope={});let n=e.scope||r.root?.scope,s=o?.globalScope;if(!t.scope)n?t.scope=n:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=n||s;i&&Object.setPrototypeOf(t.scope,i)}}});var np,sa,Me,ia,sp,aa=I(()=>{it();pn();np=(t,e)=>{let r="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},sa=(t,e,r,o,n)=>{if(t=Xr(t,e),!!C(t))try{let s=t.call(e,e,r||e.state,o||e.context,n);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},Me=(t,e,r)=>{if(!e)throw new Error("Element is required");Zr(t,e,r);let o=np(t,e);if(o){let{state:n,context:s}=e;return sa(o,e,n,s,r)}},ia=(t,e,r,o,n,s)=>{if(t=Xr(t,r),!!C(t))try{let i=t.call(r,e,r,o||r.state,n||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},sp=(t,e,r,o)=>{Zr(t,r,e,o);let n=np(t,r);if(n){let{state:s,context:i}=r;return ia(n,e,r,s,i,o)}}});var ip,Tn,ca=I(()=>{ip={},Tn={}});var lp={};$(lp,{setup:()=>bx,supabaseAdapter:()=>cp});var ap,yx,bx,la,xx,cp,fp=I(()=>{"use strict";ap=new Map,yx=(t,e,r)=>`${t}|${e}|${r?"off":"on"}`,bx=async({url:t,key:e,projectId:r,createClient:o,auth:n,retry:s,adapter:i,...a})=>{let c=t||r&&`https://${r}.supabase.co`;if(!c||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");o||(o=(await import("@supabase/supabase-js")).createClient),n===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let l=yx(c,e,n===!1),f=ap.get(l);return f||(f=await o(c,e,a),f?.auth&&ap.set(l,f)),!f||!f.auth?null:cp(f)},la=(t,e)=>{if(!e)return t;for(let r in e){let o=e[r];if(o===null)t=t.is(r,null);else if(Array.isArray(o))t=t.in(r,o);else if(typeof o=="object")for(let n in o)n==="gt"?t=t.gt(r,o[n]):n==="gte"?t=t.gte(r,o[n]):n==="lt"?t=t.lt(r,o[n]):n==="lte"?t=t.lte(r,o[n]):n==="neq"?t=t.neq(r,o[n]):n==="like"?t=t.like(r,o[n]):n==="ilike"?t=t.ilike(r,o[n]):n==="in"?t=t.in(r,o[n]):n==="is"?t=t.is(r,o[n]):n==="contains"?t=t.contains(r,o[n]):n==="containedBy"?t=t.containedBy(r,o[n]):n==="textSearch"&&(t=t.textSearch(r,o[n]));else t=t.eq(r,o)}return t},xx=(t,{limit:e,offset:r,order:o,single:n}={})=>{if(o)if(Array.isArray(o))for(let s of o){let i=typeof s=="string"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof o=="string"?o:o.by;t=t.order(s,{ascending:o.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),n&&(t=t.single()),t},cp=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((o,n)=>e(o,n));return()=>r.unsubscribe()},select:async({from:e,schema:r,select:o,params:n,headers:s,...i})=>{let c=(r?t.schema(r):t).from(e).select(o||"*");if(c=la(c,n),c=xx(c,i),s)try{for(let l in s)c.setHeader?c=c.setHeader(l,s[l]):t.rest&&(t.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return c},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,schema:r,data:o,select:n})=>(r?t.schema(r):t).from(e).insert(o).select(n||"*"),update:({from:e,schema:r,data:o,params:n,select:s})=>{let a=(r?t.schema(r):t).from(e).update(o);return a=la(a,n),a.select(s||"*")},upsert:({from:e,schema:r,data:o,select:n})=>(r?t.schema(r):t).from(e).upsert(o).select(n||"*"),delete:({from:e,params:r})=>{let o=t.from(e).delete();return o=la(o,r),o},subscribe:({from:e,params:r,on:o},n)=>{let s=o||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>n(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:o,options:n})=>t.storage.from(e).upload(r,o,n),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var pp={};$(pp,{restAdapter:()=>up,setup:()=>_x});var Sx,de,_x,up,dp=I(()=>{"use strict";Sx=(t,e,r)=>{let o=e&&!e.startsWith("/")?"/":"",n=new URL(`${t}${o}${e}`);if(r)for(let s in r){let i=r[s];i!=null&&n.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return n.toString()},de=async(t,e)=>{let r=await globalThis.fetch(t,e),o=r.headers.get("content-type"),n=o&&o.includes("json")?await r.json():await r.text();return{data:n,error:r.ok?null:n?.message||n?.error||r.statusText,status:r.status}},_x=async({url:t,headers:e,auth:r,fetchOptions:o})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return up(t,e,r,o)},up=(t,e={},r,o={})=>{let n=r?.token||null,s=f=>{let u={...e,...f};return n&&(u.Authorization=`Bearer ${n}`),u},i=f=>({...s(f),"Content-Type":"application/json"}),a=f=>({...o,...f}),c=(f,u)=>{let p=u||t;if(f&&(f.startsWith("http://")||f.startsWith("https://")))return f;let d=f&&!f.startsWith("/")?"/":"";return`${p}${d}${f||""}`};return{name:"rest",setToken:f=>{n=f},getSession:async()=>{if(!r?.sessionUrl)return n?{token:n}:null;let f=await de(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return f.error?null:f.data},signIn:async f=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await de(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(f)}));return u.data?.token&&(n=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await de(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),n=null,{error:null}),select:({from:f,params:u,select:p,limit:d,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let x={...u};return p&&(x.select=p),d&&(x.limit=d),h&&(x.offset=h),m&&(x.single=!0),g&&(typeof g=="string"?x.order=g:Array.isArray(g)?x.order=g.map(_=>`${_.by}:${_.asc===!1?"desc":"asc"}`).join(","):g.by&&(x.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),de(Sx(b||t,f||"",x),a({headers:s(y)}))},rpc:({from:f,params:u,headers:p,baseUrl:d})=>de(c(`rpc/${f}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:f,data:u,headers:p,baseUrl:d})=>de(c(f,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:f,data:u,params:p,method:d,headers:h,baseUrl:g})=>{let m=p?.id||u?.id,y=m?`${f}/${m}`:f;return de(c(y,g),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(u)}))},delete:({from:f,params:u,headers:p,baseUrl:d})=>{let h=u?.id,g=h?`${f}/${h}`:f;return de(c(g,d),a({method:"DELETE",headers:s(p)}))}}}});var gp={};$(gp,{localAdapter:()=>hp,setup:()=>kx});var fa,wx,kx,hp,mp=I(()=>{"use strict";fa=(t,e)=>{if(!e)return!0;for(let r in e){let o=e[r];if(o===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(o)){if(!o.includes(t[r]))return!1}else if(typeof o=="object"){for(let n in o)if(n==="gt"&&!(t[r]>o[n])||n==="gte"&&!(t[r]>=o[n])||n==="lt"&&!(t[r]<o[n])||n==="lte"&&!(t[r]<=o[n])||n==="neq"&&t[r]===o[n]||n==="like"&&!String(t[r]).includes(o[n]))return!1}else if(t[r]!==o)return!1}return!0},wx=(t,{order:e,limit:r,offset:o,single:n})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[i]?a?1:-1:0)}return o&&(s=s.slice(o)),r&&(s=s.slice(0,r)),n?{data:s[0]||null,error:null}:{data:s,error:null}},kx=async({data:t,...e})=>hp(t,e),hp=(t={},e={})=>{let r={},o={},n=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!r[f])if(n)try{let u=localStorage.getItem(s+f);r[f]=u?JSON.parse(u):t[f]||[]}catch{r[f]=t[f]||[]}else r[f]=t[f]||[];return r[f]},a=f=>{if(n)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},c=(f,u,p,d)=>{let h=o[f];if(h)for(let g of h)g(p,d,{event:u,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:u,...p})=>{let h=i(f).filter(g=>fa(g,u));return wx(h,p)},insert:async({from:f,data:u})=>{let p=i(f),h=(Array.isArray(u)?u:[u]).map(g=>{let m={id:g.id||++l,...g};return p.push(m),m});a(f);for(let g of h)c(f,"INSERT",g,null);return{data:Array.isArray(u)?h:h[0],error:null}},update:async({from:f,data:u,params:p})=>{let d=i(f),h=[];for(let g=0;g<d.length;g++)if(fa(d[g],p)){let m={...d[g]};Object.assign(d[g],u),h.push(d[g]),c(f,"UPDATE",d[g],m)}return a(f),{data:h,error:null}},delete:async({from:f,params:u})=>{let p=i(f),d=[];for(let h=p.length-1;h>=0;h--)fa(p[h],u)&&(d.push(p[h]),p.splice(h,1),c(f,"DELETE",null,d[d.length-1]));return a(f),{data:d,error:null}},subscribe:({from:f,on:u},p)=>{o[f]||(o[f]=[]);let d=(h,g,m)=>{u&&u!=="*"&&u!==m.event||p(h,g,m)};return o[f].push(d),()=>{let h=o[f].indexOf(d);h>-1&&o[f].splice(h,1)}}}}});var co={};$(co,{createAdapter:()=>Ax,default:()=>jx,executeFetch:()=>ao,fetchPlugin:()=>ga,initAdapterAuth:()=>In,parseDuration:()=>ro,queryClient:()=>Dx,registerAdapter:()=>Cx,resolveDb:()=>_p});var vx,On,Sp,Cx,Ax,_p,ro,dt,wp,eo,Ex,io,oo,no,Rn,da,Pn,Tx,yp,ua,kp,vp,sr,bp,Ox,xp,Rx,$n,Cp,In,ha,Et,Nt,so,Ne,Yt,he,Px,Ix,$x,pa,Fx,ao,Dx,ga,jx,Be=I(()=>{"use strict";O();vx=["select","rpc","insert","update","delete","subscribe"],On=Symbol.for("@symbo.ls/fetch:BUILTIN_ADAPTERS"),Sp=(()=>{if(typeof globalThis<"u"&&globalThis[On])return globalThis[On];let t={supabase:()=>Promise.resolve().then(()=>(fp(),lp)),rest:()=>Promise.resolve().then(()=>(dp(),pp)),local:()=>Promise.resolve().then(()=>(mp(),gp))};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,On,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[On]}catch{}return t})(),Cx=(t,e)=>{Sp[t]=e},Ax=t=>{let e={};for(let r of vx)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},_p=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,o=typeof e=="string"?e:typeof t=="string"?t:null;if(!o)return null;let n=Sp[o];if(!n)throw new Error(`Unknown db adapter: "${o}". Use registerAdapter() for adapters with optional deps.`);return(await n()).setup(r)},ro=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),o=e[2];return o==="ms"?r:o==="s"?r*1e3:o==="m"?r*6e4:o==="h"?r*36e5:0},dt=new Map,wp=new Map,eo=new Map,Ex=(t,e)=>{if(t.cache?.key)return t.cache.key;let r=Rx(t.params),o=`${t.from}:${t.method}:${JSON.stringify(r||"")}`;return e?`${o}:${e}`:o},io=t=>dt.get(t)||null,oo=(t,e,r)=>{let o=dt.get(t),n={data:e,error:r,time:Date.now(),stale:!1};dt.set(t,n);let s=wp.get(t);if(s)for(let i of s)C(i)&&i(n);return n},no=t=>{if(t){let e=dt.get(t);e&&(e.stale=!0);return}for(let[,e]of dt)e.stale=!0},Rn=t=>{if(t){dt.delete(t);return}dt.clear()},da=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:w(t)?{staleTime:ro(t),gcTime:3e5}:{staleTime:ro(t.stale||t.staleTime)||6e4,gcTime:ro(t.gc||t.gcTime||t.expire)||3e5,key:t.key},Pn=null,Tx=()=>{Pn||(Pn=setInterval(()=>{let t=Date.now();for(let[e,r]of dt){let o=wp.get(e);!(o&&o.size>0)&&t-r.time>(r.gcTime||3e5)&&dt.delete(e)}},3e4),Pn.unref&&Pn.unref())};Tx();yp=3,ua=t=>Math.min(1e3*2**t,3e4),kp=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:yp,delay:ua}:typeof e=="number"?{count:e,delay:ua}:{count:e.count??yp,delay:C(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:ua}},vp=async(t,e)=>{let{count:r,delay:o}=e,n;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(n=i.error,s<r){let a=C(o)?o(s,n):o;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(n=i,s<r){let a=C(o)?o(s,i):o;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:n}},sr={focus:new Set,online:new Set},bp=!1,Ox=()=>{if(bp||typeof window>"u")return;bp=!0;let t=()=>{for(let r of sr.focus)r()},e=()=>{for(let r of sr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},xp=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(w(t))return{from:t,method:"select",query:!0,on:"create"};if(S(t)){let o={...t};return o.from=o.from||r.__state||e.key,o.method=o.method||"select",o.on=o.on||"create",o.query===void 0&&(o.query=!0),o}return null},Rx=t=>(!t||C(t),t),$n=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},Cp=(t,e,r)=>{let o;if(!t)o=void 0;else if(C(t))o=t(e,e.state);else{o={};for(let n in t){let s=t[n];o[n]=C(s)?s(e,e.state):s}}return o},In=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(o,n)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:o,session:n,loading:!1}})};try{let o=await t.getSession();r(o?.user||null,o)}catch(o){console.warn("[fetch] Failed to restore auth session:",o.message)}t.onAuthStateChange&&t.onAuthStateChange((o,n)=>{r(n?.user||null,n)})},ha=async(t,e)=>{if(C(t.select))return t.auth!==!1&&await In(t,e),t;if(t.__resolved)return t.auth!==!1&&await In(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=_p(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 In(r,e),r):null},Et=(t,e,...r)=>{let o=C(t[e])?t[e]:null;o&&o.call(t,...r,t,t.state,t.context)},Nt=(t,e,r,...o)=>{let n=t&&C(t[r])?t[r]:null;n&&n.call(e,...o,e,e.state,e.context)},so=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let n=new FormData(r);for(let[s,i]of n.entries())e[s]=i;return e}let o=r.querySelectorAll("input, textarea, select");for(let n=0;n<o.length;n++){let s=o[n],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},Ne=(t,e,r,o={})=>{let n=r&&r.startsWith("~/"),s=n&&t.state?.root||t.state;if(s?.update)if(n){let i=r.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&i in e?s.update(e,{preventFetch:!0,...o}):s.update({[i]:e},{preventFetch:!0,...o})}else{let i=r?{[r]:e}:e;s.update(i,{preventFetch:!0,...o})}},Yt=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},he=async(t,e,r,o={})=>{let n=r?.fetch;if(!n||!e||!e.__ref||t.enabled===!1||C(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||C(t.skip)&&t.skip(e,e.state))return;let s=await ha(n,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:u,transform:p,single:d,auth:h,fields:g,as:m,limit:y,offset:b,order:x,headers:_,baseUrl:v,page:E,cursor:P,getNextPageParam:B,getPreviousPageParam:R,infinite:D,placeholderData:Q,initialData:V,select:N,keepPreviousData:Ft}=t,Dt=w(N)?N:void 0;if(l&&C(e.getQuery)){let H=e.getQuery(s.name||"paths");H&&(Dt=H.select||H.length&&H.join(",")||Dt)}let Gt=Cp(f,e,r),jt=da(u),Wo=kp(t),li=$n(e,r),Wb=li?`:${li}`:"",tt=jt?u?.key||`${a}:${c}:${JSON.stringify(Gt||"")}${D?":infinite":""}${E?":p"+JSON.stringify(E):""}${Wb}`:null;if(!i.__fetchInitialized&&tt&&(i.__fetchInitialized=!0,V!==void 0)){let H=C(V)?V():V;oo(tt,H,null)}if((c==="select"||c==="rpc")&&tt&&jt){let H=io(tt);if(H&&!H.error){let z=Date.now()-H.time,J=H.stale||z>(jt.staleTime||0),M=H.data;if(C(N)&&(M=N(M,e,e.state)),p&&(M=p(M,e,e.state)),Ne(e,M,m),!J){Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(Q!==void 0){let z=C(Q)?Q(e,e.state):Q;z!==void 0&&Ne(e,z,m)}}if(tt&&eo.has(tt)&&!o.force){let H=eo.get(tt);try{let z=await Promise.race([H,new Promise((J,M)=>setTimeout(()=>M("DEDUP_TIMEOUT"),15e3))]);if(z?.data!==void 0){let J=z.data;C(N)&&(J=N(J,e,e.state)),p&&(J=p(J,e,e.state)),Ne(e,J,m),Et(e,"onFetchComplete",J),Nt(t,e,"onFetchComplete",J)}}catch{}return}let Hb=!io(tt)?.data;Yt(e,{isFetching:!0,isLoading:Hb,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Et(e,"onFetchStart"),Nt(t,e,"onFetchStart");let re=r?.analyze?.emitNetwork,fi=re?typeof performance<"u"?performance.now():Date.now():0;re&&re({phase:"start",mode:"query",from:a,method:c,cacheKey:tt,lang:li});let uf=vp(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let M=await s.getSession();if(h===!0&&!M){let ut={message:"Not authenticated"};return Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ut,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",ut),Nt(t,e,"onFetchError",ut),{data:null,error:ut}}}let H=s[c];if(!C(H))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let z={from:a,select:Dt,params:Gt,single:d,limit:y,offset:b,order:x,headers:_,baseUrl:v},J=$n(e,r);if(J&&(z.headers={...z.headers,"Accept-Language":J}),E!==void 0){if(S(E))E.offset!==void 0&&(z.offset=E.offset),E.limit!==void 0&&(z.limit=E.limit),E.cursor!==void 0&&(z.params={...z.params,cursor:E.cursor});else if(typeof E=="number"){let M=t.pageSize||y||20;z.offset=(E-1)*M,z.limit=M}}if(P!==void 0&&(z.params={...z.params,cursor:P}),c==="insert"||c==="update"||c==="upsert"){let M;if(g===!0||t.on==="submit")M=so(e);else if(T(g)){let ut=so(e);M={};for(let ui of g)M[ui]=ut[ui]}else e.state?.parse?M=e.state.parse():S(e.state)&&(M={...e.state});p&&(M=p(M,e,e.state)),z.data=M}if(c==="rpc"){let M=Gt;if(t.on==="submit"){let ut=so(e);M=t.transformParams?t.transformParams(ut,e,e.state):ut}z.params=M}if(c==="subscribe"){let M=s.subscribe({from:a,params:Gt,on:t.subscribeOn},(ut,ui,kk)=>{Ne(e,ut,m),Et(e,"onFetchComplete",ut),Nt(t,e,"onFetchComplete",ut)});return i.__unsubscribe=M,{data:null,error:null,subscribed:!0}}return H(z)},Wo);tt&&eo.set(tt,uf);try{let H=await uf;if(H?.subscribed)return;let{data:z,error:J}=H||{};if(J){tt&&oo(tt,null,J),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:J,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",J),Nt(t,e,"onFetchError",J),re&&re({phase:"error",mode:"query",from:a,method:c,cacheKey:tt,error:J.message||J,durationMs:(typeof performance<"u"?performance.now():Date.now())-fi});return}if(z!==void 0){if((c==="select"||c==="rpc")&&tt){let ut=oo(tt,z,null);ut.gcTime=jt?.gcTime||3e5}let M=z;D&&T(z)&&(i.__pages||(i.__pages=[]),o.direction==="previous"?i.__pages.unshift(z):i.__pages.push(z),M=i.__pages.flat(),B&&(i.__nextPageParam=B(z,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),R&&(i.__prevPageParam=R(z,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),C(N)&&(M=N(M,e,e.state)),p&&(M=p(M,e,e.state)),(!Ft||M!==void 0)&&Ne(e,M,m),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Et(e,"onFetchComplete",M),Nt(t,e,"onFetchComplete",M),re&&re({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:tt,durationMs:(typeof performance<"u"?performance.now():Date.now())-fi})}}catch(H){Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:H,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",H),Nt(t,e,"onFetchError",H),re&&re({phase:"error",mode:"query",from:a,method:c,cacheKey:tt,error:H.message||String(H),durationMs:(typeof performance<"u"?performance.now():Date.now())-fi})}finally{tt&&eo.delete(tt)}},Px=(t,e,r)=>{let o=t.on,n=e.__ref;n.__fetchListeners||(n.__fetchListeners=[]);let s=t.__runner||he;if(o==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),n.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(o==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),n.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else o==="stateChange"&&(n.__fetchOnStateChange=()=>s(t,e,r))},Ix=(t,e,r)=>{let o=e.__ref;o.__fetchCleanups||(o.__fetchCleanups=[]),Ox();let n=t.refetchInterval;if(n){let s=typeof n=="number"?n:ro(n);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&he(t,e,r,{force:!0})},s);o.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=$n(e,r),a=Ex(t,i),c=io(a),l=da(t.cache);(!c||c.stale||Date.now()-c.time>(l?.staleTime||0))&&he(t,e,r,{force:!0})};sr.focus.add(s),o.__fetchCleanups.push(()=>sr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>he(t,e,r,{force:!0});sr.online.add(s),o.__fetchCleanups.push(()=>sr.online.delete(s))}},$x=(t,e,r)=>{if(!e.optimistic)return null;let o=t.__ref,n=e.as,s=t.state?.parse?t.state.parse():S(t.state)?{...t.state}:t.state;o.__optimisticSnapshot=s;let i=C(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Ne(t,i,n),s},pa=(t,e)=>{let r=t.__ref,o=r.__optimisticSnapshot;o!==void 0&&(Ne(t,o,e.as),delete r.__optimisticSnapshot)},Fx=async(t,e,r)=>{let o=r?.fetch;if(!o)return;let n=await ha(o,r);if(!n)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:p,headers:d,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:_}=t,v;if(c===!0||u==="submit")v=so(e);else if(T(c)){let R=so(e);v={};for(let D of c)v[D]=R[D]}else e.state?.parse?v=e.state.parse():S(e.state)&&(v={...e.state});l&&(v=l(v,e,e.state)),C(y)&&y(v,e,e.state);let E=m?$x(e,t,v):null;s.__fetching=!0,Yt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Et(e,"onFetchStart"),Nt(t,e,"onFetchStart");let P=r?.analyze?.emitNetwork,B=P?typeof performance<"u"?performance.now():Date.now():0;P&&P({phase:"start",mode:"mutation",from:a,method:i});try{if(p!==!1&&n.auth!==!1&&n.getSession){let Gt=await n.getSession();if(p===!0&&!Gt){E!==void 0&&pa(e,t);let jt={message:"Not authenticated"};Et(e,"onFetchError",jt),Nt(t,e,"onFetchError",jt);return}}let R=n[i];if(!C(R))return;let D={from:a,data:v,headers:d,baseUrl:h};t.params&&(D.params=Cp(t.params,e,r));let Q=$n(e,r);Q&&(D.headers={...D.headers,"Accept-Language":Q});let V=kp(t),N=await vp(()=>R(D),V),{data:Ft,error:Dt}=N||{};if(Dt){E!==void 0&&pa(e,t),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Dt,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",Dt),C(x)&&x(Dt,v,e),C(_)&&_(null,Dt,v,e),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:Dt.message||String(Dt),durationMs:(typeof performance<"u"?performance.now():Date.now())-B});return}if(delete s.__optimisticSnapshot,Ft!==void 0){let Gt=f?{[f]:Ft}:Ft;e.state?.update&&e.state.update(Gt,{preventFetch:!0})}if(Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Et(e,"onFetchComplete",Ft),Nt(t,e,"onFetchComplete",Ft),C(b)&&b(Ft,v,e),C(_)&&_(Ft,null,v,e),P&&P({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-B}),g){let Gt=T(g)?g:[g];for(let jt of Gt)if(jt===!0||jt==="*")for(let[Wo]of dt)Wo.startsWith(a+":")&&no(Wo);else no(jt)}}catch(R){E!==void 0&&pa(e,t),Yt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:R,status:"error",fetchStatus:"idle"}),Et(e,"onFetchError",R),Nt(t,e,"onFetchError",R),C(x)&&x(R,v,e),C(_)&&_(null,R,v,e),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:R.message||String(R),durationMs:(typeof performance<"u"?performance.now():Date.now())-B})}finally{s.__fetching=!1}},ao=(t,e,r,o)=>{if(!t||!o?.fetch)return;let s=G(t,e);if(!s)return;let i=T(s)?s.map(c=>xp(G(c,e),e)).filter(Boolean):[xp(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?Fx:he;c.on==="create"?f(c,e,o):Promise.resolve().then(()=>{Px({...c,__runner:f},e,o)}),!l&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Ix(c,e,o)}let a=e.__ref;a.refetch=c=>{for(let l of i)he(l,e,o,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__nextPageParam;if(l==null)return;let f={...c,cursor:l};he(f,e,o,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__prevPageParam;if(l==null)return;let f={...c,cursor:l};he(f,e,o,{direction:"previous",force:!0})}},Dx={invalidateQueries:t=>{if(!t){no();return}if(w(t))for(let[e]of dt)(e.startsWith(t)||e.includes(t))&&no(e);else if(T(t)){let e=t.join(":");for(let[r]of dt)r.includes(e)&&no(r)}},removeQueries:t=>{if(!t){Rn();return}if(w(t))for(let[e]of dt)(e.startsWith(t)||e.includes(t))&&Rn(e)},getQueryData:t=>io(t)?.data??void 0,setQueryData:(t,e)=>{let r=io(t),o=C(e)?e(r?.data):e;oo(t,o,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let o=await ha(r,e);if(!o)return;let n=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=o[t.method||"select"];if(!C(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let a=oo(n,i.data,null);a.gcTime=da(t.cache)?.gcTime||3e5}return i},getCache:()=>dt,clear:()=>Rn(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of dt)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||Rn(r))}},ga={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||eo.clear(),ao(e,t,t.state,t.context))}},jx=ao});function Dn(t){let e=this,{__ref:r}=e,o=[].concat(t),n=r.root[o[0]];if(!o||!o.length)return console.log(o,"on",e.key,"is undefined");for(;n.key===o[0]&&(o.shift(),!!o.length);)if(n=n[o[0]],!n)return;return n}function Ep(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 Tp(t){let e=this,{__ref:r}=e,o=r?.__children;if(o)for(let n=0;n<o.length;n++){let s=o[n],i=e[s];if(s===t)return i;if(C(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function Op(t,e=[]){let r=this,{__ref:o}=r,n=o?.__children;if(n){for(let s=0;s<n.length;s++){let i=n[s],a=r[i];if(i===t)e.push(a);else if(C(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function ya(t={}){let e=this;if(e.node?.style){for(let r in t){let o=t[r],n=e[r];if(S(o)&&n)ya.call(n,o);else if(o!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(o).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function Rp(t){let e=this;if(Me("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=Zo(e.parent.__ref.__children,e.key)),Me("remove",e,t)}function Pp(t){return this[t]}function Ip(t,e){let r=this;if(t)return r.update(t,e),r}function $p(t){return t?this.__ref&&this.__ref[t]:this.__ref}function jn(){return this.getRef("__children").map(t=>this[t])}function Ln(){return this.getRef().path}function Nn(t){let e=null,r=o=>o.__element&&o.root?.isRootState;if(!this)e=Ap();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let o=this.state&&r(this.state),n=C(this.state)&&this.parent.state&&r(this.parent.state);(o||n)&&(e=this.state.root||this.parent.state.root)}return e||(e=Ap()),t?e?.[t]:e}function Bn(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function Vn(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function zn(t){let e=this.getRoot()?.context;return t?e[t]:e}function Un(t){let e=this.context;return t?e[t]:e}function ba(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Ie.has(r)&&!tn.has(r)||e.push(r);return e}function xa(t=[]){let e=this,r={},o=ba.call(e),n=o.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<o.length;i++){let a=o[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||n&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=C(c&&c.parse)?c.parse():c;r[a]=C(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...u}=e[a];r[a]=u}else St(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Fn(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let o=xa.call(r,t),n=t.length?new Set(t):null;for(let s in o){if(n&&n.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=o[s];Array.isArray(i)?o[s]=i.map(a=>j(a)?Fn.call(a,t,e):a):j(i)&&(o[s]=Fn.call(i,t,e))}return o}function lo(...t){if(ge!=="test"&&ge!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(o=>console.log(`%c${o}:
|
|
15
|
+
`,"font-weight: bold",e[o])):(console.log(r.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function jp(...t){(ge==="test"||ge==="development")&&console.log(...t)}function Wn(...t){(ge==="test"||ge==="development")&&console.warn(...t)}function ir(...t){if(ge==="test"||ge==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&lo.call(this),new Error(...t)}}function Hn(){let t=this,{key:e,parent:r}=t,{__children:o}=r.__ref,n=o.indexOf(e),s=o[n+1];return r[s]}function qn(t){let e=t||this,{key:r,parent:o}=e,{__children:n}=o.__ref;if(!n)return;let s=n.indexOf(r);return o[n[s-1]]}function Gn(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,o={},n;for(let s in t)t[s]!==r[s]&&(n=!0,o[s]=t[s]);return{changed:s=>{if(!n)return;let i=s(o,Y(r));for(let a in o)r[a]=o[a];return i},timeout:(s,i)=>{if(!n)return;let a=setTimeout(()=>{s(o),clearTimeout(a)},i)}}}function Lp(t,...e){let r=this.context,o=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(o)try{let n=o.call(this,...e);return n&&typeof n.then=="function"&&n.catch(s=>{ir.call(this,s)}),n}catch(n){if(ir.call(this,n),r?.strictMode)throw n}}async function Kn(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:n}=await Promise.resolve().then(()=>(Be(),co));await n(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:n}=await Promise.resolve().then(()=>(Be(),co));await n(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(Be(),co)).then(({resolveDb:n})=>n(e));e.__resolving=r;let o=await r;if(e.__resolved=o,t.context.fetch=o,delete e.__resolving,o.getSession){let{initAdapterAuth:n}=await Promise.resolve().then(()=>(Be(),co));await n(o,t.context)}return o}function Yn(t){let e=this,r=t||Tn.useStateQuery||e.context?.useStateQuery;if(!r)return null;let o={};if(ma(e,o),r===!0)return o;let n=Wx[r];return n?n(o):o}function Np(t,e){return!!(Gr.has(t)||e?.context?.methods?.[t])}var ge,Fp,Mn,Ap,Dp,ma,Lx,Mp,Mx,Nx,Bx,Vx,zx,Ux,Wx,Bp=I(()=>{aa();rr();it();ne();Ai();Qe();ca();ge="production";Fp=null,Mn=t=>{Fp=t||null},Ap=()=>Fp||null;Dp=(t,e,r,o)=>Object.defineProperty(t,e,{get:r,set:o});ma=(t,e)=>{let r=t.__ref;if(!r)return;let o=r.__state;o&&typeof o=="string"&&Lx(e,o);let n=r.__children;if(n)for(let a=0;a<n.length;a++){let c=t[n[a]];c&&c.__ref&&ma(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&ma(i,e)},Lx=(t,e)=>{let r=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;for(let n=0;n<r.length;n++){let s=r[n];n===r.length-1?o[s]||(o[s]=!0):(o[s]===!0&&(o[s]={}),o[s]||(o[s]={}),o=o[s])}},Mp=(t,e=0)=>{let r=" ".repeat(e),o=Object.entries(t);return o.length?o.map(([n,s])=>s===!0?`${r}${n}`:`${r}${n} {
|
|
16
|
+
${Mp(s,e+1)}
|
|
17
17
|
${r}}`).join(`
|
|
18
|
-
`):""},
|
|
19
|
-
${
|
|
20
|
-
}`,Nx=t=>{let e={fields:{},include:[]},r=(o,n)=>{let s=[];for(let i in o)if(o[i]===!0)s.push(i);else{let a=n?`${n}.${i}`:i;e.include.push(a),r(o[i],a)}s.length&&(e.fields[n||"_root"]=s)};return r(t,""),e},
|
|
18
|
+
`):""},Mx=t=>`{
|
|
19
|
+
${Mp(t,1)}
|
|
20
|
+
}`,Nx=t=>{let e={fields:{},include:[]},r=(o,n)=>{let s=[];for(let i in o)if(o[i]===!0)s.push(i);else{let a=n?`${n}.${i}`:i;e.include.push(a),r(o[i],a)}s.length&&(e.fields[n||"_root"]=s)};return r(t,""),e},Bx=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:o}=e(t),n=[];return r&&n.push(`$select=${r}`),o&&n.push(`$expand=${o}`),n.join("&")},Vx=(t,e)=>{let r=[],o=[],n=new Set,s=(f,u,p)=>{n.add(u),p&&o.push(`LEFT JOIN ${u} ON ${u}.${p}_id = ${p}.id`);for(let d in f)f[d]===!0?r.push(`${u}.${d}`):s(f[d],d,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...n][0]||"_root",c=r.length?r.join(", "):"*",l=o.length?`
|
|
21
21
|
`+o.join(`
|
|
22
22
|
`):"";return`SELECT ${c}
|
|
23
|
-
FROM ${a}${l}`},
|
|
23
|
+
FROM ${a}${l}`},zx=t=>{let e=[],r=(o,n)=>{for(let s in o){let i=n?`${n}/${s}`:s;o[s]===!0?e.push(i):r(o[s],i)}};return r(t,""),e},Ux=t=>{let e=o=>{let n=[];for(let s in o)o[s]===!0?n.push(s):n.push(`${s}(${e(o[s])})`);return n.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},Wx={graphql:Mx,"json-api":Nx,odata:Bx,sql:Vx,supabase:Ux,paths:zx}});var Hx,Vp,zp=I(()=>{fn();Hx={snapshotId:cn},Vp=(t,e)=>{let r=t.__ref,{currentSnapshot:o,calleeElement:n}=e;if(!n||n===t){let i=Hx.snapshotId();return r.__currentSnapshot=i,[i,t]}let s=n.__ref.__currentSnapshot;return o<s?[s,n,!0]:[s,n]}});var Sa,Up,Wp=I(()=>{Sa=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Up=t=>typeof t=="string"&&Sa.has(t)});async function Hp(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 qp=I(()=>{});function qx(t){return/^[0-9.]+$/.test(t)&&t!==""}var Xt,Ve,fo,Zt,Gp,Kp=I(()=>{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||!qx(e)?`${Xt.symbols.url}/${t}`:`${Xt.symbols.url}/${t}/${e}.js`}},Ve={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},fo=(t={})=>{let{packageManager:e}=t;return Ve[e]||null},Zt=(t,e="latest",r="esmsh")=>(Xt[r]||Xt.esmsh).formatUrl(t,e),Gp=(t,e="skypack")=>{let r=t.dependencies||{},o=Object.keys(r);if(!o.length)return"";let n={};for(let s of o){let i=r[s]||"latest";n[s]=Zt(s,i,e)}return`<script type="importmap">{
|
|
24
24
|
"imports": ${JSON.stringify(n,null,2)}
|
|
25
|
-
}<\/script>`}});var
|
|
26
|
-
`)),qx=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var Sa,dd,hd=I(()=>{"use strict";it();Sa=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,o)=>Math.abs(o-t)<Math.abs(r-t)?o:r),dd=(t,e)=>(t=parseFloat(t),S(e)&&(e=Object.values(e)),Sa(t,e))});function ho(t){let e=String(t||"").trim();if(!e)return{owner:gd,key:"",full:""};let r=null,o=e;if(e.includes("/")){let s=e.indexOf("/");r=e.slice(0,s),o=e.slice(s+1)}o=o.replace(/\.symbo\.ls$/iu,""),r||(r=gd);let n=o?`${r}/${o}`:"";return{owner:r,key:o,full:n}}async function _a(t,e={}){if((e.provider||"kv")==="api")return md(t,e);let o=await Zx(t,e);return o||md(t,e)}async function Zx(t,e={}){let r=e.kvBaseUrl||Xx,o=e.env||"production",n=`${r}/kv/${encodeURIComponent(t)}?env=${o}`;try{let s=await fetch(n,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function md(t,e={}){let r=e.apiBaseUrl||Yx,{key:o}=ho(t);try{let n=`${r}/core/projects/libraries/available?search=${encodeURIComponent(o)}&limit=10`,s=await fetch(n,{method:"GET"});if(!s.ok)return null;let i=await s.json(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(d=>{let{key:h}=ho(d?.key);return h.toLowerCase()===o.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,p=await fetch(f,{method:"GET"});if(!p.ok)return null;let u=await p.json();return u?.data||u||null}catch{return null}}async function yd(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async o=>{if(S(o))return o;if(w(o)){let{full:n}=ho(o);if(!n)return null;try{let s=await _a(n,e);return s||console.warn(`[smbls] Shared library "${n}" not found`),s}catch(s){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,s.message),null}}return null}))).filter(Boolean)}var gd,Xx,Yx,Yn,Zn,bd=I(()=>{"use strict";it();gd="system",Xx="https://smbls-kv.nika-980.workers.dev",Yx="https://api.symbols.app";Yn=(t,e)=>{for(let r in e)r in t?S(t[r])&&S(e[r])&&Yn(t[r],e[r]):t[r]=e[r]},Zn=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let o=e[r];if(S(o)){for(let n in o)if(Object.prototype.hasOwnProperty.call(o,n))if(S(o[n])&&S(t[n]))if(n==="designSystem")Yn(t[n],o[n]);else for(let s in o[n])s in t[n]||(t[n][s]=o[n][s]);else n in t||(t[n]=o[n])}}}});var xd,Sd,_d,Jn,wd,Qn,kd,lr,vd=I(()=>{"use strict";it();xd=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Sd=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)}},_d=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Jn=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,"")),wd=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Qn=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),kd=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},lr=t=>{if(T(t))return t;if(w(t))return t.split(" ");if(S(t))return Object.values(t);if(ne(t))return[t]}});var Cd,Ad=I(()=>{"use strict";Cd=()=>{let t=document.styleSheets[0],e="";if(t)try{let r=t.cssRules||t.rules;for(let o=0;o<r.length;o++)e+=r[o].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return e}});var vt,go,ts,es,Ed=I(()=>{"use strict";vt=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let r=t.context;if(!r)return null;let o=r.assets&&r.assets[e]||r.files&&r.files[e];return o?typeof o=="string"?{src:o,type:null,variants:null}:typeof o=="object"&&typeof o.src=="string"?o:null:null},go=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let r=t.some(n=>typeof n.width=="number"),o=[];for(let n of t)r&&typeof n.width=="number"?o.push(`${n.src} ${n.width}w`):r||(n.scale===1&&e?o.push(n.src):n.scale&&n.scale!==1&&o.push(`${n.src} ${n.scale}x`));return o.join(", ")},ts=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return go(e,{keepOneX:!1})},es=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let r=new Map;for(let a of t.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let o=[];for(let[a,c]of r)a!==t.type&&o.push({tag:"source",attr:{type:a,srcset:go(c,{keepOneX:!0})}});let n=r.get(t.type)||[],s=go(n,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...o,{tag:"img",attr:i}]}});var Td={};$(Td,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>Mf,DOMQ_PROPERTIES:()=>$e,ENV:()=>ru,HTML_TAGS:()=>Qr,METHODS:()=>Xr,METHODS_EXL:()=>en,NODE_ENV:()=>Kt,OPTIONS:()=>En,PACKAGE_MANAGER_TO_CDN:()=>ze,PARSED_DOMQ_PROPERTIES:()=>tn,PROPS_METHODS:()=>De,STATE_METHODS:()=>Fe,STATE_PROPERTIES:()=>Nf,SVG_TAGS:()=>ku,TYPES:()=>Xo,UNIVERSAL_RESERVED_KEYS:()=>xa,addCaching:()=>Ji,addContext:()=>Zi,addExtend:()=>Ru,addExtends:()=>kt,addItemAfterEveryElement:()=>vf,addProtoToArray:()=>Jo,addRef:()=>Ki,applyDependentState:()=>Ju,applyEvent:()=>na,applyEventUpdate:()=>sa,applyExtends:()=>Iu,applyProps:()=>_n,arrayContainsOtherArray:()=>yf,arraysEqual:()=>Af,arrayzeValue:()=>lr,buildImgSrcset:()=>ts,buildSourcesAndImg:()=>es,cache:()=>sp,call:()=>Lp,captureSnapshot:()=>Bp,checkForStateTypes:()=>Ku,checkIfInherits:()=>oa,checkIfStringIsInArray:()=>Of,clone:()=>zf,cloneAndMergeArrayExtend:()=>pn,cloneFunction:()=>fu,concatAddExtends:()=>Au,copyJavaScriptToClipboard:()=>Sd,copyStringToClipboard:()=>xd,createBasedOnType:()=>Gi,createElement:()=>qu,createElementExtends:()=>Ii,createExtends:()=>hn,createExtendsFromKeys:()=>to,createExtendsStack:()=>Li,createIfConditionFlag:()=>uu,createInheritedState:()=>Xu,createKey:()=>ln,createNestedObject:()=>Xf,createNestedObjectByKeyPath:()=>Zu,createObjectWithoutPrototype:()=>ki,createParent:()=>Xi,createPath:()=>Yi,createProps:()=>wn,createPropsStack:()=>Wi,createRoot:()=>Hu,createScope:()=>ep,createSnapshotId:()=>cn,customDecodeURIComponent:()=>Lf,customEncodeURIComponent:()=>Df,cutArrayAfterValue:()=>wf,cutArrayBeforeValue:()=>_f,debounce:()=>un,debounceOnContext:()=>au,decodeNewlines:()=>Ff,deepClone:()=>X,deepContains:()=>Gf,deepDefaults:()=>Yn,deepDestringifyFunctions:()=>Mt,deepExtend:()=>Pi,deepMerge:()=>W,deepMergeExtends:()=>ie,deepStringifyFunctions:()=>rn,defineSetter:()=>Fp,destringifyGlobalScope:()=>nn,detectHeightOnInit:()=>Yp,detectInfiniteLoop:()=>Qf,document:()=>q,encodeNewlines:()=>$f,error:()=>cr,excludeKeysFromObject:()=>eu,exec:()=>G,extendCachedRegistry:()=>Eu,extendStackRegistry:()=>gn,extractArrayExtend:()=>yn,fetchLibraryData:()=>_a,fibonacciNumberByIndex:()=>Jp,filterArrays:()=>Ef,filterArraysFast:()=>Tf,finalizeExtends:()=>Ni,findClosestNumber:()=>Sa,findClosestNumberInFactory:()=>dd,findInheritedState:()=>ra,findKeyPosition:()=>Pf,flattenExtend:()=>eo,formatDate:()=>Kp,generateHash:()=>Ti,generateKey:()=>an,generateMetaTags:()=>fd,get:()=>Rp,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>$u,getCdnProviderFromConfig:()=>uo,getChildStateInKey:()=>ea,getChildren:()=>Dn,getContext:()=>zn,getCookie:()=>bu,getDB:()=>Gn,getEmotionStylesheet:()=>Cd,getExtendsInElement:()=>Pu,getExtendsStack:()=>dn,getExtendsStackRegistry:()=>Ri,getFrequencyInArray:()=>bf,getHashedExtend:()=>mn,getImportMapScript:()=>qp,getInObjectByPath:()=>Jf,getLocalStorage:()=>Su,getNev:()=>iu,getPageMetadata:()=>ud,getParentStateInKey:()=>ta,getPath:()=>Ln,getQuery:()=>Kn,getRef:()=>Ip,getRoot:()=>jn,getRootContext:()=>Vn,getRootData:()=>Bn,getRootState:()=>Mn,getRootStateInKey:()=>Qi,getSpreadChildren:()=>Fu,global:()=>hf,hasFunction:()=>Yr,hasHandlerPlugin:()=>Zr,hasOwnProperty:()=>Wf,inheritChildExtends:()=>Fi,inheritChildPropsExtends:()=>$i,inheritParentProps:()=>kn,inheritRecursiveChildExtends:()=>Di,initProps:()=>zu,is:()=>_t,isArray:()=>T,isBoolean:()=>bi,isContextComponent:()=>Du,isCyclic:()=>tu,isDOMNode:()=>xt,isDate:()=>Si,isDefined:()=>St,isDevelopment:()=>Me,isEmpty:()=>_i,isEmptyObject:()=>Hf,isEqualDeep:()=>wi,isFunction:()=>C,isHtmlElement:()=>Ko,isLocal:()=>su,isMethod:()=>Mp,isMobile:()=>mu,isNode:()=>de,isNot:()=>mf,isNotProduction:()=>sr,isNull:()=>xi,isNumber:()=>ne,isObject:()=>S,isObjectLike:()=>L,isPhoto:()=>td,isProduction:()=>Ne,isStaging:()=>nu,isState:()=>Yu,isString:()=>w,isStringFunction:()=>lu,isTest:()=>vi,isTesting:()=>ou,isUndefined:()=>ct,isUniversallyReservedKey:()=>zp,isValidHtmlTag:()=>vu,joinArrays:()=>Hr,jointStacks:()=>Ou,keys:()=>ya,loadCssFile:()=>sd,loadJavascript:()=>id,loadJavascriptFile:()=>rd,loadJavascriptFileEmbedSync:()=>nd,loadJavascriptFileSync:()=>od,loadRemoteCSS:()=>ad,loadRemoteScript:()=>po,log:()=>Dp,logGroupIf:()=>hu,logIf:()=>du,lookdown:()=>Ep,lookdownAll:()=>Tp,lookup:()=>Ap,lowercaseFirstLetter:()=>rr,makeObjectWithoutPrototype:()=>qf,map:()=>Bf,mapStringsWithContextComponents:()=>bn,matchesComponentNaming:()=>ae,memoize:()=>cu,merge:()=>Z,mergeSharedLibraries:()=>Zn,nextElement:()=>Wn,normalizeLibraryKey:()=>ho,objectToString:()=>on,objectizeStringProperty:()=>Sn,overwrite:()=>sn,overwriteDeep:()=>wt,overwriteShallow:()=>nr,overwriteState:()=>Qu,parse:()=>ba,parseDeep:()=>$n,pickupElementFromProps:()=>Vi,pickupPropsFromElement:()=>Bi,previousElement:()=>Hn,propExists:()=>Vu,propertizeElement:()=>zi,propertizeUpdate:()=>Bu,remove:()=>Op,removeChars:()=>_d,removeCookie:()=>xu,removeDuplicateProps:()=>Cn,removeDuplicatesInArray:()=>qr,removeFromArray:()=>xf,removeFromObject:()=>Kf,removeNestedKeyByPath:()=>Yf,removeValueFromArray:()=>Zo,removeValueFromArrayAll:()=>kf,reorderArrayByValues:()=>Cf,replaceLiteralsWithObjectFields:()=>er,replaceOctalEscapeSequences:()=>If,resolveAsset:()=>vt,resolveHandler:()=>Jr,resolveSharedLibraries:()=>yd,returnValueAsText:()=>qi,runPluginHook:()=>Xt,self:()=>gf,setActiveRootState:()=>Nn,setCookie:()=>yu,setHashedExtend:()=>Oi,setInObjectByPath:()=>Zf,setLocalStorage:()=>_u,setNodeStyles:()=>ma,setProps:()=>Pp,setPropsPrototype:()=>vn,spotByPath:()=>Fn,srcsetFor:()=>go,stringIncludesAny:()=>Qo,stringToObject:()=>Uf,swapItemsInArray:()=>Sf,syncProps:()=>An,toCamelCase:()=>Jn,toDashCase:()=>Qn,toDescriptionCase:()=>kd,toTitleCase:()=>wd,toggleFullscreen:()=>Wp,triggerEventOn:()=>je,triggerEventOnUpdate:()=>np,trimStringFromSymbols:()=>Rf,unstackArrayOfObjects:()=>Yo,update:()=>Ui,updateProps:()=>Uu,variables:()=>qn,verbose:()=>fo,warn:()=>Un,window:()=>k});var O=I(()=>{"use strict";fn();Ci();it();se();ir();tr();Wr();pu();gu();Kr();Ur();wu();Ai();Mi();Hi();xn();Gu();tp();or();rp();jp();aa();Vp();ia();Up();Hp();Gp();Xp();Zp();Qp();ed();cd();pd();hd();bd();vd();Ad();Ed()});var bb=pi((E$,yb)=>{var Dr=1e3,Lr=Dr*60,Nr=Lr*60,Je=Nr*24,j0=Je*7,B0=Je*365.25;yb.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return V0(t);if(r==="number"&&isFinite(t))return e.long?U0(t):z0(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function V0(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*B0;case"weeks":case"week":case"w":return r*j0;case"days":case"day":case"d":return r*Je;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Nr;case"minutes":case"minute":case"mins":case"min":case"m":return r*Lr;case"seconds":case"second":case"secs":case"sec":case"s":return r*Dr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function z0(t){var e=Math.abs(t);return e>=Je?Math.round(t/Je)+"d":e>=Nr?Math.round(t/Nr)+"h":e>=Lr?Math.round(t/Lr)+"m":e>=Dr?Math.round(t/Dr)+"s":t+"ms"}function U0(t){var e=Math.abs(t);return e>=Je?ni(t,e,Je,"day"):e>=Nr?ni(t,e,Nr,"hour"):e>=Lr?ni(t,e,Lr,"minute"):e>=Dr?ni(t,e,Dr,"second"):t+" ms"}function ni(t,e,r,o){var n=e>=r*1.5;return Math.round(t/r)+" "+o+(n?"s":"")}});var Sb=pi((T$,xb)=>{function W0(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=n,r.enabled=a,r.humanize=bb(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let p=0;for(let u=0;u<f.length;u++)p=(p<<5)-p+f.charCodeAt(u),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(f){let p,u=null,d,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),x=b-(p||b);y.diff=x,y.prev=p,y.curr=b,p=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let _=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(E,P)=>{if(E==="%%")return"%";_++;let B=r.formatters[P];if(typeof B=="function"){let R=m[_];E=B.call(y,R),m.splice(_,1),_--}return E}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=f,g.useColors=r.useColors(),g.color=r.selectColor(f),g.extend=o,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(f)),h),set:m=>{u=m}}),typeof r.init=="function"&&r.init(g),g}function o(f,p){let u=r(this.namespace+(typeof p>"u"?":":p)+f);return u.log=this.log,u}function n(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let p=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let u of p)u[0]==="-"?r.skips.push(u.slice(1)):r.names.push(u)}function s(f,p){let u=0,d=0,h=-1,g=0;for(;u<f.length;)if(d<p.length&&(p[d]===f[u]||p[d]==="*"))p[d]==="*"?(h=d,g=u,d++):(u++,d++);else if(h!==-1)d=h+1,g++,u=g;else return!1;for(;d<p.length&&p[d]==="*";)d++;return d===p.length}function i(){let f=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),f}function a(f){for(let p of r.skips)if(s(f,p))return!1;for(let p of r.names)if(s(f,p))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}xb.exports=W0});var _b=pi((bt,si)=>{bt.formatArgs=q0;bt.save=G0;bt.load=K0;bt.useColors=H0;bt.storage=X0();bt.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();bt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function H0(){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 q0(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+si.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(o=r))}),t.splice(o,0,e)}bt.log=console.debug||console.log||(()=>{});function G0(t){try{t?bt.storage.setItem("debug",t):bt.storage.removeItem("debug")}catch{}}function K0(){let t;try{t=bt.storage.getItem("debug")||bt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function X0(){try{return localStorage}catch{}}si.exports=Sb()(bt);var{formatters:Y0}=si.exports;Y0.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var yt=null,Ho=0,qo=[],mi=()=>yt,Jb=t=>{yt=t};function Pe(t){let e=new Set;function r(){return yt&&(e.add(yt),yt._sources.add(s)),t}function o(i){i!==t&&(t=i,pf(e))}function n(){return t}let s={get:r,set:o,peek:n,_subscribers:e,_type:"signal"};return s}function Qb(t){let e,r=!0,o=new Set,n={_sources:new Set,_type:"computed",_subscribers:o,_execute(){gi(n);let s=yt;yt=n;try{let i=t();i!==e?(e=i,r=!1,pf(o)):r=!1}finally{yt=s}},_notify(){r=!0,o.size>0&&n._execute()},get(){return yt&&(o.add(yt),yt._sources.add(n)),r&&n._execute(),e},peek(){return r&&n._execute(),e}};return n._execute(),n}var di=new Set,hi=!1;function st(t,e){let r=e?.depth??0,o={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(o._disposed)return;gi(o);let n=yt;yt=o;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{yt=n}},_notify(){o._disposed||(Ho>0?qo.push(o):uf(o))},dispose(){o._disposed=!0,gi(o)}};return o._execute(),o}function Ie(t){Ho++;try{t()}finally{Ho--,Ho===0&&ex()}}function uf(t){di.add(t),hi||(hi=!0,queueMicrotask(tx))}function tx(){hi=!1;let t=Array.from(di).sort((e,r)=>e._depth-r._depth);di=new Set;for(let e=0;e<t.length;e++){let r=t[e];r._disposed||r._execute()}}function ex(){for(let t=0;t<qo.length;t++)uf(qo[t]);qo.length=0}function pf(t){let e=Array.from(t);for(let r=0;r<e.length;r++)e[r]._notify()}function gi(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Go=Symbol("store"),df=Symbol("signals"),yi=t=>!t||typeof t!="object"||Array.isArray(t)||t[Go]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function Nt(t,e,r){r===void 0&&(r=0);let o={},n={},s=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let y in t){let b=t[y];r<s&&b&&typeof b=="object"&&!yi(b)?(n[y]=b,o[y]=Pe(Nt(b,e,r+1))):(n[y]=b,o[y]=Pe(b))}let i=new Proxy(n,{get(y,b){if(b===Go)return!0;if(b===df)return o;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return p;if(b==="values")return u;if(b==="replace")return d;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return c;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(o,b))return o[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==i)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&mi()!=null)return o[b]=Pe(void 0),o[b].get()},set(y,b,x){return b==="__element"||b==="parent"||b==="root"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(o,b)?(y[b]=x,x&&typeof x=="object"&&!yi(x)?o[b].set(Nt(x,e,r+1)):o[b].set(x)):(y[b]=x,x&&typeof x=="object"&&!yi(x)?o[b]=Pe(Nt(x,e,r+1)):o[b]=Pe(x)),!0)},has(y,b){return b in o||b in y},ownKeys(y){return Object.keys(o)},getOwnPropertyDescriptor(y,b){return b in o?{enumerable:!0,configurable:!0,value:o[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return o[b]&&(o[b].set(void 0),delete o[b]),delete y[b],!0}});function a(y,b){Ie(()=>{for(let _ in y)i[_]=y[_]});let x=n.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,i,x.context),i}function c(y){return a(y,{quiet:!0})}function l(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let x in o){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let _=o[x].peek();_&&_[Go]?b[x]=_.parse(y):b[x]=_}return b}function f(){return Ie(()=>{for(let y in o)delete i[y]}),i}function p(){return Object.keys(o)}function u(){return Object.keys(o).map(y=>o[y].peek())}function d(y){return Ie(()=>{for(let b in o)b in y||delete i[b];for(let b in y)i[b]=y[b]}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){f(),n.__element=null,n.parent=null}return i}function pt(t){return t&&t[Go]===!0}function rx(t){return t[df]}var hr={};$(hr,{CSS_NATIVE_COLOR_REGEX:()=>ce,CSS_UNITS:()=>zr,applyMediaSequenceVars:()=>dr,applySequenceGlobalVars:()=>Fa,applySequenceVars:()=>qe,changeLightness:()=>oS,colorStringToRgbaArray:()=>ye,convertSvgToSymbol:()=>Da,findHeadingLetter:()=>Gd,findHeadings:()=>$a,generateSequence:()=>Bt,generateSequencePosition:()=>BS,generateSprite:()=>cs,generateSubSequence:()=>Pa,getColorShade:()=>$d,getDefaultOrFirstKey:()=>mo,getFnPrefixAndValue:()=>He,getFontFace:()=>iS,getFontFaceEach:()=>yo,getFontFaceEachString:()=>Nd,getFontFaceString:()=>ka,getFontFormat:()=>Dd,getRgbTone:()=>ur,getSequenceValue:()=>Ia,getSequenceValueBySymbols:()=>qd,getSequenceValuePropertyPair:()=>_e,getSubratio:()=>Ra,getSubratioDifference:()=>Oa,hexToRgb:()=>Qx,hexToRgbArray:()=>Od,hexToRgba:()=>eS,hslToRgb:()=>Id,isCSSVar:()=>et,isGoogleFontsUrl:()=>os,isResolvedColor:()=>be,isScalingUnit:()=>Vr,mixTwoColors:()=>Jx,mixTwoRgb:()=>rS,mixTwoRgba:()=>Fd,numToLetterMap:()=>Se,opacify:()=>rs,parseColorToken:()=>Ue,resolveFileUrl:()=>Qt,returnSubThemeOrDefault:()=>sS,rgbArrayToHex:()=>Rd,rgbToHSL:()=>Pd,rgbToHex:()=>tS,setCustomFont:()=>wa,setCustomFontMedia:()=>pr,setFontImport:()=>ns,setInCustomFontMedia:()=>Ld,setScalingVar:()=>Ta,setSubScalingVar:()=>Wd,setVariables:()=>VS,splitTopLevelCommas:()=>fr});var Vr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",zr=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];O();var ye=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&q&&k){let e=q.body.appendChild(q.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){q.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return q.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,q.body.removeChild(e)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(e=>+e)):[0,0,0,0]},Jx=(t,e,r=.5)=>(t=ye(t),e=ye(e),Fd(t,e,r)),Qx=(t,e=1)=>{let[r,o,n]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${o},${n})`},Od=(t,e=1)=>{let[r,o,n]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,o,n]},tS=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Rd=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),eS=(t,e=1)=>{let[r,o,n]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${o},${n},${e})`},rS=(t,e,r=.5)=>{let o=[];for(let n=0;n<3;n++)o[n]=~~(t[n]+(e[n]-t[n])*r);return`rgb(${o})`},oS=(t,e)=>{let[r,o,n]=e,s=Math.max(0,Math.min(100,n+parseFloat(t)));return[r,o,s]},Pd=(t,e,r)=>{let o=Math.max(t,e,r),n=o-Math.min(t,e,r),s=1-Math.abs(o+o-n-1),i=n&&(o==t?(e-r)/n:o==e?2+(r-t)/n:4+(t-e)/n);return[60*(i<0?i+6:i),s?n/s:0,(o+o-n)/2]},Id=(t,e,r,o=e*Math.min(r,1-r),n=(s,i=(s+t/30)%12)=>r-o*Math.max(Math.min(i-3,9-i,1),-1))=>[n(0),n(8),n(4)],$d=(t,e)=>{let r=parseInt(t,16),o=(r>>16)+e;o>255?o=255:o<0&&(o=0);let n=(r>>8&255)+e;n>255?n=255:n<0&&(n=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|n<<8|o<<16)+16777216).toString(16).slice(1)},Fd=(t,e,r=.5)=>{let o=[];for(let n=0;n<4;n++){let s=n===3?i=>i:Math.round;o[n]=s(t[n]+(e[n]-t[n])*r)}return`rgba(${o})`},rs=(t,e)=>{let r=ye(t);if(!r){sr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},et=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,ce=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,nS=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Ue=t=>{if(!w(t))return null;if(ce.test(t))return{passthrough:t};if(et(t))return{cssVar:t};let e=t.match(nS);if(!e)return null;let[,r,o,n]=e,s=o!==void 0?`0.${o}`:void 0,i=n&&n[0]==="="?n.slice(1):n;return{name:r,alpha:s,tone:i}},be=t=>w(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),fr=t=>{let e=[],r="",o=0;for(let n of t){if(n==="("?o+=1:n===")"&&o>0&&(o-=1),n===","&&o===0){e.push(r),r="";continue}r+=n}return(r.length||!e.length)&&e.push(r),e},ur=(t,e)=>{w(t)&&t.includes("rgb")&&(t=ye(t).join(", ")),w(t)&&(t=t.split(",").map(n=>parseFloat(n.trim()))),ne(e)&&(e+="");let r=Rd(t),o=e.slice(0,1);if(o==="-"||o==="+"){let n=$d(r,parseFloat(e));return Od(n).join(", ")}else{let[n,s,i]=t,a=Pd(n,s,i),[c,l,f]=a;return Id(c,l,parseFloat(e)/100*255)}};var sS=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Qt=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let r=e[t];return r?r.content&&r.content.src:null},mo=(t,e)=>{if(t[e])return t[e].value;if(t.default)return t[t.default].value;let r=Object.keys(t)[0];return r&&t[r]&&t[r].value},Dd=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},os=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),ns=t=>`@import url('${t}');`,Ld=t=>`@font-face { ${t} }`,wa=(t,e,r,o={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Dd(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
|
|
25
|
+
}<\/script>`}});var Yp,Xp=I(()=>{Yp=t=>{if(!t)return"";let e=new Date(t),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),o=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${o}, ${r}`}});var Zp,Jp=I(()=>{Zp=(t,e)=>{let r=setTimeout(()=>{let{props:o}=t;if(!e.clientHeight){let{node:{clientHeight:n}}=t;n&&(e.clientHeight=n)}if(e.active){if(o.height==="auto")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let n=setTimeout(()=>{t.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(n)},450)}else t.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var Qp,td=I(()=>{Qp=function(t){let e=[0,1];for(let r=2;r<=t;r++)e[r]=e[r-1]+e[r-2];return e[t]}});var ed,rd=I(()=>{ed=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function uo(t,e={}){let{window:r=globalThis}=e,{document:o=r.document}=e;return new Promise((n,s)=>{let i=o.querySelector(`script[src="${t}"]`);if(i)return n(i);let a=o.createElement("script");a.src=t,a.async=e.async===!0,a.type=e.type||"text/javascript",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,n(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},o.head.appendChild(a)})}async function cd(t,e={}){let{window:r=globalThis}=e,{document:o=r.document}=e;return new Promise((n,s)=>{let i=o.querySelector(`link[href="${t}"]`);if(i)return n(i);let a=o.createElement("link");a.href=t,a.rel=e.rel||"stylesheet",a.type="text/css",a.media=e.media||"all",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,n(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},o.head.appendChild(a)})}var od,nd,sd,id,ad,ld=I(()=>{od=(t,e=!1,r=document,o="text/javascript")=>new Promise((n,s)=>{try{let i=r.createElement("script");i.type=o,i.async=e,i.src=t,i.addEventListener("load",a=>{n({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),nd=(t,e=document,r="text/javascript")=>new Promise((o,n)=>{let s=e.createElement("script");s.type=r,s.src=t;let i=e.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",e.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),o()},s.onerror=()=>{e.body.removeChild(i),n(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),sd=(t,e=document,r,o="text/javascript")=>{let n=new window.XMLHttpRequest;if(n.open("GET",t,!1),n.send(),n.status===200){let s=e.createElement("script");s.type=o,s.text=n.responseText,e.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${t}`)},id=(t,e=!1,r=document,o="text/javascript")=>new Promise((n,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{n({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),ad=(t,e=!1,r=document,o="text/javascript",n="smbls-script")=>{try{let s=r.createElement("script");s.type=o,s.async=e,s.id=n,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}}});function Yx(t,e){if(!e||typeof e!="object")return t;let r=n=>{if(!Kx(n))return n;let s=e[n];return s?.src?s.src:n},o={...t};for(let[n,s]of Object.entries(o))typeof s=="string"?o[n]=r(s):Array.isArray(s)&&(o[n]=s.map(i=>typeof i=="string"?r(i):i));return o}function Xn(t,e){if(!t||!e)return;let r=e.split("."),o=t;for(let n of r){if(o==null||typeof o!="object")return;o=o[n]}return o}function Xx(t,e,r){let o=(e.config||e.settings||{}).polyglot||e.polyglot,n=r?.lang||o?.defaultLang||"en",s=(o?.translations||{})[n]||{},i=r?.state||{},a={...t};for(let[c,l]of Object.entries(a))typeof l!="string"||!l.includes("{{")||(a[c]=l.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(f,u,p)=>{let d=u.trim();if(p==="polyglot")return s[d]??Xn(s,d)??f;if(p==="getLocalStateLang")return Xn(i,d+n)??f;let h=Xn(i,d);return h!==void 0?h:s[d]??Xn(s,d)??f}));return a}function fd(t){let e={...t};for(let[r,o]of Object.entries(e))if(typeof o=="function"){let n=o.toString(),s=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=n.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof o=="string"){let n=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(n){e[r]=`{{ ${n[1]} | getLocalStateLang }}`;continue}let s=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(o.includes("=>")&&o.includes("s.")){let i=o.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function pd(t,e,r,{isProduction:o=!1,channel:n="production"}={}){let s=t.pages?.[e],i=S(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=fd(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=fd(f),p={};if(t.integrations?.seo?p={...t.integrations.seo,...u,...c}:Object.keys(u).length?p={...u,...c}:p={...c},!p.title){let g=t.name||t.key;g?o?p.title=g:n==="development"?p.title=`${g} / dev:symbo.ls`:n==="staging"?p.title=`${g} / staging:symbo.ls`:p.title=`${g} / symbo.ls`:p.title="Symbols demo"}p=Xx(p,t,r),p.title&&(l.has("title")||!p["og:title"])&&(l.has("og:title")||(p["og:title"]=p.title)),p.description&&(l.has("description")||!p["og:description"])&&(l.has("og:description")||(p["og:description"]=p.description)),p.title&&!p["twitter:title"]&&(p["twitter:title"]=p.title),p.description&&!p["twitter:description"]&&(p["twitter:description"]=p.description);let d=r?.actualPathname||e;if(p["og:url"]||p.url){let g=(p["og:url"]||p.url||"").replace(/\/$/,"");if(g&&d&&d!=="/"){let m=d.startsWith("/")?d:"/"+d;p["og:url"]=g+m}}p=Yx(p,t.files);let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[g,m]of Object.entries(p))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?p[g]=y:g==="title"?p[g]=h:delete p[g]}return p}var Tt,Gx,ud,Kx,dd=I(()=>{it();Tt=t=>{if(t==null)return"";let e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.toString().replace(/[&<>"']/g,r=>e[r])},Gx=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${Tt(r)}"`).join(" "),ud=(t,e)=>(e||(t={...t,robots:"noindex"}),Object.entries(t).reduce((r,[o,n])=>{if(!n&&n!==0&&n!==!1)return r;if(o==="title")return r.push(`<title>${Tt(n)}</title>`),r;if(o==="canonical")return r.push(`<link rel="canonical" href="${Tt(n)}">`),r;if(o==="manifest")return r.push(`<link rel="manifest" href="${Tt(n)}">`),r;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(n)?n:[n]).forEach(a=>{if(typeof a=="string")r.push(`<link rel="icon" href="${Tt(a)}">`);else if(typeof a=="object"){let c=Gx(a);/rel=/.test(c)?r.push(`<link ${c}>`):r.push(`<link rel="icon" ${c}>`)}}),r;if(o==="alternate")return(Array.isArray(n)?n:[n]).forEach(a=>{if(typeof a=="object"){let c=Object.entries(a).filter(([l,f])=>f!==void 0).map(([l,f])=>`${l}="${Tt(f)}"`).join(" ");r.push(`<link rel="alternate" ${c}>`)}}),r;let s=(a,c,l="name")=>{if(typeof c=="string"||typeof c=="number"||typeof c=="boolean")r.push(`<meta ${l}="${Tt(a)}" content="${Tt(c)}">`);else if(Array.isArray(c))c.forEach(f=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")r.push(`<meta ${l}="${Tt(a)}" content="${Tt(f)}">`);else if(typeof f=="object"){let u=Object.entries(f).filter(([p,d])=>d!==void 0).map(([p,d])=>`${p}="${Tt(d)}"`).join(" ");r.push(`<meta ${u}>`)}});else if(typeof c=="object"){let f=Object.entries(c).filter(([u,p])=>p!==void 0).map(([u,p])=>`${u}="${Tt(p)}"`).join(" ");r.push(`<meta ${f}>`)}};if(o.startsWith("http-equiv:")){let a=o.replace("http-equiv:","");return s(a,n,"http-equiv"),r}if(o.startsWith("itemprop:")){let a=o.replace("itemprop:","");return s(a,n,"itemprop"),r}let i=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(a=>o.startsWith(a));if(i){let a=o.replace(i,"");return s(`${i.replace(":","")}:${a}`,n,i==="twitter:"||i==="DC:"||i==="DCTERMS:"?"name":"property"),r}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let a=o.startsWith("apple:")?"apple-":"msapplication-",c=o.replace(/^apple:|^msapplication:/,"");return s(`${a}${c}`,n,"name"),r}return s(o,n),r},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
|
|
26
|
+
`)),Kx=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var _a,hd,gd=I(()=>{it();_a=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,o)=>Math.abs(o-t)<Math.abs(r-t)?o:r),hd=(t,e)=>(t=parseFloat(t),S(e)&&(e=Object.values(e)),_a(t,e))});function po(t){let e=String(t||"").trim();if(!e)return{owner:md,key:"",full:""};let r=null,o=e;if(e.includes("/")){let s=e.indexOf("/");r=e.slice(0,s),o=e.slice(s+1)}o=o.replace(/\.symbo\.ls$/iu,""),r||(r=md);let n=o?`${r}/${o}`:"";return{owner:r,key:o,full:n}}async function wa(t,e={}){return(e.provider||"kv")==="api"?yd(t,e):await Qx(t,e)||yd(t,e)}async function Qx(t,e={}){let r=e.kvBaseUrl||Zx,o=e.env||"production",n=`${r}/kv/${encodeURIComponent(t)}?env=${o}`;try{let s=await fetch(n,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function yd(t,e={}){let r=e.apiBaseUrl||Jx,{key:o}=po(t);try{let n=`${r}/core/projects/libraries/available?search=${encodeURIComponent(o)}&limit=10`,s=await fetch(n,{method:"GET"});if(!s.ok)return null;let i=await s.json(),a=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(p=>{let{key:d}=po(p?.key);return d.toLowerCase()===o.toLowerCase()});if(!a?.id&&!a?._id)return null;let c=a.id||a._id,l=`${r}/core/projects/${encodeURIComponent(c)}/data?branch=main`,f=await fetch(l,{method:"GET"});if(!f.ok)return null;let u=await f.json();return u?.data||u||null}catch{return null}}async function bd(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async r=>{if(S(r))return r;if(w(r)){let{full:o}=po(r);if(!o)return null;try{let n=await wa(o,e);return n||console.warn(`[smbls] Shared library "${o}" not found`),n}catch(n){return console.warn(`[smbls] Failed to fetch shared library "${o}":`,n.message),null}}return null}))).filter(Boolean)}var md,Zx,Jx,Zn,Jn,xd=I(()=>{it();md="system",Zx="https://smbls-kv.nika-980.workers.dev",Jx="https://api.symbols.app";Zn=(t,e)=>{for(let r in e)r in t?S(t[r])&&S(e[r])&&Zn(t[r],e[r]):t[r]=e[r]},Jn=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let o=e[r];if(S(o)){for(let n in o)if(Object.prototype.hasOwnProperty.call(o,n))if(S(o[n])&&S(t[n]))if(n==="designSystem")Zn(t[n],o[n]);else for(let s in o[n])s in t[n]||(t[n][s]=o[n][s]);else n in t||(t[n]=o[n])}}}});var Sd,_d,wd,Qn,kd,ts,vd,ar,Cd=I(()=>{it();Sd=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},_d=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)}},wd=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Qn=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,"")),kd=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),ts=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),vd=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},ar=t=>{if(T(t))return t;if(w(t))return t.split(" ");if(S(t))return Object.values(t);if(oe(t))return[t]}});var Ad,Ed=I(()=>{Ad=()=>{let t=document.styleSheets[0],e="";if(t)try{let r=t.cssRules||t.rules;for(let o=0;o<r.length;o++)e+=r[o].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return e}});var vt,ho,es,rs,Td=I(()=>{vt=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let r=t.context;if(!r)return null;let o=r.assets&&r.assets[e]||r.files&&r.files[e];return o?typeof o=="string"?{src:o,type:null,variants:null}:typeof o=="object"&&typeof o.src=="string"?o:null:null},ho=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let r=t.some(n=>typeof n.width=="number"),o=[];for(let n of t)r&&typeof n.width=="number"?o.push(`${n.src} ${n.width}w`):r||(n.scale===1&&e?o.push(n.src):n.scale&&n.scale!==1&&o.push(`${n.src} ${n.scale}x`));return o.join(", ")},es=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return ho(e,{keepOneX:!1})},rs=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let r=new Map;for(let a of t.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let o=[];for(let[a,c]of r)a!==t.type&&o.push({tag:"source",attr:{type:a,srcset:ho(c,{keepOneX:!0})}});let n=r.get(t.type)||[],s=ho(n,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...o,{tag:"img",attr:i}]}});var Od={};$(Od,{CDN_PROVIDERS:()=>Xt,DOMQL_EVENTS:()=>Nf,DOMQ_PROPERTIES:()=>Ie,ENV:()=>ou,HTML_TAGS:()=>Jr,METHODS:()=>Gr,METHODS_EXL:()=>en,NODE_ENV:()=>Kt,OPTIONS:()=>Tn,PACKAGE_MANAGER_TO_CDN:()=>Ve,PARSED_DOMQ_PROPERTIES:()=>tn,PROPS_METHODS:()=>Fe,STATE_METHODS:()=>$e,STATE_PROPERTIES:()=>Mf,SVG_TAGS:()=>vu,TYPES:()=>Yo,UNIVERSAL_RESERVED_KEYS:()=>Sa,addCaching:()=>Qi,addContext:()=>Ji,addExtend:()=>Pu,addExtends:()=>kt,addItemAfterEveryElement:()=>Cf,addProtoToArray:()=>Jo,addRef:()=>Yi,applyDependentState:()=>Qu,applyEvent:()=>sa,applyEventUpdate:()=>ia,applyExtends:()=>$u,applyProps:()=>wn,arrayContainsOtherArray:()=>bf,arraysEqual:()=>Ef,arrayzeValue:()=>ar,buildImgSrcset:()=>es,buildSourcesAndImg:()=>rs,cache:()=>ip,call:()=>Lp,captureSnapshot:()=>Vp,checkForStateTypes:()=>Yu,checkIfInherits:()=>na,checkIfStringIsInArray:()=>Rf,clone:()=>Uf,cloneAndMergeArrayExtend:()=>dn,cloneFunction:()=>uu,concatAddExtends:()=>Eu,copyJavaScriptToClipboard:()=>_d,copyStringToClipboard:()=>Sd,createBasedOnType:()=>Ki,createElement:()=>Gu,createElementExtends:()=>$i,createExtends:()=>gn,createExtendsFromKeys:()=>Qr,createExtendsStack:()=>Li,createIfConditionFlag:()=>pu,createInheritedState:()=>Xu,createKey:()=>ln,createNestedObject:()=>Xf,createNestedObjectByKeyPath:()=>Ju,createObjectWithoutPrototype:()=>vi,createParent:()=>Xi,createPath:()=>Zi,createProps:()=>kn,createPropsStack:()=>Hi,createRoot:()=>qu,createScope:()=>rp,createSnapshotId:()=>cn,customDecodeURIComponent:()=>Lf,customEncodeURIComponent:()=>jf,cutArrayAfterValue:()=>kf,cutArrayBeforeValue:()=>wf,debounce:()=>un,debounceOnContext:()=>cu,decodeNewlines:()=>Df,deepClone:()=>Y,deepContains:()=>Kf,deepDefaults:()=>Zn,deepDestringifyFunctions:()=>Mt,deepExtend:()=>Ii,deepMerge:()=>W,deepMergeExtends:()=>se,deepStringifyFunctions:()=>rn,defineSetter:()=>Dp,destringifyGlobalScope:()=>nn,detectHeightOnInit:()=>Zp,detectInfiniteLoop:()=>tu,document:()=>q,encodeNewlines:()=>Ff,error:()=>ir,excludeKeysFromObject:()=>ru,exec:()=>G,extendCachedRegistry:()=>Tu,extendStackRegistry:()=>mn,extractArrayExtend:()=>bn,fetchLibraryData:()=>wa,fibonacciNumberByIndex:()=>Qp,filterArrays:()=>Tf,filterArraysFast:()=>Of,finalizeExtends:()=>Mi,findClosestNumber:()=>_a,findClosestNumberInFactory:()=>hd,findInheritedState:()=>oa,findKeyPosition:()=>If,flattenExtend:()=>to,formatDate:()=>Yp,generateHash:()=>Oi,generateKey:()=>an,generateMetaTags:()=>ud,get:()=>Pp,getCDNUrl:()=>Zt,getCapitalCaseKeys:()=>Fu,getCdnProviderFromConfig:()=>fo,getChildStateInKey:()=>ra,getChildren:()=>jn,getContext:()=>Un,getCookie:()=>xu,getDB:()=>Kn,getEmotionStylesheet:()=>Ad,getExtendsInElement:()=>Iu,getExtendsStack:()=>hn,getExtendsStackRegistry:()=>Pi,getFrequencyInArray:()=>xf,getHashedExtend:()=>yn,getImportMapScript:()=>Gp,getInObjectByPath:()=>Qf,getLocalStorage:()=>_u,getNev:()=>au,getPageMetadata:()=>pd,getParentStateInKey:()=>ea,getPath:()=>Ln,getQuery:()=>Yn,getRef:()=>$p,getRoot:()=>Bn,getRootContext:()=>zn,getRootData:()=>Vn,getRootState:()=>Nn,getRootStateInKey:()=>ta,getSpreadChildren:()=>Du,global:()=>gf,hasFunction:()=>Kr,hasHandlerPlugin:()=>Yr,hasOwnProperty:()=>Hf,inheritChildExtends:()=>Di,inheritChildPropsExtends:()=>Fi,inheritParentProps:()=>vn,inheritRecursiveChildExtends:()=>ji,initProps:()=>Uu,is:()=>_t,isArray:()=>T,isBoolean:()=>xi,isContextComponent:()=>ju,isCyclic:()=>eu,isDOMNode:()=>xt,isDate:()=>_i,isDefined:()=>St,isDevelopment:()=>Le,isEmpty:()=>wi,isEmptyObject:()=>qf,isEqualDeep:()=>ki,isFunction:()=>C,isHtmlElement:()=>Ko,isLocal:()=>iu,isMethod:()=>Np,isMobile:()=>yu,isNode:()=>pe,isNot:()=>yf,isNotProduction:()=>nr,isNull:()=>Si,isNumber:()=>oe,isObject:()=>S,isObjectLike:()=>j,isPhoto:()=>ed,isProduction:()=>je,isStaging:()=>su,isState:()=>Zu,isString:()=>w,isStringFunction:()=>fu,isTest:()=>Ci,isTesting:()=>nu,isUndefined:()=>ct,isUniversallyReservedKey:()=>Up,isValidHtmlTag:()=>Cu,joinArrays:()=>Ur,jointStacks:()=>Ru,keys:()=>ba,loadCssFile:()=>id,loadJavascript:()=>ad,loadJavascriptFile:()=>od,loadJavascriptFileEmbedSync:()=>sd,loadJavascriptFileSync:()=>nd,loadRemoteCSS:()=>cd,loadRemoteScript:()=>uo,log:()=>jp,logGroupIf:()=>gu,logIf:()=>hu,lookdown:()=>Tp,lookdownAll:()=>Op,lookup:()=>Ep,lowercaseFirstLetter:()=>er,makeObjectWithoutPrototype:()=>Gf,map:()=>Vf,mapStringsWithContextComponents:()=>xn,matchesComponentNaming:()=>ie,memoize:()=>lu,merge:()=>Z,mergeSharedLibraries:()=>Jn,nextElement:()=>Hn,normalizeLibraryKey:()=>po,objectToString:()=>on,objectizeStringProperty:()=>_n,overwrite:()=>sn,overwriteDeep:()=>wt,overwriteShallow:()=>or,overwriteState:()=>tp,parse:()=>xa,parseDeep:()=>Fn,pickupElementFromProps:()=>zi,pickupPropsFromElement:()=>Vi,previousElement:()=>qn,propExists:()=>zu,propertizeElement:()=>Ui,propertizeUpdate:()=>Vu,remove:()=>Rp,removeChars:()=>wd,removeCookie:()=>Su,removeDuplicateProps:()=>An,removeDuplicatesInArray:()=>Wr,removeFromArray:()=>Sf,removeFromObject:()=>Yf,removeNestedKeyByPath:()=>Zf,removeValueFromArray:()=>Zo,removeValueFromArrayAll:()=>vf,reorderArrayByValues:()=>Af,replaceLiteralsWithObjectFields:()=>tr,replaceOctalEscapeSequences:()=>$f,resolveAsset:()=>vt,resolveHandler:()=>Xr,resolveSharedLibraries:()=>bd,returnValueAsText:()=>Gi,runPluginHook:()=>Zr,self:()=>mf,setActiveRootState:()=>Mn,setCookie:()=>bu,setHashedExtend:()=>Ri,setInObjectByPath:()=>Jf,setLocalStorage:()=>wu,setNodeStyles:()=>ya,setProps:()=>Ip,setPropsPrototype:()=>Cn,spotByPath:()=>Dn,srcsetFor:()=>ho,stringIncludesAny:()=>Qo,stringToObject:()=>Wf,swapItemsInArray:()=>_f,syncProps:()=>En,toCamelCase:()=>Qn,toDashCase:()=>ts,toDescriptionCase:()=>vd,toTitleCase:()=>kd,toggleFullscreen:()=>Hp,triggerEventOn:()=>Me,triggerEventOnUpdate:()=>sp,trimStringFromSymbols:()=>Pf,unstackArrayOfObjects:()=>Xo,update:()=>Wi,updateProps:()=>Wu,variables:()=>Gn,verbose:()=>lo,warn:()=>Wn,window:()=>k});var O=I(()=>{fn();Ai();it();ne();pn();Qe();zr();du();mu();qr();Vr();ku();Ei();Ni();qi();Sn();Ku();ep();rr();op();Bp();ca();zp();aa();Wp();qp();Kp();Xp();Jp();td();rd();ld();dd();gd();xd();Cd();Ed();Td()});var xb=di((P$,bb)=>{var $r=1e3,Fr=$r*60,Dr=Fr*60,Ze=Dr*24,V0=Ze*7,z0=Ze*365.25;bb.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return U0(t);if(r==="number"&&isFinite(t))return e.long?H0(t):W0(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function U0(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),o=(e[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return r*z0;case"weeks":case"week":case"w":return r*V0;case"days":case"day":case"d":return r*Ze;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Dr;case"minutes":case"minute":case"mins":case"min":case"m":return r*Fr;case"seconds":case"second":case"secs":case"sec":case"s":return r*$r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function W0(t){var e=Math.abs(t);return e>=Ze?Math.round(t/Ze)+"d":e>=Dr?Math.round(t/Dr)+"h":e>=Fr?Math.round(t/Fr)+"m":e>=$r?Math.round(t/$r)+"s":t+"ms"}function H0(t){var e=Math.abs(t);return e>=Ze?si(t,e,Ze,"day"):e>=Dr?si(t,e,Dr,"hour"):e>=Fr?si(t,e,Fr,"minute"):e>=$r?si(t,e,$r,"second"):t+" ms"}function si(t,e,r,o){var n=e>=r*1.5;return Math.round(t/r)+" "+o+(n?"s":"")}});var _b=di((I$,Sb)=>{function q0(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=n,r.enabled=a,r.humanize=xb(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let u=0;for(let p=0;p<f.length;p++)u=(u<<5)-u+f.charCodeAt(p),u|=0;return r.colors[Math.abs(u)%r.colors.length]}r.selectColor=e;function r(f){let u,p=null,d,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),x=b-(u||b);y.diff=x,y.prev=u,y.curr=b,u=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let _=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(E,P)=>{if(E==="%%")return"%";_++;let B=r.formatters[P];if(typeof B=="function"){let R=m[_];E=B.call(y,R),m.splice(_,1),_--}return E}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=f,g.useColors=r.useColors(),g.color=r.selectColor(f),g.extend=o,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(f)),h),set:m=>{p=m}}),typeof r.init=="function"&&r.init(g),g}function o(f,u){let p=r(this.namespace+(typeof u>"u"?":":u)+f);return p.log=this.log,p}function n(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let u=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let p of u)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function s(f,u){let p=0,d=0,h=-1,g=0;for(;p<f.length;)if(d<u.length&&(u[d]===f[p]||u[d]==="*"))u[d]==="*"?(h=d,g=p,d++):(p++,d++);else if(h!==-1)d=h+1,g++,p=g;else return!1;for(;d<u.length&&u[d]==="*";)d++;return d===u.length}function i(){let f=[...r.names,...r.skips.map(u=>"-"+u)].join(",");return r.enable(""),f}function a(f){for(let u of r.skips)if(s(f,u))return!1;for(let u of r.names)if(s(f,u))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Sb.exports=q0});var wb=di((bt,ii)=>{bt.formatArgs=K0;bt.save=Y0;bt.load=X0;bt.useColors=G0;bt.storage=Z0();bt.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();bt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function G0(){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 K0(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+ii.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(o=r))}),t.splice(o,0,e)}bt.log=console.debug||console.log||(()=>{});function Y0(t){try{t?bt.storage.setItem("debug",t):bt.storage.removeItem("debug")}catch{}}function X0(){let t;try{t=bt.storage.getItem("debug")||bt.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Z0(){try{return localStorage}catch{}}ii.exports=_b()(bt);var{formatters:J0}=ii.exports;J0.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var yt=null,Ho=0,qo=[],yi=()=>yt,Qb=t=>{yt=t};function Re(t){let e=new Set;function r(){return yt&&(e.add(yt),yt._sources.add(s)),t}function o(i){i!==t&&(t=i,df(e))}function n(){return t}let s={get:r,set:o,peek:n,_subscribers:e,_type:"signal"};return s}function tx(t){let e,r=!0,o=new Set,n={_sources:new Set,_type:"computed",_subscribers:o,_execute(){mi(n);let s=yt;yt=n;try{let i=t();i!==e?(e=i,r=!1,df(o)):r=!1}finally{yt=s}},_notify(){r=!0,o.size>0&&n._execute()},get(){return yt&&(o.add(yt),yt._sources.add(n)),r&&n._execute(),e},peek(){return r&&n._execute(),e}};return n._execute(),n}var hi=new Set,gi=!1;function st(t,e){let r=e?.depth??0,o={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(o._disposed)return;mi(o);let n=yt;yt=o;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{yt=n}},_notify(){o._disposed||(Ho>0?qo.push(o):pf(o))},dispose(){o._disposed=!0,mi(o)}};return o._execute(),o}function Pe(t){Ho++;try{t()}finally{Ho--,Ho===0&&rx()}}function pf(t){hi.add(t),gi||(gi=!0,queueMicrotask(ex))}function ex(){gi=!1;let t=Array.from(hi).sort((e,r)=>e._depth-r._depth);hi=new Set;for(let e=0;e<t.length;e++){let r=t[e];r._disposed||r._execute()}}function rx(){for(let t=0;t<qo.length;t++)pf(qo[t]);qo.length=0}function df(t){let e=Array.from(t);for(let r=0;r<e.length;r++)e[r]._notify()}function mi(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Go=Symbol("store"),hf=Symbol("signals"),bi=t=>!t||typeof t!="object"||Array.isArray(t)||t[Go]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function Lt(t,e,r){r===void 0&&(r=0);let o={},n={},s=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let y in t){let b=t[y];r<s&&b&&typeof b=="object"&&!bi(b)?(n[y]=b,o[y]=Re(Lt(b,e,r+1))):(n[y]=b,o[y]=Re(b))}let i=new Proxy(n,{get(y,b){if(b===Go)return!0;if(b===hf)return o;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return u;if(b==="values")return p;if(b==="replace")return d;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return c;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(o,b))return o[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==i)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&yi()!=null)return o[b]=Re(void 0),o[b].get()},set(y,b,x){return b==="__element"||b==="parent"||b==="root"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(o,b)?(y[b]=x,x&&typeof x=="object"&&!bi(x)?o[b].set(Lt(x,e,r+1)):o[b].set(x)):(y[b]=x,x&&typeof x=="object"&&!bi(x)?o[b]=Re(Lt(x,e,r+1)):o[b]=Re(x)),!0)},has(y,b){return b in o||b in y},ownKeys(y){return Object.keys(o)},getOwnPropertyDescriptor(y,b){return b in o?{enumerable:!0,configurable:!0,value:o[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return o[b]&&(o[b].set(void 0),delete o[b]),delete y[b],!0}});function a(y,b){Pe(()=>{for(let _ in y)i[_]=y[_]});let x=n.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,i,x.context),i}function c(y){return a(y,{quiet:!0})}function l(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let x in o){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let _=o[x].peek();_&&_[Go]?b[x]=_.parse(y):b[x]=_}return b}function f(){return Pe(()=>{for(let y in o)delete i[y]}),i}function u(){return Object.keys(o)}function p(){return Object.keys(o).map(y=>o[y].peek())}function d(y){return Pe(()=>{for(let b in o)b in y||delete i[b];for(let b in y)i[b]=y[b]}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){f(),n.__element=null,n.parent=null}return i}function pt(t){return t&&t[Go]===!0}function ox(t){return t[hf]}var pr={};$(pr,{CSS_NATIVE_COLOR_REGEX:()=>ae,CSS_UNITS:()=>Br,applyMediaSequenceVars:()=>ur,applySequenceGlobalVars:()=>Da,applySequenceVars:()=>He,changeLightness:()=>sS,colorStringToRgbaArray:()=>me,convertSvgToSymbol:()=>ja,findHeadingLetter:()=>Kd,findHeadings:()=>Fa,generateSequence:()=>Bt,generateSequencePosition:()=>zS,generateSprite:()=>ls,generateSubSequence:()=>Ia,getColorShade:()=>Fd,getDefaultOrFirstKey:()=>go,getFnPrefixAndValue:()=>We,getFontFace:()=>cS,getFontFaceEach:()=>mo,getFontFaceEachString:()=>Md,getFontFaceString:()=>va,getFontFormat:()=>jd,getRgbTone:()=>lr,getSequenceValue:()=>$a,getSequenceValueBySymbols:()=>Gd,getSequenceValuePropertyPair:()=>Se,getSubratio:()=>Pa,getSubratioDifference:()=>Ra,hexToRgb:()=>eS,hexToRgbArray:()=>Rd,hexToRgba:()=>oS,hslToRgb:()=>$d,isCSSVar:()=>et,isGoogleFontsUrl:()=>ns,isResolvedColor:()=>ye,isScalingUnit:()=>Nr,mixTwoColors:()=>tS,mixTwoRgb:()=>nS,mixTwoRgba:()=>Dd,numToLetterMap:()=>xe,opacify:()=>os,parseColorToken:()=>ze,resolveFileUrl:()=>Jt,returnSubThemeOrDefault:()=>aS,rgbArrayToHex:()=>Pd,rgbToHSL:()=>Id,rgbToHex:()=>rS,setCustomFont:()=>ka,setCustomFontMedia:()=>fr,setFontImport:()=>ss,setInCustomFontMedia:()=>Ld,setScalingVar:()=>Oa,setSubScalingVar:()=>Hd,setVariables:()=>US,splitTopLevelCommas:()=>cr});var Nr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Br=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];O();var me=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&q&&k){let e=q.body.appendChild(q.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){q.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return q.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,q.body.removeChild(e)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(e=>+e)):[0,0,0,0]},tS=(t,e,r=.5)=>(t=me(t),e=me(e),Dd(t,e,r)),eS=(t,e=1)=>{let[r,o,n]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${o},${n})`},Rd=(t,e=1)=>{let[r,o,n]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,o,n]},rS=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Pd=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),oS=(t,e=1)=>{let[r,o,n]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${o},${n},${e})`},nS=(t,e,r=.5)=>{let o=[];for(let n=0;n<3;n++)o[n]=~~(t[n]+(e[n]-t[n])*r);return`rgb(${o})`},sS=(t,e)=>{let[r,o,n]=e,s=Math.max(0,Math.min(100,n+parseFloat(t)));return[r,o,s]},Id=(t,e,r)=>{let o=Math.max(t,e,r),n=o-Math.min(t,e,r),s=1-Math.abs(o+o-n-1),i=n&&(o==t?(e-r)/n:o==e?2+(r-t)/n:4+(t-e)/n);return[60*(i<0?i+6:i),s?n/s:0,(o+o-n)/2]},$d=(t,e,r,o=e*Math.min(r,1-r),n=(s,i=(s+t/30)%12)=>r-o*Math.max(Math.min(i-3,9-i,1),-1))=>[n(0),n(8),n(4)],Fd=(t,e)=>{let r=parseInt(t,16),o=(r>>16)+e;o>255?o=255:o<0&&(o=0);let n=(r>>8&255)+e;n>255?n=255:n<0&&(n=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|n<<8|o<<16)+16777216).toString(16).slice(1)},Dd=(t,e,r=.5)=>{let o=[];for(let n=0;n<4;n++){let s=n===3?i=>i:Math.round;o[n]=s(t[n]+(e[n]-t[n])*r)}return`rgba(${o})`},os=(t,e)=>{let r=me(t);if(!r){nr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},et=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,ae=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,iS=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,ze=t=>{if(!w(t))return null;if(ae.test(t))return{passthrough:t};if(et(t))return{cssVar:t};let e=t.match(iS);if(!e)return null;let[,r,o,n]=e,s=o!==void 0?`0.${o}`:void 0,i=n&&n[0]==="="?n.slice(1):n;return{name:r,alpha:s,tone:i}},ye=t=>w(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),cr=t=>{let e=[],r="",o=0;for(let n of t){if(n==="("?o+=1:n===")"&&o>0&&(o-=1),n===","&&o===0){e.push(r),r="";continue}r+=n}return(r.length||!e.length)&&e.push(r),e},lr=(t,e)=>{w(t)&&t.includes("rgb")&&(t=me(t).join(", ")),w(t)&&(t=t.split(",").map(n=>parseFloat(n.trim()))),oe(e)&&(e+="");let r=Pd(t),o=e.slice(0,1);if(o==="-"||o==="+"){let n=Fd(r,parseFloat(e));return Rd(n).join(", ")}else{let[n,s,i]=t,a=Id(n,s,i),[c,l,f]=a;return $d(c,l,parseFloat(e)/100*255)}};var aS=(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},go=(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},jd=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},ns=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),ss=t=>`@import url('${t}');`,Ld=t=>`@font-face { ${t} }`,ka=(t,e,r,o={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=jd(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
|
|
27
27
|
`);return`
|
|
28
28
|
font-family: '${t}';
|
|
29
29
|
font-style: ${o.fontStyle||"normal"};${r?`
|
|
30
30
|
font-weight: ${r};`:""}${o.fontStretch?`
|
|
31
31
|
font-stretch: ${o.fontStretch};`:""}${o.fontDisplay?`
|
|
32
32
|
font-display: ${o.fontDisplay};`:""}
|
|
33
|
-
src: ${i};`},
|
|
34
|
-
}`,yo=(t,e,r)=>Object.keys(e).map(n=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=e[n],f=Array.isArray(s)?s.map(p=>Qt(p,r)||p):Qt(s,r)||s;return wa(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),iS=t=>Object.keys(t).map(r=>yo(r,t[r].value)),Nd=(t,e,r)=>{if(e&&e.isVariable){let s=Qt(e.url,r)||e.url;return os(s)?ns(s):pr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return yo(t,e,r).map(Ld);let n=Array.isArray(e.url)?e.url.map(s=>Qt(s,r)||s):Qt(e.url,r)||e.url;return pr(t,n,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},ka=(t,e)=>Object.keys(t).map(o=>Nd(o,t[o].value,e));O();O();O();var ss={};$(ss,{animation:()=>ES,breakpoints:()=>CS,class:()=>$S,color:()=>mS,devices:()=>AS,document:()=>vS,font:()=>lS,fontFace:()=>pS,fontFamily:()=>fS,fontFamilyTypes:()=>uS,gradient:()=>yS,grid:()=>IS,icons:()=>SS,media:()=>dS,reset:()=>FS,semanticIcons:()=>_S,sequence:()=>We,shadow:()=>xS,spacing:()=>gS,svg:()=>TS,svgData:()=>OS,templates:()=>RS,theme:()=>bS,timing:()=>kS,typography:()=>va,unit:()=>aS,vars:()=>DS});var We={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var aS={default:"em"};var cS={browserDefault:16,base:16,type:"font-size",ratio:We["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},va=cS;var lS={};var fS={},uS={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},pS={};var dS={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var hS={base:va.base,type:"spacing",ratio:We.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},gS=hS;var mS={},yS={};var bS={};var xS={};var SS={},_S={};var wS={default:150,base:150,type:"timing",ratio:We["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},kS=wS;var vS={};var CS={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},AS={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 ES={};var TS={},OS={};var RS={};var PS={},IS=PS;var $S={};var FS={},DS={};var Md={},jd={},is=ss,as={},Ca=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in is){let e=t.toLowerCase();as[e]=is[t];let r=Ca(e);r!==e&&(as[r]=is[t]),e!==t&&(as[t]=is[t])}var Aa={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Md,cssMediaVars:jd,CSS_VARS:Md,CSS_MEDIA_VARS:jd,_scratchConfig:!0,...as},Bd=X(Aa),xe={active:"0",0:Aa},G1=t=>(St(t)&&(xe.active=t),xe[t||xe.active]),bo=[],ft=t=>{t&&t._scratchConfig&&bo.push(t)},lt=()=>{bo.pop()},A=t=>bo.length?bo[bo.length-1]:xe[t||xe.active]||Aa,Vd=t=>{if(S(t))return xe.active="1",xe[1]=W(t,X(Bd)),t},LS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],NS=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],MS=t=>{for(let e of NS){let r;for(let o of e){let n=t[o];S(n)&&(r=r?W(n,r):n)}if(r)for(let o of e)S(t[o])&&(t[o]=r)}},zd=(t,e,{cleanBase:r=!1}={})=>{let o=r?null:A(),n=X(!r&&o&&o._scratchConfig?o:Bd);for(let i of LS)delete n[i];let s=W(e||{},n);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,MS(s),t&&(xe[t]=s),s};var Se={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},Ea=(t,e)=>{let{key:r,variable:o,value:n,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(n*100)/100,val:~~n,scaling:s,index:i,scalingVariable:a,variable:o},e.scales[r]=s;let c=Ud.has(e.unit)?"rem":e.unit;e.vars[o]=s+c},He=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Ud=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ta=(t,e)=>{let{base:r,type:o,unit:n}=e,s=Ud.has(n)?"rem":n,i=(Vr(s)?1:r)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(o&&o.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=Se[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=Se[t+1],p=Math.abs(t),u=Math.pow(Hd,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}))`}},Wd=(t,e,r,o)=>{let{type:n}=o,i=t===2&&e.length===2?t+1:t,l=`${"--"+(o.varPrefix?o.varPrefix+"-":"")+(n&&n.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},Oa=(t,e)=>{let o=(t*e-t)/1.618,n=t*e-o,s=t+o,i=(n+s)/2;return[n,i,s]},Ra=(t,e)=>Oa(t,e).map(r=>r/t),Pa=(t,e)=>{let{key:r,base:o,value:n,ratio:s,variable:i,index:a}=t,l=~~(n*s)-~~n,f,[p,u,d]=Oa(n,s);l>16?f=[p,u,d]:f=[p,d],f.forEach((h,g)=>{let m=~~(h/o*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,x=Wd(g+1,f,i,e),_={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:x,index:b};Ea(_,e)})},Hd=1.618,jS=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let o=Math.abs(t),n=e*Math.pow(r,t),s=e*Math.pow(r,o)/Math.pow(Hd,2*o);return Math.max(n,s)},Bt=t=>{let{type:e,base:r,ratio:o,range:n,subSequence:s}=t,i=Math.abs(n[0])+Math.abs(n[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=n[1]-l,p=Se[f],u=jS(f,r,o),d=~~(u/r*100)/100,h=c+p,g=Ta(f,t),m={key:p,variable:h,value:u,base:r,scaling:d,scalingVariable:g,ratio:o,index:f};Ea(m,t),s&&Pa(m,t)}return t},BS=(t,e=0)=>{let{type:r,base:o,ratio:n,subSequence:s}=t,i=w(e)?e:Se[e],a=w(e)?Object.entries(Se).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=o*Math.pow(n,a),f=~~(l/o*100)/100,d="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=Ta(a,t),g={key:i,variable:d,value:l,base:o,scaling:f,scalingVariable:h,ratio:n,index:a};return Ea(g,c),s&&Pa(g,c),c},Ia=(t="A",e)=>{let r=A(),{unit:o}=r;if(w(t)&&et(t))return`var(${t})`;let{sequence:n,unit:s=o.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(zr.some(x=>t.includes(x))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${e.varPrefix?e.varPrefix+"-":""}${Qn(e.type.replace(".","-"))}-`,d=t.toUpperCase(),h=d.slice(0,1)==="-"?"-":"",g=h?d.slice(1):d,m="";g.includes("_")&&(m="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=x=>a.test(x)?`var(${u}${x}${m})`:x;if(g.includes("+")){let[x,_]=g.split("+"),v=`${y(x)} + ${y(_)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("*")){let[x,_]=g.split("*"),v=`${y(x)} * ${y(_)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("-")){let[x,_]=g.split("-"),v=`${y(x)} - ${y(_)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}if(!n[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||r.useVariable){let x=`var(${u}${g}${m})`;return h?`calc(${x} * -1)`:x}let b=n?n[g]:null;return b?s==="ms"||s==="s"?h+b.val+s:h+b.scaling+s:console.warn("can't find",n,g)},qd=(t,e)=>{if(!["+","-","*","/",","].filter(s=>t.includes(s+" ")).length)return t;let o=/(\s*[+\-*/,]\s*)/;return t.split(o).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Ia(i,e)}).join("")},_e=(t,e,r,o)=>{if(typeof t!="string")return A().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!o&&t.includes("(")){let s=He(t);o=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=qd(t,r):t=Ia(t,r),{[e]:o?`${o}(${t})`:t}},Gd=(t,e)=>Se[t-e],$a=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((o,n)=>{let s=Gd(e,n);return r[s]})};O();var VS=(t,e)=>{let r=A(),{cssVars:o}=r;L(t.value)||(o[t.var]=t.value)},Fa=(t,e,r)=>{let o=A(),{unit:n}=o,s=e.unit||n.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let p=`${f}-ratio`;t[p]=a;let[u,d,h]=Ra(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})`},Kd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),qe=(t,e={})=>{let r=A(),{unit:o,timing:n,cssVars:s}=r,i=t.unit||o.default,a=Kd.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||Fa(s,t,e);for(let p in l){let u=l[p],d=(t.type===n.type?l[p].val:f[p])+a;if(!c){s[u.variable+"_default"]=d,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=d:(s[u.variable+"_default"]=d,s[u.variable]=`var(${u.variable+"_default"})`)}},dr=(t,e,r={})=>{let o=A(),{unit:n,media:s,cssVars:i}=o,a=e.slice(1),c=t[e],l=c.unit||t.unit||n.default,f=Kd.has(l)?"rem":l,{mediaRegenerate:p}=t,{sequence:u,scales:d}=c,h=s[a];if(!h&&o.verbose&&console.warn("Can't find media query ",h),!p){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),Fa(g,c,r);let m=t.unit||n.default;if(f!==m&&u)for(let y in u){let b=u[y],x=d[y]+f;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in u){let m=u[g],y=(Vr(f)?d[g]:u[g].val)+f;!h&&o.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};O();var zS=sr(),cs=t=>{let e=A(),r="";for(let o in t)e.__svgCache[o]||(e.__svgCache[o]=!0,r+=t[o]);return r},US=t=>{let e=t&&(t.default||t);if(!w(e))return zS&&console.warn("parseRootAttributes:",e,"is not a string"),{};let r=e.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},WS=(t,e)=>{let r=[];if(t.replace(/id="([^"]*)"/g,(n,s)=>(r.push(s),n)),!r.length)return t;let o=t;for(let n of r){let s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${n}`;o=o.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return o},Da=(t,e)=>{let r=US(e),{width:o,height:n}=r,s=r.viewBox||`0 0 ${o||24} ${n||24}`,c=WS(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c=GS(c),c},HS="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",qS=new RegExp(`<(${HS})\\b([^>]*?)\\s*/>`,"g"),GS=t=>t.replace(qS,"<$1$2></$1>");var ps={};$(ps,{appendSVGSprite:()=>Qa,appendSvgIconsSprite:()=>ec,applyDocument:()=>Ya,applyHeadings:()=>Qd,applyReset:()=>rc,applySpacingSequence:()=>qa,applyTimingSequence:()=>Xa,applyTypographySequence:()=>Ua,checkIfBoxSize:()=>Ha,getColor:()=>Y,getFontFamily:()=>za,getFontSizeByKey:()=>Wa,getMediaColor:()=>ht,getMediaTheme:()=>te,getShadow:()=>Ka,getSpacingBasedOnRatio:()=>le,getSpacingByKey:()=>at,getTheme:()=>Ma,getTimingByKey:()=>Vt,getTimingFunction:()=>ee,runThroughMedia:()=>Jd,setColor:()=>gr,setFont:()=>Va,setFontFamily:()=>fs,setGradient:()=>mr,setMediaTheme:()=>Ba,setSVG:()=>us,setShadow:()=>yr,setSvgIcon:()=>tc,setTheme:()=>ja,splitSpacedValue:()=>Ga});O();var Y=(t,e,r)=>{let o=r||A();if(!w(t)){o.verbose&&console.warn(t,"- type for color is not valid");return}if(et(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let n,s,i;if(T(t))[n,s,i]=t;else{let p=Ue(t);if(!p){let{color:u,gradient:d}=o,h=d[t]||u[t];return h?o.useVariable?`var(${h.var})`:h.value:t}if(p.passthrough)return p.passthrough;if(p.cssVar)return`var(${p.cssVar})`;n=p.name,s=p.alpha,i=p.tone}let{color:a,gradient:c}=o,l=a[n]||c[n];if(!l)return o.verbose&&console.warn("Can't find color ",n),t;e&&(l[e]?l=l[e]:o.verbose&&console.warn(t," - does not have ",e));let f=l.rgb;return f?(i&&!l[i]&&(f=ur(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:o.useVariable?`var(${l.var})`:`rgb(${f})`):o.useVariable?`var(${l.var})`:l.value},ht=(t,e,r)=>{let o=r||A();if(e||(e=o.globalTheme==="auto"?null:o.globalTheme),!w(t)){o.verbose&&console.warn(t,"- type for color is not valid");return}if(et(t))return`var(${t})`;let n;if(T(t))n=t[0];else{let l=Ue(t);if(!l)return t;if(l.passthrough)return l.passthrough;if(l.cssVar)return`var(${l.cssVar})`;n=l.name}let{color:s,gradient:i}=o,a=s[n]||i[n],c=S(a);if(c&&a.value)return Y(t,`@${e}`,r);if(c){if(o.useVariable&&a.var)return`var(${a.var})`;if(e)return Y(t,`@${e}`,r);{let l={};for(let f in a){if(f.charCodeAt(0)!==64)continue;let p=o.media[f.slice(1)];if(!p)continue;let u="@media "+(p==="print"?`${p}`:`screen and ${p}`);l[u]=Y(t,f,r)}return l}}else return o.verbose&&console.warn("Can't find color",t),t},gr=(t,e,r)=>{let o=A();if(w(t)&&et(t)){let g=t.slice(2);if(t=Y(g),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=g.split(" "),y=o.color[m[0]];if(y&&!y.value&&!y.rgb&&(w(y)||T(y)||S(y))&&(o.color[m[0]]=gr(y,m[0]),y=o.color[m[0]]),y&&y.value){let b=y.rgb,x=m[1]!==void 0?m[1]:"1",_=m[2];_&&(b=ur(b,_)),t=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:"1";if(b)try{let _=ye(m[0]);_&&_.length>=3?t=`rgba(${ur(_.slice(0,3).join(", "),b)}, ${x})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(T(t)&&(t={"@light":t[0],"@dark":t[1]}),S(t)){let g={};for(let m in t)g[m]=gr(t[m],e,m.slice(0,1)==="@"?m.slice(1):m);if(o.useVariable){let y=`--${o.varPrefix?o.varPrefix+"-":""}color-${e}`,b,x={};for(let _ in g){if(_.charCodeAt(0)!==64)continue;let v=_.slice(1),E=g[_],P=E&&(E.value||E);!P||typeof P!="string"||(x[v]=P,(v==="light"||b===void 0)&&(b=P))}if(b!==void 0){o.cssVars[y]=b,o.cssMediaVars||(o.cssMediaVars={});for(let _ in x){let v=`[data-theme="${_}"]`;if(o.cssMediaVars[v]||(o.cssMediaVars[v]={}),o.cssMediaVars[v][y]=x[_],_==="light"||_==="dark"){let E=`@media (prefers-color-scheme: ${_})`;o.cssMediaVars[E]||(o.cssMediaVars[E]={}),o.cssMediaVars[E][y]=x[_]}}g.var=y}}return g}let s=`--${o.varPrefix?o.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;if(w(i)&&i.includes(".")&&!i.includes("(")){let[g,m]=i.split("."),y=o.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(w(i)&&!i.includes("(")&&!i.startsWith("#")){let g=Ue(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=o.color[g.name];m&&!m.value&&!m.rgb&&(w(m)||T(m)||S(m))&&(o.color[g.name]=gr(m,g.name));let y=o.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=ur(b,g.tone));let x=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${x})`}}}let a=ye(i),[c,l,f,p=1]=a,u=parseFloat(p.toFixed(2)),d=`${c}, ${l}, ${f}`,h=`rgba(${d}, ${u})`;return o.useVariable&&(o.cssVars[s]=h),{var:s,rgb:d,alpha:u,value:h}},mr=(t,e,r)=>{let o=A();if(w(t)&&et(t)&&(t=Y(t.slice(2))),T(t))return{"@light":mr(t[0],e,"light"),"@dark":mr(t[0],e,"dark")};if(S(t)){let i={};for(let a in t)i[a]=mr(t[a],e,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${o.varPrefix?o.varPrefix+"-":""}gradient-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=t.value||t),{var:s,value:t.value||t}};O();var KS=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"]),Xd=["color","Color","background","Background","fill","Fill","stroke","Stroke"],XS=t=>{for(let e=0;e<Xd.length;e++)if(t.includes(Xd[e]))return!0;return!1},ls=t=>{let e={},{state:r,media:o,helpers:n,...s}=t;return Object.keys(s).map(a=>{let l=["color","Color","background","border"].some(f=>a.includes(f));return e[a]=l?Y(t[a]):t[a]}),e},xo=t=>(t.value||(t.value=ls(t)),t.value),Ma=(t,e)=>{let r=A();if(r.useVariable)return te(t,e);let o=r.theme;if(w(t)){let[n,s]=t.split(" "),i=o[n];if(i){if(!s&&!e)return xo(i);t=[n,s||e]}}if(L(t)&&t[1]){let n=t[0],s=t[1],{helpers:i,media:a,state:c}=o[n];if(a&&a[s])return xo(a[s]);if(i&&i[s])return xo(i[s]);if(c&&c[s])return xo(c[s])}else if(S(t))return ls(t)},YS=(t,e,r)=>{if(S(e))t.variants.inverse.value=ls(e);else if(e===!0){let{color:o,background:n}=r;t.variants.inverse={value:{color:n,background:o}}}},ZS=(t,e,r,o)=>{let n=Ma(r);o[`&:${e}`]=n,S(r)&&!r.value&&(r.value=n)},JS=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(n=>{let s=r[n];return ZS(t,n,s,e),t}),t):void 0},QS=(t,e,r,o)=>{let n=Ma(r);o[`@media (prefers-color-scheme: ${e})`]=n,S(r)&&!r.value&&(r.value=n)},t_=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(n=>{let s=r[n];return(n==="dark"||n==="light")&&QS(t,n,s,e),n==="inverse"&&YS(t,s,e),t}),t):void 0},e_=(t,e)=>{let r=A(),{helpers:o}=t;return o?(Object.keys(o).map(s=>{let i=o[s];return w(i)?o[s]=r.theme[i]:xo(o[s]),t}),t):void 0},ja=(t,e)=>{let r=A();if(r.useVariable)return Ba(t,e);let{state:o,media:n,helpers:s}=t,i=ls(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return JS(t,i),t_(t,i),e_(t,i),{var:c,value:i,state:o,media:n,helpers:s}};var La=(t,e,r)=>{let{cssVars:o}=r;r.cssMediaVars||(r.cssMediaVars={});let n=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let l in t)if(t[l])for(let f of Object.keys(t[l]))a.add(f);let c=new Set;for(let l of a){let f=l.slice(0,1);if(!(f==="@"||f==="."||f===":")&&XS(l))for(let p in t){if(c.has(p))continue;let u=t[p]?.[l];if(u===void 0)continue;let d=Y(u,`@${p}`);d!==void 0&&w(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!KS.has(d)&&c.add(p)}}for(let l of a){let f=l.slice(0,1),p=Object.values(t).some(u=>L(u?.[l]));if(f==="."&&p){let u=l.slice(1),d={};for(let h in t)L(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=La(d,`${e}-${u}`,r)}else if(f===":"&&p){let u=l.replace(/^:+/,""),d={};for(let h in t)L(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=La(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=Y(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let x=`[data-theme="${m}"]`;if(n[x]||(n[x]={}),n[x][d]=b,m==="dark"||m==="light"){let _=`@media (prefers-color-scheme: ${m})`;n[_]||(n[_]={}),n[_][d]=b}}g!==void 0&&(o[d]=g),i[l]=`var(${d})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Ba=(t,e,r,o)=>{let n=A(),{cssVars:s}=n,i={value:t},a=!r&&!o;if(L(t)){if(a&&n.useVariable){let c={};for(let l in t)l.startsWith("@")&&L(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=La(c,e,n);Object.assign(i,l)}}for(let c in t){let l=c.slice(0,1),f=t[c];if(l==="@"||l===":"||l==="."){let p=l==="@"&&c;i[c]=Ba(f,e,c,o||p)}else if(!a){let p=Y(f,o),u=[...new Set([o,r].filter(m=>m).map(m=>m.slice(1)))],d=u.length?"-"+u.join("-"):"",g=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}${d}-${c}`;n.useVariable?(n.useThemeSuffixedVars&&(s[g]=p),i[c]=`var(${g})`):i[c]=p,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(w(t)&&et(t)){let l=n.theme[t.slice(2)];return te(l,o)}return i},Na=t=>{let e=A(),r={};for(let o in t){let n=o.slice(0,1);if(L(t[o])){if(n==="@")continue;n===":"?r[`&${o}`]=Na(t[o]):n==="."&&(r[`&${o}`]=Na(t[o]))}else r[o]=t[o]}return r},Zd=(t,e)=>{let r=e.shift();return t[r]?Zd(t[r],e):t},Yd=(t,e)=>T(e)?Zd(t,e):w(e)&&t[e]?t[e]:t;var te=(t,e)=>{let r=A();if(w(t)&&et(t)&&(t=te(t.slice(2))),!t||!w(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[o,...n]=T(t)?t:t.split(" "),s=r.theme[o];return s&&n.length?s=Yd(s,n):s&&e&&(s=Yd(s,e)),Na(s)};O();O();var Va=(t,e)=>{let r=A(),o=`--font-${e}`;if(!t||T(t)&&!t[0])return;let n;if(t.isVariable){let s=Qt(t.url,r.files)||t.url;os(s)?n=ns(s):n=pr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])n=yo(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Qt(i,r.files)||i):Qt(t.url,r.files)||t.url;n=pr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:o,value:t,fontFace:n}},za=(t,e)=>{let r=A(),{fontFamily:o}=r;return mo(e||o,t)},fs=(t,e)=>{let r=A(),{fontFamily:o,fontFamilyTypes:n}=r,{value:s,type:i}=t;t.isDefault&&(o.default=e),S(s)&&(s=lr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${n[i]}`;return{var:a,value:c,arr:s,type:i}};O();var Jd=t=>{let e=A(),{typography:r,media:o}=e;for(let n in t){let s=n.slice(0,1)==="@",i=t[n];if(!s)continue;let{mediaRegenerate:a}=t,c=n.slice(1),{type:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:h,unit:g}=t;Z(i,{type:l,base:f,ratio:p,range:u,subSequence:d,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,x=o[c],_="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+b},!a){Z(i,{sequence:{},scales:{},vars:{}}),Bt(i),dr(t,n);continue}Z(i,{sequence:{},scales:{},templates:{},vars:{}}),Bt(i),dr(t,n)}},Qd=t=>{let e=A();if(t.h1Matches){let r=t.unit,o=$a(t),{templates:n}=t;for(let s in o){let i=`h${parseInt(s)+1}`,a=n[i];n[i]={fontSize:e.useVariable?`var(${o[s]?.variable})`:`${o[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Ua=()=>{let t=A(),{typography:e}=t;Bt(e),Qd(e),qe(e),Jd(e)},Wa=t=>{let e=A(),{typography:r}=e;return _e(t,"fontSize",r)};O();O();var r_=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:n,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;Z(r,{type:n,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Bt(r),dr(t,e)}},Ha=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),o=e.includes("border")||e.includes("outline");return r&&!o},qa=()=>{let t=A(),{spacing:e}=t;Bt(e),qe(e),r_(e)},o_=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Bt(t)},at=(t,e="padding",r,o)=>{let n=o_(r);if(w(t)&&!o&&t.includes("(")){let i=He(t);o=i[0],t=i[1]}let s=o?[t]:lr(t);if(T(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,f)=>_e(s[f],e+l+i,n,o);return a[s.length].map((l,f)=>c(l,f))}return _e(t,e,n,o)}},le=(t,e,r,o)=>{let n=A(),{spacing:s}=n,i=r||t[e];if(!o&&w(i)&&i.includes("(")){let a=He(i);o=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return at(i,e,a,o)}return at(i,e,s,o)},Ga=t=>{let e=r=>{let o=["+","-","*","/"].includes(r),n=zr.some(i=>t.includes(i));return o||n?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};O();var yr=(t,e,r,o)=>{let n=A();if(T(t))return{"@light":yr(t[0],e,"light"),"@dark":yr(t[1],e,"dark")};if(S(t)){let a={};for(let c in t)a[c]=yr(t[c],e,c.startsWith("@")?c.slice(1):c);return a}w(t)&&!ce.test(t)&&(t=fr(t).map(a=>(a=a.trim(),a.split(/\s+/).map(c=>{if(c=c.trim(),!c)return"";if(c.startsWith("--"))return`var(${c})`;let l=Y(c);if(be(l))return l;if(/^\d/.test(c)||c==="0"||c.includes("px")||c.slice(-2)==="em"||c==="inset"||c==="none")return c;let f=at(c,"shadow");return f&&f.shadow?f.shadow:c}).join(" "))).join(", "));let i=`--${n.varPrefix?n.varPrefix+"-":""}shadow-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[i]=t),{var:i,value:t}},Ka=(t,e)=>{let r=A();if(e||(e=r.globalTheme),!w(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(et(t))return`var(${t})`;let[o]=T(t)?t:t.split(" "),s=r.shadow[o],i=S(s);if(!s)return r.verbose&&console.warn("Can't find color ",o),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let l=r.media[c.slice(1)],f="@media "+(l==="print"?`${l}`:`screen and ${l}`);a[f]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};O();var Xa=()=>{let t=A(),{timing:e}=t;Bt(e),qe(e)},ee=t=>{let e=A(),{timing:r}=e;return r[t]||r[Jn(t)]||t},Vt=(t,e="timing")=>{let r=A(),{timing:o}=r;return _e(t,e,o)};O();var Ya=()=>{let t=A(),{document:e,fontFamily:r,theme:o,typography:n}=t;return Z(e,{theme:o.document,fontFamily:mo(r),fontSize:n.base,lineHeight:n.lineHeight})};O();var Ja={document:q},us=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?Da(e,t):t},Qa=(t,e=Ja)=>{let r=A(),o=Object.keys(t).length?{}:r.svg;for(let n in t)o[n]=t[n];eh(o,e)},tc=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?us(t,e):t},ec=(t,e=Ja)=>{let r=A(),o=Object.keys(t).length?{}:r.icons;for(let n in t)o[n]=t[n];eh(o,e)},Za=(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},n_=(t,e)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let o=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new r().parseFromString(o,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},th=(t,e,r)=>{for(;e.firstChild;){let o=e.firstChild;r.appendChild(t.importNode(o,!0)),o.remove()}},eh=(t,e=Ja)=>{let r=A(),o=e.document||q;if(!o||!o.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),cs(t);let n=o.querySelector("#svgSprite"),s=cs(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=n_(o,s);if(n)if(a)th(o,a,n);else if(o.body.insertAdjacentHTML)n.insertAdjacentHTML("beforeend",s);else{let c=Za(o,{isRoot:!1});c.innerHTML=s,n.append(...c.children)}else if(a){let c=Za(o);c&&c.nodeType&&(th(o,a,c),o.body.prepend(c))}else if(o.body.insertAdjacentHTML)o.body.insertAdjacentHTML("afterbegin",i);else{let c=Za(o);c&&c.nodeType&&(c.innerHTML=s,o.body.prepend(c))}};O();var rc=(t={})=>{let e=A(),{reset:r,typography:o,document:n}=e;if(r){if(r[":root"]){let c=r,l=o.templates;c.body={...e.useDocumentTheme?te("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=o.templates,a=e.useDocumentTheme?te("document"):{};if(r.html&&wt(r.html,a),o.unit){let{media:c}=e;for(let l in o){if(l.charAt(0)!=="@")continue;let f=o[l];if(!f||f.unit===o.unit||!f.unit)continue;let p=f.unit,u=f.base||o.base,d=f.browserDefault||o.browserDefault,h=l.slice(1),g=c[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=u/d+p}}return W(Z(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:o.unit?o.base/o.browserDefault+o.unit:o.browserDefault+"px",fontFamily:n.fontFamily,lineHeight:n.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:n.fontFamily,fontSize:o.base/o.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};O();var s_=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),i_=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),a_=t=>s_.has(t),we=t=>{let e=t+"";if(ce.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(et(n))return`var(${n})`;if(a_(n)||/^\d/.test(n)||n==="0")return n;let s=Y(n);if(be(s))return s;let i=at(n,"border");return i&&i.border?i.border:n}).join(" ")},rh=t=>ce.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(et(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=Y(e);return be(r)?r:e}).join(" "),oh=(t,e)=>Ka(t,e),oc=(t,e)=>ce.test(t)?t:fr(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(et(o))return`var(${o})`;if(o==="inset"||o==="none")return o;let n=Y(o);if(be(n)){let i=ht(o,e);return S(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(o)||o==="0"||o.includes("px")||o.slice(-2)==="em")return o;let s=at(o,"shadow");return s&&s.shadow?s.shadow:o}).join(" "):"")).join(", "),nc=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let o=t.slice(0,r+1),n=t.slice(r+1,t.lastIndexOf(")")),s=")",a=fr(n).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||i_.has(f)||f==="transparent"||ce.test(f))return f;let p=Y(f);return be(p)?p:f}).join(" ")));return o+a.join(", ")+s},nh=(t,e)=>{let r=A();return t.split(", ").map(o=>et(o)?`var(${o})`:o.includes("url")?o:o.includes("gradient")?nc(o,e):r.gradient[t]?{backgroundImage:ht(t,e||r.globalTheme)}:o.includes("/")||o.startsWith("http")||o.includes(".")&&!Ue(o)?`url(${o})`:o).join(" ")},sh=t=>w(t)&&t.split(" ").map(e=>at(e,"gap").gap).join(" "),c_=t=>{let e=t.split(" ");return e.length?e.map(r=>et(r)?`var(${r})`:r.length<3||r.includes("ms")?Vt(r).timing||r:ee(r)?ee(r):r).join(" "):t},sc=(t,e,r)=>{if(w(t))return t.split(",").map(o=>Vt(o).timing||o).join(",")},ih=t=>{let e=t.split(",");if(e.length)return e.map(c_).join(",")};function rt(t,e,r={},o={}){let n=G.call(this,e||r[t]);if(n==null)return;let s;if(w(n)){if(n.includes("(")){let c=He(n);s=c[0],n=c[1]}let i=r.scaleBoxSize,a=Ha(t);!i&&a&&!o.ratio&&(n=Ga(n))}return o.ratio?le(r,t,n,s):at(n,t,void 0,s)}var N=(t,e=null,r)=>rt(t,e,r,{ratio:!0}),ic=(t,e,r)=>{if(w(t))return{borderRadius:t.split(" ").map((o,n)=>le(e,r,o)[r]).join(" ")}};O();var l_=(t,e)=>{let r=A(),{cssVars:o}=r,n=e.startsWith("--")?e:`--${e}`;return o[n]=t,t},Ot=t=>t,ah={color:gr,gradient:mr,font:Va,fontFamily:fs,fontfamily:fs,theme:ja,icons:tc,semanticIcons:Ot,semanticicons:Ot,svg:us,svgData:Ot,typography:Ot,shadow:yr,spacing:Ot,media:Ot,grid:Ot,class:Ot,timing:Ot,reset:Ot,unit:Ot,animation:Ot,vars:l_},f_=(t,e,r)=>{let o=A(),n=Ca(t),s=n.toLowerCase(),i=o[n]||o[s]||o[t],a=ah[n]||ah[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){o.verbose&&console.warn("Error setting",s,"value",e,r,c)}o.verbose&&console.warn("Can not find",s,"method in scratch")},u_=(t,e)=>{let r=A(),o=t.toLowerCase();return Object.keys(e).sort((s,i)=>{let a=S(e[s])||T(e[s])?1:0,c=S(e[i])||T(e[i])?1:0;return a-c}).forEach(s=>{try{return f_(o,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",o,"value",e[s],s,i)}}),r[o]||r[t]},ch=(t,e)=>{let r=e||A();r.globalTheme=t;let n=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=n&&n.defaultView||(typeof window<"u"?window:null);if(n){let a=r.themeRoot||n.documentElement;if(t&&t!=="auto")a.setAttribute("data-theme",t),t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=p=>{a.setAttribute("data-theme",p.matches?"dark":"light")},f=s.matchMedia("(prefers-color-scheme: dark)");if(l(f),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=l;try{f.addEventListener("change",l)}catch{f.addListener(l)}}}else a.setAttribute("data-theme","light"),a.style.colorScheme="light"}let i=r.varPrefix?`--${r.varPrefix}-theme-`:"--theme-";for(let a in r.cssVars)a.startsWith(i)&&delete r.cssVars[a];for(let a in r.cssMediaVars)delete r.cssMediaVars[a];if(n&&r.cssVars){let a=r.scopeSelector||":root",c=n.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let p=0;p<f.length;p++)if(f[p].selectorText===a){for(let u in r.cssVars)f[p].style.setProperty(u,r.cssVars[u]);return r}}catch{}}return r},p_={},So=(t,e=p_)=>{let r=e.config||A(),{version:o,verbose:n,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:p,useDocumentTheme:u,useDefaultConfig:d,semanticIcons:h,files:g,assets:m,...y}=t;e.newConfig&&(r=Vd(e.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),n!==void 0&&(r.verbose=n),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),l!==void 0&&(r.useIconSprite=l),u!==void 0&&(r.useDocumentTheme=u),f!==void 0&&(r.globalTheme=f),p!==void 0&&(r.themeRoot=p),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),d!==void 0&&(r.useDefaultConfig=d),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let x=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),_=x&&x.defaultView||(typeof window<"u"?window:null),v=x&&(r.themeRoot||x.documentElement);if(v&&typeof v.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")v.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?v.style.colorScheme=r.globalTheme:v.style.colorScheme="light dark";else if(_&&_.matchMedia){let D=V=>{v.setAttribute("data-theme",V.matches?"dark":"light")},Q=_.matchMedia("(prefers-color-scheme: dark)");if(D(Q),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=D;try{Q.addEventListener("change",D)}catch{Q.addListener(D)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let E=Object.keys(y),P=new Set(E);if(E.forEach(R=>{let D=R.toLowerCase();D!==R&&P.has(D)&&W(y[D],y[R])}),E.map(R=>{let D=R.toLowerCase();if(!(D!==R&&P.has(D)))return u_(R,y[R])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{Ua()}catch(R){r.verbose&&console.warn("Error applying typography sequence",R)}if(y.spacing)try{qa()}catch(R){r.verbose&&console.warn("Error applying spacing sequence",R)}if(y.timing)try{Xa()}catch(R){r.verbose&&console.warn("Error applying timing sequence",R)}Ya();let B=rc();return B&&(r.reset=B),r};var br=new Map,d_=null,cc=null,h_=null;function lc(t){t.batchAtomicCss&&(cc=t.batchAtomicCss),t.compoundCssClass&&(h_=t.compoundCssClass)}var g_=new Set;function m_(t){try{let e=A();e&&(e.document=t)}catch{}t&&g_.add(t)}function ph(){try{let t=A();if(t?.document)return t.document}catch{}return typeof document<"u"?document:null}var y_={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function Ge(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function ds(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 b_(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():ds(e)}function lh(t,e,r){let o=(r?r+"":"")+t+":"+e,n=br.get(o),s=n?null:Ge(t);if(!n){let a=y_[t]||ds(t),c=b_(e);n=r?`_${r}_${a}-${c}`:`_${a}-${c}`,br.set(o,n)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return n;let i=`.${n}{${s||Ge(t)}:${e}}`;return Rt(i),n}var fh=new WeakMap;function Rt(t,e){let r=dh(e);if(!r)return;let o=fh.get(r);if(o||(o=new Set,fh.set(r,o)),!o.has(t)){o.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var uh=new WeakMap;function dh(t){let e=t||ph();if(!e||!e.head)return null;let r=uh.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let o=e.head.querySelector("style[data-smbls]");o||(o=e.createElement("style"),o.setAttribute("data-smbls",""),e.head.appendChild(o));let n=o.sheet;return uh.set(e,n),d_=n,n}var x_=8;function Ke(t,e,r){if(!t||typeof t!="object")return"";let o=null,n=0,s=[];for(let i in t){let a=t[i];a==null||a===!1||a===""||(typeof a=="object"?s.push(S_(i,a,r)):cc?(o||(o=[]),o.push(i,String(a)),n++):s.push(lh(i,String(a),r)))}if(o&&n>=x_){let i=o.join("\0"),a=cc(i),c=a.indexOf("\0"),l=a.substring(0,c),f=a.substring(c+1);if(f){let p=f.split(`
|
|
35
|
-
`);for(let u=0;u<p.length;u++)p[u]&&Rt(p[u])}if(s.length>0)s.push(l);else return l}else if(o)for(let i=0;i<o.length;i+=2)s.push(lh(o[i],o[i+1],r));return s.join(" ")}var ac=new Map;function S_(t,e,r){let o=(r?r+"":"")+t+JSON.stringify(e),n=br.get(o);if(n){let u=ac.get(n);if(u)for(let d=0;d<u.length;d++)Rt(u[d]);return n}n=r?`_${r}_c${ds(o)}`:`_c${ds(o)}`;let s="",i=[],a=u=>typeof u=="string"&&(u.indexOf("{")!==-1||u.indexOf("}")!==-1),c=(u,d)=>{let h="";for(let g in d){let m=d[g];if(m!=null)if(typeof m=="object")c([...u,g],m);else{if(a(m))continue;h+=`${Ge(g)}:${m};`}}h&&(u.length===0?s+=h:i.push({chain:u,body:h}))};c([],e);let l=u=>{if(!u.length)return`.${n}`;let d=u[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${n}`):h.startsWith(":")?`.${n}${h}`:`.${n} ${h}`);for(let h=1;h<u.length;h++){let g=u[h].split(",").map(y=>y.trim()),m=[];for(let y of d)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);d=m}return d.join(", ")},f=[];if(t.startsWith("@media")||t.startsWith("@supports")){if(s){let u=`${t}{.${n}{${s}}}`;f.push(u),Rt(u)}for(let u of i){let d=l(u.chain),h=`${t}{${d}{${u.body}}}`;f.push(h),Rt(h)}return ac.set(n,f),br.set(o,n),n}let p=l([t]);if(s){let u=`${p}{${s}}`;f.push(u),Rt(u)}for(let u of i){let h=`${l([t,...u.chain])}{${u.body}}`;f.push(h),Rt(h)}return ac.set(n,f),br.set(o,n),n}function ot(t){if(dh(),typeof t=="string"){Rt(t);return}let e=Object.keys(t),r=o=>{let n=o.match(/max-width:\s*(\d+)/);return n?parseInt(n[1]):0};e.sort((o,n)=>{let s=o.startsWith("@media"),i=n.startsWith("@media");return!s&&!i?0:s?i?r(n)-r(o):1:-1});for(let o of e){let n=t[o];if(o.startsWith("@media")||o.startsWith("@supports"))for(let s in n){let i=n[s];if(typeof i=="object"&&i!==null){let a="";for(let c in i){let l=c.startsWith("--")?c:Ge(c);a+=`${l}:${i[c]};`}Rt(`${o}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Ge(s);Rt(`${o}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in n){let c=n[a];if(typeof c=="object"&&c!==null)i=!0;else{let l=a.startsWith("--")?a:Ge(a);s+=`${l}:${c};`}}if(s&&Rt(`${o}{${s}}`),i){let a=[],c=[];for(let l in n)typeof n[l]=="object"&&n[l]!==null&&(l.startsWith("@media")||l.startsWith("@supports")?a.push(l):c.push(l));a.sort((l,f)=>{let p=u=>{let d=u.match(/max-width:\s*(\d+)/);return d?parseInt(d[1]):0};return p(f)-p(l)});for(let l of c)ot({[`${o} ${l}`]:n[l]});for(let l of a)ot({[l]:{[o]:n[l]}})}}}}function hs(t,e){let r="";for(let o in e){let n="";for(let s in e[o])n+=`${Ge(s)}:${e[o][s]};`;r+=`${o}{${n}}`}return Rt(`@keyframes ${t}{${r}}`),t}function __(){return br.size}O();var fc="http://www.w3.org/2000/svg",ys=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"]),w_=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 gs(t){return w_.has(t)||ys.has(t)}function bs(t){return ys.has(t)}function xr(t){let{tag:e,key:r}=t;if(typeof e=="function"&&(e=e(t)),e===!0&&(e=r),typeof e=="string"&&gs(e))return e;if(!r||typeof r!="string")return"div";let o=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),n=r.toLowerCase();return n.includes(".")&&(n=n.split(".")[0]),n.includes("_")&&(n=n.split("_")[0]),gs(n)&&!o.has(n)?n:"div"}var hh={};function ms(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(bs(t)){let o=e?.parent;if(t==="svg"||o?.node?.namespaceURI===fc)return r.createElementNS(fc,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function Sr(t){let e=t.tag=xr(t),o=bs(e)&&(e==="svg"||t.parent?.node?.namespaceURI===fc)?"svg:"+e:e,n=t?.context?.document||globalThis.document,s=hh[o];if(s||(s=hh[o]=ms(e,t)),!s)return null;let i=n&&s.ownerDocument!==n?ms(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var Ct=new Set(["extends","children","content","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","__name","__ref","__hash","__text","parent","node"]),gh={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},_r=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","error","beforeRemove","remove"]),mh=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),xs=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 uc=new WeakMap,k_={passive:!0},v_={passive:!0,capture:!0},pc=(t,e)=>mh.has(t)?e?v_:k_:e||!1;function bh(t){let e=uc.get(t);return e||(e={handlers:new Map,installed:new Set},uc.set(t,e)),e}function C_(t,e){let r=bh(e);if(r.installed.has(t))return;r.installed.add(t);let o=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave",n=t==="mouseenter"||t==="mouseleave";e.addEventListener(t,s=>{let i=s.target;for(;i&&i!==e;){let a=r.handlers.get(t);if(a){let c=a.get(i);if(c){if(n&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},pc(t,o))}function dc(t,e,r,o){o||(o=e.ownerDocument?.documentElement||e.getRootNode());let n=bh(o);C_(t,o),n.handlers.has(t)||n.handlers.set(t,new WeakMap),n.handlers.get(t).set(e,r)}function hc(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let o=uc.get(r);if(!o)return;let n=o.handlers.get(t);n&&n.delete(e)}function yh(t){return xs.has(t)&&!_r.has(t)}function Ss(t,e,r){let{node:o,context:n}=e;if(!o)return;let s=n?.designSystem,i=a=>{s&&ft(s);try{let c=r.call(e,a,e,e.state,n);if(c&&typeof c.then=="function"){c.catch(l=>{e.error=l,console.error("[DOMQL] Async event error:",l)}).finally(()=>{s&<()});return}}catch(c){if(e.error=c,console.error("[DOMQL] Event error:",c),n?.strictMode)throw c}s&<()};if(yh(t)){let a=n?.rootNode||o.ownerDocument?.documentElement;dc(t,o,i,a)}else o.addEventListener(t,i,pc(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(yh(t)){let a=n?.rootNode||o.ownerDocument?.documentElement;hc(t,o,a)}else o.removeEventListener(t,i,pc(t,!1))})}function xh(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 _s(t,e,r){let o=xh(e);if(!o.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<o.length;i++){let a=Sh(o[i],s);a&&a!==e&&_h(t,a,r,new Set([e]))}}function Sh(t,e){if(typeof t=="string"){if(t.includes(">")){let r=t.split(">").map(n=>n.trim()),o=e[r[0]]||e[`smbls.${r[0]}`];for(let n=1;n<r.length&&o;n++)o=o[r[n]];return o||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function _h(t,e,r,o=new Set){if(o.has(e))return;o.add(e);let n=xh(e);if(n.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<n.length;a++){let c=Sh(n[a],i);c&&_h(t,c,r,o)}}for(let s in e){if(s==="extends"||s==="extend")continue;let i=e[s];t[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?t[s]={...i}:t[s]=i:typeof t[s]=="object"&&typeof i=="object"&&!Array.isArray(t[s])&&!Array.isArray(i)&&t[s]!==null&&i!==null?t[s]=wh(t[s],i):t[s]=i}}function wh(t,e){let r={...t};for(let o in e){let n=r[o],s=e[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=wh(n,s):r[o]=s}return r}ir();function ws(t={},e={}){let r=this,o=r.__ref;if(o){if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,e)===!1)return r;if(Ie(()=>{if(t.state&&pt(r.state)&&r.state.update(t.state),t.text!==void 0&&(r.text=t.text,!o.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=t.text??"":r.node.textContent=t.text??"")),t.html!==void 0&&(r.html=t.html,!o.__exec.html&&r.node&&(r.node.innerHTML=t.html)),t.style&&r.node?.style){if(!o.__exec.style)for(let n in t.style){let s=t.style[n];if(s==null)continue;let i=n.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let n in t.attr){let s=t.attr[n];s==null||s===!1?r.node.removeAttribute(n):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(n,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let n in t.data)r.node.dataset[n]=t.data[n];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let n in t){if(Ct.has(n)||n==="state")continue;let s=t[n],i=r[n];if(i&&i.__ref&&typeof i.update=="function")i.update(s,e);else if(typeof s=="object"&&s!==null){let a=n.charCodeAt(0);a>=65&&a<=90&&zt(s,r,n,e)}else n!=="text"&&n!=="html"&&n!=="style"&&n!=="attr"&&n!=="data"&&(r[n]=s)}}),r.node&&o.__conditionalRunners)for(let n of o.__conditionalRunners)n();return Xt("update",r),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}}function wr(t){if(!t)return;let e=t.__ref;if(e){try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){for(let r=0;r<e.__children.length;r++){let o=e.__children[r],n=t[o];n&&n.__ref&&wr(n)}e.__children.length=0}if(t.node?.parentNode&&t.node.remove(),t.state?.destroy&&t.state.__element===t&&t.state.destroy(),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(r){console.error("[smbls] onRemove error:",r)}t.node=null,t.parent=null,t.__ref=null}}function ks(){wr(this)}O();O();var A_=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],E_=["none","forwards","backwards","both"],T_=["normal","reverse","alternate","alternate-reverse"],O_=["running","paused"],R_=t=>/^[\d.]+m?s$/.test(t),P_=0,gc=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(S(t)){let n=`smbls-anim-${P_++}`;return{animationName:hs(n,t)}}let o=r&&r[t];return S(o)?hs(t,o):t},I_=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},o=t.split(/\s+/),n=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let p of o)r&&r[p]?n=p:R_(p)?s.push(p):A_.includes(p)||p.startsWith("cubic-bezier")||p.startsWith("steps(")?i=p:p==="infinite"||/^\d+$/.test(p)?a=p==="infinite"?p:Number(p):T_.includes(p)?c=p:E_.includes(p)?l=p:O_.includes(p)?f=p:n||(n=p);return{name:n,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},kh={animation:(t,e)=>{if(w(t)&&t.includes(" ")){let r=I_(t,e);return{animationName:gc(r.name||t,e),animationDuration:r.durations[0]||Vt(e.animationDuration||"A").timing,animationDelay:r.durations[1]||Vt(e.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||ee(e.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.animationIterationCount||1,animationPlayState:r.playState||e.animationPlayState,animationDirection:r.direction||e.animationDirection}}return{animationName:gc(t,e),animationDuration:Vt(e.animationDuration||"A").timing,animationDelay:Vt(e.animationDelay||"0s").timing,animationTimingFunction:ee(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||"both",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:gc(t,e)}),animationDuration:t=>({animationDuration:Vt(t).timing}),animationDelay:t=>({animationDelay:Vt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:ee(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};O();var vh={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>N("height",t,e),width:(t,e)=>N("width",t,e),boxSizing:t=>ct(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("height",e),...rt("width",r||e)}},inlineSize:(t,e)=>N("inlineSize",t,e),blockSize:(t,e)=>N("blockSize",t,e),minWidth:(t,e)=>N("minWidth",t,e),maxWidth:(t,e)=>N("maxWidth",t,e),widthRange:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("minWidth",e),...rt("maxWidth",r||e)}},minHeight:(t,e)=>N("minHeight",t,e),maxHeight:(t,e)=>N("maxHeight",t,e),heightRange:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("minHeight",e),...rt("maxHeight",r||e)}},size:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...N("inlineSize",e),...N("blockSize",r||e)}},minBlockSize:(t,e)=>N("minBlockSize",t,e),minInlineSize:(t,e)=>N("minInlineSize",t,e),maxBlockSize:(t,e)=>N("maxBlockSize",t,e),maxInlineSize:(t,e)=>N("maxInlineSize",t,e),minSize:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("minInlineSize",e),...rt("minBlockSize",r||e)}},maxSize:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("maxInlineSize",e),...rt("maxBlockSize",r||e)}},borderWidth:(t,e)=>N("borderWidth",t,e),padding:(t,e)=>N("padding",t,e),scrollPadding:(t,e)=>N("scrollPadding",t,e),paddingInline:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("paddingInlineStart",e),...rt("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("paddingBlockStart",e),...rt("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>N("paddingBlockStart",t,e),paddingBottom:(t,e)=>N("paddingBlockEnd",t,e),paddingLeft:(t,e)=>N("paddingInlineStart",t,e),paddingRight:(t,e)=>N("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>N("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>N("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>N("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>N("paddingInlineEnd",t,e),margin:(t,e)=>N("margin",t,e),marginInline:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("marginInlineStart",e),...rt("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!w(e.marginBlock))return;let[r,o]=e.marginBlock.split(" ");return{...rt("marginBlockStart",r),...rt("marginBlockEnd",o||r)}},marginTop:(t,e)=>N("marginBlockStart",t,e),marginBottom:(t,e)=>N("marginBlockEnd",t,e),marginLeft:(t,e)=>N("marginInlineStart",t,e),marginRight:(t,e)=>N("marginInlineEnd",t,e),marginInlineStart:(t,e)=>N("marginInlineStart",t,e),marginInlineEnd:(t,e)=>N("marginInlineEnd",t,e),marginBlockStart:(t,e)=>N("marginBlockStart",t,e),marginBlockEnd:(t,e)=>N("marginBlockEnd",t,e),gap:t=>({gap:sh(t)}),columnGap:(t,e)=>le(e,"columnGap",t),rowGap:(t,e)=>le(e,"rowGap",t),flexWrap:t=>({display:"flex",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!w(t))return;let[o,n]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&r?"-reverse":"")+" "+(n||"")}},flexAlign:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,e)=>ic(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>ic(t??e.round,e,"borderRadius")};var Ch={fontSize:t=>Wa(t)||t,fontFamily:t=>({fontFamily:za(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Ah={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,o)=>{if(!t)return;let n=o.assets&&o.assets[t];if(n&&n.content)t=`url(${n.content.src})`;else{let s=o.files&&o.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var Eh={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>at(r,"k").k).join(" ")}},left:t=>at(t,"left"),top:t=>at(t,"top"),right:t=>at(t,"right"),bottom:t=>at(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};O();var Ut=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Th={theme:(t,e)=>{if(t)return e.themeModifier?te(t,`@${e.themeModifier}`):te(t)},color:(t,e)=>{let r=Ut(e);if(t)return{color:ht(t,r)}},background:(t,e)=>{let r=Ut(e);if(t)return w(t)&&t.includes("gradient")?{background:nc(t,r)}:{background:ht(t,r)}},backgroundColor:(t,e)=>{let r=Ut(e);if(t)return{backgroundColor:ht(t,r)}},backgroundImage:(t,e,r,o)=>{let n=Ut(e);if(!t)return;let s=o.assets&&o.assets[t];if(s&&s.content)t=s.content.src;else{let i=o.files&&o.files[t];i&&i.content&&(t=i.content.src)}return{backgroundImage:nh(t,n)}},textStroke:t=>({WebkitTextStroke:rh(t)}),outline:t=>({outline:we(t)}),outlineOffset:(t,e)=>N("outlineOffset",t,e),border:t=>({border:we(t)}),borderColor:(t,e)=>{let r=Ut(e);if(t)return{borderColor:ht(t,r)}},borderTopColor:(t,e)=>{let r=Ut(e);if(t)return{borderTopColor:ht(t,r)}},borderBottomColor:(t,e)=>{let r=Ut(e);if(t)return{borderBottomColor:ht(t,r)}},borderLeftColor:(t,e)=>{let r=Ut(e);if(t)return{borderLeftColor:ht(t,r)}},borderRightColor:(t,e)=>{let r=Ut(e);if(t)return{borderRightColor:ht(t,r)}},borderLeft:t=>({borderLeft:we(t)}),borderTop:t=>({borderTop:we(t)}),borderRight:t=>({borderRight:we(t)}),borderBottom:t=>({borderBottom:we(t)}),shadow:(t,e)=>{let r=Ut(e);if(t)return{boxShadow:oh(t,r)}},boxShadow:(t,e)=>{if(!w(t))return;let[r,o]=t.split("!importan"),n=Ut(e),s=o?" !important":"";return{boxShadow:oc(r.trim(),n)+s}},textShadow:(t,{context:e})=>({textShadow:oc(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:we(t)})};var vs={transition:t=>({transition:ih(t)}),transitionDuration:t=>({transitionDuration:sc(t)}),transitionDelay:t=>({transitionDelay:sc(t)}),transitionTimingFunction:t=>({transitionTimingFunction:ee(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};O();var Oh={flow:(t,e)=>{let r=e.reverse;if(!w(t))return;let[o,n]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&r?"-reverse":"")+" "+(n||"")}},wrap:(t,e)=>({display:"flex",flexWrap:t}),align:(t,e)=>{let[r,o]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:o}}};var Rh={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var nt={...kh,...vh,...Ch,...Ah,...Eh,...Th,...vs,...Oh,...Rh};var gt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);O();var $_=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,F_=(t,e,r)=>{let{context:o}=r;if(!o.designSystem?.media)return;let n=t.slice(1),s=o.designSystem.media[n],i=Pt(e,r);if(!s)return{[t]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match($_),c=a?a[1]||a[2]:n,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=o.designSystem?.scopeSelector||":root",p=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${p} &`]:i}}return l},Ph=(t,e,r)=>({[t]:Pt(e,r)}),_o=(t,e,r)=>{let o=`&${t}`,n=Pt(e,r);if(t.includes(",")&&n){let s={},i={};for(let a in n)typeof n[a]=="object"&&n[a]!==null?i[a]=n[a]:s[a]=n[a];if(Object.keys(i).length){let a=o.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[o]=s);for(let l in i){let f=a.map(p=>`${p} ${l}`).join(", ");c[f]=i[l]}return c}}return{[o]:n}},mc=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},D_=(t,e,r)=>{let o=t.slice(1),n=mc(o,r);if(n===void 0&&(n=!!r[o]),!!n)return Pt(e,r)},L_=(t,e,r)=>({[t]:e}),N_=(t,e,r)=>{let o=t.slice(1),n=r[o]===!0||r.state?.[o];if(!n)if(typeof r[o]=="function")try{n=r[o](r,r.state,r.context)}catch{}else{let s=mc(o,r);s!==void 0&&(n=s)}if(n)return Pt(e,r)},M_=(t,e,r)=>{let o=t.slice(1),n=r[o]===!0||r.state?.[o];if(!n)if(typeof r[o]=="function")try{n=r[o](r,r.state,r.context)}catch{}else{let s=mc(o,r);s!==void 0&&(n=s)}if(!n)return Pt(e,r)},Ih=(t,e)=>Pt(t,e),$h={"@":F_,":":_o,"[":_o,"*":_o,"+":_o,"~":_o,"&":Ph,">":Ph,$:D_,"-":L_,".":N_,"!":M_};var yc=Ne(),j_=(t,e,r)=>{let o=e?.context?.designSystem;o&&ft(o);try{let n={},s={},i=(a,c)=>{if(r.unpack){n={...n,...c};return}n[a]=c};for(let a in t){let c=t[a];if(a==="class"&&e.call("isString",t.class)){let l=c.split(" ");if(l.length){let f=e.context.designSystem.class,p=l.reduce((u,d)=>Z(u,f[d]),{});n.designSystemClass=p}}else if(a==="true"){let l=G(c,e);Z(n,Ih(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),!yc&&S(n[a])&&(n[a].label=a)}else if(nt[a]){let l=G(c,e);T(l)&&(l=l.reduce((p,u)=>Z(p,u),{}));let f=nt[a](l,e,e.state,e.context);T(f)&&(f=f.reduce((p,u)=>Z(p,u),{})),f&&i(a,f),!yc&&S(n[a])&&(n[a].label=a)}else if(gt.has(a)){let l=G(c,e);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!yc&&S(n[a])&&(n[a].label=a)}else s[a]=c}return[n,s]}finally{o&<()}},B_=(t,e)=>{let r={};for(let o in t){let n=$h[o.slice(0,1)];if(n){let s=n(o,t[o],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?wt(r[i],s[i]):r[i]=s[i])}}return r},Pt=(t,e,r={unpack:!0})=>{let[o,n]=j_(t,e,r),s=B_(n,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return sn(o,s);o._selectors=s}return o},ZT=(t,e)=>{let r={};if(t.class)for(let o in t.class)r[o]=t.class[o](e);return r};O();var V_=t=>{if(S(t))return Pt(t,t)},rO=(t,e)=>{let r=V_(t);return typeof e=="function"?e(r):Ke(r)};O();function Lh(t,e,r){let o=t?.context?.analyze;if(!o||!o.emit||e==="warn"&&!o.shouldCapture("warnings")||e==="error"&&!o.shouldCapture("errors"))return;let n=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");o.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:n||null,args:r})}function z_(...t){return Lh(this,"warn",t),Un.apply(this,t)}function U_(...t){return Lh(this,"error",t),cr.apply(this,t)}var Fh={update:ws,remove:ks,getDB:Gn,getQuery:Kn,getRootData:Bn,getChildren:Dn,getPath:Ln,nextElement:Wn,previousElement:Hn,verbose:fo,warn:z_,error:U_,variables:qn,spotByPath:Fn,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}},reset(t){let e=this.context?.__create;if(!e)return this;let r=this.parent,o=this.key,n=this.parse();return this.remove(),e(n,r,o,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let r of e.__children){let o=this[r];if(!o)continue;if(typeof t=="function"){if(t(o))return o}else if(typeof t=="string"&&o.key===t)return o;let n=o.lookdown?.(t);if(n)return n}return null},lookdownAll(t,e=[]){let r=this.__ref;if(!r?.__children)return e;for(let o of r.__children){let n=this[o];n&&(typeof t=="function"?t(n)&&e.push(n):typeof t=="string"&&n.key===t&&e.push(n),n.lookdownAll?.(t,e))}return e},getRef(){return this.__ref},getRoot:jn,getRootState:Mn,getRootContext:Vn,getContext:zn,parse(t){let e={},r=t?new Set(t):null,o=this.__ref?.__exec;for(let n in this)if(!(n==="parent"||n==="node"||n==="__ref")&&!r?.has(n)){if(o&&o[n]!==void 0){e[n]=o[n];continue}typeof this[n]!="function"&&(e[n]=this[n])}return e},parseDeep(t){let e=this.parse(t),r=this.__ref;if(r?.__children)for(let o of r.__children)this[o]?.parseDeep&&(e[o]=this[o].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let r of t)e[r]=this[r];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let r=t[e];if(r==null)continue;let o=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),n=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(o,n,"important")}},call(t,...e){let r=this.context,o=r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof o=="function")return o.call(this,...e)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let r=t.__children.indexOf("content");r!==-1&&t.__children.splice(r,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},Dh=new WeakMap;function W_(t){if(!t)return Fh;let e=Dh.get(t);if(e)return e;e=Object.create(Fh);let r=t.methods;if(r)for(let o in r)e[o]=r[o];return Dh.set(t,e),e}function Cs(t){let e=W_(t.context);Object.setPrototypeOf(t,e)}O();ir();var H_=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Wt=(t,e)=>{if(pt(e)){let n=e.__raw||e;e.toggle||Object.defineProperty(n,"toggle",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(n,"set",{value:function(s,i={}){return e.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.update(s,i),e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"setByPath",{value:function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"getByPath",{value:function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"removeByPath",{value:function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"reset",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(e);return e.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(e),e.update(e.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"rootUpdate",{value:function(s,i={}){let a=e;for(;a?.parent&&pt(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"parentUpdate",{value:function(s,i={}){if(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"quietReplace",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(n,"root")||Object.defineProperty(n,"root",{get:function(){let s=e;for(;s?.parent&&pt(s.parent);)s=s.parent;return s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let r=()=>{for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]},o={update(n){if(!n||typeof n!="object")return e;for(let s in n)e[s]=n[s];return e},apply(n){if(typeof n!="function")return e;let s=n(e);return s?e.update(s):e},parse(){return{...e}},toggle(n){return e[n]=!e[n],e},set(n){if(!n||typeof n!="object")return e;r();for(let s in n)e[s]=n[s];return e},replace(n){return e.set(n)},clean(){return r(),e}};for(let n in o)typeof e[n]!="function"&&H_(e,n,o[n])};var q_=function(t,e,r){return t.state=Nh(t,e,r),t.state},Nh=function(t,e,r){let{__ref:o}=t,n=t.state;if(n==null||n===!1){let s=e?.state||{};return Wt(t,s),s}if(typeof n=="string")return o&&(o.__state=n),o.__stateType="string",G_(n,t,e);if(typeof n=="number"||typeof n=="boolean"){o&&(o.__state=n,o.__stateType=typeof n,o.__hasRootState=!0);let s=Nt({value:n});return s.__element=t,e?.state&&(s.parent=e.state),Wt(t,s),s}if(typeof n=="function"&&(n=n(t,e?.state)||{}),typeof n=="object"&&!pt(n)){o&&(o.__hasRootState=!0),n.isRootState&&o&&(o.__hasRootState=!0);let s=Nt({...n});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Wt(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,r),s}return pt(n)?(n.__element=t,n):e?.state||{}};function bc(t,e){if(!e)return t;let r=e.split("/"),o=t;for(let n of r){if(o==null)return{};o=o[n]}return o??{}}function G_(t,e,r){if(!r?.state)return{};if(t===".")return r.state;if(t.startsWith("../")){let n=t.slice(3),s=r.state?.parent;return n&&s?bc(s,n):s??r.state??{}}if(t.startsWith("~/")){let n=r.state;for(;n?.parent;)n=n.parent;let s=t.slice(2);return s?bc(n,s):n??{}}let o=bc(r.state,t);if(o&&typeof o=="object"&&!pt(o)&&!Object.getOwnPropertyDescriptor(o,"root")){let n=r.state?.root||r.state;Object.defineProperty(o,"root",{get:()=>n,enumerable:!1,configurable:!0})}return o}O();var _O=["alert","alertdialog","application","article","banner","button","cell","checkbox","columnheader","combobox","complementary","contentinfo","definition","dialog","directory","document","feed","figure","form","grid","gridcell","group","heading","img","link","list","listbox","listitem","log","main","marquee","math","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","switch","tab","table","tablist","tabpanel","term","textbox","timer","toolbar","tooltip","tree","treegrid","treeitem"],xc={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","hidden","id","lang","part","placeholder","slot","spellcheck","style","tabindex","title","translate","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["open"],del:["cite","datetime"],dialog:["open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","crossorigin","decoding","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alt","autocomplete","capture","checked","crossorigin","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","crossorigin","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],slot:["name"],script:["async","charset","crossorigin","defer","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"]},K_=["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"],Sc=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,Ye=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||Sc(e)||xc.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(xc,t)?xc[t].includes(e):!1,Vh=t=>{if(!w(t))return!1;let e=t.toLowerCase();return K_.includes(e)},wO=(t,e,r)=>{let o={};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(r&&n in r)continue;if(n==="aria"&&e[n]&&typeof e[n]=="object"){for(let a in e[n])St(e[n][a])&&(o["aria-"+a]=e[n][a]);continue}if(n==="data"&&e[n]&&typeof e[n]=="object"){for(let a in e[n])if(St(e[n][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());o["data-"+c]=e[n][a]}continue}let s=Ye(t,n),i=Vh(n);if(St(e[n])&&(s||i)){let a=Sc(n)||n;o[a]=e[n]}}return o},kO=(t,e)=>{let r={};if(t.attr)for(let o in t.attr)r[o]=t.attr[o](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let n=t.aria[o];typeof n=="function"&&(r["aria-"+o]=n(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let o in t.data){let n=t.data[o];if(typeof n=="function"){let s=o.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=n(e,e.state,e.context)}}return r},Xe=(t,e)=>{let r=t.call("exec",e,t);if(r)return w(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},Mh=(t,e)=>{let r=(t.preSrc||"")+(Xe(t,e)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:o}=t;if(!o.files&&!o.assets)return r;if(r.startsWith("/assets/")){let n=r.slice(8),s=o.assets&&(o.assets[r]||o.assets[n]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let n=r.slice(7),s=o.files&&(o.files[r]||o.files[n]);return s&&s.content?s.content.src:r}if(o.assets){let n=o.assets[r];if(n&&n.content)return n.content.src}if(o.files){let n=o.files[r];if(n&&n.content)return n.content.src}return r},jh={src:t=>Mh(t,t.src),href:t=>Xe(t,t.href),action:t=>Xe(t,t.action),poster:t=>Mh(t,t.poster),data:t=>Xe(t,t.data)},zh=t=>{let e=t.tag||"div",r={};for(let o in jh)if(t[o]!==void 0&&Ye(e,o)){let n=jh[o](t);n!==void 0&&(r[o]=n)}return r},Bh=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},X_=(t,e,r)=>{if(t==="$"){let n=Bh(e,r);return n===void 0&&(n=!!r[e]),n}let o=r[e]===!0||r.state[e];if(!o){let n=Bh(e,r);n!==void 0&&(o=n)}return t==="."?!!o:!o},Y_=new Set(["$",".","!"]),vO=(t,e,r)=>{let o={},n=(s,i,a,c)=>{let l=i;o[s]=f=>{if(X_(a,c,f))return C(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!Y_.has(i))continue;let a=t[s];if(!a||typeof a!="object")continue;let c=s.slice(1);for(let l in a){if(r&&l in r)continue;if(l==="aria"&&a[l]&&typeof a[l]=="object"){for(let d in a[l])n("aria-"+d,a[l][d],i,c);continue}if(l==="data"&&a[l]&&typeof a[l]=="object"){for(let d in a[l]){let h=d.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());n("data-"+h,a[l][d],i,c)}continue}let f=Ye(e,l),p=Vh(l);if(!f&&!p)continue;let u=Sc(l)||l;n(u,a[l],i,c)}}return o};var Z_=1;function vr(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function J_(t){return t.charAt(2).toLowerCase()+t.slice(3)}function Q_(t){return t.toLowerCase()}function kc(t,e){let r={...t};for(let o in e){let n=r[o],s=e[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=kc(n,s):r[o]=s}return r}function zt(t,e,r,o={},n){if(t==null||t===!1)return null;(typeof t=="string"||typeof t=="number")&&(t={text:t});let s=Object.create(null);s.key=r||t.key||`_${Z_++}`,s.parent=e||null,s.context=t.context||e?.context||o.context||{},s.context.__create||(s.context.__create=zt);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||s,path:e?.__ref?.path?[...e.__ref.path,s.key]:[s.key]};if(r&&!t.extends&&!t.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(t={extends:m,...t})}}_s(s,t,o);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let g in t){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=t[g],y=s[g],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=kc(y,m):b&&a.has(g)?s[g]={...y,...m}:s[g]=m}function l(g){for(let m in g){let y=g[m],b=s[m],x=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";x&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=kc(b,y):x&&a.has(m)?s[m]={...b,...y}:s[m]=y}}c&&l(c),t.props&&typeof t.props=="object"&&l(t.props),t.data!==void 0&&(s.data=t.data),t.classlist!==void 0&&(s.classlist=t.classlist),t.text!==void 0&&(s.text=t.text),t.html!==void 0&&(s.html=t.html);let f=s.scope&&typeof s.scope=="object"?s.scope:null,p=e?.scope,u=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,d=p||(u?Object.create(u):null);if(t.scope!==void 0||f){let g=d?Object.create(d):{};f&&Object.assign(g,f),t.scope!==void 0&&Object.assign(g,t.scope),s.scope=g}else d&&(s.scope=Object.create(d));if(t.if!==void 0&&(s.if=t.if),Cs(s),tw(s,e,t),s.if!=null){let g=typeof s.if=="function"?s.if(s,s.state,s.context):s.if;i.__if=!!g}if(i.__if)typeof t.if=="function"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof t.if=="function"&&vc(s,{if:t.if}),s;s.tag||(s.tag=xr(s)),ke("Init",s,o);let h=s.node=Sr(s);if(!h)return s;ke("AttachNode",s,o),h.setAttribute&&s.key&&h.setAttribute("data-key",s.key),h.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&h.setAttribute("data-smbls-app",s.context.key),s.id&&h.setAttribute&&(h.id=s.id),vc(s,t),Cc(s),Wh(s),Hh(s,o);try{qh(s,o)}catch(g){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`
|
|
33
|
+
src: ${i};`},fr=(t,e,r,o)=>`@font-face {${ka(t,e,r,o)}
|
|
34
|
+
}`,mo=(t,e,r)=>Object.keys(e).map(n=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=e[n],f=Array.isArray(s)?s.map(u=>Jt(u,r)||u):Jt(s,r)||s;return ka(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),cS=t=>Object.keys(t).map(r=>mo(r,t[r].value)),Md=(t,e,r)=>{if(e&&e.isVariable){let s=Jt(e.url,r)||e.url;return ns(s)?ss(s):fr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return mo(t,e,r).map(Ld);let n=Array.isArray(e.url)?e.url.map(s=>Jt(s,r)||s):Jt(e.url,r)||e.url;return fr(t,n,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},va=(t,e)=>Object.keys(t).map(o=>Md(o,t[o].value,e));O();O();O();var is={};$(is,{animation:()=>OS,breakpoints:()=>ES,class:()=>DS,color:()=>bS,devices:()=>TS,document:()=>AS,font:()=>uS,fontFace:()=>hS,fontFamily:()=>pS,fontFamilyTypes:()=>dS,gradient:()=>xS,grid:()=>FS,icons:()=>wS,media:()=>gS,reset:()=>jS,semanticIcons:()=>kS,sequence:()=>Ue,shadow:()=>_S,spacing:()=>yS,svg:()=>RS,svgData:()=>PS,templates:()=>IS,theme:()=>SS,timing:()=>CS,typography:()=>Ca,unit:()=>lS,vars:()=>LS});var Ue={"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 lS={default:"em"};var fS={browserDefault:16,base:16,type:"font-size",ratio:Ue["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Ca=fS;var uS={};var pS={},dS={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},hS={};var gS={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var mS={base:Ca.base,type:"spacing",ratio:Ue.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},yS=mS;var bS={},xS={};var SS={};var _S={};var wS={},kS={};var vS={default:150,base:150,type:"timing",ratio:Ue["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},CS=vS;var AS={};var ES={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},TS={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 OS={};var RS={},PS={};var IS={};var $S={},FS=$S;var DS={};var jS={},LS={};var Nd={},Bd={},as=is,cs={},Aa=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in as){let e=t.toLowerCase();cs[e]=as[t];let r=Aa(e);r!==e&&(cs[r]=as[t]),e!==t&&(cs[t]=as[t])}var Ea={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Nd,cssMediaVars:Bd,CSS_VARS:Nd,CSS_MEDIA_VARS:Bd,_scratchConfig:!0,...cs},Vd=Y(Ea),be={active:"0",0:Ea},X1=t=>(St(t)&&(be.active=t),be[t||be.active]),yo=[],ft=t=>{t&&t._scratchConfig&&yo.push(t)},lt=()=>{yo.pop()},A=t=>yo.length?yo[yo.length-1]:be[t||be.active]||Ea,zd=t=>{if(S(t))return be.active="1",be[1]=W(t,Y(Vd)),t},MS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],NS=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],BS=t=>{for(let e of NS){let r;for(let o of e){let n=t[o];S(n)&&(r=r?W(n,r):n)}if(r)for(let o of e)S(t[o])&&(t[o]=r)}},Ud=(t,e,{cleanBase:r=!1}={})=>{let o=r?null:A(),n=Y(!r&&o&&o._scratchConfig?o:Vd);for(let i of MS)delete n[i];let s=W(e||{},n);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,BS(s),t&&(be[t]=s),s};var xe={"-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"},Ta=(t,e)=>{let{key:r,variable:o,value:n,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(n*100)/100,val:~~n,scaling:s,index:i,scalingVariable:a,variable:o},e.scales[r]=s;let c=Wd.has(e.unit)?"rem":e.unit;e.vars[o]=s+c},We=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Wd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Oa=(t,e)=>{let{base:r,type:o,unit:n}=e,s=Wd.has(n)?"rem":n,i=(Nr(s)?1:r)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(o&&o.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=xe[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=xe[t+1],u=Math.abs(t),p=Math.pow(qd,2*u),d=xe[u];return d?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${d}) / ${p.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Hd=(t,e,r,o)=>{let{type:n}=o,i=t===2&&e.length===2?t+1:t,l=`${"--"+(o.varPrefix?o.varPrefix+"-":"")+(n&&n.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},Ra=(t,e)=>{let o=(t*e-t)/1.618,n=t*e-o,s=t+o,i=(n+s)/2;return[n,i,s]},Pa=(t,e)=>Ra(t,e).map(r=>r/t),Ia=(t,e)=>{let{key:r,base:o,value:n,ratio:s,variable:i,index:a}=t,l=~~(n*s)-~~n,f,[u,p,d]=Ra(n,s);l>16?f=[u,p,d]:f=[u,d],f.forEach((h,g)=>{let m=~~(h/o*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,x=Hd(g+1,f,i,e),_={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:x,index:b};Ta(_,e)})},qd=1.618,VS=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let o=Math.abs(t),n=e*Math.pow(r,t),s=e*Math.pow(r,o)/Math.pow(qd,2*o);return Math.max(n,s)},Bt=t=>{let{type:e,base:r,ratio:o,range:n,subSequence:s}=t,i=Math.abs(n[0])+Math.abs(n[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=n[1]-l,u=xe[f],p=VS(f,r,o),d=~~(p/r*100)/100,h=c+u,g=Oa(f,t),m={key:u,variable:h,value:p,base:r,scaling:d,scalingVariable:g,ratio:o,index:f};Ta(m,t),s&&Ia(m,t)}return t},zS=(t,e=0)=>{let{type:r,base:o,ratio:n,subSequence:s}=t,i=w(e)?e:xe[e],a=w(e)?Object.entries(xe).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=o*Math.pow(n,a),f=~~(l/o*100)/100,d="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=Oa(a,t),g={key:i,variable:d,value:l,base:o,scaling:f,scalingVariable:h,ratio:n,index:a};return Ta(g,c),s&&Ia(g,c),c},$a=(t="A",e)=>{let r=A(),{unit:o}=r;if(w(t)&&et(t))return`var(${t})`;let{sequence:n,unit:s=o.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Br.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 p=`--${e.varPrefix?e.varPrefix+"-":""}${ts(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(${p}${x}${m})`:x;if(g.includes("+")){let[x,_]=g.split("+"),v=`${y(x)} + ${y(_)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("*")){let[x,_]=g.split("*"),v=`${y(x)} * ${y(_)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("-")){let[x,_]=g.split("-"),v=`${y(x)} - ${y(_)}`;return h?`calc((${v}) * -1)`:`calc(${v})`}if(!n[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||r.useVariable){let x=`var(${p}${g}${m})`;return h?`calc(${x} * -1)`:x}let b=n?n[g]:null;return b?s==="ms"||s==="s"?h+b.val+s:h+b.scaling+s:console.warn("can't find",n,g)},Gd=(t,e)=>{if(!["+","-","*","/",","].filter(s=>t.includes(s+" ")).length)return t;let o=/(\s*[+\-*/,]\s*)/;return t.split(o).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:$a(i,e)}).join("")},Se=(t,e,r,o)=>{if(typeof t!="string")return A().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!o&&t.includes("(")){let s=We(t);o=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Gd(t,r):t=$a(t,r),{[e]:o?`${o}(${t})`:t}},Kd=(t,e)=>xe[t-e],Fa=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((o,n)=>{let s=Kd(e,n);return r[s]})};O();var US=(t,e)=>{let r=A(),{cssVars:o}=r;j(t.value)||(o[t.var]=t.value)},Da=(t,e,r)=>{let o=A(),{unit:n}=o,s=e.unit||n.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let u=`${f}-ratio`;t[u]=a;let[p,d,h]=Pa(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${h/a})`},Yd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),He=(t,e={})=>{let r=A(),{unit:o,timing:n,cssVars:s}=r,i=t.unit||o.default,a=Yd.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||Da(s,t,e);for(let u in l){let p=l[u],d=(t.type===n.type?l[u].val:f[u])+a;if(!c){s[p.variable+"_default"]=d,s[p.variable]=p.scalingVariable;continue}e.useDefault===!1?s[p.variable]=d:(s[p.variable+"_default"]=d,s[p.variable]=`var(${p.variable+"_default"})`)}},ur=(t,e,r={})=>{let o=A(),{unit:n,media:s,cssVars:i}=o,a=e.slice(1),c=t[e],l=c.unit||t.unit||n.default,f=Yd.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:p,scales:d}=c,h=s[a];if(!h&&o.verbose&&console.warn("Can't find media query ",h),!u){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),Da(g,c,r);let m=t.unit||n.default;if(f!==m&&p)for(let y in p){let b=p[y],x=d[y]+f;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in p){let m=p[g],y=(Nr(f)?d[g]:p[g].val)+f;!h&&o.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};O();var WS=nr(),ls=t=>{let e=A(),r="";for(let o in t)e.__svgCache[o]||(e.__svgCache[o]=!0,r+=t[o]);return r},HS=t=>{let e=t&&(t.default||t);if(!w(e))return WS&&console.warn("parseRootAttributes:",e,"is not a string"),{};let r=e.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},qS=(t,e)=>{let r=[];if(t.replace(/id="([^"]*)"/g,(n,s)=>(r.push(s),n)),!r.length)return t;let o=t;for(let n of r){let s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${n}`;o=o.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return o},ja=(t,e)=>{let r=HS(e),{width:o,height:n}=r,s=r.viewBox||`0 0 ${o||24} ${n||24}`,c=qS(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c=YS(c),c},GS="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",KS=new RegExp(`<(${GS})\\b([^>]*?)\\s*/>`,"g"),YS=t=>t.replace(KS,"<$1$2></$1>");var ds={};$(ds,{appendSVGSprite:()=>tc,appendSvgIconsSprite:()=>rc,applyDocument:()=>Za,applyHeadings:()=>th,applyReset:()=>oc,applySpacingSequence:()=>Ga,applyTimingSequence:()=>Xa,applyTypographySequence:()=>Wa,checkIfBoxSize:()=>qa,getColor:()=>X,getFontFamily:()=>Ua,getFontSizeByKey:()=>Ha,getMediaColor:()=>ht,getMediaTheme:()=>Qt,getShadow:()=>Ya,getSpacingBasedOnRatio:()=>ce,getSpacingByKey:()=>at,getTheme:()=>Na,getTimingByKey:()=>Vt,getTimingFunction:()=>te,runThroughMedia:()=>Qd,setColor:()=>dr,setFont:()=>za,setFontFamily:()=>us,setGradient:()=>hr,setMediaTheme:()=>Va,setSVG:()=>ps,setShadow:()=>gr,setSvgIcon:()=>ec,setTheme:()=>Ba,splitSpacedValue:()=>Ka});O();var X=(t,e,r)=>{let o=r||A();if(!w(t)){o.verbose&&console.warn(t,"- type for color is not valid");return}if(et(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let n,s,i;if(T(t))[n,s,i]=t;else{let u=ze(t);if(!u){let{color:p,gradient:d}=o,h=d[t]||p[t];return h?o.useVariable?`var(${h.var})`:h.value:t}if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;n=u.name,s=u.alpha,i=u.tone}let{color:a,gradient:c}=o,l=a[n]||c[n];if(!l)return o.verbose&&console.warn("Can't find color ",n),t;e&&(l[e]?l=l[e]:o.verbose&&console.warn(t," - does not have ",e));let f=l.rgb;return f?(i&&!l[i]&&(f=lr(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:o.useVariable?`var(${l.var})`:`rgb(${f})`):o.useVariable?`var(${l.var})`:l.value},ht=(t,e,r)=>{let o=r||A();if(e||(e=o.globalTheme==="auto"?null:o.globalTheme),!w(t)){o.verbose&&console.warn(t,"- type for color is not valid");return}if(et(t))return`var(${t})`;let n;if(T(t))n=t[0];else{let l=ze(t);if(!l)return t;if(l.passthrough)return l.passthrough;if(l.cssVar)return`var(${l.cssVar})`;n=l.name}let{color:s,gradient:i}=o,a=s[n]||i[n],c=S(a);if(c&&a.value)return X(t,`@${e}`,r);if(c){if(o.useVariable&&a.var)return`var(${a.var})`;if(e)return X(t,`@${e}`,r);{let l={};for(let f in a){if(f.charCodeAt(0)!==64)continue;let u=o.media[f.slice(1)];if(!u)continue;let p="@media "+(u==="print"?`${u}`:`screen and ${u}`);l[p]=X(t,f,r)}return l}}else return o.verbose&&console.warn("Can't find color",t),t},dr=(t,e,r)=>{let o=A();if(w(t)&&et(t)){let g=t.slice(2);if(t=X(g),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=g.split(" "),y=o.color[m[0]];if(y&&!y.value&&!y.rgb&&(w(y)||T(y)||S(y))&&(o.color[m[0]]=dr(y,m[0]),y=o.color[m[0]]),y&&y.value){let b=y.rgb,x=m[1]!==void 0?m[1]:"1",_=m[2];_&&(b=lr(b,_)),t=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:"1";if(b)try{let _=me(m[0]);_&&_.length>=3?t=`rgba(${lr(_.slice(0,3).join(", "),b)}, ${x})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(T(t)&&(t={"@light":t[0],"@dark":t[1]}),S(t)){let g={};for(let m in t)g[m]=dr(t[m],e,m.slice(0,1)==="@"?m.slice(1):m);if(o.useVariable){let y=`--${o.varPrefix?o.varPrefix+"-":""}color-${e}`,b,x={};for(let _ in g){if(_.charCodeAt(0)!==64)continue;let v=_.slice(1),E=g[_],P=E&&(E.value||E);!P||typeof P!="string"||(x[v]=P,(v==="light"||b===void 0)&&(b=P))}if(b!==void 0){o.cssVars[y]=b,o.cssMediaVars||(o.cssMediaVars={});for(let _ in x){let v=`[data-theme="${_}"]`;if(o.cssMediaVars[v]||(o.cssMediaVars[v]={}),o.cssMediaVars[v][y]=x[_],_==="light"||_==="dark"){let E=`@media (prefers-color-scheme: ${_})`;o.cssMediaVars[E]||(o.cssMediaVars[E]={}),o.cssMediaVars[E][y]=x[_]}}g.var=y}}return g}let s=`--${o.varPrefix?o.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;if(w(i)&&i.includes(".")&&!i.includes("(")){let[g,m]=i.split("."),y=o.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(w(i)&&!i.includes("(")&&!i.startsWith("#")){let g=ze(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=o.color[g.name];m&&!m.value&&!m.rgb&&(w(m)||T(m)||S(m))&&(o.color[g.name]=dr(m,g.name));let y=o.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=lr(b,g.tone));let x=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${x})`}}}let a=me(i),[c,l,f,u=1]=a,p=parseFloat(u.toFixed(2)),d=`${c}, ${l}, ${f}`,h=`rgba(${d}, ${p})`;return o.useVariable&&(o.cssVars[s]=h),{var:s,rgb:d,alpha:p,value:h}},hr=(t,e,r)=>{let o=A();if(w(t)&&et(t)&&(t=X(t.slice(2))),T(t))return{"@light":hr(t[0],e,"light"),"@dark":hr(t[0],e,"dark")};if(S(t)){let i={};for(let a in t)i[a]=hr(t[a],e,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${o.varPrefix?o.varPrefix+"-":""}gradient-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=t.value||t),{var:s,value:t.value||t}};O();var XS=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"]),Xd=["color","Color","background","Background","fill","Fill","stroke","Stroke"],ZS=t=>{for(let e=0;e<Xd.length;e++)if(t.includes(Xd[e]))return!0;return!1},fs=t=>{let e={},{state:r,media:o,helpers:n,...s}=t;return Object.keys(s).map(a=>{let l=["color","Color","background","border"].some(f=>a.includes(f));return e[a]=l?X(t[a]):t[a]}),e},bo=t=>(t.value||(t.value=fs(t)),t.value),Na=(t,e)=>{let r=A();if(r.useVariable)return Qt(t,e);let o=r.theme;if(w(t)){let[n,s]=t.split(" "),i=o[n];if(i){if(!s&&!e)return bo(i);t=[n,s||e]}}if(j(t)&&t[1]){let n=t[0],s=t[1],{helpers:i,media:a,state:c}=o[n];if(a&&a[s])return bo(a[s]);if(i&&i[s])return bo(i[s]);if(c&&c[s])return bo(c[s])}else if(S(t))return fs(t)},JS=(t,e,r)=>{if(S(e))t.variants.inverse.value=fs(e);else if(e===!0){let{color:o,background:n}=r;t.variants.inverse={value:{color:n,background:o}}}},QS=(t,e,r,o)=>{let n=Na(r);o[`&:${e}`]=n,S(r)&&!r.value&&(r.value=n)},t_=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(n=>{let s=r[n];return QS(t,n,s,e),t}),t):void 0},e_=(t,e,r,o)=>{let n=Na(r);o[`@media (prefers-color-scheme: ${e})`]=n,S(r)&&!r.value&&(r.value=n)},r_=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(n=>{let s=r[n];return(n==="dark"||n==="light")&&e_(t,n,s,e),n==="inverse"&&JS(t,s,e),t}),t):void 0},o_=(t,e)=>{let r=A(),{helpers:o}=t;return o?(Object.keys(o).map(s=>{let i=o[s];return w(i)?o[s]=r.theme[i]:bo(o[s]),t}),t):void 0},Ba=(t,e)=>{let r=A();if(r.useVariable)return Va(t,e);let{state:o,media:n,helpers:s}=t,i=fs(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return t_(t,i),r_(t,i),o_(t,i),{var:c,value:i,state:o,media:n,helpers:s}};var La=(t,e,r)=>{let{cssVars:o}=r;r.cssMediaVars||(r.cssMediaVars={});let n=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let l in t)if(t[l])for(let f of Object.keys(t[l]))a.add(f);let c=new Set;for(let l of a){let f=l.slice(0,1);if(!(f==="@"||f==="."||f===":")&&ZS(l))for(let u in t){if(c.has(u))continue;let p=t[u]?.[l];if(p===void 0)continue;let d=X(p,`@${u}`);d!==void 0&&w(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!XS.has(d)&&c.add(u)}}for(let l of a){let f=l.slice(0,1),u=Object.values(t).some(p=>j(p?.[l]));if(f==="."&&u){let p=l.slice(1),d={};for(let h in t)j(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=La(d,`${e}-${p}`,r)}else if(f===":"&&u){let p=l.replace(/^:+/,""),d={};for(let h in t)j(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=La(d,`${e}-${p}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let d=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}-${l}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,g;for(let m in t){if(c.has(m))continue;let y=t[m]?.[l];if(y===void 0)continue;let b=X(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let x=`[data-theme="${m}"]`;if(n[x]||(n[x]={}),n[x][d]=b,m==="dark"||m==="light"){let _=`@media (prefers-color-scheme: ${m})`;n[_]||(n[_]={}),n[_][d]=b}}g!==void 0&&(o[d]=g),i[l]=`var(${d})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},Va=(t,e,r,o)=>{let n=A(),{cssVars:s}=n,i={value:t},a=!r&&!o;if(j(t)){if(a&&n.useVariable){let c={};for(let l in t)l.startsWith("@")&&j(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=La(c,e,n);Object.assign(i,l)}}for(let c in t){let l=c.slice(0,1),f=t[c];if(l==="@"||l===":"||l==="."){let u=l==="@"&&c;i[c]=Va(f,e,c,o||u)}else if(!a){let u=X(f,o),p=[...new Set([o,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?"-"+p.join("-"):"",g=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}${d}-${c}`;n.useVariable?(n.useThemeSuffixedVars&&(s[g]=u),i[c]=`var(${g})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(w(t)&&et(t)){let l=n.theme[t.slice(2)];return Qt(l,o)}return i},Ma=t=>{let e=A(),r={};for(let o in t){let n=o.slice(0,1);if(j(t[o])){if(n==="@")continue;n===":"?r[`&${o}`]=Ma(t[o]):n==="."&&(r[`&${o}`]=Ma(t[o]))}else r[o]=t[o]}return r},Jd=(t,e)=>{let r=e.shift();return t[r]?Jd(t[r],e):t},Zd=(t,e)=>T(e)?Jd(t,e):w(e)&&t[e]?t[e]:t;var Qt=(t,e)=>{let r=A();if(w(t)&&et(t)&&(t=Qt(t.slice(2))),!t||!w(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[o,...n]=T(t)?t:t.split(" "),s=r.theme[o];return s&&n.length?s=Zd(s,n):s&&e&&(s=Zd(s,e)),Ma(s)};O();O();var za=(t,e)=>{let r=A(),o=`--font-${e}`;if(!t||T(t)&&!t[0])return;let n;if(t.isVariable){let s=Jt(t.url,r.files)||t.url;ns(s)?n=ss(s):n=fr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])n=mo(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;n=fr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:o,value:t,fontFace:n}},Ua=(t,e)=>{let r=A(),{fontFamily:o}=r;return go(e||o,t)},us=(t,e)=>{let r=A(),{fontFamily:o,fontFamilyTypes:n}=r,{value:s,type:i}=t;t.isDefault&&(o.default=e),S(s)&&(s=ar(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${n[i]}`;return{var:a,value:c,arr:s,type:i}};O();var Qd=t=>{let e=A(),{typography:r,media:o}=e;for(let n in t){let s=n.slice(0,1)==="@",i=t[n];if(!s)continue;let{mediaRegenerate:a}=t,c=n.slice(1),{type:l,base:f,ratio:u,range:p,subSequence:d,h1Matches:h,unit:g}=t;Z(i,{type:l,base:f,ratio:u,range:p,subSequence:d,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,x=o[c],_="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+b},!a){Z(i,{sequence:{},scales:{},vars:{}}),Bt(i),ur(t,n);continue}Z(i,{sequence:{},scales:{},templates:{},vars:{}}),Bt(i),ur(t,n)}},th=t=>{let e=A();if(t.h1Matches){let r=t.unit,o=Fa(t),{templates:n}=t;for(let s in o){let i=`h${parseInt(s)+1}`,a=n[i];n[i]={fontSize:e.useVariable?`var(${o[s]?.variable})`:`${o[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Wa=()=>{let t=A(),{typography:e}=t;Bt(e),th(e),He(e),Qd(e)},Ha=t=>{let e=A(),{typography:r}=e;return Se(t,"fontSize",r)};O();O();var n_=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:n,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;Z(r,{type:n,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Bt(r),ur(t,e)}},qa=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),o=e.includes("border")||e.includes("outline");return r&&!o},Ga=()=>{let t=A(),{spacing:e}=t;Bt(e),He(e),n_(e)},s_=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Bt(t)},at=(t,e="padding",r,o)=>{let n=s_(r);if(w(t)&&!o&&t.includes("(")){let i=We(t);o=i[0],t=i[1]}let s=o?[t]:ar(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)=>Se(s[f],e+l+i,n,o);return a[s.length].map((l,f)=>c(l,f))}return Se(t,e,n,o)}},ce=(t,e,r,o)=>{let n=A(),{spacing:s}=n,i=r||t[e];if(!o&&w(i)&&i.includes("(")){let a=We(i);o=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return at(i,e,a,o)}return at(i,e,s,o)},Ka=t=>{let e=r=>{let o=["+","-","*","/"].includes(r),n=Br.some(i=>t.includes(i));return o||n?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};O();var gr=(t,e,r,o)=>{let n=A();if(T(t))return{"@light":gr(t[0],e,"light"),"@dark":gr(t[1],e,"dark")};if(S(t)){let a={};for(let c in t)a[c]=gr(t[c],e,c.startsWith("@")?c.slice(1):c);return a}w(t)&&!ae.test(t)&&(t=cr(t).map(a=>(a=a.trim(),a.split(/\s+/).map(c=>{if(c=c.trim(),!c)return"";if(c.startsWith("--"))return`var(${c})`;let l=X(c);if(ye(l))return l;if(/^\d/.test(c)||c==="0"||c.includes("px")||c.slice(-2)==="em"||c==="inset"||c==="none")return c;let f=at(c,"shadow");return f&&f.shadow?f.shadow:c}).join(" "))).join(", "));let i=`--${n.varPrefix?n.varPrefix+"-":""}shadow-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[i]=t),{var:i,value:t}},Ya=(t,e)=>{let r=A();if(e||(e=r.globalTheme),!w(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(et(t))return`var(${t})`;let[o]=T(t)?t:t.split(" "),s=r.shadow[o],i=S(s);if(!s)return r.verbose&&console.warn("Can't find color ",o),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let l=r.media[c.slice(1)],f="@media "+(l==="print"?`${l}`:`screen and ${l}`);a[f]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};O();var Xa=()=>{let t=A(),{timing:e}=t;Bt(e),He(e)},te=t=>{let e=A(),{timing:r}=e;return r[t]||r[Qn(t)]||t},Vt=(t,e="timing")=>{let r=A(),{timing:o}=r;return Se(t,e,o)};O();var Za=()=>{let t=A(),{document:e,fontFamily:r,theme:o,typography:n}=t;return Z(e,{theme:o.document,fontFamily:go(r),fontSize:n.base,lineHeight:n.lineHeight})};O();var Qa={document:q},ps=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?ja(e,t):t},tc=(t,e=Qa)=>{let r=A(),o=Object.keys(t).length?{}:r.svg;for(let n in t)o[n]=t[n];rh(o,e)},ec=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?ps(t,e):t},rc=(t,e=Qa)=>{let r=A(),o=Object.keys(t).length?{}:r.icons;for(let n in t)o[n]=t[n];rh(o,e)},Ja=(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},i_=(t,e)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let o=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new r().parseFromString(o,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},eh=(t,e,r)=>{for(;e.firstChild;){let o=e.firstChild;r.appendChild(t.importNode(o,!0)),o.remove()}},rh=(t,e=Qa)=>{let r=A(),o=e.document||q;if(!o||!o.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),ls(t);let n=o.querySelector("#svgSprite"),s=ls(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=i_(o,s);if(n)if(a)eh(o,a,n);else if(o.body.insertAdjacentHTML)n.insertAdjacentHTML("beforeend",s);else{let c=Ja(o,{isRoot:!1});c.innerHTML=s,n.append(...c.children)}else if(a){let c=Ja(o);c&&c.nodeType&&(eh(o,a,c),o.body.prepend(c))}else if(o.body.insertAdjacentHTML)o.body.insertAdjacentHTML("afterbegin",i);else{let c=Ja(o);c&&c.nodeType&&(c.innerHTML=s,o.body.prepend(c))}};O();var oc=(t={})=>{let e=A(),{reset:r,typography:o,document:n}=e;if(r){if(r[":root"]){let c=r,l=o.templates;c.body={...e.useDocumentTheme?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}=o.templates,a=e.useDocumentTheme?Qt("document"):{};if(r.html&&wt(r.html,a),o.unit){let{media:c}=e;for(let l in o){if(l.charAt(0)!=="@")continue;let f=o[l];if(!f||f.unit===o.unit||!f.unit)continue;let u=f.unit,p=f.base||o.base,d=f.browserDefault||o.browserDefault,h=l.slice(1),g=c[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=p/d+u}}return W(Z(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:o.unit?o.base/o.browserDefault+o.unit:o.browserDefault+"px",fontFamily:n.fontFamily,lineHeight:n.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:n.fontFamily,fontSize:o.base/o.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};O();var a_=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),c_=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),l_=t=>a_.has(t),_e=t=>{let e=t+"";if(ae.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(et(n))return`var(${n})`;if(l_(n)||/^\d/.test(n)||n==="0")return n;let s=X(n);if(ye(s))return s;let i=at(n,"border");return i&&i.border?i.border:n}).join(" ")},oh=t=>ae.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(et(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=X(e);return ye(r)?r:e}).join(" "),nh=(t,e)=>Ya(t,e),nc=(t,e)=>ae.test(t)?t:cr(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(et(o))return`var(${o})`;if(o==="inset"||o==="none")return o;let n=X(o);if(ye(n)){let i=ht(o,e);return S(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(o)||o==="0"||o.includes("px")||o.slice(-2)==="em")return o;let s=at(o,"shadow");return s&&s.shadow?s.shadow:o}).join(" "):"")).join(", "),sc=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let o=t.slice(0,r+1),n=t.slice(r+1,t.lastIndexOf(")")),s=")",a=cr(n).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||c_.has(f)||f==="transparent"||ae.test(f))return f;let u=X(f);return ye(u)?u:f}).join(" ")));return o+a.join(", ")+s},sh=(t,e)=>{let r=A();return t.split(", ").map(o=>et(o)?`var(${o})`:o.includes("url")?o:o.includes("gradient")?sc(o,e):r.gradient[t]?{backgroundImage:ht(t,e||r.globalTheme)}:o.includes("/")||o.startsWith("http")||o.includes(".")&&!ze(o)?`url(${o})`:o).join(" ")},ih=t=>w(t)&&t.split(" ").map(e=>at(e,"gap").gap).join(" "),f_=t=>{let e=t.split(" ");return e.length?e.map(r=>et(r)?`var(${r})`:r.length<3||r.includes("ms")?Vt(r).timing||r:te(r)?te(r):r).join(" "):t},ic=(t,e,r)=>{if(w(t))return t.split(",").map(o=>Vt(o).timing||o).join(",")},ah=t=>{let e=t.split(",");if(e.length)return e.map(f_).join(",")};function rt(t,e,r={},o={}){let n=G.call(this,e||r[t]);if(n==null)return;let s;if(w(n)){if(n.includes("(")){let c=We(n);s=c[0],n=c[1]}let i=r.scaleBoxSize,a=qa(t);!i&&a&&!o.ratio&&(n=Ka(n))}return o.ratio?ce(r,t,n,s):at(n,t,void 0,s)}var L=(t,e=null,r)=>rt(t,e,r,{ratio:!0}),ac=(t,e,r)=>{if(w(t))return{borderRadius:t.split(" ").map((o,n)=>ce(e,r,o)[r]).join(" ")}};O();var u_=(t,e)=>{let r=A(),{cssVars:o}=r,n=e.startsWith("--")?e:`--${e}`;return o[n]=t,t},Ot=t=>t,ch={color:dr,gradient:hr,font:za,fontFamily:us,fontfamily:us,theme:Ba,icons:ec,semanticIcons:Ot,semanticicons:Ot,svg:ps,svgData:Ot,typography:Ot,shadow:gr,spacing:Ot,media:Ot,grid:Ot,class:Ot,timing:Ot,reset:Ot,unit:Ot,animation:Ot,vars:u_},p_=(t,e,r)=>{let o=A(),n=Aa(t),s=n.toLowerCase(),i=o[n]||o[s]||o[t],a=ch[n]||ch[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){o.verbose&&console.warn("Error setting",s,"value",e,r,c)}o.verbose&&console.warn("Can not find",s,"method in scratch")},d_=(t,e)=>{let r=A(),o=t.toLowerCase();return Object.keys(e).sort((s,i)=>{let a=S(e[s])||T(e[s])?1:0,c=S(e[i])||T(e[i])?1:0;return a-c}).forEach(s=>{try{return p_(o,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",o,"value",e[s],s,i)}}),r[o]||r[t]},lh=(t,e)=>{let r=e||A();r.globalTheme=t;let n=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=n&&n.defaultView||(typeof window<"u"?window:null);if(n){let a=r.themeRoot||n.documentElement;if(t&&t!=="auto")a.setAttribute("data-theme",t),t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=u=>{a.setAttribute("data-theme",u.matches?"dark":"light")},f=s.matchMedia("(prefers-color-scheme: dark)");if(l(f),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=l;try{f.addEventListener("change",l)}catch{f.addListener(l)}}}else a.setAttribute("data-theme","light"),a.style.colorScheme="light"}let i=r.varPrefix?`--${r.varPrefix}-theme-`:"--theme-";for(let a in r.cssVars)a.startsWith(i)&&delete r.cssVars[a];for(let a in r.cssMediaVars)delete r.cssMediaVars[a];if(n&&r.cssVars){let a=r.scopeSelector||":root",c=n.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let u=0;u<f.length;u++)if(f[u].selectorText===a){for(let p in r.cssVars)f[u].style.setProperty(p,r.cssVars[p]);return r}}catch{}}return r},h_={},xo=(t,e=h_)=>{let r=e.config||A(),{version:o,verbose:n,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:p,useDefaultConfig:d,semanticIcons:h,files:g,assets:m,...y}=t;e.newConfig&&(r=zd(e.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),n!==void 0&&(r.verbose=n),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),l!==void 0&&(r.useIconSprite=l),p!==void 0&&(r.useDocumentTheme=p),f!==void 0&&(r.globalTheme=f),u!==void 0&&(r.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),d!==void 0&&(r.useDefaultConfig=d),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let x=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),_=x&&x.defaultView||(typeof window<"u"?window:null),v=x&&(r.themeRoot||x.documentElement);if(v&&typeof v.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")v.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?v.style.colorScheme=r.globalTheme:v.style.colorScheme="light dark";else if(_&&_.matchMedia){let D=V=>{v.setAttribute("data-theme",V.matches?"dark":"light")},Q=_.matchMedia("(prefers-color-scheme: dark)");if(D(Q),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=D;try{Q.addEventListener("change",D)}catch{Q.addListener(D)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let E=Object.keys(y),P=new Set(E);if(E.forEach(R=>{let D=R.toLowerCase();D!==R&&P.has(D)&&W(y[D],y[R])}),E.map(R=>{let D=R.toLowerCase();if(!(D!==R&&P.has(D)))return d_(R,y[R])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{Wa()}catch(R){r.verbose&&console.warn("Error applying typography sequence",R)}if(y.spacing)try{Ga()}catch(R){r.verbose&&console.warn("Error applying spacing sequence",R)}if(y.timing)try{Xa()}catch(R){r.verbose&&console.warn("Error applying timing sequence",R)}Za();let B=oc();return B&&(r.reset=B),r};var mr=new Map,g_=null,lc=null,m_=null;function fc(t){t.batchAtomicCss&&(lc=t.batchAtomicCss),t.compoundCssClass&&(m_=t.compoundCssClass)}var y_=new Set;function b_(t){try{let e=A();e&&(e.document=t)}catch{}t&&y_.add(t)}function dh(){try{let t=A();if(t?.document)return t.document}catch{}return typeof document<"u"?document:null}var x_={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 qe(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function hs(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 S_(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():hs(e)}function fh(t,e,r){let o=(r?r+"":"")+t+":"+e,n=mr.get(o),s=n?null:qe(t);if(!n){let a=x_[t]||hs(t),c=S_(e);n=r?`_${r}_${a}-${c}`:`_${a}-${c}`,mr.set(o,n)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return n;let i=`.${n}{${s||qe(t)}:${e}}`;return Rt(i),n}var uh=new WeakMap;function Rt(t,e){let r=hh(e);if(!r)return;let o=uh.get(r);if(o||(o=new Set,uh.set(r,o)),!o.has(t)){o.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var ph=new WeakMap;function hh(t){let e=t||dh();if(!e||!e.head)return null;let r=ph.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let o=e.head.querySelector("style[data-smbls]");o||(o=e.createElement("style"),o.setAttribute("data-smbls",""),e.head.appendChild(o));let n=o.sheet;return ph.set(e,n),g_=n,n}var __=8;function Ge(t,e,r){if(!t||typeof t!="object")return"";let o=null,n=0,s=[];for(let i in t){let a=t[i];a==null||a===!1||a===""||(typeof a=="object"?s.push(w_(i,a,r)):lc?(o||(o=[]),o.push(i,String(a)),n++):s.push(fh(i,String(a),r)))}if(o&&n>=__){let i=o.join("\0"),a=lc(i),c=a.indexOf("\0"),l=a.substring(0,c),f=a.substring(c+1);if(f){let u=f.split(`
|
|
35
|
+
`);for(let p=0;p<u.length;p++)u[p]&&Rt(u[p])}if(s.length>0)s.push(l);else return l}else if(o)for(let i=0;i<o.length;i+=2)s.push(fh(o[i],o[i+1],r));return s.join(" ")}var cc=new Map;function w_(t,e,r){let o=(r?r+"":"")+t+JSON.stringify(e),n=mr.get(o);if(n){let p=cc.get(n);if(p)for(let d=0;d<p.length;d++)Rt(p[d]);return n}n=r?`_${r}_c${hs(o)}`:`_c${hs(o)}`;let s="",i=[],a=p=>typeof p=="string"&&(p.indexOf("{")!==-1||p.indexOf("}")!==-1),c=(p,d)=>{let h="";for(let g in d){let m=d[g];if(m!=null)if(typeof m=="object")c([...p,g],m);else{if(a(m))continue;h+=`${qe(g)}:${m};`}}h&&(p.length===0?s+=h:i.push({chain:p,body:h}))};c([],e);let l=p=>{if(!p.length)return`.${n}`;let d=p[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${n}`):h.startsWith(":")?`.${n}${h}`:`.${n} ${h}`);for(let h=1;h<p.length;h++){let g=p[h].split(",").map(y=>y.trim()),m=[];for(let y of d)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);d=m}return d.join(", ")},f=[];if(t.startsWith("@media")||t.startsWith("@supports")){if(s){let p=`${t}{.${n}{${s}}}`;f.push(p),Rt(p)}for(let p of i){let d=l(p.chain),h=`${t}{${d}{${p.body}}}`;f.push(h),Rt(h)}return cc.set(n,f),mr.set(o,n),n}let u=l([t]);if(s){let p=`${u}{${s}}`;f.push(p),Rt(p)}for(let p of i){let h=`${l([t,...p.chain])}{${p.body}}`;f.push(h),Rt(h)}return cc.set(n,f),mr.set(o,n),n}function ot(t){if(hh(),typeof t=="string"){Rt(t);return}let e=Object.keys(t),r=o=>{let n=o.match(/max-width:\s*(\d+)/);return n?parseInt(n[1]):0};e.sort((o,n)=>{let s=o.startsWith("@media"),i=n.startsWith("@media");return!s&&!i?0:s?i?r(n)-r(o):1:-1});for(let o of e){let n=t[o];if(o.startsWith("@media")||o.startsWith("@supports"))for(let s in n){let i=n[s];if(typeof i=="object"&&i!==null){let a="";for(let c in i){let l=c.startsWith("--")?c:qe(c);a+=`${l}:${i[c]};`}Rt(`${o}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:qe(s);Rt(`${o}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in n){let c=n[a];if(typeof c=="object"&&c!==null)i=!0;else{let l=a.startsWith("--")?a:qe(a);s+=`${l}:${c};`}}if(s&&Rt(`${o}{${s}}`),i){let a=[],c=[];for(let l in n)typeof n[l]=="object"&&n[l]!==null&&(l.startsWith("@media")||l.startsWith("@supports")?a.push(l):c.push(l));a.sort((l,f)=>{let u=p=>{let d=p.match(/max-width:\s*(\d+)/);return d?parseInt(d[1]):0};return u(f)-u(l)});for(let l of c)ot({[`${o} ${l}`]:n[l]});for(let l of a)ot({[l]:{[o]:n[l]}})}}}}function gs(t,e){let r="";for(let o in e){let n="";for(let s in e[o])n+=`${qe(s)}:${e[o][s]};`;r+=`${o}{${n}}`}return Rt(`@keyframes ${t}{${r}}`),t}function k_(){return mr.size}O();var uc="http://www.w3.org/2000/svg",bs=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"]),v_=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 ms(t){return v_.has(t)||bs.has(t)}function xs(t){return bs.has(t)}function yr(t){let{tag:e,key:r}=t;if(typeof e=="function"&&(e=e(t)),e===!0&&(e=r),typeof e=="string"&&ms(e))return e;if(!r||typeof r!="string")return"div";let o=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),n=r.toLowerCase();return n.includes(".")&&(n=n.split(".")[0]),n.includes("_")&&(n=n.split("_")[0]),ms(n)&&!o.has(n)?n:"div"}var gh={};function ys(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(xs(t)){let o=e?.parent;if(t==="svg"||o?.node?.namespaceURI===uc)return r.createElementNS(uc,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function br(t){let e=t.tag=yr(t),o=xs(e)&&(e==="svg"||t.parent?.node?.namespaceURI===uc)?"svg:"+e:e,n=t?.context?.document||globalThis.document,s=gh[o];if(s||(s=gh[o]=ys(e,t)),!s)return null;let i=n&&s.ownerDocument!==n?ys(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var Ct=new Set(["extends","children","content","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","__name","__ref","__hash","__text","parent","node"]),mh={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},xr=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","error","beforeRemove","remove"]),yh=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Ss=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","scroll","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var pc=new WeakMap,C_={passive:!0},A_={passive:!0,capture:!0},dc=(t,e)=>yh.has(t)?e?A_:C_:e||!1;function xh(t){let e=pc.get(t);return e||(e={handlers:new Map,installed:new Set},pc.set(t,e)),e}function E_(t,e){let r=xh(e);if(r.installed.has(t))return;r.installed.add(t);let o=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave",n=t==="mouseenter"||t==="mouseleave";e.addEventListener(t,s=>{let i=s.target;for(;i&&i!==e;){let a=r.handlers.get(t);if(a){let c=a.get(i);if(c){if(n&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},dc(t,o))}function hc(t,e,r,o){o||(o=e.ownerDocument?.documentElement||e.getRootNode());let n=xh(o);E_(t,o),n.handlers.has(t)||n.handlers.set(t,new WeakMap),n.handlers.get(t).set(e,r)}function gc(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let o=pc.get(r);if(!o)return;let n=o.handlers.get(t);n&&n.delete(e)}function bh(t){return Ss.has(t)&&!xr.has(t)}function _s(t,e,r){let{node:o,context:n}=e;if(!o)return;let s=n?.designSystem,i=a=>{s&&ft(s);try{let c=r.call(e,a,e,e.state,n);if(c&&typeof c.then=="function"){c.catch(l=>{e.error=l,console.error("[DOMQL] Async event error:",l)}).finally(()=>{s&<()});return}}catch(c){if(e.error=c,console.error("[DOMQL] Event error:",c),n?.strictMode)throw c}s&<()};if(bh(t)){let a=n?.rootNode||o.ownerDocument?.documentElement;hc(t,o,i,a)}else o.addEventListener(t,i,dc(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(bh(t)){let a=n?.rootNode||o.ownerDocument?.documentElement;gc(t,o,a)}else o.removeEventListener(t,i,dc(t,!1))})}function Sh(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 ws(t,e,r){let o=Sh(e);if(!o.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<o.length;i++){let a=_h(o[i],s);a&&a!==e&&wh(t,a,r,new Set([e]))}}function _h(t,e){if(typeof t=="string"){if(t.includes(">")){let r=t.split(">").map(n=>n.trim()),o=e[r[0]]||e[`smbls.${r[0]}`];for(let n=1;n<r.length&&o;n++)o=o[r[n]];return o||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function wh(t,e,r,o=new Set){if(o.has(e))return;o.add(e);let n=Sh(e);if(n.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<n.length;a++){let c=_h(n[a],i);c&&wh(t,c,r,o)}}for(let s in e){if(s==="extends"||s==="extend")continue;let i=e[s];t[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?t[s]={...i}:t[s]=i:typeof t[s]=="object"&&typeof i=="object"&&!Array.isArray(t[s])&&!Array.isArray(i)&&t[s]!==null&&i!==null?t[s]=kh(t[s],i):t[s]=i}}function kh(t,e){let r={...t};for(let o in e){let n=r[o],s=e[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=kh(n,s):r[o]=s}return r}var So=(t,e,...r)=>{let o=e?.context?.plugins;if(!o)return!1;let n=!1;for(let s of o)typeof s[t]=="function"&&(s[t](e,...r),n=!0);return n};function ks(t={},e={}){let r=this,o=r.__ref;if(o){if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,e)===!1)return r;if(Pe(()=>{if(t.state&&pt(r.state)&&r.state.update(t.state),t.text!==void 0&&(r.text=t.text,!o.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=t.text??"":r.node.textContent=t.text??"")),t.html!==void 0&&(r.html=t.html,!o.__exec.html&&r.node&&(r.node.innerHTML=t.html)),t.style&&r.node?.style){if(!o.__exec.style)for(let n in t.style){let s=t.style[n];if(s==null)continue;let i=n.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let n in t.attr){let s=t.attr[n];s==null||s===!1?r.node.removeAttribute(n):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(n,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let n in t.data)r.node.dataset[n]=t.data[n];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let n in t){if(Ct.has(n)||n==="state")continue;let s=t[n],i=r[n];if(i&&i.__ref&&typeof i.update=="function")i.update(s,e);else if(typeof s=="object"&&s!==null){let a=n.charCodeAt(0);a>=65&&a<=90&&zt(s,r,n,e)}else n!=="text"&&n!=="html"&&n!=="style"&&n!=="attr"&&n!=="data"&&(r[n]=s)}}),r.node&&o.__conditionalRunners)for(let n of o.__conditionalRunners)n();return So("update",r),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}}function Sr(t){if(!t)return;let e=t.__ref;if(e){try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){for(let r=0;r<e.__children.length;r++){let o=e.__children[r],n=t[o];n&&n.__ref&&Sr(n)}e.__children.length=0}if(t.node?.parentNode&&t.node.remove(),t.state?.destroy&&t.state.__element===t&&t.state.destroy(),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(r){console.error("[smbls] onRemove error:",r)}t.node=null,t.parent=null,t.__ref=null}}function vs(){Sr(this)}O();O();var T_=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],O_=["none","forwards","backwards","both"],R_=["normal","reverse","alternate","alternate-reverse"],P_=["running","paused"],I_=t=>/^[\d.]+m?s$/.test(t),$_=0,mc=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(S(t)){let n=`smbls-anim-${$_++}`;return{animationName:gs(n,t)}}let o=r&&r[t];return S(o)?gs(t,o):t},F_=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},o=t.split(/\s+/),n=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let u of o)r&&r[u]?n=u:I_(u)?s.push(u):T_.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):R_.includes(u)?c=u:O_.includes(u)?l=u:P_.includes(u)?f=u:n||(n=u);return{name:n,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},vh={animation:(t,e)=>{if(w(t)&&t.includes(" ")){let r=F_(t,e);return{animationName:mc(r.name||t,e),animationDuration:r.durations[0]||Vt(e.animationDuration||"A").timing,animationDelay:r.durations[1]||Vt(e.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||te(e.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.animationIterationCount||1,animationPlayState:r.playState||e.animationPlayState,animationDirection:r.direction||e.animationDirection}}return{animationName:mc(t,e),animationDuration:Vt(e.animationDuration||"A").timing,animationDelay:Vt(e.animationDelay||"0s").timing,animationTimingFunction:te(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||"both",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:mc(t,e)}),animationDuration:t=>({animationDuration:Vt(t).timing}),animationDelay:t=>({animationDelay:Vt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:te(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};O();var Ch={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>L("height",t,e),width:(t,e)=>L("width",t,e),boxSizing:t=>ct(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("height",e),...rt("width",r||e)}},inlineSize:(t,e)=>L("inlineSize",t,e),blockSize:(t,e)=>L("blockSize",t,e),minWidth:(t,e)=>L("minWidth",t,e),maxWidth:(t,e)=>L("maxWidth",t,e),widthRange:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("minWidth",e),...rt("maxWidth",r||e)}},minHeight:(t,e)=>L("minHeight",t,e),maxHeight:(t,e)=>L("maxHeight",t,e),heightRange:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("minHeight",e),...rt("maxHeight",r||e)}},size:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...L("inlineSize",e),...L("blockSize",r||e)}},minBlockSize:(t,e)=>L("minBlockSize",t,e),minInlineSize:(t,e)=>L("minInlineSize",t,e),maxBlockSize:(t,e)=>L("maxBlockSize",t,e),maxInlineSize:(t,e)=>L("maxInlineSize",t,e),minSize:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("minInlineSize",e),...rt("minBlockSize",r||e)}},maxSize:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("maxInlineSize",e),...rt("maxBlockSize",r||e)}},borderWidth:(t,e)=>L("borderWidth",t,e),padding:(t,e)=>L("padding",t,e),scrollPadding:(t,e)=>L("scrollPadding",t,e),paddingInline:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("paddingInlineStart",e),...rt("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("paddingBlockStart",e),...rt("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>L("paddingBlockStart",t,e),paddingBottom:(t,e)=>L("paddingBlockEnd",t,e),paddingLeft:(t,e)=>L("paddingInlineStart",t,e),paddingRight:(t,e)=>L("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>L("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>L("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>L("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>L("paddingInlineEnd",t,e),margin:(t,e)=>L("margin",t,e),marginInline:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{...rt("marginInlineStart",e),...rt("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!w(e.marginBlock))return;let[r,o]=e.marginBlock.split(" ");return{...rt("marginBlockStart",r),...rt("marginBlockEnd",o||r)}},marginTop:(t,e)=>L("marginBlockStart",t,e),marginBottom:(t,e)=>L("marginBlockEnd",t,e),marginLeft:(t,e)=>L("marginInlineStart",t,e),marginRight:(t,e)=>L("marginInlineEnd",t,e),marginInlineStart:(t,e)=>L("marginInlineStart",t,e),marginInlineEnd:(t,e)=>L("marginInlineEnd",t,e),marginBlockStart:(t,e)=>L("marginBlockStart",t,e),marginBlockEnd:(t,e)=>L("marginBlockEnd",t,e),gap:t=>({gap:ih(t)}),columnGap:(t,e)=>ce(e,"columnGap",t),rowGap:(t,e)=>ce(e,"rowGap",t),flexWrap:t=>({display:"flex",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!w(t))return;let[o,n]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&r?"-reverse":"")+" "+(n||"")}},flexAlign:t=>{if(!w(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,e)=>ac(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>ac(t??e.round,e,"borderRadius")};var Ah={fontSize:t=>Ha(t)||t,fontFamily:t=>({fontFamily:Ua(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Eh={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,o)=>{if(!t)return;let n=o.assets&&o.assets[t];if(n&&n.content)t=`url(${n.content.src})`;else{let s=o.files&&o.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var Th={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>at(r,"k").k).join(" ")}},left:t=>at(t,"left"),top:t=>at(t,"top"),right:t=>at(t,"right"),bottom:t=>at(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};O();var Ut=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Oh={theme:(t,e)=>{if(t)return e.themeModifier?Qt(t,`@${e.themeModifier}`):Qt(t)},color:(t,e)=>{let r=Ut(e);if(t)return{color:ht(t,r)}},background:(t,e)=>{let r=Ut(e);if(t)return w(t)&&t.includes("gradient")?{background:sc(t,r)}:{background:ht(t,r)}},backgroundColor:(t,e)=>{let r=Ut(e);if(t)return{backgroundColor:ht(t,r)}},backgroundImage:(t,e,r,o)=>{let n=Ut(e);if(!t)return;let s=o.assets&&o.assets[t];if(s&&s.content)t=s.content.src;else{let i=o.files&&o.files[t];i&&i.content&&(t=i.content.src)}return{backgroundImage:sh(t,n)}},textStroke:t=>({WebkitTextStroke:oh(t)}),outline:t=>({outline:_e(t)}),outlineOffset:(t,e)=>L("outlineOffset",t,e),border:t=>({border:_e(t)}),borderColor:(t,e)=>{let r=Ut(e);if(t)return{borderColor:ht(t,r)}},borderTopColor:(t,e)=>{let r=Ut(e);if(t)return{borderTopColor:ht(t,r)}},borderBottomColor:(t,e)=>{let r=Ut(e);if(t)return{borderBottomColor:ht(t,r)}},borderLeftColor:(t,e)=>{let r=Ut(e);if(t)return{borderLeftColor:ht(t,r)}},borderRightColor:(t,e)=>{let r=Ut(e);if(t)return{borderRightColor:ht(t,r)}},borderLeft:t=>({borderLeft:_e(t)}),borderTop:t=>({borderTop:_e(t)}),borderRight:t=>({borderRight:_e(t)}),borderBottom:t=>({borderBottom:_e(t)}),shadow:(t,e)=>{let r=Ut(e);if(t)return{boxShadow:nh(t,r)}},boxShadow:(t,e)=>{if(!w(t))return;let[r,o]=t.split("!importan"),n=Ut(e),s=o?" !important":"";return{boxShadow:nc(r.trim(),n)+s}},textShadow:(t,{context:e})=>({textShadow:nc(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:_e(t)})};var Cs={transition:t=>({transition:ah(t)}),transitionDuration:t=>({transitionDuration:ic(t)}),transitionDelay:t=>({transitionDelay:ic(t)}),transitionTimingFunction:t=>({transitionTimingFunction:te(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};O();var Rh={flow:(t,e)=>{let r=e.reverse;if(!w(t))return;let[o,n]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&r?"-reverse":"")+" "+(n||"")}},wrap:(t,e)=>({display:"flex",flexWrap:t}),align:(t,e)=>{let[r,o]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:o}}};var Ph={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var nt={...vh,...Ch,...Ah,...Eh,...Th,...Oh,...Cs,...Rh,...Ph};var gt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);O();var D_=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,j_=(t,e,r)=>{let{context:o}=r;if(!o.designSystem?.media)return;let n=t.slice(1),s=o.designSystem.media[n],i=Pt(e,r);if(!s)return{[t]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(D_),c=a?a[1]||a[2]:n,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=o.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},Ih=(t,e,r)=>({[t]:Pt(e,r)}),_o=(t,e,r)=>{let o=`&${t}`,n=Pt(e,r);if(t.includes(",")&&n){let s={},i={};for(let a in n)typeof n[a]=="object"&&n[a]!==null?i[a]=n[a]:s[a]=n[a];if(Object.keys(i).length){let a=o.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[o]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(", ");c[f]=i[l]}return c}}return{[o]:n}},yc=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},L_=(t,e,r)=>{let o=t.slice(1),n=yc(o,r);if(n===void 0&&(n=!!r[o]),!!n)return Pt(e,r)},M_=(t,e,r)=>({[t]:e}),N_=(t,e,r)=>{let o=t.slice(1),n=r[o]===!0||r.state?.[o];if(!n)if(typeof r[o]=="function")try{n=r[o](r,r.state,r.context)}catch{}else{let s=yc(o,r);s!==void 0&&(n=s)}if(n)return Pt(e,r)},B_=(t,e,r)=>{let o=t.slice(1),n=r[o]===!0||r.state?.[o];if(!n)if(typeof r[o]=="function")try{n=r[o](r,r.state,r.context)}catch{}else{let s=yc(o,r);s!==void 0&&(n=s)}if(!n)return Pt(e,r)},$h=(t,e)=>Pt(t,e),Fh={"@":j_,":":_o,"[":_o,"*":_o,"+":_o,"~":_o,"&":Ih,">":Ih,$:L_,"-":M_,".":N_,"!":B_};var bc=je(),V_=(t,e,r)=>{let o=e?.context?.designSystem;o&&ft(o);try{let n={},s={},i=(a,c)=>{if(r.unpack){n={...n,...c};return}n[a]=c};for(let a in t){let c=t[a];if(a==="class"&&e.call("isString",t.class)){let l=c.split(" ");if(l.length){let f=e.context.designSystem.class,u=l.reduce((p,d)=>Z(p,f[d]),{});n.designSystemClass=u}}else if(a==="true"){let l=G(c,e);Z(n,$h(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),!bc&&S(n[a])&&(n[a].label=a)}else if(nt[a]){let l=G(c,e);T(l)&&(l=l.reduce((u,p)=>Z(u,p),{}));let f=nt[a](l,e,e.state,e.context);T(f)&&(f=f.reduce((u,p)=>Z(u,p),{})),f&&i(a,f),!bc&&S(n[a])&&(n[a].label=a)}else if(gt.has(a)){let l=G(c,e);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!bc&&S(n[a])&&(n[a].label=a)}else s[a]=c}return[n,s]}finally{o&<()}},z_=(t,e)=>{let r={};for(let o in t){let n=Fh[o.slice(0,1)];if(n){let s=n(o,t[o],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?wt(r[i],s[i]):r[i]=s[i])}}return r},Pt=(t,e,r={unpack:!0})=>{let[o,n]=V_(t,e,r),s=z_(n,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return sn(o,s);o._selectors=s}return o},eO=(t,e)=>{let r={};if(t.class)for(let o in t.class)r[o]=t.class[o](e);return r};O();var U_=t=>{if(S(t))return Pt(t,t)},iO=(t,e)=>{let r=U_(t);return typeof e=="function"?e(r):Ge(r)};O();function Lh(t,e,r){let o=t?.context?.analyze;if(!o||!o.emit||e==="warn"&&!o.shouldCapture("warnings")||e==="error"&&!o.shouldCapture("errors"))return;let n=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");o.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:n||null,args:r})}function W_(...t){return Lh(this,"warn",t),Wn.apply(this,t)}function H_(...t){return Lh(this,"error",t),ir.apply(this,t)}var Dh={update:ks,remove:vs,getDB:Kn,getQuery:Yn,getRootData:Vn,getChildren:jn,getPath:Ln,nextElement:Hn,previousElement:qn,verbose:lo,warn:W_,error:H_,variables:Gn,spotByPath:Dn,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}},reset(t){let e=this.context?.__create;if(!e)return this;let r=this.parent,o=this.key,n=this.parse();return this.remove(),e(n,r,o,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let r of e.__children){let o=this[r];if(!o)continue;if(typeof t=="function"){if(t(o))return o}else if(typeof t=="string"&&o.key===t)return o;let n=o.lookdown?.(t);if(n)return n}return null},lookdownAll(t,e=[]){let r=this.__ref;if(!r?.__children)return e;for(let o of r.__children){let n=this[o];n&&(typeof t=="function"?t(n)&&e.push(n):typeof t=="string"&&n.key===t&&e.push(n),n.lookdownAll?.(t,e))}return e},getRef(){return this.__ref},getRoot:Bn,getRootState:Nn,getRootContext:zn,getContext:Un,parse(t){let e={},r=t?new Set(t):null,o=this.__ref?.__exec;for(let n in this)if(!(n==="parent"||n==="node"||n==="__ref")&&!r?.has(n)){if(o&&o[n]!==void 0){e[n]=o[n];continue}typeof this[n]!="function"&&(e[n]=this[n])}return e},parseDeep(t){let e=this.parse(t),r=this.__ref;if(r?.__children)for(let o of r.__children)this[o]?.parseDeep&&(e[o]=this[o].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let r of t)e[r]=this[r];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let r=t[e];if(r==null)continue;let o=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),n=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(o,n,"important")}},call(t,...e){let r=this.context,o=r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof o=="function")return o.call(this,...e)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let r=t.__children.indexOf("content");r!==-1&&t.__children.splice(r,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},jh=new WeakMap;function q_(t){if(!t)return Dh;let e=jh.get(t);if(e)return e;e=Object.create(Dh);let r=t.methods;if(r)for(let o in r)e[o]=r[o];return jh.set(t,e),e}function As(t){let e=q_(t.context);Object.setPrototypeOf(t,e)}O();var G_=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Wt=(t,e)=>{if(pt(e)){let n=e.__raw||e;e.toggle||Object.defineProperty(n,"toggle",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(n,"set",{value:function(s,i={}){return e.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.update(s,i),e},enumerable:!1,configurable:!0}),Object.defineProperty(n,"setByPath",{value:function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"getByPath",{value:function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"removeByPath",{value:function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"reset",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(e);return e.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(e),e.update(e.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"rootUpdate",{value:function(s,i={}){let a=e;for(;a?.parent&&pt(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"parentUpdate",{value:function(s,i={}){if(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(n,"quietReplace",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(n,"root")||Object.defineProperty(n,"root",{get:function(){let s=e;for(;s?.parent&&pt(s.parent);)s=s.parent;return s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let r=()=>{for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]},o={update(n){if(!n||typeof n!="object")return e;for(let s in n)e[s]=n[s];return e},apply(n){if(typeof n!="function")return e;let s=n(e);return s?e.update(s):e},parse(){return{...e}},toggle(n){return e[n]=!e[n],e},set(n){if(!n||typeof n!="object")return e;r();for(let s in n)e[s]=n[s];return e},replace(n){return e.set(n)},clean(){return r(),e}};for(let n in o)typeof e[n]!="function"&&G_(e,n,o[n])};var K_=function(t,e,r){return t.state=Mh(t,e,r),t.state},Mh=function(t,e,r){let{__ref:o}=t,n=t.state;if(n==null||n===!1){let s=e?.state||{};return Wt(t,s),s}if(typeof n=="string")return o&&(o.__state=n),o.__stateType="string",Y_(n,t,e);if(typeof n=="number"||typeof n=="boolean"){o&&(o.__state=n,o.__stateType=typeof n,o.__hasRootState=!0);let s=Lt({value:n});return s.__element=t,e?.state&&(s.parent=e.state),Wt(t,s),s}if(typeof n=="function"&&(n=n(t,e?.state)||{}),typeof n=="object"&&!pt(n)){o&&(o.__hasRootState=!0),n.isRootState&&o&&(o.__hasRootState=!0);let s=Lt({...n});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Wt(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,r),s}return pt(n)?(n.__element=t,n):e?.state||{}};function xc(t,e){if(!e)return t;let r=e.split("/"),o=t;for(let n of r){if(o==null)return{};o=o[n]}return o??{}}function Y_(t,e,r){if(!r?.state)return{};if(t===".")return r.state;if(t.startsWith("../")){let n=t.slice(3),s=r.state?.parent;return n&&s?xc(s,n):s??r.state??{}}if(t.startsWith("~/")){let n=r.state;for(;n?.parent;)n=n.parent;let s=t.slice(2);return s?xc(n,s):n??{}}let o=xc(r.state,t);if(o&&typeof o=="object"&&!pt(o)&&!Object.getOwnPropertyDescriptor(o,"root")){let n=r.state?.root||r.state;Object.defineProperty(o,"root",{get:()=>n,enumerable:!1,configurable:!0})}return o}O();var CO=["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"],Sc={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"]},X_=["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,Ye=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||_c(e)||Sc.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(Sc,t)?Sc[t].includes(e):!1,zh=t=>{if(!w(t))return!1;let e=t.toLowerCase();return X_.includes(e)},AO=(t,e,r)=>{let o={};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(r&&n in r)continue;if(n==="aria"&&e[n]&&typeof e[n]=="object"){for(let a in e[n])St(e[n][a])&&(o["aria-"+a]=e[n][a]);continue}if(n==="data"&&e[n]&&typeof e[n]=="object"){for(let a in e[n])if(St(e[n][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());o["data-"+c]=e[n][a]}continue}let s=Ye(t,n),i=zh(n);if(St(e[n])&&(s||i)){let a=_c(n)||n;o[a]=e[n]}}return o},EO=(t,e)=>{let r={};if(t.attr)for(let o in t.attr)r[o]=t.attr[o](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let n=t.aria[o];typeof n=="function"&&(r["aria-"+o]=n(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let o in t.data){let n=t.data[o];if(typeof n=="function"){let s=o.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=n(e,e.state,e.context)}}return r},Ke=(t,e)=>{let r=t.call("exec",e,t);if(r)return w(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},Nh=(t,e)=>{let r=(t.preSrc||"")+(Ke(t,e)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:o}=t;if(!o.files&&!o.assets)return r;if(r.startsWith("/assets/")){let n=r.slice(8),s=o.assets&&(o.assets[r]||o.assets[n]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let n=r.slice(7),s=o.files&&(o.files[r]||o.files[n]);return s&&s.content?s.content.src:r}if(o.assets){let n=o.assets[r];if(n&&n.content)return n.content.src}if(o.files){let n=o.files[r];if(n&&n.content)return n.content.src}return r},Bh={src:t=>Nh(t,t.src),href:t=>Ke(t,t.href),action:t=>Ke(t,t.action),poster:t=>Nh(t,t.poster),data:t=>Ke(t,t.data)},Uh=t=>{let e=t.tag||"div",r={};for(let o in Bh)if(t[o]!==void 0&&Ye(e,o)){let n=Bh[o](t);n!==void 0&&(r[o]=n)}return r},Vh=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},Z_=(t,e,r)=>{if(t==="$"){let n=Vh(e,r);return n===void 0&&(n=!!r[e]),n}let o=r[e]===!0||r.state[e];if(!o){let n=Vh(e,r);n!==void 0&&(o=n)}return t==="."?!!o:!o},J_=new Set(["$",".","!"]),TO=(t,e,r)=>{let o={},n=(s,i,a,c)=>{let l=i;o[s]=f=>{if(Z_(a,c,f))return C(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!J_.has(i))continue;let a=t[s];if(!a||typeof a!="object")continue;let c=s.slice(1);for(let l in a){if(r&&l in r)continue;if(l==="aria"&&a[l]&&typeof a[l]=="object"){for(let d in a[l])n("aria-"+d,a[l][d],i,c);continue}if(l==="data"&&a[l]&&typeof a[l]=="object"){for(let d in a[l]){let h=d.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());n("data-"+h,a[l][d],i,c)}continue}let f=Ye(e,l),u=zh(l);if(!f&&!u)continue;let p=_c(l)||l;n(p,a[l],i,c)}}return o};var Q_=1;function wr(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function tw(t){return t.charAt(2).toLowerCase()+t.slice(3)}function ew(t){return t.toLowerCase()}function vc(t,e){let r={...t};for(let o in e){let n=r[o],s=e[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=vc(n,s):r[o]=s}return r}function zt(t,e,r,o={},n){if(t==null||t===!1)return null;(typeof t=="string"||typeof t=="number")&&(t={text:t});let s=Object.create(null);s.key=r||t.key||`_${Q_++}`,s.parent=e||null,s.context=t.context||e?.context||o.context||{},s.context.__create||(s.context.__create=zt);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||s,path:e?.__ref?.path?[...e.__ref.path,s.key]:[s.key]};if(r&&!t.extends&&!t.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(t={extends:m,...t})}}ws(s,t,o);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let g in t){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=t[g],y=s[g],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=vc(y,m):b&&a.has(g)?s[g]={...y,...m}:s[g]=m}function l(g){for(let m in g){let y=g[m],b=s[m],x=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";x&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=vc(b,y):x&&a.has(m)?s[m]={...b,...y}:s[m]=y}}c&&l(c),t.props&&typeof t.props=="object"&&l(t.props),t.data!==void 0&&(s.data=t.data),t.classlist!==void 0&&(s.classlist=t.classlist),t.text!==void 0&&(s.text=t.text),t.html!==void 0&&(s.html=t.html);let f=s.scope&&typeof s.scope=="object"?s.scope:null,u=e?.scope,p=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,d=u||(p?Object.create(p):null);if(t.scope!==void 0||f){let g=d?Object.create(d):{};f&&Object.assign(g,f),t.scope!==void 0&&Object.assign(g,t.scope),s.scope=g}else d&&(s.scope=Object.create(d));if(t.if!==void 0&&(s.if=t.if),As(s),rw(s,e,t),s.if!=null){let g=typeof s.if=="function"?s.if(s,s.state,s.context):s.if;i.__if=!!g}if(i.__if)typeof t.if=="function"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof t.if=="function"&&Cc(s,{if:t.if}),s;s.tag||(s.tag=yr(s)),we("Init",s,o);let h=s.node=br(s);if(!h)return s;we("AttachNode",s,o),h.setAttribute&&s.key&&h.setAttribute("data-key",s.key),h.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&h.setAttribute("data-smbls-app",s.context.key),s.id&&h.setAttribute&&(h.id=s.id),Cc(s,t),Ac(s),Hh(s),qh(s,o);try{Gh(s,o)}catch(g){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`
|
|
36
36
|
`+g.stack.split(`
|
|
37
37
|
`).slice(0,6).join(`
|
|
38
|
-
`):"")}}if(Tc(s,e,n),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML)try{let g=s.html(s,s.state,s.context);g!=null&&typeof g!="function"&&(s.node.innerHTML=g)}catch{}if(ke("Create",s,o),ke("Complete",s,o),ke("Render",s,o),ke("RenderRouter",s,o),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&ft(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&<()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function tw(t,e,r){let o=!e,n=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=o&&n&&t.context?.state,i=r.state!==void 0&&!s?r.state:t.state&&!pt(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,Wt(t,t.state);else if(t.context?.state){let a=t.context.state,c={...a},l=t.context?.polyglot;if(l?.translations){let f=a.lang||l.defaultLang||"en",p=l.translations[f];if(p&&typeof p=="object")for(let d in p)c[d]===void 0&&(c[d]=p[d]);let u=new Set(l.languages||[]);for(let d in l.translations)!u.has(d)&&c[d]===void 0&&(c[d]=l.translations[d])}t.state=pt(c)?c:Nt(c),t.state.__element=t,t.state.root=t.state,Wt(t,t.state)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Wt(t,t.state);return}if(typeof i=="string"){if(t.state=Uh(i,e),t.state&&typeof t.state=="object"&&!pt(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}Wt(t,t.state);return}if(typeof i=="function"){let a=i(t,e?.state);t.state=Nt(a||{})}else t.state=Nt({...i});t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Wt(t,t.state)}function _c(t,e){if(!e)return t;let r=e.split("/"),o=t;for(let n of r){if(o==null)return{};o=o[n]}return o??{}}function Uh(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let n=t.slice(3);return n?_c(e.state,n):e.state??{}}if(t.startsWith("~/")){let n=e.state?.root||e.state,s=t.slice(2);return s?_c(n,s):n??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=_c(e.state,t);if(r!=null&&Object.keys(r).length>0)return r;let o=e.context?.polyglot;if(o?.translations){let n=e.state?.root?.lang||o.defaultLang||"en",s=o.translations[n];if(s?.[t]!==void 0)return s[t];if(o.translations[t]!==void 0)return o.translations[t]}return{}}function ew(t){let e=t.__ref,r=t.tag||"div",o=t.context?.designSystem,n=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||Ct.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||vr(a)||nt[a]||gt&>.has(a)||Ye(r,a)||n.push({prop:a,fn:t[a]})}for(let i=0;i<n.length;i++){let{prop:a,fn:c}=n[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){o&&ft(o);try{return c(t,t.state,t.context)}catch{return}finally{o&<()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function vc(t,e){let r=t.__ref;if(ew(t),typeof t.text=="function"){let n=t.text,s=st(()=>{try{let i=n(t,t.state,t.context);t.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=er.call(t,i,t.state)),t.tag==="string"?t.node.nodeValue=i:t.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=n}else if(typeof t.text=="string"&&t.text.includes("{{")){let n=t.text,s=st(()=>{let i=er.call(t,n,t.state);i!=null&&(t.text=i),t.node&&(t.tag==="string"?t.node.nodeValue=i??"":t.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=n}for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&typeof t[n]=="function"&&!Ct.has(n)&&!vr(n)&&!r.__exec[n]){if(nt[n]){let s=t[n],i=n,a=st(()=>{let c=t.context?.designSystem;c&&ft(c);try{let l=s(t,t.state,t.context),f=nt[i](l,t,t.state,t.context);f&&t.node?kr(t.node,f):t.node&&(i==="show"||i==="hide")&&(t.node.style.display="")}finally{c&<()}},{depth:r.path.length});r.__effects.push(a),r.__exec[n]=s}else if(gt&>.has(n)){let s=t[n],i=n,a=st(()=>{let c=t.context?.designSystem;c&&ft(c);try{let l=s(t,t.state,t.context);t.node&&(l!=null?kr(t.node,{[i]:l}):t.node.style[i]="")}finally{c&<()}},{depth:r.path.length});r.__effects.push(a),r.__exec[n]=s}}if(typeof e.html=="function"){let n=e.html,s=st(()=>{let i=n(t,t.state,t.context);t.node&&i!=null&&typeof i!="function"&&(t.node.innerHTML=i)},{depth:r.path.length});r.__effects.push(s),r.__exec.html=n}if(typeof e.value=="function"){let n=e.value,s=st(()=>{try{let i=n(t,t.state,t.context);if(!t.node||!("value"in t.node))return;let a=i==null?"":String(i);if(t.node.value===a)return;let c=typeof document<"u"&&document.activeElement===t.node,l=c&&typeof t.node.selectionStart=="number"?t.node.selectionStart:null,f=c&&typeof t.node.selectionEnd=="number"?t.node.selectionEnd:null;if(t.node.value=a,c&&l!=null&&f!=null)try{t.node.setSelectionRange(l,f)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=n}if(typeof e.style=="function"){let n=e.style,s=st(()=>{let i=n(t,t.state,t.context);kr(t.node,i)},{depth:r.path.length});r.__effects.push(s),r.__exec.style=n}else if(t.style&&typeof t.style=="object")for(let n in t.style){let s=t.style[n];if(typeof s!="function")continue;let i=st(()=>{try{let a=s(t,t.state,t.context);t.node&&kr(t.node,{[n]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}if(t.attr&&typeof t.attr=="object"){for(let n in t.attr)if(typeof t.attr[n]=="function"){let s=t.attr[n],i=n,a=st(()=>{try{let c=s(t,t.state,t.context);t.node?.setAttribute&&(c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(t.aria&&typeof t.aria=="object")for(let n in t.aria){let s=t.aria[n];if(typeof s!="function")continue;let i="aria-"+n.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=st(()=>{try{let c=s(t,t.state,t.context);if(!t.node?.setAttribute)return;c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(t.data&&typeof t.data=="object")for(let n in t.data){let s=t.data[n];if(typeof s!="function")continue;let a="data-"+n.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),c=st(()=>{try{let l=s(t,t.state,t.context);if(!t.node?.setAttribute)return;l==null||l===!1?t.node.removeAttribute(a):typeof l!="function"&&typeof l!="object"&&t.node.setAttribute(a,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(c)}let o=t.classlist&&typeof t.classlist=="object"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class=="object"&&!Array.isArray(t.class)?t.class:null;if(o)for(let n in o){let s=o[n];if(typeof s!="function")continue;let i=st(()=>{try{let a=s(t,t.state,t.context);if(!t.node?.classList)return;typeof a=="string"?t.node.classList.add(a):a?t.node.classList.add(n):t.node.classList.remove(n)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof e.if=="function"){let n=e.if,s=st(()=>{let i=n(t,t.state,t.context),a=r.__if;if(r.__if=!!i,a&&!r.__if&&t.node)t.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){t.node||(t.node=Sr(t));let c=t.parent,l=c?.node;if(l&&t.node){let f=null,p=Object.keys(c),u=p.indexOf(t.key);for(let d=u+1;d<p.length;d++){let h=c[p[d]];if(h?.node?.parentNode===l){f=h.node;break}}f?l.insertBefore(t.node,f):l.appendChild(t.node)}else Tc(t,t.parent);Cc(t)}else{if(r.__ifInitialized=!0,t.tag||(t.tag=xr(t)),ke("Init",t,{}),t.node||(t.node=Sr(t)),!t.node)return;ke("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id);let c=e.if;delete e.if;try{vc(t,e)}finally{e.if=c}Cc(t),Wh(t),Hh(t,{}),qh(t,{}),Tc(t,t.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||Ct.has(n)||typeof t[n]!="function")continue;let s=n.charCodeAt(0);if(s>=65&&s<=90||vr(n))continue;let i=t[n];r.__exec[n]=i;let a=t.tag||"div";if(Ye(a,n)&&!nt[n]&&!(gt&>.has(n))){let c=n,l=st(()=>{try{let f=i(t,t.state,t.context);t.node?.setAttribute&&(f==null||f===!1?t.node.removeAttribute(c):typeof f!="function"&&typeof f!="object"&&(c==="src"&&"src"in t.node?t.node.src=f:t.node.setAttribute(c,f===!0?"":f)))}catch{}},{depth:r.path.length});r.__effects.push(l)}}nw(t)}function Cc(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),sw(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&"value"in e){let r=String(t.value);e.value!==r&&(e.value=r)}if(t.style&&typeof t.style=="object"&&kr(e,t.style),t.attr&&typeof t.attr=="object")for(let r in t.attr){let o=t.attr[r];typeof o=="function"||typeof o=="object"||o==null||o===!1||e.setAttribute&&e.setAttribute(r,o===!0?"":o)}if(t.data&&typeof t.data=="object")for(let r in t.data){let o=t.data[r];typeof o=="function"||typeof o=="object"||o==null||o===!1||e.dataset&&(e.dataset[r]=o===!0?"":o)}if(t.classlist||t.class){let r=t.classlist||t.class;if(typeof r=="string")r.split(" ").forEach(o=>o&&e.classList.add(o));else if(typeof r=="object")for(let o in r){let n=typeof r[o]=="function"?r[o](t,t.state,t.context):r[o];n&&e.classList.add(typeof n=="string"?n:o)}}}}function kr(t,e){if(!t||!e||!t.style)return;let r=null;for(let o in e){let n=e[o];if(n!=null){if(o.charAt(0)==="&"&&typeof n=="object"){r||(r={}),r[o]=n;continue}try{let s=String(n),i=o.replace(/[A-Z]/g,f=>"-"+f.toLowerCase()),a=s.trim(),c=/\s*!important\s*$/.test(a),l=a.replace(/\s*!important\s*$/,"");t.style.setProperty(i,l,c?"important":"")}catch{}}}r&&ow(t,r)}var rw=0;function ow(t,e){let r=`_ds${rw++}`;t.classList.add(r);let o=t.ownerDocument,n=o.querySelector("style[data-smbls-scoped]");n||(n=o.createElement("style"),n.setAttribute("data-smbls-scoped",""),o.head.appendChild(n));let s="";for(let i in e){let a="."+r,c=i.replace(/&/g,a).split(",").map(f=>{let p=f.trim();return p.includes(a)?p:a+p}).join(", "),l=e[i];if(typeof l=="object"){let f="",p="";for(let u in l){let d=l[u];if(typeof d=="object"){let h=u.includes("&")?c.split(", ").map(m=>u.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${u}`).join(", "),g="";for(let m in d)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${d[m]};`;p+=`${h} { ${g} }
|
|
39
|
-
`}else f+=`${
|
|
40
|
-
`),p&&(s+=p)}}s&&(n.textContent+=s)}function nw(t){let e=t.__ref;e.__conditionalRunners=[];for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let o=r.charAt(0);if(o!=="."&&o!=="!")continue;let n=r.slice(1);if(!n)continue;let s=t[r];if(!s||typeof s!="object")continue;let i=o==="!",a={lastMatch:!1,appliedKeys:null},c=()=>{if(!t.node)return;let f,p=t[n];if(p===void 0)if(t.state&&n in t.state)f=t.state[n];else{let h=t.context?.cases?.[n];if(h===void 0)return;f=typeof h=="function"?h.call(t,t):h}else typeof p=="function"?f=p(t,t.state,t.context):f=p;let u=i?!f:!!f;if(u===a.lastMatch)return;a.lastMatch=u;let d=t.context?.designSystem;d&&ft(d);try{if(u){let h={};for(let m in s){if(!Object.prototype.hasOwnProperty.call(s,m))continue;let y=typeof s[m]=="function"?s[m](t,t.state,t.context):s[m];if(y!=null)if(nt[m]){let b=nt[m](y,t,t.state,t.context);if(b){let x=Array.isArray(b)?b:[b];for(let _ of x)_&&Object.assign(h,_)}}else gt&>.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(kr(t.node,h),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let h of a.appliedKeys)t.node.style[h]="";a.appliedKeys=null}}finally{d&<()}};e.__conditionalRunners.push(c);let l=st(c,{depth:e.path.length});e.__effects.push(l)}}var wc=new WeakSet;function sw(t){let{node:e}=t;if(!e)return;if(wc.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}wc.add(t);let r=t.context?.designSystem;r&&ft(r);try{let o={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]=="function"||Ct.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!vr(s)){if(nt[s]){let a=t[s],c=nt[s](a,t,t.state,t.context);if(c){if(Array.isArray(c))for(let l of c)l&&Object.assign(o,l);else Object.assign(o,c);n=!0}}else if(gt&>.has(s)){let a=t[s];a!=null&&typeof a!="object"&&(o[s]=a,n=!0)}else if(s.charCodeAt(0)===45){let a=t[s];a!=null&&typeof a!="object"&&(o[s]=a,n=!0)}else if(s.charAt(0)==="&"){let a=t[s];a&&typeof a=="object"&&(o[s]=a,n=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=t[s];if(a&&typeof a=="object"){let c={};for(let l in a){let f=a[l];if(typeof f=="function"&&(f=f(t,t.state,t.context)),!(f==null||typeof f=="function"))if(nt[l]){let p=nt[l](f,t,t.state,t.context);if(p)if(Array.isArray(p))for(let u of p)u&&Object.assign(c,u);else Object.assign(c,p)}else c[l]=f}if(Object.keys(c).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!t.context?.designSystem?.media?.[s.slice(1)])){let f={};for(let u in c){let d=c[u];f[u]=typeof d=="string"&&!d.includes("!important")?d+" !important":d}let p=s.slice(1);o[`[data-theme="${p}"] &`]=f}else{let f=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let u=s.slice(1),d=t.context?.designSystem?.media?.[u]||t.context?.designSystem?.media?.[u];d&&(f=`@media ${d}`)}let p={};for(let u in c){let d=c[u];if(d&&typeof d=="object"&&!Array.isArray(d)){let h={};for(let m in d)if(nt[m]){let y=nt[m](d[m],t,t.state,t.context);if(y)if(Array.isArray(y))for(let b of y)b&&Object.assign(h,b);else Object.assign(h,y)}else h[m]=d[m];let g=u.startsWith(":")?"":" ";if(f.includes(",")){let m=f.split(",").map(y=>`${y.trim()}${g}${u}`).join(", ");o[m]=h}else o[`${f}${g}${u}`]=h}else p[u]=d}Object.keys(p).length&&(o[f]=p)}n=!0}n=!0}}}}if(n){o.display&&String(o.display).includes("!important")&&(e.style.setProperty("display",String(o.display).replace(/\s*!important\s*$/,""),"important"),delete o.display);let s=Ke(o,null,t.context?.cssPrefix);s&&e.classList&&s.split(" ").forEach(a=>a&&e.classList.add(a));let i=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;if(i!=null){let a=o.display;if(a&&a!==i)if(i==="none"){let c=[];for(let l of e.classList)l.startsWith("_d-")&&l!=="_d-none"&&c.push(l);for(let l of c)e.classList.remove(l);e.classList.add("_d-none")}else e.style.display=t.display}}}finally{r&<(),wc.delete(t)}}function Wh(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let n in t.aria){let s=t.aria[n];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(i,s===!0?"":s)}let r=zh(t);for(let n in r){let s=r[n];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(n,s===!0?"":s)}let o=t.tag||"div";for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||typeof t[n]=="function"||Ct.has(n)||n==="on"||r[n]!==void 0)continue;let s=n.charCodeAt(0);if(!(s>=65&&s<=90)&&!vr(n)&&!(nt[n]||gt&>.has(n))&&Ye(o,n)){let i=t[n];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=er(i,t,t.state,t.context),t[n]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;e.setAttribute(n,i===!0?"":i)}}}function Hh(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!vr(r))continue;let o=t[r];if(typeof o=="string"&&/^[A-Za-z_$][\w$]*$/.test(o)){let s=o;o=function(a){return t.call(s,a)}}if(typeof o!="function")continue;let n=J_(r);_r.has(n)||Ss(Q_(n),t,o)}}function Ac(t,e){let r={...t};for(let o in e){let n=r[o],s=e[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=Ac(n,s):r[o]=s}return r}function Ec(t,e,r){if(!e||!t.node)return;let o=t.childExtends;if(Array.isArray(e)){let s=(t.context?.document||globalThis.document)?.createDocumentFragment();if(!s)return;let i=t.childProps,a=t.childrenAs;for(let c=0;c<e.length;c++){let l=e[c],f=l;(typeof l=="string"||typeof l=="number")&&(l={text:l});let p=i;if(typeof i=="function")try{p=i(t,l)}catch{p=null}if(a==="state"){let h=f;(typeof f=="string"||typeof f=="number")&&(h={value:f,text:f}),l=p?{...p,state:h}:{state:h}}else p&&(l=Ac(p,l));if(o&&!l.ignoreChildExtends)if(l.extends){let h=Array.isArray(l.extends)?l.extends:[l.extends],g=Array.isArray(o)?o:[o];l={...l,extends:[...g,...h]}}else l={extends:o,...l};let u=l?.key||`${c}`,d=zt(l,t,u,r);d?.node&&s.appendChild(d.node)}t.node.appendChild(s);return}if(typeof e=="string"){let n=Uh(e,t);if(Array.isArray(n)){Ec(t,n,r);return}}if(typeof e=="object")for(let n in e){if(Ct.has(n))continue;let s=e[n];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),t.childProps&&(s=Ac(t.childProps,s)),o&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(o)?o:[o];s={...s,extends:[...a,...i]}}else s={extends:o,...s};zt(s,t,n,r)}}}function qh(t,e){let{children:r,content:o}=t,n=t.childExtends;if(typeof r=="function"){let i=r;r=i(t,t.state,t.context),t.children=r;let a=t.__ref,c=!1,l=st(()=>{let f=i(t,t.state,t.context);if(!c){c=!0;return}if(f===t.children)return;if(t.children=f,Array.isArray(f)&&t.childrenAs==="state"){let d=t.childProps,h=[],g=new Map;for(let _=0;_<f.length;_++){let v=f[_],E=d;if(typeof d=="function")try{E=d(t,v)}catch{E=null}let P=E&&E.key||v&&v.key||`${_}`;h.push(P),g.set(P,{rawChild:v,childProps:E})}let m=new Set(h);for(let _=a.__children.length-1;_>=0;_--){let v=a.__children[_];if(!m.has(v)){let E=t[v];E?.remove&&E.remove(),delete t[v],a.__children.splice(_,1)}}let y=t.childExtends,x=(t.context?.document||globalThis.document)?.createDocumentFragment();for(let _ of h){let v=g.get(_),E=v.rawChild,P=t[_];if(P&&P.state){if(E&&typeof E=="object"){let V=P.state;if(typeof V.replace=="function")V.replace(E);else if(typeof V.update=="function"){for(let j in V)if(!(j==="__element"||j==="root"||j==="parent"||j==="update")&&!Object.prototype.hasOwnProperty.call(E,j))try{V[j]=void 0}catch{}V.update(E)}else for(let j in E)V[j]=E[j]}continue}let B=E;(typeof E=="string"||typeof E=="number")&&(B={value:E,text:E});let R=v.childProps,D=R?{...R,state:B}:{state:B};if(y&&!D.ignoreChildExtends)if(D.extends){let V=Array.isArray(D.extends)?D.extends:[D.extends],j=Array.isArray(y)?y:[y];D={...D,extends:[...j,...V]}}else D={extends:y,...D};let Q=zt(D,t,_,e);Q?.node&&x&&x.appendChild(Q.node)}x&&x.childNodes.length&&t.node&&t.node.appendChild(x),a.__children=h;return}for(let d of[...a.__children]){let h=t[d];h?.remove&&h.remove(),delete t[d]}a.__children=[],Ec(t,f,e)},{depth:a.path.length});a.__effects.push(l)}if(Ec(t,r||o,e),r||o)return;let s=t.context?.components||{};{let i=Object.keys(t);for(let a=0;a<i.length;a++){let c=i[a];if(!c.endsWith("Extends")||typeof t[c]!="string")continue;let l=c.slice(0,-7);if(!l||l.charCodeAt(0)<65||l.charCodeAt(0)>90)continue;let f={extends:t[c]};delete t[c];for(let p=a+1;p<i.length;p++){let u=i[p],d=u.charCodeAt(0);if(d>=65&&d<=90||Ct.has(u)||typeof t[u]=="function"&&(u.startsWith("on")||u.startsWith(".")))break;let h=t[u];h!==void 0&&(f[u]=h,delete t[u])}t[l]&&typeof t[l]=="object"?t[l]={...f,...t[l]}:t[l]=f}}for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||Ct.has(i)||typeof t[i]!="object"||t[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let c=t[i];if(!c.__ref){if(!c.extends&&!c.extend){let l=s[i]||s[`smbls.${i}`];l&&(c={extends:l,...c})}if(t.childProps&&(c={...t.childProps,...c}),n&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(n)?n:[n];c={...c,extends:[...f,...l]}}else c={extends:n,...c};zt(c,t,i,e)}}}function Tc(t,e,r){let{node:o}=t;if(!o)return;let n=e?.node||(e?.nodeType?e:null);if(n)if(r?.position==="before"&&r.node)n.insertBefore(o,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?n.insertBefore(o,s):n.appendChild(o)}else n.appendChild(o)}function ke(t,e,r){let o=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Xt(o,e,r);let n="on"+t,s=e[n];if(typeof s=="function"){let i=e.context?.designSystem;i&&ft(i);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(a){if(e.context?.plugins?.length&&Xt("error",e,{hook:n,error:a})||console.error(`[DOMQL] Lifecycle "${n}" error:`,a),e.context?.strictMode)throw a}finally{i&<()}}return!0}var Gh={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"]},Kh={"gradient-blue-light":`linear-gradient(to right,
|
|
38
|
+
`):"")}}if(Oc(s,e,n),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML)try{let g=s.html(s,s.state,s.context);g!=null&&typeof g!="function"&&(s.node.innerHTML=g)}catch{}if(we("Create",s,o),we("Complete",s,o),we("Render",s,o),we("RenderRouter",s,o),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&ft(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&<()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function rw(t,e,r){let o=!e,n=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=o&&n&&t.context?.state,i=r.state!==void 0&&!s?r.state:t.state&&!pt(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,Wt(t,t.state);else if(t.context?.state){let a=t.context.state,c={...a},l=t.context?.polyglot;if(l?.translations){let f=a.lang||l.defaultLang||"en",u=l.translations[f];if(u&&typeof u=="object")for(let d in u)c[d]===void 0&&(c[d]=u[d]);let p=new Set(l.languages||[]);for(let d in l.translations)!p.has(d)&&c[d]===void 0&&(c[d]=l.translations[d])}t.state=pt(c)?c:Lt(c),t.state.__element=t,t.state.root=t.state,Wt(t,t.state)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Wt(t,t.state);return}if(typeof i=="string"){if(t.state=Wh(i,e),t.state&&typeof t.state=="object"&&!pt(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}Wt(t,t.state);return}if(typeof i=="function"){let a=i(t,e?.state);t.state=Lt(a||{})}else t.state=Lt({...i});t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Wt(t,t.state)}function wc(t,e){if(!e)return t;let r=e.split("/"),o=t;for(let n of r){if(o==null)return{};o=o[n]}return o??{}}function Wh(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let n=t.slice(3);return n?wc(e.state,n):e.state??{}}if(t.startsWith("~/")){let n=e.state?.root||e.state,s=t.slice(2);return s?wc(n,s):n??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=wc(e.state,t);if(r!=null&&Object.keys(r).length>0)return r;let o=e.context?.polyglot;if(o?.translations){let n=e.state?.root?.lang||o.defaultLang||"en",s=o.translations[n];if(s?.[t]!==void 0)return s[t];if(o.translations[t]!==void 0)return o.translations[t]}return{}}function ow(t){let e=t.__ref,r=t.tag||"div",o=t.context?.designSystem,n=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||Ct.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||wr(a)||nt[a]||gt&>.has(a)||Ye(r,a)||n.push({prop:a,fn:t[a]})}for(let i=0;i<n.length;i++){let{prop:a,fn:c}=n[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){o&&ft(o);try{return c(t,t.state,t.context)}catch{return}finally{o&<()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Cc(t,e){let r=t.__ref;if(ow(t),typeof t.text=="function"){let n=t.text,s=st(()=>{try{let i=n(t,t.state,t.context);t.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=tr.call(t,i,t.state)),t.tag==="string"?t.node.nodeValue=i:t.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=n}else if(typeof t.text=="string"&&t.text.includes("{{")){let n=t.text,s=st(()=>{let i=tr.call(t,n,t.state);i!=null&&(t.text=i),t.node&&(t.tag==="string"?t.node.nodeValue=i??"":t.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=n}for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&typeof t[n]=="function"&&!Ct.has(n)&&!wr(n)&&!r.__exec[n]){if(nt[n]){let s=t[n],i=n,a=st(()=>{let c=t.context?.designSystem;c&&ft(c);try{let l=s(t,t.state,t.context),f=nt[i](l,t,t.state,t.context);f&&t.node?_r(t.node,f):t.node&&(i==="show"||i==="hide")&&(t.node.style.display="")}finally{c&<()}},{depth:r.path.length});r.__effects.push(a),r.__exec[n]=s}else if(gt&>.has(n)){let s=t[n],i=n,a=st(()=>{let c=t.context?.designSystem;c&&ft(c);try{let l=s(t,t.state,t.context);t.node&&(l!=null?_r(t.node,{[i]:l}):t.node.style[i]="")}finally{c&<()}},{depth:r.path.length});r.__effects.push(a),r.__exec[n]=s}}if(typeof e.html=="function"){let n=e.html,s=st(()=>{let i=n(t,t.state,t.context);t.node&&i!=null&&typeof i!="function"&&(t.node.innerHTML=i)},{depth:r.path.length});r.__effects.push(s),r.__exec.html=n}if(typeof e.value=="function"){let n=e.value,s=st(()=>{try{let i=n(t,t.state,t.context);if(!t.node||!("value"in t.node))return;let a=i==null?"":String(i);if(t.node.value===a)return;let c=typeof document<"u"&&document.activeElement===t.node,l=c&&typeof t.node.selectionStart=="number"?t.node.selectionStart:null,f=c&&typeof t.node.selectionEnd=="number"?t.node.selectionEnd:null;if(t.node.value=a,c&&l!=null&&f!=null)try{t.node.setSelectionRange(l,f)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=n}if(typeof e.style=="function"){let n=e.style,s=st(()=>{let i=n(t,t.state,t.context);_r(t.node,i)},{depth:r.path.length});r.__effects.push(s),r.__exec.style=n}else if(t.style&&typeof t.style=="object")for(let n in t.style){let s=t.style[n];if(typeof s!="function")continue;let i=st(()=>{try{let a=s(t,t.state,t.context);t.node&&_r(t.node,{[n]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}if(t.attr&&typeof t.attr=="object"){for(let n in t.attr)if(typeof t.attr[n]=="function"){let s=t.attr[n],i=n,a=st(()=>{try{let c=s(t,t.state,t.context);t.node?.setAttribute&&(c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(t.aria&&typeof t.aria=="object")for(let n in t.aria){let s=t.aria[n];if(typeof s!="function")continue;let i="aria-"+n.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=st(()=>{try{let c=s(t,t.state,t.context);if(!t.node?.setAttribute)return;c==null||c===!1?t.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&t.node.setAttribute(i,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(t.data&&typeof t.data=="object")for(let n in t.data){let s=t.data[n];if(typeof s!="function")continue;let a="data-"+n.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),c=st(()=>{try{let l=s(t,t.state,t.context);if(!t.node?.setAttribute)return;l==null||l===!1?t.node.removeAttribute(a):typeof l!="function"&&typeof l!="object"&&t.node.setAttribute(a,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(c)}let o=t.classlist&&typeof t.classlist=="object"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class=="object"&&!Array.isArray(t.class)?t.class:null;if(o)for(let n in o){let s=o[n];if(typeof s!="function")continue;let i=st(()=>{try{let a=s(t,t.state,t.context);if(!t.node?.classList)return;typeof a=="string"?t.node.classList.add(a):a?t.node.classList.add(n):t.node.classList.remove(n)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof e.if=="function"){let n=e.if,s=st(()=>{let i=n(t,t.state,t.context),a=r.__if;if(r.__if=!!i,a&&!r.__if&&t.node)t.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){t.node||(t.node=br(t));let c=t.parent,l=c?.node;if(l&&t.node){let f=null,u=Object.keys(c),p=u.indexOf(t.key);for(let d=p+1;d<u.length;d++){let h=c[u[d]];if(h?.node?.parentNode===l){f=h.node;break}}f?l.insertBefore(t.node,f):l.appendChild(t.node)}else Oc(t,t.parent);Ac(t)}else{if(r.__ifInitialized=!0,t.tag||(t.tag=yr(t)),we("Init",t,{}),t.node||(t.node=br(t)),!t.node)return;we("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id);let c=e.if;delete e.if;try{Cc(t,e)}finally{e.if=c}Ac(t),Hh(t),qh(t,{}),Gh(t,{}),Oc(t,t.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||Ct.has(n)||typeof t[n]!="function")continue;let s=n.charCodeAt(0);if(s>=65&&s<=90||wr(n))continue;let i=t[n];r.__exec[n]=i;let a=t.tag||"div";if(Ye(a,n)&&!nt[n]&&!(gt&>.has(n))){let c=n,l=st(()=>{try{let f=i(t,t.state,t.context);t.node?.setAttribute&&(f==null||f===!1?t.node.removeAttribute(c):typeof f!="function"&&typeof f!="object"&&(c==="src"&&"src"in t.node?t.node.src=f:t.node.setAttribute(c,f===!0?"":f)))}catch{}},{depth:r.path.length});r.__effects.push(l)}}iw(t)}function Ac(t){let{node:e}=t;if(e){if(typeof t.text=="string"&&!t.text.includes("{{")?t.tag==="string"?e.nodeValue=t.text:e.textContent=t.text:typeof t.text=="number"&&(e.textContent=t.text),aw(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&"value"in e){let r=String(t.value);e.value!==r&&(e.value=r)}if(t.style&&typeof t.style=="object"&&_r(e,t.style),t.attr&&typeof t.attr=="object")for(let r in t.attr){let o=t.attr[r];typeof o=="function"||typeof o=="object"||o==null||o===!1||e.setAttribute&&e.setAttribute(r,o===!0?"":o)}if(t.data&&typeof t.data=="object")for(let r in t.data){let o=t.data[r];typeof o=="function"||typeof o=="object"||o==null||o===!1||e.dataset&&(e.dataset[r]=o===!0?"":o)}if(t.classlist||t.class){let r=t.classlist||t.class;if(typeof r=="string")r.split(" ").forEach(o=>o&&e.classList.add(o));else if(typeof r=="object")for(let o in r){let n=typeof r[o]=="function"?r[o](t,t.state,t.context):r[o];n&&e.classList.add(typeof n=="string"?n:o)}}}}function _r(t,e){if(!t||!e||!t.style)return;let r=null;for(let o in e){let n=e[o];if(n!=null){if(o.charAt(0)==="&"&&typeof n=="object"){r||(r={}),r[o]=n;continue}try{let s=String(n),i=o.replace(/[A-Z]/g,f=>"-"+f.toLowerCase()),a=s.trim(),c=/\s*!important\s*$/.test(a),l=a.replace(/\s*!important\s*$/,"");t.style.setProperty(i,l,c?"important":"")}catch{}}}r&&sw(t,r)}var nw=0;function sw(t,e){let r=`_ds${nw++}`;t.classList.add(r);let o=t.ownerDocument,n=o.querySelector("style[data-smbls-scoped]");n||(n=o.createElement("style"),n.setAttribute("data-smbls-scoped",""),o.head.appendChild(n));let s="";for(let i in e){let a="."+r,c=i.replace(/&/g,a).split(",").map(f=>{let u=f.trim();return u.includes(a)?u:a+u}).join(", "),l=e[i];if(typeof l=="object"){let f="",u="";for(let p in l){let d=l[p];if(typeof d=="object"){let h=p.includes("&")?c.split(", ").map(m=>p.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${p}`).join(", "),g="";for(let m in d)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${d[m]};`;u+=`${h} { ${g} }
|
|
39
|
+
`}else f+=`${p.replace(/[A-Z]/g,h=>"-"+h.toLowerCase())}: ${d};`}f&&(s+=`${c} { ${f} }
|
|
40
|
+
`),u&&(s+=u)}}s&&(n.textContent+=s)}function iw(t){let e=t.__ref;e.__conditionalRunners=[];for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let o=r.charAt(0);if(o!=="."&&o!=="!")continue;let n=r.slice(1);if(!n)continue;let s=t[r];if(!s||typeof s!="object")continue;let i=o==="!",a={lastMatch:!1,appliedKeys:null},c=()=>{if(!t.node)return;let f,u=t[n];if(u===void 0)if(t.state&&n in t.state)f=t.state[n];else{let h=t.context?.cases?.[n];if(h===void 0)return;f=typeof h=="function"?h.call(t,t):h}else typeof u=="function"?f=u(t,t.state,t.context):f=u;let p=i?!f:!!f;if(p===a.lastMatch)return;a.lastMatch=p;let d=t.context?.designSystem;d&&ft(d);try{if(p){let h={};for(let m in s){if(!Object.prototype.hasOwnProperty.call(s,m))continue;let y=typeof s[m]=="function"?s[m](t,t.state,t.context):s[m];if(y!=null)if(nt[m]){let b=nt[m](y,t,t.state,t.context);if(b){let x=Array.isArray(b)?b:[b];for(let _ of x)_&&Object.assign(h,_)}}else gt&>.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(_r(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&<()}};e.__conditionalRunners.push(c);let l=st(c,{depth:e.path.length});e.__effects.push(l)}}var kc=new WeakSet;function aw(t){let{node:e}=t;if(!e)return;if(kc.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}kc.add(t);let r=t.context?.designSystem;r&&ft(r);try{let o={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]=="function"||Ct.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!wr(s)){if(nt[s]){let a=t[s],c=nt[s](a,t,t.state,t.context);if(c){if(Array.isArray(c))for(let l of c)l&&Object.assign(o,l);else Object.assign(o,c);n=!0}}else if(gt&>.has(s)){let a=t[s];a!=null&&typeof a!="object"&&(o[s]=a,n=!0)}else if(s.charCodeAt(0)===45){let a=t[s];a!=null&&typeof a!="object"&&(o[s]=a,n=!0)}else if(s.charAt(0)==="&"){let a=t[s];a&&typeof a=="object"&&(o[s]=a,n=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=t[s];if(a&&typeof a=="object"){let c={};for(let l in a){let f=a[l];if(typeof f=="function"&&(f=f(t,t.state,t.context)),!(f==null||typeof f=="function"))if(nt[l]){let u=nt[l](f,t,t.state,t.context);if(u)if(Array.isArray(u))for(let p of u)p&&Object.assign(c,p);else Object.assign(c,u)}else c[l]=f}if(Object.keys(c).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!t.context?.designSystem?.media?.[s.slice(1)])){let f={};for(let p in c){let d=c[p];f[p]=typeof d=="string"&&!d.includes("!important")?d+" !important":d}let u=s.slice(1);o[`[data-theme="${u}"] &`]=f}else{let f=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let p=s.slice(1),d=t.context?.designSystem?.media?.[p]||t.context?.designSystem?.media?.[p];d&&(f=`@media ${d}`)}let u={};for(let p in c){let d=c[p];if(d&&typeof d=="object"&&!Array.isArray(d)){let h={};for(let m in d)if(nt[m]){let y=nt[m](d[m],t,t.state,t.context);if(y)if(Array.isArray(y))for(let b of y)b&&Object.assign(h,b);else Object.assign(h,y)}else h[m]=d[m];let g=p.startsWith(":")?"":" ";if(f.includes(",")){let m=f.split(",").map(y=>`${y.trim()}${g}${p}`).join(", ");o[m]=h}else o[`${f}${g}${p}`]=h}else u[p]=d}Object.keys(u).length&&(o[f]=u)}n=!0}n=!0}}}}if(n){o.display&&String(o.display).includes("!important")&&(e.style.setProperty("display",String(o.display).replace(/\s*!important\s*$/,""),"important"),delete o.display);let s=Ge(o,null,t.context?.cssPrefix);s&&e.classList&&s.split(" ").forEach(a=>a&&e.classList.add(a));let i=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;if(i!=null){let a=o.display;if(a&&a!==i)if(i==="none"){let c=[];for(let l of e.classList)l.startsWith("_d-")&&l!=="_d-none"&&c.push(l);for(let l of c)e.classList.remove(l);e.classList.add("_d-none")}else e.style.display=t.display}}}finally{r&<(),kc.delete(t)}}function Hh(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let n in t.aria){let s=t.aria[n];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(i,s===!0?"":s)}let r=Uh(t);for(let n in r){let s=r[n];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(n,s===!0?"":s)}let o=t.tag||"div";for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||typeof t[n]=="function"||Ct.has(n)||n==="on"||r[n]!==void 0)continue;let s=n.charCodeAt(0);if(!(s>=65&&s<=90)&&!wr(n)&&!(nt[n]||gt&>.has(n))&&Ye(o,n)){let i=t[n];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=tr(i,t,t.state,t.context),t[n]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;e.setAttribute(n,i===!0?"":i)}}}function qh(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!wr(r))continue;let o=t[r];if(typeof o=="string"&&/^[A-Za-z_$][\w$]*$/.test(o)){let s=o;o=function(a){return t.call(s,a)}}if(typeof o!="function")continue;let n=tw(r);xr.has(n)||_s(ew(n),t,o)}}function Ec(t,e){let r={...t};for(let o in e){let n=r[o],s=e[o];n&&s&&typeof n=="object"&&typeof s=="object"&&!Array.isArray(n)&&!Array.isArray(s)&&typeof n!="function"&&typeof s!="function"?r[o]=Ec(n,s):r[o]=s}return r}function Tc(t,e,r){if(!e||!t.node)return;let o=t.childExtends;if(Array.isArray(e)){let s=(t.context?.document||globalThis.document)?.createDocumentFragment();if(!s)return;let i=t.childProps,a=t.childrenAs;for(let c=0;c<e.length;c++){let l=e[c],f=l;(typeof l=="string"||typeof l=="number")&&(l={text:l});let u=i;if(typeof i=="function")try{u=i(t,l)}catch{u=null}if(a==="state"){let h=f;(typeof f=="string"||typeof f=="number")&&(h={value:f,text:f}),l=u?{...u,state:h}:{state:h}}else u&&(l=Ec(u,l));if(o&&!l.ignoreChildExtends)if(l.extends){let h=Array.isArray(l.extends)?l.extends:[l.extends],g=Array.isArray(o)?o:[o];l={...l,extends:[...g,...h]}}else l={extends:o,...l};let p=l?.key||`${c}`,d=zt(l,t,p,r);d?.node&&s.appendChild(d.node)}t.node.appendChild(s);return}if(typeof e=="string"){let n=Wh(e,t);if(Array.isArray(n)){Tc(t,n,r);return}}if(typeof e=="object")for(let n in e){if(Ct.has(n))continue;let s=e[n];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),t.childProps&&(s=Ec(t.childProps,s)),o&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(o)?o:[o];s={...s,extends:[...a,...i]}}else s={extends:o,...s};zt(s,t,n,r)}}}function Gh(t,e){let{children:r,content:o}=t,n=t.childExtends;if(typeof r=="function"){let i=r;r=i(t,t.state,t.context),t.children=r;let a=t.__ref,c=!1,l=st(()=>{let f=i(t,t.state,t.context);if(!c){c=!0;return}if(f===t.children)return;if(t.children=f,Array.isArray(f)&&t.childrenAs==="state"){let d=t.childProps,h=[],g=new Map;for(let _=0;_<f.length;_++){let v=f[_],E=d;if(typeof d=="function")try{E=d(t,v)}catch{E=null}let P=E&&E.key||v&&v.key||`${_}`;h.push(P),g.set(P,{rawChild:v,childProps:E})}let m=new Set(h);for(let _=a.__children.length-1;_>=0;_--){let v=a.__children[_];if(!m.has(v)){let E=t[v];E?.remove&&E.remove(),delete t[v],a.__children.splice(_,1)}}let y=t.childExtends,x=(t.context?.document||globalThis.document)?.createDocumentFragment();for(let _ of h){let v=g.get(_),E=v.rawChild,P=t[_];if(P&&P.state){if(E&&typeof E=="object"){let V=P.state;if(typeof V.replace=="function")V.replace(E);else if(typeof V.update=="function"){for(let N in V)if(!(N==="__element"||N==="root"||N==="parent"||N==="update")&&!Object.prototype.hasOwnProperty.call(E,N))try{V[N]=void 0}catch{}V.update(E)}else for(let N in E)V[N]=E[N]}continue}let B=E;(typeof E=="string"||typeof E=="number")&&(B={value:E,text:E});let R=v.childProps,D=R?{...R,state:B}:{state:B};if(y&&!D.ignoreChildExtends)if(D.extends){let V=Array.isArray(D.extends)?D.extends:[D.extends],N=Array.isArray(y)?y:[y];D={...D,extends:[...N,...V]}}else D={extends:y,...D};let Q=zt(D,t,_,e);Q?.node&&x&&x.appendChild(Q.node)}x&&x.childNodes.length&&t.node&&t.node.appendChild(x),a.__children=h;return}for(let d of[...a.__children]){let h=t[d];h?.remove&&h.remove(),delete t[d]}a.__children=[],Tc(t,f,e)},{depth:a.path.length});a.__effects.push(l)}if(Tc(t,r||o,e),r||o)return;let s=t.context?.components||{};{let i=Object.keys(t);for(let a=0;a<i.length;a++){let c=i[a];if(!c.endsWith("Extends")||typeof t[c]!="string")continue;let l=c.slice(0,-7);if(!l||l.charCodeAt(0)<65||l.charCodeAt(0)>90)continue;let f={extends:t[c]};delete t[c];for(let u=a+1;u<i.length;u++){let p=i[u],d=p.charCodeAt(0);if(d>=65&&d<=90||Ct.has(p)||typeof t[p]=="function"&&(p.startsWith("on")||p.startsWith(".")))break;let h=t[p];h!==void 0&&(f[p]=h,delete t[p])}t[l]&&typeof t[l]=="object"?t[l]={...f,...t[l]}:t[l]=f}}for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||Ct.has(i)||typeof t[i]!="object"||t[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let c=t[i];if(!c.__ref){if(!c.extends&&!c.extend){let l=s[i]||s[`smbls.${i}`];l&&(c={extends:l,...c})}if(t.childProps&&(c={...t.childProps,...c}),n&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(n)?n:[n];c={...c,extends:[...f,...l]}}else c={extends:n,...c};zt(c,t,i,e)}}}function Oc(t,e,r){let{node:o}=t;if(!o)return;let n=e?.node||(e?.nodeType?e:null);if(n)if(r?.position==="before"&&r.node)n.insertBefore(o,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?n.insertBefore(o,s):n.appendChild(o)}else n.appendChild(o)}function we(t,e,r){let o=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&So(o,e,r);let n="on"+t,s=e[n];if(typeof s=="function"){let i=e.context?.designSystem;i&&ft(i);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(a){if(e.context?.plugins?.length&&So("error",e,{hook:n,error:a})||console.error(`[DOMQL] Lifecycle "${n}" error:`,a),e.context?.strictMode)throw a}finally{i&<()}}return!0}var Kh={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"]},Yh={"gradient-blue-light":`linear-gradient(to right,
|
|
41
41
|
rgba(4, 116, 242, 1),
|
|
42
42
|
rgba(0, 48, 103, 1)
|
|
43
43
|
)`,"gradient-blue-dark":`linear-gradient(to right,
|
|
@@ -63,15 +63,15 @@ FROM ${a}${l}`},Bx=t=>{let e=[],r=(o,n)=>{for(let s in o){let i=n?`${n}/${s}`:s;
|
|
|
63
63
|
#1E54F0 36%,
|
|
64
64
|
#8B4CCA 69%,
|
|
65
65
|
#C66894 100%
|
|
66
|
-
)`};var iw={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"}}}},aw={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},cw={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"}}},Xh={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...iw,...aw,...cw,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var Yh={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var Zh={ratio:1.618,subSequence:!0};var Jh={SourceSans:[{url:""}]},Qh={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var tg={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 eg={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 rg={base:150,ratio:1.333,unit:"ms",subSequence:!0};var As={version:"0.0.1",color:Gh,gradient:Kh,theme:Xh,typography:Yh,spacing:Zh,font:Jh,fontFamily:Qh,timing:rg,icons:tg,media:eg,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var ko={};$(ko,{A:()=>mm,AssetPicture:()=>Sg,Audio:()=>kg,Avatar:()=>Pm,B:()=>zg,Block:()=>og,Box:()=>Rs,Br:()=>qg,Button:()=>xm,ButtonSet:()=>km,COMPONENTS:()=>Ar,Caption:()=>$g,Checkbox:()=>rm,CheckboxHgroup:()=>om,Circle:()=>yg,CircleButton:()=>_m,Clickable:()=>hg,Data:()=>Wg,Dialog:()=>Cm,DialogFooter:()=>Em,DialogHeader:()=>Am,Dropdown:()=>$m,DropdownList:()=>Fm,DropdownParent:()=>Dm,DropdownParentFocus:()=>Lm,DropdownSiblingFocus:()=>Nm,FileIcon:()=>pm,Flex:()=>sg,Focusable:()=>gg,FocusableComponent:()=>mg,Footnote:()=>Vg,Form:()=>ug,Grid:()=>ag,Gutter:()=>lg,H1:()=>Ag,H2:()=>Eg,H3:()=>Tg,H4:()=>Og,H5:()=>Rg,H6:()=>Pg,Headline:()=>jg,Hgroup:()=>Zg,HgroupButton:()=>Qg,HgroupRows:()=>Jg,Hoverable:()=>dg,Hr:()=>Hg,I:()=>Ug,Icon:()=>fm,IconButton:()=>vm,IconText:()=>um,Iframe:()=>pg,Img:()=>fg,Inline:()=>ng,InlineFlex:()=>ig,InlineGrid:()=>cg,Input:()=>tm,Italic:()=>Ng,KangorooButton:()=>wm,Li:()=>Gg,Link:()=>nl,Notification:()=>Mm,NumberInput:()=>em,Ol:()=>Xg,P:()=>Ig,Picture:()=>xg,Radio:()=>nm,RadioHgroup:()=>sm,Range:()=>Im,RouteLink:()=>ym,RouterLink:()=>sl,SHAPES:()=>Ts,Select:()=>bm,Shape:()=>Fc,Span:()=>Cg,SquareButton:()=>Sm,Strong:()=>Fg,Subhead:()=>Bg,Svg:()=>_g,Text:()=>vg,Textarea:()=>cm,TextareaWithButton:()=>lm,Theme:()=>bg,Title:()=>Mg,Toggle:()=>im,ToggleHgroup:()=>am,Tooltip:()=>Tm,TooltipHidden:()=>Om,TooltipParent:()=>Rm,U:()=>Dg,Ul:()=>Kg,Underline:()=>Lg,Video:()=>wg,depth:()=>Os,getSystemGlobalTheme:()=>wo});var Oc={};$(Oc,{Block:()=>og,Flex:()=>sg,Grid:()=>ag,Gutter:()=>lg,Inline:()=>ng,InlineFlex:()=>ig,InlineGrid:()=>cg});var og={display:"block"},ng={display:"inline"},sg={display:"flex"},ig={display:"inline-flex"},ag={display:"grid"},cg={display:"inline-grid"},lg={boxSize:"C1"};var Rc={};$(Rc,{Img:()=>fg});O();var fg={tag:"img",attr:{title:t=>t.title||t.alt,src:t=>{let e=vt(t);return e&&e.src||t.src},srcset:t=>{let e=vt(t);return(e?ts(e):"")||t.srcset}}};var Pc={};$(Pc,{Form:()=>ug});var ug={tag:"form"};var Ic={};$(Ic,{Iframe:()=>pg});var pg={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var $c={};$($c,{Clickable:()=>hg,Focusable:()=>gg,FocusableComponent:()=>mg,Hoverable:()=>dg});var lw={appearance:"none",cursor:"pointer",fontFamily:"inherit"},dg={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}}},hg={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},gg={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:lw};var Nc={};$(Nc,{Picture:()=>xg});var Lc={};$(Lc,{Theme:()=>bg,getSystemGlobalTheme:()=>wo});var Dc={};$(Dc,{Circle:()=>yg,SHAPES:()=>Ts,Shape:()=>Fc,default:()=>fw,depth:()=>Os});O();var It=A(),Os={4:{boxShadow:`rgba(0,0,0,.10) 0 2${It.unit.default} 4${It.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${It.unit.default} 6${It.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${It.unit.default} 10${It.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${It.unit.default} 16${It.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${It.unit.default} 26${It.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${It.unit.default} 42${It.unit.default}`}},Cr=t=>Y(t.shapeDirectionColor)||Y(t.borderColor)||Y(t.backgroundColor)||Y(t.background),Es=t=>{let e=vs.transition(t.transition,t);return e&&e.transition},Ts={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:t=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Cr(t),transition:Es(t),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:t=>({position:"relative","&:before":{content:'""',display:"block",background:Cr(t),transition:Es(t),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Cr(t),transition:Es(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:Es(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Cr(t)} 25%, transparent 25%), linear-gradient(315deg, ${Cr(t)} 25%, transparent 25%)`},"&:after":{background:Cr(t),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},Fc={deps:{exec:G,getSpacingBasedOnRatio:le,getMediaColor:ht},classlist:{shape:t=>t.deps.exec(Ts[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Ts[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}}},yg={round:"100%"},fw=Fc;O();var wo=({context:t,state:e})=>{let r=e&&e.root,o=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return o==="auto"?null:o},bg={deps:{depth:Os},classlist:{depth:t=>!ct(t.depth)&&t.deps.depth[t.depth]}};var xg={deps:{getSystemGlobalTheme:wo},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:wo},tag:"source",attr:{media:t=>{let{key:e,context:r,deps:o}=t,{media:n}=r.designSystem,s=o.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":n[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent?.src||e.src}};var Mc={};$(Mc,{AssetPicture:()=>Sg});O();var Sg={tag:"picture",children:t=>{let e=vt(t);if(e)return es(e,t.alt)}};var jc={};$(jc,{Svg:()=>_g});var _g={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!="function")return t.call("exec",t.html,t);let{designSystem:r,utils:o}=e,n=r&&r.svg,s=t.spriteId||r&&r.useSvgSprite,i=t.call("exec",t.src,t);if(!s&&i)return i;let a=u=>`<use xlink:href="#${u}" />`,c=t.spriteId;if(c)return a(c);if(n&&n[i])return a(i);let l=Symbol.for(i),f=n[l];if(f&&n[f])return a(f);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let p=0;for(let u=0;u<i.length;u++)p=(p<<5)-p+i.charCodeAt(u)|0;return f=n[l]=`svg-${(p>>>0).toString(36)}`,o.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var Bc={};$(Bc,{Video:()=>wg});O();var wg={tag:"video",controls:!0,attr:{src:t=>{let e=vt(t);return e&&e.src||t.src}},children:t=>{let e=vt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Vc={};$(Vc,{Audio:()=>kg});O();var kg={tag:"audio",controls:!0,attr:{src:t=>{let e=vt(t);return e&&e.src||t.src}},children:t=>{let e=vt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var zc={};$(zc,{B:()=>zg,Caption:()=>$g,Data:()=>Wg,Footnote:()=>Vg,H1:()=>Ag,H2:()=>Eg,H3:()=>Tg,H4:()=>Og,H5:()=>Rg,H6:()=>Pg,Headline:()=>jg,I:()=>Ug,Italic:()=>Ng,P:()=>Ig,Span:()=>Cg,Strong:()=>Fg,Subhead:()=>Bg,Text:()=>vg,Title:()=>Mg,U:()=>Dg,Underline:()=>Lg});var vg={},Cg={tag:"span"},Ag={tag:"h1"},Eg={tag:"h2"},Tg={tag:"h3"},Og={tag:"h4"},Rg={tag:"h5"},Pg={tag:"h6"},Ig={tag:"p"},$g={tag:"caption"},Fg={tag:"strong",fontWeight:"700"},Dg={tag:"u"},Lg={tag:"u"},Ng={tag:"i"},Mg={},jg={tag:"h6",fontSize:"B",fontWeight:500},Bg={tag:"span",fontSize:"Z1"},Vg={tag:"span",fontSize:"Z"},zg={tag:"b"},Ug={tag:"i"},Wg={tag:"data"};var Uc={};$(Uc,{Box:()=>Rs,Br:()=>qg,Hr:()=>Hg,Li:()=>Gg,Ol:()=>Xg,Ul:()=>Kg});var uw=t=>{if(!t.context)return;let{props:e,__ref:r}=t,o=Pt(e,t,{unpack:!1});r.__class=o},Rs={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:uw},Hg={tag:"hr",margin:"C1 0"},qg={tag:"br"},Gg={tag:"li"},Kg={tag:"ul",childExtends:{extends:"Li"}},Xg={tag:"ol",childExtends:{extends:"Li"}};var Wc={};$(Wc,{Hgroup:()=>Zg,HgroupButton:()=>Qg,HgroupRows:()=>Jg});var Yg=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let r=e.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},Zg={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:Yg,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:Yg,margin:"0",color:"paragraph"}},Jg={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Qg={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Hc={};$(Hc,{Input:()=>tm});var tm={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 qc={};$(qc,{NumberInput:()=>em});var em={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 Gc={};$(Gc,{Checkbox:()=>rm,CheckboxHgroup:()=>om});var rm={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"}}},om={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Kc={};$(Kc,{Radio:()=>nm,RadioHgroup:()=>sm});var nm={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}},sm={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Xc={};$(Xc,{Toggle:()=>im,ToggleHgroup:()=>am});var im={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}},am={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Yc={};$(Yc,{Textarea:()=>cm,TextareaWithButton:()=>lm});var cm={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"}},lm={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 Zc={};$(Zc,{FileIcon:()=>pm,Icon:()=>fm,IconText:()=>um});var fm={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,r)=>{let{parent:o}=t,{icons:n,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=_=>{let v=_[".isActive"];if(v)return _.call("exec",v.name||v.icon)},l=(_,v,E)=>{let{semanticIcons:P}=E&&E.designSystem,{toCamelCase:B}=E&&E.utils,R=f(_,v),Q=B(R).split(/([a-z])([A-Z])/g),V=Q[1]?Q[0]:R.split(".")[0].split(" ")[0],j=P&&P[V];if(j){let Ft=R.includes(".")?"sfsymbols."+R.split(".").slice(1).join("."):"sfsymbols";return R=j[Ft]||j[R.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${R}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(_,v)=>{let{key:E}=_,P=_.call("exec",_.name||_.icon||E,_);return _.call("isString",P)&&P.includes("{{")&&(P=_.call("replaceLiteralsWithObjectFields",P)),_.call("isString",P)?P:E},p=f(t,e);if(p.includes(" ")){let _=p.split(" ");p=_[0]+_.slice(1).map(v=>v.charAt(0).toUpperCase()+v.slice(1)).join("")}let u=a(p),d=u.split(/([a-z])([A-Z])/g),h=l(t,e,r);if(h){Object.assign(t,h);return}let g;t.isActive&&(g=c(t));let m=o[".isActive"];o&&o.isActive&&m&&m.icon&&(g=t.call("exec",m.icon||m.Icon.name||m.Icon.icon,t)),t.call("isString",g)&&g.includes("{{")&&(g=t.call("replaceLiteralsWithObjectFields",g));let y;n[g]&&(y=g),n[u]?y=u:n[d[0]+d[1]]?y=d[0]+d[1]:n[d[0]]?y=d[0]:i&&t.warn("Can't find icon:",p,y);let b=n[y],x=o&&o.src||t.src;Object.assign(t,{spriteId:s&&y,src:b||x||n.noIcon})},attr:{viewBox:"0 0 24 24"}},um={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},pm={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var il={};$(il,{A:()=>mm,Link:()=>nl,RouteLink:()=>ym,RouterLink:()=>sl});var ol={};$(ol,{default:()=>mw,getActiveRoute:()=>rl,lastLevel:()=>Is,lastPathname:()=>Ps,matchRoute:()=>Qc,parseQuery:()=>tl,parseRoutePattern:()=>Jc,router:()=>re,runGuards:()=>el});O();var hm=/^:(.+)/,gm=/^\*$/,dm=new Map,Jc=t=>{let e=dm.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),o=[],n=!1;for(let i=0;i<r.length;i++){let a=r[i].match(hm);a?o.push({index:i,name:a[1]}):gm.test(r[i])&&(n=!0)}let s={segments:r,params:o,hasWildcard:n,pattern:t};return dm.set(t,s),s},Qc=(t,e,r=0)=>{let n=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(n[0]||""),i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=Jc(l),p=pw(n,f);p>a&&(a=p,i=l,c=dw(n,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},pw=(t,e)=>{let{segments:r,hasWildcard:o}=e;if(!o&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let n=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])n+=3;else if(hm.test(r[i]))n+=1;else if(gm.test(r[i]))n+=.5;else return-1;return n},dw=(t,e)=>{let r={};for(let{index:o,name:n}of e.params)t[o]&&(r[n]=decodeURIComponent(t[o]));return r},tl=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((o,n)=>{e[n]!==void 0?(Array.isArray(e[n])||(e[n]=[e[n]]),e[n].push(o)):e[n]=o}),e},el=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let o=await r(e);if(o===!1)return!1;if(typeof o=="string")return o}return!0},rl=(t=0,e)=>{e||(e=typeof k<"u"?k.location.pathname:"/");let o=e.split("/")[t+1];if(o)return`/${o}`},Ps,Is=0,hw=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,gw={level:Is,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:q&&q.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},re=async(t,e,r={},o={})=>{let n=e||void 0,s=n?.context?.window||k,i=n?.context?.document||q,a={...gw,...n.context.routerOptions,...o};Is=a.lastLevel;let c=n.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let l=c.contentElementKey||a.contentElementKey||"content",f=s.location.origin!=="null"?s.location.origin:"http://localhost";t=hw(t);let p=new s.URL(f+t),{pathname:u,search:d,hash:h}=p,g=tl(d),m=n.node,y=h&&h!==s.location.hash.slice(1),b=u!==Ps;Ps=u;let x,_,v,E;if(a.useParamsMatching){let B=Qc(u,n.routes,a.level);x=B.key,_=B.routePath,v=B.content,E=B.params}else x=rl(a.level,u),_=x,v=n.routes[x||"/"]||n.routes["/*"],E={};let P=a.scrollToNode?m:a.scrollNode;if(n.state?.root?.debugging){n.state.root.debugging=!1;return}if(!v){a.onNotFound?a.onNotFound({pathname:u,route:x,element:n}):a.silent||console.warn("[smbls/router] no content matched for path",u,"\u2014 available routes:",Object.keys(n.routes||{}));return}if(a.guards&&a.guards.length){let B={pathname:u,route:x,params:E,query:g,hash:h,element:n,state:r},R=await el(a.guards,B);if(R===!1)return;if(typeof R=="string")return re(R,e,r,{...o,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,u+(d||"")+(h||""))}catch{}if(b||!y){let B={route:x,routePath:_,hash:h,debugging:!1};Object.keys(E).length&&(B.params=E),Object.keys(g).length&&(B.query=g),a.updateState&&n.state.update(B,{preventContentUpdate:!0}),l&&a.removeOldElement&&n[l].remove();let R=n.__ref?.origin?.content,D={};if(R)for(let V in R){let j=R[V];V==="__ref"||V==="props"||V==="node"||V==="parent"||V==="key"||(typeof j=="string"||typeof j=="number"||typeof j=="boolean"||typeof j=="object"&&j!==null&&!j.node&&!j.__ref)&&(D[V]=j)}let Q={...D,...typeof v=="object"?v:{extends:v}};a.useFragment&&(Q.tag="fragment");try{n.set(Q,{contentElementKey:l})}catch(V){console.error("[smbls/router] failed to render route content",u,V)}}if(a.scrollToTop&&P?.scrollTo&&P.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&v[l]?.node?.scrollTo&&v[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let B=i.getElementById(h);if(B&&P?.scrollTo){let R=B.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);P.scrollTo({...a.scrollToOptions||{},top:R,left:0})}}je("routeChanged",n,a)},mw=re;var yw=(t,e,r)=>{let{context:o}=e,{href:n,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",n,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=o,u=e.__ref.root,d=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!d){t.preventDefault();try{let h=u;if(p&&p.customRouterElement){let g=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),m=u;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,u.routes&&(h.routes=u.routes))}(f.router||l.router||c.router||re)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...p,...e.routerOptions})}catch(h){console.warn(h)}}},nl={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Xe(t,t.href)||Xe(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:yw},mm={extends:"Link"},sl={onClick:(t,e,r)=>{let{context:o}=e,{href:n,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",n,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:p}=o,u=e.__ref.root,d=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!d){t.preventDefault();try{let h=u;if(p&&p.customRouterElement){let g=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),m=u;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,u.routes&&(h.routes=u.routes))}(f.router||l.router||c.router||re)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...p,...e.routerOptions})}catch(h){console.warn(h)}}}},ym={extends:[nl,sl]};var al={};$(al,{Select:()=>bm});var bm={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 cl={};$(cl,{Button:()=>xm,ButtonSet:()=>km,CircleButton:()=>_m,IconButton:()=>vm,KangorooButton:()=>wm,SquareButton:()=>Sm});var xm={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)},Sm={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"},_m={extends:"SquareButton",round:"C"},wm={extends:"Button",childExtends:"IconText"},km={tag:"nav",display:"flex",childExtends:"SquareButton"},vm={extends:["SquareButton","ClickableItem"],round:"Z"};var ll={};$(ll,{Dialog:()=>Cm,DialogFooter:()=>Em,DialogHeader:()=>Am});var Cm={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Am={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Em={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 fl={};$(fl,{Tooltip:()=>Tm,TooltipHidden:()=>Om,TooltipParent:()=>Rm});O();var Tm={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>St(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},Om={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)}},Rm={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:r}=t,o=e||r;if(!o)return;let n=o&&o[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var ul={};$(ul,{Avatar:()=>Pm});var Pm={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 pl={};$(pl,{Range:()=>Im});var Im={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:rs("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:rs("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(t,e,r)=>{let o=t.call("exec",t[e],t);return(t.call("isFunction",o)?o(t,t.state):o!==void 0?o:r!==void 0?r:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var dl={};$(dl,{Dropdown:()=>$m,DropdownList:()=>Fm,DropdownParent:()=>Dm,DropdownParentFocus:()=>Lm,DropdownSiblingFocus:()=>Nm});var $m={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},Fm={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"}}},Dm={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Lm={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Nm={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var hl={};$(hl,{Notification:()=>Mm});var Mm={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var Ar=Object.assign({},Oc,Rc,Pc,Ic,$c,Nc,Mc,jc,Dc,Bc,Vc,Lc,zc,Uc,Wc,Hc,qc,Gc,Kc,Xc,Yc,Zc,il,al,cl,ll,fl,ul,pl,dl,hl);function $s(t){if(t==null)return 0;if(typeof t!="object")return jm(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let o=0;o<t.length;o++)e=(e^$s(t[o]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let o=0;o<r.length;o++)e=(e^jm(r[o]))*16777619,e=(e^$s(t[r[o]]))*16777619;return e>>>0}function jm(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function Fs(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!="object")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!Fs(t[n],e[n]))return!1;return!0}let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let n=0;n<r.length;n++){let s=r[n];if(!Object.prototype.hasOwnProperty.call(e,s)||!Fs(t[s],e[s]))return!1}return!0}function gl(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!="object"||Array.isArray(e))return e;if(typeof t!="object"||Array.isArray(t))return{...e};let r=!1,o={};for(let n in t)if(n in e){let s=gl(t[n],e[n]);o[n]=s,s!==t[n]&&(r=!0)}else o[n]=t[n];for(let n in e)n in t||(o[n]=e[n],r=!0);return r?o:t}function ml(t,e,r){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(r||(r=new WeakSet),r.has(e))return t;r.add(e);for(let o in e){let n=e[o];n&&typeof n=="object"&&!Array.isArray(n)&&t[o]&&typeof t[o]=="object"&&!Array.isArray(t[o])?ml(t[o],n,r):t[o]=n}return t}function ve(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function Er(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function vo(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():ve(e)}function Bm(t){return t.split(`
|
|
67
|
-
`).map(
|
|
68
|
-
`)}var
|
|
69
|
-
${i}`}var
|
|
70
|
-
`)}function
|
|
71
|
-
${i}`}var yl=null;function bl(t){yl=t}var Ht={structuralHash:$s,deepEqual:Fs,mergeStructural:gl,overwriteDeep:ml,shortHash:ve,toKebab:Er,sanitizeValue:vo,batchShortHash:Bm,atomicCssClass:zm,batchAtomicCss:Wm,compoundCssClass:Hm},qm=!1,Ds=null;function ww(t){return Ds||(Ds=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(Ht.structuralHash=e.structuralHash),e.deepEqual&&(Ht.deepEqual=e.deepEqual),e.mergeStructural&&(Ht.mergeStructural=e.mergeStructural),e.overwriteDeep&&(Ht.overwriteDeep=e.overwriteDeep),e.shortHash&&(Ht.shortHash=e.shortHash),e.toKebab&&(Ht.toKebab=e.toKebab),e.sanitizeValue&&(Ht.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(Ht.batchShortHash=e.batchShortHash),e.atomicCssClass&&(Ht.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(Ht.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(Ht.compoundCssClass=e.compoundCssClass),qm=!0,yl&&e.batchAtomicCss&&yl({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Ds)}function kw(){return qm}O();var Co={};$(Co,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>Mf,DOMQ_PROPERTIES:()=>$e,ENV:()=>ru,HTML_TAGS:()=>Qr,METHODS:()=>Xr,METHODS_EXL:()=>en,NODE_ENV:()=>Kt,OPTIONS:()=>En,PACKAGE_MANAGER_TO_CDN:()=>ze,PARSED_DOMQ_PROPERTIES:()=>tn,PROPS_METHODS:()=>De,STATE_METHODS:()=>Fe,STATE_PROPERTIES:()=>Nf,SVG_TAGS:()=>ku,TYPES:()=>Xo,UNIVERSAL_RESERVED_KEYS:()=>xa,addCaching:()=>Ji,addContext:()=>Zi,addExtend:()=>Ru,addExtends:()=>kt,addItemAfterEveryElement:()=>vf,addProtoToArray:()=>Jo,addRef:()=>Ki,applyCSS:()=>Xm,applyDependentState:()=>Ju,applyEvent:()=>na,applyEventUpdate:()=>sa,applyExtends:()=>Iu,applyProps:()=>_n,arrayContainsOtherArray:()=>yf,arraysEqual:()=>Af,arrayzeValue:()=>lr,buildImgSrcset:()=>ts,buildSourcesAndImg:()=>es,cache:()=>sp,call:()=>Lp,captureSnapshot:()=>Bp,checkForStateTypes:()=>Ku,checkIfInherits:()=>oa,checkIfStringIsInArray:()=>Of,clone:()=>zf,cloneAndMergeArrayExtend:()=>pn,cloneFunction:()=>fu,concatAddExtends:()=>Au,copyJavaScriptToClipboard:()=>Sd,copyStringToClipboard:()=>xd,createBasedOnType:()=>Gi,createElement:()=>qu,createElementExtends:()=>Ii,createExtends:()=>hn,createExtendsFromKeys:()=>to,createExtendsStack:()=>Li,createIfConditionFlag:()=>uu,createInheritedState:()=>Xu,createKey:()=>ln,createNestedObject:()=>Xf,createNestedObjectByKeyPath:()=>Zu,createObjectWithoutPrototype:()=>ki,createParent:()=>Xi,createPath:()=>Yi,createProps:()=>wn,createPropsStack:()=>Wi,createRoot:()=>Hu,createScope:()=>ep,createSnapshotId:()=>cn,customDecodeURIComponent:()=>Lf,customEncodeURIComponent:()=>Df,cutArrayAfterValue:()=>wf,cutArrayBeforeValue:()=>_f,debounce:()=>un,debounceOnContext:()=>au,decodeNewlines:()=>Ff,deepClone:()=>X,deepContains:()=>Gf,deepDefaults:()=>Yn,deepDestringifyFunctions:()=>Mt,deepExtend:()=>Pi,deepMerge:()=>W,deepMergeExtends:()=>ie,deepStringifyFunctions:()=>rn,defineSetter:()=>Fp,destringifyGlobalScope:()=>nn,detectHeightOnInit:()=>Yp,detectInfiniteLoop:()=>Qf,document:()=>q,encodeNewlines:()=>$f,error:()=>cr,excludeKeysFromObject:()=>eu,exec:()=>G,extendCachedRegistry:()=>Eu,extendStackRegistry:()=>gn,extractArrayExtend:()=>yn,fetchLibraryData:()=>_a,fibonacciNumberByIndex:()=>Jp,filterArrays:()=>Ef,filterArraysFast:()=>Tf,finalizeExtends:()=>Ni,findClosestNumber:()=>Sa,findClosestNumberInFactory:()=>dd,findInheritedState:()=>ra,findKeyPosition:()=>Pf,flattenExtend:()=>eo,formatDate:()=>Kp,generateHash:()=>Ti,generateKey:()=>an,generateMetaTags:()=>fd,get:()=>Rp,getActiveRoute:()=>rl,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>$u,getCdnProviderFromConfig:()=>uo,getChildStateInKey:()=>ea,getChildren:()=>Dn,getContext:()=>zn,getCookie:()=>bu,getDB:()=>Gn,getEmotionStylesheet:()=>Cd,getExtendsInElement:()=>Pu,getExtendsStack:()=>dn,getExtendsStackRegistry:()=>Ri,getFrequencyInArray:()=>bf,getHashedExtend:()=>mn,getImportMapScript:()=>qp,getInObjectByPath:()=>Jf,getLocalStorage:()=>Su,getNev:()=>iu,getPageMetadata:()=>ud,getParentStateInKey:()=>ta,getPath:()=>Ln,getQuery:()=>Kn,getRef:()=>Ip,getRoot:()=>jn,getRootContext:()=>Vn,getRootData:()=>Bn,getRootState:()=>Mn,getRootStateInKey:()=>Qi,getSpreadChildren:()=>Fu,global:()=>hf,hasFunction:()=>Yr,hasHandlerPlugin:()=>Zr,hasOwnProperty:()=>Wf,inheritChildExtends:()=>Fi,inheritChildPropsExtends:()=>$i,inheritParentProps:()=>kn,inheritRecursiveChildExtends:()=>Di,init:()=>Ce,initProps:()=>zu,is:()=>_t,isArray:()=>T,isBoolean:()=>bi,isContextComponent:()=>Du,isCyclic:()=>tu,isDOMNode:()=>xt,isDate:()=>Si,isDefined:()=>St,isDevelopment:()=>Me,isEmpty:()=>_i,isEmptyObject:()=>Hf,isEqualDeep:()=>wi,isFunction:()=>C,isHtmlElement:()=>Ko,isLocal:()=>su,isMethod:()=>Mp,isMobile:()=>mu,isNode:()=>de,isNot:()=>mf,isNotProduction:()=>sr,isNull:()=>xi,isNumber:()=>ne,isObject:()=>S,isObjectLike:()=>L,isPhoto:()=>td,isProduction:()=>Ne,isStaging:()=>nu,isState:()=>Yu,isString:()=>w,isStringFunction:()=>lu,isTest:()=>vi,isTesting:()=>ou,isUndefined:()=>ct,isUniversallyReservedKey:()=>zp,isValidHtmlTag:()=>vu,joinArrays:()=>Hr,jointStacks:()=>Ou,keys:()=>ya,lastLevel:()=>Is,lastPathname:()=>Ps,loadCssFile:()=>sd,loadJavascript:()=>id,loadJavascriptFile:()=>rd,loadJavascriptFileEmbedSync:()=>nd,loadJavascriptFileSync:()=>od,loadRemoteCSS:()=>ad,loadRemoteScript:()=>po,log:()=>Dp,logGroupIf:()=>hu,logIf:()=>du,lookdown:()=>Ep,lookdownAll:()=>Tp,lookup:()=>Ap,lowercaseFirstLetter:()=>rr,makeObjectWithoutPrototype:()=>qf,map:()=>Bf,mapStringsWithContextComponents:()=>bn,matchRoute:()=>Qc,matchesComponentNaming:()=>ae,memoize:()=>cu,merge:()=>Z,mergeSharedLibraries:()=>Zn,nextElement:()=>Wn,normalizeLibraryKey:()=>ho,objectToString:()=>on,objectizeStringProperty:()=>Sn,overwrite:()=>sn,overwriteDeep:()=>wt,overwriteShallow:()=>nr,overwriteState:()=>Qu,parse:()=>ba,parseDeep:()=>$n,parseQuery:()=>tl,parseRoutePattern:()=>Jc,pickupElementFromProps:()=>Vi,pickupPropsFromElement:()=>Bi,previousElement:()=>Hn,propExists:()=>Vu,propertizeElement:()=>zi,propertizeUpdate:()=>Bu,reinit:()=>Km,remove:()=>Op,removeChars:()=>_d,removeCookie:()=>xu,removeDuplicateProps:()=>Cn,removeDuplicatesInArray:()=>qr,removeFromArray:()=>xf,removeFromObject:()=>Kf,removeNestedKeyByPath:()=>Yf,removeValueFromArray:()=>Zo,removeValueFromArrayAll:()=>kf,reorderArrayByValues:()=>Cf,replaceLiteralsWithObjectFields:()=>er,replaceOctalEscapeSequences:()=>If,resolveAsset:()=>vt,resolveHandler:()=>Jr,resolveSharedLibraries:()=>yd,returnValueAsText:()=>qi,router:()=>re,runGuards:()=>el,runPluginHook:()=>Xt,scratchSystem:()=>ps,scratchUtils:()=>hr,self:()=>gf,set:()=>So,setActiveRootState:()=>Nn,setCookie:()=>yu,setHashedExtend:()=>Oi,setInObjectByPath:()=>Zf,setLocalStorage:()=>_u,setNodeStyles:()=>ma,setProps:()=>Pp,setPropsPrototype:()=>vn,spotByPath:()=>Fn,srcsetFor:()=>go,stringIncludesAny:()=>Qo,stringToObject:()=>Uf,swapItemsInArray:()=>Sf,syncProps:()=>An,toCamelCase:()=>Jn,toDashCase:()=>Qn,toDescriptionCase:()=>kd,toTitleCase:()=>wd,toggleFullscreen:()=>Wp,triggerEventOn:()=>je,triggerEventOnUpdate:()=>np,trimStringFromSymbols:()=>Rf,unstackArrayOfObjects:()=>Yo,update:()=>Ui,updateProps:()=>Uu,variables:()=>qn,verbose:()=>fo,warn:()=>Un,window:()=>k});O();O();var vw=A(),Gm=(t=vw,e)=>{let r=S(e.localFile)?e.localFile:{},o=X(r.designSystem||{});return W(t,o)},Cw={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Ce=(t,e=Cw)=>{let r=Gm(t||{},e),o=e.scopeSelector||":root",n=o===":root"?":root:not([data-theme])":`${o}:not([data-theme])`,s=e.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=So({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:s,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...r},{newConfig:e.newConfig,config:e.config});i&&(i.scopeSelector=o);let a=ka(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,p=i.useSvgSprite,u=t.svg,d=i.useIconSprite,h=t.icons;if(f&&ot(a),l&&(ot({[o]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[n]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];ot(m)}c&&ot(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];ot(m)}return(u||p)&&Qa(i.svg,{document:e.document}),(h||d)&&ec(i.icons,{document:e.document}),i},Ls={},Km=(t,e=Ls)=>{let r=Gm(t||{},e),o=e.scopeSelector||":root",n=o===":root"?":root:not([data-theme])":`${o}:not([data-theme])`,s=So({verbose:!1,...r});if(!e.preventInject){if(ot({[o]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[n]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];ot(i)}ot(s.reset)}return s},Xm=(t,e=Ls)=>{ot(t)},EP=(t,e=Ls)=>{let r=e.scopeSelector||":root",o=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(ot({[r]:t.CSS_VARS}),t.CSS_MEDIA_VARS){let n={};for(let s in t.CSS_MEDIA_VARS)s.startsWith("@media")?n[s]={[o]:t.CSS_MEDIA_VARS[s]}:n[s]=t.CSS_MEDIA_VARS[s];ot(n)}};var TP=(t,e=Ls)=>{};O();var Ym=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,xl={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Zm=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),o=t;for(let n of r){if(!o||!o[n])return null;o=o[n]}return o},Jm=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=xl:e.router=Z(e.router||{},xl);let r=e.router,o=async(s,i)=>{let a=s.context?.window||k;if(!a.location)return;let{pathname:c,search:l,hash:f}=a.location;c=Ym(c);let p=c+l+f,u=s;if(r.customRouterElement){let d=Zm(s,r.customRouterElement);d&&(u=d,s.routes&&(u.routes=s.routes))}u.routes&&await re(p,u,{},{initialRender:!0,pushState:!1})},n=!ct(t.onRenderRouter);return r&&r.initRouter&&!n&&(t.onRenderRouter=o),Aw(e,r),r},Sl=(t,e)=>{if(e.router===!1)return;let r=e.router||xl;if(!r.popState)return;let o=e.utils&&e.utils.router?e.utils.router:re,n=e.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=n.location;a=Ym(a);let f=a+c+l,p=t;if(r.customRouterElement){let u=Zm(t,r.customRouterElement);u&&(p=u,t.routes&&(p.routes=t.routes))}await p.call("router",f,p,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};n.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>n.removeEventListener("popstate",s))},Aw=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return W(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};O();var _l=k&&k.location?k.location.host.includes("dev."):Me(),Qm=_l?"http://localhost:8080/get":"https://api.symbols.app/get",Ew={endpoint:Qm},ty=async(t,e=Ew)=>{let r=e.endpoint||Qm,o=e.serviceRoute?T(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",n;try{return n=await globalThis.fetch(r+"/?"+o,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await n.json()}catch(s){if(C(e.onError))return e.onError(s);console.error(s)}},Tw=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let o=await ty(t,r),n=_l||e.isDevelopment?Mt(o):Mt(o.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{wt(e[s],n[s.toLowerCase()])}):wt(e[r.serviceRoute],n):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{wt(e[s],n[s.toLowerCase()])})}return e},Ow=async(t,e,r)=>{let{editor:o}=e;if(o&&o.remote){let n=await ty(t,o),s=_l||e.isDevelopment?Mt(n):Mt(n.releases[0]);r(s)}},ey=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await Tw(t,e)}catch(r){console.error(r)}},ry=(t,e,r,o)=>{if(e&&r.editor)try{r.editor.async&&Ow(e,r,o||(n=>{let s=n.designSystem;S(s)&&r.utils.init(s),S(n.state)&&t.state.set(n.state)}))}catch(n){console.error(n)}};var Ns=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let r of e.__teardowns)try{r()}catch(o){console.error("[smbls] destroy teardown error:",o)}e.__teardowns.length=0}try{wr(t)}catch(r){console.error("[smbls] dispose error:",r)}if(e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.fetch&&e.fetch.__resolving&&delete e.fetch.__resolving,e.db&&e.db.__resolved&&delete e.db.__resolved,e.db&&e.db.__resolving&&delete e.db.__resolving,e.analyze?.destroy)try{e.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return t.__destroyed=!0,!0};O();var Rw={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"}},Pw=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key)return`${t.tag}[${t.attr}="${t.key}"]`},Ms=(t,e,r)=>{if(!t)return{};let o=C(t)?G(t,e,r):{...t};if(!S(o))return{};for(let n in o){let s=o[n];C(s)&&(s=G(s,e,r)),w(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),o[n]=s}return o};var Iw=(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},js=(t,e)=>{if(!(!S(t)||!e))for(let r in t){let o=t[r];if(o==null)continue;let n=Rw[r];if(!n)continue;let s=Pw(n),i=e.querySelector(s)||Iw(n,e);i&&(r==="title"?i.textContent=o:n.valueAttr?i.setAttribute(n.valueAttr,o):i.setAttribute("content",o))}};var oy={name:"helmet",create(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let o=Ms(e,t,t.state);js(o,r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let o=Ms(e,t,t.state);js(o,r)}};Ve();var ny=(t,e,r,o)=>{t&&co(t,e,r,o)},sy=(t,e,r)=>{if(!t)return;let o=e.context?.document||typeof document<"u"&&document;if(!o)return;let n=Ms(t,e,r);js(n,o)},iy=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},o=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(o):await o(),r},Ao={routes:t=>t,metadata:sy,fetch:ny,$router:iy},$w=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=sy),t.fetch!==!1&&(e.fetch=ny),t.router!==!1&&(e.$router=iy),e};var ay={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},wl={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Bs={...ay,router:wl},Fw={state:{},pages:{},components:{},router:wl,define:Ao},Ae=Fw;O();O();var cy=(t,e)=>L(t.extends)?t.extends:[];O();var py=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;return t.document=t.document||r,t.window=t.window||e,t.window},ly=(t="smbls")=>{let e={};for(let r in Ar)Object.prototype.hasOwnProperty.call(Ar,r)&&(ae(r)?e[`smbls.${r}`]=Ar[r]:e[r]=Ar[r]);return e},dy=t=>t.components?{...ly(),...t.components}:ly(),hy=t=>({...Co,...ol,...hr,...t.utils,...t.snippets,...t.functions}),gy=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),fy={},my=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:o=!1,cdnProvider:n,packageManager:s,symbolsConfig:i})=>{if(n||(n=ze[s]||uo(i)||"esmsh"),!t)return null;let a=!1;for(let c in t){a=!0;break}if(!a)return null;for(let c in t){let l=t[c];if(e&&e[c])continue;let f=Me()&&o?`?${Math.random()}`:"",p=Jt(c,l,n)+f;try{if(fy[c])continue;fy[c]=!0,await Promise.race([po(p,{document:r,type:"module"}),new Promise((u,d)=>setTimeout(()=>d(new Error(`Timeout loading ${c}`)),1e4))])}catch(u){if(console.error(`Failed to load ${c} from ${n}:`,u),n!=="symbols")try{let d=Jt(c,l,"symbols")+f;await Promise.race([po(d,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${c}`)),1e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},yy=async(t,e)=>{let r=e.window||window,o=e.cdnProvider||uo(e.symbolsConfig)||"esmsh",n=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=o)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,p=i.window||window;if(!p.packages[a]){let u=Me()?`?${Math.random()}`:"";if(l&&l[a]){let d=l[a],h=Jt(a,d,c)+u;try{await i.utils.loadRemoteScript(h,{window:p,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let m=Jt(a,d,"symbols")+u;await i.utils.loadRemoteScript(m,{window:p,document:f})}}}else{let d=Jt(a,"latest",c)+u;try{await i.utils.loadRemoteScript(d,{window:p,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let g=Jt(a,"latest","symbols")+u;await i.utils.loadRemoteScript(g,{window:p,document:f})}}p.packages[a]="loadedOnDeman"}}return await p.require(a,c)};r.packages?r.packages=Z(r.packages,t):r.packages=t,r.require||(e.utils.require=await n(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},Dw=/\s+/g,by=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,Lw=(t,e)=>{let r="";for(let o in t){let n=t[o];typeof n=="boolean"&&n?r+=` ${o}`:typeof n=="string"?r+=` ${n}`:typeof n=="function"&&(r+=` ${by(n,e)}`)}return r},Nw=(t,e,r)=>{if(!t)return;let{key:o}=e;t===!0&&(t=e.classlist={key:o}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=Lw(t,e));let n=t.replace(Dw," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n},Mw=()=>(t,e,r)=>{let o=by(t,e);if(t){let{__ref:n}=e;n.__class.style=o}xy()(e.classlist,e,e.state,!0)},xy=()=>(t,e,r,o)=>{if(e.style&&!o)return;let{__ref:n}=e,{__class:s,__classNames:i}=n;if(!(t===null||typeof t!="object"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c=="string"||typeof c=="number"?l=c:typeof c=="boolean"?l=e.key:l=Ke(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&Nw(i,e,e.node)}},jw=()=>({style:Mw(),classlist:xy()}),Bw=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],uy=!1,Sy=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,o=e.initOptions||{},n=e.registry||jw(),s=e.designSystem?W(X(e.designSystem),As):X(As),i={};for(let d of Bw)e[d]!==void 0&&(i[d]=e[d]);let a,c=uy&&!e.skipDesignSystemInit,l=c?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=l;let f=l===":root"?":root:not([data-theme])":`${l}:not([data-theme])`;if(e.skipDesignSystemInit){if(a=A(t)||A(),a&&(a.document=r),a?.CSS_VARS){ft(a);try{if(ot({[l]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let d={};for(let h in a.CSS_MEDIA_VARS)h.startsWith("@media")?d[h]={[f]:a.CSS_MEDIA_VARS[h]}:d[h]=a.CSS_MEDIA_VARS[h];ot(d)}}finally{lt()}}}else if(c){let d=zd(t,s,{cleanBase:!0});for(let g in i)d[g]=i[g];d.document=r;let h=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=h,d.varPrefix=h,ft(d);try{a=Ce(d,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...Bs,...i,...o})}finally{lt()}}else{let d=A();d&&(d.document=r),a=Ce(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...Bs,...i,...o}),a&&a!==d&&(a.document=r),uy=!0}let p=a?.CONFIG||a,u=p?.font;if(u){ft(p);try{for(let d in u){let h=u[d];if(!h?.fontFace)continue;let g=Array.isArray(h.fontFace)?h.fontFace:[h.fontFace];for(let m of g)typeof m=="string"&&m.includes("font-family")&&ot(`@font-face { ${m} }`)}}finally{lt()}}return[a,n]},_y=(t,e)=>{let r={};e.state&&W(r,e.state),t&&t.state&&W(r,t.state);let o=e.polyglot;if(o?.translations){let n=null;try{typeof localStorage<"u"&&(n=localStorage.getItem(o.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=n||r.lang||o.defaultLang||"en";n&&n!==r.lang&&(r.lang=n);let i=o.translations[s];if(i&&typeof i=="object")for(let c in i)r[c]=i[c];let a=new Set(o.languages||[]);for(let c in o.translations)!a.has(c)&&r[c]===void 0&&(r[c]=o.translations[c])}return r.isRootState=!0,X(r)},wy=(t,e)=>{S(t.routes)&&S(e.pages)&&Z(t.routes,e.pages);let r=t.routes||e.pages||{};for(let o in r){if(o.charCodeAt(0)===47)continue;let n=o==="index"?"":o;r["/"+n]=r[o],delete r[o]}return r},ky=t=>{Zn(t,t.sharedLibraries)};O();var Cy="smbls_lang",Vw="smbls_t_",zw="smbls_tv_",Tr={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},Eo={};function zs(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function kl(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Vs=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),o=t;for(let n=0;n<r.length;n++){if(o==null)return;o=o[r[n]]}return o},vy=(t,e,r)=>{let o=e.lastIndexOf(".");if(o===-1)return t[e+"_"+r];let n=Vs(t,e.substring(0,o));if(n!=null)return n[e.substring(o+1)+"_"+r]};function vl(t,e){if(!t)return"";let r=this?.context,o=r?.polyglot,n=e||this.call("getActiveLang"),s=this?.state;if(s){let l=vy(s,t,n);if(l!==void 0)return l}if(o?.translations){let l=o.translations[n];if(l){let f=Vs(l,t);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[n];if(l){let f=Vs(l,t);if(f!==void 0)return f}}let c=o?.defaultLang||"en";if(s){let l=vy(s,t,c);if(l!==void 0)return l}if(o?.translations){let l=o.translations[c];if(l){let f=Vs(l,t);if(f!==void 0)return f}}return t}async function Cl(t){let e=this?.context,r=e?.polyglot,o=this?.state?.root||e?.state?.root;if(!r||!o)return;let n=r.storagePrefix||Vw,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):zw);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!o.translations?.[t]){let c=Tr.get(n+t);if(c)try{let l=JSON.parse(c),f={translations:{...o.translations||{}}};f.translations[t]=l,o.update&&o.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(r.storagePrefix||"smbls")+":"+t;if(Eo[i])return Eo[i];let a=this;return Eo[i]=(async()=>{try{let c=r.fetch,l=parseInt(Tr.get(s+t),10)||0,f,p,u;if(C(c)){let h=await c(t,l,a);if(!h||h.changed===!1)return;f=h.translations||h.data||h,p=h.version||0,u=!0}else if(S(c)){let h=a.getDB||(()=>e.fetch),g=C(h)?await h.call(a):e.fetch;if(!g)return;let m=c.rpc||c.from||"get_translations_if_changed",y={p_lang:t,p_cached_version:l,...c.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,b.error;let x=b.data;if(!x||!x.changed)return;f=x.translations||{},p=x.version||0,u=!0}else return;if(!u||!f)return;Tr.set(n+t,JSON.stringify(f)),p&&Tr.set(s+t,String(p));let d={translations:{...o.translations||{}}};d.translations[t]=f,o.update&&o.update(d)}catch(c){if(r.verbose!==!1){let l=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",t,"-",l)}}finally{delete Eo[i]}})(),Eo[i]}async function Al(t){let e=this?.context,r=e?.polyglot,o=this?.state?.root||e?.state?.root;if(!o||this.call("getActiveLang")===t)return;let n=r?.storageLangKey||Cy;Tr.set(n,t),r?.fetch&&await this.call("loadTranslations",t),e?.state&&(e.state.lang=t);let s=r?.translations?.[t],i={lang:t};if(s&&typeof s=="object")for(let c in s){let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}if(o.update&&o.update(i),s&&typeof s=="object")for(let c in s){let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&o[c]&&typeof o[c]=="object"&&!Array.isArray(o[c]))for(let f in l)o[c][f]=l[f]}let a=this?.context?.document||globalThis.document;if(a&&s){let c=a.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let p=f.__ref?.__exec?.text;if(typeof p=="string"&&p.includes("{{"))try{let u=f.call("replaceLiteralsWithObjectFields",p,f.state);u!=null&&l.textContent!==u&&(l.textContent=u)}catch{}}}}async function El(t,e,r){let o=this?.context,n=o?.polyglot,s=this?.state?.root||o?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),n?.translations?.[e]&&(n.translations[e][t]=r),n?.fetch&&S(n.fetch)){let i=this.getDB||(()=>o.fetch),a=C(i)?await i.call(this):o.fetch;if(!a)return;let c=n.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(l?.error)throw l.error;return l.data}}async function Ay(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let o=e.storageLangKey||Cy,s=Tr.get(o)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function Tl(t){try{let e=this?.context?.polyglot,o=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",n=this?.state;if(!n)return"";let s=t.lastIndexOf(".");if(s===-1)return n[t+o]??"";let i=t.substring(0,s).split("."),a=n;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+o]??""}catch{return""}}var Ol={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Ay.call(t))}};var Us={polyglot:vl,getLocalStateLang:Tl,getActiveLang:zs,getLang:zs,setLang:Al,getLanguages:kl,loadTranslations:Cl,upsertTranslation:El};Ve();var Ws={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}},Hs=t=>parseFloat(t.toFixed(4)),Uw=(t,e,r)=>{let{ascent:o,descent:n,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(n),l=o+c+s,f=r!==void 0?r:l/i*t,p=f/t,u=l/i,d=(o-a+s/2)/i-(p-u)/2,h=(c+s/2)/i-(p-u)/2;return{fontSize:`${Hs(t/16)}rem`,lineHeight:`${Hs(f)}px`,capHeightTrim:`${Hs(-d)}em`,baselineTrim:`${Hs(-h)}em`}},Ww=(t,e)=>{if(typeof t=="number")return t;let r=e?.designSystem;if(!r)return null;let{typography:o}=r;if(o?.sequence){let s=String(t).toUpperCase(),i=o.sequence[s];if(i)return i.decimal||i.val}let n=parseFloat(t);return isNaN(n)?null:typeof t=="string"&&t.endsWith("rem")?n*(r.typography?.browserDefault||16):n},Hw=(t,e)=>{let o=e?.designSystem?.font_family||{};if(t){let s=o[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(Ws[i])return Ws[i]}let n=o.default||Object.keys(o)[0];if(n){let s=o[n];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(Ws[a])return Ws[a]}}return null},Ey=(t,e,r,o)=>{if(!t)return;let n=Ww(e.fontSize,o);if(!n)return;let s=Hw(e.fontFamily,o);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=Uw(n,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},Ty={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}};var To={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},$t=Object.create(null);for(let t in To)$t[To[t]]=t;var Rl=Object.create(null);for(let t in To){let e=To[t];if(Rl[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${Rl[e]}"`);Rl[e]=t}var Ee=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Oo(t){return/^[A-Z]/.test(t)}function Ro(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function qw(t){return t.trim().split(/\s+/).filter(Boolean)}function Oy(t){return t.replace(/_/g," ")}function Gw(t){if(!t||typeof t!="string")return{};let e={},r=qw(t);for(let o of r){if(o.startsWith("!")){let c=o.slice(1),l=$t[c]||c;e[l]=!1;continue}let n=o.indexOf(":");if(n===-1){let c=$t[o]||o;e[c]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=$t[s]||s;if(i.includes(",")){e[a]=i.split(",").map(Oy);continue}e[a]=Oy(i)}return e}function Po(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Po(r):r});let e={};for(let r in t){let o=t[r];if(Oo(r)){e[r]=Pl(o);continue}let n=$t[r]||r;if(Ro(r)&&n===r){e[r]=Pl(o);continue}if(Ee.has(n)||Ee.has(r)){e[n]=o;continue}e[n]=Pl(o)}return e}function Pl(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Po(e):e}):typeof t=="object"?Po(t):t}function Io(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Io(r):r});let e={};if(typeof t.in=="string"){let r=Gw(t.in);for(let o in r)e[o]=r[o]}for(let r in t){if(r==="in")continue;let o=t[r];if(Oo(r)){e[r]=Il(o);continue}let n=$t[r]||r;if(Ro(r)&&n===r){e[r]=Il(o);continue}if(Ee.has(n)||Ee.has(r)){e[n]=o;continue}e[n]=Il(o)}return e}function Il(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Io(e):e}):typeof t=="object"?Io(t):t}function Kw(t){let e="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){let o=t[r+1];if(o===","||o==="_"||o==="\\"){e+=o,r+=2;continue}}t[r]==="_"?e+=" ":e+=t[r],r++}return e}function Xw(t){let e=[],r="",o=0;for(;o<t.length;){if(t[o]==="\\"&&o+1<t.length){r+=t[o]+t[o+1],o+=2;continue}if(t[o]===","){e.push(r),r="",o++;continue}r+=t[o],o++}return e.push(r),e}function Ry(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):Kw(t)}function $l(t){if(!t||typeof t!="string")return{};let e={},r=t.trim().split(/\s+/).filter(Boolean);for(let o of r){if(o.startsWith("!")){let l=o.slice(1),f=$t[l]||l;e[f]=!1;continue}let n=o.indexOf(":");if(n===-1){let l=$t[o]||o;e[l]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=$t[s]||s,c=Xw(i);if(c.length>1){e[a]=c.map(Ry);continue}e[a]=Ry(i)}return e}function $o(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?$o(r):r});let e={};if(typeof t.in=="string"){let r=$l(t.in);for(let o in r)e[o]=r[o]}for(let r in t){if(r==="in")continue;let o=t[r];if(Oo(r)){typeof o=="string"?e[r]=$l(o):e[r]=Fl(o);continue}let n=$t[r]||r;if(Ro(r)&&n===r){typeof o=="string"?e[r]=$l(o):e[r]=Fl(o);continue}if(Ee.has(n)||Ee.has(r)){e[n]=o;continue}e[n]=Fl(o)}return e}function Fl(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?$o(e):e}):typeof t=="object"?$o(t):t}var Yw={shorten:Po,stringify:Io,stringifyFurther:$o};function Zw(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(o=>e(o));let r={};for(let o in t){let n=t[o];r[o]=n&&typeof n=="object"?e(n):n}return r}var Jw=["components","pages","snippets"],qs={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let o=Yw[e===!0?"shorten":e];if(o){for(let n of Jw)t[n]&&(t[n]=Zw(t[n],o));t.app&&typeof t.app=="object"&&(t.app=o(t.app))}}};var Qw=0,t0=()=>`${Date.now().toString(36)}-${(Qw++).toString(36)}`,z=(t,e,r={})=>({id:t0(),ts:Date.now(),type:t,level:e,...r}),e0=t=>{let e=[],r=t,o=0;for(;r&&o<32;)r.key!=null&&e.unshift(String(r.key)),r=r.parent,o++;return e.join(" > ")},Or=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:e0(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Rr=t=>t?.context?.analyze,r0={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"}},o0=(t,{category:e,type:r,level:o})=>n=>{let s=Rr(n);!s||!s.shouldCapture(e)||s.emit(z(r,o,{hook:t,element:Or(n)}))},Py=t=>(e,r)=>{let o=Rr(e);!o||!o.shouldCapture("state")||o.emit(z("state","debug",{hook:t,element:Or(e),changedKeys:r?.changedKeys||null}))},Fo={name:"analyze",error(t,e){let r=Rr(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let o=e?.error||e?.err||(e instanceof Error?e:null);r.emit(z("error","error",{hook:e?.hook||"error",element:Or(t),error:o,message:o?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Rr(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(z("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Rr(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Rr(t);if(!e||!e.shouldCapture("updates"))return;let r=null;t.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(z("update","debug",{hook:"update",element:Or(t),durationMs:r}))},beforeStateUpdate:Py("beforeStateUpdate"),stateUpdate:Py("stateUpdate")};for(let[t,e]of Object.entries(r0))Fo[t]=o0(t,e);O();var Gs={error:0,warn:1,info:2,debug:3,trace:4};var Dl=(t,e)=>{let r=Gs[t],o=Gs[e];return r==null||o==null?!0:r<=o},Ks=t=>Gs[t]!=null?t:"warn";O();var Xs=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var n0=(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},s0=(t,e)=>{if(e!=="redact"){if(e==="hash"){let r=0,o=String(t);for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},Ll=(t,e,r,o)=>{if(o>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>Ll(s,e,r,o+1));let n={};for(let s of Object.keys(t))if(n0(s,e)||Xs.test(s)){let a=s0(t[s],r);a!==void 0&&(n[s]=a)}else n[s]=Ll(t[s],e,r,o+1);return n},Nl=(t=[],e="mask")=>{let r=Array.isArray(t)?t:[t];return o=>{if(!o)return o;let{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...h}=o,g=Ll(h,r,e,0);return{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:p,element:u,target:d,...g}}};var Iy=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,o=t.config.buildHash||null,n=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=k,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:n,build:o,route:i},meta:{ua:r,viewport:c}}}},$y=()=>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},Fy=(t=1e3,e=500)=>{let r=new Map;return o=>{if(!o)return o;let n=`${o.type}:${o.level}:${o.message||""}:${o.error?.message||""}`,s=r.get(n),i=o.ts||Date.now();if(s&&i-s<t)return null;if(r.set(n,i),r.size>e){let a=Math.ceil(e/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return o}},Dy=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},Ly={redact:t=>Nl(t.config.redact||[],t.config.maskStrategy),enrich:t=>Iy(t),summarize:()=>$y(),dedupe:t=>Fy(t.config.cache?.dedupeWindowMs||1e3),sample:t=>Dy(t.config.sample||{})},i0=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=Ly[t];return r?r(e):null}return null},Ml=t=>{let e=t.config,r=Array.isArray(e.transformers)?e.transformers.slice():[],o=r.findIndex(s=>s==="redact");o>=0&&r.splice(o,1);let n=[];e.redact!==!1&&n.push(Ly.redact(t));for(let s of r){let i=i0(s,t);i&&n.push(i)}return s=>{let i=s;for(let a of n){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=n.slice(n.indexOf(a)+1),f=[];for(let p of c){let u=p,d=!1;for(let h of l)if(u=h(u),u==null){d=!0;break}!d&&u!=null&&f.push(u)}return f}i=c}return i}};O();var a0={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},c0="\x1B[0m",Ys=typeof k<"u"&&typeof k.document<"u",My=(t={})=>{let e=t.minLevel||null,r=console.error.bind(console),o=console.warn.bind(console),n=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?o:n,a=`[analyze:${s.type}]`;if(Ys)i(a,s);else{let c=a0[s.level]||"";i(`${c}${a}${c0}`,s)}}},jy=(t,e={})=>{let r=e.max||t.config.cache?.max||500,o=new Array(r),n=0,s=0,i=a=>{o[n]=a,n=(n+1)%r,s<r&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(n-s+r)%r;for(let l=0;l<s;l++)a[l]=o[(c+l)%r];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{n=0,s=0}},i},By=(t={})=>{let e=t.url,r=t.batchMs!=null?t.batchMs:5e3,o=t.maxBatch||50;if(!e)return()=>{};let n=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!n.length)return;let c=JSON.stringify({events:n});n=[];let l=Ys?new k.Blob([c],{type:"application/json"}):c;if(Ys&&navigator.sendBeacon)try{navigator.sendBeacon(e,l);return}catch{}typeof fetch<"u"&&fetch(e,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:c,keepalive:!0}).catch(()=>{})};Ys&&(k.addEventListener("pagehide",i,{passive:!0}),k.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(n.push(c),n.length>=o?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},Ny={console:My,memory:jy,beacon:By},jl=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],r=[];for(let o of e)if(typeof o=="function")r.push(o);else if(typeof o=="string"){let n=Ny[o];if(!n)continue;r.push(o==="memory"?n(t,{}):n({}))}else if(o&&typeof o=="object"&&o.type){let n=Ny[o.type];if(!n)continue;r.push(o.type==="memory"?n(t,o):n(o))}return r};O();var l0=typeof k<"u"&&typeof k.document<"u",f0=new Set(["password","hidden"]),Vy=(t,e)=>{let r=0,o=null,n=null;return(...s)=>{let i=Date.now();i-r>=e?(r=i,t(...s)):(n=s,o||(o=setTimeout(()=>{r=Date.now(),o=null,n&&(t(...n),n=null)},e-(i-r))))}},Bl="__analyzeKeyPath",Pr=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[Bl])return e[Bl];let r=[],o=e,n=0,s=null;for(;o&&n<64;){if(o.getAttribute){let a=o.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}o=o.parentNode,n++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||"unknown").toLowerCase(),c=e.id?`#${e.id}`:"",l=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[Bl]=i}catch{}return i},u0=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let r=0,o=String(t||"");for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},p0=t=>!!(!t||t.tagName==="INPUT"&&f0.has(t.type)||Xs.test(t.name||"")||Xs.test(t.id||"")||t.dataset?.analyze==="skip"),Vl=t=>{if(!l0)return;let e=t.config.capture,r=t.config.throttle,o=t.__teardown,n=(s,i,a,c)=>{s.addEventListener(i,a,c),o.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(n(k,"error",s=>{t.emit(z("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),n(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){n(k,"click",i=>{t.emit(z("pointer","info",{hook:"click",target:Pr(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:zy(i)}))},{passive:!0,capture:!0}),n(k,"dblclick",i=>{t.emit(z("pointer","info",{hook:"dblclick",target:Pr(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),n(k,"contextmenu",i=>{t.emit(z("pointer","info",{hook:"contextmenu",target:Pr(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=Vy(i=>{t.emit(z("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);n(k,"pointermove",s,{passive:!0})}if(e.keyboard&&n(k,"keydown",s=>{t.emit(z("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:zy(s),target:Pr(s)}))},{passive:!0,capture:!0}),e.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=p0(a),f=a.dataset?.analyze==="track",p=null;f&&!l?p=a.value:t.config.maskFormValues!==!1&&(p=u0(a.value,t.config.maskStrategy)),t.emit(z("forms","info",{hook:i.type,target:Pr(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:p}))};n(k,"input",s,{passive:!0,capture:!0}),n(k,"change",s,{passive:!0,capture:!0}),n(k,"submit",i=>{t.emit(z("forms","info",{hook:"submit",target:Pr(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=Vy(()=>{t.emit(z("scroll","trace",{hook:"scroll",x:k.scrollX,y:k.scrollY}))},r.scroll);n(k,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=un(()=>{t.emit(z("viewport","info",{hook:"resize",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))},r.resize);n(k,"resize",s,{passive:!0}),n(k,"orientationchange",()=>{t.emit(z("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),n(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(d0)}))}catch{}return i.apply(console,a)},o.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(z("performance","info",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}o.push(()=>s.disconnect())}catch{}},zy=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),d0=t=>{if(t==null)return t;if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};O();var h0=typeof k<"u"&&typeof k.document<"u";var zl=t=>{if(h0&&t.config.capture.network){if(typeof k.fetch=="function"){let e=k.fetch.bind(k),r=function(o,n){if(n?.headers?.["X-Analyze-Beacon"])return e(o,n);let s=typeof o=="string"?o:o&&o.url||"",i=(n?.method||typeof o=="object"&&o?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(z("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(o,n).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(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,o=e.prototype.send;e.prototype.open=function(n,s){return this.__analyze={method:String(n).toUpperCase(),url:String(s)},r.apply(this,arguments)},e.prototype.send=function(n){let s=this.__analyze;if(!s)return o.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(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),o.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=r,e.prototype.send=o})}}};var g0={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},m0={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},y0={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},b0=t=>{let e={...g0,...t};return e.replay&&Object.assign(e,m0),e.telemetry&&Object.assign(e,y0),e},x0=64,S0=()=>{if(typeof k>"u"||!k.location)return null;try{let e=new URLSearchParams(k.location.search).get("analyze");return e||null}catch{return null}},Ul=(t={})=>{let e=t===!0?{}:{...t};e.capture=b0(e.capture||{});let r=S0();(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=Ks(e.level||"warn"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy="mask"),Array.isArray(e.sinks)||(e.sinks=["console","memory"]),Array.isArray(e.transformers)||(e.transformers=["enrich","summarize"]);let o={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},n=()=>{o.__pipeline||(o.__pipeline=Ml(o),o.__sinks=jl(o))};return o.shouldCapture=s=>o.config.enabled===!1?!1:!!o.config.capture[s],o.emit=s=>{if(s&&o.config.enabled!==!1&&!o.__paused&&Dl(s.level,o.config.level)){if(!o.__ready){if(s.level!=="error"&&!o.config.captureDuringHydration)return;o.__preBuffer.length<x0&&o.__preBuffer.push(s);return}n(),Uy(o,s)}},o.activate=s=>{if(o.context==null&&(o.context=s||null),o.__ready)return;o.__ready=!0;let i=o.__preBuffer;if(o.__preBuffer=[],i.length){n();for(let a of i)Uy(o,a)}try{Vl(o)}catch(a){console.error("[analyze] browser attach error:",a)}try{zl(o)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of o.__onActivate||[])try{a(o)}catch(c){console.error("[analyze] onActivate error:",c)}},o.pause=()=>{o.__paused=!0},o.resume=()=>{o.__paused=!1},o.setLevel=s=>{o.config.level=Ks(s)},o.setCapture=(s,i)=>{o.config.capture[s]=!!i},o.query=s=>o.__memory?o.__memory.query(s):[],o.snapshot=()=>o.__memory?o.__memory.snapshot():[],o.emitNetwork=s=>{if(!o.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";o.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},o.flush=()=>{if(o.__sinks)for(let s of o.__sinks)typeof s.flush=="function"&&s.flush()},o.replay=()=>({initialSnapshot:o.__initialSnapshot,events:o.snapshot()}),o.destroy=()=>{for(let s of o.__teardown)try{s()}catch{}o.__teardown=[],o.__ready=!1,o.__paused=!0},o.__onActivate=[],o.onActivate=s=>{o.__onActivate.push(s)},o},Uy=(t,e)=>{let r=t.__pipeline(e);if(r==null)return;let o=Array.isArray(r)?r:[r];for(let n of o){if(typeof t.config.onEvent=="function")try{t.config.onEvent(n)}catch{}for(let s of t.__sinks)try{s(n)}catch(i){console.error("[analyze] sink error:",i)}}};var qt=Object.create(null);qt.open="0";qt.close="1";qt.ping="2";qt.pong="3";qt.message="4";qt.upgrade="5";qt.noop="6";var Do=Object.create(null);Object.keys(qt).forEach(t=>{Do[qt[t]]=t});var Lo={type:"error",data:"parser error"};var qy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Gy=typeof ArrayBuffer=="function",Ky=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,No=({type:t,data:e},r,o)=>qy&&e instanceof Blob?r?o(e):Wy(e,o):Gy&&(e instanceof ArrayBuffer||Ky(e))?r?o(e):Wy(new Blob([e]),o):o(qt[t]+(e||"")),Wy=(t,e)=>{let r=new FileReader;return r.onload=function(){let o=r.result.split(",")[1];e("b"+(o||""))},r.readAsDataURL(t)};function Hy(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Wl;function Xy(t,e){if(qy&&t.data instanceof Blob)return t.data.arrayBuffer().then(Hy).then(e);if(Gy&&(t.data instanceof ArrayBuffer||Ky(t.data)))return e(Hy(t.data));No(t,!1,r=>{Wl||(Wl=new TextEncoder),e(Wl.encode(r))})}var Yy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Yy.length;t++)Mo[Yy.charCodeAt(t)]=t;var Zy=t=>{let e=t.length*.75,r=t.length,o,n=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let l=new ArrayBuffer(e),f=new Uint8Array(l);for(o=0;o<r;o+=4)s=Mo[t.charCodeAt(o)],i=Mo[t.charCodeAt(o+1)],a=Mo[t.charCodeAt(o+2)],c=Mo[t.charCodeAt(o+3)],f[n++]=s<<2|i>>4,f[n++]=(i&15)<<4|a>>2,f[n++]=(a&3)<<6|c&63;return l};var _0=typeof ArrayBuffer=="function",jo=(t,e)=>{if(typeof t!="string")return{type:"message",data:Jy(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:w0(t.substring(1),e)}:Do[r]?t.length>1?{type:Do[r],data:t.substring(1)}:{type:Do[r]}:Lo},w0=(t,e)=>{if(_0){let r=Zy(t);return Jy(r,e)}else return{base64:!0,data:t}},Jy=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var Qy="",tb=(t,e)=>{let r=t.length,o=new Array(r),n=0;t.forEach((s,i)=>{No(s,!1,a=>{o[i]=a,++n===r&&e(o.join(Qy))})})},eb=(t,e)=>{let r=t.split(Qy),o=[];for(let n=0;n<r.length;n++){let s=jo(r[n],e);if(o.push(s),s.type==="error")break}return o};function rb(){return new TransformStream({transform(t,e){Xy(t,r=>{let o=r.length,n;if(o<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,o);else if(o<65536){n=new Uint8Array(3);let s=new DataView(n.buffer);s.setUint8(0,126),s.setUint16(1,o)}else{n=new Uint8Array(9);let s=new DataView(n.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(o))}t.data&&typeof t.data!="string"&&(n[0]|=128),e.enqueue(n),e.enqueue(r)})}})}var Hl;function Zs(t){return t.reduce((e,r)=>e+r.length,0)}function Js(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),o=0;for(let n=0;n<e;n++)r[n]=t[0][o++],o===t[0].length&&(t.shift(),o=0);return t.length&&o<t[0].length&&(t[0]=t[0].slice(o)),r}function ob(t,e){Hl||(Hl=new TextDecoder);let r=[],o=0,n=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(o===0){if(Zs(r)<1)break;let c=Js(r,1);s=(c[0]&128)===128,n=c[0]&127,n<126?o=3:n===126?o=1:o=2}else if(o===1){if(Zs(r)<2)break;let c=Js(r,2);n=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),o=3}else if(o===2){if(Zs(r)<8)break;let c=Js(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Lo);break}n=f*Math.pow(2,32)+l.getUint32(4),o=3}else{if(Zs(r)<n)break;let c=Js(r,n);a.enqueue(jo(s?c:Hl.decode(c),e)),o=0}if(n===0||n>t){a.enqueue(Lo);break}}}})}var ql=4;function K(t){if(t)return k0(t)}function k0(t){for(var e in K.prototype)t[e]=K.prototype[e];return t}K.prototype.on=K.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};K.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};K.prototype.off=K.prototype.removeListener=K.prototype.removeAllListeners=K.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var o,n=0;n<r.length;n++)if(o=r[n],o===e||o.fn===e){r.splice(n,1);break}return r.length===0&&delete this._callbacks["$"+t],this};K.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){r=r.slice(0);for(var o=0,n=r.length;o<n;++o)r[o].apply(this,e)}return this};K.prototype.emitReserved=K.prototype.emit;K.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};K.prototype.hasListeners=function(t){return!!this.listeners(t).length};var fe=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),mt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),nb="arraybuffer";function Qs(t,...e){return e.reduce((r,o)=>(t.hasOwnProperty(o)&&(r[o]=t[o]),r),{})}var v0=mt.setTimeout,C0=mt.clearTimeout;function ue(t,e){e.useNativeTimers?(t.setTimeoutFn=v0.bind(mt),t.clearTimeoutFn=C0.bind(mt)):(t.setTimeoutFn=mt.setTimeout.bind(mt),t.clearTimeoutFn=mt.clearTimeout.bind(mt))}var A0=1.33;function sb(t){return typeof t=="string"?E0(t):Math.ceil((t.byteLength||t.size)*A0)}function E0(t){let e=0,r=0;for(let o=0,n=t.length;o<n;o++)e=t.charCodeAt(o),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(o++,r+=4);return r}function ti(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function ib(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function ab(t){let e={},r=t.split("&");for(let o=0,n=r.length;o<n;o++){let s=r[o].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var ei=class extends Error{constructor(e,r,o){super(e),this.description=r,this.context=o,this.type="TransportError"}},pe=class extends K{constructor(e){super(),this.writable=!1,ue(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,o){return super.emitReserved("error",new ei(e,r,o)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let r=jo(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let r=ib(e);return r.length?"?"+r:""}};var Bo=class extends pe{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let r=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let o=0;this._polling&&(o++,this.once("pollComplete",function(){--o||r()})),this.writable||(o++,this.once("drain",function(){--o||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let r=o=>{if(this.readyState==="opening"&&o.type==="open"&&this.onOpen(),o.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(o)};eb(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,tb(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]=ti()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var cb=!1;try{cb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var lb=cb;function T0(){}var Gl=class extends Bo{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||o!==e.port}}doWrite(e,r){let o=this.request({method:"POST",data:e});o.on("success",r),o.on("error",(n,s)=>{this.onError("xhr post error",n,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,o)=>{this.onError("xhr poll error",r,o)}),this.pollXhr=e}},Te=class t extends K{constructor(e,r,o){super(),this.createRequest=e,ue(this,o),this._opts=o,this._method=o.method||"GET",this._uri=r,this._data=o.data!==void 0?o.data:null,this._create()}_create(){var e;let r=Qs(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let o=this._xhr=this.createRequest(r);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&o.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{o.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var n;o.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(o.getResponseHeader("set-cookie"))),o.readyState===4&&(o.status===200||o.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof o.status=="number"?o.status:0)},0))},o.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=T0,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Te.requestsCount=0;Te.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",fb);else if(typeof addEventListener=="function"){let t="onpagehide"in mt?"pagehide":"unload";addEventListener(t,fb,!1)}}function fb(){for(let t in Te.requests)Te.requests.hasOwnProperty(t)&&Te.requests[t].abort()}var O0=(function(){let t=ub({xdomain:!1});return t&&t.responseType!==null})(),Oe=class extends Gl{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=O0&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Te(ub,this.uri(),e)}};function ub(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||lb))return new XMLHttpRequest}catch{}if(!e)try{return new mt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var pb=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Xl=class extends pe{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,o=pb?{}:Qs(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,r,o)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let o=e[r],n=r===e.length-1;No(o,this.supportsBinary,s=>{try{this.doWrite(o,s)}catch{}n&&fe(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=ti()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},Kl=mt.WebSocket||mt.MozWebSocket,Re=class extends Xl{createSocket(e,r,o){return pb?new Kl(e,r,o):r?new Kl(e,r):new Kl(e)}doWrite(e,r){this.ws.send(r)}};var Ir=class extends pe{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let r=ob(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=e.readable.pipeThrough(r).getReader(),n=rb();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let s=()=>{o.read().then(({done:a,value:c})=>{a||(this.onPacket(c),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let o=e[r],n=r===e.length-1;this._writer.write(o).then(()=>{n&&fe(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var Yl={websocket:Re,webtransport:Ir,polling:Oe};var R0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,P0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function $r(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),o=t.indexOf("]");r!=-1&&o!=-1&&(t=t.substring(0,r)+t.substring(r,o).replace(/:/g,";")+t.substring(o,t.length));let n=R0.exec(t||""),s={},i=14;for(;i--;)s[P0[i]]=n[i]||"";return r!=-1&&o!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=I0(s,s.path),s.queryKey=$0(s,s.query),s}function I0(t,e){let r=/\/{2,9}/g,o=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&o.splice(0,1),e.slice(-1)=="/"&&o.splice(o.length-1,1),o}function $0(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,n,s){n&&(r[n]=s)}),r}var Zl=typeof addEventListener=="function"&&typeof removeEventListener=="function",ri=[];Zl&&addEventListener("offline",()=>{ri.forEach(t=>t())},!1);var Ze=class t extends K{constructor(e,r){if(super(),this.binaryType=nb,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let o=$r(e);r.hostname=o.host,r.secure=o.protocol==="https"||o.protocol==="wss",r.port=o.port,o.query&&(r.query=o.query)}else r.host&&(r.hostname=$r(r.host).host);ue(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(o=>{let n=o.prototype.name;this.transports.push(n),this._transportsByName[n]=o}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=ab(this.opts.query)),Zl&&(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"})},ri.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=ql,r.transport=e,this.id&&(r.sid=this.id);let o=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](o)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let o=0;o<this.writeBuffer.length;o++){let n=this.writeBuffer[o].data;if(n&&(r+=sb(n)),o>0&&r>this._maxPayload)return this.writeBuffer.slice(0,o);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,fe(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,o){return this._sendPacket("message",e,r,o),this}send(e,r,o){return this._sendPacket("message",e,r,o),this}_sendPacket(e,r,o,n){if(typeof r=="function"&&(n=r,r=void 0),typeof o=="function"&&(n=o,o=null),this.readyState==="closing"||this.readyState==="closed")return;o=o||{},o.compress=o.compress!==!1;let s={type:e,data:r,options:o};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},o=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?o():e()}):this.upgrading?o():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Zl&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let o=ri.indexOf(this._offlineEventListener);o!==-1&&ri.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Ze.protocol=ql;var oi=class extends Ze{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let r=this.createTransport(e),o=!1;Ze.priorWebsocketSuccess=!1;let n=()=>{o||(r.send([{type:"ping",data:"probe"}]),r.once("packet",p=>{if(!o)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Ze.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{o||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let u=new Error("probe error");u.transport=r.name,this.emitReserved("upgradeError",u)}}))};function s(){o||(o=!0,f(),r.close(),r=null)}let i=p=>{let u=new Error("probe error: "+p);u.transport=r.name,s(),this.emitReserved("upgradeError",u)};function a(){i("transport closed")}function c(){i("socket closed")}function l(p){r&&p.name!==r.name&&s()}let f=()=>{r.removeListener("open",n),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};r.once("open",n),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{o||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let o=0;o<e.length;o++)~this.transports.indexOf(e[o])&&r.push(e[o]);return r}},Fr=class extends oi{constructor(e,r={}){let o=typeof e=="object"?e:r;(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(n=>Yl[n]).filter(n=>!!n)),super(e,o)}};var c$=Fr.protocol;function db(t,e="",r){let o=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),o=$r(t)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";let s=o.host.indexOf(":")!==-1?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+s+":"+o.port+e,o.href=o.protocol+"://"+s+(r&&r.port===o.port?"":":"+o.port),o}var nf={};$(nf,{Decoder:()=>rf,Encoder:()=>ef,PacketType:()=>F,isPacketValid:()=>tk,protocol:()=>vb});var D0=typeof ArrayBuffer=="function",L0=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,hb=Object.prototype.toString,N0=typeof Blob=="function"||typeof Blob<"u"&&hb.call(Blob)==="[object BlobConstructor]",M0=typeof File=="function"||typeof File<"u"&&hb.call(File)==="[object FileConstructor]";function zo(t){return D0&&(t instanceof ArrayBuffer||L0(t))||N0&&t instanceof Blob||M0&&t instanceof File}function Vo(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,o=t.length;r<o;r++)if(Vo(t[r]))return!0;return!1}if(zo(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Vo(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Vo(t[r]))return!0;return!1}function gb(t){let e=[],r=t.data,o=t;return o.data=Jl(r,e),o.attachments=e.length,{packet:o,buffers:e}}function Jl(t,e){if(!t)return t;if(zo(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let o=0;o<t.length;o++)r[o]=Jl(t[o],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Jl(t[o],e));return r}return t}function mb(t,e){return t.data=Ql(t.data,e),delete t.attachments,t}function Ql(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]=Ql(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=Ql(t[r],e));return t}var wb=Zb(_b(),1),tf=(0,wb.default)("socket.io-parser"),kb=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],vb=5,F;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(F||(F={}));var ef=class{constructor(e){this.replacer=e}encode(e){return tf("encoding packet %j",e),(e.type===F.EVENT||e.type===F.ACK)&&Vo(e)?this.encodeAsBinary({type:e.type===F.EVENT?F.BINARY_EVENT:F.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===F.BINARY_EVENT||e.type===F.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),tf("encoded %j as %s",e,r),r}encodeAsBinary(e){let r=gb(e),o=this.encodeAsString(r.packet),n=r.buffers;return n.unshift(o),n}},rf=class t extends K{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);let o=r.type===F.BINARY_EVENT;o||r.type===F.BINARY_ACK?(r.type=o?F.EVENT:F.ACK,this.reconstructor=new of(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(zo(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let r=0,o={type:Number(e.charAt(0))};if(F[o.type]===void 0)throw new Error("unknown packet type "+o.type);if(o.type===F.BINARY_EVENT||o.type===F.BINARY_ACK){let s=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);let i=e.substring(s,r);if(i!=Number(i)||e.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!Cb(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");o.attachments=a}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););o.nsp=e.substring(s,r)}else o.nsp="/";let n=e.charAt(r+1);if(n!==""&&Number(n)==n){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}o.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(o.type,s))o.data=s;else throw new Error("invalid payload")}return tf("decoded %s as %j",e,o),o}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case F.CONNECT:return ii(r);case F.DISCONNECT:return r===void 0;case F.CONNECT_ERROR:return typeof r=="string"||ii(r);case F.EVENT:case F.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&kb.indexOf(r[0])===-1);case F.ACK:case F.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},of=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=mb(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Z0(t){return typeof t=="string"}var Cb=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function J0(t){return t===void 0||Cb(t)}function ii(t){return Object.prototype.toString.call(t)==="[object Object]"}function Q0(t,e){switch(t){case F.CONNECT:return e===void 0||ii(e);case F.DISCONNECT:return e===void 0;case F.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&kb.indexOf(e[0])===-1);case F.ACK:return Array.isArray(e);case F.CONNECT_ERROR:return typeof e=="string"||ii(e);default:return!1}}function tk(t){return Z0(t.nsp)&&J0(t.id)&&Q0(t.type,t.data)}function At(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var ek=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Mr=class extends K{constructor(e,r,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=r,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[At(e,"open",this.onopen.bind(this)),At(e,"packet",this.onpacket.bind(this)),At(e,"error",this.onerror.bind(this)),At(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...r){var o,n,s;if(ek.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:F.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let f=this.ids++,p=r.pop();this._registerAckCallback(f,p),i.id=f}let a=(n=(o=this.io.engine)===null||o===void 0?void 0:o.transport)===null||n===void 0?void 0:n.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var o;let n=(o=this.flags.timeout)!==null&&o!==void 0?o:this._opts.ackTimeout;if(n===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},n),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...r){return new Promise((o,n)=>{let s=(i,a)=>i?n(i):o(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());let o={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...s)=>(this._queue[0],n!==null?o.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(n)):(this._queue.shift(),r&&r(null,...s)),o.pending=!1,this._drainQueue())),this._queue.push(o),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:F.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(o=>String(o.id)===e)){let o=this.acks[e];delete this.acks[e],o.withError&&o.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case F.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case F.EVENT:case F.BINARY_EVENT:this.onevent(e);break;case F.ACK:case F.BINARY_ACK:this.onack(e);break;case F.DISCONNECT:this.ondisconnect();break;case F.CONNECT_ERROR:this.destroy();let o=new Error(e.data.message);o.data=e.data.data,this.emitReserved("connect_error",o);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let o of r)o.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let r=this,o=!1;return function(...n){o||(o=!0,r.packet({type:F.ACK,id:e,data:n}))}}onack(e){let r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:F.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let r=this._anyListeners;for(let o=0;o<r.length;o++)if(e===r[o])return r.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let r=this._anyOutgoingListeners;for(let o=0;o<r.length;o++)if(e===r[o])return r.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let o of r)o.apply(this,e.data)}}};function Qe(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Qe.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};Qe.prototype.reset=function(){this.attempts=0};Qe.prototype.setMin=function(t){this.ms=t};Qe.prototype.setMax=function(t){this.max=t};Qe.prototype.setJitter=function(t){this.jitter=t};var jr=class extends K{constructor(e,r){var o;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,ue(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((o=r.randomizationFactor)!==null&&o!==void 0?o:.5),this.backoff=new Qe({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let n=r.parser||nf;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Fr(this.uri,this.opts);let r=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;let n=At(r,"open",function(){o.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=At(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{n(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(n),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(At(e,"ping",this.onping.bind(this)),At(e,"data",this.ondata.bind(this)),At(e,"error",this.onerror.bind(this)),At(e,"close",this.onclose.bind(this)),At(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){fe(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let o=this.nsps[e];return o?this._autoConnect&&!o.active&&o.connect():(o=new Mr(this,e,r),this.nsps[e]=o),o}_destroy(e){let r=Object.keys(this.nsps);for(let o of r)if(this.nsps[o].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let o=0;o<r.length;o++)this.engine.write(r[o],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,r){var o;this.cleanup(),(o=this.engine)===null||o===void 0||o.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let o=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},r);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var Uo={};function Br(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=db(t,e.path||"/socket.io"),o=r.source,n=r.id,s=r.path,i=Uo[n]&&s in Uo[n].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new jr(o,e):(Uo[n]||(Uo[n]=new jr(o,e)),c=Uo[n]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Br,{Manager:jr,Socket:Mr,io:Br,connect:Br});O();var rk=new Set(["__proto__","constructor","prototype"]),Ab=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(rk.has(t[e]))return!1;return!0},ok=(t,e)=>{!t||!Ab(e)||e.reduce((r,o,n,s)=>{if(r&&o in r){if(n!==s.length-1)return r[o];delete r[o]}},t)},nk=(t,e,r,o=!1)=>{!t||!Ab(e)||e.reduce((n,s,i,a)=>{if(n){if(i!==a.length-1)return!n[s]&&o&&(n[s]={}),n[s];n[s]=r}},t)},Eb=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[o,n,s]of e)if(!(!Array.isArray(n)||!n.length))switch(r.add(n[0]),o){case"delete":ok(t,n);break;case"update":case"set":nk(t,n,s,!0);break;default:break}return r};O();var Tb=(t,e,r)=>(o={})=>{let{data:n}=o,{schema:s}=o;n&&(n=t.call("deepDestringifyFunctions",n,Array.isArray(n)?[]:{}),Object.entries(n).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Ce(a):nr(r[i],a):r[i]=a}),s&&(r.schema=s))},Ob=(t,e,r)=>(o={})=>{let{changes:n}=o;if(!n||!Array.isArray(n)||!n.length)return;n=t.call("deepDestringifyFunctions",n,Array.isArray(n)?[]:{});let s=Eb(r,n);if(s.has("state")&&e.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Ce(r.designSystem)};var sk={success:"green",error:"red",warning:"yellow"},Rb=(t,e,r)=>{if(t.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let o=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(o)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let o=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(o)},3e3)}},Pb={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:sk[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,o)=>{r.update({animation:"fadeInUp"})},onClick:(e,r,o)=>{delete o.notifications[r.key],r.update({animation:"fadeOutDown"}),o.onClose&&o.onClose(e,r,o)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var ik=!1,ak=()=>ik?"http://localhost:8080":"https://api.symbols.app",ck=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}},lk=async t=>{try{let e=t||ak(),r=await k.fetch(`${e}/service-token`,{method:"GET"}),o;try{let n=await r.clone().json();if(n&&typeof n.token=="string")return n.token.trim();o=await r.text()}catch{o=await r.text()}return(o||"").replace(/\s+/gu,"")||void 0}catch(e){console.error("[sync] Failed to fetch service-token",e)}},Fb=(t,e,r,o)=>{t.on("snapshot",Tb(e,r,o)),t.on("ops",Ob(e,r,o)),t.on("clients",n=>{o.editor?.verbose&&Rb(n,e,r)}),t.on("disconnect",n=>{o.editor?.verbose&&console.info("[sync] disconnected",n)})},fk=async(t,e,r,o)=>{let n=await lk(o);if(!n)return console.warn("[sync] no service token \u2014 collab disabled"),null;let s=r.key;if(!s)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let i=r.editor?.projectId||null,a=Br(o,{path:"/collab-socket",transports:["websocket"],auth:{token:n,projectId:i,projectKey:s,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),Fb(a,t,e,r),a},uk=(t,e,r)=>{let o=Br({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return o.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),Fb(o,t,e,r),o.on("reload",()=>{typeof k<"u"&&k.location&&k.location.reload()}),o},pk=async(t,e,r)=>{let{mode:o,baseUrl:n}=ck(r);return o?o==="collab"?fk(t,e,r,n):o==="runner"?uk(t,e,r):null:null},dk={onInit:pk};var Db=t=>typeof t>"u",Ib=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),$b=t=>t?.editor?.runtime==="runner",Lb=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},Nb={name:"sync",beforeCreate(t,e){let r=e&&e.editor;(r&&!Db(r.liveSync)?r.liveSync:Ib(e)||$b(e))&&(Ib(e)&&!$b(e)&&!e?.key||Lb(t,dk))}},Mb={name:"notifications",beforeCreate(t,e){if(!e)return;let r=Db(e.notifications)?null:e.notifications,o=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&o)&&Lb(t,Pb)}};O();function jb(t){return w(t)?t:T(t)?t.find(e=>w(e)):""}function af(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&jb(t.extends),o=t.parent&&t.parent.childExtends&&jb(t.parent.childExtends);return(e||r||o||"").split("_")[0].split(".")[0].split("+")[0]}function ai(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:o}=t.context,n=af(t);return o&&o.onInitInspect&&!o.onInitInspect(n,t,t.state)?ai(t.parent):n&&(e[n]||r[n])?t:ai(t.parent)}var hk=(t,e,r)=>{let o=r.window||window;o.onkeydown=n=>{n.altKey&&n.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},o.onkeyup=n=>{t.state.preventSelect&&(!n.altKey||!n.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},sf={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:hk,onMousemove:(t,e,r)=>{let o=t.target.ref,n=ai(o),s=e.Inspector.state;if(!n||!r.debugging||!n.__ref)return s.update({area:!1});let i=af(n),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:p,height:u}=n.node.getBoundingClientRect(),d={x:l,y:f,width:p,height:u};if(!s.area)return a(d);s.area.x!==d.x&&a(d)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,r)=>{if(!r.debugging)return;let o=t.target.ref,n=ai(o);if(!n)return;let s=af(n);if(!s)return;let i=o.context.editor;if(i&&i.onInspect)return i.onInspect(s,o,o.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return o.context.socket?.emit&&o.context.socket.emit("route",a),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(t,e)=>!(e.area&&e.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:t})=>{let{components:e}=t;if(S(e)){let{Content:r,...o}=e;for(let n in o)ko[n]||(o[n].__ref||(o[n].__ref={}),o[n].__ref.__componentKey||(o[n].__ref.__componentKey=n))}},onBeforeUpdate:(t,e,r)=>{let{area:o}=r,n=r.area&&r.parent.debugging,s;if(!n)s="display: none !important";else if(o){let{x:i,y:a,width:c,height:l}=o;s=`
|
|
66
|
+
)`};var cw={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"}}}},lw={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},fw={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"}}},Xh={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...cw,...lw,...fw,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var Zh={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var Jh={ratio:1.618,subSequence:!0};var Qh={SourceSans:[{url:""}]},tg={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var eg={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 rg={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 og={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Es={version:"0.0.1",color:Kh,gradient:Yh,theme:Xh,typography:Zh,spacing:Jh,font:Qh,fontFamily:tg,timing:og,icons:eg,media:rg,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var ko={};$(ko,{A:()=>ym,AssetPicture:()=>_g,Audio:()=>vg,Avatar:()=>Im,B:()=>Ug,Block:()=>ng,Box:()=>Ps,Br:()=>Gg,Button:()=>Sm,ButtonSet:()=>vm,COMPONENTS:()=>vr,Caption:()=>Fg,Checkbox:()=>om,CheckboxHgroup:()=>nm,Circle:()=>bg,CircleButton:()=>wm,Clickable:()=>gg,Data:()=>Hg,Dialog:()=>Am,DialogFooter:()=>Tm,DialogHeader:()=>Em,Dropdown:()=>Fm,DropdownList:()=>Dm,DropdownParent:()=>jm,DropdownParentFocus:()=>Lm,DropdownSiblingFocus:()=>Mm,FileIcon:()=>dm,Flex:()=>ig,Focusable:()=>mg,FocusableComponent:()=>yg,Footnote:()=>zg,Form:()=>pg,Grid:()=>cg,Gutter:()=>fg,H1:()=>Eg,H2:()=>Tg,H3:()=>Og,H4:()=>Rg,H5:()=>Pg,H6:()=>Ig,Headline:()=>Bg,Hgroup:()=>Jg,HgroupButton:()=>tm,HgroupRows:()=>Qg,Hoverable:()=>hg,Hr:()=>qg,I:()=>Wg,Icon:()=>um,IconButton:()=>Cm,IconText:()=>pm,Iframe:()=>dg,Img:()=>ug,Inline:()=>sg,InlineFlex:()=>ag,InlineGrid:()=>lg,Input:()=>em,Italic:()=>Mg,KangorooButton:()=>km,Li:()=>Kg,Link:()=>sl,Notification:()=>Nm,NumberInput:()=>rm,Ol:()=>Xg,P:()=>$g,Picture:()=>Sg,Radio:()=>sm,RadioHgroup:()=>im,Range:()=>$m,RouteLink:()=>bm,RouterLink:()=>il,SHAPES:()=>Os,Select:()=>xm,Shape:()=>Dc,Span:()=>Ag,SquareButton:()=>_m,Strong:()=>Dg,Subhead:()=>Vg,Svg:()=>wg,Text:()=>Cg,Textarea:()=>lm,TextareaWithButton:()=>fm,Theme:()=>xg,Title:()=>Ng,Toggle:()=>am,ToggleHgroup:()=>cm,Tooltip:()=>Om,TooltipHidden:()=>Rm,TooltipParent:()=>Pm,U:()=>jg,Ul:()=>Yg,Underline:()=>Lg,Video:()=>kg,depth:()=>Rs,getSystemGlobalTheme:()=>wo});var Rc={};$(Rc,{Block:()=>ng,Flex:()=>ig,Grid:()=>cg,Gutter:()=>fg,Inline:()=>sg,InlineFlex:()=>ag,InlineGrid:()=>lg});var ng={display:"block"},sg={display:"inline"},ig={display:"flex"},ag={display:"inline-flex"},cg={display:"grid"},lg={display:"inline-grid"},fg={boxSize:"C1"};var Pc={};$(Pc,{Img:()=>ug});O();var ug={tag:"img",attr:{title:t=>t.title||t.alt,src:t=>{let e=vt(t);return e&&e.src||t.src},srcset:t=>{let e=vt(t);return(e?es(e):"")||t.srcset}}};var Ic={};$(Ic,{Form:()=>pg});var pg={tag:"form"};var $c={};$($c,{Iframe:()=>dg});var dg={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Fc={};$(Fc,{Clickable:()=>gg,Focusable:()=>mg,FocusableComponent:()=>yg,Hoverable:()=>hg});var uw={appearance:"none",cursor:"pointer",fontFamily:"inherit"},hg={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}}},gg={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},mg={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:t=>t.tabIndex}},yg={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:uw};var Mc={};$(Mc,{Picture:()=>Sg});var Lc={};$(Lc,{Theme:()=>xg,getSystemGlobalTheme:()=>wo});var jc={};$(jc,{Circle:()=>bg,SHAPES:()=>Os,Shape:()=>Dc,default:()=>pw,depth:()=>Rs});O();var It=A(),Rs={4:{boxShadow:`rgba(0,0,0,.10) 0 2${It.unit.default} 4${It.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${It.unit.default} 6${It.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${It.unit.default} 10${It.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${It.unit.default} 16${It.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${It.unit.default} 26${It.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${It.unit.default} 42${It.unit.default}`}},kr=t=>X(t.shapeDirectionColor)||X(t.borderColor)||X(t.backgroundColor)||X(t.background),Ts=t=>{let e=Cs.transition(t.transition,t);return e&&e.transition},Os={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:kr(t),transition:Ts(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:kr(t),transition:Ts(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:kr(t),transition:Ts(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:Ts(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${kr(t)} 25%, transparent 25%), linear-gradient(315deg, ${kr(t)} 25%, transparent 25%)`},"&:after":{background:kr(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)"}}}},Dc={deps:{exec:G,getSpacingBasedOnRatio:ce,getMediaColor:ht},classlist:{shape:t=>t.deps.exec(Os[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Os[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}}},bg={round:"100%"},pw=Dc;O();var wo=({context:t,state:e})=>{let r=e&&e.root,o=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return o==="auto"?null:o},xg={deps:{depth:Rs},classlist:{depth:t=>!ct(t.depth)&&t.deps.depth[t.depth]}};var Sg={deps:{getSystemGlobalTheme:wo},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:wo},tag:"source",attr:{media:t=>{let{key:e,context:r,deps:o}=t,{media:n}=r.designSystem,s=o.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":n[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent?.src||e.src}};var Nc={};$(Nc,{AssetPicture:()=>_g});O();var _g={tag:"picture",children:t=>{let e=vt(t);if(e)return rs(e,t.alt)}};var Bc={};$(Bc,{Svg:()=>wg});var wg={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!="function")return t.call("exec",t.html,t);let{designSystem:r,utils:o}=e,n=r&&r.svg,s=t.spriteId||r&&r.useSvgSprite,i=t.call("exec",t.src,t);if(!s&&i)return i;let a=p=>`<use xlink:href="#${p}" />`,c=t.spriteId;if(c)return a(c);if(n&&n[i])return a(i);let l=Symbol.for(i),f=n[l];if(f&&n[f])return a(f);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let u=0;for(let p=0;p<i.length;p++)u=(u<<5)-u+i.charCodeAt(p)|0;return f=n[l]=`svg-${(u>>>0).toString(36)}`,o.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var Vc={};$(Vc,{Video:()=>kg});O();var kg={tag:"video",controls:!0,attr:{src:t=>{let e=vt(t);return e&&e.src||t.src}},children:t=>{let e=vt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var zc={};$(zc,{Audio:()=>vg});O();var vg={tag:"audio",controls:!0,attr:{src:t=>{let e=vt(t);return e&&e.src||t.src}},children:t=>{let e=vt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Uc={};$(Uc,{B:()=>Ug,Caption:()=>Fg,Data:()=>Hg,Footnote:()=>zg,H1:()=>Eg,H2:()=>Tg,H3:()=>Og,H4:()=>Rg,H5:()=>Pg,H6:()=>Ig,Headline:()=>Bg,I:()=>Wg,Italic:()=>Mg,P:()=>$g,Span:()=>Ag,Strong:()=>Dg,Subhead:()=>Vg,Text:()=>Cg,Title:()=>Ng,U:()=>jg,Underline:()=>Lg});var Cg={},Ag={tag:"span"},Eg={tag:"h1"},Tg={tag:"h2"},Og={tag:"h3"},Rg={tag:"h4"},Pg={tag:"h5"},Ig={tag:"h6"},$g={tag:"p"},Fg={tag:"caption"},Dg={tag:"strong",fontWeight:"700"},jg={tag:"u"},Lg={tag:"u"},Mg={tag:"i"},Ng={},Bg={tag:"h6",fontSize:"B",fontWeight:500},Vg={tag:"span",fontSize:"Z1"},zg={tag:"span",fontSize:"Z"},Ug={tag:"b"},Wg={tag:"i"},Hg={tag:"data"};var Wc={};$(Wc,{Box:()=>Ps,Br:()=>Gg,Hr:()=>qg,Li:()=>Kg,Ol:()=>Xg,Ul:()=>Yg});var dw=t=>{if(!t.context)return;let{props:e,__ref:r}=t,o=Pt(e,t,{unpack:!1});r.__class=o},Ps={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:dw},qg={tag:"hr",margin:"C1 0"},Gg={tag:"br"},Kg={tag:"li"},Yg={tag:"ul",childExtends:{extends:"Li"}},Xg={tag:"ol",childExtends:{extends:"Li"}};var Hc={};$(Hc,{Hgroup:()=>Jg,HgroupButton:()=>tm,HgroupRows:()=>Qg});var Zg=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},Jg={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:Zg,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:Zg,margin:"0",color:"paragraph"}},Qg={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},tm={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var qc={};$(qc,{Input:()=>em});var em={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 Gc={};$(Gc,{NumberInput:()=>rm});var rm={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 Kc={};$(Kc,{Checkbox:()=>om,CheckboxHgroup:()=>nm});var om={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"}}},nm={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Yc={};$(Yc,{Radio:()=>sm,RadioHgroup:()=>im});var sm={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}},im={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Xc={};$(Xc,{Toggle:()=>am,ToggleHgroup:()=>cm});var am={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}},cm={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Zc={};$(Zc,{Textarea:()=>lm,TextareaWithButton:()=>fm});var lm={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"}},fm={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 Jc={};$(Jc,{FileIcon:()=>dm,Icon:()=>um,IconText:()=>pm});var um={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,r)=>{let{parent:o}=t,{icons:n,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=_=>{let v=_[".isActive"];if(v)return _.call("exec",v.name||v.icon)},l=(_,v,E)=>{let{semanticIcons:P}=E&&E.designSystem,{toCamelCase:B}=E&&E.utils,R=f(_,v),Q=B(R).split(/([a-z])([A-Z])/g),V=Q[1]?Q[0]:R.split(".")[0].split(" ")[0],N=P&&P[V];if(N){let Ft=R.includes(".")?"sfsymbols."+R.split(".").slice(1).join("."):"sfsymbols";return R=N[Ft]||N[R.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${R}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(_,v)=>{let{key:E}=_,P=_.call("exec",_.name||_.icon||E,_);return _.call("isString",P)&&P.includes("{{")&&(P=_.call("replaceLiteralsWithObjectFields",P)),_.call("isString",P)?P:E},u=f(t,e);if(u.includes(" ")){let _=u.split(" ");u=_[0]+_.slice(1).map(v=>v.charAt(0).toUpperCase()+v.slice(1)).join("")}let p=a(u),d=p.split(/([a-z])([A-Z])/g),h=l(t,e,r);if(h){Object.assign(t,h);return}let g;t.isActive&&(g=c(t));let m=o[".isActive"];o&&o.isActive&&m&&m.icon&&(g=t.call("exec",m.icon||m.Icon.name||m.Icon.icon,t)),t.call("isString",g)&&g.includes("{{")&&(g=t.call("replaceLiteralsWithObjectFields",g));let y;n[g]&&(y=g),n[p]?y=p:n[d[0]+d[1]]?y=d[0]+d[1]:n[d[0]]?y=d[0]:i&&t.warn("Can't find icon:",u,y);let b=n[y],x=o&&o.src||t.src;Object.assign(t,{spriteId:s&&y,src:b||x||n.noIcon})},attr:{viewBox:"0 0 24 24"}},pm={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},dm={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var al={};$(al,{A:()=>ym,Link:()=>sl,RouteLink:()=>bm,RouterLink:()=>il});var nl={};$(nl,{default:()=>bw,getActiveRoute:()=>ol,lastLevel:()=>$s,lastPathname:()=>Is,matchRoute:()=>tl,parseQuery:()=>el,parseRoutePattern:()=>Qc,router:()=>ee,runGuards:()=>rl});O();var gm=/^:(.+)/,mm=/^\*$/,hm=new Map,Qc=t=>{let e=hm.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),o=[],n=!1;for(let i=0;i<r.length;i++){let a=r[i].match(gm);a?o.push({index:i,name:a[1]}):mm.test(r[i])&&(n=!0)}let s={segments:r,params:o,hasWildcard:n,pattern:t};return hm.set(t,s),s},tl=(t,e,r=0)=>{let n=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(n[0]||""),i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let f=Qc(l),u=hw(n,f);u>a&&(a=u,i=l,c=gw(n,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},hw=(t,e)=>{let{segments:r,hasWildcard:o}=e;if(!o&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let n=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])n+=3;else if(gm.test(r[i]))n+=1;else if(mm.test(r[i]))n+=.5;else return-1;return n},gw=(t,e)=>{let r={};for(let{index:o,name:n}of e.params)t[o]&&(r[n]=decodeURIComponent(t[o]));return r},el=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((o,n)=>{e[n]!==void 0?(Array.isArray(e[n])||(e[n]=[e[n]]),e[n].push(o)):e[n]=o}),e},rl=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let o=await r(e);if(o===!1)return!1;if(typeof o=="string")return o}return!0},ol=(t=0,e)=>{e||(e=typeof k<"u"?k.location.pathname:"/");let o=e.split("/")[t+1];if(o)return`/${o}`},Is,$s=0,mw=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,yw={level:$s,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:q&&q.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},ee=async(t,e,r={},o={})=>{let n=e||void 0,s=n?.context?.window||k,i=n?.context?.document||q,a={...yw,...n.context.routerOptions,...o};$s=a.lastLevel;let c=n.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let l=c.contentElementKey||a.contentElementKey||"content",f=s.location.origin!=="null"?s.location.origin:"http://localhost";t=mw(t);let u=new s.URL(f+t),{pathname:p,search:d,hash:h}=u,g=el(d),m=n.node,y=h&&h!==s.location.hash.slice(1),b=p!==Is;Is=p;let x,_,v,E;if(a.useParamsMatching){let B=tl(p,n.routes,a.level);x=B.key,_=B.routePath,v=B.content,E=B.params}else x=ol(a.level,p),_=x,v=n.routes[x||"/"]||n.routes["/*"],E={};let P=a.scrollToNode?m:a.scrollNode;if(n.state?.root?.debugging){n.state.root.debugging=!1;return}if(!v){a.onNotFound?a.onNotFound({pathname:p,route:x,element:n}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(n.routes||{}));return}if(a.guards&&a.guards.length){let B={pathname:p,route:x,params:E,query:g,hash:h,element:n,state:r},R=await rl(a.guards,B);if(R===!1)return;if(typeof R=="string")return ee(R,e,r,{...o,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,p+(d||"")+(h||""))}catch{}if(b||!y){let B={route:x,routePath:_,hash:h,debugging:!1};Object.keys(E).length&&(B.params=E),Object.keys(g).length&&(B.query=g),a.updateState&&n.state.update(B,{preventContentUpdate:!0}),l&&a.removeOldElement&&n[l].remove();let R=n.__ref?.origin?.content,D={};if(R)for(let V in R){let N=R[V];V==="__ref"||V==="props"||V==="node"||V==="parent"||V==="key"||(typeof N=="string"||typeof N=="number"||typeof N=="boolean"||typeof N=="object"&&N!==null&&!N.node&&!N.__ref)&&(D[V]=N)}let Q={...D,...typeof v=="object"?v:{extends:v}};a.useFragment&&(Q.tag="fragment");try{n.set(Q,{contentElementKey:l})}catch(V){console.error("[smbls/router] failed to render route content",p,V)}}if(a.scrollToTop&&P?.scrollTo&&P.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&v[l]?.node?.scrollTo&&v[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let B=i.getElementById(h);if(B&&P?.scrollTo){let R=B.getBoundingClientRect().top+m.scrollTop-(a.scrollToOffset||0);P.scrollTo({...a.scrollToOptions||{},top:R,left:0})}}Me("routeChanged",n,a)},bw=ee;var xw=(t,e,r)=>{let{context:o}=e,{href:n,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",n,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:u}=o,p=e.__ref.root,d=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!d){t.preventDefault();try{let h=p;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=p;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,p.routes&&(h.routes=p.routes))}(f.router||l.router||c.router||ee)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(h){console.warn(h)}}},sl={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Ke(t,t.href)||Ke(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:xw},ym={extends:"Link"},il={onClick:(t,e,r)=>{let{context:o}=e,{href:n,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",n,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:u}=o,p=e.__ref.root,d=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!d){t.preventDefault();try{let h=p;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=p;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,p.routes&&(h.routes=p.routes))}(f.router||l.router||c.router||ee)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(h){console.warn(h)}}}},bm={extends:[sl,il]};var cl={};$(cl,{Select:()=>xm});var xm={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 ll={};$(ll,{Button:()=>Sm,ButtonSet:()=>vm,CircleButton:()=>wm,IconButton:()=>Cm,KangorooButton:()=>km,SquareButton:()=>_m});var Sm={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)},_m={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"},wm={extends:"SquareButton",round:"C"},km={extends:"Button",childExtends:"IconText"},vm={tag:"nav",display:"flex",childExtends:"SquareButton"},Cm={extends:["SquareButton","ClickableItem"],round:"Z"};var fl={};$(fl,{Dialog:()=>Am,DialogFooter:()=>Tm,DialogHeader:()=>Em});var Am={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Em={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Tm={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 ul={};$(ul,{Tooltip:()=>Om,TooltipHidden:()=>Rm,TooltipParent:()=>Pm});O();var Om={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>St(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},Rm={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)}},Pm={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:r}=t,o=e||r;if(!o)return;let n=o&&o[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var pl={};$(pl,{Avatar:()=>Im});var Im={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 dl={};$(dl,{Range:()=>$m});var $m={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:os("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:os("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(t,e,r)=>{let o=t.call("exec",t[e],t);return(t.call("isFunction",o)?o(t,t.state):o!==void 0?o:r!==void 0?r:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var hl={};$(hl,{Dropdown:()=>Fm,DropdownList:()=>Dm,DropdownParent:()=>jm,DropdownParentFocus:()=>Lm,DropdownSiblingFocus:()=>Mm});var Fm={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"},Dm={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"}}},jm={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Lm={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Mm={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var gl={};$(gl,{Notification:()=>Nm});var Nm={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 vr=Object.assign({},Rc,Pc,Ic,$c,Fc,Mc,Nc,Bc,jc,Vc,zc,Lc,Uc,Wc,Hc,qc,Gc,Kc,Yc,Xc,Zc,Jc,al,cl,ll,fl,ul,pl,dl,hl,gl);function Fs(t){if(t==null)return 0;if(typeof t!="object")return Bm(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let o=0;o<t.length;o++)e=(e^Fs(t[o]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let o=0;o<r.length;o++)e=(e^Bm(r[o]))*16777619,e=(e^Fs(t[r[o]]))*16777619;return e>>>0}function Bm(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function Ds(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!="object")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!Ds(t[n],e[n]))return!1;return!0}let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let n=0;n<r.length;n++){let s=r[n];if(!Object.prototype.hasOwnProperty.call(e,s)||!Ds(t[s],e[s]))return!1}return!0}function ml(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!="object"||Array.isArray(e))return e;if(typeof t!="object"||Array.isArray(t))return{...e};let r=!1,o={};for(let n in t)if(n in e){let s=ml(t[n],e[n]);o[n]=s,s!==t[n]&&(r=!0)}else o[n]=t[n];for(let n in e)n in t||(o[n]=e[n],r=!0);return r?o:t}function yl(t,e,r){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(r||(r=new WeakSet),r.has(e))return t;r.add(e);for(let o in e){let n=e[o];n&&typeof n=="object"&&!Array.isArray(n)&&t[o]&&typeof t[o]=="object"&&!Array.isArray(t[o])?yl(t[o],n,r):t[o]=n}return t}function ke(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 Cr(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function vo(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():ke(e)}function Vm(t){return t.split(`
|
|
67
|
+
`).map(ke).join(`
|
|
68
|
+
`)}var zm={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",paddingBlock:"pbl",paddingInline:"pin",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginBlock:"mbl",marginInline:"min",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk",scrollBehavior:"sb",inset:"ins"};function Um(t,e){let r=zm[t]||ke(t),o=vo(e),n=`_${r}-${o}`,s=Cr(t),i=`.${n}{${s}: ${e}}`;return`${n}
|
|
69
|
+
${i}`}var Wm=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function Hm(t){let e=t.split("\0"),r=[],o=[];for(let n=0;n+1<e.length;n+=2){let s=e[n],i=e[n+1];if(!i||Wm(i))continue;let a=zm[s]||ke(s),c=vo(i),l=`_${a}-${c}`,f=Cr(s);r.push(l),o.push(`.${l}{${f}:${i}}`)}return r.join(" ")+"\0"+o.join(`
|
|
70
|
+
`)}function qm(t,e){let r=t+e,o=`_c${ke(r)}`,n=e.split("\0"),s="";for(let a=0;a+1<n.length;a+=2){let c=n[a],l=n[a+1];l&&(Wm(l)||(s+=`${Cr(c)}:${l};`))}let i;if(t.startsWith("@media"))i=`${t}{.${o}{${s}}}`;else if(t.startsWith(":")||t.startsWith("&")){let a=t.startsWith("&")?t.slice(1):t;i=`.${o}${a}{${s}}`}else t.includes("&")?i=`${t.replace("&",`.${o}`)}{${s}}`:i=`.${o} ${t}{${s}}`;return`${o}
|
|
71
|
+
${i}`}var bl=null;function xl(t){bl=t}var Ht={structuralHash:Fs,deepEqual:Ds,mergeStructural:ml,overwriteDeep:yl,shortHash:ke,toKebab:Cr,sanitizeValue:vo,batchShortHash:Vm,atomicCssClass:Um,batchAtomicCss:Hm,compoundCssClass:qm},Gm=!1,js=null;function vw(t){return js||(js=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(Ht.structuralHash=e.structuralHash),e.deepEqual&&(Ht.deepEqual=e.deepEqual),e.mergeStructural&&(Ht.mergeStructural=e.mergeStructural),e.overwriteDeep&&(Ht.overwriteDeep=e.overwriteDeep),e.shortHash&&(Ht.shortHash=e.shortHash),e.toKebab&&(Ht.toKebab=e.toKebab),e.sanitizeValue&&(Ht.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(Ht.batchShortHash=e.batchShortHash),e.atomicCssClass&&(Ht.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(Ht.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(Ht.compoundCssClass=e.compoundCssClass),Gm=!0,bl&&e.batchAtomicCss&&bl({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),js)}function Cw(){return Gm}O();var Co={};$(Co,{CDN_PROVIDERS:()=>Xt,DOMQL_EVENTS:()=>Nf,DOMQ_PROPERTIES:()=>Ie,ENV:()=>ou,HTML_TAGS:()=>Jr,METHODS:()=>Gr,METHODS_EXL:()=>en,NODE_ENV:()=>Kt,OPTIONS:()=>Tn,PACKAGE_MANAGER_TO_CDN:()=>Ve,PARSED_DOMQ_PROPERTIES:()=>tn,PROPS_METHODS:()=>Fe,STATE_METHODS:()=>$e,STATE_PROPERTIES:()=>Mf,SVG_TAGS:()=>vu,TYPES:()=>Yo,UNIVERSAL_RESERVED_KEYS:()=>Sa,addCaching:()=>Qi,addContext:()=>Ji,addExtend:()=>Pu,addExtends:()=>kt,addItemAfterEveryElement:()=>Cf,addProtoToArray:()=>Jo,addRef:()=>Yi,applyCSS:()=>Xm,applyDependentState:()=>Qu,applyEvent:()=>sa,applyEventUpdate:()=>ia,applyExtends:()=>$u,applyProps:()=>wn,arrayContainsOtherArray:()=>bf,arraysEqual:()=>Ef,arrayzeValue:()=>ar,buildImgSrcset:()=>es,buildSourcesAndImg:()=>rs,cache:()=>ip,call:()=>Lp,captureSnapshot:()=>Vp,checkForStateTypes:()=>Yu,checkIfInherits:()=>na,checkIfStringIsInArray:()=>Rf,clone:()=>Uf,cloneAndMergeArrayExtend:()=>dn,cloneFunction:()=>uu,concatAddExtends:()=>Eu,copyJavaScriptToClipboard:()=>_d,copyStringToClipboard:()=>Sd,createBasedOnType:()=>Ki,createElement:()=>Gu,createElementExtends:()=>$i,createExtends:()=>gn,createExtendsFromKeys:()=>Qr,createExtendsStack:()=>Li,createIfConditionFlag:()=>pu,createInheritedState:()=>Xu,createKey:()=>ln,createNestedObject:()=>Xf,createNestedObjectByKeyPath:()=>Ju,createObjectWithoutPrototype:()=>vi,createParent:()=>Xi,createPath:()=>Zi,createProps:()=>kn,createPropsStack:()=>Hi,createRoot:()=>qu,createScope:()=>rp,createSnapshotId:()=>cn,customDecodeURIComponent:()=>Lf,customEncodeURIComponent:()=>jf,cutArrayAfterValue:()=>kf,cutArrayBeforeValue:()=>wf,debounce:()=>un,debounceOnContext:()=>cu,decodeNewlines:()=>Df,deepClone:()=>Y,deepContains:()=>Kf,deepDefaults:()=>Zn,deepDestringifyFunctions:()=>Mt,deepExtend:()=>Ii,deepMerge:()=>W,deepMergeExtends:()=>se,deepStringifyFunctions:()=>rn,defineSetter:()=>Dp,destringifyGlobalScope:()=>nn,detectHeightOnInit:()=>Zp,detectInfiniteLoop:()=>tu,document:()=>q,encodeNewlines:()=>Ff,error:()=>ir,excludeKeysFromObject:()=>ru,exec:()=>G,extendCachedRegistry:()=>Tu,extendStackRegistry:()=>mn,extractArrayExtend:()=>bn,fetchLibraryData:()=>wa,fibonacciNumberByIndex:()=>Qp,filterArrays:()=>Tf,filterArraysFast:()=>Of,finalizeExtends:()=>Mi,findClosestNumber:()=>_a,findClosestNumberInFactory:()=>hd,findInheritedState:()=>oa,findKeyPosition:()=>If,flattenExtend:()=>to,formatDate:()=>Yp,generateHash:()=>Oi,generateKey:()=>an,generateMetaTags:()=>ud,get:()=>Pp,getActiveRoute:()=>ol,getCDNUrl:()=>Zt,getCapitalCaseKeys:()=>Fu,getCdnProviderFromConfig:()=>fo,getChildStateInKey:()=>ra,getChildren:()=>jn,getContext:()=>Un,getCookie:()=>xu,getDB:()=>Kn,getEmotionStylesheet:()=>Ad,getExtendsInElement:()=>Iu,getExtendsStack:()=>hn,getExtendsStackRegistry:()=>Pi,getFrequencyInArray:()=>xf,getHashedExtend:()=>yn,getImportMapScript:()=>Gp,getInObjectByPath:()=>Qf,getLocalStorage:()=>_u,getNev:()=>au,getPageMetadata:()=>pd,getParentStateInKey:()=>ea,getPath:()=>Ln,getQuery:()=>Yn,getRef:()=>$p,getRoot:()=>Bn,getRootContext:()=>zn,getRootData:()=>Vn,getRootState:()=>Nn,getRootStateInKey:()=>ta,getSpreadChildren:()=>Du,global:()=>gf,hasFunction:()=>Kr,hasHandlerPlugin:()=>Yr,hasOwnProperty:()=>Hf,inheritChildExtends:()=>Di,inheritChildPropsExtends:()=>Fi,inheritParentProps:()=>vn,inheritRecursiveChildExtends:()=>ji,init:()=>ve,initProps:()=>Uu,is:()=>_t,isArray:()=>T,isBoolean:()=>xi,isContextComponent:()=>ju,isCyclic:()=>eu,isDOMNode:()=>xt,isDate:()=>_i,isDefined:()=>St,isDevelopment:()=>Le,isEmpty:()=>wi,isEmptyObject:()=>qf,isEqualDeep:()=>ki,isFunction:()=>C,isHtmlElement:()=>Ko,isLocal:()=>iu,isMethod:()=>Np,isMobile:()=>yu,isNode:()=>pe,isNot:()=>yf,isNotProduction:()=>nr,isNull:()=>Si,isNumber:()=>oe,isObject:()=>S,isObjectLike:()=>j,isPhoto:()=>ed,isProduction:()=>je,isStaging:()=>su,isState:()=>Zu,isString:()=>w,isStringFunction:()=>fu,isTest:()=>Ci,isTesting:()=>nu,isUndefined:()=>ct,isUniversallyReservedKey:()=>Up,isValidHtmlTag:()=>Cu,joinArrays:()=>Ur,jointStacks:()=>Ru,keys:()=>ba,lastLevel:()=>$s,lastPathname:()=>Is,loadCssFile:()=>id,loadJavascript:()=>ad,loadJavascriptFile:()=>od,loadJavascriptFileEmbedSync:()=>sd,loadJavascriptFileSync:()=>nd,loadRemoteCSS:()=>cd,loadRemoteScript:()=>uo,log:()=>jp,logGroupIf:()=>gu,logIf:()=>hu,lookdown:()=>Tp,lookdownAll:()=>Op,lookup:()=>Ep,lowercaseFirstLetter:()=>er,makeObjectWithoutPrototype:()=>Gf,map:()=>Vf,mapStringsWithContextComponents:()=>xn,matchRoute:()=>tl,matchesComponentNaming:()=>ie,memoize:()=>lu,merge:()=>Z,mergeSharedLibraries:()=>Jn,nextElement:()=>Hn,normalizeLibraryKey:()=>po,objectToString:()=>on,objectizeStringProperty:()=>_n,overwrite:()=>sn,overwriteDeep:()=>wt,overwriteShallow:()=>or,overwriteState:()=>tp,parse:()=>xa,parseDeep:()=>Fn,parseQuery:()=>el,parseRoutePattern:()=>Qc,pickupElementFromProps:()=>zi,pickupPropsFromElement:()=>Vi,previousElement:()=>qn,propExists:()=>zu,propertizeElement:()=>Ui,propertizeUpdate:()=>Vu,reinit:()=>Ym,remove:()=>Rp,removeChars:()=>wd,removeCookie:()=>Su,removeDuplicateProps:()=>An,removeDuplicatesInArray:()=>Wr,removeFromArray:()=>Sf,removeFromObject:()=>Yf,removeNestedKeyByPath:()=>Zf,removeValueFromArray:()=>Zo,removeValueFromArrayAll:()=>vf,reorderArrayByValues:()=>Af,replaceLiteralsWithObjectFields:()=>tr,replaceOctalEscapeSequences:()=>$f,resolveAsset:()=>vt,resolveHandler:()=>Xr,resolveSharedLibraries:()=>bd,returnValueAsText:()=>Gi,router:()=>ee,runGuards:()=>rl,runPluginHook:()=>Zr,scratchSystem:()=>ds,scratchUtils:()=>pr,self:()=>mf,set:()=>xo,setActiveRootState:()=>Mn,setCookie:()=>bu,setHashedExtend:()=>Ri,setInObjectByPath:()=>Jf,setLocalStorage:()=>wu,setNodeStyles:()=>ya,setProps:()=>Ip,setPropsPrototype:()=>Cn,spotByPath:()=>Dn,srcsetFor:()=>ho,stringIncludesAny:()=>Qo,stringToObject:()=>Wf,swapItemsInArray:()=>_f,syncProps:()=>En,toCamelCase:()=>Qn,toDashCase:()=>ts,toDescriptionCase:()=>vd,toTitleCase:()=>kd,toggleFullscreen:()=>Hp,triggerEventOn:()=>Me,triggerEventOnUpdate:()=>sp,trimStringFromSymbols:()=>Pf,unstackArrayOfObjects:()=>Xo,update:()=>Wi,updateProps:()=>Wu,variables:()=>Gn,verbose:()=>lo,warn:()=>Wn,window:()=>k});O();O();var Aw=A(),Km=(t=Aw,e)=>{let r=S(e.localFile)?e.localFile:{},o=Y(r.designSystem||{});return W(t,o)},Ew={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},ve=(t,e=Ew)=>{let r=Km(t||{},e),o=e.scopeSelector||":root",n=o===":root"?":root:not([data-theme])":`${o}:not([data-theme])`,s=e.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=xo({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:s,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...r},{newConfig:e.newConfig,config:e.config});i&&(i.scopeSelector=o);let a=va(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,u=i.useSvgSprite,p=t.svg,d=i.useIconSprite,h=t.icons;if(f&&ot(a),l&&(ot({[o]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[n]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];ot(m)}c&&ot(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];ot(m)}return(p||u)&&tc(i.svg,{document:e.document}),(h||d)&&rc(i.icons,{document:e.document}),i},Ls={},Ym=(t,e=Ls)=>{let r=Km(t||{},e),o=e.scopeSelector||":root",n=o===":root"?":root:not([data-theme])":`${o}:not([data-theme])`,s=xo({verbose:!1,...r});if(!e.preventInject){if(ot({[o]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[n]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];ot(i)}ot(s.reset)}return s},Xm=(t,e=Ls)=>{ot(t)},PP=(t,e=Ls)=>{let r=e.scopeSelector||":root",o=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(ot({[r]:t.CSS_VARS}),t.CSS_MEDIA_VARS){let n={};for(let s in t.CSS_MEDIA_VARS)s.startsWith("@media")?n[s]={[o]:t.CSS_MEDIA_VARS[s]}:n[s]=t.CSS_MEDIA_VARS[s];ot(n)}};var IP=(t,e=Ls)=>{};O();var Zm=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,Sl={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Jm=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),o=t;for(let n of r){if(!o||!o[n])return null;o=o[n]}return o},Qm=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Sl:e.router=Z(e.router||{},Sl);let r=e.router,o=async(s,i)=>{let a=s.context?.window||k;if(!a.location)return;let{pathname:c,search:l,hash:f}=a.location;c=Zm(c);let u=c+l+f,p=s;if(r.customRouterElement){let d=Jm(s,r.customRouterElement);d&&(p=d,s.routes&&(p.routes=s.routes))}p.routes&&await ee(u,p,{},{initialRender:!0,pushState:!1})},n=!ct(t.onRenderRouter);return r&&r.initRouter&&!n&&(t.onRenderRouter=o),Tw(e,r),r},_l=(t,e)=>{if(e.router===!1)return;let r=e.router||Sl;if(!r.popState)return;let o=e.utils&&e.utils.router?e.utils.router:ee,n=e.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=n.location;a=Zm(a);let f=a+c+l,u=t;if(r.customRouterElement){let p=Jm(t,r.customRouterElement);p&&(u=p,t.routes&&(u.routes=t.routes))}await u.call("router",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};n.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>n.removeEventListener("popstate",s))},Tw=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return W(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};O();var wl=k&&k.location?k.location.host.includes("dev."):Le(),ty=wl?"http://localhost:8080/get":"https://api.symbols.app/get",Ow={endpoint:ty},ey=async(t,e=Ow)=>{let r=e.endpoint||ty,o=e.serviceRoute?T(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",n;try{return n=await globalThis.fetch(r+"/?"+o,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await n.json()}catch(s){if(C(e.onError))return e.onError(s);console.error(s)}},Rw=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let o=await ey(t,r),n=wl||e.isDevelopment?Mt(o):Mt(o.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{wt(e[s],n[s.toLowerCase()])}):wt(e[r.serviceRoute],n):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{wt(e[s],n[s.toLowerCase()])})}return e},Pw=async(t,e,r)=>{let{editor:o}=e;if(o&&o.remote){let n=await ey(t,o),s=wl||e.isDevelopment?Mt(n):Mt(n.releases[0]);r(s)}},ry=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await Rw(t,e)}catch(r){console.error(r)}},oy=(t,e,r,o)=>{if(e&&r.editor)try{r.editor.async&&Pw(e,r,o||(n=>{let s=n.designSystem;S(s)&&r.utils.init(s),S(n.state)&&t.state.set(n.state)}))}catch(n){console.error(n)}};var Ms=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let r of e.__teardowns)try{r()}catch(o){console.error("[smbls] destroy teardown error:",o)}e.__teardowns.length=0}try{Sr(t)}catch(r){console.error("[smbls] dispose error:",r)}if(e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.fetch&&e.fetch.__resolving&&delete e.fetch.__resolving,e.db&&e.db.__resolved&&delete e.db.__resolved,e.db&&e.db.__resolving&&delete e.db.__resolving,e.analyze?.destroy)try{e.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return t.__destroyed=!0,!0};O();var Iw={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"}},$w=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}"]`},Ns=(t,e,r)=>{if(!t)return{};let o=C(t)?G(t,e,r):{...t};if(!S(o))return{};for(let n in o){let s=o[n];C(s)&&(s=G(s,e,r)),w(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),o[n]=s}return o};var Fw=(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},Bs=(t,e)=>{if(!(!S(t)||!e))for(let r in t){let o=t[r];if(o==null)continue;let n=Iw[r];if(!n)continue;let s=$w(n),i=e.querySelector(s)||Fw(n,e);i&&(r==="title"?i.textContent=o:n.valueAttr?i.setAttribute(n.valueAttr,o):i.setAttribute("content",o))}};var ny={name:"helmet",create(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let o=Ns(e,t,t.state);Bs(o,r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let o=Ns(e,t,t.state);Bs(o,r)}};Be();var sy=(t,e,r,o)=>{t&&ao(t,e,r,o)},iy=(t,e,r)=>{if(!t)return;let o=e.context?.document||typeof document<"u"&&document;if(!o)return;let n=Ns(t,e,r);Bs(n,o)},ay=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},o=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(o):await o(),r},Ao={routes:t=>t,metadata:iy,fetch:sy,$router:ay},Dw=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=iy),t.fetch!==!1&&(e.fetch=sy),t.router!==!1&&(e.$router=ay),e};var cy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},kl={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Vs={...cy,router:kl},jw={state:{},pages:{},components:{},router:kl,define:Ao},Ce=jw;O();O();var ly=(t,e)=>j(t.extends)?t.extends:[];O();var dy=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;return t.document=t.document||r,t.window=t.window||e,t.window},fy=(t="smbls")=>{let e={};for(let r in vr)Object.prototype.hasOwnProperty.call(vr,r)&&(ie(r)?e[`smbls.${r}`]=vr[r]:e[r]=vr[r]);return e},hy=t=>t.components?{...fy(),...t.components}:fy(),gy=t=>({...Co,...nl,...pr,...t.utils,...t.snippets,...t.functions}),my=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),uy={},yy=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:o=!1,cdnProvider:n,packageManager:s,symbolsConfig:i})=>{if(n||(n=Ve[s]||fo(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=Le()&&o?`?${Math.random()}`:"",u=Zt(c,l,n)+f;try{if(uy[c])continue;uy[c]=!0,await Promise.race([uo(u,{document:r,type:"module"}),new Promise((p,d)=>setTimeout(()=>d(new Error(`Timeout loading ${c}`)),1e4))])}catch(p){if(console.error(`Failed to load ${c} from ${n}:`,p),n!=="symbols")try{let d=Zt(c,l,"symbols")+f;await Promise.race([uo(d,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${c}`)),1e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},by=async(t,e)=>{let r=e.window||window,o=e.cdnProvider||fo(e.symbolsConfig)||"esmsh",n=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f=="function"?f():f},s=async i=>async(a,c=o)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]){let p=Le()?`?${Math.random()}`:"";if(l&&l[a]){let d=l[a],h=Zt(a,d,c)+p;try{await i.utils.loadRemoteScript(h,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let m=Zt(a,d,"symbols")+p;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let d=Zt(a,"latest",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let g=Zt(a,"latest","symbols")+p;await i.utils.loadRemoteScript(g,{window:u,document:f})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};r.packages?r.packages=Z(r.packages,t):r.packages=t,r.require||(e.utils.require=await n(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},Lw=/\s+/g,xy=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,Mw=(t,e)=>{let r="";for(let o in t){let n=t[o];typeof n=="boolean"&&n?r+=` ${o}`:typeof n=="string"?r+=` ${n}`:typeof n=="function"&&(r+=` ${xy(n,e)}`)}return r},Nw=(t,e,r)=>{if(!t)return;let{key:o}=e;t===!0&&(t=e.classlist={key:o}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=Mw(t,e));let n=t.replace(Lw," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n},Bw=()=>(t,e,r)=>{let o=xy(t,e);if(t){let{__ref:n}=e;n.__class.style=o}Sy()(e.classlist,e,e.state,!0)},Sy=()=>(t,e,r,o)=>{if(e.style&&!o)return;let{__ref:n}=e,{__class:s,__classNames:i}=n;if(!(t===null||typeof t!="object"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c=="string"||typeof c=="number"?l=c:typeof c=="boolean"?l=e.key:l=Ge(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&Nw(i,e,e.node)}},Vw=()=>({style:Bw(),classlist:Sy()}),zw=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],py=!1,_y=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,o=e.initOptions||{},n=e.registry||Vw(),s=e.designSystem?W(Y(e.designSystem),Es):Y(Es),i={};for(let d of zw)e[d]!==void 0&&(i[d]=e[d]);let a,c=py&&!e.skipDesignSystemInit,l=c?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=l;let f=l===":root"?":root:not([data-theme])":`${l}:not([data-theme])`;if(e.skipDesignSystemInit){if(a=A(t)||A(),a&&(a.document=r),a?.CSS_VARS){ft(a);try{if(ot({[l]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let d={};for(let h in a.CSS_MEDIA_VARS)h.startsWith("@media")?d[h]={[f]:a.CSS_MEDIA_VARS[h]}:d[h]=a.CSS_MEDIA_VARS[h];ot(d)}}finally{lt()}}}else if(c){let d=Ud(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=ve(d,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...Vs,...i,...o})}finally{lt()}}else{let d=A();d&&(d.document=r),a=ve(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...Vs,...i,...o}),a&&a!==d&&(a.document=r),py=!0}let u=a?.CONFIG||a,p=u?.font;if(p){ft(u);try{for(let d in p){let h=p[d];if(!h?.fontFace)continue;let g=Array.isArray(h.fontFace)?h.fontFace:[h.fontFace];for(let m of g)typeof m=="string"&&m.includes("font-family")&&ot(`@font-face { ${m} }`)}}finally{lt()}}return[a,n]},wy=(t,e)=>{let r={};e.state&&W(r,e.state),t&&t.state&&W(r,t.state);let o=e.polyglot;if(o?.translations){let n=null;try{typeof localStorage<"u"&&(n=localStorage.getItem(o.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=n||r.lang||o.defaultLang||"en";n&&n!==r.lang&&(r.lang=n);let i=o.translations[s];if(i&&typeof i=="object")for(let c in i)r[c]=i[c];let a=new Set(o.languages||[]);for(let c in o.translations)!a.has(c)&&r[c]===void 0&&(r[c]=o.translations[c])}return r.isRootState=!0,Y(r)},ky=(t,e)=>{S(t.routes)&&S(e.pages)&&Z(t.routes,e.pages);let r=t.routes||e.pages||{};for(let o in r){if(o.charCodeAt(0)===47)continue;let n=o==="index"?"":o;r["/"+n]=r[o],delete r[o]}return r},vy=t=>{Jn(t,t.sharedLibraries)};O();var Ay="smbls_lang",Uw="smbls_t_",Ww="smbls_tv_",Ar={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},Eo={};function Us(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function vl(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var zs=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),o=t;for(let n=0;n<r.length;n++){if(o==null)return;o=o[r[n]]}return o},Cy=(t,e,r)=>{let o=e.lastIndexOf(".");if(o===-1)return t[e+"_"+r];let n=zs(t,e.substring(0,o));if(n!=null)return n[e.substring(o+1)+"_"+r]};function Cl(t,e){if(!t)return"";let r=this?.context,o=r?.polyglot,n=e||this.call("getActiveLang"),s=this?.state;if(s){let l=Cy(s,t,n);if(l!==void 0)return l}if(o?.translations){let l=o.translations[n];if(l){let f=zs(l,t);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[n];if(l){let f=zs(l,t);if(f!==void 0)return f}}let c=o?.defaultLang||"en";if(s){let l=Cy(s,t,c);if(l!==void 0)return l}if(o?.translations){let l=o.translations[c];if(l){let f=zs(l,t);if(f!==void 0)return f}}return t}async function Al(t){let e=this?.context,r=e?.polyglot,o=this?.state?.root||e?.state?.root;if(!r||!o)return;let n=r.storagePrefix||Uw,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):Ww);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!o.translations?.[t]){let c=Ar.get(n+t);if(c)try{let l=JSON.parse(c),f={translations:{...o.translations||{}}};f.translations[t]=l,o.update&&o.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(r.storagePrefix||"smbls")+":"+t;if(Eo[i])return Eo[i];let a=this;return Eo[i]=(async()=>{try{let c=r.fetch,l=parseInt(Ar.get(s+t),10)||0,f,u,p;if(C(c)){let h=await c(t,l,a);if(!h||h.changed===!1)return;f=h.translations||h.data||h,u=h.version||0,p=!0}else if(S(c)){let h=a.getDB||(()=>e.fetch),g=C(h)?await h.call(a):e.fetch;if(!g)return;let m=c.rpc||c.from||"get_translations_if_changed",y={p_lang:t,p_cached_version:l,...c.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,b.error;let x=b.data;if(!x||!x.changed)return;f=x.translations||{},u=x.version||0,p=!0}else return;if(!p||!f)return;Ar.set(n+t,JSON.stringify(f)),u&&Ar.set(s+t,String(u));let d={translations:{...o.translations||{}}};d.translations[t]=f,o.update&&o.update(d)}catch(c){if(r.verbose!==!1){let l=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",t,"-",l)}}finally{delete Eo[i]}})(),Eo[i]}async function El(t){let e=this?.context,r=e?.polyglot,o=this?.state?.root||e?.state?.root;if(!o||this.call("getActiveLang")===t)return;let n=r?.storageLangKey||Ay;Ar.set(n,t),r?.fetch&&await this.call("loadTranslations",t),e?.state&&(e.state.lang=t);let s=r?.translations?.[t],i={lang:t};if(s&&typeof s=="object")for(let c in s){let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}if(o.update&&o.update(i),s&&typeof s=="object")for(let c in s){let l=s[c];if(l&&typeof l=="object"&&!Array.isArray(l)&&o[c]&&typeof o[c]=="object"&&!Array.isArray(o[c]))for(let f in l)o[c][f]=l[f]}let a=this?.context?.document||globalThis.document;if(a&&s){let c=a.querySelectorAll("[data-key]");for(let l of c){let f=l.ref;if(!f)continue;let u=f.__ref?.__exec?.text;if(typeof u=="string"&&u.includes("{{"))try{let p=f.call("replaceLiteralsWithObjectFields",u,f.state);p!=null&&l.textContent!==p&&(l.textContent=p)}catch{}}}}async function Tl(t,e,r){let o=this?.context,n=o?.polyglot,s=this?.state?.root||o?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),n?.translations?.[e]&&(n.translations[e][t]=r),n?.fetch&&S(n.fetch)){let i=this.getDB||(()=>o.fetch),a=C(i)?await i.call(this):o.fetch;if(!a)return;let c=n.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(l?.error)throw l.error;return l.data}}async function Ey(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let o=e.storageLangKey||Ay,s=Ar.get(o)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function Ol(t){try{let e=this?.context?.polyglot,o=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",n=this?.state;if(!n)return"";let s=t.lastIndexOf(".");if(s===-1)return n[t+o]??"";let i=t.substring(0,s).split("."),a=n;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+o]??""}catch{return""}}var Rl={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Ey.call(t))}};var Ws={polyglot:Cl,getLocalStateLang:Ol,getActiveLang:Us,getLang:Us,setLang:El,getLanguages:vl,loadTranslations:Al,upsertTranslation:Tl};Be();var Hs={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)),Hw=(t,e,r)=>{let{ascent:o,descent:n,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(n),l=o+c+s,f=r!==void 0?r:l/i*t,u=f/t,p=l/i,d=(o-a+s/2)/i-(u-p)/2,h=(c+s/2)/i-(u-p)/2;return{fontSize:`${qs(t/16)}rem`,lineHeight:`${qs(f)}px`,capHeightTrim:`${qs(-d)}em`,baselineTrim:`${qs(-h)}em`}},qw=(t,e)=>{if(typeof t=="number")return t;let r=e?.designSystem;if(!r)return null;let{typography:o}=r;if(o?.sequence){let s=String(t).toUpperCase(),i=o.sequence[s];if(i)return i.decimal||i.val}let n=parseFloat(t);return isNaN(n)?null:typeof t=="string"&&t.endsWith("rem")?n*(r.typography?.browserDefault||16):n},Gw=(t,e)=>{let o=e?.designSystem?.font_family||{};if(t){let s=o[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(Hs[i])return Hs[i]}let n=o.default||Object.keys(o)[0];if(n){let s=o[n];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(Hs[a])return Hs[a]}}return null},Ty=(t,e,r,o)=>{if(!t)return;let n=qw(e.fontSize,o);if(!n)return;let s=Gw(e.fontFamily,o);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=Hw(n,s,i),f={};return e.lineHeight||(f.lineHeight=a),f["::before"]={content:'""',marginBottom:c,display:"table"},f["::after"]={content:'""',marginTop:l,display:"table"},f},Oy={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}};var To={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},$t=Object.create(null);for(let t in To)$t[To[t]]=t;var Pl=Object.create(null);for(let t in To){let e=To[t];if(Pl[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${Pl[e]}"`);Pl[e]=t}var Ae=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Oo(t){return/^[A-Z]/.test(t)}function Ro(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function Kw(t){return t.trim().split(/\s+/).filter(Boolean)}function Ry(t){return t.replace(/_/g," ")}function Yw(t){if(!t||typeof t!="string")return{};let e={},r=Kw(t);for(let o of r){if(o.startsWith("!")){let c=o.slice(1),l=$t[c]||c;e[l]=!1;continue}let n=o.indexOf(":");if(n===-1){let c=$t[o]||o;e[c]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=$t[s]||s;if(i.includes(",")){e[a]=i.split(",").map(Ry);continue}e[a]=Ry(i)}return e}function Po(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Po(r):r});let e={};for(let r in t){let o=t[r];if(Oo(r)){e[r]=Il(o);continue}let n=$t[r]||r;if(Ro(r)&&n===r){e[r]=Il(o);continue}if(Ae.has(n)||Ae.has(r)){e[n]=o;continue}e[n]=Il(o)}return e}function Il(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Po(e):e}):typeof t=="object"?Po(t):t}function Io(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Io(r):r});let e={};if(typeof t.in=="string"){let r=Yw(t.in);for(let o in r)e[o]=r[o]}for(let r in t){if(r==="in")continue;let o=t[r];if(Oo(r)){e[r]=$l(o);continue}let n=$t[r]||r;if(Ro(r)&&n===r){e[r]=$l(o);continue}if(Ae.has(n)||Ae.has(r)){e[n]=o;continue}e[n]=$l(o)}return e}function $l(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Io(e):e}):typeof t=="object"?Io(t):t}function Xw(t){let e="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){let o=t[r+1];if(o===","||o==="_"||o==="\\"){e+=o,r+=2;continue}}t[r]==="_"?e+=" ":e+=t[r],r++}return e}function Zw(t){let e=[],r="",o=0;for(;o<t.length;){if(t[o]==="\\"&&o+1<t.length){r+=t[o]+t[o+1],o+=2;continue}if(t[o]===","){e.push(r),r="",o++;continue}r+=t[o],o++}return e.push(r),e}function Py(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):Xw(t)}function Fl(t){if(!t||typeof t!="string")return{};let e={},r=t.trim().split(/\s+/).filter(Boolean);for(let o of r){if(o.startsWith("!")){let l=o.slice(1),f=$t[l]||l;e[f]=!1;continue}let n=o.indexOf(":");if(n===-1){let l=$t[o]||o;e[l]=!0;continue}let s=o.slice(0,n),i=o.slice(n+1),a=$t[s]||s,c=Zw(i);if(c.length>1){e[a]=c.map(Py);continue}e[a]=Py(i)}return e}function $o(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?$o(r):r});let e={};if(typeof t.in=="string"){let r=Fl(t.in);for(let o in r)e[o]=r[o]}for(let r in t){if(r==="in")continue;let o=t[r];if(Oo(r)){typeof o=="string"?e[r]=Fl(o):e[r]=Dl(o);continue}let n=$t[r]||r;if(Ro(r)&&n===r){typeof o=="string"?e[r]=Fl(o):e[r]=Dl(o);continue}if(Ae.has(n)||Ae.has(r)){e[n]=o;continue}e[n]=Dl(o)}return e}function Dl(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?$o(e):e}):typeof t=="object"?$o(t):t}var Jw={shorten:Po,stringify:Io,stringifyFurther:$o};function Qw(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(o=>e(o));let r={};for(let o in t){let n=t[o];r[o]=n&&typeof n=="object"?e(n):n}return r}var t0=["components","pages","snippets"],Gs={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let o=Jw[e===!0?"shorten":e];if(o){for(let n of t0)t[n]&&(t[n]=Qw(t[n],o));t.app&&typeof t.app=="object"&&(t.app=o(t.app))}}};var e0=0,r0=()=>`${Date.now().toString(36)}-${(e0++).toString(36)}`,U=(t,e,r={})=>({id:r0(),ts:Date.now(),type:t,level:e,...r}),o0=t=>{let e=[],r=t,o=0;for(;r&&o<32;)r.key!=null&&e.unshift(String(r.key)),r=r.parent,o++;return e.join(" > ")},Er=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:o0(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Tr=t=>t?.context?.analyze,n0={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"}},s0=(t,{category:e,type:r,level:o})=>n=>{let s=Tr(n);!s||!s.shouldCapture(e)||s.emit(U(r,o,{hook:t,element:Er(n)}))},Iy=t=>(e,r)=>{let o=Tr(e);!o||!o.shouldCapture("state")||o.emit(U("state","debug",{hook:t,element:Er(e),changedKeys:r?.changedKeys||null}))},Fo={name:"analyze",error(t,e){let r=Tr(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let o=e?.error||e?.err||(e instanceof Error?e:null);r.emit(U("error","error",{hook:e?.hook||"error",element:Er(t),error:o,message:o?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Tr(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(U("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Tr(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Tr(t);if(!e||!e.shouldCapture("updates"))return;let r=null;t.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(U("update","debug",{hook:"update",element:Er(t),durationMs:r}))},beforeStateUpdate:Iy("beforeStateUpdate"),stateUpdate:Iy("stateUpdate")};for(let[t,e]of Object.entries(n0))Fo[t]=s0(t,e);O();var Ks={error:0,warn:1,info:2,debug:3,trace:4};var jl=(t,e)=>{let r=Ks[t],o=Ks[e];return r==null||o==null?!0:r<=o},Ys=t=>Ks[t]!=null?t:"warn";O();var Xs=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var i0=(t,e)=>{for(let r of e)if(r instanceof RegExp){if(r.test(t))return!0}else if(typeof r=="string"&&t.toLowerCase().includes(r.toLowerCase()))return!0;return!1},a0=(t,e)=>{if(e!=="redact"){if(e==="hash"){let r=0,o=String(t);for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},Ll=(t,e,r,o)=>{if(o>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>Ll(s,e,r,o+1));let n={};for(let s of Object.keys(t))if(i0(s,e)||Xs.test(s)){let a=a0(t[s],r);a!==void 0&&(n[s]=a)}else n[s]=Ll(t[s],e,r,o+1);return n},Ml=(t=[],e="mask")=>{let r=Array.isArray(t)?t:[t];return o=>{if(!o)return o;let{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:p,target:d,...h}=o,g=Ll(h,r,e,0);return{id:n,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:p,target:d,...g}}};var $y=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,o=t.config.buildHash||null,n=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=k,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:n,build:o,route:i},meta:{ua:r,viewport:c}}}},Fy=()=>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},Dy=(t=1e3,e=500)=>{let r=new Map;return o=>{if(!o)return o;let n=`${o.type}:${o.level}:${o.message||""}:${o.error?.message||""}`,s=r.get(n),i=o.ts||Date.now();if(s&&i-s<t)return null;if(r.set(n,i),r.size>e){let a=Math.ceil(e/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return o}},jy=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},Ly={redact:t=>Ml(t.config.redact||[],t.config.maskStrategy),enrich:t=>$y(t),summarize:()=>Fy(),dedupe:t=>Dy(t.config.cache?.dedupeWindowMs||1e3),sample:t=>jy(t.config.sample||{})},c0=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=Ly[t];return r?r(e):null}return null},Nl=t=>{let e=t.config,r=Array.isArray(e.transformers)?e.transformers.slice():[],o=r.findIndex(s=>s==="redact");o>=0&&r.splice(o,1);let n=[];e.redact!==!1&&n.push(Ly.redact(t));for(let s of r){let i=c0(s,t);i&&n.push(i)}return s=>{let i=s;for(let a of n){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=n.slice(n.indexOf(a)+1),f=[];for(let u of c){let p=u,d=!1;for(let h of l)if(p=h(p),p==null){d=!0;break}!d&&p!=null&&f.push(p)}return f}i=c}return i}};O();var l0={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},f0="\x1B[0m",Zs=typeof k<"u"&&typeof k.document<"u",Ny=(t={})=>{let e=t.minLevel||null,r=console.error.bind(console),o=console.warn.bind(console),n=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?o:n,a=`[analyze:${s.type}]`;if(Zs)i(a,s);else{let c=l0[s.level]||"";i(`${c}${a}${f0}`,s)}}},By=(t,e={})=>{let r=e.max||t.config.cache?.max||500,o=new Array(r),n=0,s=0,i=a=>{o[n]=a,n=(n+1)%r,s<r&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(n-s+r)%r;for(let l=0;l<s;l++)a[l]=o[(c+l)%r];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{n=0,s=0}},i},Vy=(t={})=>{let e=t.url,r=t.batchMs!=null?t.batchMs:5e3,o=t.maxBatch||50;if(!e)return()=>{};let n=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!n.length)return;let c=JSON.stringify({events:n});n=[];let l=Zs?new k.Blob([c],{type:"application/json"}):c;if(Zs&&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(()=>{})};Zs&&(k.addEventListener("pagehide",i,{passive:!0}),k.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(n.push(c),n.length>=o?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},My={console:Ny,memory:By,beacon:Vy},Bl=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],r=[];for(let o of e)if(typeof o=="function")r.push(o);else if(typeof o=="string"){let n=My[o];if(!n)continue;r.push(o==="memory"?n(t,{}):n({}))}else if(o&&typeof o=="object"&&o.type){let n=My[o.type];if(!n)continue;r.push(o.type==="memory"?n(t,o):n(o))}return r};O();var u0=typeof k<"u"&&typeof k.document<"u",p0=new Set(["password","hidden"]),zy=(t,e)=>{let r=0,o=null,n=null;return(...s)=>{let i=Date.now();i-r>=e?(r=i,t(...s)):(n=s,o||(o=setTimeout(()=>{r=Date.now(),o=null,n&&(t(...n),n=null)},e-(i-r))))}},Vl="__analyzeKeyPath",Or=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[Vl])return e[Vl];let r=[],o=e,n=0,s=null;for(;o&&n<64;){if(o.getAttribute){let a=o.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}o=o.parentNode,n++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||"unknown").toLowerCase(),c=e.id?`#${e.id}`:"",l=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[Vl]=i}catch{}return i},d0=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let r=0,o=String(t||"");for(let n=0;n<o.length;n++)r=(r<<5)-r+o.charCodeAt(n)|0;return`#${(r>>>0).toString(36)}`}return"***"}},h0=t=>!!(!t||t.tagName==="INPUT"&&p0.has(t.type)||Xs.test(t.name||"")||Xs.test(t.id||"")||t.dataset?.analyze==="skip"),zl=t=>{if(!u0)return;let e=t.config.capture,r=t.config.throttle,o=t.__teardown,n=(s,i,a,c)=>{s.addEventListener(i,a,c),o.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(n(k,"error",s=>{t.emit(U("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),n(k,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(U("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){n(k,"click",i=>{t.emit(U("pointer","info",{hook:"click",target:Or(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:Uy(i)}))},{passive:!0,capture:!0}),n(k,"dblclick",i=>{t.emit(U("pointer","info",{hook:"dblclick",target:Or(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),n(k,"contextmenu",i=>{t.emit(U("pointer","info",{hook:"contextmenu",target:Or(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=zy(i=>{t.emit(U("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);n(k,"pointermove",s,{passive:!0})}if(e.keyboard&&n(k,"keydown",s=>{t.emit(U("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:Uy(s),target:Or(s)}))},{passive:!0,capture:!0}),e.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let l=h0(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=d0(a.value,t.config.maskStrategy)),t.emit(U("forms","info",{hook:i.type,target:Or(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};n(k,"input",s,{passive:!0,capture:!0}),n(k,"change",s,{passive:!0,capture:!0}),n(k,"submit",i=>{t.emit(U("forms","info",{hook:"submit",target:Or(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=zy(()=>{t.emit(U("scroll","trace",{hook:"scroll",x:k.scrollX,y:k.scrollY}))},r.scroll);n(k,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=un(()=>{t.emit(U("viewport","info",{hook:"resize",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))},r.resize);n(k,"resize",s,{passive:!0}),n(k,"orientationchange",()=>{t.emit(U("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),n(k.document,"visibilitychange",()=>{t.emit(U("viewport","info",{hook:"visibilitychange",hidden:k.document.hidden}))},{passive:!0}),t.emit(U("viewport","info",{hook:"initial",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(U("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(g0)}))}catch{}return i.apply(console,a)},o.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(U("performance","info",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}o.push(()=>s.disconnect())}catch{}},Uy=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),g0=t=>{if(t==null)return t;if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};O();var m0=typeof k<"u"&&typeof k.document<"u";var Ul=t=>{if(m0&&t.config.capture.network){if(typeof k.fetch=="function"){let e=k.fetch.bind(k),r=function(o,n){if(n?.headers?.["X-Analyze-Beacon"])return e(o,n);let s=typeof o=="string"?o:o&&o.url||"",i=(n?.method||typeof o=="object"&&o?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(U("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(o,n).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(U("network",c.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;throw t.emit(U("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};k.fetch=r,t.__teardown.push(()=>{k.fetch=e})}if(typeof k.XMLHttpRequest=="function"){let e=k.XMLHttpRequest,r=e.prototype.open,o=e.prototype.send;e.prototype.open=function(n,s){return this.__analyze={method:String(n).toUpperCase(),url:String(s)},r.apply(this,arguments)},e.prototype.send=function(n){let s=this.__analyze;if(!s)return o.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(U("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(U("network",f?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<"u"?performance.now():Date.now())-i;t.emit(U("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener("loadend",a),this.addEventListener("error",c),o.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=r,e.prototype.send=o})}}};var y0={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},b0={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},x0={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},S0=t=>{let e={...y0,...t};return e.replay&&Object.assign(e,b0),e.telemetry&&Object.assign(e,x0),e},_0=64,w0=()=>{if(typeof k>"u"||!k.location)return null;try{let e=new URLSearchParams(k.location.search).get("analyze");return e||null}catch{return null}},Wl=(t={})=>{let e=t===!0?{}:{...t};e.capture=S0(e.capture||{});let r=w0();(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=Ys(e.level||"warn"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy="mask"),Array.isArray(e.sinks)||(e.sinks=["console","memory"]),Array.isArray(e.transformers)||(e.transformers=["enrich","summarize"]);let o={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},n=()=>{o.__pipeline||(o.__pipeline=Nl(o),o.__sinks=Bl(o))};return o.shouldCapture=s=>o.config.enabled===!1?!1:!!o.config.capture[s],o.emit=s=>{if(s&&o.config.enabled!==!1&&!o.__paused&&jl(s.level,o.config.level)){if(!o.__ready){if(s.level!=="error"&&!o.config.captureDuringHydration)return;o.__preBuffer.length<_0&&o.__preBuffer.push(s);return}n(),Wy(o,s)}},o.activate=s=>{if(o.context==null&&(o.context=s||null),o.__ready)return;o.__ready=!0;let i=o.__preBuffer;if(o.__preBuffer=[],i.length){n();for(let a of i)Wy(o,a)}try{zl(o)}catch(a){console.error("[analyze] browser attach error:",a)}try{Ul(o)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of o.__onActivate||[])try{a(o)}catch(c){console.error("[analyze] onActivate error:",c)}},o.pause=()=>{o.__paused=!0},o.resume=()=>{o.__paused=!1},o.setLevel=s=>{o.config.level=Ys(s)},o.setCapture=(s,i)=>{o.config.capture[s]=!!i},o.query=s=>o.__memory?o.__memory.query(s):[],o.snapshot=()=>o.__memory?o.__memory.snapshot():[],o.emitNetwork=s=>{if(!o.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";o.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},o.flush=()=>{if(o.__sinks)for(let s of o.__sinks)typeof s.flush=="function"&&s.flush()},o.replay=()=>({initialSnapshot:o.__initialSnapshot,events:o.snapshot()}),o.destroy=()=>{for(let s of o.__teardown)try{s()}catch{}o.__teardown=[],o.__ready=!1,o.__paused=!0},o.__onActivate=[],o.onActivate=s=>{o.__onActivate.push(s)},o},Wy=(t,e)=>{let r=t.__pipeline(e);if(r==null)return;let o=Array.isArray(r)?r:[r];for(let n of o){if(typeof t.config.onEvent=="function")try{t.config.onEvent(n)}catch{}for(let s of t.__sinks)try{s(n)}catch(i){console.error("[analyze] sink error:",i)}}};var qt=Object.create(null);qt.open="0";qt.close="1";qt.ping="2";qt.pong="3";qt.message="4";qt.upgrade="5";qt.noop="6";var Do=Object.create(null);Object.keys(qt).forEach(t=>{Do[qt[t]]=t});var jo={type:"error",data:"parser error"};var Gy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ky=typeof ArrayBuffer=="function",Yy=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Lo=({type:t,data:e},r,o)=>Gy&&e instanceof Blob?r?o(e):Hy(e,o):Ky&&(e instanceof ArrayBuffer||Yy(e))?r?o(e):Hy(new Blob([e]),o):o(qt[t]+(e||"")),Hy=(t,e)=>{let r=new FileReader;return r.onload=function(){let o=r.result.split(",")[1];e("b"+(o||""))},r.readAsDataURL(t)};function qy(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Hl;function Xy(t,e){if(Gy&&t.data instanceof Blob)return t.data.arrayBuffer().then(qy).then(e);if(Ky&&(t.data instanceof ArrayBuffer||Yy(t.data)))return e(qy(t.data));Lo(t,!1,r=>{Hl||(Hl=new TextEncoder),e(Hl.encode(r))})}var Zy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Zy.length;t++)Mo[Zy.charCodeAt(t)]=t;var Jy=t=>{let e=t.length*.75,r=t.length,o,n=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let l=new ArrayBuffer(e),f=new Uint8Array(l);for(o=0;o<r;o+=4)s=Mo[t.charCodeAt(o)],i=Mo[t.charCodeAt(o+1)],a=Mo[t.charCodeAt(o+2)],c=Mo[t.charCodeAt(o+3)],f[n++]=s<<2|i>>4,f[n++]=(i&15)<<4|a>>2,f[n++]=(a&3)<<6|c&63;return l};var k0=typeof ArrayBuffer=="function",No=(t,e)=>{if(typeof t!="string")return{type:"message",data:Qy(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:v0(t.substring(1),e)}:Do[r]?t.length>1?{type:Do[r],data:t.substring(1)}:{type:Do[r]}:jo},v0=(t,e)=>{if(k0){let r=Jy(t);return Qy(r,e)}else return{base64:!0,data:t}},Qy=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var tb="",eb=(t,e)=>{let r=t.length,o=new Array(r),n=0;t.forEach((s,i)=>{Lo(s,!1,a=>{o[i]=a,++n===r&&e(o.join(tb))})})},rb=(t,e)=>{let r=t.split(tb),o=[];for(let n=0;n<r.length;n++){let s=No(r[n],e);if(o.push(s),s.type==="error")break}return o};function ob(){return new TransformStream({transform(t,e){Xy(t,r=>{let o=r.length,n;if(o<126)n=new Uint8Array(1),new DataView(n.buffer).setUint8(0,o);else if(o<65536){n=new Uint8Array(3);let s=new DataView(n.buffer);s.setUint8(0,126),s.setUint16(1,o)}else{n=new Uint8Array(9);let s=new DataView(n.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(o))}t.data&&typeof t.data!="string"&&(n[0]|=128),e.enqueue(n),e.enqueue(r)})}})}var ql;function Js(t){return t.reduce((e,r)=>e+r.length,0)}function Qs(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),o=0;for(let n=0;n<e;n++)r[n]=t[0][o++],o===t[0].length&&(t.shift(),o=0);return t.length&&o<t[0].length&&(t[0]=t[0].slice(o)),r}function nb(t,e){ql||(ql=new TextDecoder);let r=[],o=0,n=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(o===0){if(Js(r)<1)break;let c=Qs(r,1);s=(c[0]&128)===128,n=c[0]&127,n<126?o=3:n===126?o=1:o=2}else if(o===1){if(Js(r)<2)break;let c=Qs(r,2);n=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),o=3}else if(o===2){if(Js(r)<8)break;let c=Qs(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(jo);break}n=f*Math.pow(2,32)+l.getUint32(4),o=3}else{if(Js(r)<n)break;let c=Qs(r,n);a.enqueue(No(s?c:ql.decode(c),e)),o=0}if(n===0||n>t){a.enqueue(jo);break}}}})}var Gl=4;function K(t){if(t)return C0(t)}function C0(t){for(var e in K.prototype)t[e]=K.prototype[e];return t}K.prototype.on=K.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};K.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};K.prototype.off=K.prototype.removeListener=K.prototype.removeAllListeners=K.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var o,n=0;n<r.length;n++)if(o=r[n],o===e||o.fn===e){r.splice(n,1);break}return r.length===0&&delete this._callbacks["$"+t],this};K.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){r=r.slice(0);for(var o=0,n=r.length;o<n;++o)r[o].apply(this,e)}return this};K.prototype.emitReserved=K.prototype.emit;K.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};K.prototype.hasListeners=function(t){return!!this.listeners(t).length};var le=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),mt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),sb="arraybuffer";function ti(t,...e){return e.reduce((r,o)=>(t.hasOwnProperty(o)&&(r[o]=t[o]),r),{})}var A0=mt.setTimeout,E0=mt.clearTimeout;function fe(t,e){e.useNativeTimers?(t.setTimeoutFn=A0.bind(mt),t.clearTimeoutFn=E0.bind(mt)):(t.setTimeoutFn=mt.setTimeout.bind(mt),t.clearTimeoutFn=mt.clearTimeout.bind(mt))}var T0=1.33;function ib(t){return typeof t=="string"?O0(t):Math.ceil((t.byteLength||t.size)*T0)}function O0(t){let e=0,r=0;for(let o=0,n=t.length;o<n;o++)e=t.charCodeAt(o),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(o++,r+=4);return r}function ei(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function ab(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function cb(t){let e={},r=t.split("&");for(let o=0,n=r.length;o<n;o++){let s=r[o].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var ri=class extends Error{constructor(e,r,o){super(e),this.description=r,this.context=o,this.type="TransportError"}},ue=class extends K{constructor(e){super(),this.writable=!1,fe(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,o){return super.emitReserved("error",new ri(e,r,o)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let r=No(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=ab(e);return r.length?"?"+r:""}};var Bo=class extends ue{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let r=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let o=0;this._polling&&(o++,this.once("pollComplete",function(){--o||r()})),this.writable||(o++,this.once("drain",function(){--o||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let r=o=>{if(this.readyState==="opening"&&o.type==="open"&&this.onOpen(),o.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(o)};rb(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,eb(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]=ei()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var lb=!1;try{lb=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var fb=lb;function R0(){}var Kl=class extends Bo{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||o!==e.port}}doWrite(e,r){let o=this.request({method:"POST",data:e});o.on("success",r),o.on("error",(n,s)=>{this.onError("xhr post error",n,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,o)=>{this.onError("xhr poll error",r,o)}),this.pollXhr=e}},Ee=class t extends K{constructor(e,r,o){super(),this.createRequest=e,fe(this,o),this._opts=o,this._method=o.method||"GET",this._uri=r,this._data=o.data!==void 0?o.data:null,this._create()}_create(){var e;let r=ti(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let o=this._xhr=this.createRequest(r);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let n in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(n)&&o.setRequestHeader(n,this._opts.extraHeaders[n])}}catch{}if(this._method==="POST")try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{o.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var n;o.readyState===3&&((n=this._opts.cookieJar)===null||n===void 0||n.parseCookies(o.getResponseHeader("set-cookie"))),o.readyState===4&&(o.status===200||o.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof o.status=="number"?o.status:0)},0))},o.send(this._data)}catch(n){this.setTimeoutFn(()=>{this._onError(n)},0);return}typeof document<"u"&&(this._index=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=R0,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()}};Ee.requestsCount=0;Ee.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ub);else if(typeof addEventListener=="function"){let t="onpagehide"in mt?"pagehide":"unload";addEventListener(t,ub,!1)}}function ub(){for(let t in Ee.requests)Ee.requests.hasOwnProperty(t)&&Ee.requests[t].abort()}var P0=(function(){let t=pb({xdomain:!1});return t&&t.responseType!==null})(),Te=class extends Kl{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=P0&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Ee(pb,this.uri(),e)}};function pb(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||fb))return new XMLHttpRequest}catch{}if(!e)try{return new mt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var db=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Xl=class extends ue{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,o=db?{}:ti(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,r,o)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let o=e[r],n=r===e.length-1;Lo(o,this.supportsBinary,s=>{try{this.doWrite(o,s)}catch{}n&&le(()=>{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]=ei()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},Yl=mt.WebSocket||mt.MozWebSocket,Oe=class extends Xl{createSocket(e,r,o){return db?new Yl(e,r,o):r?new Yl(e,r):new Yl(e)}doWrite(e,r){this.ws.send(r)}};var Rr=class extends ue{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=nb(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=e.readable.pipeThrough(r).getReader(),n=ob();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let s=()=>{o.read().then(({done:a,value:c})=>{a||(this.onPacket(c),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let o=e[r],n=r===e.length-1;this._writer.write(o).then(()=>{n&&le(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var Zl={websocket:Oe,webtransport:Rr,polling:Te};var I0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Pr(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),o=t.indexOf("]");r!=-1&&o!=-1&&(t=t.substring(0,r)+t.substring(r,o).replace(/:/g,";")+t.substring(o,t.length));let n=I0.exec(t||""),s={},i=14;for(;i--;)s[$0[i]]=n[i]||"";return r!=-1&&o!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=F0(s,s.path),s.queryKey=D0(s,s.query),s}function F0(t,e){let r=/\/{2,9}/g,o=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&o.splice(0,1),e.slice(-1)=="/"&&o.splice(o.length-1,1),o}function D0(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,n,s){n&&(r[n]=s)}),r}var Jl=typeof addEventListener=="function"&&typeof removeEventListener=="function",oi=[];Jl&&addEventListener("offline",()=>{oi.forEach(t=>t())},!1);var Xe=class t extends K{constructor(e,r){if(super(),this.binaryType=sb,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let o=Pr(e);r.hostname=o.host,r.secure=o.protocol==="https"||o.protocol==="wss",r.port=o.port,o.query&&(r.query=o.query)}else r.host&&(r.hostname=Pr(r.host).host);fe(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(o=>{let n=o.prototype.name;this.transports.push(n),this._transportsByName[n]=o}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=cb(this.opts.query)),Jl&&(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"})},oi.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=Gl,r.transport=e,this.id&&(r.sid=this.id);let o=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](o)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let o=0;o<this.writeBuffer.length;o++){let n=this.writeBuffer[o].data;if(n&&(r+=ib(n)),o>0&&r>this._maxPayload)return this.writeBuffer.slice(0,o);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,le(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,o){return this._sendPacket("message",e,r,o),this}send(e,r,o){return this._sendPacket("message",e,r,o),this}_sendPacket(e,r,o,n){if(typeof r=="function"&&(n=r,r=void 0),typeof o=="function"&&(n=o,o=null),this.readyState==="closing"||this.readyState==="closed")return;o=o||{},o.compress=o.compress!==!1;let s={type:e,data:r,options:o};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},o=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?o():e()}):this.upgrading?o():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Jl&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let o=oi.indexOf(this._offlineEventListener);o!==-1&&oi.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Xe.protocol=Gl;var ni=class extends Xe{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let r=this.createTransport(e),o=!1;Xe.priorWebsocketSuccess=!1;let n=()=>{o||(r.send([{type:"ping",data:"probe"}]),r.once("packet",u=>{if(!o)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Xe.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{o||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){o||(o=!0,f(),r.close(),r=null)}let i=u=>{let p=new Error("probe error: "+u);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function c(){i("socket closed")}function l(u){r&&u.name!==r.name&&s()}let f=()=>{r.removeListener("open",n),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};r.once("open",n),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{o||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let o=0;o<e.length;o++)~this.transports.indexOf(e[o])&&r.push(e[o]);return r}},Ir=class extends ni{constructor(e,r={}){let o=typeof e=="object"?e:r;(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(n=>Zl[n]).filter(n=>!!n)),super(e,o)}};var p$=Ir.protocol;function hb(t,e="",r){let o=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),o=Pr(t)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";let s=o.host.indexOf(":")!==-1?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+s+":"+o.port+e,o.href=o.protocol+"://"+s+(r&&r.port===o.port?"":":"+o.port),o}var sf={};$(sf,{Decoder:()=>of,Encoder:()=>rf,PacketType:()=>F,isPacketValid:()=>rk,protocol:()=>Cb});var L0=typeof ArrayBuffer=="function",M0=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,gb=Object.prototype.toString,N0=typeof Blob=="function"||typeof Blob<"u"&&gb.call(Blob)==="[object BlobConstructor]",B0=typeof File=="function"||typeof File<"u"&&gb.call(File)==="[object FileConstructor]";function zo(t){return L0&&(t instanceof ArrayBuffer||M0(t))||N0&&t instanceof Blob||B0&&t instanceof File}function Vo(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,o=t.length;r<o;r++)if(Vo(t[r]))return!0;return!1}if(zo(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Vo(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Vo(t[r]))return!0;return!1}function mb(t){let e=[],r=t.data,o=t;return o.data=Ql(r,e),o.attachments=e.length,{packet:o,buffers:e}}function Ql(t,e){if(!t)return t;if(zo(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let o=0;o<t.length;o++)r[o]=Ql(t[o],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Ql(t[o],e));return r}return t}function yb(t,e){return t.data=tf(t.data,e),delete t.attachments,t}function tf(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]=tf(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=tf(t[r],e));return t}var kb=Jb(wb(),1),ef=(0,kb.default)("socket.io-parser"),vb=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Cb=5,F;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(F||(F={}));var rf=class{constructor(e){this.replacer=e}encode(e){return ef("encoding packet %j",e),(e.type===F.EVENT||e.type===F.ACK)&&Vo(e)?this.encodeAsBinary({type:e.type===F.EVENT?F.BINARY_EVENT:F.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===F.BINARY_EVENT||e.type===F.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),ef("encoded %j as %s",e,r),r}encodeAsBinary(e){let r=mb(e),o=this.encodeAsString(r.packet),n=r.buffers;return n.unshift(o),n}},of=class t extends K{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);let o=r.type===F.BINARY_EVENT;o||r.type===F.BINARY_ACK?(r.type=o?F.EVENT:F.ACK,this.reconstructor=new nf(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(zo(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let r=0,o={type:Number(e.charAt(0))};if(F[o.type]===void 0)throw new Error("unknown packet type "+o.type);if(o.type===F.BINARY_EVENT||o.type===F.BINARY_ACK){let s=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);let i=e.substring(s,r);if(i!=Number(i)||e.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!Ab(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");o.attachments=a}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););o.nsp=e.substring(s,r)}else o.nsp="/";let n=e.charAt(r+1);if(n!==""&&Number(n)==n){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}o.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(o.type,s))o.data=s;else throw new Error("invalid payload")}return ef("decoded %s as %j",e,o),o}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case F.CONNECT:return ai(r);case F.DISCONNECT:return r===void 0;case F.CONNECT_ERROR:return typeof r=="string"||ai(r);case F.EVENT:case F.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&vb.indexOf(r[0])===-1);case F.ACK:case F.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},nf=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=yb(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Q0(t){return typeof t=="string"}var Ab=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function tk(t){return t===void 0||Ab(t)}function ai(t){return Object.prototype.toString.call(t)==="[object Object]"}function ek(t,e){switch(t){case F.CONNECT:return e===void 0||ai(e);case F.DISCONNECT:return e===void 0;case F.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&vb.indexOf(e[0])===-1);case F.ACK:return Array.isArray(e);case F.CONNECT_ERROR:return typeof e=="string"||ai(e);default:return!1}}function rk(t){return Q0(t.nsp)&&tk(t.id)&&ek(t.type,t.data)}function At(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var ok=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),jr=class extends K{constructor(e,r,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=r,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[At(e,"open",this.onopen.bind(this)),At(e,"packet",this.onpacket.bind(this)),At(e,"error",this.onerror.bind(this)),At(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...r){var o,n,s;if(ok.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:F.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let f=this.ids++,u=r.pop();this._registerAckCallback(f,u),i.id=f}let a=(n=(o=this.io.engine)===null||o===void 0?void 0:o.transport)===null||n===void 0?void 0:n.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var o;let n=(o=this.flags.timeout)!==null&&o!==void 0?o:this._opts.ackTimeout;if(n===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},n),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...r){return new Promise((o,n)=>{let s=(i,a)=>i?n(i):o(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());let o={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...s)=>(this._queue[0],n!==null?o.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(n)):(this._queue.shift(),r&&r(null,...s)),o.pending=!1,this._drainQueue())),this._queue.push(o),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:F.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(o=>String(o.id)===e)){let o=this.acks[e];delete this.acks[e],o.withError&&o.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case F.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case F.EVENT:case F.BINARY_EVENT:this.onevent(e);break;case F.ACK:case F.BINARY_ACK:this.onack(e);break;case F.DISCONNECT:this.ondisconnect();break;case F.CONNECT_ERROR:this.destroy();let o=new Error(e.data.message);o.data=e.data.data,this.emitReserved("connect_error",o);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let o of r)o.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let r=this,o=!1;return function(...n){o||(o=!0,r.packet({type:F.ACK,id:e,data:n}))}}onack(e){let r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:F.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let r=this._anyListeners;for(let o=0;o<r.length;o++)if(e===r[o])return r.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let r=this._anyOutgoingListeners;for(let o=0;o<r.length;o++)if(e===r[o])return r.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let o of r)o.apply(this,e.data)}}};function Je(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}Je.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};Je.prototype.reset=function(){this.attempts=0};Je.prototype.setMin=function(t){this.ms=t};Je.prototype.setMax=function(t){this.max=t};Je.prototype.setJitter=function(t){this.jitter=t};var Lr=class extends K{constructor(e,r){var o;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,fe(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((o=r.randomizationFactor)!==null&&o!==void 0?o:.5),this.backoff=new Je({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let n=r.parser||sf;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Ir(this.uri,this.opts);let r=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;let n=At(r,"open",function(){o.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=At(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{n(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(n),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(At(e,"ping",this.onping.bind(this)),At(e,"data",this.ondata.bind(this)),At(e,"error",this.onerror.bind(this)),At(e,"close",this.onclose.bind(this)),At(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){le(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let o=this.nsps[e];return o?this._autoConnect&&!o.active&&o.connect():(o=new jr(this,e,r),this.nsps[e]=o),o}_destroy(e){let r=Object.keys(this.nsps);for(let o of r)if(this.nsps[o].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let o=0;o<r.length;o++)this.engine.write(r[o],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,r){var o;this.cleanup(),(o=this.engine)===null||o===void 0||o.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let o=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},r);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var Uo={};function Mr(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=hb(t,e.path||"/socket.io"),o=r.source,n=r.id,s=r.path,i=Uo[n]&&s in Uo[n].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Lr(o,e):(Uo[n]||(Uo[n]=new Lr(o,e)),c=Uo[n]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Mr,{Manager:Lr,Socket:jr,io:Mr,connect:Mr});O();var nk=new Set(["__proto__","constructor","prototype"]),Eb=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(nk.has(t[e]))return!1;return!0},sk=(t,e)=>{!t||!Eb(e)||e.reduce((r,o,n,s)=>{if(r&&o in r){if(n!==s.length-1)return r[o];delete r[o]}},t)},ik=(t,e,r,o=!1)=>{!t||!Eb(e)||e.reduce((n,s,i,a)=>{if(n){if(i!==a.length-1)return!n[s]&&o&&(n[s]={}),n[s];n[s]=r}},t)},Tb=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[o,n,s]of e)if(!(!Array.isArray(n)||!n.length))switch(r.add(n[0]),o){case"delete":sk(t,n);break;case"update":case"set":ik(t,n,s,!0);break;default:break}return r};O();var Ob=(t,e,r)=>(o={})=>{let{data:n}=o,{schema:s}=o;n&&(n=t.call("deepDestringifyFunctions",n,Array.isArray(n)?[]:{}),Object.entries(n).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?ve(a):or(r[i],a):r[i]=a}),s&&(r.schema=s))},Rb=(t,e,r)=>(o={})=>{let{changes:n}=o;if(!n||!Array.isArray(n)||!n.length)return;n=t.call("deepDestringifyFunctions",n,Array.isArray(n)?[]:{});let s=Tb(r,n);if(s.has("state")&&e.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&ve(r.designSystem)};var ak={success:"green",error:"red",warning:"yellow"},Pb=(t,e,r)=>{if(t.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let o=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(o)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let o=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(o)},3e3)}},Ib={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:ak[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,o)=>{r.update({animation:"fadeInUp"})},onClick:(e,r,o)=>{delete o.notifications[r.key],r.update({animation:"fadeOutDown"}),o.onClose&&o.onClose(e,r,o)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var ck=!1,lk=()=>ck?"http://localhost:8080":"https://api.symbols.app",fk=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e=="string"&&e?{mode:"collab",baseUrl:e}:t&&t.editor&&t.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},uk=async t=>{try{let e=t||lk(),r=await k.fetch(`${e}/service-token`,{method:"GET"}),o;try{let n=await r.clone().json();if(n&&typeof n.token=="string")return n.token.trim();o=await r.text()}catch{o=await r.text()}return(o||"").replace(/\s+/gu,"")||void 0}catch(e){console.error("[sync] Failed to fetch service-token",e)}},Db=(t,e,r,o)=>{t.on("snapshot",Ob(e,r,o)),t.on("ops",Rb(e,r,o)),t.on("clients",n=>{o.editor?.verbose&&Pb(n,e,r)}),t.on("disconnect",n=>{o.editor?.verbose&&console.info("[sync] disconnected",n)})},pk=async(t,e,r,o)=>{let n=await uk(o);if(!n)return console.warn("[sync] no service token \u2014 collab disabled"),null;let s=r.key;if(!s)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let i=r.editor?.projectId||null,a=Mr(o,{path:"/collab-socket",transports:["websocket"],auth:{token:n,projectId:i,projectKey:s,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),Db(a,t,e,r),a},dk=(t,e,r)=>{let o=Mr({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return o.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),Db(o,t,e,r),o.on("reload",()=>{typeof k<"u"&&k.location&&k.location.reload()}),o},hk=async(t,e,r)=>{let{mode:o,baseUrl:n}=fk(r);return o?o==="collab"?pk(t,e,r,n):o==="runner"?dk(t,e,r):null:null},gk={onInit:hk};var jb=t=>typeof t>"u",$b=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),Fb=t=>t?.editor?.runtime==="runner",Lb=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},Mb={name:"sync",beforeCreate(t,e){let r=e&&e.editor;(r&&!jb(r.liveSync)?r.liveSync:$b(e)||Fb(e))&&($b(e)&&!Fb(e)&&!e?.key||Lb(t,gk))}},Nb={name:"notifications",beforeCreate(t,e){if(!e)return;let r=jb(e.notifications)?null:e.notifications,o=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&o)&&Lb(t,Ib)}};O();function Bb(t){return w(t)?t:T(t)?t.find(e=>w(e)):""}function cf(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&Bb(t.extends),o=t.parent&&t.parent.childExtends&&Bb(t.parent.childExtends);return(e||r||o||"").split("_")[0].split(".")[0].split("+")[0]}function ci(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:o}=t.context,n=cf(t);return o&&o.onInitInspect&&!o.onInitInspect(n,t,t.state)?ci(t.parent):n&&(e[n]||r[n])?t:ci(t.parent)}var mk=(t,e,r)=>{let o=r.window||window;o.onkeydown=n=>{n.altKey&&n.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},o.onkeyup=n=>{t.state.preventSelect&&(!n.altKey||!n.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},af={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:mk,onMousemove:(t,e,r)=>{let o=t.target.ref,n=ci(o),s=e.Inspector.state;if(!n||!r.debugging||!n.__ref)return s.update({area:!1});let i=cf(n),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:p}=n.node.getBoundingClientRect(),d={x:l,y:f,width:u,height:p};if(!s.area)return a(d);s.area.x!==d.x&&a(d)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,r)=>{if(!r.debugging)return;let o=t.target.ref,n=ci(o);if(!n)return;let s=cf(n);if(!s)return;let i=o.context.editor;if(i&&i.onInspect)return i.onInspect(s,o,o.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return o.context.socket?.emit&&o.context.socket.emit("route",a),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(t,e)=>!(e.area&&e.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:t})=>{let{components:e}=t;if(S(e)){let{Content:r,...o}=e;for(let n in o)ko[n]||(o[n].__ref||(o[n].__ref={}),o[n].__ref.__componentKey||(o[n].__ref.__componentKey=n))}},onBeforeUpdate:(t,e,r)=>{let{area:o}=r,n=r.area&&r.parent.debugging,s;if(!n)s="display: none !important";else if(o){let{x:i,y:a,width:c,height:l}=o;s=`
|
|
72
72
|
display: block !important;
|
|
73
73
|
top: ${a-6}px;
|
|
74
74
|
left: ${i-6}px;
|
|
75
75
|
width: ${c+12}px;
|
|
76
76
|
height: ${l+12}px;
|
|
77
|
-
`}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},Bb={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(sf):t.extends?t.extends=[t.extends,sf]:t.extends=[sf]}};var gk=async(t,e={})=>{let r=e.symbolsConfig,o=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,n=e.key=e.key||o||(w(t)?t:"smblsapp");if(e.define=e.define||Ao,e.cssPropsRegistry=nt,e.window=py(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(u=>typeof u=="string")){let{resolveSharedLibraries:u}=await Promise.resolve().then(()=>(O(),Td));e.sharedLibraries=await u(e.sharedLibraries)}ky(e)}let[s,i]=Sy(n,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&qs.prepareContext(e);let a=_y(t,e);e.state=a,Nn(a),e.pages=wy(t,e),e.components=dy(e),e.utils=hy(e),ze[e.packageManager]&&(e.dependencies=await my(e)),e.methods=gy(e),e.routerOptions=Jm(t,e),e.defaultExtends=[Rs],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&S(e.globalScope)&&(e.globalScope=nn(e.globalScope));let c=(p,u)=>{let d=u?p[u]:p;if(!S(d))return;let h=Mt(d);try{Object.assign(d,h)}catch(g){if(u)p[u]=h;else throw g}};c(t),c(e,"components"),c(e,"pages"),c(e,"functions"),c(e,"methods"),c(e,"snippets"),c(e,"app"),e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.db&&e.db.__resolved&&delete e.db.__resolved;let l=p=>e.plugins.some(u=>u.name===p);if(e.polyglot&&!l("polyglot")){e.plugins.push(Ol);for(let p in Us)p in e.functions||(e.functions[p]=Us[p])}if(l("helmet")||e.plugins.push(oy),e.fetch&&!l("fetch")&&e.plugins.push(ha),e.designSystem?.typography?.useCapsize!==!1&&!l("capsize")&&(e.plugins.push(Ty),e.cssPropsRegistry.useCapsize=Ey),e.shorthand&&!l("shorthand")&&e.plugins.push(qs),e.analyze&&!l("analyze")){let p=e.analyze===!0?{}:e.analyze;e.analyze=Ul(p),e.plugins.push(Fo)}return e.sync!==!1&&!l("sync")&&e.plugins.push(Nb),e.inspect&&!l("inspect")&&e.plugins.push(Bb),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!l("notifications")&&e.plugins.push(Mb),e},cf=async(t,e)=>{S(e)||(e={}),de(t)?(t={},e.parent=t):w(t)?(t={},e.key=t):S(t)||(t={});let r=e.window||(typeof window<"u"?window:null),o=r?.__BRENDER__,n=null;if(o){let c=e.document||(typeof document<"u"?document:null);c&&(n=Array.from(c.head.querySelectorAll("style")))}if(await gk(t,e),e.useReset!==!1){let c=e.document||(typeof document<"u"?document:null);if(c){let l=c.head.querySelector("style[data-smbls]");l||(l=c.createElement("style"),l.setAttribute("data-smbls",""),c.head.appendChild(l));let f=l.sheet;if(f){try{f.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{f.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&S(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=cy(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await yy({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate=="function")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin "${c.name||"?"}" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return t;let i=e.parent||s.body;if(o)return mk(zt,t,i,e,r,n);let a=zt(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},mk=async(t,e,r,o,n,s)=>{let i=r.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of r.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f==="script"||f==="link"||f==="style"||f==="svg"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll("[data-br]").forEach(l=>l.removeAttribute("data-br"));let c=t(e,r,o.key,{verbose:o.verbose,context:o,...o.domqlOptions});return yk(n),c},yk=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var lf=(t,e)=>W(t,S(e)?e:{}),bk=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let r=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(r=s)}}catch{}let o=t.themeStorageKey;if(r==="auto"&&o&&typeof localStorage<"u")try{let s=localStorage.getItem(o);s&&(r=s)}catch{}let n=r==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():r;e.setAttribute("data-theme",n),t.globalTheme=r,t.themeRoot=e},xk=()=>{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}},Vb=t=>{let e=xk();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},zb=(t,e=Ae,r)=>{let o={...Ae,...lf(e,r)};return Vb(o),bk(o),cf(t,o).then(s=>{if(Sl(s,o),s.destroy=()=>Ns(s),s.onCreate&&s.onCreate(s,s.state,s.context,o),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},IF=(t,e=Ae,r)=>{let o=zb(t,e,r),n={...Ae,...lf(e,r)},s=n.key;return ry(o,s,{utils:Co,...n}),o},$F=async(t,e=Ae,r)=>{let o={...Ae,...lf(e,r)};Vb(o);let n=e.key;await ey(n,o);let s=await cf(t,o);return Sl(s,o),s.destroy=()=>Ns(s),o.onCreate&&await o.onCreate(s,s.state,s.context,o),s},FF=(t={},e=Ae,r)=>zb({deps:{isUndefined:ct},...t},W({domqlOptions:{onlyResolveExtends:!0}},e),r);bl(lc);export{kh as ANIMATION_PROPS,_O as ARIA_ROLES,jh as ATTR_TRANSFORMS,vh as BLOCK_PROPS,Zt as CDN_PROVIDERS,Aa as CONFIG,ce as CSS_NATIVE_COLOR_REGEX,nt as CSS_PROPS_REGISTRY,zr as CSS_UNITS,As as DEFAULT_CONFIG,gt as DEFAULT_CSS_PROPERTIES_LIST,xs as DELEGATED_EVENTS,ay as DESIGN_SYSTEM_OPTIONS,Mf as DOMQL_EVENTS,$e as DOMQ_PROPERTIES,K_ as DOM_EVENTS,ru as ENV,xe as FACTORY,Oh as FLEX_PROPS,Ch as FONT_PROPS,Rh as GRID_PROPS,xc as HTML_ATTRIBUTES,Qr as HTML_TAGS,_r as LIFECYCLE_EVENTS,Xr as METHODS,en as METHODS_EXL,Ah as MISC_PROPS,gh as MIXINS,Kt as NODE_ENV,En as OPTIONS,ze as PACKAGE_MANAGER_TO_CDN,tn as PARSED_DOMQ_PROPERTIES,Eh as POSITION_PROPS,De as PROPS_METHODS,Ct as REGISTRY,wl as ROUTER_OPTIONS,Nf as STATE_PROPERTIES,ys as SVG_TAGS,Th as THEME_PROPS,vs as TIMING_PROPS,Xo as TYPES,xa as UNIVERSAL_RESERVED_KEYS,ah as VALUE_TRANSFORMERS,G1 as activateConfig,Ji as addCaching,Zi as addContext,dc as addDelegatedEvent,Ru as addExtend,kt as addExtends,vf as addItemAfterEveryElement,Cs as addMethods,Jo as addProtoToArray,Ki as addRef,ES as animation,Qa as appendSVGSprite,ec as appendSvgIconsSprite,zh as applyAttrTransforms,Xm as applyCSS,Ju as applyDependentState,Ya as applyDocument,na as applyEvent,sa as applyEventUpdate,_s as applyExtends,Qd as applyHeadings,Nh as applyInitialState,dr as applyMediaSequenceVars,_n as applyProps,rc as applyReset,Fa as applySequenceGlobalVars,qe as applySequenceVars,qa as applySpacingSequence,Wt as applyStateMethods,Xa as applyTimingSequence,Ih as applyTrueProps,Ua as applyTypographySequence,yf as arrayContainsOtherArray,Af as arraysEqual,lr as arrayzeValue,Ie as batch,CS as breakpoints,ts as buildImgSrcset,es as buildSourcesAndImg,sp as cache,Sr as cacheNode,Lp as call,Bp as captureSnapshot,ch as changeGlobalTheme,oS as changeLightness,Ye as checkAttributeByTagName,Vh as checkEventFunctions,Ku as checkForStateTypes,Ha as checkIfBoxSize,oa as checkIfInherits,Of as checkIfStringIsInArray,$S as class,zf as clone,pn as cloneAndMergeArrayExtend,fu as cloneFunction,mS as color,ye as colorStringToRgbaArray,ko as components,Au as concatAddExtends,Da as convertSvgToSymbol,Sd as copyJavaScriptToClipboard,xd as copyStringToClipboard,zb as create,IF as createAsync,Gi as createBasedOnType,Qb as createComputed,zd as createConfig,$w as createDefine,st as createEffect,qu as createElement,Ii as createElementExtends,hn as createExtends,to as createExtendsFromKeys,Li as createExtendsStack,ms as createHTMLNode,uu as createIfConditionFlag,Xu as createInheritedState,ln as createKey,Xf as createNestedObject,Zu as createNestedObjectByKeyPath,ki as createObjectWithoutPrototype,Xi as createParent,Yi as createPath,wn as createProps,Wi as createPropsStack,Hu as createRoot,ep as createScope,Pe as createSignal,FF as createSkeleton,cn as createSnapshotId,q_ as createState,Nt as createStore,$F as createSync,Ke as css,jd as cssMediaVars,Md as cssVars,Lf as customDecodeURIComponent,Df as customEncodeURIComponent,wf as cutArrayAfterValue,_f as cutArrayBeforeValue,un as debounce,au as debounceOnContext,Ff as decodeNewlines,X as deepClone,Gf as deepContains,Yn as deepDefaults,Mt as deepDestringifyFunctions,Pi as deepExtend,W as deepMerge,ie as deepMergeExtends,rn as deepStringifyFunctions,Ao as defaultDefine,Fp as defineSetter,nn as destringifyGlobalScope,Ns as destroy,Yp as detectHeightOnInit,Qf as detectInfiniteLoop,xr as detectTag,AS as devices,wr as dispose,$f as encodeNewlines,cr as error,eu as excludeKeysFromObject,G as exec,kO as executeAttr,ZT as exetuteClassPerComponent,Eu as extendCachedRegistry,gn as extendStackRegistry,yn as extractArrayExtend,vO as extractConditionalAttrs,_a as fetchLibraryData,Jp as fibonacciNumberByIndex,Ef as filterArrays,Tf as filterArraysFast,wO as filterAttributesByTagName,Ni as finalizeExtends,Sa as findClosestNumber,dd as findClosestNumberInFactory,Gd as findHeadingLetter,$a as findHeadings,ra as findInheritedState,Pf as findKeyPosition,eo as flattenExtend,lS as font,pS as fontFace,fS as fontFamily,uS as fontFamilyTypes,Kp as formatDate,Ti as generateHash,an as generateKey,fd as generateMetaTags,Bt as generateSequence,BS as generateSequencePosition,cs as generateSprite,Pa as generateSubSequence,Rp as get,A as getActiveConfig,ph as getActiveDocument,zs as getActiveLang,Jt as getCDNUrl,__ as getCacheSize,$u as getCapitalCaseKeys,uo as getCdnProviderFromConfig,ea as getChildStateInKey,Dn as getChildren,Y as getColor,$d as getColorShade,zn as getContext,bu as getCookie,Gn as getDB,mo as getDefaultOrFirstKey,Cd as getEmotionStylesheet,Pu as getExtendsInElement,dn as getExtendsStack,Ri as getExtendsStackRegistry,He as getFnPrefixAndValue,iS as getFontFace,yo as getFontFaceEach,Nd as getFontFaceEachString,ka as getFontFaceString,za as getFontFamily,Dd as getFontFormat,Wa as getFontSizeByKey,bf as getFrequencyInArray,mn as getHashedExtend,qp as getImportMapScript,Jf as getInObjectByPath,kl as getLanguages,Tl as getLocalStateLang,Su as getLocalStorage,ht as getMediaColor,te as getMediaTheme,iu as getNev,mi as getObserver,ud as getPageMetadata,ta as getParentStateInKey,Ln as getPath,Kn as getQuery,Ip as getRef,ur as getRgbTone,jn as getRoot,Vn as getRootContext,Bn as getRootData,Mn as getRootState,Qi as getRootStateInKey,Ia as getSequenceValue,qd as getSequenceValueBySymbols,_e as getSequenceValuePropertyPair,Ka as getShadow,rx as getSignals,le as getSpacingBasedOnRatio,at as getSpacingByKey,Fu as getSpreadChildren,Ra as getSubratio,Oa as getSubratioDifference,Ut as getSystemGlobalTheme,Ma as getTheme,Vt as getTimingByKey,ee as getTimingFunction,hf as global,yS as gradient,IS as grid,Yr as hasFunction,Zr as hasHandlerPlugin,Wf as hasOwnProperty,Qx as hexToRgb,Od as hexToRgbArray,eS as hexToRgba,Id as hslToRgb,SS as icons,Fi as inheritChildExtends,$i as inheritChildPropsExtends,kn as inheritParentProps,Di as inheritRecursiveChildExtends,Ce as init,Ay as initPolyglot,zu as initProps,ot as injectGlobal,_t as is,T as isArray,bi as isBoolean,et as isCSSVar,Du as isContextComponent,tu as isCyclic,xt as isDOMNode,Si as isDate,St as isDefined,Me as isDevelopment,_i as isEmpty,Hf as isEmptyObject,wi as isEqualDeep,C as isFunction,os as isGoogleFontsUrl,Ko as isHtmlElement,su as isLocal,Mp as isMethod,mu as isMobile,de as isNode,mf as isNot,sr as isNotProduction,xi as isNull,ne as isNumber,S as isObject,L as isObjectLike,td as isPhoto,Ne as isProduction,be as isResolvedColor,Vr as isScalingUnit,nu as isStaging,Yu as isState,pt as isStore,w as isString,lu as isStringFunction,bs as isSvgTag,vi as isTest,ou as isTesting,ct as isUndefined,zp as isUniversallyReservedKey,vu as isValidHtmlTag,gs as isValidTag,kw as isWasmLoaded,Hr as joinArrays,Ou as jointStacks,hs as keyframes,ya as keys,sd as loadCssFile,id as loadJavascript,rd as loadJavascriptFile,nd as loadJavascriptFileEmbedSync,od as loadJavascriptFileSync,ad as loadRemoteCSS,po as loadRemoteScript,Cl as loadTranslations,ww as loadWasm,Dp as log,hu as logGroupIf,du as logIf,Ep as lookdown,Tp as lookdownAll,Ap as lookup,rr as lowercaseFirstLetter,qf as makeObjectWithoutPrototype,Bf as map,bn as mapStringsWithContextComponents,ae as matchesComponentNaming,dS as media,cu as memoize,Z as merge,Zn as mergeSharedLibraries,Jx as mixTwoColors,rS as mixTwoRgb,Fd as mixTwoRgba,Wn as nextElement,ho as normalizeLibraryKey,Se as numToLetterMap,on as objectToString,Sn as objectizeStringProperty,rs as opacify,sn as overwrite,wt as overwriteDeep,nr as overwriteShallow,Qu as overwriteState,ba as parse,Ue as parseColorToken,$n as parseDeep,Vi as pickupElementFromProps,Bi as pickupPropsFromElement,Us as polyglotFunctions,Ol as polyglotPlugin,lt as popConfig,Hn as previousElement,Vu as propExists,zi as propertizeElement,Bu as propertizeUpdate,ft as pushConfig,Ss as registerEvent,Km as reinit,ks as remove,_d as removeChars,xu as removeCookie,hc as removeDelegatedEvent,Cn as removeDuplicateProps,qr as removeDuplicatesInArray,xf as removeFromArray,Kf as removeFromObject,Yf as removeNestedKeyByPath,Zo as removeValueFromArray,kf as removeValueFromArrayAll,Cf as reorderArrayByValues,er as replaceLiteralsWithObjectFields,If as replaceOctalEscapeSequences,vt as resolveAsset,nc as resolveColorsInGradient,Mh as resolveFileSource,Qt as resolveFileUrl,Jr as resolveHandler,Xe as resolvePropValue,yd as resolveSharedLibraries,sS as returnSubThemeOrDefault,qi as returnValueAsText,Rd as rgbArrayToHex,Pd as rgbToHSL,tS as rgbToHex,Xt as runPluginHook,Jd as runThroughMedia,ss as scratchDefaultConfig,ps as scratchSystem,hr as scratchUtils,gf as self,_S as semanticIcons,We as sequence,So as set,Vd as setActiveConfig,m_ as setActiveDocument,Nn as setActiveRootState,TP as setClass,rO as setClassname,gr as setColor,yu as setCookie,bl as setCssEngineHook,wa as setCustomFont,pr as setCustomFontMedia,u_ as setEach,Va as setFont,fs as setFontFamily,ns as setFontImport,mr as setGradient,Oi as setHashedExtend,Ld as setInCustomFontMedia,Zf as setInObjectByPath,Al as setLang,_u as setLocalStorage,Ba as setMediaTheme,ma as setNodeStyles,Jb as setObserver,Pp as setProps,vn as setPropsPrototype,us as setSVG,Ta as setScalingVar,yr as setShadow,Wd as setSubScalingVar,tc as setSvgIcon,ja as setTheme,f_ as setValue,VS as setVariables,lc as setWasmEngine,xS as shadow,gS as spacing,Ga as splitSpacedValue,fr as splitTopLevelCommas,ih as splitTransition,Fn as spotByPath,go as srcsetFor,Qo as stringIncludesAny,Uf as stringToObject,TS as svg,OS as svgData,Sf as swapItemsInArray,An as syncProps,RS as templates,bS as theme,kS as timing,Ca as toCamel,Jn as toCamelCase,Qn as toDashCase,kd as toDescriptionCase,wd as toTitleCase,Wp as toggleFullscreen,nh as transformBackgroundImage,we as transformBorder,ic as transformBorderRadius,oc as transformBoxShadow,V_ as transformClassname,sc as transformDuration,oh as transformShadow,rt as transformSize,N as transformSizeRatio,rh as transformTextStroke,c_ as transformTransition,$h as transformersByPrefix,sh as transfromGap,vl as translate,je as triggerEventOn,np as triggerEventOnUpdate,Rf as trimStringFromSymbols,va as typography,aS as unit,Yo as unstackArrayOfObjects,ws as update,Uu as updateProps,EP as updateVars,El as upsertTranslation,Pt as useCssInProps,j_ as usePropsAsCSS,B_ as useSelectorsAsCSS,qn as variables,DS as vars,fo as verbose,Un as warn,k as window};
|
|
77
|
+
`}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},Vb={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(af):t.extends?t.extends=[t.extends,af]:t.extends=[af]}};var yk=async(t,e={})=>{let r=e.symbolsConfig,o=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,n=e.key=e.key||o||(w(t)?t:"smblsapp");if(e.define=e.define||Ao,e.cssPropsRegistry=nt,e.window=dy(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(p=>typeof p=="string")){let{resolveSharedLibraries:p}=await Promise.resolve().then(()=>(O(),Od));e.sharedLibraries=await p(e.sharedLibraries)}vy(e)}let[s,i]=_y(n,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&Gs.prepareContext(e);let a=wy(t,e);e.state=a,Mn(a),e.pages=ky(t,e),e.components=hy(e),e.utils=gy(e),Ve[e.packageManager]&&(e.dependencies=await yy(e)),e.methods=my(e),e.routerOptions=Qm(t,e),e.defaultExtends=[Ps],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&S(e.globalScope)&&(e.globalScope=nn(e.globalScope));let c=(u,p)=>{let d=p?u[p]:u;if(!S(d))return;let h=Mt(d);try{Object.assign(d,h)}catch(g){if(p)u[p]=h;else throw g}};c(t),c(e,"components"),c(e,"pages"),c(e,"functions"),c(e,"methods"),c(e,"snippets"),c(e,"app"),e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.db&&e.db.__resolved&&delete e.db.__resolved;let l=u=>e.plugins.some(p=>p.name===u);if(e.polyglot&&!l("polyglot")){e.plugins.push(Rl);for(let u in Ws)u in e.functions||(e.functions[u]=Ws[u])}if(l("helmet")||e.plugins.push(ny),e.fetch&&!l("fetch")&&e.plugins.push(ga),e.designSystem?.typography?.useCapsize!==!1&&!l("capsize")&&(e.plugins.push(Oy),e.cssPropsRegistry.useCapsize=Ty),e.shorthand&&!l("shorthand")&&e.plugins.push(Gs),e.analyze&&!l("analyze")){let u=e.analyze===!0?{}:e.analyze;e.analyze=Wl(u),e.plugins.push(Fo)}return e.sync!==!1&&!l("sync")&&e.plugins.push(Mb),e.inspect&&!l("inspect")&&e.plugins.push(Vb),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!l("notifications")&&e.plugins.push(Nb),e},lf=async(t,e)=>{S(e)||(e={}),pe(t)?(t={},e.parent=t):w(t)?(t={},e.key=t):S(t)||(t={});let r=e.window||(typeof window<"u"?window:null),o=r?.__BRENDER__,n=null;if(o){let c=e.document||(typeof document<"u"?document:null);c&&(n=Array.from(c.head.querySelectorAll("style")))}if(await yk(t,e),e.useReset!==!1){let c=e.document||(typeof document<"u"?document:null);if(c){let l=c.head.querySelector("style[data-smbls]");l||(l=c.createElement("style"),l.setAttribute("data-smbls",""),c.head.appendChild(l));let f=l.sheet;if(f){try{f.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{f.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&S(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=ly(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await by({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate=="function")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin "${c.name||"?"}" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return t;let i=e.parent||s.body;if(o)return bk(zt,t,i,e,r,n);let a=zt(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},bk=async(t,e,r,o,n,s)=>{let i=r.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of r.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f==="script"||f==="link"||f==="style"||f==="svg"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll("[data-br]").forEach(l=>l.removeAttribute("data-br"));let c=t(e,r,o.key,{verbose:o.verbose,context:o,...o.domqlOptions});return xk(n),c},xk=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var ff=(t,e)=>W(t,S(e)?e:{}),Sk=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let r=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(r=s)}}catch{}let o=t.themeStorageKey;if(r==="auto"&&o&&typeof localStorage<"u")try{let s=localStorage.getItem(o);s&&(r=s)}catch{}let n=r==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():r;e.setAttribute("data-theme",n),t.globalTheme=r,t.themeRoot=e},_k=()=>{if(typeof document>"u")return null;try{let t=document.querySelector('meta[name="symbols-runtime"]'),e=t&&t.getAttribute("content");return typeof e=="string"&&e?e:null}catch{return null}},zb=t=>{let e=_k();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},Ub=(t,e=Ce,r)=>{let o={...Ce,...ff(e,r)};return zb(o),Sk(o),lf(t,o).then(s=>{if(_l(s,o),s.destroy=()=>Ms(s),s.onCreate&&s.onCreate(s,s.state,s.context,o),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},jF=(t,e=Ce,r)=>{let o=Ub(t,e,r),n={...Ce,...ff(e,r)},s=n.key;return oy(o,s,{utils:Co,...n}),o},LF=async(t,e=Ce,r)=>{let o={...Ce,...ff(e,r)};zb(o);let n=e.key;await ry(n,o);let s=await lf(t,o);return _l(s,o),s.destroy=()=>Ms(s),o.onCreate&&await o.onCreate(s,s.state,s.context,o),s},MF=(t={},e=Ce,r)=>Ub({deps:{isUndefined:ct},...t},W({domqlOptions:{onlyResolveExtends:!0}},e),r);xl(fc);export{vh as ANIMATION_PROPS,CO as ARIA_ROLES,Bh as ATTR_TRANSFORMS,Ch as BLOCK_PROPS,Xt as CDN_PROVIDERS,Ea as CONFIG,ae as CSS_NATIVE_COLOR_REGEX,nt as CSS_PROPS_REGISTRY,Br as CSS_UNITS,Es as DEFAULT_CONFIG,gt as DEFAULT_CSS_PROPERTIES_LIST,Ss as DELEGATED_EVENTS,cy as DESIGN_SYSTEM_OPTIONS,Nf as DOMQL_EVENTS,Ie as DOMQ_PROPERTIES,X_ as DOM_EVENTS,ou as ENV,be as FACTORY,Rh as FLEX_PROPS,Ah as FONT_PROPS,Ph as GRID_PROPS,Sc as HTML_ATTRIBUTES,Jr as HTML_TAGS,xr as LIFECYCLE_EVENTS,Gr as METHODS,en as METHODS_EXL,Eh as MISC_PROPS,mh as MIXINS,Kt as NODE_ENV,Tn as OPTIONS,Ve as PACKAGE_MANAGER_TO_CDN,tn as PARSED_DOMQ_PROPERTIES,Th as POSITION_PROPS,Fe as PROPS_METHODS,Ct as REGISTRY,kl as ROUTER_OPTIONS,Mf as STATE_PROPERTIES,bs as SVG_TAGS,Oh as THEME_PROPS,Cs as TIMING_PROPS,Yo as TYPES,Sa as UNIVERSAL_RESERVED_KEYS,ch as VALUE_TRANSFORMERS,X1 as activateConfig,Qi as addCaching,Ji as addContext,hc as addDelegatedEvent,Pu as addExtend,kt as addExtends,Cf as addItemAfterEveryElement,As as addMethods,Jo as addProtoToArray,Yi as addRef,OS as animation,tc as appendSVGSprite,rc as appendSvgIconsSprite,Uh as applyAttrTransforms,Xm as applyCSS,Qu as applyDependentState,Za as applyDocument,sa as applyEvent,ia as applyEventUpdate,ws as applyExtends,th as applyHeadings,Mh as applyInitialState,ur as applyMediaSequenceVars,wn as applyProps,oc as applyReset,Da as applySequenceGlobalVars,He as applySequenceVars,Ga as applySpacingSequence,Wt as applyStateMethods,Xa as applyTimingSequence,$h as applyTrueProps,Wa as applyTypographySequence,bf as arrayContainsOtherArray,Ef as arraysEqual,ar as arrayzeValue,Pe as batch,ES as breakpoints,es as buildImgSrcset,rs as buildSourcesAndImg,ip as cache,br as cacheNode,Lp as call,Vp as captureSnapshot,lh as changeGlobalTheme,sS as changeLightness,Ye as checkAttributeByTagName,zh as checkEventFunctions,Yu as checkForStateTypes,qa as checkIfBoxSize,na as checkIfInherits,Rf as checkIfStringIsInArray,DS as class,Uf as clone,dn as cloneAndMergeArrayExtend,uu as cloneFunction,bS as color,me as colorStringToRgbaArray,ko as components,Eu as concatAddExtends,ja as convertSvgToSymbol,_d as copyJavaScriptToClipboard,Sd as copyStringToClipboard,Ub as create,jF as createAsync,Ki as createBasedOnType,tx as createComputed,Ud as createConfig,Dw as createDefine,st as createEffect,Gu as createElement,$i as createElementExtends,gn as createExtends,Qr as createExtendsFromKeys,Li as createExtendsStack,ys as createHTMLNode,pu as createIfConditionFlag,Xu as createInheritedState,ln as createKey,Xf as createNestedObject,Ju as createNestedObjectByKeyPath,vi as createObjectWithoutPrototype,Xi as createParent,Zi as createPath,kn as createProps,Hi as createPropsStack,qu as createRoot,rp as createScope,Re as createSignal,MF as createSkeleton,cn as createSnapshotId,K_ as createState,Lt as createStore,LF as createSync,Ge as css,Bd as cssMediaVars,Nd as cssVars,Lf as customDecodeURIComponent,jf as customEncodeURIComponent,kf as cutArrayAfterValue,wf as cutArrayBeforeValue,un as debounce,cu as debounceOnContext,Df as decodeNewlines,Y as deepClone,Kf as deepContains,Zn as deepDefaults,Mt as deepDestringifyFunctions,Ii as deepExtend,W as deepMerge,se as deepMergeExtends,rn as deepStringifyFunctions,Ao as defaultDefine,Dp as defineSetter,nn as destringifyGlobalScope,Ms as destroy,Zp as detectHeightOnInit,tu as detectInfiniteLoop,yr as detectTag,TS as devices,Sr as dispose,Ff as encodeNewlines,ir as error,ru as excludeKeysFromObject,G as exec,EO as executeAttr,eO as exetuteClassPerComponent,Tu as extendCachedRegistry,mn as extendStackRegistry,bn as extractArrayExtend,TO as extractConditionalAttrs,wa as fetchLibraryData,Qp as fibonacciNumberByIndex,Tf as filterArrays,Of as filterArraysFast,AO as filterAttributesByTagName,Mi as finalizeExtends,_a as findClosestNumber,hd as findClosestNumberInFactory,Kd as findHeadingLetter,Fa as findHeadings,oa as findInheritedState,If as findKeyPosition,to as flattenExtend,uS as font,hS as fontFace,pS as fontFamily,dS as fontFamilyTypes,Yp as formatDate,Oi as generateHash,an as generateKey,ud as generateMetaTags,Bt as generateSequence,zS as generateSequencePosition,ls as generateSprite,Ia as generateSubSequence,Pp as get,A as getActiveConfig,dh as getActiveDocument,Us as getActiveLang,Zt as getCDNUrl,k_ as getCacheSize,Fu as getCapitalCaseKeys,fo as getCdnProviderFromConfig,ra as getChildStateInKey,jn as getChildren,X as getColor,Fd as getColorShade,Un as getContext,xu as getCookie,Kn as getDB,go as getDefaultOrFirstKey,Ad as getEmotionStylesheet,Iu as getExtendsInElement,hn as getExtendsStack,Pi as getExtendsStackRegistry,We as getFnPrefixAndValue,cS as getFontFace,mo as getFontFaceEach,Md as getFontFaceEachString,va as getFontFaceString,Ua as getFontFamily,jd as getFontFormat,Ha as getFontSizeByKey,xf as getFrequencyInArray,yn as getHashedExtend,Gp as getImportMapScript,Qf as getInObjectByPath,vl as getLanguages,Ol as getLocalStateLang,_u as getLocalStorage,ht as getMediaColor,Qt as getMediaTheme,au as getNev,yi as getObserver,pd as getPageMetadata,ea as getParentStateInKey,Ln as getPath,Yn as getQuery,$p as getRef,lr as getRgbTone,Bn as getRoot,zn as getRootContext,Vn as getRootData,Nn as getRootState,ta as getRootStateInKey,$a as getSequenceValue,Gd as getSequenceValueBySymbols,Se as getSequenceValuePropertyPair,Ya as getShadow,ox as getSignals,ce as getSpacingBasedOnRatio,at as getSpacingByKey,Du as getSpreadChildren,Pa as getSubratio,Ra as getSubratioDifference,Ut as getSystemGlobalTheme,Na as getTheme,Vt as getTimingByKey,te as getTimingFunction,gf as global,xS as gradient,FS as grid,Kr as hasFunction,Yr as hasHandlerPlugin,Hf as hasOwnProperty,eS as hexToRgb,Rd as hexToRgbArray,oS as hexToRgba,$d as hslToRgb,wS as icons,Di as inheritChildExtends,Fi as inheritChildPropsExtends,vn as inheritParentProps,ji as inheritRecursiveChildExtends,ve as init,Ey as initPolyglot,Uu as initProps,ot as injectGlobal,_t as is,T as isArray,xi as isBoolean,et as isCSSVar,ju as isContextComponent,eu as isCyclic,xt as isDOMNode,_i as isDate,St as isDefined,Le as isDevelopment,wi as isEmpty,qf as isEmptyObject,ki as isEqualDeep,C as isFunction,ns as isGoogleFontsUrl,Ko as isHtmlElement,iu as isLocal,Np as isMethod,yu as isMobile,pe as isNode,yf as isNot,nr as isNotProduction,Si as isNull,oe as isNumber,S as isObject,j as isObjectLike,ed as isPhoto,je as isProduction,ye as isResolvedColor,Nr as isScalingUnit,su as isStaging,Zu as isState,pt as isStore,w as isString,fu as isStringFunction,xs as isSvgTag,Ci as isTest,nu as isTesting,ct as isUndefined,Up as isUniversallyReservedKey,Cu as isValidHtmlTag,ms as isValidTag,Cw as isWasmLoaded,Ur as joinArrays,Ru as jointStacks,gs as keyframes,ba as keys,id as loadCssFile,ad as loadJavascript,od as loadJavascriptFile,sd as loadJavascriptFileEmbedSync,nd as loadJavascriptFileSync,cd as loadRemoteCSS,uo as loadRemoteScript,Al as loadTranslations,vw as loadWasm,jp as log,gu as logGroupIf,hu as logIf,Tp as lookdown,Op as lookdownAll,Ep as lookup,er as lowercaseFirstLetter,Gf as makeObjectWithoutPrototype,Vf as map,xn as mapStringsWithContextComponents,ie as matchesComponentNaming,gS as media,lu as memoize,Z as merge,Jn as mergeSharedLibraries,tS as mixTwoColors,nS as mixTwoRgb,Dd as mixTwoRgba,Hn as nextElement,po as normalizeLibraryKey,xe as numToLetterMap,on as objectToString,_n as objectizeStringProperty,os as opacify,sn as overwrite,wt as overwriteDeep,or as overwriteShallow,tp as overwriteState,xa as parse,ze as parseColorToken,Fn as parseDeep,zi as pickupElementFromProps,Vi as pickupPropsFromElement,Ws as polyglotFunctions,Rl as polyglotPlugin,lt as popConfig,qn as previousElement,zu as propExists,Ui as propertizeElement,Vu as propertizeUpdate,ft as pushConfig,_s as registerEvent,Ym as reinit,vs as remove,wd as removeChars,Su as removeCookie,gc as removeDelegatedEvent,An as removeDuplicateProps,Wr as removeDuplicatesInArray,Sf as removeFromArray,Yf as removeFromObject,Zf as removeNestedKeyByPath,Zo as removeValueFromArray,vf as removeValueFromArrayAll,Af as reorderArrayByValues,tr as replaceLiteralsWithObjectFields,$f as replaceOctalEscapeSequences,vt as resolveAsset,sc as resolveColorsInGradient,Nh as resolveFileSource,Jt as resolveFileUrl,Xr as resolveHandler,Ke as resolvePropValue,bd as resolveSharedLibraries,aS as returnSubThemeOrDefault,Gi as returnValueAsText,Pd as rgbArrayToHex,Id as rgbToHSL,rS as rgbToHex,Zr as runPluginHook,Qd as runThroughMedia,is as scratchDefaultConfig,ds as scratchSystem,pr as scratchUtils,mf as self,kS as semanticIcons,Ue as sequence,xo as set,zd as setActiveConfig,b_ as setActiveDocument,Mn as setActiveRootState,IP as setClass,iO as setClassname,dr as setColor,bu as setCookie,xl as setCssEngineHook,ka as setCustomFont,fr as setCustomFontMedia,d_ as setEach,za as setFont,us as setFontFamily,ss as setFontImport,hr as setGradient,Ri as setHashedExtend,Ld as setInCustomFontMedia,Jf as setInObjectByPath,El as setLang,wu as setLocalStorage,Va as setMediaTheme,ya as setNodeStyles,Qb as setObserver,Ip as setProps,Cn as setPropsPrototype,ps as setSVG,Oa as setScalingVar,gr as setShadow,Hd as setSubScalingVar,ec as setSvgIcon,Ba as setTheme,p_ as setValue,US as setVariables,fc as setWasmEngine,_S as shadow,yS as spacing,Ka as splitSpacedValue,cr as splitTopLevelCommas,ah as splitTransition,Dn as spotByPath,ho as srcsetFor,Qo as stringIncludesAny,Wf as stringToObject,RS as svg,PS as svgData,_f as swapItemsInArray,En as syncProps,IS as templates,SS as theme,CS as timing,Aa as toCamel,Qn as toCamelCase,ts as toDashCase,vd as toDescriptionCase,kd as toTitleCase,Hp as toggleFullscreen,sh as transformBackgroundImage,_e as transformBorder,ac as transformBorderRadius,nc as transformBoxShadow,U_ as transformClassname,ic as transformDuration,nh as transformShadow,rt as transformSize,L as transformSizeRatio,oh as transformTextStroke,f_ as transformTransition,Fh as transformersByPrefix,ih as transfromGap,Cl as translate,Me as triggerEventOn,sp as triggerEventOnUpdate,Pf as trimStringFromSymbols,Ca as typography,lS as unit,Xo as unstackArrayOfObjects,ks as update,Wu as updateProps,PP as updateVars,Tl as upsertTranslation,Pt as useCssInProps,V_ as usePropsAsCSS,z_ as useSelectorsAsCSS,Gn as variables,LS as vars,lo as verbose,Wn as warn,k as window};
|