smbls 3.14.568 → 3.14.577

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.
@@ -1,2 +1,2 @@
1
1
  // Auto-generated by scripts/build-iife-string.mjs — do not edit.
2
- export default "\"use strict\";var Smbls=(()=>{var P_=Object.create;var ci=Object.defineProperty;var I_=Object.getOwnPropertyDescriptor;var $_=Object.getOwnPropertyNames;var F_=Object.getPrototypeOf,D_=Object.prototype.hasOwnProperty;var D=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var Lc=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},I=(t,e)=>{for(var r in e)ci(t,r,{get:e[r],enumerable:!0})},Oh=(t,e,r,n)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of $_(e))!D_.call(t,o)&&o!==r&&ci(t,o,{get:()=>e[o],enumerable:!(n=I_(e,o))||n.enumerable});return t};var L_=(t,e,r)=>(r=t!=null?P_(F_(t)):{},Oh(e||!t||!t.__esModule?ci(r,\"default\",{value:t,enumerable:!0}):r,t)),M_=t=>Oh(ci({},\"__esModule\",{value:!0}),t);var qc,Kc,k,q,Fn=D(()=>{\"use strict\";qc=globalThis,Kc=globalThis,k=globalThis,q=k.document});var ye,Dn,kt,Ln=D(()=>{\"use strict\";Fn();ye=t=>(typeof Node==\"object\"?t instanceof k.Node:t&&typeof t==\"object\"&&typeof t.nodeType==\"number\"&&typeof t.nodeName==\"string\")||!1,Dn=t=>(typeof HTMLElement==\"object\"?t instanceof k.HTMLElement:t&&typeof t==\"object\"&&t!==null&&t.nodeType===1&&typeof t.nodeName==\"string\")||!1,kt=t=>typeof k<\"u\"&&(k.Node&&t instanceof k.Node||k.Window&&t instanceof k.Window||t===k||t===document)});var S,w,ne,v,di,hi,T,gi,N,vt,ht,Mn,Ct,Yc,gt=D(()=>{\"use strict\";Ln();S=t=>t===null?!1:typeof t==\"object\"&&t.constructor===Object,w=t=>typeof t==\"string\",ne=t=>typeof t==\"number\",v=t=>typeof t==\"function\",di=t=>t===!0||t===!1,hi=t=>t===null,T=t=>Array.isArray(t),gi=t=>t instanceof Date,N=t=>t===null?!1:typeof t==\"object\",vt=t=>t!==void 0,ht=t=>t===void 0,Mn={boolean:di,array:T,object:S,string:w,date:gi,number:ne,null:hi,function:v,objectLike:N,node:ye,htmlElement:Dn,defined:vt},Ct=t=>(...e)=>e.some(r=>Mn[r](t)),Yc=t=>(...e)=>!e.some(r=>Mn[r](t))});var Xc,Zc,Jc,Qc,Or,Nn,tl,el,jn,rl,nl,ol,sl,il,al,cl,Rr,Bn,Pr=D(()=>{\"use strict\";be();gt();Xc=(t,e)=>e.every(r=>t.includes(r)),Zc=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},Jc=(t,e)=>{if(w(e)&&(e=parseInt(e)),ne(e)){if(e<0||e>=t.length||isNaN(e))throw new Error(\"Invalid index\");t.splice(e,1)}else throw new Error(\"Invalid index\");return t},Qc=(t,e,r)=>{e<0||r<0||e>=t.length||r>=t.length||([t[e],t[r]]=[t[r],t[e]])},Or=(...t)=>[].concat(...t),Nn=(t,e=[])=>t.reduce((r,n)=>W(r,Q(n,{exclude:e}),e),{}),tl=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},el=(t,e)=>{if(!T(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},jn=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},rl=(t,e)=>t.filter(r=>r!==e),nl=(t,e)=>{let r=[];for(let n=0;n<t.length;n++)r.push(t[n]),n<t.length-1&&r.push(e);return r},ol=(t,e,r)=>{let n=[...t],o=n.indexOf(e),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},sl=(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},il=(t,e)=>t.filter(r=>!e.includes(r)),al=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},cl=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},Rr=t=>T(t)?[...new Set(t)]:t,Bn=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function lr(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?\"{{{\":\"{{\";if(!t.includes(o))return t;let s=V_[n],i=e||this.state||{},a=this;return t.replace(s,(c,l,f,u)=>{let p=f.trim();if(u){let d=a?.context,h=d?.functions?.[u]||d?.utils?.[u]||d?.methods?.[u]||d?.snippets?.[u]||a?.[u];if(h&&typeof h==\"function\")try{return String(h.call(a,p)??\"\")}catch{return\"\"}return\"\"}if(l){let d=(l.match(/\\.\\.\\//g)||[]).length,h=i;for(let m=0;m<d;m++){if(!h||!h.parent)return\"\";h=h.parent}if(p===\"parent\")return String(h.value??\"\");let g=Vn(h,p);return String(g??\"\")}else{let d=Vn(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=Vn(m,p);if(b!=null&&typeof b!=\"object\")return String(b);for(let _ in m){let x=m[_];if(x&&typeof x==\"object\"&&!Array.isArray(x)){let C=Vn(x,p);if(C!=null&&typeof C!=\"object\")return String(C)}}}let y=Vn(h.translations,p);if(y!=null&&typeof y!=\"object\")return String(y)}return\"\"}})}var Un,ll,V_,Vn,fr,fl,U_,ul,pl,dl,z_,hl,gl,zn=D(()=>{\"use strict\";Un=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},ll=(t,e)=>{let r=new RegExp(`[${e.join(\"\\\\\")}]`,\"g\");return t.replace(r,\"\")},V_={2:/{{\\s*((?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}/g,3:/{{{(\\s*(?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}}/g},Vn=(t,e)=>e.split(\".\").reduce((r,n)=>r?.[n],t);fr=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,fl=(t,e)=>{let r=t.split(`\n`),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\\\b${e}\\\\b\\\\s*:\\\\s*`),c=0,l=!1;for(let f=0;f<r.length;f++)if(a.test(r[f])&&!l){if(l=!0,n=f+1,s=r[f].indexOf(e)+1,r[f].includes(\"{}\")){o=n,i=r[f].indexOf(\"{}\")+3;break}let u=r[f].slice(s+e.length);if(u.includes(\"{\")||u.includes(\"[\"))c=1;else{o=f+1,i=r[f].length+1;break}}else if(l&&(c+=(r[f].match(/{/g)||[]).length,c+=(r[f].match(/\\[/g)||[]).length,c-=(r[f].match(/}/g)||[]).length,c-=(r[f].match(/]/g)||[]).length,c===0)){o=f+1,i=r[f].lastIndexOf(\"}\")!==-1?r[f].lastIndexOf(\"}\")+2:r[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},U_=/\\\\([0-7]{1,3})/g,ul=t=>t.replace(U_,(e,r)=>String.fromCharCode(parseInt(r,8))),pl=t=>t.replace(/\\n/g,\"/////n\").replace(/`/g,\"/////tilde\").replace(/\\$/g,\"/////dlrsgn\"),dl=t=>t.replace(/\\/\\/\\/\\/\\/n/g,`\n`).replace(/\\/\\/\\/\\/\\/tilde/g,\"`\").replace(/\\/\\/\\/\\/\\/dlrsgn/g,\"$\"),z_=/[^a-zA-Z0-9\\s]/g,hl=t=>t.replace(z_,e=>\"%\"+e.charCodeAt(0).toString(16).toUpperCase()),gl=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var Oe,Wn,ml,ur,Re,Ir,Hn,yl,$r=D(()=>{\"use strict\";Oe=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\"]),Wn=new Set([\"attr\",\"style\",\"text\",\"html\",\"content\",\"data\",\"class\",\"state\",\"scope\",\"children\",\"props\",\"if\",\"key\",\"tag\",\"query\",\"on\",\"context\"]),ml=[\"ref\",\"parent\",\"__element\",\"__depends\",\"__ref\",\"__children\",\"root\"],ur=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\"]),Re=new Set([\"update\",\"__element\"]),Ir=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\"]),Hn=new Set([\"node\",\"context\",\"extends\",\"__element\",\"__ref\",...Ir,...ur,...Re]),yl=new Set([\"init\",\"beforeClassAssign\",\"render\",\"renderRouter\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeStateUpdate\",\"stateUpdate\",\"beforeUpdate\",\"done\",\"create\",\"complete\",\"frame\",\"update\",\"fetchError\",\"fetchComplete\"])});var Ph,pr,K,bl,nt,W,$h,xl,Q,Gn,W_,qn,H_,G_,q_,Fr,K_,Y_,Ih,oe,X_,Z_,J_,Kn,_l,Sl,mi,wl,kl,Yn,dr,At,yi,Q_,vl,Cl,bi,Al,El,Tl,Ol,Rl,Pl,Il,be=D(()=>{\"use strict\";Fn();gt();Pr();zn();Ln();$r();Ph=\"production\",pr=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,K=(t,e,r,n)=>{if(v(t))return e?typeof t.call!=\"function\"?t:t.call(e,e,r||e.state,n||e.context):void 0;if(t!=null&&e?.context?.plugins&&(T(t)||S(t)&&!kt(t))){let o=e.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i==\"function\")return K(i,e,r,n)}}return t},bl=(t,e,r)=>{for(let n in e)t[n]=K(e[n],r)},nt=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(pr(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},W=(t,e,r=Hn)=>$h(t,e,r,null),$h=(t,e,r,n)=>{if(t===e)return t;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===t&&n[s+1]===e)return t}let o=r instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||pr(s)||s===\"constructor\"||s===\"prototype\"||(o?r.has(s):r.includes(s)))continue;let i=t[s],a=e[s];if(N(i)&&N(a)){let c=n||[];c.push(t,e),$h(i,a,r,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},xl=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(pr(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},Q=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!N(t)||kt(t))return t;if(s.has(t))return s.get(t);let a=r instanceof Set?r:r.length>3?new Set(r):null,c=u=>a?a.has(u):r.includes(u),l=T(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,p]=f.pop();for(let d in u){if(!Object.prototype.hasOwnProperty.call(u,d)||pr(d)||d===\"__proto__\"||c(d))continue;let h=u[d];if(!(n&&h===void 0)&&!(o&&h===null)){if(kt(h)){p[d]=h;continue}if(i&&d===\"extends\"&&T(h)){p[d]=Nn(h,r);continue}if(v(h)){p[d]=h;continue}if(N(h))if(s.has(h))p[d]=s.get(h);else{let g=T(h)?[]:{};s.set(h,g),p[d]=g,f.push([h,g])}else p[d]=h}}}return l},Gn=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn(\"Trying to clone element or state at\",t),t=t.parse?.());for(let r in t){let n=t[r];if(v(n))e[r]=n.toString();else if(S(n))e[r]={},Gn(n,e[r]);else if(T(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];S(i)?(o[s]={},Gn(i,o[s])):v(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},W_=new Set([\"&\",\"*\",\"-\",\":\",\"%\",\"{\",\"}\",\">\",\"<\",\"@\",\".\",\"/\",\"!\",\" \"]),qn=(t={},e=0)=>{if(t===null||typeof t!=\"object\")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return\"{}\";let n=\" \".repeat(e),o=`{\n`;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(W_.has(s[l])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,T(i)){o+=`[\n`;for(let l of i)N(l)&&l!==null?o+=`${n} ${qn(l,e+2)},\n`:w(l)?o+=`${n} '${l}',\n`:o+=`${n} ${l},\n`;o+=`${n} ]`}else N(i)?o+=qn(i,e+1):w(i)?o+=Un(i,[`\n`,\"'\"])?`\\`${i}\\``:`'${i}'`:o+=i;o+=`,\n`}return o+=`${n}}`,o},H_=[/^\\(\\s*\\{[^}]*\\}\\s*\\)\\s*=>/,/^(\\([^)]*\\)|[^=]*)\\s*=>/,/^function[\\s(]/,/^async\\s+/,/^\\(\\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\\s*=>/],G_=/^[\"[{]/,q_=/^(export|import)\\s/,Fr=t=>{if(!t)return!1;let e=t.trim().replace(/\\n\\s*/g,\" \").trim();if(e===\"\"||e===\"{}\"||e===\"[]\"||q_.test(e)||!H_.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes(\"=>\");return!(n===123&&!o||n===91||G_.test(e)&&!o)},K_=t=>(0,eval)(t),Y_=(t,e)=>{let r=/^(\\s*(?:async\\s+)?function\\s*[\\w$]*\\s*\\([^)]*\\)\\s*)\\{/.exec(t);if(!r)return null;let n=r[0].length,o=[],s=n,i=1,a=null,c=t.length,l=new RegExp(\"^(?:const|let|var)\\\\s+\"+e+\"\\\\b\");for(;s<c&&i>0;){let u=t[s];if(u===\"/\"&&t[s+1]===\"/\"){let p=t.indexOf(`\n`,s);s=p===-1?c:p;continue}if(u===\"/\"&&t[s+1]===\"*\"){let p=t.indexOf(\"*/\",s+2);s=p===-1?c:p+2;continue}if(u==='\"'||u===\"'\"||u===\"`\"){let p=u;for(s++;s<c;){if(t[s]===\"\\\\\"){s+=2;continue}if(t[s]===p){s++;break}if(p===\"`\"&&t[s]===\"$\"&&t[s+1]===\"{\"){s+=2;let d=1;for(;s<c&&d>0;)t[s]===\"{\"?d++:t[s]===\"}\"&&d--,s++;continue}s++}continue}if(u===\"{\"){i++,s++;continue}if(u===\"}\"){i--,s++;continue}if(i===1&&l.test(t.slice(s))){let p=s,d=0,h=s;for(;h<c;){let g=t[h];if(g==='\"'||g===\"'\"||g===\"`\"){let m=g;for(h++;h<c;){if(t[h]===\"\\\\\"){h+=2;continue}if(t[h]===m){h++;break}h++}continue}if(g===\"(\"||g===\"[\"||g===\"{\"){d++,h++;continue}if(g===\")\"||g===\"]\"||g===\"}\"){if(d===0)break;d--,h++;continue}if(d===0&&(g===\";\"||g===`\n`)){h++;break}h++}o.push([p,h]),s=h;continue}s++}if(!o.length)return null;let f=t;for(let u=o.length-1;u>=0;u--)f=f.slice(0,o[u][0])+f.slice(o[u][1]);return f},Ih=(t,e,r)=>{let n=String(t).trimStart();if(/^(export|import)\\s/.test(n))return t;try{return r.window.eval(`(${t})`)}catch(o){let s=o&&o.message?o.message:String(o),i=/await is only valid in async/.test(s),a=/Identifier '([^']+)' has already been declared/.exec(s),c=null;if(i){let l=String(t).trim();if(/^function[\\s(]/.test(l))try{c=r.window.eval(\"(async \"+l+\")\")}catch{}}else if(a){let l=String(t),f=a[1];for(let u=0;u<5;u++){let p=Y_(l,f);if(!p||p===l)break;l=p;try{c=r.window.eval(\"(\"+l+\")\");break}catch(d){let h=/Identifier '([^']+)' has already been declared/.exec(d&&d.message||String(d));if(!h||h[1]!==f)break}}}return c||(typeof console<\"u\"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \\u2014 value will be left as a string. Reason: `+s+`.\nFirst 200 chars of source: `+String(t).slice(0,200)),t)}},oe=(t,e={},r={window:{eval:K_}})=>{if(!t||typeof t!=\"object\")return e;let n=[[t,e]];for(;n.length;){let[o,s]=n.pop();for(let i in o){if(!Object.prototype.hasOwnProperty.call(o,i))continue;let a=o[i];if(w(a))Fr(a)?s[i]=Ih(a,`\"${i}\"`,r):s[i]=a;else if(T(a)){let c=s[i]=[];for(let l=0;l<a.length;l++){let f=a[l];if(w(f))c.push(Fr(f)?Ih(f,`array index ${l} (prop \"${i}\")`,r):f);else if(S(f)){let u={};c.push(u),n.push([f,u])}else c.push(f)}}else if(S(a)){let c=s[i]&&typeof s[i]==\"object\"&&!T(s[i])?s[i]:s[i]={};n.push([a,c])}else s[i]=a}}return e},X_=\"Set\",Z_=\"Map\",J_=t=>!t||typeof t!=\"object\"?t:t.__type===X_&&Array.isArray(t.values)?new Set(t.values):t.__type===Z_&&Array.isArray(t.entries)?new Map(t.entries):t,Kn=t=>{if(!t||typeof t!=\"object\")return t;let e={},r=[];for(let i of Object.keys(t)){let a=t[i];w(a)&&Fr(a)?r.push([i,a]):e[i]=J_(a)}if(r.length===0)return e;let n=i=>/^[A-Za-z_$][\\w$]*$/.test(i),o=r.filter(([i])=>n(i)),s=Object.keys(e).filter(n).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`\n`);try{let i=o.map(([l,f])=>`var ${l} = (${f});`).join(`\n`),a=\"{ \"+o.map(([l])=>`${JSON.stringify(l)}: ${l}`).join(\", \")+\" }\",c=k.eval(`(function(__gs__) { ${s}\n${i}\n return ${a}; })`)(e);Object.assign(e,c)}catch{for(let[a,c]of o)try{let l=Object.keys(e).filter(n).map(f=>`var ${f} = __gs__[${JSON.stringify(f)}];`).join(`\n`);e[a]=k.eval(`(function(__gs__) { ${l}\n return (${c}); })`)(e)}catch{try{e[a]=k.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of r)if(!n(i))try{e[i]=k.eval(`(${a})`)}catch{e[i]=a}return e},_l=(t,e={verbose:!0})=>{try{return t?k.eval(\"(\"+t+\")\"):{}}catch(r){e.verbose&&console.warn(r)}},Sl=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),mi=t=>{for(let e in t)return!1;return!0},wl=t=>S(t)&&mi(t),kl=()=>Object.create(null),Yn=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&pr(s)||s===\"constructor\"||s===\"prototype\"||e[s]!==void 0&&(t[s]=e[s]);return t},dr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)pr(o)||o===\"constructor\"||o===\"prototype\"||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},At=(t,e,r={},n=new WeakMap)=>{if(!N(t)||!N(e)||kt(t)||kt(e))return e;if(n.has(t))return n.get(t);n.set(t,t);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&pr(a)||a===\"constructor\"||a===\"prototype\")continue;let c=t[a],l=e[a];kt(l)?t[a]=l:N(c)&&N(l)?t[a]=At(c,l,r,n):l!==void 0&&(t[a]=l)}return t},yi=(t,e,r=new Set)=>{if(typeof t!=\"object\"||typeof e!=\"object\"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!yi(t[i],e[i],r))return!1}return!0},Q_=new Set([\"node\",\"__ref\"]),vl=(t,e,r=Q_)=>{if(t===e)return!0;if(!N(t)||!N(e)||kt(t)||kt(e))return t===e;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(kt(l)||kt(f)){if(l!==f)return!1}else if(N(l)&&N(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},Cl=(t,e)=>{if(e==null)return t;if(Ct(e)(\"string\",\"number\"))delete t[e];else if(T(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error(\"Invalid input: props must be a string or an array of strings\");return t},bi=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]=bi(t[r]));return e},Al=(t,e)=>{if(t.length===0)return e;let r={},n=r;for(let o=0;o<t.length;o++)o===t.length-1&&e?n[t[o]]=e:(n[t[o]]={},n=n[t[o]]);return r},El=(t,e)=>{if(!Array.isArray(e))throw new Error(\"Path must be an array.\");let r=t;for(let o=0;o<e.length-1;o++){if(r[e[o]]===void 0)return;r=r[e[o]]}let n=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},Tl=(t,e,r)=>{if(!Array.isArray(e))throw new Error(\"Path must be an array.\");let n=t;for(let o=0;o<e.length-1;o++)(!n[e[o]]||typeof n[e[o]]!=\"object\")&&(n[e[o]]={}),n=n[e[o]];return n[e[e.length-1]]=r,t},Ol=(t,e)=>{if(!Array.isArray(e))throw new Error(\"Path must be an array.\");let r=t;for(let n=0;n<e.length;n++){if(r==null)return;r=r[e[n]]}return r},Rl=t=>{let r=[],n=0;for(let o=0;o<t.length;o++)if(r.length<2)r.push(t[o]);else if(t[o]===r[o%2]?n++:(r=[t[o-1],t[o]],n=1),n>=20)return(Ph===\"test\"||Ph===\"development\")&&console.warn(\"Warning: Potential infinite loop detected due to repeated sequence:\",r),!0},Pl=t=>{let e=new WeakSet;function r(n){if(n&&typeof n==\"object\"){if(e.has(n))return!0;e.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,\"cycle at \"+o),!0}return!1}return r(t)},Il=(t,e)=>{let r=e instanceof Set?e:new Set(e),n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!r.has(o)&&(n[o]=t[o]);return n}});var Xn,Zn,Jn,xi=D(()=>{\"use strict\";be();Xn=(function(){let t=0;function e(){return t++,t}return e})(),Zn=Xn,Jn=(t,e,r)=>(K(r,t)||r||t.key||Xn()).toString()});var Yt,$l,Pe,_i,Fl,Dl,Ll,Ie,Ml,hr,Nl=D(()=>{\"use strict\";Yt=\"production\",$l=Yt,Pe=(t=Yt)=>t===\"production\",_i=(t=Yt)=>t===\"testing\"||t===\"test\",Fl=_i,Dl=(t=Yt)=>t===\"staging\",Ll=(t=Yt)=>t===\"local\",Ie=(t=Yt)=>t===\"development\"||t===\"dev\"||t===\"local\",Ml=(t,e=Yt)=>e[t],hr=(t=Yt)=>!Pe(t)});function Qn(t,e,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||t.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,e),a&&t.apply(o,s)}}function Ul(t,e=window){let r=function(){return t.apply(e,arguments)};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var jl,Bl,tS,Vl,Dr,Lr,Nt,Mr=D(()=>{\"use strict\";jl=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},Bl=t=>{let e={};return(...r)=>{let n=r[0];if(n in e)return e[n];{let o=t(n);return e[n]=o,o}}},tS=/^((function\\s*\\([^)]*\\)\\s*\\{[^}]*\\})|(\\([^)]*\\)\\s*=>))/,Vl=t=>tS.test(t),Dr=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Lr=(t,e)=>{if(typeof t==\"function\")return t;let r=e?.context?.plugins;if(!r)return t;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(t,e);if(typeof o==\"function\")return o}return t},Nt=(t,e,...r)=>{let n=e?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[t]==\"function\"&&(s[t](e,...r),o=!0);return o}});var zl,Fh=D(()=>{\"use strict\";gt();be();zl=(t,e)=>{let{__ref:r}=t,n=t.if;if(v(n)){let o;try{o=n(t,t.state,t.context)}catch(s){typeof console<\"u\"&&console.warn(\"[DOMQL] if condition error:\",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n==\"object\"?K(n,t)?r.__if=!0:delete r.__if:r.__if=!0}});var Wl,Hl,Dh=D(()=>{\"use strict\";Wl=(t,...e)=>{t&&e.map(r=>console.log(r))},Hl=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function Xl(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 Zl(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 Gl,ql,Kl,Yl,Lh=D(()=>{\"use strict\";gt();Fn();Gl=typeof navigator>\"u\"?!1:/Mobi/.test(navigator.userAgent),ql=(t,e,r=365)=>{if(ht(q)||ht(q.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;q.cookie=`${t}=${e};${o};path=/`},Kl=t=>{if(ht(q)||ht(q.cookie))return;let e=`${t}=`,n=decodeURIComponent(q.cookie).split(\";\");for(let o=0;o<n.length;o++){let s=n[o];for(;s.charAt(0)===\" \";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return\"\"},Yl=t=>{ht(q)||ht(q.cookie)||(q.cookie=t+\"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;\")}});var Nr,Mh,Jl,Ql=D(()=>{\"use strict\";Nr={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\"])},Mh=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\"]),Jl=t=>Nr.body.has(t)});var tf,Nh,jr,ro,Et,ef,Si,no,rf,oo,wi,ki,so,vi,Br,eS,se,jh,to,io,nf,eo,of,sf,Ci,Ai,Ei,Ti,Oi,Ri,Bh,Pi=D(()=>{\"use strict\";Pr();af();be();gt();tf=\"production\",Nh=t=>t.sourcemap!==!1&&tf!==\"production\",jr=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]},ro=(t,e,r)=>{let n=[],o=jr(r);o&&(n=[...o]);let s=t.extends;return s&&(n=T(s)?[...n,...s]:[...n,s]),n},Et=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t==\"string\"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return n.includes(t)||(n=Array.isArray(t)?[...n,...t]:[...n,t],r.__extends=n),n},ef=(t,e)=>{if(!t)return e;let{extends:r}=e,n=T(r)?r:[r],o=T(t)?t:[t];return{...e,extends:Or(o,n)}},Si=()=>Math.random().toString(36).substring(2),no={},rf={},oo=t=>no[t.__hash],wi=(t,e)=>{let r=Si();return w(t)||(t.__hash=r),r!==\"__proto__\"&&r!==\"constructor\"&&r!==\"prototype\"&&(no[r]=e),e},ki=(t,e)=>t.__hash?e.concat(oo(t)):wi(t,e),so=(t,e,r,n=new Set,o,s)=>{for(let i of t)T(i)?so(i,e,r,n,o,s):Br(i,e,r,n,o,void 0,s);return e},vi=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends,c={...t};delete c.extends;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),o&&o.push(s)),a&&Br(a,e,r,n,o,s,i),e},Br=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(T(t))return so(t,e,r,n,o,i);let a=s;return w(t)?(a=t,t=io(t,r)):i&&S(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends?vi(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},eS=new Set([\"parent\",\"node\",\"__ref\",\"__proto__\",\"extends\",\"childExtends\",\"childExtendsRecursive\"]),se=(t,e,r,n,o)=>{e=Q(e);for(let s in e){if(eS.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!==\"__proto__\"&&s!==\"constructor\"&&s!==\"prototype\"){if(i===void 0)t[s]=a,r&&n?S(a)&&!T(a)?(r[s]=r[s]||{},jh(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(S(i)&&S(a)){let c=r?r[s]=r[s]||{}:void 0,l=o?.[s];ie(s)?t[s]=se(i,a,c,n,l):se(i,a,c,n,l)}if(s===\"extends\"||s===\"childExtends\"||s===\"childExtendsRecursive\"){if(T(i)&&T(a))t[s]=i.concat(a);else if(T(i)&&S(a)){let c=se({},i);t[s]=se(c,a)}}}}return t},jh=(t,e,r,n)=>{if(n||(n=new WeakSet),!n.has(e)){n.add(e);for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o===\"__proto__\"||o===\"constructor\"||o===\"prototype\")continue;let s=e[o];S(s)&&!T(s)?(t[o]=t[o]||{},jh(t[o],s,r,n)):t[o]=r}}},to=(t,e,r)=>t.reduce((n,o,s)=>{let i=Q(o),a=r?r[s]:void 0;return se(n,i,e,a)},{}),io=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(w(t)){let i=o&&(o[t+\".\"+n]||o[t]||o[\"smbls.\"+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(tf===\"test\"||tf===\"development\")&&console.warn(\"Extend is string but component was not found:\",t);return}return t},nf=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),eo=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return oo(t)||[];let s=Br(t,[],e,new Set,r,void 0,n);return r?s:ki(t,s)},of=(t,e)=>{if(!t)return e;let r=T(t)?t:[t];return Or(r,e)},sf=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(ie(o)&&e.push(o),o===\"extends\"&&(typeof n[o]==\"string\"?e.push(n[o]):Array.isArray(n[o])&&(e=e.concat(n[o]))),typeof n[o]==\"object\"&&n[o]!==null&&r(n[o]))}return r(t),e},Ci=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant;if(t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i==\"string\"&&s&&o?.components){let c=`${i}.${s}`;o.components[c]?Et([c,...a],t):Et(t.extends,t)}else Et(t.extends,t)}else if(typeof t.extends==\"string\"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Et(i,t):Et(t.extends,t)}else Et(t.extends,t);return Ai(t,e,r),Ei(t,e,r),Ti(t,e,r),t.component&&Et(K(t.component,t),t),o.defaultExtends&&Et(o.defaultExtends,t),Rr(n.__extends)},Ai=(t,e,r={})=>{let{__ref:n}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Et(e.childProps.extends,t),n.__extends},Ei=(t,e,r={})=>{let{__ref:n}=t,o=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Et(s,t),n.__extends},Ti=(t,e,r={})=>{let{__ref:n}=t,o=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key===\"__text\";return o&&!i&&!s&&Et(o,t),n.__extends},Oi=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=Nh(r),a=i?[...n.__extends]:null,c=Rr(n.__extends.map((l,f)=>io(l,o,r,f===0&&s)));if(i){let l=new WeakMap;for(let p=0;p<c.length;p++){let d=c[p],h=a[p];d&&S(d)&&w(h)&&l.set(d,h)}let f=[],u=eo(c,o,f,l);n.__extendsStack=u,n.__extendsNames=f}else{let l=eo(c,o);n.__extendsStack=l}return n.__extendsStack},Ri=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Nh(r)){let s={},i=n.__extendsNames||[],a=to(o,s,i),c={};se(t,a,c,void 0,s),n.__sourcemap=c}else{let s=to(o);se(t,s)}return t},Bh=(t,e,r={})=>(Ci(t,e,r),Oi(t,e,r),Ri(t,e,r),t)});function cf(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function lf(t){return Object.keys(t).filter(e=>/^\\d+$/.test(e))}function ff(t,e,r){let{context:n}=e||{},[o]=jr(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var ie,af=D(()=>{\"use strict\";Pi();gt();ie=t=>{if(!w(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Vh(t,e){let{props:r,on:n}=e,o=fr(t.split(\"on\")[1]),s=n[o],i=r[t];v(s)?n[o]=(...a)=>{if(s(...a)!==!1&&v(i))return i(...a)}:n[o]=i}var Uh=D(()=>{\"use strict\";zn();gt()});function Ii(t,e={}){let r=e.cachedKeys||[];for(let n in t){let o=t[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(v(o)||o!=null&&Dr(this.context))){let h=fr(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n===\"childProps\"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],l=S(a)||v(a),f=S(c)||v(c);if(l||f)continue;let u=n.charAt(0);if(Wh.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=uf.test(n)||zh.test(n)||nS(o),d=Oe.has(n);!p&&!d&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function $i(t=this,e){let r=e.cachedKeys||[];for(let n in t.props){let o=t.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=v(o)||o!=null&&Dr(this.context);if(s&&i){Vh(n,t),delete t.props[n];continue}if(r.includes(n)||n===\"childProps\")continue;let a=n.charAt(0);if(Wh.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=S(c)||v(c),u=S(l)||v(l),p=uf.test(n)||zh.test(n),d=Oe.has(n);(p||d||f||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function Fi(t=this){let e=[];return Ii.call(this,t,{cachedKeys:e}),$i.call(this,t,{cachedKeys:e}),t}function pf(t={}){return t.on||(t.on={}),t.props||(t.props={}),Fi.call(this,t)}function hf(t,e){this.__element.update({props:t},e)}function uo(t){let e={update:hf.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var uf,zh,Wh,rS,nS,lo,ao,df,fo,po,ho,Di,co,gf,mf,yf=D(()=>{\"use strict\";$r();Uh();be();gt();zn();Mr();uf=/^[A-Z]/,zh=/^\\d+$/,Wh=new Set([\":\",\"@\",\"[\",\"*\",\"+\",\"~\",\"&\",\">\",\"$\",\"-\",\".\",\"!\"]),rS=new Set([\"extend\",\"props\",\"text\",\"tag\",\"on\",\"if\",\"childExtend\",\"children\",\"childrenAs\",\"state\",\"html\",\"attr\",\"define\",\"content\"]),nS=t=>{if(!t||typeof t!=\"object\"||Array.isArray(t))return!1;for(let e in t)if(rS.has(e)||uf.test(e))return!0;return!1},lo=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return N(n)?{...n}:(o.__propsStack.push(n),{})};ao=t=>Ct(t)(\"string\",\"number\")?{inheritedString:t}:t,df=(t,e)=>!t||!e.length?!1:e.includes(t),fo=(t,e)=>{let{__ref:r}=t,n=r.__propsStack||[],o=e.props;if(!o)return n;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=ao(i);n.unshift(c)}if(s){let c=ao(s);n.unshift(c)}return n};po=t=>{let e=new Set;return t.filter(r=>!r||Re.has(r)||e.has(r)?!1:(e.add(r),!0))},ho=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(Re.has(o))return n;for(;v(o);)o=K(o,e);return W(n,Q(o,{exclude:Re}))},{}),uo(e),e.props),Di=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...fo(t,e)]),S(r)?o.push(r):r===\"inherit\"&&e?.props?o.push(e.props):r&&o.push(r),T(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=po(o),n.__propsStack},co=(t,e)=>{let{__ref:r}=t,n=Di(t,e);n.length?ho(n,t):(r.__propsStack=[],t.props={})},gf=function(t,e,r){let{__ref:n}=t;if(n.__if)co(t,e);else try{co(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn(\"initProps error at\",n.path?.join(\".\"),o),t.props={},n.__propsStack=[]}return uo(t),t},mf=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=fo(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=po(s),n.__propsStack.length&&ho(n.__propsStack,e),e}});var Hh,Li,Mi,Ni,ji,bf,Bi,Vi,Ui,xf,Gh=D(()=>{\"use strict\";Pi();xi();Ln();yf();Ql();gt();Hh=\"production\",Li=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=Nr.body.has(r)&&r;return{text:t,tag:n||o||s||\"string\"}},Mi=(t,e,r)=>{if(t===void 0)return(Hh===\"test\"||Hh===\"development\")&&console.warn(r,\"element is undefined in\",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Ct(t)(\"string\",\"number\")?Li(t,e,r):v(t)?{props:t}:t},Ni=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},ji=(t,e,r,n,o)=>{if(!e)return o;if(ye(e)){let s={key:\":root\",node:e};return o[`${r}_parent`]=s,s}return e},bf=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===\":root\";r?.root||(r.root=o?t:n?.root)},Bi=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Vi=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),Ui=(t,e,r)=>{let n=Ni(t,e);return t.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=ro(t,e,r),n.path=Bi(t,e,r),n},xf=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:Mi(t,e,r);if(!i)return;let a=ji(i,e,r,n,o),c=Jn(i,a,r);Ui(i,a,c);let l=lo(i,a,c),f=Vi(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var _f,zi,Wi,Hi,Gi,Sf,qi,wf,kf,vf,Cf,qh=D(()=>{\"use strict\";Pr();$r();be();gt();_f=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Ct(o)(\"string\",\"number\")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},zi=(t,e)=>{if(!t.includes(\"~/\"))return;if(t.split(\"~/\").length>1)return e.root},Wi=(t,e)=>{if(!t.includes(\"../\"))return;let n=t.split(\"../\").length-1;for(let o=0;o<n;o++){if(!e.parent)return null;e=e.parent}return e},Hi=(t,e,r={})=>{let n=w(t)?t.split(\"/\"):[t],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i===\"__proto__\"||a===\"__proto__\")return;let c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},Gi=(t,e,r={})=>{let o=t.__ref.__state;if(!qi(t))return;let s=zi(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll(\"~/\",\"\");else{let a=Wi(o,e.state);a&&(i=a,o=o.replaceAll(\"../\",\"\"))}if(i)return Hi(o,i,r)},Sf=(t,e)=>{let r=t.__ref,n=Gi(t,e);if(n===void 0)return t.state;if(Ct(n)(\"object\",\"array\"))return Q(n);if(Ct(n)(\"string\",\"number\",\"boolean\"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,\"is not present. Replacing with\",{})},qi=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Ct(r)(\"number\",\"string\",\"boolean\"))},wf=function(t){return N(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},kf=(t,e)=>{if(!t)return e||{};let r=t.split(\"/\"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?e||{}:{},o=o[r[i]];return n},vf=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=Q(n,ur),s={[t.key]:o},i=S(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Bn(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Cf=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n===\"shallow\";if(n===\"merge\"){W(t,e,ur);return}(o?dr:At)(t,e,ur)}});var oS,Af,Kh=D(()=>{\"use strict\";oS=(t,e)=>{let r=e;for(;r;){if(r===t)return!0;r=Object.getPrototypeOf(r)}return!1},Af=(t,e)=>{let{__ref:r}=t,n=t.context||e.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=e.scope||r.root?.scope,s=n?.globalScope;if(!t.scope)o?t.scope=o:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope==\"object\"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=o||s;i&&!oS(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var Yh,Ki,$e,Yi,Ef,Tf=D(()=>{\"use strict\";gt();Mr();Yh=(t,e)=>{let r=\"on\"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},Ki=(t,e,r,n,o)=>{if(t=Lr(t,e),!!v(t))try{let s=t.call(e,e,r||e.state,n||e.context,o);return s&&typeof s.then==\"function\"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn(\"[DOMQL] Async event warning:\",i.message):console.error(\"[DOMQL] Async event error:\",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn(\"[DOMQL] Event handler warning:\",s.message):console.error(\"[DOMQL] Event handler error:\",s),e.context?.strictMode)throw s}},$e=(t,e,r)=>{if(!e)throw new Error(\"Element is required\");Nt(t,e,r);let n=Yh(t,e);if(n){let{state:o,context:s}=e;return Ki(n,e,o,s,r)}},Yi=(t,e,r,n,o,s)=>{if(t=Lr(t,r),!!v(t))try{let i=t.call(r,e,r,n||r.state,o||r.context,s);return i&&typeof i.then==\"function\"&&i.catch(a=>{r.error=a,console.error(\"[DOMQL] Async event update error:\",a)}),i}catch(i){if(r.error=i,console.error(\"[DOMQL] Event update error:\",i),r.context?.strictMode)throw i}},Ef=(t,e,r,n)=>{Nt(t,r,e,n);let o=Yh(t,r);if(o){let{state:s,context:i}=r;return Yi(o,e,r,s,i,n)}}});var Of,go,Rf=D(()=>{\"use strict\";Of={},go={}});var Jh={};I(Jh,{setup:()=>iS,supabaseAdapter:()=>Zh});var Xh,sS,iS,Pf,aS,Zh,Qh=D(()=>{\"use strict\";Xh=new Map,sS=(t,e,r)=>`${t}|${e}|${r?\"off\":\"on\"}`,iS=async({url:t,key:e,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let c=t||r&&`https://${r}.supabase.co`;if(!c||!e)throw new Error(\"@symbo.ls/fetch supabase: url (or projectId) and key are required\");n||(n=(await import(\"@supabase/supabase-js\")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let l=sS(c,e,o===!1),f=Xh.get(l);return f||(f=await n(c,e,a),f?.auth&&Xh.set(l,f)),!f||!f.auth?null:Zh(f)},Pf=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n==\"object\")for(let o in n)o===\"gt\"?t=t.gt(r,n[o]):o===\"gte\"?t=t.gte(r,n[o]):o===\"lt\"?t=t.lt(r,n[o]):o===\"lte\"?t=t.lte(r,n[o]):o===\"neq\"?t=t.neq(r,n[o]):o===\"like\"?t=t.like(r,n[o]):o===\"ilike\"?t=t.ilike(r,n[o]):o===\"in\"?t=t.in(r,n[o]):o===\"is\"?t=t.is(r,n[o]):o===\"contains\"?t=t.contains(r,n[o]):o===\"containedBy\"?t=t.containedBy(r,n[o]):o===\"textSearch\"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},aS=(t,{limit:e,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s==\"string\"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n==\"string\"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},Zh=t=>({name:\"supabase\",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,schema:r,select:n,params:o,headers:s,...i})=>{let c=(r?t.schema(r):t).from(e).select(n||\"*\");if(c=Pf(c,o),c=aS(c,i),s)try{for(let l in s)c.setHeader?c=c.setHeader(l,s[l]):t.rest&&(t.rest.headers[l]=s[l])}catch(l){console.warn(\"[supabase] setHeader failed:\",l.message)}return c},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).insert(n).select(o||\"*\"),update:({from:e,schema:r,data:n,params:o,select:s})=>{let a=(r?t.schema(r):t).from(e).update(n);return a=Pf(a,o),a.select(s||\"*\")},upsert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).upsert(n).select(o||\"*\"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=Pf(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||\"*\",i=t.channel(`db-${e}-${Date.now()}`).on(\"postgres_changes\",{event:s,schema:\"public\",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var eg={};I(eg,{restAdapter:()=>tg,setup:()=>lS});var cS,Fe,lS,tg,rg=D(()=>{\"use strict\";cS=(t,e,r)=>{let n=e&&!e.startsWith(\"/\")?\"/\":\"\",o=new URL(`${t}${n}${e}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i==\"object\"?JSON.stringify(i):i)}return o.toString()},Fe=async(t,e)=>{let r=await globalThis.fetch(t,e),n=r.headers.get(\"content-type\"),o=n&&n.includes(\"json\")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},lS=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error(\"@symbo.ls/fetch rest: url is required\");return tg(t,e,r,n)},tg=(t,e={},r,n={})=>{let o=r?.token||null,s=f=>{let u={...e,...f};return o&&(u.Authorization=`Bearer ${o}`),u},i=f=>({...s(f),\"Content-Type\":\"application/json\"}),a=f=>({...n,...f}),c=(f,u)=>{let p=u||t;if(f&&(f.startsWith(\"http://\")||f.startsWith(\"https://\")))return f;let d=f&&!f.startsWith(\"/\")?\"/\":\"\";return`${p}${d}${f||\"\"}`};return{name:\"rest\",setToken:f=>{o=f},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let f=await Fe(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 Fe(c(r.signInUrl,r.baseUrl),a({method:\"POST\",headers:i(),body:JSON.stringify(f)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await Fe(c(r.signOutUrl,r.baseUrl),a({method:\"POST\",headers:s()})),o=null,{error:null}),select:({from:f,params:u,select:p,limit:d,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let _={...u};return p&&(_.select=p),d&&(_.limit=d),h&&(_.offset=h),m&&(_.single=!0),g&&(typeof g==\"string\"?_.order=g:Array.isArray(g)?_.order=g.map(x=>`${x.by}:${x.asc===!1?\"desc\":\"asc\"}`).join(\",\"):g.by&&(_.order=`${g.by}:${g.asc===!1?\"desc\":\"asc\"}`)),Fe(cS(b||t,f||\"\",_),a({headers:s(y)}))},rpc:({from:f,params:u,headers:p,baseUrl:d})=>Fe(c(`rpc/${f}`,d),a({method:\"POST\",headers:i(p),body:JSON.stringify(u)})),insert:({from:f,data:u,headers:p,baseUrl:d})=>Fe(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 Fe(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 Fe(c(g,d),a({method:\"DELETE\",headers:s(p)}))}}}});var og={};I(og,{localAdapter:()=>ng,setup:()=>uS});var If,fS,uS,ng,sg=D(()=>{\"use strict\";If=(t,e)=>{if(!e)return!0;for(let r in e){let n=e[r];if(n===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(t[r]))return!1}else if(typeof n==\"object\"){for(let o in n)if(o===\"gt\"&&!(t[r]>n[o])||o===\"gte\"&&!(t[r]>=n[o])||o===\"lt\"&&!(t[r]<n[o])||o===\"lte\"&&!(t[r]<=n[o])||o===\"neq\"&&t[r]===n[o]||o===\"like\"&&!String(t[r]).includes(n[o]))return!1}else if(t[r]!==n)return!1}return!0},fS=(t,{order:e,limit:r,offset:n,single:o})=>{let s=[...t];if(e){let i=typeof e==\"string\"?e:e.by,a=e.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},uS=async({data:t,...e})=>ng(t,e),ng=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<\"u\",s=e.prefix||\"smbls_db_\",i=f=>{if(!r[f])if(o)try{let u=localStorage.getItem(s+f);r[f]=u?JSON.parse(u):t[f]||[]}catch{r[f]=t[f]||[]}else r[f]=t[f]||[];return r[f]},a=f=>{if(o)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},c=(f,u,p,d)=>{let h=n[f];if(h)for(let g of h)g(p,d,{event:u,table:f})},l=Date.now();return{name:\"local\",store:r,select:async({from:f,params:u,...p})=>{let h=i(f).filter(g=>If(g,u));return fS(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(If(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--)If(p[h],u)&&(d.push(p[h]),p.splice(h,1),c(f,\"DELETE\",null,d[d.length-1]));return a(f),{data:d,error:null}},subscribe:({from:f,on:u},p)=>{n[f]||(n[f]=[]);let d=(h,g,m)=>{u&&u!==\"*\"&&u!==m.event||p(h,g,m)};return n[f].push(d),()=>{let h=n[f].indexOf(d);h>-1&&n[f].splice(h,1)}}}}});var Co={};I(Co,{createAdapter:()=>yS,default:()=>ES,executeFetch:()=>vo,fetchPlugin:()=>Mf,initAdapterAuth:()=>ta,parseDuration:()=>xo,queryClient:()=>AS,registerAdapter:()=>mS,resolveDb:()=>lg});var pS,dS,Xi,yo,Zi,bo,hS,gS,mS,yS,lg,xo,xt,fg,mo,bS,ko,_o,So,Ji,Df,Qi,xS,ig,$f,ug,pg,Vr,ag,_S,cg,SS,ea,dg,ta,Lf,jt,Xt,wo,gr,ae,De,wS,kS,vS,Ff,CS,vo,AS,Mf,ES,mr=D(()=>{\"use strict\";R();pS=[\"select\",\"rpc\",\"insert\",\"update\",\"delete\",\"subscribe\"],dS={supabase:()=>Promise.resolve().then(()=>(Qh(),Jh)),rest:()=>Promise.resolve().then(()=>(rg(),eg)),local:()=>Promise.resolve().then(()=>(sg(),og))},Xi=Symbol.for(\"@symbo.ls/fetch:CUSTOM_ADAPTERS\"),yo=(()=>{if(typeof globalThis<\"u\"&&globalThis[Xi])return globalThis[Xi];let t={};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Xi,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Xi]}catch{}return t})(),Zi=Symbol.for(\"@symbo.ls/fetch:PENDING_ADAPTERS\"),bo=(()=>{if(typeof globalThis<\"u\"&&globalThis[Zi])return globalThis[Zi];let t={};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Zi,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Zi]}catch{}return t})(),hS=5e3,gS=t=>new Promise(e=>{if(yo[t])return e(yo[t]);let r=bo[t]||(bo[t]=[]),n=!1,o=()=>{n||(n=!0,e(yo[t]||null))};r.push(o),setTimeout(o,hS)}),mS=(t,e)=>{yo[t]=e;let r=bo[t];if(r&&r.length){bo[t]=[];for(let n of r)n()}},yS=t=>{let e={};for(let r of pS)t[r]&&(e[r]=t[r]);return e.name=t.name||\"custom\",e},lg=async t=>{if(!t)return null;if(typeof t.select==\"function\")return t;let{adapter:e,...r}=t,n=typeof e==\"string\"?e:typeof t==\"string\"?t:null;if(!n)return null;let o=yo[n]||dS[n];if(!o&&(o=await gS(n),!o))throw new Error(`Unknown db adapter: \"${n}\". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!=\"function\")throw new Error(`Adapter \"${n}\" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(\", \")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},xo=t=>{if(!t)return 0;if(typeof t==\"number\")return t;let e=t.match(/^(\\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),n=e[2];return n===\"ms\"?r:n===\"s\"?r*1e3:n===\"m\"?r*6e4:n===\"h\"?r*36e5:0},xt=new Map,fg=new Map,mo=new Map,bS=(t,e)=>{if(t.cache?.key)return t.cache.key;let r=SS(t.params),n=`${t.from}:${t.method}:${JSON.stringify(r||\"\")}`;return e?`${n}:${e}`:n},ko=t=>xt.get(t)||null,_o=(t,e,r)=>{let n=xt.get(t),o={data:e,error:r,time:Date.now(),stale:!1};xt.set(t,o);let s=fg.get(t);if(s)for(let i of s)v(i)&&i(o);return o},So=t=>{if(t){let e=xt.get(t);e&&(e.stale=!0);return}for(let[,e]of xt)e.stale=!0},Ji=t=>{if(t){xt.delete(t);return}xt.clear()},Df=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:xo(t),gcTime:3e5}:{staleTime:xo(t.stale||t.staleTime)||6e4,gcTime:xo(t.gc||t.gcTime||t.expire)||3e5,key:t.key},Qi=null,xS=()=>{Qi||(Qi=setInterval(()=>{let t=Date.now();for(let[e,r]of xt){let n=fg.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&xt.delete(e)}},3e4),Qi.unref&&Qi.unref())};xS();ig=3,$f=t=>Math.min(1e3*2**t,3e4),ug=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:ig,delay:$f}:typeof e==\"number\"?{count:e,delay:$f}:{count:e.count??ig,delay:v(e.delay)?e.delay:typeof e.delay==\"number\"?()=>e.delay:$f}},pg=async(t,e)=>{let{count:r,delay:n}=e,o;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(o=i.error,s<r){let a=v(n)?n(s,o):n;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=v(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},Vr={focus:new Set,online:new Set},ag=!1,_S=()=>{if(ag||typeof window>\"u\")return;ag=!0;let t=()=>{for(let r of Vr.focus)r()},e=()=>{for(let r of Vr.online)r()};window.addEventListener(\"visibilitychange\",()=>{document.visibilityState===\"visible\"&&t()}),window.addEventListener(\"focus\",t),window.addEventListener(\"online\",e)},cg=(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 n={...t};return n.from=n.from||r.__state||e.key,n.method=n.method||\"select\",n.on=n.on||\"create\",n.query===void 0&&(n.query=!0),n}return null},SS=t=>(!t||v(t),t),ea=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},dg=(t,e,r)=>{let n;if(!t)n=void 0;else if(v(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=v(s)?s(e,e.state):s}}return n},ta=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(n,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await t.getSession();r(n?.user||null,n)}catch(n){console.warn(\"[fetch] Failed to restore auth session:\",n.message)}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Lf=async(t,e)=>{if(v(t.select))return t.auth!==!1&&await ta(t,e),t;if(t.__resolved)return t.auth!==!1&&await ta(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=lg(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 ta(r,e),r):null},jt=(t,e,...r)=>{let n=v(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},Xt=(t,e,r,...n)=>{let o=t&&v(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},wo=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName===\"FORM\"){let o=new FormData(r);for(let[s,i]of o.entries())e[s]=i;return e}let n=r.querySelectorAll(\"input, textarea, select\");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute(\"name\");i&&(s.type===\"checkbox\"?e[i]=s.checked:s.type===\"file\"?e[i]=s.files:e[i]=s.value)}return e},gr=(t,e,r,n={})=>{let o=r&&r.startsWith(\"~/\"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=r.slice(2);e&&typeof e==\"object\"&&!Array.isArray(e)&&i in e?s.update(e,{preventFetch:!0,...n}):s.update({[i]:e},{preventFetch:!0,...n})}else{let i=r?{[r]:e}:e;s.update(i,{preventFetch:!0,...n})}},ae=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},De=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||!e||!e.__ref||t.enabled===!1||v(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||v(t.skip)&&t.skip(e,e.state))return;let s=await Lf(o,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:u,transform:p,single:d,auth:h,fields:g,as:m,limit:y,offset:b,order:_,headers:x,baseUrl:C,page:E,cursor:P,getNextPageParam:V,getPreviousPageParam:O,infinite:F,placeholderData:H,initialData:st,select:B,keepPreviousData:$}=t,G=w(B)?B:void 0;if(l&&v(e.getQuery)){let X=e.getQuery(s.name||\"paths\");X&&(G=X.select||X.length&&X.join(\",\")||G)}let Y=dg(f,e,r),dt=Df(u),In=ug(t),$c=ea(e,r),O_=$c?`:${$c}`:\"\",ft=dt?u?.key||`${a}:${c}:${JSON.stringify(Y||\"\")}${F?\":infinite\":\"\"}${E?\":p\"+JSON.stringify(E):\"\"}${O_}`:null;if(!i.__fetchInitialized&&ft&&(i.__fetchInitialized=!0,st!==void 0)){let X=v(st)?st():st;_o(ft,X,null)}if((c===\"select\"||c===\"rpc\")&&ft&&dt){let X=ko(ft);if(X&&!X.error){let U=Date.now()-X.time,ct=X.stale||U>(dt.staleTime||0),j=X.data;if(v(B)&&(j=B(j,e,e.state)),p&&(j=p(j,e,e.state)),gr(e,j,m),!ct){ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"});return}}else if(H!==void 0){let U=v(H)?H(e,e.state):H;U!==void 0&&gr(e,U,m)}}if(ft&&mo.has(ft)&&!n.force){let X=mo.get(ft);try{let U=await Promise.race([X,new Promise((ct,j)=>setTimeout(()=>j(\"DEDUP_TIMEOUT\"),15e3))]);if(U?.data!==void 0){let ct=U.data;v(B)&&(ct=B(ct,e,e.state)),p&&(ct=p(ct,e,e.state)),gr(e,ct,m),jt(e,\"onFetchComplete\",ct),Xt(t,e,\"onFetchComplete\",ct)}}catch{}return}let R_=!ko(ft)?.data;ae(e,{isFetching:!0,isLoading:R_,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),jt(e,\"onFetchStart\"),Xt(t,e,\"onFetchStart\");let ge=r?.analyze?.emitNetwork,Fc=ge?typeof performance<\"u\"?performance.now():Date.now():0;ge&&ge({phase:\"start\",mode:\"query\",from:a,method:c,cacheKey:ft,lang:$c});let Th=pg(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let j=await s.getSession();if(h===!0&&!j){let bt={message:\"Not authenticated\"};return ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:bt,status:\"error\",fetchStatus:\"idle\"}),jt(e,\"onFetchError\",bt),Xt(t,e,\"onFetchError\",bt),{data:null,error:bt}}}let X=s[c];if(!v(X))return{data:null,error:{message:`Method \"${c}\" not found on adapter`}};let U={from:a,select:G,params:Y,single:d,limit:y,offset:b,order:_,headers:x,baseUrl:C},ct=ea(e,r);if(ct&&(U.headers={...U.headers,\"Accept-Language\":ct}),E!==void 0){if(S(E))E.offset!==void 0&&(U.offset=E.offset),E.limit!==void 0&&(U.limit=E.limit),E.cursor!==void 0&&(U.params={...U.params,cursor:E.cursor});else if(typeof E==\"number\"){let j=t.pageSize||y||20;U.offset=(E-1)*j,U.limit=j}}if(P!==void 0&&(U.params={...U.params,cursor:P}),c===\"insert\"||c===\"update\"||c===\"upsert\"){let j;if(g===!0||t.on===\"submit\")j=wo(e);else if(T(g)){let bt=wo(e);j={};for(let Dc of g)j[Dc]=bt[Dc]}else e.state?.parse?j=e.state.parse():S(e.state)&&(j={...e.state});p&&(j=p(j,e,e.state)),U.data=j}if(c===\"rpc\"){let j=Y;if(t.on===\"submit\"){let bt=wo(e);j=t.transformParams?t.transformParams(bt,e,e.state):bt}U.params=j}if(c===\"subscribe\"){let j=s.subscribe({from:a,params:Y,on:t.subscribeOn},(bt,Dc,eC)=>{gr(e,bt,m),jt(e,\"onFetchComplete\",bt),Xt(t,e,\"onFetchComplete\",bt)});return i.__unsubscribe=j,{data:null,error:null,subscribed:!0}}return X(U)},In);ft&&mo.set(ft,Th);try{let X=await Th;if(X?.subscribed)return;let{data:U,error:ct}=X||{};if(ct){ft&&_o(ft,null,ct),ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ct,status:\"error\",fetchStatus:\"idle\"}),jt(e,\"onFetchError\",ct),Xt(t,e,\"onFetchError\",ct),ge&&ge({phase:\"error\",mode:\"query\",from:a,method:c,cacheKey:ft,error:ct.message||ct,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Fc});return}if(U!==void 0){if((c===\"select\"||c===\"rpc\")&&ft){let bt=_o(ft,U,null);bt.gcTime=dt?.gcTime||3e5}let j=U;F&&T(U)&&(i.__pages||(i.__pages=[]),n.direction===\"previous\"?i.__pages.unshift(U):i.__pages.push(U),j=i.__pages.flat(),V&&(i.__nextPageParam=V(U,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),O&&(i.__prevPageParam=O(U,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),v(B)&&(j=B(j,e,e.state)),p&&(j=p(j,e,e.state)),(!$||j!==void 0)&&gr(e,j,m),ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),jt(e,\"onFetchComplete\",j),Xt(t,e,\"onFetchComplete\",j),ge&&ge({phase:\"success\",mode:\"query\",ok:!0,from:a,method:c,cacheKey:ft,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Fc})}}catch(X){ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:X,status:\"error\",fetchStatus:\"idle\"}),jt(e,\"onFetchError\",X),Xt(t,e,\"onFetchError\",X),ge&&ge({phase:\"error\",mode:\"query\",from:a,method:c,cacheKey:ft,error:X.message||String(X),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Fc})}finally{ft&&mo.delete(ft)}},wS=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||De;if(n===\"submit\"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener(\"submit\",i),o.__fetchListeners.push(()=>a.removeEventListener(\"submit\",i)))}else if(n===\"click\"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener(\"click\",i),o.__fetchListeners.push(()=>a.removeEventListener(\"click\",i)))}else n===\"stateChange\"&&(o.__fetchOnStateChange=()=>s(t,e,r))},kS=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),_S();let o=t.refetchInterval;if(o){let s=typeof o==\"number\"?o:xo(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>\"u\"||document.visibilityState===\"visible\")&&De(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=ea(e,r),a=bS(t,i),c=ko(a),l=Df(t.cache);(!c||c.stale||Date.now()-c.time>(l?.staleTime||0))&&De(t,e,r,{force:!0})};Vr.focus.add(s),n.__fetchCleanups.push(()=>Vr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>De(t,e,r,{force:!0});Vr.online.add(s),n.__fetchCleanups.push(()=>Vr.online.delete(s))}},vS=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():S(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=v(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&gr(t,i,o),s},Ff=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(gr(t,n,e.as),delete r.__optimisticSnapshot)},CS=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await Lf(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:p,headers:d,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:_,onSettled:x}=t,C;if(c===!0||u===\"submit\")C=wo(e);else if(T(c)){let O=wo(e);C={};for(let F of c)C[F]=O[F]}else e.state?.parse?C=e.state.parse():S(e.state)&&(C={...e.state});l&&(C=l(C,e,e.state)),v(y)&&y(C,e,e.state);let E=m?vS(e,t,C):null;s.__fetching=!0,ae(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),jt(e,\"onFetchStart\"),Xt(t,e,\"onFetchStart\");let P=r?.analyze?.emitNetwork,V=P?typeof performance<\"u\"?performance.now():Date.now():0;P&&P({phase:\"start\",mode:\"mutation\",from:a,method:i});try{if(p!==!1&&o.auth!==!1&&o.getSession){let Y=await o.getSession();if(p===!0&&!Y){E!==void 0&&Ff(e,t);let dt={message:\"Not authenticated\"};jt(e,\"onFetchError\",dt),Xt(t,e,\"onFetchError\",dt);return}}let O=o[i];if(!v(O))return;let F={from:a,data:C,headers:d,baseUrl:h};t.params&&(F.params=dg(t.params,e,r));let H=ea(e,r);H&&(F.headers={...F.headers,\"Accept-Language\":H});let st=ug(t),B=await pg(()=>O(F),st),{data:$,error:G}=B||{};if(G){E!==void 0&&Ff(e,t),ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:G,status:\"error\",fetchStatus:\"idle\"}),jt(e,\"onFetchError\",G),v(_)&&_(G,C,e),v(x)&&x(null,G,C,e),P&&P({phase:\"error\",mode:\"mutation\",from:a,method:i,error:G.message||String(G),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-V});return}if(delete s.__optimisticSnapshot,$!==void 0){let Y=f?{[f]:$}:$;e.state?.update&&e.state.update(Y,{preventFetch:!0})}if(ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),jt(e,\"onFetchComplete\",$),Xt(t,e,\"onFetchComplete\",$),v(b)&&b($,C,e),v(x)&&x($,null,C,e),P&&P({phase:\"success\",mode:\"mutation\",ok:!0,from:a,method:i,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-V}),g){let Y=T(g)?g:[g];for(let dt of Y)if(dt===!0||dt===\"*\")for(let[In]of xt)In.startsWith(a+\":\")&&So(In);else So(dt)}}catch(O){E!==void 0&&Ff(e,t),ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:O,status:\"error\",fetchStatus:\"idle\"}),jt(e,\"onFetchError\",O),Xt(t,e,\"onFetchError\",O),v(_)&&_(O,C,e),v(x)&&x(null,O,C,e),P&&P({phase:\"error\",mode:\"mutation\",from:a,method:i,error:O.message||String(O),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-V})}finally{s.__fetching=!1}},vo=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=K(t,e);if(!s)return;let i=T(s)?s.map(c=>cg(K(c,e),e)).filter(Boolean):[cg(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?CS:De;c.on===\"create\"?f(c,e,n):Promise.resolve().then(()=>{wS({...c,__runner:f},e,n)}),!l&&c.on===\"create\"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&kS(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let l of i)De(l,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__nextPageParam;if(l==null)return;let f={...c,cursor:l};De(f,e,n,{direction:\"next\",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__prevPageParam;if(l==null)return;let f={...c,cursor:l};De(f,e,n,{direction:\"previous\",force:!0})}},AS={invalidateQueries:t=>{if(!t){So();return}if(w(t))for(let[e]of xt)(e.startsWith(t)||e.includes(t))&&So(e);else if(T(t)){let e=t.join(\":\");for(let[r]of xt)r.includes(e)&&So(r)}},removeQueries:t=>{if(!t){Ji();return}if(w(t))for(let[e]of xt)(e.startsWith(t)||e.includes(t))&&Ji(e)},getQueryData:t=>ko(t)?.data??void 0,setQueryData:(t,e)=>{let r=ko(t),n=v(e)?e(r?.data):e;_o(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await Lf(r,e);if(!n)return;let o=t.cache?.key||`${t.from}:${t.method||\"select\"}:${JSON.stringify(t.params||\"\")}`,s=n[t.method||\"select\"];if(!v(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=_o(o,i.data,null);a.gcTime=Df(t.cache)?.gcTime||3e5}return i},getCache:()=>xt,clear:()=>Ji(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of xt)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||Ji(r))}},Mf={name:\"fetch\",create(t){let e=t.fetch;e&&(t.parent||mo.clear(),vo(e,t,t.state,t.context))}},ES=vo});function Eo(t){let e=this,{__ref:r}=e,n=[].concat(t),o=r.root[n[0]];if(!n||!n.length)return console.log(n,\"on\",e.key,\"is undefined\");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function jf(t){let e=this,{parent:r}=e;if(v(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 Bf(t){let e=this,{__ref:r}=e,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=e[s];if(s===t)return i;if(v(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 Vf(t,e=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===t)e.push(a);else if(v(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 ra(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];if(S(n)&&o)ra.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>\"-\"+a.toLowerCase()),i=String(n).replace(/\\s*!important\\s*$/,\"\");e.node.style.setProperty(s,i,\"important\")}}return e}}function gg(t){let e=this;if($e(\"beforeRemove\",e,t)===!1)return e;v(e.node.remove)?e.node.remove():Pe()||(console.warn(\"This item cant be removed\"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=jn(e.parent.__ref.__children,e.key)),$e(\"remove\",e,t)}function Uf(t){return this[t]}function zf(t,e){let r=this;if(t)return r.update(t,e),r}function Wf(t){return t?this.__ref&&this.__ref[t]:this.__ref}function To(){return this.getRef(\"__children\").map(e=>this[e])}function Oo(){return this.getRef().path}function Po(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=hg();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=v(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=hg()),t?e?.[t]:e}function Io(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function $o(t){return this.getRoot(\"data\")&&Object.keys(this.getRoot(\"data\")).length>0&&t?this.getRoot(\"data\")[t]:this.getRoot(\"data\")}function Fo(t){let e=this.getRoot()?.context;return t?e[t]:e}function Do(t){let e=this.context;return t?e[t]:e}function na(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Oe.has(r)&&!Wn.has(r)||e.push(r);return e}function oa(t=[]){let e=this,r={},n=na.call(e),o=n.includes(\"children\"),s=t.length?new Set(t):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a===\"content\")continue;let c=e[a];if(a===\"state\"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=v(c&&c.parse)?c.parse():c;r[a]=v(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a===\"scope\"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a===\"props\"){let{__element:l,update:f,...u}=e[a];r[a]=u}else vt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Ao(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=oa.call(r,t),o=t.length?new Set(t):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>N(a)?Ao.call(a,t,e):a):N(i)&&(n[s]=Ao.call(i,t,e))}return n}function Ur(...t){if(Le!==\"test\"&&Le!==\"development\")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:\n`,\"font-weight: bold\",e[n])):(console.log(r.path),e.keys().forEach(o=>console.log(`%c${o}:`,\"font-weight: bold\",e[o]))),console.log(e),console.groupEnd(e.key),e}function Gf(...t){(Le===\"test\"||Le===\"development\")&&console.log(...t)}function Lo(...t){(Le===\"test\"||Le===\"development\")&&console.warn(...t)}function yr(...t){if(Le===\"test\"||Le===\"development\"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&Ur.call(this),new Error(...t)}}function Mo(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function No(t){let e=t||this,{key:r,parent:n}=e,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function jo(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,n={},o;for(let s in t)t[s]!==r[s]&&(o=!0,n[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(n,Q(r));for(let a in n)r[a]=n[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(n),clearTimeout(a)},i)}}}function qf(t,...e){let r=this.context,n=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(n)try{let o=n.call(this,...e);return o&&typeof o.then==\"function\"&&o.catch(s=>{yr.call(this,s)}),o}catch(o){if(yr.call(this,o),r?.strictMode)throw o}}async function Bo(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select==\"function\"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(mr(),Co));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(mr(),Co));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(mr(),Co)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.fetch=n,delete e.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(mr(),Co));await o(n,t.context)}return n}function Vo(t){let e=this,r=t||go.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(Nf(e,n),r===!0)return n;let o=DS[r];return o?o(n):n}function Kf(t,e){return!!(Ir.has(t)||e?.context?.methods?.[t])}var Le,mg,Ro,hg,Hf,Nf,TS,yg,OS,RS,PS,IS,$S,FS,DS,bg=D(()=>{\"use strict\";Tf();$r();gt();be();Nl();Pr();Rf();Le=\"production\";mg=null,Ro=t=>{mg=t||null},hg=()=>mg||null;Hf=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});Nf=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n==\"string\"&&TS(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&Nf(c,e)}let s=r.contentElementKey||\"content\",i=t[s];i&&i.__ref&&Nf(i,e)},TS=(t,e)=>{let n=e.replaceAll(\"../\",\"\").replaceAll(\"~/\",\"\").split(\"/\"),o=t;for(let s=0;s<n.length;s++){let i=n[s];s===n.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},yg=(t,e=0)=>{let r=\" \".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {\n${yg(i,e+1)}\n${r}}`).join(`\n`):\"\"},OS=t=>`{\n${yg(t,1)}\n}`,RS=t=>{let e={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),r(n[i],a)}s.length&&(e.fields[o||\"_root\"]=s)};return r(t,\"\"),e},PS=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(\";\")})`:c)}return{select:i.length?i.join(\",\"):\"\",expand:a.length?a.join(\",\"):\"\"}},{select:r,expand:n}=e(t),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join(\"&\")},IS=(t,e)=>{let r=[],n=[],o=new Set,s=(f,u,p)=>{o.add(u),p&&n.push(`LEFT JOIN ${u} ON ${u}.${p}_id = ${p}.id`);for(let d in f)f[d]===!0?r.push(`${u}.${d}`):s(f[d],d,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,\"_root\",null);let a=[...o][0]||\"_root\",c=r.length?r.join(\", \"):\"*\",l=n.length?`\n`+n.join(`\n`):\"\";return`SELECT ${c}\nFROM ${a}${l}`},$S=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?e.push(i):r(n[s],i)}};return r(t,\"\"),e},FS=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(\", \")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},DS={graphql:OS,\"json-api\":RS,odata:PS,sql:IS,supabase:FS,paths:$S}});var LS,Yf,xg=D(()=>{\"use strict\";xi();LS={snapshotId:Zn},Yf=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=LS.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var sa,Xf,_g=D(()=>{sa=new Set([\"__proto__\",\"constructor\",\"prototype\",\"_id\",\"__v\",\"id\",\"createdAt\",\"updatedAt\",\"schema\"]),Xf=t=>typeof t==\"string\"&&sa.has(t)});async function Zf(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 Sg=D(()=>{\"use strict\"});function MS(t){return/^[0-9.]+$/.test(t)&&t!==\"\"}var Zt,Me,zr,Jt,Jf,wg=D(()=>{\"use strict\";Zt={skypack:{url:\"https://cdn.skypack.dev\",formatUrl:(t,e)=>`${Zt.skypack.url}/${t}${e!==\"latest\"?`@${e}`:\"\"}`},esmsh:{url:\"https://esm.sh\",formatUrl:(t,e)=>`${Zt.esmsh.url}/${t}${e!==\"latest\"?`@${e}`:\"\"}`},unpkg:{url:\"https://unpkg.com\",formatUrl:(t,e)=>`${Zt.unpkg.url}/${t}${e!==\"latest\"?`@${e}`:\"\"}?module`},jsdelivr:{url:\"https://cdn.jsdelivr.net/npm\",formatUrl:(t,e)=>`${Zt.jsdelivr.url}/${t}${e!==\"latest\"?`@${e}`:\"\"}/+esm`},symbols:{url:\"https://pkg.symbo.ls\",formatUrl:(t,e)=>t.split(\"/\").length>2||!MS(e)?`${Zt.symbols.url}/${t}`:`${Zt.symbols.url}/${t}/${e}.js`}},Me={\"esm.sh\":\"esmsh\",unpkg:\"unpkg\",skypack:\"skypack\",jsdelivr:\"jsdelivr\",\"pkg.symbo.ls\":\"symbols\"},zr=(t={})=>{let{packageManager:e}=t;return Me[e]||null},Jt=(t,e=\"latest\",r=\"esmsh\")=>(Zt[r]||Zt.esmsh).formatUrl(t,e),Jf=(t,e=\"skypack\")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return\"\";let o={};for(let s of n){let i=r[s]||\"latest\";o[s]=Jt(s,i,e)}return`<script type=\"importmap\">{\n \"imports\": ${JSON.stringify(o,null,2)}\n }<\\/script>`}});var Qf,kg=D(()=>{\"use strict\";Qf=t=>{if(!t)return\"\";let e=new Date(t),r=new Intl.DateTimeFormat(\"en\",{year:\"numeric\"}).format(e),n=new Intl.DateTimeFormat(\"en\",{month:\"short\"}).format(e);return`${new Intl.DateTimeFormat(\"en\",{day:\"2-digit\"}).format(e)} ${n}, ${r}`}});var tu,vg=D(()=>{\"use strict\";tu=(t,e)=>{let r=setTimeout(()=>{let{props:n}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(n.height===\"auto\")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{t.update({height:\"auto\"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else t.update({height:\"0\"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var eu,Cg=D(()=>{\"use strict\";eu=function(e){let r=[0,1];for(let n=2;n<=e;n++)r[n]=r[n-1]+r[n-2];return r[e]}});var ru,Ag=D(()=>{\"use strict\";ru=t=>[\"jpeg\",\"gif\",\"jpg\",\"png\",\"tiff\",\"woff\"].includes(t)});function Wr(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`script[src=\"${t}\"]`);if(i)return o(i);let a=n.createElement(\"script\");a.src=t,a.async=e.async===!0,a.type=e.type||\"text/javascript\",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},n.head.appendChild(a)})}async function cu(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`link[href=\"${t}\"]`);if(i)return o(i);let a=n.createElement(\"link\");a.href=t,a.rel=e.rel||\"stylesheet\",a.type=\"text/css\",a.media=e.media||\"all\",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},n.head.appendChild(a)})}var nu,ou,su,iu,au,Eg=D(()=>{\"use strict\";nu=(t,e=!1,r=document,n=\"text/javascript\")=>new Promise((o,s)=>{try{let i=r.createElement(\"script\");i.type=n,i.async=e,i.src=t,i.addEventListener(\"load\",a=>{o({status:!0})}),i.addEventListener(\"error\",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),ou=(t,e=document,r=\"text/javascript\")=>new Promise((n,o)=>{let s=e.createElement(\"script\");s.type=r,s.src=t;let i=e.createElement(\"div\");i.style.cssText=\"position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;\",e.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),n()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),su=(t,e=document,r,n=\"text/javascript\")=>{let o=new window.XMLHttpRequest;if(o.open(\"GET\",t,!1),o.send(),o.status===200){let s=e.createElement(\"script\");s.type=n,s.text=o.responseText,e.body.appendChild(s),typeof r==\"function\"&&r()}else throw new Error(`Failed to load the script ${t}`)},iu=(t,e=!1,r=document,n=\"text/javascript\")=>new Promise((o,s)=>{try{let i=r.createElement(\"link\");i.rel=\"stylesheet\",i.href=t,i.addEventListener(\"load\",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),au=(t,e=!1,r=document,n=\"text/javascript\",o=\"smbls-script\")=>{try{let s=r.createElement(\"script\");s.type=n,s.async=e,s.id=o,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}}});function BS(t,e){if(!e||typeof e!=\"object\")return t;let r=o=>{if(!jS(o))return o;let s=e[o];return s?.src?s.src:o},n={...t};for(let[o,s]of Object.entries(n))typeof s==\"string\"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i==\"string\"?r(i):i));return n}function ia(t,e){if(!t||!e)return;let r=e.split(\".\"),n=t;for(let o of r){if(n==null||typeof n!=\"object\")return;n=n[o]}return n}function VS(t,e,r){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=r?.lang||o?.defaultLang||\"en\",a=(o?.translations||{})[s]||{},c=r?.state||{},l={...t};for(let[f,u]of Object.entries(l))typeof u!=\"string\"||!u.includes(\"{{\")||(l[f]=u.replace(/\\{\\{\\s*([^|{}]+?)\\s*(?:\\|\\s*(\\w+)\\s*)?\\}\\}/g,(p,d,h)=>{let g=d.trim();if(h===\"polyglot\")return a[g]??ia(a,g)??p;if(h===\"getLocalStateLang\")return ia(c,g+s)??p;let m=ia(c,g);return m!==void 0?m:a[g]??ia(a,g)??p}));return l}function Tg(t){let e={...t};for(let[r,n]of Object.entries(e))if(typeof n==\"function\"){let o=n.toString(),s=o.match(/el\\.call\\(\\s*[\"']getLocalStateLang[\"']\\s*,\\s*[\"']([^\"']+)[\"']\\s*\\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\\.call\\(\\s*[\"']polyglot[\"']\\s*,\\s*[\"']([^\"']+)[\"']\\s*\\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\\.(\\w+(?:\\.\\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof n==\"string\"){let o=n.match(/el\\.call\\(\\s*[\"']getLocalStateLang[\"']\\s*,\\s*[\"']([^\"']+)[\"']\\s*\\)/);if(o){e[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\\.call\\(\\s*[\"']polyglot[\"']\\s*,\\s*[\"']([^\"']+)[\"']\\s*\\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes(\"=>\")&&n.includes(\"s.\")){let i=n.match(/s\\.(\\w+(?:\\.\\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function fu(t,e,r,{isProduction:n=!1,channel:o=\"production\"}={}){let s=t.pages?.[e],i=S(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=Tg(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=Tg(f),p={};if(t.integrations?.seo?p={...t.integrations.seo,...u,...c}:Object.keys(u).length?p={...u,...c}:p={...c},!p.title){let g=t.name||t.key;g?n?p.title=g:o===\"development\"?p.title=`${g} / dev:symbo.ls`:o===\"staging\"?p.title=`${g} / staging:symbo.ls`:p.title=`${g} / symbo.ls`:p.title=\"Symbols demo\"}p=VS(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=BS(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 Bt,NS,lu,jS,Og=D(()=>{\"use strict\";gt();Bt=t=>{if(t==null)return\"\";let e={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#039;\"};return t.toString().replace(/[&<>\"']/g,r=>e[r])},NS=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}=\"${Bt(r)}\"`).join(\" \"),lu=(t,e)=>(e||(t={...t,robots:\"noindex\"}),Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o===\"title\")return n.push(`<title>${Bt(s)}</title>`),n;if(o===\"canonical\")return n.push(`<link rel=\"canonical\" href=\"${Bt(s)}\">`),n;if(o===\"manifest\")return n.push(`<link rel=\"manifest\" href=\"${Bt(s)}\">`),n;if(o===\"favicon\"||o===\"favicons\"||o===\"icon\"||o===\"icons\")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f==\"string\")n.push(`<link rel=\"icon\" href=\"${Bt(f)}\">`);else if(typeof f==\"object\"){let u=NS(f);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel=\"icon\" ${u}>`)}}),n;if(o===\"alternate\")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f==\"object\"){let u=Object.entries(f).filter(([p,d])=>d!==void 0).map(([p,d])=>`${p}=\"${Bt(d)}\"`).join(\" \");n.push(`<link rel=\"alternate\" ${u}>`)}}),n;let i=(l,f,u=\"name\")=>{if(typeof f==\"string\"||typeof f==\"number\"||typeof f==\"boolean\")n.push(`<meta ${u}=\"${Bt(l)}\" content=\"${Bt(f)}\">`);else if(Array.isArray(f))f.forEach(p=>{if(typeof p==\"string\"||typeof p==\"number\"||typeof p==\"boolean\")n.push(`<meta ${u}=\"${Bt(l)}\" content=\"${Bt(p)}\">`);else if(typeof p==\"object\"){let d=Object.entries(p).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}=\"${Bt(g)}\"`).join(\" \");n.push(`<meta ${d}>`)}});else if(typeof f==\"object\"){let p=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}=\"${Bt(h)}\"`).join(\" \");n.push(`<meta ${p}>`)}};if(o.startsWith(\"http-equiv:\")){let l=o.replace(\"http-equiv:\",\"\");return i(l,s,\"http-equiv\"),n}if(o.startsWith(\"itemprop:\")){let l=o.replace(\"itemprop:\",\"\");return i(l,s,\"itemprop\"),n}let c=[\"og:\",\"twitter:\",\"fb:\",\"article:\",\"profile:\",\"book:\",\"business:\",\"music:\",\"product:\",\"video:\",\"DC:\",\"DCTERMS:\"].find(l=>o.startsWith(l));if(c){let l=o.replace(c,\"\");return i(`${c.replace(\":\",\"\")}:${l}`,s,c===\"twitter:\"||c===\"DC:\"||c===\"DCTERMS:\"?\"name\":\"property\"),n}if(o.startsWith(\"apple:\")||o.startsWith(\"msapplication:\")){let l=o.startsWith(\"apple:\")?\"apple-\":\"msapplication-\",f=o.replace(/^apple:|^msapplication:/,\"\");return i(`${l}${f}`,s,\"name\"),n}return i(o,s),n},['<meta charset=\"UTF-8\">','<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">']).join(`\n`)),jS=t=>typeof t==\"string\"&&t.length>0&&!t.startsWith(\"/\")&&!t.startsWith(\"http\")});var aa,uu,Rg=D(()=>{\"use strict\";gt();aa=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),uu=(t,e)=>(t=parseFloat(t),S(e)&&(e=Object.values(e)),aa(t,e))});function Hr(t){let e=String(t||\"\").trim();if(!e)return{owner:Pg,key:\"\",full:\"\"};let r=null,n=e;if(e.includes(\"/\")){let s=e.indexOf(\"/\");r=e.slice(0,s),n=e.slice(s+1)}n=n.replace(/\\.symbo\\.ls$/iu,\"\"),r||(r=Pg);let o=n?`${r}/${n}`:\"\";return{owner:r,key:n,full:o}}async function la(t,e={}){if((e.provider||\"kv\")===\"api\")return Ig(t,e);let n=await KS(t,e);return n||Ig(t,e)}async function KS(t,e={}){let r=e.kvBaseUrl||US,n=e.env||\"production\",o=`${r}/kv/${encodeURIComponent(t)}?env=${n}`;try{let s=await fetch(o,{method:\"GET\"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function Ig(t,e={}){let r=e.apiBaseUrl||zS,{key:n}=Hr(t);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:\"GET\"});if(!s.ok)return null;let i=await s.json(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(d=>{let{key:h}=Hr(d?.key);return h.toLowerCase()===n.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(f,{method:\"GET\"});if(!u.ok)return null;let p=await u.json();return p?.data||p||null}catch{return null}}async function $g(t,e={}){if(S(t))return t;if(w(t)){let{full:r}=Hr(t);if(!r)return null;try{let n=await la(r,e);return n||console.warn(`[smbls] Shared library \"${r}\" not found`),n}catch(n){return console.warn(`[smbls] Failed to fetch shared library \"${r}\":`,n.message),null}}return null}async function du(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(zo(n)){let o=await $g(GS(n),e);return o?{library:o,ignoreList:n.ignoreList}:null}return $g(n,e)}))).filter(Boolean)}var Pg,US,zS,Uo,WS,HS,ca,pu,zo,GS,qS,Wo,Fg=D(()=>{\"use strict\";gt();Pg=\"system\",US=\"https://smbls-kv.nika-980.workers.dev\",zS=\"https://api.symbols.app\";Uo=(t,e,r,n)=>{for(let o in e){let s=n?`${n}/${o}`:o;r&&r.has(s)||(o in t?S(t[o])&&S(e[o])&&Uo(t[o],e[o],r,s):t[o]=e[o])}},WS=new Set,HS=t=>t.replace(/\\.js$/iu,\"\"),ca=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let r of t){if(!w(r))continue;let n=r.split(\"/\").map(o=>HS(o.trim())).filter(Boolean).join(\"/\");n&&e.add(n)}return e},pu=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),zo=t=>S(t)&&Array.isArray(t.ignoreList)&&(\"library\"in t||\"key\"in t||\"name\"in t),GS=t=>t.library!==void 0?t.library:t.key??t.name,qS=(t,e,r)=>{for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!r.has(n))if(S(e[n])&&S(t[n]))if(n===\"designSystem\")Uo(t[n],e[n],r,n);else for(let o in e[n])r.has(`${n}/${o}`)||o in t[n]||(t[n][o]=e[n][o]);else n in t||(t[n]=e[n])},Wo=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r],o=WS;zo(n)&&(o=ca(n.ignoreList),n=n.library),S(n)&&qS(t,n,o)}}});var hu,gu,mu,Ho,yu,Go,bu,br,Dg=D(()=>{\"use strict\";gt();hu=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn(\"Failed to copy text: \",e)}},gu=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)}},mu=t=>t.replace(/[^a-zA-Z0-9_]/g,\"\"),Ho=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,\"\")),yu=t=>t&&t.replace(/\\w\\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Go=t=>t.replace(/[^a-zA-Z0-9]/g,\" \").trim().toLowerCase().replace(/\\s+/g,\"-\").replace(/-+/g,\"-\").replace(/^-|-$/g,\"\"),bu=(t=\"\")=>{if(typeof t!=\"string\")return;let e=t.replace(/([A-Z])/g,\" $1\");return e.charAt(0).toUpperCase()+e.slice(1)},br=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 xu,Lg=D(()=>{\"use strict\";xu=()=>{let t=document.styleSheets[0],e=\"\";if(t)try{let r=t.cssRules||t.rules;for(let n=0;n<r.length;n++)e+=r[n].cssText}catch(r){console.error(\"Unable to access CSS rules. This may be due to CORS restrictions:\",r)}else console.log(\"No stylesheets found in document.styleSheets[0].\");return e}});var Tt,Gr,qo,Ko,Mg=D(()=>{\"use strict\";Tt=t=>{let e=t&&t.src;if(!e||typeof e!=\"string\")return null;let r=t.context;if(!r)return null;let n=r.assets&&r.assets[e]||r.files&&r.files[e];return n?typeof n==\"string\"?{src:n,type:null,variants:null}:typeof n==\"object\"&&typeof n.src==\"string\"?n:null:null},Gr=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return\"\";let r=t.some(o=>typeof o.width==\"number\"),n=[];for(let o of t)r&&typeof o.width==\"number\"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&e?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(\", \")},qo=t=>{if(!t||!Array.isArray(t.variants))return\"\";let e=t.variants.filter(r=>r.format===t.type);return Gr(e,{keepOneX:!1})},Ko=(t,e)=>{if(!t||typeof t!=\"object\"||typeof t.src!=\"string\")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:\"img\",attr:{src:t.src,alt:e||\"\"}}];let r=new Map;for(let a of t.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,c]of r)a!==t.type&&n.push({tag:\"source\",attr:{type:a,srcset:Gr(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=Gr(o,{keepOneX:!1}),i={src:t.src,alt:e||\"\"};return s&&(i.srcset=s),[...n,{tag:\"img\",attr:i}]}});var fa={};I(fa,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>yl,DOMQ_PROPERTIES:()=>Oe,ENV:()=>$l,HTML_TAGS:()=>Nr,METHODS:()=>Ir,METHODS_EXL:()=>Hn,NODE_ENV:()=>Yt,OPTIONS:()=>go,PACKAGE_MANAGER_TO_CDN:()=>Me,PARSED_DOMQ_PROPERTIES:()=>Wn,PROPS_METHODS:()=>Re,STATE_METHODS:()=>ur,STATE_PROPERTIES:()=>ml,SVG_TAGS:()=>Mh,TYPES:()=>Mn,UNIVERSAL_RESERVED_KEYS:()=>sa,addCaching:()=>Ui,addContext:()=>Vi,addExtend:()=>of,addExtends:()=>Et,addItemAfterEveryElement:()=>nl,addProtoToArray:()=>Bn,addRef:()=>Ni,applyDependentState:()=>vf,applyEvent:()=>Ki,applyEventUpdate:()=>Yi,applyExtends:()=>Bh,applyProps:()=>co,arrayContainsOtherArray:()=>Xc,arraysEqual:()=>sl,arrayzeValue:()=>br,buildImgSrcset:()=>qo,buildSourcesAndImg:()=>Ko,cache:()=>Of,call:()=>qf,captureSnapshot:()=>Yf,checkForStateTypes:()=>_f,checkIfInherits:()=>qi,checkIfStringIsInArray:()=>cl,clone:()=>xl,cloneAndMergeArrayExtend:()=>to,cloneFunction:()=>Ul,concatAddExtends:()=>ef,copyJavaScriptToClipboard:()=>gu,copyStringToClipboard:()=>hu,createBasedOnType:()=>Mi,createElement:()=>xf,createElementExtends:()=>Ci,createExtends:()=>ro,createExtendsFromKeys:()=>jr,createExtendsStack:()=>Oi,createIfConditionFlag:()=>zl,createInheritedState:()=>Sf,createKey:()=>Jn,createNestedObject:()=>Al,createNestedObjectByKeyPath:()=>kf,createObjectWithoutPrototype:()=>bi,createParent:()=>ji,createPath:()=>Bi,createProps:()=>lo,createPropsStack:()=>Di,createRoot:()=>bf,createScope:()=>Af,createSnapshotId:()=>Zn,customDecodeURIComponent:()=>gl,customEncodeURIComponent:()=>hl,cutArrayAfterValue:()=>el,cutArrayBeforeValue:()=>tl,debounce:()=>Qn,debounceOnContext:()=>jl,decodeNewlines:()=>dl,deepClone:()=>Q,deepContains:()=>vl,deepDefaults:()=>Uo,deepDestringifyFunctions:()=>oe,deepExtend:()=>vi,deepMerge:()=>W,deepMergeExtends:()=>se,deepStringifyFunctions:()=>Gn,defineSetter:()=>Hf,destringifyGlobalScope:()=>Kn,detectHeightOnInit:()=>tu,detectInfiniteLoop:()=>Rl,document:()=>q,encodeNewlines:()=>pl,error:()=>yr,excludeKeysFromObject:()=>Il,exec:()=>K,extendCachedRegistry:()=>rf,extendStackRegistry:()=>no,extractArrayExtend:()=>so,fetchLibraryData:()=>la,fibonacciNumberByIndex:()=>eu,filterArrays:()=>il,filterArraysFast:()=>al,finalizeExtends:()=>Ri,findClosestNumber:()=>aa,findClosestNumberInFactory:()=>uu,findInheritedState:()=>Gi,findKeyPosition:()=>fl,flattenExtend:()=>Br,formatDate:()=>Qf,generateHash:()=>Si,generateKey:()=>Xn,generateMetaTags:()=>lu,get:()=>Uf,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>cf,getCdnProviderFromConfig:()=>zr,getChildStateInKey:()=>Hi,getChildren:()=>To,getContext:()=>Do,getCookie:()=>Kl,getDB:()=>Bo,getEmotionStylesheet:()=>xu,getExtendsInElement:()=>sf,getExtendsStack:()=>eo,getExtendsStackRegistry:()=>ki,getFrequencyInArray:()=>Zc,getHashedExtend:()=>oo,getImportMapScript:()=>Jf,getInObjectByPath:()=>Ol,getLocalStorage:()=>Xl,getNev:()=>Ml,getPageMetadata:()=>fu,getParentStateInKey:()=>Wi,getPath:()=>Oo,getQuery:()=>Vo,getRef:()=>Wf,getRoot:()=>Io,getRootContext:()=>Fo,getRootData:()=>$o,getRootState:()=>Po,getRootStateInKey:()=>zi,getSpreadChildren:()=>lf,global:()=>qc,hasFunction:()=>Fr,hasHandlerPlugin:()=>Dr,hasOwnProperty:()=>Sl,inheritChildExtends:()=>Ei,inheritChildPropsExtends:()=>Ai,inheritParentProps:()=>fo,inheritRecursiveChildExtends:()=>Ti,initProps:()=>gf,is:()=>Ct,isArray:()=>T,isBoolean:()=>di,isContextComponent:()=>ff,isCyclic:()=>Pl,isDOMNode:()=>kt,isDate:()=>gi,isDefined:()=>vt,isDevelopment:()=>Ie,isEmpty:()=>mi,isEmptyObject:()=>wl,isEqualDeep:()=>yi,isFunction:()=>v,isHtmlElement:()=>Dn,isLocal:()=>Ll,isMethod:()=>Kf,isMobile:()=>Gl,isNode:()=>ye,isNot:()=>Yc,isNotProduction:()=>hr,isNull:()=>hi,isNumber:()=>ne,isObject:()=>S,isObjectLike:()=>N,isPhoto:()=>ru,isProduction:()=>Pe,isStaging:()=>Dl,isState:()=>wf,isString:()=>w,isStringFunction:()=>Vl,isTest:()=>_i,isTesting:()=>Fl,isUndefined:()=>ht,isUniversallyReservedKey:()=>Xf,isValidHtmlTag:()=>Jl,isWrappedLibrary:()=>zo,joinArrays:()=>Or,jointStacks:()=>nf,keys:()=>na,loadCssFile:()=>iu,loadJavascript:()=>au,loadJavascriptFile:()=>nu,loadJavascriptFileEmbedSync:()=>su,loadJavascriptFileSync:()=>ou,loadRemoteCSS:()=>cu,loadRemoteScript:()=>Wr,log:()=>Gf,logGroupIf:()=>Hl,logIf:()=>Wl,lookdown:()=>Bf,lookdownAll:()=>Vf,lookup:()=>jf,lowercaseFirstLetter:()=>fr,makeObjectWithoutPrototype:()=>kl,map:()=>bl,mapStringsWithContextComponents:()=>io,matchesComponentNaming:()=>ie,memoize:()=>Bl,merge:()=>nt,mergeSharedLibraries:()=>Wo,nextElement:()=>Mo,normalizeIgnoreList:()=>ca,normalizeLibraryKey:()=>Hr,objectToString:()=>qn,objectizeStringProperty:()=>ao,overwrite:()=>Yn,overwriteDeep:()=>At,overwriteShallow:()=>dr,overwriteState:()=>Cf,parse:()=>oa,parseDeep:()=>Ao,pickupElementFromProps:()=>$i,pickupPropsFromElement:()=>Ii,previousElement:()=>No,propExists:()=>df,propertizeElement:()=>Fi,propertizeUpdate:()=>pf,remove:()=>gg,removeChars:()=>mu,removeCookie:()=>Yl,removeDuplicateProps:()=>po,removeDuplicatesInArray:()=>Rr,removeFromArray:()=>Jc,removeFromObject:()=>Cl,removeNestedKeyByPath:()=>El,removeValueFromArray:()=>jn,removeValueFromArrayAll:()=>rl,reorderArrayByValues:()=>ol,replaceLiteralsWithObjectFields:()=>lr,replaceOctalEscapeSequences:()=>ul,resolveAsset:()=>Tt,resolveHandler:()=>Lr,resolveSharedLibraries:()=>du,returnValueAsText:()=>Li,runPluginHook:()=>Nt,self:()=>Kc,setActiveRootState:()=>Ro,setCookie:()=>ql,setHashedExtend:()=>wi,setInObjectByPath:()=>Tl,setLocalStorage:()=>Zl,setNodeStyles:()=>ra,setProps:()=>zf,setPropsPrototype:()=>uo,sharedLibrary:()=>pu,spotByPath:()=>Eo,srcsetFor:()=>Gr,stringIncludesAny:()=>Un,stringToObject:()=>_l,swapItemsInArray:()=>Qc,syncProps:()=>ho,toCamelCase:()=>Ho,toDashCase:()=>Go,toDescriptionCase:()=>bu,toTitleCase:()=>yu,toggleFullscreen:()=>Zf,triggerEventOn:()=>$e,triggerEventOnUpdate:()=>Ef,trimStringFromSymbols:()=>ll,unstackArrayOfObjects:()=>Nn,update:()=>hf,updateProps:()=>mf,variables:()=>jo,verbose:()=>Ur,warn:()=>Lo,window:()=>k});var R=D(()=>{\"use strict\";xi();Nl();gt();be();Mr();Pr();Ln();Fh();Dh();zn();Fn();Lh();Ql();af();yf();Pi();Gh();qh();$r();Kh();bg();Rf();xg();Tf();_g();Sg();wg();kg();vg();Cg();Ag();Eg();Og();Rg();Fg();Dg();Lg();Mg()});var n_=Lc((oD,r_)=>{var An=1e3,En=An*60,Tn=En*60,Ar=Tn*24,mv=Ar*7,yv=Ar*365.25;r_.exports=function(t,e){e=e||{};var r=typeof t;if(r===\"string\"&&t.length>0)return bv(t);if(r===\"number\"&&isFinite(t))return e.long?_v(t):xv(t);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(t))};function bv(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||\"ms\").toLowerCase();switch(n){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return r*yv;case\"weeks\":case\"week\":case\"w\":return r*mv;case\"days\":case\"day\":case\"d\":return r*Ar;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*Tn;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*En;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return r*An;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return r;default:return}}}}function xv(t){var e=Math.abs(t);return e>=Ar?Math.round(t/Ar)+\"d\":e>=Tn?Math.round(t/Tn)+\"h\":e>=En?Math.round(t/En)+\"m\":e>=An?Math.round(t/An)+\"s\":t+\"ms\"}function _v(t){var e=Math.abs(t);return e>=Ar?Oc(t,e,Ar,\"day\"):e>=Tn?Oc(t,e,Tn,\"hour\"):e>=En?Oc(t,e,En,\"minute\"):e>=An?Oc(t,e,An,\"second\"):t+\" ms\"}function Oc(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+\" \"+n+(o?\"s\":\"\")}});var s_=Lc((sD,o_)=>{function Sv(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=n_(),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),_=b-(u||b);y.diff=_,y.prev=u,y.curr=b,u=b,m[0]=r.coerce(m[0]),typeof m[0]!=\"string\"&&m.unshift(\"%O\");let x=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(E,P)=>{if(E===\"%%\")return\"%\";x++;let V=r.formatters[P];if(typeof V==\"function\"){let O=m[x];E=V.call(y,O),m.splice(x,1),x--}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=n,g.destroy=r.destroy,Object.defineProperty(g,\"enabled\",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(f)),h),set:m=>{p=m}}),typeof r.init==\"function\"&&r.init(g),g}function n(f,u){let p=r(this.namespace+(typeof u>\"u\"?\":\":u)+f);return p.log=this.log,p}function o(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let u=(typeof f==\"string\"?f:\"\").trim().replace(/\\s+/g,\",\").split(\",\").filter(Boolean);for(let p of u)p[0]===\"-\"?r.skips.push(p.slice(1)):r.names.push(p)}function s(f,u){let p=0,d=0,h=-1,g=0;for(;p<f.length;)if(d<u.length&&(u[d]===f[p]||u[d]===\"*\"))u[d]===\"*\"?(h=d,g=p,d++):(p++,d++);else if(h!==-1)d=h+1,g++,p=g;else return!1;for(;d<u.length&&u[d]===\"*\";)d++;return d===u.length}function i(){let f=[...r.names,...r.skips.map(u=>\"-\"+u)].join(\",\");return r.enable(\"\"),f}function a(f){for(let u of r.skips)if(s(f,u))return!1;for(let u of r.names)if(s(f,u))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function l(){console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\")}return r.enable(r.load()),r}o_.exports=Sv});var i_=Lc((Rt,Rc)=>{Rt.formatArgs=kv;Rt.save=vv;Rt.load=Cv;Rt.useColors=wv;Rt.storage=Av();Rt.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`.\"))}})();Rt.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 wv(){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 kv(t){if(t[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+t[0]+(this.useColors?\"%c \":\" \")+\"+\"+Rc.exports.humanize(this.diff),!this.useColors)return;let e=\"color: \"+this.color;t.splice(1,0,e,\"color: inherit\");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!==\"%%\"&&(r++,o===\"%c\"&&(n=r))}),t.splice(n,0,e)}Rt.log=console.debug||console.log||(()=>{});function vv(t){try{t?Rt.storage.setItem(\"debug\",t):Rt.storage.removeItem(\"debug\")}catch{}}function Cv(){let t;try{t=Rt.storage.getItem(\"debug\")||Rt.storage.getItem(\"DEBUG\")}catch{}return!t&&typeof process<\"u\"&&\"env\"in process&&(t=process.env.DEBUG),t}function Av(){try{return localStorage}catch{}}Rc.exports=s_()(Rt);var{formatters:Ev}=Rc.exports;Ev.j=function(t){try{return JSON.stringify(t)}catch(e){return\"[UnexpectedJSONParseError]: \"+e.message}}});var Eh={};I(Eh,{ANIMATION_PROPS:()=>bp,ARIA_ROLES:()=>i0,ATTR_TRANSFORMS:()=>Lp,BLOCK_PROPS:()=>xp,CDN_PROVIDERS:()=>Zt,CONFIG:()=>ts,CSS_NATIVE_COLOR_REGEX:()=>Qt,CSS_PROPS_REGISTRY:()=>pt,CSS_UNITS:()=>cr,DEFAULT_CONFIG:()=>Ls,DEFAULT_CSS_PROPERTIES_LIST:()=>yt,DELEGATED_EVENTS:()=>an,DESIGN_SYSTEM_OPTIONS:()=>Wd,DOMQL_EVENTS:()=>yl,DOMQ_PROPERTIES:()=>Oe,DOM_EVENTS:()=>vm,ENV:()=>$l,FACTORY:()=>fe,FLEX_PROPS:()=>vp,FONT_PROPS:()=>_p,GRID_PROPS:()=>Cp,HTML_ATTRIBUTES:()=>Wa,HTML_TAGS:()=>Nr,LIFECYCLE_EVENTS:()=>qe,METHODS:()=>Ir,METHODS_EXL:()=>Hn,MISC_PROPS:()=>Sp,MIXINS:()=>Va,NODE_ENV:()=>Yt,OPTIONS:()=>go,PACKAGE_MANAGER_TO_CDN:()=>Me,PARSED_DOMQ_PROPERTIES:()=>Wn,POSITION_PROPS:()=>wp,PROPS_METHODS:()=>Re,REGISTRY:()=>_t,ROUTER_OPTIONS:()=>oc,STATE_PROPERTIES:()=>ml,SVG_TAGS:()=>on,THEME_PROPS:()=>kp,TIMING_PROPS:()=>Fs,TYPES:()=>Mn,UNIVERSAL_RESERVED_KEYS:()=>sa,VALUE_TRANSFORMERS:()=>Ma,activateConfig:()=>Vg,addCaching:()=>Ui,addContext:()=>Vi,addDelegatedEvent:()=>Is,addExtend:()=>of,addExtends:()=>Et,addItemAfterEveryElement:()=>nl,addMethods:()=>pn,addProtoToArray:()=>Bn,addRef:()=>Ni,animation:()=>Wu,appendSVGSprite:()=>ks,appendSvgIconsSprite:()=>Cs,applyAttrTransforms:()=>jp,applyCSS:()=>jd,applyDependentState:()=>vf,applyDocument:()=>ws,applyEvent:()=>Ki,applyEventUpdate:()=>Yi,applyExtends:()=>ln,applyHeadings:()=>Pa,applyInitialState:()=>za,applyMediaSequenceVars:()=>Be,applyProps:()=>co,applyReset:()=>As,applySequenceGlobalVars:()=>as,applySequenceVars:()=>ke,applySpacingSequence:()=>bs,applyStateMethods:()=>Dt,applyTimingSequence:()=>Ss,applyTrueProps:()=>Ep,applyTypographySequence:()=>gs,arrayContainsOtherArray:()=>Xc,arraysEqual:()=>sl,arrayzeValue:()=>br,batch:()=>me,breakpoints:()=>Uu,buildImgSrcset:()=>qo,buildSourcesAndImg:()=>Ko,cache:()=>Of,cacheNode:()=>Ge,call:()=>qf,captureSnapshot:()=>Yf,changeGlobalTheme:()=>Na,changeLightness:()=>Cu,checkAttributeByTagName:()=>Xe,checkEventFunctions:()=>Np,checkForStateTypes:()=>_f,checkIfBoxSize:()=>ys,checkIfInherits:()=>qi,checkIfStringIsInArray:()=>cl,class:()=>Yu,clone:()=>xl,cloneAndMergeArrayExtend:()=>to,cloneFunction:()=>Ul,color:()=>Du,colorStringToRgbaArray:()=>ce,components:()=>mn,concatAddExtends:()=>ef,convertSvgToSymbol:()=>cs,copyJavaScriptToClipboard:()=>gu,copyStringToClipboard:()=>hu,create:()=>Ah,createAsync:()=>Zv,createBasedOnType:()=>Mi,createComputed:()=>Vc,createConfig:()=>Ca,createDefine:()=>Hb,createEffect:()=>et,createElement:()=>xf,createElementExtends:()=>Ci,createExtends:()=>ro,createExtendsFromKeys:()=>jr,createExtendsStack:()=>Oi,createHTMLNode:()=>nn,createIfConditionFlag:()=>zl,createInheritedState:()=>Sf,createKey:()=>Jn,createNestedObject:()=>Al,createNestedObjectByKeyPath:()=>kf,createObjectWithoutPrototype:()=>bi,createParent:()=>ji,createPath:()=>Bi,createProps:()=>lo,createPropsStack:()=>Di,createRoot:()=>bf,createScope:()=>Af,createScopeStore:()=>$n,createSignal:()=>Mt,createSkeleton:()=>Qv,createSnapshotId:()=>Zn,createState:()=>Pp,createStore:()=>Pt,createSync:()=>Jv,css:()=>ve,cssMediaVars:()=>ka,cssVars:()=>wa,customDecodeURIComponent:()=>gl,customEncodeURIComponent:()=>hl,cutArrayAfterValue:()=>el,cutArrayBeforeValue:()=>tl,debounce:()=>Qn,debounceOnContext:()=>jl,decodeNewlines:()=>dl,deepClone:()=>Q,deepContains:()=>vl,deepDefaults:()=>Uo,deepDestringifyFunctions:()=>oe,deepExtend:()=>vi,deepMerge:()=>W,deepMergeExtends:()=>se,deepStringifyFunctions:()=>Gn,defaultDefine:()=>bn,defineSetter:()=>Hf,destringifyGlobalScope:()=>Kn,destroy:()=>Us,detectHeightOnInit:()=>tu,detectInfiniteLoop:()=>Rl,detectTag:()=>He,devices:()=>zu,dispose:()=>Ke,encodeNewlines:()=>pl,error:()=>yr,excludeKeysFromObject:()=>Il,exec:()=>K,executeAttr:()=>c0,exetuteClassPerComponent:()=>Yw,extendCachedRegistry:()=>rf,extendStackRegistry:()=>no,extractArrayExtend:()=>so,extractConditionalAttrs:()=>u0,fetchLibraryData:()=>la,fibonacciNumberByIndex:()=>eu,filterArrays:()=>il,filterArraysFast:()=>al,filterAttributesByTagName:()=>a0,finalizeExtends:()=>Ri,findClosestNumber:()=>aa,findClosestNumberInFactory:()=>uu,findHeadingLetter:()=>Ta,findHeadings:()=>is,findInheritedState:()=>Gi,findKeyPosition:()=>fl,flattenExtend:()=>Br,font:()=>Ou,fontFace:()=>Iu,fontFamily:()=>Ru,fontFamilyTypes:()=>Pu,formatDate:()=>Qf,generateHash:()=>Si,generateKey:()=>Xn,generateMetaTags:()=>lu,generateSequence:()=>Ot,generateSequencePosition:()=>Qu,generateSprite:()=>Zr,generateSubSequence:()=>os,get:()=>Uf,getActiveConfig:()=>A,getActiveDocument:()=>Ba,getActiveLang:()=>Ws,getCDNUrl:()=>Jt,getCacheSize:()=>pp,getCapitalCaseKeys:()=>cf,getCdnProviderFromConfig:()=>zr,getChildStateInKey:()=>Hi,getChildren:()=>To,getColor:()=>Z,getColorShade:()=>ga,getContext:()=>Do,getCookie:()=>Kl,getDB:()=>Bo,getDefaultOrFirstKey:()=>xr,getEmotionStylesheet:()=>xu,getExtendsInElement:()=>sf,getExtendsStack:()=>eo,getExtendsStackRegistry:()=>ki,getFnPrefixAndValue:()=>we,getFontFace:()=>Eu,getFontFaceEach:()=>_r,getFontFaceEachString:()=>xa,getFontFaceString:()=>Xo,getFontFamily:()=>hs,getFontFormat:()=>ya,getFontSizeByKey:()=>ms,getFrequencyInArray:()=>Zc,getHashedExtend:()=>oo,getImportMapScript:()=>Jf,getInObjectByPath:()=>Ol,getLanguages:()=>ac,getLocalStateLang:()=>pc,getLocalStorage:()=>Xl,getMediaColor:()=>mt,getMediaTheme:()=>Ut,getNev:()=>Ml,getObserver:()=>sr,getPageMetadata:()=>fu,getParentStateInKey:()=>Wi,getPath:()=>Oo,getQuery:()=>Vo,getRef:()=>Wf,getRgbTone:()=>Ne,getRoot:()=>Io,getRootContext:()=>Fo,getRootData:()=>$o,getRootState:()=>Po,getRootStateInKey:()=>zi,getSequenceValue:()=>ss,getSequenceValueBySymbols:()=>Ea,getSequenceValuePropertyPair:()=>pe,getShadow:()=>_s,getSignals:()=>Hc,getSpacingBasedOnRatio:()=>te,getSpacingByKey:()=>ut,getSpreadChildren:()=>lf,getSubratio:()=>ns,getSubratioDifference:()=>rs,getSystemGlobalTheme:()=>Gt,getTheme:()=>fs,getTimingByKey:()=>It,getTimingFunction:()=>zt,global:()=>qc,gradient:()=>Lu,grid:()=>Ku,hasFunction:()=>Fr,hasHandlerPlugin:()=>Dr,hasOwnProperty:()=>Sl,hexToRgb:()=>Su,hexToRgbArray:()=>ua,hexToRgba:()=>ku,hslToRgb:()=>ha,icons:()=>ju,inheritChildExtends:()=>Ei,inheritChildPropsExtends:()=>Ai,inheritParentProps:()=>fo,inheritRecursiveChildExtends:()=>Ti,init:()=>Ce,initPolyglot:()=>Hd,initProps:()=>gf,injectGlobal:()=>lt,is:()=>Ct,isArray:()=>T,isBoolean:()=>di,isCSSVar:()=>it,isContextComponent:()=>ff,isCyclic:()=>Pl,isDOMNode:()=>kt,isDate:()=>gi,isDefined:()=>vt,isDevelopment:()=>Ie,isEmpty:()=>mi,isEmptyObject:()=>wl,isEqualDeep:()=>yi,isFunction:()=>v,isGoogleFontsUrl:()=>Kr,isHtmlElement:()=>Dn,isLocal:()=>Ll,isMethod:()=>Kf,isMobile:()=>Gl,isNode:()=>ye,isNot:()=>Yc,isNotProduction:()=>hr,isNull:()=>hi,isNumber:()=>ne,isObject:()=>S,isObjectLike:()=>N,isPhoto:()=>ru,isProduction:()=>Pe,isResolvedColor:()=>le,isScalingUnit:()=>ar,isStaging:()=>Dl,isState:()=>wf,isStore:()=>rt,isString:()=>w,isStringFunction:()=>Vl,isSvgTag:()=>sn,isTest:()=>_i,isTesting:()=>Fl,isTracking:()=>$p,isUndefined:()=>ht,isUniversallyReservedKey:()=>Xf,isValidHtmlTag:()=>Jl,isValidTag:()=>rn,isWasmLoaded:()=>Ib,isWrappedLibrary:()=>zo,joinArrays:()=>Or,jointStacks:()=>nf,keyframes:()=>en,keys:()=>na,loadCssFile:()=>iu,loadJavascript:()=>au,loadJavascriptFile:()=>nu,loadJavascriptFileEmbedSync:()=>su,loadJavascriptFileSync:()=>ou,loadRemoteCSS:()=>cu,loadRemoteScript:()=>Wr,loadTranslations:()=>lc,loadWasm:()=>Pb,log:()=>Gf,logGroupIf:()=>Hl,logIf:()=>Wl,lookdown:()=>Bf,lookdownAll:()=>Vf,lookup:()=>jf,lowercaseFirstLetter:()=>fr,makeObjectWithoutPrototype:()=>kl,map:()=>bl,mapStringsWithContextComponents:()=>io,matchesComponentNaming:()=>ie,media:()=>$u,memoize:()=>Bl,merge:()=>nt,mergeSharedLibraries:()=>Wo,mixTwoColors:()=>_u,mixTwoRgb:()=>vu,mixTwoRgba:()=>ma,nextElement:()=>Mo,normalizeIgnoreList:()=>ca,normalizeLibraryKey:()=>Hr,numToLetterMap:()=>ue,objectToString:()=>qn,objectizeStringProperty:()=>ao,opacify:()=>qr,overwrite:()=>Yn,overwriteDeep:()=>At,overwriteShallow:()=>dr,overwriteState:()=>Cf,parse:()=>oa,parseColorToken:()=>xe,parseDeep:()=>Ao,pickupElementFromProps:()=>$i,pickupPropsFromElement:()=>Ii,polyglotFunctions:()=>Hs,polyglotPlugin:()=>dc,popConfig:()=>tt,previousElement:()=>No,propExists:()=>df,propertizeElement:()=>Fi,propertizeUpdate:()=>pf,pushConfig:()=>ot,registerEvent:()=>cn,reinit:()=>Nd,remove:()=>un,removeChars:()=>mu,removeCookie:()=>Yl,removeDelegatedEvent:()=>$s,removeDuplicateProps:()=>po,removeDuplicatesInArray:()=>Rr,removeFromArray:()=>Jc,removeFromObject:()=>Cl,removeNestedKeyByPath:()=>El,removeValueFromArray:()=>jn,removeValueFromArrayAll:()=>rl,reorderArrayByValues:()=>ol,replaceLiteralsWithObjectFields:()=>lr,replaceOctalEscapeSequences:()=>ul,resolveAsset:()=>Tt,resolveColorsInGradient:()=>Ts,resolveFileSource:()=>Dp,resolveFileUrl:()=>Vt,resolveHandler:()=>Lr,resolvePropValue:()=>Ye,resolveSharedLibraries:()=>du,returnSubThemeOrDefault:()=>Au,returnValueAsText:()=>Li,rgbArrayToHex:()=>pa,rgbToHSL:()=>da,rgbToHex:()=>wu,runPluginHook:()=>Nt,runThroughMedia:()=>Ra,scratchDefaultConfig:()=>Xr,scratchSystem:()=>tn,scratchUtils:()=>Ve,self:()=>Kc,semanticIcons:()=>Bu,sequence:()=>Se,set:()=>Sr,setActiveConfig:()=>va,setActiveDocument:()=>up,setActiveRootState:()=>Ro,setClass:()=>W0,setClassname:()=>Xw,setColor:()=>Ue,setCookie:()=>ql,setCssEngineHook:()=>tc,setCustomFont:()=>Yo,setCustomFontMedia:()=>je,setEach:()=>ap,setFont:()=>ds,setFontFamily:()=>Jr,setFontImport:()=>Yr,setGradient:()=>ze,setHashedExtend:()=>wi,setInCustomFontMedia:()=>ba,setInObjectByPath:()=>Tl,setLang:()=>fc,setLocalStorage:()=>Zl,setMediaTheme:()=>ps,setNodeStyles:()=>ra,setObserver:()=>Bc,setProps:()=>zf,setPropsPrototype:()=>uo,setSVG:()=>Qr,setScalingVar:()=>es,setShadow:()=>We,setSubScalingVar:()=>Aa,setSvgIcon:()=>vs,setTheme:()=>us,setValue:()=>ip,setVariables:()=>tp,setWasmEngine:()=>Ps,shadow:()=>Nu,sharedLibrary:()=>pu,sizes:()=>Zu,spacing:()=>Fu,splitSpacedValue:()=>xs,splitTopLevelCommas:()=>_e,splitTransition:()=>La,spotByPath:()=>Eo,srcsetFor:()=>Gr,stringIncludesAny:()=>Un,stringToObject:()=>_l,svg:()=>Hu,svgData:()=>Gu,swapItemsInArray:()=>Qc,syncProps:()=>ho,templates:()=>qu,theme:()=>Mu,timing:()=>Vu,toCamel:()=>Qo,toCamelCase:()=>Ho,toDashCase:()=>Go,toDescriptionCase:()=>bu,toTitleCase:()=>yu,toggleFullscreen:()=>Zf,transformBackgroundImage:()=>Fa,transformBorder:()=>de,transformBorderRadius:()=>Rs,transformBoxShadow:()=>Es,transformClassname:()=>mm,transformDuration:()=>Os,transformShadow:()=>$a,transformSize:()=>at,transformSizeRatio:()=>M,transformTextStroke:()=>Ia,transformTransition:()=>sp,transformersByPrefix:()=>Tp,transfromGap:()=>Da,translate:()=>cc,triggerEventOn:()=>$e,triggerEventOnUpdate:()=>Ef,trimStringFromSymbols:()=>ll,typography:()=>Zo,unit:()=>Tu,unstackArrayOfObjects:()=>Nn,update:()=>fn,updateProps:()=>mf,updateVars:()=>z0,upsertTranslation:()=>uc,useCssInProps:()=>Ft,useHostState:()=>Ip,usePropsAsCSS:()=>hm,useSelectorsAsCSS:()=>gm,variables:()=>jo,vars:()=>Xu,verbose:()=>Ur,warn:()=>Lo,window:()=>k});var Gc={};I(Gc,{batch:()=>me,createComputed:()=>Vc,createEffect:()=>et,createScopeStore:()=>$n,createSignal:()=>Mt,createStore:()=>Pt,getObserver:()=>sr,getSignals:()=>Hc,isStore:()=>rt,setObserver:()=>Bc});var wt=null,li=0,fi=[],sr=()=>wt,Bc=t=>{wt=t},ui=0,Mc=[];function Mt(t){let e=new Set;function r(){return wt&&(e.add(wt),wt._sources.add(s)),t}function n(i){i!==t&&(t=i,B_(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:\"signal\"};return s}function Vc(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:\"computed\",_subscribers:n,_execute(){jc(o);let s=wt;wt=o;try{e=t(),r=!1}finally{wt=s}},_notify(){r=!0,n.size>0&&Rh(n)},get(){return wt&&(n.add(wt),wt._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var or=new Set,Nc=!1;function et(t,e){let r=e?.depth??0,n={_sources:new Set,_type:\"effect\",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;jc(n);let o=wt;wt=n;try{t()}catch(s){console.error(\"[smbls] effect error:\",s)}finally{wt=o}},_notify(){n._disposed||(li>0?fi.push(n):ui>0?Mc.push(n):Uc(n))},dispose(){n._disposed=!0,jc(n)}};return n._execute(),n}function me(t){li++;try{t()}finally{li--,li===0&&j_()}}function Uc(t){or.add(t),Nc||(Nc=!0,queueMicrotask(N_))}var Tr=[];function N_(){if(Nc=!1,or.size!==0){if(or.size===1){let[t]=or;or.clear(),t._disposed||t._execute();return}Tr.length=0;for(let t of or)Tr.push(t);or.clear(),Tr.sort((t,e)=>t._depth-e._depth);for(let t=0;t<Tr.length;t++){let e=Tr[t];e._disposed||e._execute()}Tr.length=0}}function j_(){for(let t=0;t<fi.length;t++)Uc(fi[t]);fi.length=0}function Rh(t){ui++;try{for(let e of t)e._notify()}finally{if(ui--,ui===0&&Mc.length>0){let e=Mc.splice(0);for(let r=0;r<e.length;r++)Uc(e[r])}}}function B_(t){Rh(t)}function jc(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var ir=Symbol(\"store\"),pi=Symbol(\"signals\"),zc=t=>!t||typeof t!=\"object\"||Array.isArray(t)||t[ir]||Object.isFrozen(t)||typeof Node<\"u\"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function Pt(t,e,r){r===void 0&&(r=0);let n={},o={},s=e&&e.maxDepth||8;if(t&&typeof t==\"object\")for(let y in t){if(y===\"__proto__\"||!Object.prototype.hasOwnProperty.call(t,y))continue;let b=t[y];r<s&&b&&typeof b==\"object\"&&!zc(b)?(o[y]=b,n[y]=Mt(Pt(b,e,r+1))):(o[y]=b,n[y]=Mt(b))}let i=new Proxy(o,{get(y,b){if(b===ir)return!0;if(b===pi)return n;if(b===\"__raw\")return y;if(b===\"update\")return a;if(b===\"parse\")return l;if(b===\"clean\")return f;if(b===\"keys\")return u;if(b===\"values\")return p;if(b===\"replace\")return d;if(b===\"add\")return h;if(b===\"remove\")return g;if(b===\"destroy\")return m;if(b===\"quietUpdate\")return c;if(b===\"__element\")return y.__element;if(b===\"parent\")return y.parent;if(b===\"root\")return y.root;if(Object.prototype.hasOwnProperty.call(n,b)){let x=n[b].get();if(x!==void 0||!(b!==\"root\"&&y.root&&y.root!==i))return x}if(y[b]!==void 0)return y[b];let _=typeof b==\"string\"&&!b.startsWith(\"__\")&&b!==\"then\"&&b!==\"constructor\"&&sr()!=null;if(b!==\"root\"&&y.root&&y.root!==i){let x=y.root[b];return x===void 0&&_&&!Object.prototype.hasOwnProperty.call(n,b)?(n[b]=Mt(void 0),n[b].get()):x}if(_)return n[b]=Mt(void 0),n[b].get()},set(y,b,_){return b===\"__proto__\"?!1:b===\"__element\"||b===\"parent\"||b===\"root\"?(y[b]=_,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=_,_&&typeof _==\"object\"&&!zc(_)?n[b].set(Pt(_,e,r+1)):n[b].set(_)):(y[b]=_,_&&typeof _==\"object\"&&!zc(_)?n[b]=Mt(Pt(_,e,r+1)):n[b]=Mt(_)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){me(()=>{for(let x in y)x!==\"__proto__\"&&(i[x]=y[x])});let _=o.__element;return _&&_.onUpdate&&!b?.quiet&&_.onUpdate(_,i,_.context),i}function c(y){return a(y,{quiet:!0})}function l(y){if(y||(y=new Set),y.has(i))return\"[Circular]\";y.add(i);let b={};for(let _ in n){if(_===\"parent\"||_===\"root\"||_.startsWith(\"__\"))continue;let x=n[_].peek();x&&x[ir]?b[_]=x.parse(y):b[_]=x}return b}function f(){return me(()=>{for(let y in n)delete i[y]}),i}function u(){return Object.keys(n)}function p(){return Object.keys(n).map(y=>n[y].peek())}function d(y){return me(()=>{for(let b in n)b in y||delete i[b];for(let b in y)b!==\"__proto__\"&&(i[b]=y[b])}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){f(),o.__element=null,o.parent=null}return i}function rt(t){return t&&t[ir]===!0}function Hc(t){return t[pi]}function $n(t,e){let r={},n={};if(t&&typeof t==\"object\")for(let i in t)n[i]=t[i],r[i]=Mt(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[pi];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[ir]?a[Wc]:null}return null};return new Proxy(n,{get(i,a){return a===ir?!0:a===pi?r:a===Wc?e:a===\"__raw\"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():e&&a!==\"then\"&&a!==\"constructor\"?e[a]:i[a]},set(i,a,c){let l=o(a);return l?(l===r&&(i[a]=c),l[a].set(c),!0):(i[a]=c,r[a]=Mt(c),!0)},has(i,a){if(a in r||a in i)return!0;let c=e;for(;c;){if(a in c)return!0;c=c[ir]?c[Wc]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var Wc=Symbol(\"scope.parent\");var dp={};I(dp,{css:()=>ve,getActiveDocument:()=>Ba,getCacheSize:()=>pp,injectGlobal:()=>lt,keyframes:()=>en,reset:()=>nm,setActiveDocument:()=>up,setWasmEngine:()=>Ps});var cp={};I(cp,{CONFIG:()=>ts,CSS_NATIVE_COLOR_REGEX:()=>Qt,CSS_UNITS:()=>cr,FACTORY:()=>fe,VALUE_TRANSFORMERS:()=>Ma,activateConfig:()=>Vg,animation:()=>Wu,appendSVGSprite:()=>ks,appendSvgIconsSprite:()=>Cs,applyDocument:()=>ws,applyHeadings:()=>Pa,applyMediaSequenceVars:()=>Be,applyReset:()=>As,applySequenceGlobalVars:()=>as,applySequenceVars:()=>ke,applySpacingSequence:()=>bs,applyTimingSequence:()=>Ss,applyTypographySequence:()=>gs,breakpoints:()=>Uu,changeGlobalTheme:()=>Na,changeLightness:()=>Cu,checkIfBoxSize:()=>ys,class:()=>Yu,color:()=>Du,colorStringToRgbaArray:()=>ce,convertSvgToSymbol:()=>cs,createConfig:()=>Ca,cssMediaVars:()=>ka,cssVars:()=>wa,devices:()=>zu,document:()=>Ng,findHeadingLetter:()=>Ta,findHeadings:()=>is,font:()=>Ou,fontFace:()=>Iu,fontFamily:()=>Ru,fontFamilyTypes:()=>Pu,generateSequence:()=>Ot,generateSequencePosition:()=>Qu,generateSprite:()=>Zr,generateSubSequence:()=>os,getActiveConfig:()=>A,getColor:()=>Z,getColorShade:()=>ga,getDefaultOrFirstKey:()=>xr,getFnPrefixAndValue:()=>we,getFontFace:()=>Eu,getFontFaceEach:()=>_r,getFontFaceEachString:()=>xa,getFontFaceString:()=>Xo,getFontFamily:()=>hs,getFontFormat:()=>ya,getFontSizeByKey:()=>ms,getMediaColor:()=>mt,getMediaTheme:()=>Ut,getRgbTone:()=>Ne,getSequenceValue:()=>ss,getSequenceValueBySymbols:()=>Ea,getSequenceValuePropertyPair:()=>pe,getShadow:()=>_s,getSpacingBasedOnRatio:()=>te,getSpacingByKey:()=>ut,getSubratio:()=>ns,getSubratioDifference:()=>rs,getTheme:()=>fs,getTimingByKey:()=>It,getTimingFunction:()=>zt,gradient:()=>Lu,grid:()=>Ku,hexToRgb:()=>Su,hexToRgbArray:()=>ua,hexToRgba:()=>ku,hslToRgb:()=>ha,icons:()=>ju,isCSSVar:()=>it,isGoogleFontsUrl:()=>Kr,isResolvedColor:()=>le,isScalingUnit:()=>ar,media:()=>$u,mixTwoColors:()=>_u,mixTwoRgb:()=>vu,mixTwoRgba:()=>ma,numToLetterMap:()=>ue,opacify:()=>qr,parseColorToken:()=>xe,popConfig:()=>tt,pushConfig:()=>ot,reset:()=>jg,resolveColorsInGradient:()=>Ts,resolveFileUrl:()=>Vt,returnSubThemeOrDefault:()=>Au,rgbArrayToHex:()=>pa,rgbToHSL:()=>da,rgbToHex:()=>wu,runThroughMedia:()=>Ra,scratchDefaultConfig:()=>Xr,scratchSystem:()=>tn,scratchUtils:()=>Ve,semanticIcons:()=>Bu,sequence:()=>Se,set:()=>Sr,setActiveConfig:()=>va,setColor:()=>Ue,setCustomFont:()=>Yo,setCustomFontMedia:()=>je,setEach:()=>ap,setFont:()=>ds,setFontFamily:()=>Jr,setFontImport:()=>Yr,setGradient:()=>ze,setInCustomFontMedia:()=>ba,setMediaTheme:()=>ps,setSVG:()=>Qr,setScalingVar:()=>es,setShadow:()=>We,setSubScalingVar:()=>Aa,setSvgIcon:()=>vs,setTheme:()=>us,setValue:()=>ip,setVariables:()=>tp,shadow:()=>Nu,sizes:()=>Zu,spacing:()=>Fu,splitSpacedValue:()=>xs,splitTopLevelCommas:()=>_e,splitTransition:()=>La,svg:()=>Hu,svgData:()=>Gu,templates:()=>qu,theme:()=>Mu,timing:()=>Vu,toCamel:()=>Qo,transformBackgroundImage:()=>Fa,transformBorder:()=>de,transformBorderRadius:()=>Rs,transformBoxShadow:()=>Es,transformDuration:()=>Os,transformShadow:()=>$a,transformSize:()=>at,transformSizeRatio:()=>M,transformTextStroke:()=>Ia,transformTransition:()=>sp,transfromGap:()=>Da,typography:()=>Zo,unit:()=>Tu,vars:()=>Xu});var Ve={};I(Ve,{CSS_NATIVE_COLOR_REGEX:()=>Qt,CSS_UNITS:()=>cr,applyMediaSequenceVars:()=>Be,applySequenceGlobalVars:()=>as,applySequenceVars:()=>ke,changeLightness:()=>Cu,colorStringToRgbaArray:()=>ce,convertSvgToSymbol:()=>cs,findHeadingLetter:()=>Ta,findHeadings:()=>is,generateSequence:()=>Ot,generateSequencePosition:()=>Qu,generateSprite:()=>Zr,generateSubSequence:()=>os,getColorShade:()=>ga,getDefaultOrFirstKey:()=>xr,getFnPrefixAndValue:()=>we,getFontFace:()=>Eu,getFontFaceEach:()=>_r,getFontFaceEachString:()=>xa,getFontFaceString:()=>Xo,getFontFormat:()=>ya,getRgbTone:()=>Ne,getSequenceValue:()=>ss,getSequenceValueBySymbols:()=>Ea,getSequenceValuePropertyPair:()=>pe,getSubratio:()=>ns,getSubratioDifference:()=>rs,hexToRgb:()=>Su,hexToRgbArray:()=>ua,hexToRgba:()=>ku,hslToRgb:()=>ha,isCSSVar:()=>it,isGoogleFontsUrl:()=>Kr,isResolvedColor:()=>le,isScalingUnit:()=>ar,mixTwoColors:()=>_u,mixTwoRgb:()=>vu,mixTwoRgba:()=>ma,numToLetterMap:()=>ue,opacify:()=>qr,parseColorToken:()=>xe,resolveFileUrl:()=>Vt,returnSubThemeOrDefault:()=>Au,rgbArrayToHex:()=>pa,rgbToHSL:()=>da,rgbToHex:()=>wu,setCustomFont:()=>Yo,setCustomFontMedia:()=>je,setFontImport:()=>Yr,setInCustomFontMedia:()=>ba,setScalingVar:()=>es,setSubScalingVar:()=>Aa,setVariables:()=>tp,splitTopLevelCommas:()=>_e});var ar=t=>t===\"em\"||t===\"rem\"||t===\"vw\"||t===\"vh\"||t===\"vmax\"||t===\"vmin\",cr=[\"px\",\"cm\",\"mm\",\"in\",\"pt\",\"pc\",\"em\",\"rem\",\"ex\",\"cap\",\"ch\",\"ic\",\"lh\",\"rlh\",\"%\",\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\",\"cqw\",\"cqh\",\"cqi\",\"cqb\",\"cqmin\",\"cqmax\",\"deg\",\"rad\",\"grad\",\"turn\",\"s\",\"ms\",\"dpi\",\"dpcm\",\"dppx\",\"fr\",\"auto\"];R();var ce=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]},_u=(t,e,r=.5)=>(t=ce(t),e=ce(e),ma(t,e,r)),Su=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},ua=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return[r,n,o]},wu=(t,e,r)=>\"#\"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),pa=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),ku=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},vu=(t,e,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(t[o]+(e[o]-t[o])*r);return`rgb(${n})`},Cu=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},da=(t,e,r)=>{let n=Math.max(t,e,r),o=n-Math.min(t,e,r),s=1-Math.abs(n+n-o-1),i=o&&(n==t?(e-r)/o:n==e?2+(r-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},ha=(t,e,r,n=e*Math.min(r,1-r),o=(s,i=(s+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],ga=(t,e)=>{let r=parseInt(t,16),n=(r>>16)+e;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},ma=(t,e,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(t[o]+(e[o]-t[o])*r)}return`rgba(${n})`},qr=(t,e)=>{let r=ce(t);if(!r){hr()&&console.warn(t+\" color is not rgba\");return}return r[3]=e,`rgba(${r})`},it=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Qt=/(?:rgba?\\(|hsla?\\(|#[0-9a-fA-F]{3,8}\\b)/,YS=/^([a-zA-Z]\\w*(?:-[a-zA-Z]\\w*)*)(?:\\.(\\d+))?(?:([+-]\\d+|=\\d+))?$/,xe=t=>{if(!w(t))return null;if(Qt.test(t))return{passthrough:t};if(it(t))return{cssVar:t};let e=t.match(YS);if(!e)return null;let[,r,n,o]=e,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]===\"=\"?o.slice(1):o;return{name:r,alpha:s,tone:i}},le=t=>w(t)&&(t.includes(\"rgb\")||t.includes(\"var(\")||t.includes(\"#\")),_e=t=>{let e=[],r=\"\",n=0;for(let o of t){if(o===\"(\"?n+=1:o===\")\"&&n>0&&(n-=1),o===\",\"&&n===0){e.push(r),r=\"\";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},Ne=(t,e)=>{w(t)&&t.includes(\"rgb\")&&(t=ce(t).join(\", \")),w(t)&&(t=t.split(\",\").map(o=>parseFloat(o.trim()))),ne(e)&&(e+=\"\");let r=pa(t),n=e.slice(0,1);if(n===\"-\"||n===\"+\"){let o=ga(r,parseFloat(e));return ua(o).join(\", \")}else{let[o,s,i]=t,a=da(o,s,i),[c,l,f]=a;return ha(c,l,parseFloat(e)/100*255)}};var Au=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Vt=(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},xr=(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},ya=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},Kr=t=>t&&(t.includes(\"fonts.googleapis.com\")||t.includes(\"fonts.gstatic.com\")),Yr=t=>`@import url('${t}');`,ba=t=>`@font-face { ${t} }`,Yo=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a==\"string\"&&a).map(a=>{let c=ya(a),l=c?` format('${c}')`:\"\";return`url('${a}')${l}`}).join(`,\n `);return`\n font-family: '${t}';\n font-style: ${n.fontStyle||\"normal\"};${r?`\n font-weight: ${r};`:\"\"}${n.fontStretch?`\n font-stretch: ${n.fontStretch};`:\"\"}${n.fontDisplay?`\n font-display: ${n.fontDisplay};`:\"\"}\n src: ${i};`},je=(t,e,r,n)=>`@font-face {${Yo(t,e,r,n)}\n}`,_r=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=e[o],f=Array.isArray(s)?s.map(u=>Vt(u,r)||u):Vt(s,r)||s;return Yo(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),Eu=t=>Object.keys(t).map(r=>_r(r,t[r].value)),xa=(t,e,r)=>{if(e&&e.isVariable){let s=Vt(e.url,r)||e.url;return Kr(s)?Yr(s):je(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||\"swap\"})}if(e[0])return _r(t,e,r).map(ba);let o=Array.isArray(e.url)?e.url.map(s=>Vt(s,r)||s):Vt(e.url,r)||e.url;return je(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Xo=(t,e)=>Object.keys(t).map(n=>xa(n,t[n].value,e));R();R();R();var Xr={};I(Xr,{animation:()=>Wu,breakpoints:()=>Uu,class:()=>Yu,color:()=>Du,devices:()=>zu,document:()=>Ng,font:()=>Ou,fontFace:()=>Iu,fontFamily:()=>Ru,fontFamilyTypes:()=>Pu,gradient:()=>Lu,grid:()=>Ku,icons:()=>ju,media:()=>$u,reset:()=>jg,semanticIcons:()=>Bu,sequence:()=>Se,shadow:()=>Nu,sizes:()=>Zu,spacing:()=>Fu,svg:()=>Hu,svgData:()=>Gu,templates:()=>qu,theme:()=>Mu,timing:()=>Vu,typography:()=>Zo,unit:()=>Tu,vars:()=>Xu});var Se={\"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 Tu={default:\"em\"};var XS={browserDefault:16,base:16,type:\"font-size\",ratio:Se[\"minor-third\"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:\"em\",templates:{},sequence:{},scales:{},vars:{}},Zo=XS;var Ou={};var Ru={},Pu={\"sans-serif\":\"Helvetica, Arial, sans-serif, --system-default\",serif:\"Times New Roman, Georgia, serif, --system-default\",monospace:\"Courier New, monospace, --system-default\"},Iu={};var $u={tv:\"(min-width: 2780px)\",light:\"(prefers-color-scheme: light)\",dark:\"(prefers-color-scheme: dark)\",print:\"print\"};var ZS={base:Zo.base,type:\"spacing\",ratio:Se.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:\"em\",sequence:{},scales:{},vars:{}},Fu=ZS;var Du={},Lu={};var Mu={};var Nu={};var ju={},Bu={};var JS={default:150,base:150,type:\"timing\",ratio:Se[\"perfect-fourth\"],range:[-3,12],mediaRegenerate:!1,unit:\"ms\",sequence:{},scales:{},vars:{}},Vu=JS;var Ng={};var Uu={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},zu={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 Wu={};var Hu={},Gu={};var qu={};var QS={},Ku=QS;var Yu={};var jg={},Xu={},Zu={};var wa={},ka={},_a=Xr,Sa={},Qo=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in _a){let e=t.toLowerCase();Sa[e]=_a[t];let r=Qo(e);r!==e&&(Sa[r]=_a[t]),e!==t&&(Sa[t]=_a[t])}var ts={verbose:!1,useVariable:!0,useReset:!0,globalTheme:\"auto\",cssVars:wa,cssMediaVars:ka,CSS_VARS:wa,CSS_MEDIA_VARS:ka,_scratchConfig:!0,...Sa},Bg=Q(ts),fe={active:\"0\",0:ts},Vg=t=>(vt(t)&&(fe.active=t),fe[t||fe.active]),Jo=[],ot=t=>{t&&t._scratchConfig&&Jo.push(t)},tt=()=>{Jo.pop()},A=t=>Jo.length?Jo[Jo.length-1]:fe[t||fe.active]||ts,va=t=>{if(S(t))return fe.active=\"1\",fe[1]=W(t,Q(Bg)),t},tw=[\"useReset\",\"useVariable\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\",\"verbose\",\"globalTheme\"],ew=[[\"fontfamily\",\"fontFamily\",\"font_family\"],[\"fontfamilytypes\",\"fontFamilyTypes\"],[\"semanticicons\",\"semanticIcons\"],[\"svgdata\",\"svgData\"]],rw=t=>{for(let e of ew){let r;for(let n of e){let o=t[n];S(o)&&(r=r?W(o,r):o)}if(r)for(let n of e)S(t[n])&&(t[n]=r)}},Ca=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:A(),o=Q(!r&&n&&n._scratchConfig?n:Bg);for(let i of tw)delete o[i];let s=W(e||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,rw(s),t&&(fe[t]=s),s};var ue={\"-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\"},Ju=(t,e)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},e.scales[r]=s;let c=Ug.has(e.unit)?\"rem\":e.unit;e.vars[n]=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]},Ug=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),es=(t,e)=>{let{base:r,type:n,unit:o}=e,s=Ug.has(o)?\"rem\":o,i=(ar(s)?1:r)+s;if(t===0)return i;let c=\"--\"+(e.varPrefix?e.varPrefix+\"-\":\"\")+(n&&n.replace(\".\",\"-\")),l=`${c}-ratio`;if(t>0){let f=ue[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=ue[t+1],u=Math.abs(t),p=Math.pow(zg,2*u),d=ue[u];return d?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${d}) / ${p.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Aa=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,l=`${\"--\"+(n.varPrefix?n.varPrefix+\"-\":\"\")+(o&&o.replace(\".\",\"-\"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},rs=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},ns=(t,e)=>rs(t,e).map(r=>r/t),os=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,p,d]=rs(o,s);l>16?f=[u,p,d]:f=[u,d],f.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,_=Aa(g+1,f,i,e),x={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:_,index:b};Ju(x,e)})},zg=1.618,nw=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let n=Math.abs(t),o=e*Math.pow(r,t),s=e*Math.pow(r,n)/Math.pow(zg,2*n);return Math.max(o,s)},Ot=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),c=\"--\"+(t.varPrefix?t.varPrefix+\"-\":\"\")+(e&&e.replace(\".\",\"-\"))+\"-\";for(let l=0;l<=i;l++){let f=o[1]-l,u=ue[f],p=nw(f,r,n),d=~~(p/r*100)/100,h=c+u,g=es(f,t),m={key:u,variable:h,value:p,base:r,scaling:d,scalingVariable:g,ratio:n,index:f};Ju(m,t),s&&os(m,t)}return t},Qu=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=w(e)?e:ue[e],a=w(e)?Object.entries(ue).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=n*Math.pow(o,a),f=~~(l/n*100)/100,d=\"--\"+(t.varPrefix?t.varPrefix+\"-\":\"\")+(r&&r.replace(\".\",\"-\"))+\"-\"+i,h=es(a,t),g={key:i,variable:d,value:l,base:n,scaling:f,scalingVariable:h,ratio:o,index:a};return Ju(g,c),s&&os(g,c),c},ss=(t=\"A\",e)=>{let r=A(),{unit:n}=r;if(w(t)&&it(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(cr.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+\"-\":\"\"}${Go(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,C]=g.split(\"+\"),E=`${y(x)} + ${y(C)}`;return h?`calc((${E}) * -1)`:`calc(${E})`}else if(g.includes(\"*\")){let[x,C]=g.split(\"*\"),E=`${y(x)} * ${y(C)}`;return h?`calc((${E}) * -1)`:`calc(${E})`}else if(g.includes(\"-\")){let[x,C]=g.split(\"-\"),E=`${y(x)} - ${y(C)}`;return h?`calc((${E}) * -1)`:`calc(${E})`}let b=r.sizes;if(b){let x=b[t]||b[t.toLowerCase()];if(x!==void 0)return h?`calc(${x} * -1)`:x}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,\"- value is not found because `subSequence` is set to false\"),g=g.slice(0,1)),i||r.useVariable){let x=`var(${p}${g}${m})`;return h?`calc(${x} * -1)`:x}let _=o?o[g]:null;return _?s===\"ms\"||s===\"s\"?h+_.val+s:h+_.scaling+s:console.warn(\"can't find\",o,g)},Ea=(t,e)=>{if(![\"+\",\"-\",\"*\",\"/\",\",\"].filter(s=>t.includes(s+\" \")).length)return t;let n=/(\\s*[+\\-*/,]\\s*)/;return t.split(n).map(s=>{let i=s.trim();return!i||[\"+\",\"-\",\"*\",\"/\",\",\"].includes(i)?s:ss(i,e)}).join(\"\")},pe=(t,e,r,n)=>{if(typeof t!=\"string\")return A().verbose&&console.warn(e,t,\"is not a string\"),{[e]:t};if(t===\"-\"||t===\"\")return{};if(!n&&t.includes(\"(\")){let s=we(t);n=s[0],t=s[1]}return[\"+\",\"-\",\"*\",\"/\",\",\"].filter(s=>t.includes(s+\" \")).length?t=Ea(t,r):t=ss(t,r),{[e]:n?`${n}(${t})`:t}},Ta=(t,e)=>ue[t-e],is=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Ta(e,o);return r[s]})};R();var tp=(t,e)=>{let r=A(),{cssVars:n}=r;N(t.value)||(n[t.var]=t.value)},as=(t,e,r)=>{let n=A(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f=\"--\"+(e.varPrefix?e.varPrefix+\"-\":\"\")+(c&&c.replace(\".\",\"-\"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let u=`${f}-ratio`;t[u]=a;let[p,d,h]=ns(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})`},Wg=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),ke=(t,e={})=>{let r=A(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=Wg.has(i)?\"rem\":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||as(s,t,e);for(let u in l){let p=l[u],d=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[p.variable+\"_default\"]=d,s[p.variable]=p.scalingVariable;continue}e.useDefault===!1?s[p.variable]=d:(s[p.variable+\"_default\"]=d,s[p.variable]=`var(${p.variable+\"_default\"})`)}},Be=(t,e,r={})=>{let n=A(),{unit:o,media:s,cssVars:i}=n,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=Wg.has(l)?\"rem\":l,{mediaRegenerate:u}=t,{sequence:p,scales:d}=c,h=s[a];if(!h&&n.verbose&&console.warn(\"Can't find media query \",h),!u){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),as(g,c,r);let m=t.unit||o.default;if(f!==m&&p)for(let y in p){let b=p[y],_=d[y]+f;g[b.variable+\"_default\"]=_,g[b.variable]=_}return}for(let g in p){let m=p[g],y=(ar(f)?d[g]:p[g].val)+f;!h&&n.verbose&&console.warn(\"Can't find query \",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+\"_\"+a})`,i[m.variable+\"_\"+a]=y}};R();var Gg=hr(),Zr=t=>{let e=A(),r=\"\";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},ow=t=>{let e=t&&(t.default||t);if(!w(e))return Gg&&console.warn(\"parseRootAttributes:\",e,\"is not a string\"),{};let r=e.match(/<svg\\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\\S+)=[\"']?((?:.(?![\"']?\\s+(?:\\S+)=|\\s*\\/?[>\"']))+.)[\"']?/gm);return o?o.reduce((s,i)=>{let[a,c]=i.split(\"=\");return s[a]=c.replace(/['\"]/g,\"\"),s},{}):{}},sw=(t,e)=>{let r=[];if(t.replace(/id=\"([^\"]*)\"/g,(o,s)=>(r.push(s),o)),!r.length)return t;let n=t;for(let o of r){let s=o.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\"),i=`${e}-${o}`;n=n.replace(new RegExp(`id=\"${s}\"`,\"g\"),`id=\"${i}\"`).replace(new RegExp(`url\\\\(#${s}\\\\)`,\"g\"),`url(#${i})`).replace(new RegExp(`xlink:href=\"#${s}\"`,\"g\"),`xlink:href=\"#${i}\"`).replace(new RegExp(`href=\"#${s}\"`,\"g\"),`href=\"#${i}\"`)}return n},Hg=new Set,cs=(t,e)=>{let r=e&&e.default?e.default:e;if(!w(r))return Gg&&!Hg.has(t)&&(Hg.add(t),console.warn(\"convertSvgToSymbol:\",t,\"is not a string\")),\"\";e=r;let n=ow(e),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,l=sw(e,t).replace(\"<svg\",`<symbol id=\"${t}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"${i}\"`);return l=l.replace(/width=\"[^\"]*\"/,\"\"),l=l.replace(/height=\"[^\"]*\"/,\"\"),l=l.replace(\"</svg\",\"</symbol\"),l=cw(l),l},iw=\"line|circle|ellipse|rect|polyline|polygon|path|stop|use|image\",aw=new RegExp(`<(${iw})\\\\b([^>]*?)\\\\s*/>`,\"g\"),cw=t=>t.replace(aw,\"<$1$2></$1>\");var tn={};I(tn,{appendSVGSprite:()=>ks,appendSvgIconsSprite:()=>Cs,applyDocument:()=>ws,applyHeadings:()=>Pa,applyReset:()=>As,applySpacingSequence:()=>bs,applyTimingSequence:()=>Ss,applyTypographySequence:()=>gs,checkIfBoxSize:()=>ys,getColor:()=>Z,getFontFamily:()=>hs,getFontSizeByKey:()=>ms,getMediaColor:()=>mt,getMediaTheme:()=>Ut,getShadow:()=>_s,getSpacingBasedOnRatio:()=>te,getSpacingByKey:()=>ut,getTheme:()=>fs,getTimingByKey:()=>It,getTimingFunction:()=>zt,runThroughMedia:()=>Ra,setColor:()=>Ue,setFont:()=>ds,setFontFamily:()=>Jr,setGradient:()=>ze,setMediaTheme:()=>ps,setSVG:()=>Qr,setShadow:()=>We,setSvgIcon:()=>vs,setTheme:()=>us,splitSpacedValue:()=>xs});R();var Z=(t,e,r)=>{let n=r||A();if(!w(t)){n.verbose&&console.warn(t,\"- type for color is not valid\");return}if(it(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(T(t))[o,s,i]=t;else{let u=xe(t);if(!u){let{color:p,gradient:d}=n,h=d[t]||p[t];return h?(e&&h[e]&&(h=h[e]),n.useVariable?`var(${h.var})`:h.value):t}if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}let{color:a,gradient:c}=n,l=a[o]||c[o];if(!l)return n.verbose&&console.warn(\"Can't find color \",o),t;e&&(l[e]?l=l[e]:n.verbose&&console.warn(t,\" - does not have \",e));let f=l.rgb;if(!f){let u=n.useVariable?`var(${l.var})`:l.value;if(s&&u){let p=Math.round(parseFloat(s)*100);return`color-mix(in srgb, ${u} ${p}%, transparent)`}return u}return i&&!l[i]&&(f=Ne(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:n.useVariable?`var(${l.var})`:`rgb(${f})`},mt=(t,e,r)=>{let n=r||A();if(e||(e=n.globalTheme===\"auto\"?null:n.globalTheme),!w(t)){n.verbose&&console.warn(t,\"- type for color is not valid\");return}if(it(t))return`var(${t})`;let o,s,i;if(T(t))o=t[0];else{let u=xe(t);if(u){if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}else o=t}let{color:a,gradient:c}=n,l=a[o]||c[o],f=S(l);if(f&&l.value)return Z(t,`@${e}`,r);if(f){if(n.useVariable&&l.var)return s||i?Z(t,null,r):`var(${l.var})`;if(e)return Z(t,`@${e}`,r);{let u={};for(let p in l){if(p.charCodeAt(0)!==64)continue;let d=n.media[p.slice(1)];if(!d)continue;let h=\"@media \"+(d===\"print\"?`${d}`:`screen and ${d}`);u[h]=Z(t,p,r)}return u}}else return n.verbose&&console.warn(\"Can't find color\",t),t},Ue=(t,e,r)=>{let n=A();if(w(t)&&it(t)){let g=t.slice(2);if(t=Z(g),!(t.includes(\"rgb\")||t.includes(\"var\")||t.includes(\"#\"))){let m=g.split(\" \"),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(w(y)||T(y)||S(y))&&(n.color[m[0]]=Ue(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,_=m[1]!==void 0?m[1]:\"1\",x=m[2];x&&(b=Ne(b,x)),t=`rgba(${b}, ${_})`}else{let b=m[2],_=m[1]!==void 0?m[1]:\"1\";if(b)try{let x=ce(m[0]);x&&x.length>=3?t=`rgba(${Ne(x.slice(0,3).join(\", \"),b)}, ${_})`: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]=Ue(t[m],e,m.slice(0,1)===\"@\"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}color-${e}`,b,_={};for(let x in g){if(x.charCodeAt(0)!==64)continue;let C=x.slice(1),E=g[x],P=E&&(E.value||E);!P||typeof P!=\"string\"||(_[C]=P,(C===\"light\"||b===void 0)&&(b=P))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let x in _){let C=`[data-theme=\"${x}\"]`;if(n.cssMediaVars[C]||(n.cssMediaVars[C]={}),n.cssMediaVars[C][y]=_[x],x===\"light\"||x===\"dark\"){let E=`@media (prefers-color-scheme: ${x})`;n.cssMediaVars[E]||(n.cssMediaVars[E]={}),n.cssMediaVars[E][y]=_[x]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}color-${e}`+(r?`-${r}`:\"\"),i=t.value||t;if(w(i)&&i.includes(\".\")&&!i.includes(\"(\")){let[g,m]=i.split(\".\"),y=n.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat(\"0.\"+m)||1})`)}if(w(i)&&!i.includes(\"(\")&&!i.startsWith(\"#\")){let g=xe(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(w(m)||T(m)||S(m))&&(n.color[g.name]=Ue(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=Ne(b,g.tone));let _=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${_})`}}}let a=ce(i),[c,l,f,u=1]=a,p=parseFloat(u.toFixed(2)),d=`${c}, ${l}, ${f}`,h=`rgba(${d}, ${p})`;return n.useVariable&&(n.cssVars[s]=h),{var:s,rgb:d,alpha:p,value:h}},ze=(t,e,r)=>{let n=A();if(w(t)&&it(t)&&(t=Z(t.slice(2))),T(t))return{\"@light\":ze(t[0],e,\"light\"),\"@dark\":ze(t[0],e,\"dark\")};if(S(t)){let i={};for(let a in t)i[a]=ze(t[a],e,a.slice(0,1)===\"@\"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}gradient-${e}`+(r?`-${r}`:\"\");return n.useVariable&&(n.cssVars[s]=t.value||t),{var:s,value:t.value||t}};R();var lw=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\"]),qg=[\"color\",\"Color\",\"background\",\"Background\",\"fill\",\"Fill\",\"stroke\",\"Stroke\"],fw=t=>{for(let e=0;e<qg.length;e++)if(t.includes(qg[e]))return!0;return!1},Oa=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let l=[\"color\",\"Color\",\"background\",\"border\"].some(f=>a.includes(f));return e[a]=l?Z(t[a]):t[a]}),e},ls=t=>(t.value||(t.value=Oa(t)),t.value),fs=(t,e)=>{let r=A();if(r.useVariable)return Ut(t,e);let n=r.theme;if(w(t)){let[o,s]=t.split(\" \"),i=n[o];if(i){if(!s&&!e)return ls(i);t=[o,s||e]}}if(N(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return ls(a[s]);if(i&&i[s])return ls(i[s]);if(c&&c[s])return ls(c[s])}else if(S(t))return Oa(t)},uw=(t,e,r)=>{if(S(e))t.variants.inverse.value=Oa(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},pw=(t,e,r,n)=>{let o=fs(r);n[`&:${e}`]=o,S(r)&&!r.value&&(r.value=o)},dw=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return pw(t,o,s,e),t}),t):void 0},hw=(t,e,r,n)=>{let o=fs(r);n[`@media (prefers-color-scheme: ${e})`]=o,S(r)&&!r.value&&(r.value=o)},gw=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o===\"dark\"||o===\"light\")&&hw(t,o,s,e),o===\"inverse\"&&uw(t,s,e),t}),t):void 0},mw=(t,e)=>{let r=A(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return w(i)?n[s]=r.theme[i]:ls(n[s]),t}),t):void 0},us=(t,e)=>{let r=A();if(r.useVariable)return ps(t,e);let{state:n,media:o,helpers:s}=t,i=Oa(t,e),c=`--${r.varPrefix?r.varPrefix+\"-\":\"\"}theme-${e}`;return dw(t,i),gw(t,i),mw(t,i),{var:c,value:i,state:n,media:o,helpers:s}};var ep=(t,e,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:\"auto\",i={},a=new Set;for(let l in t)if(t[l])for(let f of Object.keys(t[l]))a.add(f);let c=new Set;for(let l of a){let f=l.slice(0,1);if(!(f===\"@\"||f===\".\"||f===\":\")&&fw(l))for(let u in t){if(c.has(u))continue;let p=t[u]?.[l];if(p===void 0)continue;let d=Z(p,`@${u}`);d!==void 0&&w(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!lw.has(d)&&c.add(u)}}for(let l of a){let f=l.slice(0,1),u=Object.values(t).some(p=>N(p?.[l]));if(f===\".\"&&u){let p=l.slice(1),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=ep(d,`${e}-${p}`,r)}else if(f===\":\"&&u){let p=l.replace(/^:+/,\"\"),d={};for(let h in t)N(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=ep(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=Z(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m===\"light\"||g===void 0))&&(g=b);let _=`[data-theme=\"${m}\"]`;if(o[_]||(o[_]={}),o[_][d]=b,m===\"dark\"||m===\"light\"){let x=`@media (prefers-color-scheme: ${m})`;o[x]||(o[x]={}),o[x][d]=b}}g!==void 0&&(n[d]=g),i[l]=`var(${d})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[\".inversed\"]={color:i.background||i.backgroundColor,background:i.color}),i},ps=(t,e,r,n)=>{let o=A(),{cssVars:s}=o,i={value:t},a=!r&&!n;if(N(t)){if(a&&o.useVariable){let c={};for(let l in t)l.startsWith(\"@\")&&N(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=ep(c,e,o);Object.assign(i,l)}}for(let c in t){let l=c.slice(0,1),f=t[c];if(l===\"@\"||l===\":\"||l===\".\"){let u=l===\"@\"&&c;i[c]=ps(f,e,c,n||u)}else if(!a){let u=Z(f,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?\"-\"+p.join(\"-\"):\"\",g=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=u),i[c]=`var(${g})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[\".inversed\"]&&(i.background||i.color||i.backgroundColor)&&(i[\".inversed\"]={color:i.background||i.backgroundColor,background:i.color})}if(w(t)&&it(t)){let l=o.theme[t.slice(2)];return Ut(l,n)}return i},rp=t=>{let e=A(),r={};for(let n in t){let o=n.slice(0,1);if(N(t[n])){if(o===\"@\")continue;o===\":\"?r[`&${n}`]=rp(t[n]):o===\".\"&&(r[`&${n}`]=rp(t[n]))}else r[n]=t[n]}return r},Yg=(t,e)=>{let r=e.shift();return t[r]?Yg(t[r],e):t},Kg=(t,e)=>T(e)?Yg(t,e):w(e)&&t[e]?t[e]:t;var Ut=(t,e)=>{let r=A();if(w(t)&&it(t)&&(t=Ut(t.slice(2))),!t||!w(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=T(t)?t:t.split(\" \"),s=r.theme[n];return s&&o.length?s=Kg(s,o):s&&e&&(s=Kg(s,e)),rp(s)};R();R();var ds=(t,e)=>{let r=A(),n=`--font-${e}`;if(!t||T(t)&&!t[0])return;let o;if(t.isVariable){let s=Vt(t.url,r.files)||t.url;Kr(s)?o=Yr(s):o=je(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||\"swap\"})}else if(t[0])o=_r(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Vt(i,r.files)||i):Vt(t.url,r.files)||t.url;o=je(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},hs=(t,e)=>{let r=A(),{fontFamily:n}=r;return xr(e||n,t)},Jr=(t,e)=>{let r=A(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!n.default)&&(n.default=e),S(s)&&(s=br(s));let a=`--font-family-${e}`,c=`${s.join(\", \")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};R();var Ra=t=>{let e=A(),{typography:r,media:n}=e;for(let o in t){let s=o.slice(0,1)===\"@\",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:l,base:f,ratio:u,range:p,subSequence:d,h1Matches:h,unit:g}=t;nt(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,_=n[c],x=\"@media \"+(_===\"print\"?`${_}`:`screen and ${_}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){nt(i,{sequence:{},scales:{},vars:{}}),Ot(i),Be(t,o);continue}nt(i,{sequence:{},scales:{},templates:{},vars:{}}),Ot(i),Be(t,o)}},Pa=t=>{let e=A();if(t.h1Matches){let r=t.unit,n=is(t),{templates:o}=t;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},gs=()=>{let t=A(),{typography:e}=t;Ot(e),Pa(e),ke(e),Ra(e)},ms=t=>{let e=A(),{typography:r}=e;return pe(t,\"fontSize\",r)};R();R();var yw=t=>{let r=A().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return Ot(o),o},bw=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)===\"@\"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;nt(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Ot(r),Be(t,e)}},ys=t=>{let e=t.toLowerCase(),r=e.includes(\"width\")||e.includes(\"height\"),n=e.includes(\"border\")||e.includes(\"outline\");return r&&!n},bs=()=>{let t=A(),{spacing:e}=t;Ot(e),ke(e),bw(e)},xw=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Ot(t)},ut=(t,e=\"padding\",r,n)=>{let o=xw(r);if(w(t)&&!n&&t.includes(\"(\")){let i=we(t);n=i[0],t=i[1]}let s=n?[t]:br(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)=>pe(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return pe(t,e,o,n)}},te=(t,e,r,n)=>{let o=A(),{spacing:s}=o,i=r||t[e];if(!n&&w(i)&&i.includes(\"(\")){let a=we(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=yw(t);return ut(i,e,a,n)}return ut(i,e,s,n)},xs=t=>{let e=r=>{let n=[\"+\",\"-\",\"*\",\"/\"].includes(r),o=cr.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+\"_default\":r};return t.split(\",\").map(r=>r.trim()).map(e).join(\",\").split(\" \").map(e).join(\" \")};R();var We=(t,e,r,n)=>{let o=A();if(T(t))return{\"@light\":We(t[0],e,\"light\"),\"@dark\":We(t[1],e,\"dark\")};if(S(t)){let a={};for(let c in t)a[c]=We(t[c],e,c.startsWith(\"@\")?c.slice(1):c);return a}w(t)&&!Qt.test(t)&&(t=_e(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=Z(c);if(le(l))return l;if(/^\\d/.test(c)||c===\"0\"||c.includes(\"px\")||c.slice(-2)===\"em\"||c===\"inset\"||c===\"none\")return c;let f=ut(c,\"shadow\");return f&&f.shadow?f.shadow:c}).join(\" \"))).join(\", \"));let i=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}shadow-${e}`+(r?`-${r}`:\"\");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},_s=(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(it(t))return`var(${t})`;let[n]=T(t)?t:t.split(\" \"),s=r.shadow[n],i=S(s);if(!s)return r.verbose&&console.warn(\"Can't find color \",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t,\" - does not have \",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let l=r.media[c.slice(1)],f=\"@media \"+(l===\"print\"?`${l}`:`screen and ${l}`);a[f]=s.value}return a}return r.verbose&&console.warn(\"Can't find color\",t),t};R();var Ss=()=>{let t=A(),{timing:e}=t;Ot(e),ke(e)},zt=t=>{let e=A(),{timing:r}=e;return r[t]||r[Ho(t)]||t},It=(t,e=\"timing\")=>{let r=A(),{timing:n}=r;return pe(t,e,n)};R();var ws=()=>{let t=A(),{document:e,fontFamily:r,theme:n,typography:o}=t;return nt(e,{theme:n.document,fontFamily:xr(r),fontSize:o.base,lineHeight:o.lineHeight})};R();var op={document:q},Qr=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn(\"setSVG: val is not defined\",e);return}return r.useSvgSprite?cs(e,t):t},ks=(t,e=op)=>{let r=A(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];Zg(n,e)},vs=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?Qr(t,e):t},Cs=(t,e=op)=>{let r=A(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];Zg(n,e)},np=(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},_w=(t,e)=>{let r=typeof DOMParser<\"u\"?DOMParser:null;if(r){let n=`<svg xmlns=\"http://www.w3.org/2000/svg\">${e}</svg>`,s=new r().parseFromString(n,\"image/svg+xml\");return s.querySelector(\"parsererror\")?null:s.documentElement}return null},Xg=(t,e,r)=>{for(;e.firstChild;){let n=e.firstChild;r.appendChild(t.importNode(n,!0)),n.remove()}},Zg=(t,e=op)=>{let r=A(),n=e.document||q;if(!n||!n.documentElement)return r.verbose&&console.warn(\"To append SVG sprites it should be run in browser environment\"),Zr(t);let o=n.querySelector(\"#svgSprite\"),s=Zr(t),i=`<svg aria-hidden=\"true\" width=\"0\" height=\"0\" style=\"position:absolute\" id=\"svgSprite\">${s}</svg>`,a=_w(n,s);if(o)if(a)Xg(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML(\"beforeend\",s);else{let c=np(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=np(n);c&&c.nodeType&&(Xg(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML(\"afterbegin\",i);else{let c=np(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};R();var As=(t={})=>{let e=A(),{reset:r,typography:n,document:o}=e;if(r){if(r[\":root\"]){let c=r,l=n.templates;c.body={...e.useDocumentTheme?Ut(\"document\"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?Ut(\"document\"):{};if(r.html&&At(r.html,a),n.unit){let{media:c}=e;for(let l in n){if(l.charAt(0)!==\"@\")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let u=f.unit,p=f.base||n.base,d=f.browserDefault||n.browserDefault,h=l.slice(1),g=c[h];if(!g)continue;let m=\"@media \"+(g===\"print\"?g:\"screen and \"+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=p/d+u}}return W(nt(r,t),{html:{position:\"absolute\",width:\"100%\",height:\"100%\",top:\"0\",left:\"0\",margin:\"0\",WebkitFontSmoothing:\"subpixel-antialiased\",scrollBehavior:\"smooth\",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+\"px\",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:\"border-box\",height:\"100%\",margin:0,fontFamily:o.fontFamily,fontSize:n.unit?\"1\"+e.unit.default:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:\"currentColor\"},button:{color:\"inherit\",font:\"inherit\",background:\"transparent\",border:\"none\",cursor:\"pointer\",appearance:\"none\",WebkitAppearance:\"none\"},\"input, select, textarea\":{color:\"inherit\",font:\"inherit\"},fieldset:{border:0,padding:0,margin:0}})}};R();var Sw=new Set([\"none\",\"hidden\",\"dotted\",\"dashed\",\"solid\",\"double\",\"groove\",\"ridge\",\"inset\",\"outset\",\"initial\"]),ww=new Set([\"to\",\"top\",\"bottom\",\"left\",\"right\",\"center\",\"at\",\"circle\",\"ellipse\",\"closest-side\",\"farthest-side\",\"closest-corner\",\"farthest-corner\"]),kw=t=>Sw.has(t),de=t=>{let e=t+\"\";if(Qt.test(e))return e;let r=e.trim();return r===\"none\"||r===\"0\"||r===\"initial\"||r===\"inherit\"||r===\"unset\"?e:e.split(/\\s+/).map(o=>{if(o=o.trim(),!o)return\"\";if(it(o))return`var(${o})`;if(kw(o)||/^\\d/.test(o)||o===\"0\")return o;let s=Z(o);if(le(s))return s;let i=ut(o,\"border\");return i&&i.border?i.border:o}).join(\" \")},Ia=t=>Qt.test(t)?t:t.split(/\\s+/).map(e=>{if(e=e.trim(),!e)return\"\";if(it(e))return`var(${e})`;if(/^\\d/.test(e)||e.includes(\"px\")||e===\"0\")return e;let r=Z(e);return le(r)?r:e}).join(\" \"),$a=(t,e)=>_s(t,e),Es=(t,e)=>Qt.test(t)?t:_e(t).map(r=>(r=r.trim(),r?r.split(/\\s+/).map(n=>{if(n=n.trim(),!n)return\"\";if(it(n))return`var(${n})`;if(n===\"inset\"||n===\"none\")return n;let o=Z(n);if(le(o)){let i=mt(n,e);return S(i)?Object.values(i).filter(a=>a.includes(\": \"+e))[0]:i}if(/^\\d/.test(n)||n===\"0\"||n.includes(\"px\")||n.slice(-2)===\"em\")return n;let s=ut(n,\"shadow\");return s&&s.shadow?s.shadow:n}).join(\" \"):\"\")).join(\", \"),Ts=(t,e)=>{let r=t.indexOf(\"(\");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(\")\")),s=\")\",a=_e(o).map(c=>(c=c.trim(),c.split(/\\s+/).map(f=>{if(!f||/^\\d/.test(f)||f===\"0\"||ww.has(f)||f===\"transparent\"||Qt.test(f))return f;let u=Z(f);return le(u)?u:f}).join(\" \")));return n+a.join(\", \")+s},Fa=(t,e)=>{let r=A();return _e(t).map(n=>{let o=n.trim();return it(o)?`var(${o})`:o.includes(\"url\")?o:o.includes(\"gradient\")?Ts(o,e):r.gradient[t]?{backgroundImage:mt(t,e||r.globalTheme)}:o.includes(\"/\")||o.startsWith(\"http\")||o.includes(\".\")&&!xe(o)?`url(${o})`:o}).join(\", \")},Da=t=>w(t)&&t.split(\" \").map(e=>ut(e,\"gap\").gap).join(\" \"),sp=t=>{let e=t.split(\" \");return e.length?e.map(r=>it(r)?`var(${r})`:r.length<3||r.includes(\"ms\")?It(r).timing||r:zt(r)?zt(r):r).join(\" \"):t},Os=(t,e,r)=>{if(w(t))return t.split(\",\").map(n=>It(n).timing||n).join(\",\")},La=t=>{let e=t.split(\",\");if(e.length)return e.map(sp).join(\",\")};function at(t,e,r={},n={}){let o=K.call(this,e||r[t]);if(o==null)return;let s;if(w(o)){if(o.includes(\"(\")){let c=we(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=ys(t);!i&&a&&!n.ratio&&(o=xs(o))}return n.ratio?te(r,t,o,s):ut(o,t,void 0,s)}var M=(t,e=null,r)=>at(t,e,r,{ratio:!0}),Rs=(t,e,r)=>{if(w(t))return{borderRadius:t.split(\" \").map((n,o)=>te(e,r,n)[r]).join(\" \")}};R();var vw=(t,e)=>{let r=A(),{cssVars:n}=r,o=e.startsWith(\"--\")?e:`--${e}`;return n[o]=t,t},$t=t=>t,Ma={color:Ue,gradient:ze,font:ds,fontFamily:Jr,fontfamily:Jr,theme:us,icons:vs,semanticIcons:$t,semanticicons:$t,svg:Qr,svgData:$t,typography:$t,shadow:We,spacing:$t,media:$t,grid:$t,class:$t,timing:$t,reset:$t,unit:$t,animation:$t,vars:vw,sizes:$t},ip=(t,e,r)=>{let n=A(),o=Qo(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=Ma[o]||Ma[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){n.verbose&&console.warn(\"Error setting\",s,\"value\",e,r,c)}n.verbose&&console.warn(\"Can not find\",s,\"method in scratch\")},ap=(t,e)=>{let r=A(),n=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 ip(n,e[s],s)}catch(i){r.verbose&&console.warn(\"Error setting\",n,\"value\",e[s],s,i)}}),r[n]||r[t]},Na=(t,e)=>{let r=e||A();r.globalTheme=t;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<\"u\"?document:null),s=o&&o.defaultView||(typeof window<\"u\"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(t&&t!==\"auto\")a.setAttribute(\"data-theme\",t),t===\"dark\"||t===\"light\"?a.style.colorScheme=t:a.style.colorScheme=\"light dark\";else if(s&&s.matchMedia){let l=u=>{a.setAttribute(\"data-theme\",u.matches?\"dark\":\"light\")},f=s.matchMedia(\"(prefers-color-scheme: dark)\");if(l(f),a.style.colorScheme=\"light dark\",!r.__prefersListener){r.__prefersListener=l;try{f.addEventListener(\"change\",l)}catch{f.addListener(l)}}}else a.setAttribute(\"data-theme\",\"light\"),a.style.colorScheme=\"light\"}let i=r.varPrefix?`--${r.varPrefix}-theme-`:\"--theme-\";for(let a in r.cssVars)a.startsWith(i)&&delete r.cssVars[a];for(let a in r.cssMediaVars)delete r.cssMediaVars[a];if(o&&r.cssVars){let a=r.scopeSelector||\":root\",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let u=0;u<f.length;u++)if(f[u].selectorText===a){for(let p in r.cssVars)f[u].style.setProperty(p,r.cssVars[p]);return r}}catch{}}return r},Cw={},Sr=(t,e=Cw)=>{let r=e.config||A(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:p,useDefaultConfig:d,semanticIcons:h,files:g,assets:m,...y}=t;e.newConfig&&(r=va(e.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),l!==void 0&&(r.useIconSprite=l),p!==void 0&&(r.useDocumentTheme=p),f!==void 0&&(r.globalTheme=f),u!==void 0&&(r.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),d!==void 0&&(r.useDefaultConfig=d),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let _=(r.document&&r.document.documentElement?r.document:null)||(typeof document<\"u\"?document:null),x=_&&_.defaultView||(typeof window<\"u\"?window:null),C=_&&(r.themeRoot||_.documentElement);if(C&&typeof C.setAttribute==\"function\")if(r.globalTheme&&r.globalTheme!==\"auto\")C.setAttribute(\"data-theme\",r.globalTheme),r.globalTheme===\"dark\"||r.globalTheme===\"light\"?C.style.colorScheme=r.globalTheme:C.style.colorScheme=\"light dark\";else if(x&&x.matchMedia){let F=st=>{C.setAttribute(\"data-theme\",st.matches?\"dark\":\"light\")},H=x.matchMedia(\"(prefers-color-scheme: dark)\");if(F(H),C.style.colorScheme=\"light dark\",!r.__prefersListener){r.__prefersListener=F;try{H.addEventListener(\"change\",F)}catch{H.addListener(F)}}}else C.setAttribute(\"data-theme\",\"light\"),C.style.colorScheme=\"light\";r.__svgCache||(r.__svgCache={});let E=Object.keys(y),P=new Set(E);if(E.forEach(O=>{let F=O.toLowerCase();F!==O&&P.has(F)&&W(y[F],y[O])}),E.map(O=>{let F=O.toLowerCase();if(!(F!==O&&P.has(F)))return ap(O,y[O])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{gs()}catch(O){r.verbose&&console.warn(\"Error applying typography sequence\",O)}if(y.spacing)try{bs()}catch(O){r.verbose&&console.warn(\"Error applying spacing sequence\",O)}if(y.timing)try{Ss()}catch(O){r.verbose&&console.warn(\"Error applying timing sequence\",O)}ws();let V=As();return V&&(r.reset=V),r};var wr=new Map,em=null,fp=null,Aw=null;function Ps(t){t.batchAtomicCss&&(fp=t.batchAtomicCss),t.compoundCssClass&&(Aw=t.compoundCssClass)}var Ew=new Set;function up(t){try{let e=A();e&&(e.document=t)}catch{}t&&Ew.add(t)}function Ba(){try{let t=A();if(t?.document)return t.document}catch{}return typeof document<\"u\"?document:null}var Tw={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 kr(t){return t.replace(/[A-Z]/g,e=>\"-\"+e.toLowerCase())}function ja(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 Ow(t){let e=String(t);return e.length<=20?e.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():ja(e)}function Jg(t,e,r){let n=(r?r+\"\u0001\":\"\")+t+\":\"+e,o=wr.get(n),s=o?null:kr(t);if(!o){let a=Tw[t]||ja(t),c=Ow(e);o=r?`_${r}_${a}-${c}`:`_${a}-${c}`,wr.set(n,o)}if(typeof e==\"string\"&&(e.indexOf(\"}\")!==-1||e.indexOf(\"{\")!==-1))return o;let i=`.${o}{${s||kr(t)}:${e}}`;return Wt(i),o}var Qg=new WeakMap;function Wt(t,e){let r=rm(e);if(!r)return;let n=Qg.get(r);if(n||(n=new Set,Qg.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var tm=new WeakMap;function rm(t){let e=t||Ba();if(!e||!e.head)return null;let r=tm.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let n=e.head.querySelector(\"style[data-smbls]\");n||(n=e.createElement(\"style\"),n.setAttribute(\"data-smbls\",\"\"),e.head.appendChild(n));let o=n.sheet;return tm.set(e,o),em=o,o}var Rw=8;function ve(t,e,r){if(!t||typeof t!=\"object\")return\"\";let n=null,o=0,s=[],i=[];for(let c in t){let l=t[c];l==null||l===!1||l===\"\"||(typeof l==\"object\"?i.push([c,l]):fp?(n||(n=[]),n.push(c,String(l)),o++):s.push(Jg(c,String(l),r)))}if(n&&o>=Rw){let c=n.join(\"\\0\"),l=fp(c),f=l.indexOf(\"\\0\"),u=l.substring(0,f),p=l.substring(f+1);if(p){let d=p.split(`\n`);for(let h=0;h<d.length;h++)d[h]&&Wt(d[h])}s.push(u)}else if(n)for(let c=0;c<n.length;c+=2)s.push(Jg(n[c],n[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push(Pw(i[c][0],i[c][1],r));return s.concat(a).join(\" \").trim()}var lp=new Map;function Pw(t,e,r){let n=(r?r+\"\u0001\":\"\")+t+JSON.stringify(e),o=wr.get(n);if(o){let p=lp.get(o);if(p)for(let d=0;d<p.length;d++)Wt(p[d]);return o}o=r?`_${r}_c${ja(n)}`:`_c${ja(n)}`;let s=\"\",i=[],a=p=>typeof p==\"string\"&&(p.indexOf(\"{\")!==-1||p.indexOf(\"}\")!==-1),c=(p,d)=>{let h=\"\";for(let g in d){let m=d[g];if(m!=null)if(typeof m==\"object\")c([...p,g],m);else{if(a(m))continue;h+=`${kr(g)}:${m};`}}h&&(p.length===0?s+=h:i.push({chain:p,body:h}))};c([],e);let l=p=>{if(!p.length)return`.${o}`;let d=p[0].split(\",\").map(h=>h.trim()).map(h=>h.includes(\"&\")?h.replace(/&/g,`.${o}`):h.startsWith(\":\")?`.${o}${h}`:`.${o} ${h}`);for(let h=1;h<p.length;h++){let g=p[h].split(\",\").map(y=>y.trim()),m=[];for(let y of d)for(let b of g)b.includes(\"&\")?m.push(b.replace(/&/g,y)):b.startsWith(\":\")?m.push(y+b):m.push(y+\" \"+b);d=m}return d.join(\", \")},f=[];if(t.startsWith(\"@media\")||t.startsWith(\"@supports\")){if(s){let p=`${t}{.${o}{${s}}}`;f.push(p),Wt(p)}for(let p of i){let d=l(p.chain),h=`${t}{${d}{${p.body}}}`;f.push(h),Wt(h)}return lp.set(o,f),wr.set(n,o),o}let u=l([t]);if(s){let p=`${u}{${s}}`;f.push(p),Wt(p)}for(let p of i){let h=`${l([t,...p.chain])}{${p.body}}`;f.push(h),Wt(h)}return lp.set(o,f),wr.set(n,o),o}function lt(t){if(rm(),typeof t==\"string\"){Wt(t);return}let e=Object.keys(t),r=n=>{let o=n.match(/max-width:\\s*(\\d+)/);return o?parseInt(o[1]):0};e.sort((n,o)=>{let s=n.startsWith(\"@media\"),i=o.startsWith(\"@media\");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of e){let o=t[n];if(n.startsWith(\"@media\")||n.startsWith(\"@supports\"))for(let s in o){let i=o[s];if(typeof i==\"object\"&&i!==null){let a=\"\";for(let c in i){let l=c.startsWith(\"--\")?c:kr(c);a+=`${l}:${i[c]};`}Wt(`${n}{${s}{${a}}}`)}else{let a=s.startsWith(\"--\")?s:kr(s);Wt(`${n}{${a}:${i};}`)}}else{let s=\"\",i=!1;for(let a in o){let c=o[a];if(typeof c==\"object\"&&c!==null)i=!0;else{let l=a.startsWith(\"--\")?a:kr(a);s+=`${l}:${c};`}}if(s&&Wt(`${n}{${s}}`),i){let a=[],c=[];for(let l in o)typeof o[l]==\"object\"&&o[l]!==null&&(l.startsWith(\"@media\")||l.startsWith(\"@supports\")?a.push(l):c.push(l));a.sort((l,f)=>{let u=p=>{let d=p.match(/max-width:\\s*(\\d+)/);return d?parseInt(d[1]):0};return u(f)-u(l)});for(let l of c)lt({[`${n} ${l}`]:o[l]});for(let l of a)lt({[l]:{[n]:o[l]}})}}}}function en(t,e){let r=\"\";for(let n in e){let o=\"\";for(let s in e[n])o+=`${kr(s)}:${e[n][s]};`;r+=`${n}{${o}}`}return Wt(`@keyframes ${t}{${r}}`),t}function nm(){wr.clear(),em=null}function pp(){return wr.size}R();var Yp={};I(Yp,{DELEGATED_EVENTS:()=>an,LIFECYCLE_EVENTS:()=>qe,MIXINS:()=>Va,NON_BUBBLING_EVENTS:()=>Ua,REGISTRY:()=>_t,SVG_TAGS:()=>on,addDelegatedEvent:()=>Is,addMethods:()=>pn,applyExtends:()=>ln,cacheNode:()=>Ge,create:()=>Ht,createHTMLNode:()=>nn,detectTag:()=>He,dispose:()=>Ke,isSvgTag:()=>sn,isValidTag:()=>rn,registerEvent:()=>cn,remove:()=>un,removeDelegatedEvent:()=>$s,update:()=>fn});var hp=\"http://www.w3.org/2000/svg\",on=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\"]),Iw=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 rn(t){return Iw.has(t)||on.has(t)}function sn(t){return on.has(t)}function He(t){let{tag:e,key:r}=t;if(typeof e==\"function\"&&(e=e(t)),e===!0&&(e=r),typeof e==\"string\"&&rn(e))return e;if(!r||typeof r!=\"string\")return\"div\";let n=new Set([\"html\",\"head\",\"body\",\"meta\",\"link\",\"script\",\"style\",\"title\",\"base\",\"noscript\",\"template\"]),o=r.toLowerCase();return o.includes(\".\")&&(o=o.split(\".\")[0]),o.includes(\"_\")&&(o=o.split(\"_\")[0]),rn(o)&&!n.has(o)?o:\"div\"}var om={};function nn(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(sn(t)){let n=e?.parent;if(t===\"svg\"||n?.node?.namespaceURI===hp)return r.createElementNS(hp,t);if(t!==\"svg\")return r.createElement(\"div\")}return r.createElement(t)}function Ge(t){let e=t.tag=He(t),n=sn(e)&&(e===\"svg\"||t.parent?.node?.namespaceURI===hp)?\"svg:\"+e:e,o=t?.context?.document||globalThis.document,s=om[n];if(s||(s=om[n]=nn(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?nn(e,t):s.cloneNode(!0);return e===\"string\"&&(i.nodeValue=t.text||\"\"),i}var _t=new Set([\"extends\",\"children\",\"content\",\"childrenAs\",\"childExtends\",\"childExtendsRecursive\",\"childProps\",\"inheritParentProps\",\"state\",\"if\",\"define\",\"deps\",\"tag\",\"attr\",\"style\",\"text\",\"html\",\"value\",\"data\",\"classlist\",\"class\",\"scope\",\"root\",\"context\",\"$router\",\"routes\",\"fetch\",\"variables\",\"query\",\"key\",\"component\",\"preventContentUpdate\",\"preventContentRecreate\",\"subscribeTo\",\"autoGrow\",\"__name\",\"__ref\",\"__hash\",\"__text\",\"parent\",\"node\"]),Va={text:\"text\",html:\"html\",style:\"style\",attr:\"attr\",data:\"data\",classlist:\"classlist\",state:\"state\",scope:\"scope\"},qe=new Set([\"start\",\"init\",\"complete\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeUpdate\",\"update\",\"afterUpdate\",\"beforeClassAssign\",\"lazyLoad\",\"render\",\"renderRouter\",\"done\",\"create\",\"frame\",\"startUpdate\",\"stateUpdate\",\"beforeStateUpdate\",\"initInspect\",\"initSync\",\"beforeRemove\",\"remove\"]),Ua=new Set([\"load\",\"error\",\"abort\",\"scroll\",\"canplay\",\"canplaythrough\",\"ended\",\"pause\",\"play\",\"playing\",\"ratechange\",\"seeked\",\"seeking\",\"stalled\",\"suspend\",\"timeupdate\",\"volumechange\",\"waiting\",\"durationchange\",\"loadeddata\",\"loadedmetadata\",\"progress\",\"emptied\",\"resize\"]),sm=new Set([\"wheel\",\"mousewheel\",\"touchstart\",\"touchmove\",\"touchend\",\"touchcancel\"]),an=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\",\"wheel\",\"contextmenu\",\"drag\",\"dragstart\",\"dragend\",\"dragenter\",\"dragleave\",\"dragover\",\"drop\"]);var gp=new WeakMap,$w={passive:!0},Fw={passive:!0,capture:!0},mp=(t,e)=>sm.has(t)?e?Fw:$w:e||!1;function am(t){let e=gp.get(t);return e||(e={handlers:new Map,installed:new Set},gp.set(t,e)),e}function Dw(t,e){let r=am(e);if(r.installed.has(t))return;r.installed.add(t);let n=t===\"focus\"||t===\"blur\"||t===\"focusin\"||t===\"focusout\"||t===\"mouseenter\"||t===\"mouseleave\",o=t===\"mouseenter\"||t===\"mouseleave\";e.addEventListener(t,s=>{let i=s.target;for(;i&&i!==e;){let a=r.handlers.get(t);if(a){let c=a.get(i);if(c){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},mp(t,n))}function Is(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=am(n);Dw(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function $s(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=gp.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function im(t){return an.has(t)&&!qe.has(t)}function cn(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o?.designSystem,i=c=>{s&&ot(s);try{let l=r.call(e,c,e,e.state,o);if(l&&typeof l.then==\"function\"){l.catch(f=>{e.error=f,console.error(\"[DOMQL] Async event error:\",f)}).finally(()=>{s&&tt()});return}}catch(l){if(e.error=l,console.error(\"[DOMQL] Event error:\",l),o?.strictMode)throw l}s&&tt()},a=Ua.has(t);if(!a&&im(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;Is(t,n,i,c)}else n.addEventListener(t,i,mp(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(!a&&im(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;$s(t,n,c)}else n.removeEventListener(t,i,mp(t,!1))})}function cm(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 ln(t,e,r){let n=cm(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=lm(n[i],s);a&&a!==e&&fm(t,a,r,new Set([e]))}}function lm(t,e){if(typeof t==\"string\"){if(t.includes(\">\")){let r=t.split(\">\").map(o=>o.trim()),n=e[r[0]]||e[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return e[t]||e[`smbls.${t}`]||null}return typeof t==\"object\"&&t!==null?t:null}function fm(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=cm(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=lm(o[a],i);c&&fm(t,c,r,n)}}for(let s in e){if(s===\"extends\"||s===\"extend\")continue;let i=e[s];t[s]===void 0?i&&typeof i==\"object\"&&!Array.isArray(i)&&typeof i!=\"function\"?t[s]={...i}:t[s]=i:typeof t[s]==\"object\"&&typeof i==\"object\"&&!Array.isArray(t[s])&&!Array.isArray(i)&&t[s]!==null&&i!==null?t[s]=um(t[s],i):t[s]=i}}function um(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o==\"object\"&&typeof s==\"object\"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!=\"function\"&&typeof s!=\"function\"?r[n]=um(o,s):r[n]=s}return r}Mr();function fn(t={},e={}){let r=this,n=r.__ref;if(n){if((typeof t==\"string\"||typeof t==\"number\")&&(t={text:t}),!e.preventListeners&&typeof r.onBeforeUpdate==\"function\"&&r.onBeforeUpdate(r,r.state,r.context,e)===!1)return r;if(me(()=>{if(t.state&&rt(r.state)&&r.state.update(t.state),t.text!==void 0&&(r.text=t.text,!n.__exec.text&&r.node&&(r.tag===\"string\"?r.node.nodeValue=t.text??\"\":r.node.textContent=t.text??\"\")),t.html!==void 0&&(r.html=t.html,!n.__exec.html&&r.node&&(r.node.innerHTML=t.html)),t.style&&r.node?.style){if(!n.__exec.style)for(let o in t.style){let s=t.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,c=>\"-\"+c.toLowerCase()),a=String(s).replace(/\\s*!important\\s*$/,\"\");r.node.style.setProperty(i,a,\"important\")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let o in t.attr){let s=t.attr[o];s==null||s===!1?r.node.removeAttribute(o):typeof s!=\"function\"&&typeof s!=\"object\"&&r.node.setAttribute(o,s===!0?\"\":s)}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let o in t.data)r.node.dataset[o]=t.data[o];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let o in t){if(_t.has(o)||o===\"state\")continue;let s=t[o],i=r[o];if(i&&i.__ref&&typeof i.update==\"function\")i.update(s,e);else if(typeof s==\"object\"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&Ht(s,r,o,e)}else o!==\"text\"&&o!==\"html\"&&o!==\"style\"&&o!==\"attr\"&&o!==\"data\"&&(r[o]=s)}}),r.node&&n.__conditionalRunners)for(let o of n.__conditionalRunners)o();return Nt(\"update\",r),!e.preventListeners&&typeof r.onUpdate==\"function\"&&r.onUpdate(r,r.state,r.context,e),r}}function Ke(t){if(!t)return;let e=t.__ref;if(e){try{typeof t.onBeforeRemove==\"function\"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error(\"[smbls] onBeforeRemove error:\",r)}if(e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){for(let r=0;r<e.__children.length;r++){let n=e.__children[r],o=t[n];o&&o.__ref&&Ke(o)}e.__children.length=0}if(t.node?.parentNode&&t.node.remove(),t.state?.destroy&&t.state.__element===t&&t.state.destroy(),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),delete t.parent[t.key]}try{typeof t.onRemove==\"function\"&&t.onRemove(t)}catch(r){console.error(\"[smbls] onRemove error:\",r)}t.node=null,t.parent=null,t.__ref=null}}function un(){Ke(this)}R();R();var Lw=[\"ease\",\"linear\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"step-start\",\"step-end\"],Mw=[\"none\",\"forwards\",\"backwards\",\"both\"],Nw=[\"normal\",\"reverse\",\"alternate\",\"alternate-reverse\"],jw=[\"running\",\"paused\"],Bw=t=>/^[\\d.]+m?s$/.test(t),Vw=0,pm=new Map,yp=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(S(t)){let o=JSON.stringify(t),s=pm.get(o);if(s)return s;let i=`smbls-anim-${Vw++}`,a=en(i,t);return pm.set(o,a),a}let n=r&&r[t];return S(n)?en(t,n):t},Uw=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},n=t.split(/\\s+/),o=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let u of n)r&&r[u]?o=u:Bw(u)?s.push(u):Lw.includes(u)||u.startsWith(\"cubic-bezier\")||u.startsWith(\"steps(\")?i=u:u===\"infinite\"||/^\\d+$/.test(u)?a=u===\"infinite\"?u:Number(u):Nw.includes(u)?c=u:Mw.includes(u)?l=u:jw.includes(u)?f=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},bp={animation:(t,e)=>{if(w(t)&&t.includes(\" \")){let r=Uw(t,e);return{animationName:yp(r.name||t,e),animationDuration:r.durations[0]||It(e.animationDuration||\"A\").timing,animationDelay:r.durations[1]||It(e.animationDelay||\"0s\").timing,animationTimingFunction:r.timingFunction||zt(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:yp(t,e),animationDuration:It(e.animationDuration||\"A\").timing,animationDelay:It(e.animationDelay||\"0s\").timing,animationTimingFunction:zt(e.animationTimingFunction||\"ease\"),animationFillMode:e.animationFillMode||\"both\",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:yp(t,e)}),animationDuration:t=>({animationDuration:It(t).timing}),animationDelay:t=>({animationDelay:It(t).timing}),animationTimingFunction:t=>({animationTimingFunction:zt(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};R();var xp={show:t=>t?void 0:{display:\"none !important\"},hide:t=>t?{display:\"none !important\"}:void 0,height:(t,e)=>M(\"height\",t,e),width:(t,e)=>M(\"width\",t,e),boxSizing:t=>ht(t)?{boxSizing:\"border-box\"}:{boxSizing:t},boxSize:t=>{if(!w(t))return;let[e,r]=t.split(\" \");return{...at(\"height\",e),...at(\"width\",r||e)}},inlineSize:(t,e)=>M(\"inlineSize\",t,e),blockSize:(t,e)=>M(\"blockSize\",t,e),minWidth:(t,e)=>M(\"minWidth\",t,e),maxWidth:(t,e)=>M(\"maxWidth\",t,e),widthRange:t=>{if(!w(t))return;let[e,r]=t.split(\" \");return{...at(\"minWidth\",e),...at(\"maxWidth\",r||e)}},minHeight:(t,e)=>M(\"minHeight\",t,e),maxHeight:(t,e)=>M(\"maxHeight\",t,e),heightRange:t=>{if(!w(t))return;let[e,r]=t.split(\" \");return{...at(\"minHeight\",e),...at(\"maxHeight\",r||e)}},size:t=>{if(!w(t))return;let[e,r]=t.split(\" \");return{...M(\"inlineSize\",e),...M(\"blockSize\",r||e)}},minBlockSize:(t,e)=>M(\"minBlockSize\",t,e),minInlineSize:(t,e)=>M(\"minInlineSize\",t,e),maxBlockSize:(t,e)=>M(\"maxBlockSize\",t,e),maxInlineSize:(t,e)=>M(\"maxInlineSize\",t,e),minSize:t=>{if(!w(t))return;let[e,r]=t.split(\" \");return{...at(\"minInlineSize\",e),...at(\"minBlockSize\",r||e)}},maxSize:t=>{if(!w(t))return;let[e,r]=t.split(\" \");return{...at(\"maxInlineSize\",e),...at(\"maxBlockSize\",r||e)}},borderWidth:(t,e)=>M(\"borderWidth\",t,e),padding:(t,e)=>M(\"padding\",t,e),scrollPadding:(t,e)=>M(\"scrollPadding\",t,e),paddingInline:t=>{if(!w(t))return;let[e,r]=t.split(\" \");return{...at(\"paddingInlineStart\",e),...at(\"paddingInlineEnd\",r||e)}},paddingBlock:t=>{if(!w(t))return;let[e,r]=t.split(\" \");return{...at(\"paddingBlockStart\",e),...at(\"paddingBlockEnd\",r||e)}},paddingTop:(t,e)=>M(\"paddingBlockStart\",t,e),paddingBottom:(t,e)=>M(\"paddingBlockEnd\",t,e),paddingLeft:(t,e)=>M(\"paddingInlineStart\",t,e),paddingRight:(t,e)=>M(\"paddingInlineEnd\",t,e),paddingBlockStart:(t,e)=>M(\"paddingBlockStart\",t,e),paddingBlockEnd:(t,e)=>M(\"paddingBlockEnd\",t,e),paddingInlineStart:(t,e)=>M(\"paddingInlineStart\",t,e),paddingInlineEnd:(t,e)=>M(\"paddingInlineEnd\",t,e),margin:(t,e)=>M(\"margin\",t,e),marginInline:t=>{if(!w(t))return;let[e,r]=t.split(\" \");return{...at(\"marginInlineStart\",e),...at(\"marginInlineEnd\",r||e)}},marginBlock:(t,e)=>{if(!w(e.marginBlock))return;let[r,n]=e.marginBlock.split(\" \");return{...at(\"marginBlockStart\",r),...at(\"marginBlockEnd\",n||r)}},marginTop:(t,e)=>M(\"marginBlockStart\",t,e),marginBottom:(t,e)=>M(\"marginBlockEnd\",t,e),marginLeft:(t,e)=>M(\"marginInlineStart\",t,e),marginRight:(t,e)=>M(\"marginInlineEnd\",t,e),marginInlineStart:(t,e)=>M(\"marginInlineStart\",t,e),marginInlineEnd:(t,e)=>M(\"marginInlineEnd\",t,e),marginBlockStart:(t,e)=>M(\"marginBlockStart\",t,e),marginBlockEnd:(t,e)=>M(\"marginBlockEnd\",t,e),gap:t=>({gap:Da(t)}),columnGap:(t,e)=>te(e,\"columnGap\",t),rowGap:(t,e)=>te(e,\"rowGap\",t),flexWrap:t=>({display:\"flex\",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!w(t))return;let[n,o]=(t||\"row\").split(\" \");return(t.startsWith(\"x\")||t===\"row\")&&(n=\"row\"),(t.startsWith(\"y\")||t===\"column\")&&(n=\"column\"),{display:\"flex\",flexFlow:(n||\"\")+(!n.includes(\"-reverse\")&&r?\"-reverse\":\"\")+\" \"+(o||\"\")}},flexAlign:t=>{if(!w(t))return;let[e,r]=t.split(\" \");return{display:\"flex\",alignItems:e,justifyContent:r}},round:(t,e)=>Rs(t??e.borderRadius,e,\"round\"),borderRadius:(t,e)=>Rs(t??e.round,e,\"borderRadius\")};var _p={fontSize:t=>ms(t)||t,fontFamily:t=>({fontFamily:hs(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'\"wght\" '+t})};var Sp={overflow:t=>({overflow:t}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.assets&&n.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=n.files&&n.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var wp={inset:(t,e)=>{if(e.call(\"isNumber\",t))return{inset:t};if(e.call(\"isString\",t))return{inset:t.split(\" \").map(r=>ut(r,\"k\").k).join(\" \")}},left:t=>ut(t,\"left\"),top:t=>ut(t,\"top\"),right:t=>ut(t,\"right\"),bottom:t=>ut(t,\"bottom\"),verticalInset:t=>{if(typeof t!=\"string\")return;let e=t.split(\" \").map(r=>ut(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=>ut(r,\"k\").k);return{left:e[0],right:e[1]||e[0]}}};R();var Gt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r===\"auto\"?null:r},kp={theme:(t,e)=>{if(t)return e.themeModifier?Ut(t,`@${e.themeModifier}`):Ut(t)},color:(t,e)=>{let r=Gt(e);if(t)return{color:mt(t,r)}},background:(t,e)=>{let r=Gt(e);if(t)return w(t)&&t.includes(\"gradient\")?{background:Ts(t,r)}:{background:mt(t,r)}},backgroundColor:(t,e)=>{let r=Gt(e);if(t)return{backgroundColor:mt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Gt(e);if(!t)return;let s=n.assets&&n.assets[t];if(s&&s.content)t=s.content.src;else{let i=n.files&&n.files[t];i&&i.content&&(t=i.content.src)}return{backgroundImage:Fa(t,o)}},textStroke:t=>({WebkitTextStroke:Ia(t)}),outline:t=>({outline:de(t)}),outlineOffset:(t,e)=>M(\"outlineOffset\",t,e),border:t=>({border:de(t)}),borderColor:(t,e)=>{let r=Gt(e);if(t)return{borderColor:mt(t,r)}},borderTopColor:(t,e)=>{let r=Gt(e);if(t)return{borderTopColor:mt(t,r)}},borderBottomColor:(t,e)=>{let r=Gt(e);if(t)return{borderBottomColor:mt(t,r)}},borderLeftColor:(t,e)=>{let r=Gt(e);if(t)return{borderLeftColor:mt(t,r)}},borderRightColor:(t,e)=>{let r=Gt(e);if(t)return{borderRightColor:mt(t,r)}},borderLeft:t=>({borderLeft:de(t)}),borderTop:t=>({borderTop:de(t)}),borderRight:t=>({borderRight:de(t)}),borderBottom:t=>({borderBottom:de(t)}),shadow:(t,e)=>{let r=Gt(e);if(t)return{boxShadow:$a(t,r)}},boxShadow:(t,e)=>{if(!w(t))return;let[r,n]=t.split(\"!importan\"),o=Gt(e),s=n?\" !important\":\"\";return{boxShadow:Es(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:Es(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:de(t)})};var Fs={transition:t=>({transition:La(t)}),transitionDuration:t=>({transitionDuration:Os(t)}),transitionDelay:t=>({transitionDelay:Os(t)}),transitionTimingFunction:t=>({transitionTimingFunction:zt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};R();var vp={flow:(t,e)=>{let r=e.reverse;if(!w(t))return;let[n,o]=(t||\"row\").split(\" \");return(t.startsWith(\"x\")||t===\"row\")&&(n=\"row\"),(t.startsWith(\"y\")||t===\"column\")&&(n=\"column\"),{display:\"flex\",flexFlow:(n||\"\")+(!n.includes(\"-reverse\")&&r?\"-reverse\":\"\")+\" \"+(o||\"\")}},wrap:(t,e)=>({display:\"flex\",flexWrap:t}),align:(t,e)=>{let[r,n]=t.split(\" \");return{display:\"flex\",alignItems:r,justifyContent:n}}};var Cp={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var pt={...bp,...xp,..._p,...Sp,...wp,...kp,...Fs,...vp,...Cp};var yt=new Set([\"accentColor\",\"alignContent\",\"alignItems\",\"alignSelf\",\"alignmentBaseline\",\"all\",\"animation\",\"animationDelay\",\"animationDirection\",\"animationDuration\",\"animationFillMode\",\"animationIterationCount\",\"animationName\",\"animationPlayState\",\"animationTimingFunction\",\"appearance\",\"aspectRatio\",\"backdropFilter\",\"backfaceVisibility\",\"background\",\"backgroundAttachment\",\"backgroundBlendMode\",\"backgroundClip\",\"backgroundColor\",\"backgroundImage\",\"backgroundOrigin\",\"backgroundPosition\",\"backgroundPositionX\",\"backgroundPositionY\",\"backgroundRepeat\",\"backgroundRepeatX\",\"backgroundRepeatY\",\"backgroundSize\",\"baselineShift\",\"blockSize\",\"border\",\"borderBlock\",\"borderBlockColor\",\"borderBlockEnd\",\"borderBlockEndColor\",\"borderBlockEndStyle\",\"borderBlockEndWidth\",\"borderBlockStart\",\"borderBlockStartColor\",\"borderBlockStartStyle\",\"borderBlockStartWidth\",\"borderBlockStyle\",\"borderBlockWidth\",\"borderBottom\",\"borderBottomColor\",\"borderBottomLeftRadius\",\"borderBottomRightRadius\",\"borderBottomStyle\",\"borderBottomWidth\",\"borderCollapse\",\"borderColor\",\"borderImage\",\"borderImageOutset\",\"borderImageRepeat\",\"borderImageSlice\",\"borderImageSource\",\"borderImageWidth\",\"borderLeft\",\"borderLeftColor\",\"borderLeftStyle\",\"borderLeftWidth\",\"borderRadius\",\"borderRight\",\"borderRightColor\",\"borderRightStyle\",\"borderRightWidth\",\"borderSpacing\",\"borderStyle\",\"borderTop\",\"borderTopColor\",\"borderTopLeftRadius\",\"borderTopRightRadius\",\"borderTopStyle\",\"borderTopWidth\",\"borderWidth\",\"bottom\",\"boxDecorationBreak\",\"boxShadow\",\"boxSizing\",\"breakAfter\",\"breakBefore\",\"breakInside\",\"captionSide\",\"caretColor\",\"clear\",\"clip\",\"clipPath\",\"color\",\"colorAdjust\",\"colorInterpolation\",\"colorInterpolationFilters\",\"colorRendering\",\"columnCount\",\"columnFill\",\"columnGap\",\"columnRule\",\"columnRuleColor\",\"columnRuleStyle\",\"columnRuleWidth\",\"columnSpan\",\"columnWidth\",\"columns\",\"contain\",\"content\",\"counterIncrement\",\"counterReset\",\"cursor\",\"direction\",\"display\",\"emptyCells\",\"filter\",\"flex\",\"flexBasis\",\"flexDirection\",\"flexFlow\",\"flexGrow\",\"flexShrink\",\"flexWrap\",\"float\",\"font\",\"fontFamily\",\"fontFeatureSettings\",\"fontKerning\",\"fontLanguageOverride\",\"fontSize\",\"fontSizeAdjust\",\"fontStretch\",\"fontStyle\",\"fontVariant\",\"fontVariantAlternates\",\"fontVariantCaps\",\"fontVariantEastAsian\",\"fontVariantNumeric\",\"fontVariantPosition\",\"fontWeight\",\"fontVariationSettings\",\"fontSynthesis\",\"forcedColorAdjust\",\"gap\",\"grid\",\"gridArea\",\"gridAutoColumns\",\"gridAutoFlow\",\"gridAutoRows\",\"gridColumn\",\"gridColumnEnd\",\"gridColumnGap\",\"gridColumnStart\",\"gridGap\",\"gridRow\",\"gridRowEnd\",\"gridRowGap\",\"gridRowStart\",\"gridTemplate\",\"gridTemplateAreas\",\"gridTemplateColumns\",\"gridTemplateRows\",\"height\",\"hyphens\",\"imageOrientation\",\"imageRendering\",\"imeMode\",\"inset\",\"insetBlock\",\"insetBlockEnd\",\"insetBlockStart\",\"insetInline\",\"insetInlineEnd\",\"insetInlineStart\",\"initialLetter\",\"isolation\",\"justifyContent\",\"justifyItems\",\"justifySelf\",\"left\",\"letterSpacing\",\"lineBreak\",\"lineClamp\",\"lineHeight\",\"listStyle\",\"listStyleImage\",\"listStylePosition\",\"listStyleType\",\"margin\",\"marginBottom\",\"marginLeft\",\"marginRight\",\"marginTop\",\"marginBlock\",\"marginBlockEnd\",\"marginBlockStart\",\"marginInline\",\"marginInlineEnd\",\"marginInlineStart\",\"mask\",\"maskBorder\",\"maskBorderImage\",\"maskBorderOutset\",\"maskBorderRepeat\",\"maskBorderSlice\",\"maskBorderSource\",\"maskBorderWidth\",\"maskClip\",\"maskComposite\",\"maskImage\",\"maskOrigin\",\"maskPosition\",\"maskRepeat\",\"maskSize\",\"maskType\",\"maxBlockSize\",\"maxHeight\",\"maxInlineSize\",\"maxWidth\",\"minBlockSize\",\"minHeight\",\"minInlineSize\",\"minWidth\",\"mixBlendMode\",\"objectFit\",\"objectPosition\",\"objectViewBox\",\"offset\",\"offsetDistance\",\"offsetPath\",\"offsetRotate\",\"opacity\",\"order\",\"orientation\",\"outline\",\"outlineColor\",\"outlineOffset\",\"outlineStyle\",\"outlineWidth\",\"overflow\",\"overflowAnchor\",\"overflowClip\",\"overflowScrolling\",\"overflowWrap\",\"overflowX\",\"overflowY\",\"padding\",\"paddingBottom\",\"paddingLeft\",\"paddingRight\",\"paddingTop\",\"pageBreakAfter\",\"pageBreakBefore\",\"pageBreakInside\",\"paintOrder\",\"perspective\",\"perspectiveOrigin\",\"placeContent\",\"placeItems\",\"placeSelf\",\"pointerEvents\",\"position\",\"resize\",\"right\",\"rotate\",\"rowGap\",\"scrollBehavior\",\"scrollPadding\",\"scrollSnapAlign\",\"scrollSnapType\",\"scrollbarColor\",\"scrollbarWidth\",\"shapeImageThreshold\",\"shapeMargin\",\"shapeOutside\",\"tabSize\",\"tableLayout\",\"textAlign\",\"textAlignLast\",\"textDecoration\",\"textDecorationColor\",\"textDecorationLine\",\"textDecorationSkipInk\",\"textDecorationStyle\",\"textDecorationThickness\",\"textIndent\",\"textOverflow\",\"textShadow\",\"textTransform\",\"textUnderlineOffset\",\"top\",\"transform\",\"transformOrigin\",\"transformStyle\",\"transition\",\"transitionDelay\",\"transitionDuration\",\"transitionProperty\",\"transitionTimingFunction\",\"translate\",\"translateX\",\"translateY\",\"translateZ\",\"unicodeBidi\",\"userSelect\",\"verticalAlign\",\"visibility\",\"whiteSpace\",\"widows\",\"width\",\"willChange\",\"wordBreak\",\"wordSpacing\",\"wordWrap\",\"writingMode\",\"zIndex\"]);R();var zw=/^\\[data-theme=(?:\"([^\"]+)\"|'([^']+)')\\]$/,Ww=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=Ft(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(zw),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c===\"dark\"||c===\"light\"){let f=n.designSystem?.scopeSelector||\":root\",u=f===\":root\"?\":root:not([data-theme])\":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},dm=(t,e,r)=>({[t]:Ft(e,r)}),Ds=(t,e,r)=>{let n=`&${t}`,o=Ft(e,r);if(t.includes(\",\")&&o){let s={},i={};for(let a in o)typeof o[a]==\"object\"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(\",\").map(l=>l.trim()),c={};Object.keys(s).length&&(c[n]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(\", \");c[f]=i[l]}return c}}return{[n]:o}},Ap=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return v(r)?r.call(e,e):!!r},Hw=(t,e,r)=>{let n=t.slice(1),o=Ap(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Ft(e,r)},Gw=(t,e,r)=>({[t]:e}),qw=(t,e,r)=>{let n=t.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]==\"function\")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Ap(n,r);s!==void 0&&(o=s)}if(o)return Ft(e,r)},Kw=(t,e,r)=>{let n=t.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]==\"function\")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Ap(n,r);s!==void 0&&(o=s)}if(!o)return Ft(e,r)},Ep=(t,e)=>Ft(t,e),Tp={\"@\":Ww,\":\":Ds,\"[\":Ds,\"*\":Ds,\"+\":Ds,\"~\":Ds,\"&\":dm,\">\":dm,$:Hw,\"-\":Gw,\".\":qw,\"!\":Kw};var Op=Pe(),hm=(t,e,r)=>{let n=e?.context?.designSystem;n&&ot(n);try{let o={},s={},i=(a,c)=>{if(r.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(a===\"class\"&&e.call(\"isString\",t.class)){let l=c.split(\" \");if(l.length){let f=e.context.designSystem.class,u=l.reduce((p,d)=>nt(p,f[d]),{});o.designSystemClass=u}}else if(a===\"true\"){let l=K(c,e);nt(o,Ep(l,e))}else if(e.classlist[a]){let l=e.classlist[a],f=v(l)?l(e,e.state,e.context):l;f&&i(a,f),!Op&&S(o[a])&&(o[a].label=a)}else if(pt[a]){let l=K(c,e);T(l)&&(l=l.reduce((u,p)=>nt(u,p),{}));let f=pt[a](l,e,e.state,e.context);T(f)&&(f=f.reduce((u,p)=>nt(u,p),{})),f&&i(a,f),!Op&&S(o[a])&&(o[a].label=a)}else if(yt.has(a)){let l=K(c,e);typeof l==\"string\"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!Op&&S(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&tt()}},gm=(t,e)=>{let r={};for(let n in t){let o=Tp[n.slice(0,1)];if(o){let s=o(n,t[n],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]==\"object\"&&typeof s[i]==\"object\"?At(r[i],s[i]):r[i]=s[i])}}return r},Ft=(t,e,r={unpack:!0})=>{let[n,o]=hm(t,e,r),s=gm(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return Yn(n,s);n._selectors=s}return n},Yw=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};R();var mm=t=>{if(S(t))return Ft(t,t)},Xw=(t,e)=>{let r=mm(t);return typeof e==\"function\"?e(r):ve(r)};R();function xm(t,e,r){let n=t?.context?.analyze;if(!n||!n.emit||e===\"warn\"&&!n.shouldCapture(\"warnings\")||e===\"error\"&&!n.shouldCapture(\"errors\"))return;let o=r.map(s=>s?.message||(typeof s==\"string\"?s:null)).filter(Boolean).join(\" \");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e===\"error\"?\"error\":\"warning\",level:e,hook:e===\"error\"?\"el.error\":\"el.warn\",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:o||null,args:r})}function Zw(...t){return xm(this,\"warn\",t),Lo.apply(this,t)}function Jw(...t){return xm(this,\"error\",t),yr.apply(this,t)}var ym={update:fn,remove:un,getDB:Bo,getQuery:Vo,getRootData:$o,getChildren:To,getPath:Oo,nextElement:Mo,previousElement:No,verbose:Ur,warn:Zw,error:Jw,variables:jo,spotByPath:Eo,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,\"content\",e)}this.__ref&&(this.__ref.contentManaged=!0)},reset(t){let e=this.context?.__create;if(!e)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),e(o,r,n,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t==\"function\"){if(t(e))return e}else if(typeof t==\"string\"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let r of e.__children){let n=this[r];if(!n)continue;if(typeof t==\"function\"){if(t(n))return n}else if(typeof t==\"string\"&&n.key===t)return n;let o=n.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let r=this.__ref;if(!r?.__children)return e;for(let n of r.__children){let o=this[n];o&&(typeof t==\"function\"?t(o)&&e.push(o):typeof t==\"string\"&&o.key===t&&e.push(o),o.lookdownAll?.(t,e))}return e},getRef(){return this.__ref},getRoot:Io,getRootState:Po,getRootContext:Fo,getContext:Do,parse(t){let e={},r=t?new Set(t):null,n=this.__ref?.__exec;for(let o in this)if(!(o===\"parent\"||o===\"node\"||o===\"__ref\")&&!r?.has(o)){if(n&&n[o]!==void 0){e[o]=n[o];continue}typeof this[o]!=\"function\"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(e[n]=this[n].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let r of t)e[r]=this[r];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let r=t[e];if(r==null)continue;let n=e.replace(/[A-Z]/g,s=>\"-\"+s.toLowerCase()),o=String(r).replace(/\\s*!important\\s*$/,\"\");this.node.style.setProperty(n,o,\"important\")}},call(t,...e){let r=this.context,n=r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof n==\"function\")return n.call(this,...e)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let r=t.__children.indexOf(\"content\");r!==-1&&t.__children.splice(r,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},bm=new WeakMap;function Qw(t){if(!t)return ym;let e=bm.get(t);if(e)return e;e=Object.create(ym);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return bm.set(t,e),e}function pn(t){let e=Qw(t.context);Object.setPrototypeOf(t,e)}R();Mr();var Fp={};I(Fp,{STATE_METHODS:()=>_m,applyInitialState:()=>za,applyStateMethods:()=>Dt,createState:()=>Pp,isTracking:()=>$p,useHostState:()=>Ip});var _m=new Set([\"update\",\"parse\",\"clean\",\"destroy\",\"create\",\"add\",\"toggle\",\"remove\",\"set\",\"replace\",\"setByPath\",\"setPathCollection\",\"removeByPath\",\"removePathCollection\",\"getByPath\",\"reset\",\"apply\",\"applyReplace\",\"applyFunction\",\"quietUpdate\",\"quietReplace\",\"rootUpdate\",\"parentUpdate\",\"keys\",\"values\",\"__element\",\"__children\",\"parent\",\"root\"]),t0=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Dt=(t,e)=>{if(rt(e)){let o=e.__raw||e;e.toggle||Object.defineProperty(o,\"toggle\",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(o,\"set\",{value:function(s,i={}){return e.clean({preventStateUpdate:!0}),typeof s==\"object\"&&s!==null&&e.update(s,i),e},enumerable:!1,configurable:!0}),Object.defineProperty(o,\"setByPath\",{value:function(s,i,a={}){let c=s.split(\".\"),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"getByPath\",{value:function(s){let i=s.split(\".\"),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"removeByPath\",{value:function(s,i={}){let a=s.split(\".\"),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"reset\",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"apply\",{value:function(s,i={}){if(typeof s==\"function\"){let a=s(e);return e.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"applyFunction\",{value:function(s,i={}){if(typeof s==\"function\")return s(e),e.update(e.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"rootUpdate\",{value:function(s,i={}){let a=e;for(;a?.parent&&rt(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"parentUpdate\",{value:function(s,i={}){if(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"quietReplace\",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,\"root\")||Object.defineProperty(o,\"root\",{get:function(){let s=e,i=rt(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,rt(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!e||typeof e!=\"object\")return;let r=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},n={update(o){if(!o||typeof o!=\"object\")return e;for(let s in o)e[s]=o[s];return e},apply(o){if(typeof o!=\"function\")return e;let s=o(e);return s?e.update(s):e},parse(){return{...e}},toggle(o){return e[o]=!e[o],e},set(o){if(!o||typeof o!=\"object\")return e;r();for(let s in o)e[s]=o[s];return e},replace(o){return e.set(o)},clean(){return r(),e}};for(let o in n)typeof e[o]!=\"function\"&&t0(e,o,n[o])};var Pp=function(t,e,r){return t.state=za(t,e,r),t.state},za=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Dt(t,s),s}if(typeof o==\"string\")return n&&(n.__state=o),n.__stateType=\"string\",e0(o,t,e);if(typeof o==\"number\"||typeof o==\"boolean\"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=Pt({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Dt(t,s),s}if(typeof o==\"function\"&&(o=o(t,e?.state)||{}),typeof o==\"object\"&&!rt(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=Pt({...o});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,\"root\")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,\"root\",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Dt(t,s),typeof t.onStateCreated==\"function\"&&t.onStateCreated(t,s,t.context,r),s}return rt(o)?(o.__element=t,o):e?.state||{}};function Rp(t,e){if(!e)return t;let r=e.split(\"/\"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function e0(t,e,r){if(!r?.state)return{};if(t===\".\")return r.state;if(t.startsWith(\"../\")){let o=t.slice(3),s=r.state?.parent;return o&&s?Rp(s,o):s??r.state??{}}if(t.startsWith(\"~/\")){let o=r.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?Rp(o,s):o??{}}let n=Rp(r.state,t);if(n&&typeof n==\"object\"&&!rt(n)&&!Object.getOwnPropertyDescriptor(n,\"root\")){let o=r.state?.root||r.state;Object.defineProperty(n,\"root\",{get:()=>o,enumerable:!1,configurable:!0})}return n}var Ip=(t,e)=>{if(!t)return wm;let r=n0(t,e);return!r||!r.state?wm:s0(r.state)},$p=()=>sr()!=null,r0=128;function n0(t,e){let r=typeof e==\"function\"?e:typeof e==\"string\"?s=>!!s?.[e]:s=>!!s?.state,n=t,o=null;for(let s=0;s<r0&&n;s++){if(r(n)&&n.state)return n;if(n.state&&!o&&(o=n),!n.parent||n.parent===n)break;n=n.parent}return o}var o0={get(t,e){return t[e]}},Sm=new WeakMap,s0=t=>{let e=Sm.get(t);return e||(e=new Proxy(t,o0),Sm.set(t,e)),e},wm=new Proxy(Object.create(null),{get(){},has(){return!1}});R();var i0=[\"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\"],Wa={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\"]},vm=[\"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\"],Mp=t=>t.startsWith(\"aria\")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?\"aria-\"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>\"-\"+e.toLowerCase()):t.startsWith(\"data\")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?\"data-\"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>\"-\"+e.toLowerCase()):null,Xe=(t,e)=>e.startsWith(\"aria-\")||e.startsWith(\"data-\")||Mp(e)||Wa.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(Wa,t)?Wa[t].includes(e):!1,Np=t=>{if(!w(t))return!1;let e=t.toLowerCase();return vm.includes(e)},a0=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;if(o===\"aria\"&&e[o]&&typeof e[o]==\"object\"){for(let a in e[o])vt(e[o][a])&&(n[\"aria-\"+a]=e[o][a]);continue}if(o===\"data\"&&e[o]&&typeof e[o]==\"object\"){for(let a in e[o])if(vt(e[o][a])){let c=a.replace(/([A-Z])/g,l=>\"-\"+l.toLowerCase());n[\"data-\"+c]=e[o][a]}continue}let s=Xe(t,o),i=Np(o);if(vt(e[o])&&(s||i)){let a=Mp(o)||o;n[a]=e[o]}}return n},c0=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);if(t.aria&&typeof t.aria==\"object\")for(let n in t.aria){let o=t.aria[n];typeof o==\"function\"&&(r[\"aria-\"+n]=o(e,e.state,e.context))}if(t.data&&typeof t.data==\"object\")for(let n in t.data){let o=t.data[n];if(typeof o==\"function\"){let s=n.replace(/([A-Z])/g,i=>\"-\"+i.toLowerCase());r[\"data-\"+s]=o(e,e.state,e.context)}}return r},Ye=(t,e)=>{let r=t.call(\"exec\",e,t);if(r)return w(r)&&r.includes(\"{{\")&&(r=t.call(\"replaceLiteralsWithObjectFields\",r)),r},Dp=(t,e)=>{let r=(t.preSrc||\"\")+(Ye(t,e)||\"\");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=t;if(!n.files&&!n.assets)return r;if(r.startsWith(\"/assets/\")){let o=r.slice(8),s=n.assets&&(n.assets[r]||n.assets[o]);return s&&s.content?s.content.src:r}if(r.startsWith(\"/files/\")){let o=r.slice(7),s=n.files&&(n.files[r]||n.files[o]);return s&&s.content?s.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},Lp={src:t=>Dp(t,t.src),href:t=>Ye(t,t.href),action:t=>Ye(t,t.action),poster:t=>Dp(t,t.poster),data:t=>Ye(t,t.data)},jp=t=>{let e=t.tag||\"div\",r={};for(let n in Lp)if(t[n]!==void 0&&Xe(e,n)){let o=Lp[n](t);o!==void 0&&(r[n]=o)}return r},km=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return v(r)?r.call(e,e):!!r},l0=(t,e,r)=>{if(t===\"$\"){let o=km(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=km(e,r);o!==void 0&&(n=o)}return t===\".\"?!!n:!n},f0=new Set([\"$\",\".\",\"!\"]),u0=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(l0(a,c,f))return v(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!f0.has(i))continue;let a=t[s];if(!a||typeof a!=\"object\")continue;let c=s.slice(1);for(let l in a){if(r&&l in r)continue;if(l===\"aria\"&&a[l]&&typeof a[l]==\"object\"){for(let d in a[l])o(\"aria-\"+d,a[l][d],i,c);continue}if(l===\"data\"&&a[l]&&typeof a[l]==\"object\"){for(let d in a[l]){let h=d.replace(/([A-Z])/g,g=>\"-\"+g.toLowerCase());o(\"data-\"+h,a[l][d],i,c)}continue}let f=Xe(e,l),u=Np(l);if(!f&&!u)continue;let p=Mp(l)||l;o(p,a[l],i,c)}}return n};var p0=1;function hn(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function d0(t){return t.charAt(2).toLowerCase()+t.slice(3)}function h0(t){return t.toLowerCase()}function zp(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o==\"object\"&&typeof s==\"object\"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!=\"function\"&&typeof s!=\"function\"?r[n]=zp(o,s):r[n]=s}return r}function Ht(t,e,r,n={},o){if(t==null||t===!1)return null;(typeof t==\"string\"||typeof t==\"number\")&&(t={text:t});let s=Object.create(null);s.key=r||t.key||`_${p0++}`,s.parent=e||null,s.context=t.context||e?.context||n.context||{},s.context.__create||(s.context.__create=Ht);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})}}ln(s,t,n);let a=new Set([\"childProps\",\"attr\",\"style\",\"scope\",\"data\"]),c=s.props&&typeof s.props==\"object\"?s.props:null;for(let g in t){if(g===\"parent\"||g===\"node\"||g===\"__ref\"||g===\"extends\"||g===\"context\"||g===\"props\")continue;let m=t[g],y=s[g],b=y&&m&&typeof y==\"object\"&&typeof m==\"object\"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!=\"function\"&&typeof m!=\"function\";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=zp(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],_=b&&y&&typeof b==\"object\"&&typeof y==\"object\"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!=\"function\"&&typeof y!=\"function\";_&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=zp(b,y):_&&a.has(m)?s[m]={...b,...y}:s[m]=y}}c&&l(c),t.props&&typeof t.props==\"object\"&&l(t.props),t.data!==void 0&&(s.data=t.data),t.classlist!==void 0&&(s.classlist=t.classlist),t.text!==void 0&&(s.text=t.text),t.html!==void 0&&(s.html=t.html);let f=s.scope&&typeof s.scope==\"object\"?s.scope:null,u=e?.scope,p=s.context&&typeof s.context.globalScope==\"object\"&&s.context.globalScope||null,d=u||p||null;if(t.scope!==void 0||f){let g={};f&&Object.assign(g,f),t.scope!==void 0&&Object.assign(g,t.scope),s.scope=$n(g,d)}else d&&(s.scope=d);if(t.if!==void 0&&(s.if=t.if),pn(s),g0(s,e,t),s.if!=null){let g;if(typeof s.if==\"function\")try{g=s.if(s,s.state,s.context)}catch(m){if(g=!1,i.__ifError=m,typeof console<\"u\"&&console.warn){let y=s.key||s.tag||\"?\";console.warn(`[smbls] \\`if:\\` evaluator threw on ${y} \\u2014 treating as false:`,m?.message||m)}}else g=s.if;i.__if=!!g}if(i.__if)typeof t.if==\"function\"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof t.if==\"function\"&&Wp(s,{if:t.if}),s;s.tag||(s.tag=He(s)),Ze(\"Init\",s,n);let h=s.node=Ge(s);if(!h)return s;Ze(\"AttachNode\",s,n),h.setAttribute&&s.key&&h.setAttribute(\"data-key\",s.key),h.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==\":root\"&&s.context.key&&s.key===s.context.key&&h.setAttribute(\"data-smbls-app\",s.context.key),s.id&&h.setAttribute&&(h.id=s.id),Om(s,n),Wp(s,t),Hp(s),Em(s),k0(s);try{Rm(s,n)}catch(g){if(typeof console<\"u\"&&console.error){let m=s.__ref?.path?.join(\".\")||s.key||\"<root>\";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`\n`+g.stack.split(`\n`).slice(0,6).join(`\n`):\"\")}}if(Kp(s,e,o),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),typeof s.html==\"function\"&&s.node&&!s.node.innerHTML){let g=s.context?.designSystem;g&&ot(g);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!=\"function\"&&(s.node.innerHTML=m)}catch{}finally{g&&tt()}}if(Ze(\"Create\",s,n),Ze(\"Complete\",s,n),Ze(\"Render\",s,n),Ze(\"RenderRouter\",s,n),typeof s.onFrame==\"function\"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&ot(m);try{g(s,s.state,s.context)}catch(b){console.error(\"[DOMQL] onFrame error:\",b)}finally{m&&tt()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function g0(t,e,r){let n=!e,o=r.state&&typeof r.state==\"object\"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&t.context?.state,i=r.state!==void 0&&!s?r.state:t.state&&!rt(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,Dt(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=rt(c)?c:Pt(c),t.state.__element=t,t.state.root=t.state,Dt(t,t.state)}else t.state={},Object.defineProperty(t.state,\"root\",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Dt(t,t.state);return}if(typeof i==\"string\"){if(t.state=Am(i,e),t.state&&typeof t.state==\"object\"&&!rt(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,\"root\",{value:a,enumerable:!1,configurable:!0,writable:!0})}Dt(t,t.state);return}if(typeof i==\"function\"){let a=i(t,e?.state);t.state=rt(a)?a:Pt(a||{})}else rt(i)?t.state=i:t.state=Pt({...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,Dt(t,t.state)}function Bp(t,e){if(!e)return t;let r=e.split(\"/\"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function Am(t,e){if(!e)return{};if(t===\".\")return e.state||{};if(t.startsWith(\"../\")){let o=t.slice(3);return o?Bp(e.state,o):e.state??{}}if(t.startsWith(\"~/\")){let o=e.state?.root||e.state,s=t.slice(2);return s?Bp(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=Bp(e.state,t);if(r!=null&&Object.keys(r).length>0)return r;let n=e.context?.polyglot;if(n?.translations){let o=e.state?.root?.lang||n.defaultLang||\"en\",s=n.translations[o];if(s?.[t]!==void 0)return s[t];if(n.translations[t]!==void 0)return n.translations[t]}return{}}function m0(t){let e=t.__ref,r=t.tag||\"div\",n=t.context?.designSystem,o=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!=\"function\"||_t.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||hn(a)||pt[a]||yt&&yt.has(a)||Xe(r,a)||o.push({prop:a,fn:t[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:c}=o[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){n&&ot(n);try{return c(t,t.state,t.context)}catch{return}finally{n&&tt()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Wp(t,e){let r=t.__ref;if(m0(t),typeof t.text==\"function\"){let o=t.text,s=et(()=>{if(!r.contentManaged)try{let i=o(t,t.state,t.context);t.node&&i!=null&&typeof i!=\"function\"&&typeof i!=\"object\"&&(typeof i==\"string\"&&i.includes(\"{{\")&&(i=lr.call(t,i,t.state)),t.tag===\"string\"?t.node.nodeValue=i:t.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}else if(typeof t.text==\"string\"&&t.text.includes(\"{{\")){let o=t.text,s=et(()=>{if(r.contentManaged)return;let i=lr.call(t,o,t.state);i!=null&&(t.text=i),t.node&&(t.tag===\"string\"?t.node.nodeValue=i??\"\":t.node.textContent=i??\"\")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&typeof t[o]==\"function\"&&!_t.has(o)&&!hn(o)&&!r.__exec[o]){if(pt[o]){let s=t[o],i=o,a,c=et(()=>{let l=t.context?.designSystem;l&&ot(l);try{let f=s(t,t.state,t.context),u=pt[i](f,t,t.state,t.context);if(u&&t.node){let p=Cm(u);(p===null||p!==a)&&(a=p,dn(t.node,u))}else t.node&&(i===\"show\"||i===\"hide\")&&(a=void 0,t.node.style.display=\"\")}finally{l&&tt()}},{depth:r.path.length});r.__effects.push(c),r.__exec[o]=s}else if(yt&&yt.has(o)){let s=t[o],i=o,a,c=et(()=>{let l=t.context?.designSystem;l&&ot(l);try{let f=s(t,t.state,t.context);if(t.node)if(f!=null){let u=i+\":\"+String(f);u!==a&&(a=u,dn(t.node,{[i]:f}))}else a=void 0,t.node.style[i]=\"\"}finally{l&&tt()}},{depth:r.path.length});r.__effects.push(c),r.__exec[o]=s}}if(typeof e.html==\"function\"){let o=e.html,s=et(()=>{let i=t.context?.designSystem;i&&ot(i);try{let a=o(t,t.state,t.context);t.node&&a!=null&&typeof a!=\"function\"&&(t.node.innerHTML=a)}finally{i&&tt()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof e.value==\"function\"){let o=e.value,s=et(()=>{try{let i=o(t,t.state,t.context);if(!t.node||!(\"value\"in t.node))return;let a=i==null?\"\":String(i);if(t.node.value===a)return;let c=typeof document<\"u\"&&document.activeElement===t.node,l=c&&typeof t.node.selectionStart==\"number\"?t.node.selectionStart:null,f=c&&typeof t.node.selectionEnd==\"number\"?t.node.selectionEnd:null;if(t.node.value=a,c&&l!=null&&f!=null)try{t.node.setSelectionRange(l,f)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=o}if(typeof e.style==\"function\"){let o=e.style,s,i=et(()=>{let a=o(t,t.state,t.context),c=Cm(a);(c===null||c!==s)&&(s=c,dn(t.node,a))},{depth:r.path.length});r.__effects.push(i),r.__exec.style=o}else if(t.style&&typeof t.style==\"object\")for(let o in t.style){let s=t.style[o];if(typeof s!=\"function\")continue;let i,a=et(()=>{try{let c=s(t,t.state,t.context);if(t.node){let l=o+\":\"+String(c);l!==i&&(i=l,dn(t.node,{[o]:c}))}}catch{}},{depth:r.path.length});r.__effects.push(a)}if(t.attr&&typeof t.attr==\"object\"){for(let o in t.attr)if(typeof t.attr[o]==\"function\"){let s=t.attr[o],i=o,a=et(()=>{try{let c=s(t,t.state,t.context);t.node?.setAttribute&&(c==null||c===!1?t.node.removeAttribute(i):typeof c!=\"function\"&&typeof c!=\"object\"&&t.node.setAttribute(i,c===!0?\"\":c))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(t.aria&&typeof t.aria==\"object\")for(let o in t.aria){let s=t.aria[o];if(typeof s!=\"function\")continue;let i=\"aria-\"+o.replace(/[A-Z]/g,c=>\"-\"+c.toLowerCase()),a=et(()=>{try{let c=s(t,t.state,t.context);if(!t.node?.setAttribute)return;c==null||c===!1?t.node.removeAttribute(i):typeof c!=\"function\"&&typeof c!=\"object\"&&t.node.setAttribute(i,c===!0?\"\":c)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(t.data&&typeof t.data==\"object\")for(let o in t.data){let s=t.data[o];if(typeof s!=\"function\")continue;let a=\"data-\"+o.replace(/[A-Z]/g,l=>\"-\"+l.toLowerCase()),c=et(()=>{try{let l=s(t,t.state,t.context);if(!t.node?.setAttribute)return;l==null||l===!1?t.node.removeAttribute(a):typeof l!=\"function\"&&typeof l!=\"object\"&&t.node.setAttribute(a,l===!0?\"\":l)}catch{}},{depth:r.path.length});r.__effects.push(c)}let n=t.classlist&&typeof t.classlist==\"object\"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class==\"object\"&&!Array.isArray(t.class)?t.class:null;if(n)for(let o in n){let s=n[o];if(typeof s!=\"function\")continue;let i=et(()=>{try{let a=s(t,t.state,t.context);if(!t.node?.classList)return;typeof a==\"string\"?t.node.classList.add(a):a?t.node.classList.add(o):t.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof e.if==\"function\"){let o=e.if,s=et(()=>{let i;try{i=o(t,t.state,t.context)}catch(c){if(i=!1,r.__ifError=c,typeof console<\"u\"&&console.warn){let l=t.key||t.tag||\"?\";console.warn(`[smbls] \\`if:\\` reactive effect threw on ${l} \\u2014 treating as false:`,c?.message||c)}return}let a=r.__if;if(r.__if=!!i,a&&!r.__if&&t.node)t.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){t.node||(t.node=Ge(t)),t.node&&(t.node.ref=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 Kp(t,t.parent);Hp(t)}else{if(r.__ifInitialized=!0,t.tag||(t.tag=He(t)),Ze(\"Init\",t,{}),t.node||(t.node=Ge(t)),!t.node)return;Ze(\"AttachNode\",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute(\"data-key\",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),Om(t,{});let c=e.if;delete e.if;try{Wp(t,e)}finally{e.if=c}Hp(t),Em(t),Rm(t,{}),Kp(t,t.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||_t.has(o)||typeof t[o]!=\"function\")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||hn(o))continue;let i=t[o];r.__exec[o]=i;let a=t.tag||\"div\";if(Xe(a,o)&&!pt[o]&&!(yt&&yt.has(o))){let c=o,l=et(()=>{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)}}x0(t),_0(t)}function Hp(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),w0(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\"&&dn(e,t.style),t.attr&&typeof t.attr==\"object\")for(let r in t.attr){let n=t.attr[r];typeof n==\"function\"||typeof n==\"object\"||n==null||n===!1||e.setAttribute&&e.setAttribute(r,n===!0?\"\":n)}if(t.data&&typeof t.data==\"object\")for(let r in t.data){let n=t.data[r];typeof n==\"function\"||typeof n==\"object\"||n==null||n===!1||e.dataset&&(e.dataset[r]=n===!0?\"\":n)}if(t.classlist||t.class){let r=t.classlist||t.class;if(typeof r==\"string\")r.split(\" \").forEach(n=>n&&e.classList.add(n));else if(typeof r==\"object\")for(let n in r){let o=typeof r[n]==\"function\"?r[n](t,t.state,t.context):r[n];o&&e.classList.add(typeof o==\"string\"?o:n)}}}}function Cm(t){if(t==null||typeof t!=\"object\")return\"s:\"+String(t);try{return\"o:\"+JSON.stringify(t)}catch{return null}}function dn(t,e){if(!t||!e||!t.style)return;let r=null;for(let n in e){let o=e[n];if(o!=null){if(n.charAt(0)===\"&\"&&typeof o==\"object\"){r||(r={}),r[n]=o;continue}try{let s=String(o),i=n.replace(/[A-Z]/g,f=>\"-\"+f.toLowerCase()),a=s.trim(),c=/\\s*!important\\s*$/.test(a),l=a.replace(/\\s*!important\\s*$/,\"\");t.style.setProperty(i,l,c?\"important\":\"\")}catch{}}}r&&b0(t,r)}var y0=0;function b0(t,e){let r=`_ds${y0++}`;t.classList.add(r);let n=t.ownerDocument,o=n.querySelector(\"style[data-smbls-scoped]\");o||(o=n.createElement(\"style\"),o.setAttribute(\"data-smbls-scoped\",\"\"),n.head.appendChild(o));let s=\"\";for(let i in e){let a=\".\"+r,c=i.replace(/&/g,a).split(\",\").map(f=>{let u=f.trim();return u.includes(a)?u:a+u}).join(\", \"),l=e[i];if(typeof l==\"object\"){let f=\"\",u=\"\";for(let p in l){let d=l[p];if(typeof d==\"object\"){let h=p.includes(\"&\")?c.split(\", \").map(m=>p.replace(/&/g,m)).join(\", \"):c.split(\", \").map(m=>`${m} ${p}`).join(\", \"),g=\"\";for(let m in d)g+=`${m.replace(/[A-Z]/g,y=>\"-\"+y.toLowerCase())}: ${d[m]};`;u+=`${h} { ${g} }\n`}else f+=`${p.replace(/[A-Z]/g,h=>\"-\"+h.toLowerCase())}: ${d};`}f&&(s+=`${c} { ${f} }\n`),u&&(s+=u)}}s&&(o.textContent+=s)}function x0(t){let e=t.subscribeTo;if(!Array.isArray(e)||e.length===0)return;let r=t.__ref;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o!=\"string\"||o.length===0)continue;let s=o.split(\".\"),i=s[0],a=s.slice(1),c={value:!1},l=et(()=>{let f=t.state&&(rt(t.state)?t.state.root:null);if(!f||!rt(f))return;let u=f;u=u[i];for(let p=0;p<a.length&&!(u==null||typeof u!=\"object\");p++)if(rt(u))u=u[a[p]];else break;if(c.value&&typeof t.onUpdate==\"function\"){let p=t.context?.designSystem;p&&ot(p);try{t.onUpdate(t,t.state,t.context)}catch(d){t.context?.plugins?.length&&Nt(\"error\",t,{hook:\"onUpdate\",error:d})||console.error(\"[DOMQL] subscribeTo onUpdate error:\",d)}finally{p&&tt()}}},{depth:r.path.length});c.value=!0,r.__effects.push(l)}}function _0(t){let e=t.__ref;e.__conditionalRunners=[];for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=r.charAt(0);if(n!==\".\"&&n!==\"!\")continue;let o=r.slice(1);if(!o)continue;let s=t[r];if(!s||typeof s!=\"object\")continue;let i=n===\"!\",a={lastMatch:!1,appliedKeys:null},c=()=>{if(!t.node)return;let f,u=t[o];if(u===void 0)if(t.state&&o in t.state)f=t.state[o];else{let h=t.context?.cases?.[o];if(h===void 0)return;try{f=typeof h==\"function\"?h.call(t,t):h}catch(g){f=!1,e.__conditionalError=g,typeof console<\"u\"&&console.warn&&console.warn(`[smbls] conditional \\`${r}\\` case fn threw on ${t.key||\"?\"} \\u2014 treating as false:`,g?.message||g)}}else if(typeof u==\"function\")try{f=u(t,t.state,t.context)}catch(h){f=!1,e.__conditionalError=h,typeof console<\"u\"&&console.warn&&console.warn(`[smbls] conditional \\`${r}\\` predicate threw on ${t.key||\"?\"} \\u2014 treating as false:`,h?.message||h)}else f=u;let p=i?!f:!!f;if(p===a.lastMatch)return;a.lastMatch=p;let d=t.context?.designSystem;d&&ot(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(pt[m]){let b=pt[m](y,t,t.state,t.context);if(b){let _=Array.isArray(b)?b:[b];for(let x of _)x&&Object.assign(h,x)}}else yt&&yt.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(dn(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&&tt()}};e.__conditionalRunners.push(c);let l=et(c,{depth:e.path.length});e.__effects.push(l)}}var Vp=new WeakSet;function S0(t){let e=t.ownerDocument;!e||Vp.has(e)||(Vp.add(e),queueMicrotask(()=>{Vp.delete(e);let r=e.body||e.documentElement;r&&r.offsetWidth}))}var Up=new WeakSet;function w0(t){let{node:e}=t;if(!e)return;if(Up.has(t)){console.error(\"[applyCssInProps] re-entry detected for element\",t.key,\"prop path:\",t.__ref?.path);return}Up.add(t);let r=t.context?.designSystem;r&&ot(r);try{let n={},o=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]==\"function\"||_t.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!hn(s)){if(pt[s]){let a=t[s],c=pt[s](a,t,t.state,t.context);if(c){if(Array.isArray(c))for(let l of c)l&&Object.assign(n,l);else Object.assign(n,c);o=!0}}else if(yt&&yt.has(s)){let a=t[s];a!=null&&typeof a!=\"object\"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=t[s];a!=null&&typeof a!=\"object\"&&(n[s]=a,o=!0)}else if(s.charAt(0)===\"&\"){let a=t[s];a&&typeof a==\"object\"&&(n[s]=a,o=!0)}else if(s.charAt(0)===\"@\"||s.charAt(0)===\":\"){let a=t[s];if(a&&typeof a==\"object\"){let c={},l=(f,u,p)=>{if(pt[u]){let d=pt[u](p,t,t.state,t.context);if(d)if(Array.isArray(d))for(let h of d)h&&Object.assign(f,h);else Object.assign(f,d)}else f[u]=p};for(let f in a){let u=a[f];if(typeof u==\"function\"&&(u=u(t,t.state,t.context)),!(u==null||typeof u==\"function\")){if(f===\"style\"&&typeof u==\"object\"&&!Array.isArray(u)){for(let p in u){let d=u[p];typeof d==\"function\"&&(d=d(t,t.state,t.context)),!(d==null||typeof d==\"function\")&&l(c,p,d)}continue}l(c,f,u)}}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 u={};for(let d in c){let h=c[d];u[d]=typeof h==\"string\"&&!h.includes(\"!important\")?h+\" !important\":h}let p=s.slice(1);n[`[data-theme=\"${p}\"] &`]=u}else{let u=s;if(s.charAt(0)===\"@\"&&!s.startsWith(\"@media\")&&!s.startsWith(\"@keyframes\")){let d=s.slice(1),h=t.context?.designSystem?.media?.[d]||t.context?.designSystem?.media?.[d];h&&(u=`@media ${h}`)}let p={};for(let d in c){let h=c[d];if(h&&typeof h==\"object\"&&!Array.isArray(h)){let g={};for(let y in h)if(pt[y]){let b=pt[y](h[y],t,t.state,t.context);if(b)if(Array.isArray(b))for(let _ of b)_&&Object.assign(g,_);else Object.assign(g,b)}else g[y]=h[y];let m=d.startsWith(\":\")?\"\":\" \";if(u.includes(\",\")){let y=u.split(\",\").map(b=>`${b.trim()}${m}${d}`).join(\", \");n[y]=g}else n[`${u}${m}${d}`]=g}else p[d]=h}Object.keys(p).length&&(n[u]=p)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes(\"!important\")&&(e.style.setProperty(\"display\",String(n.display).replace(/\\s*!important\\s*$/,\"\"),\"important\"),delete n.display);let s=ve(n,null,t.context?.cssPrefix);if(s&&e.classList){let a=s.split(\" \").filter(Boolean),c=!1;for(let l of a)e.classList.add(l),c||(l.charCodeAt(0)===95&&l.charCodeAt(1)===99||l.charCodeAt(0)===95&&l.indexOf(\"_c\",1)!==-1)&&(c=!0);c&&S0(e)}let i=t.display!=null&&typeof t.display!=\"function\"?t.display:t.hide===!0||t.show===!1?\"none\":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i===\"none\"){let c=[];for(let l of e.classList)l.startsWith(\"_d-\")&&l!==\"_d-none\"&&c.push(l);for(let l of c)e.classList.remove(l);e.classList.add(\"_d-none\")}else e.style.display=t.display}}}finally{r&&tt(),Up.delete(t)}}function Em(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria==\"object\")for(let o in t.aria){let s=t.aria[o];if(typeof s==\"function\"||typeof s==\"object\"||s==null||s===!1)continue;let i=\"aria-\"+o.replace(/[A-Z]/g,a=>\"-\"+a.toLowerCase());e.setAttribute(i,s===!0?\"\":s)}let r=jp(t);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!=\"function\"&&typeof s!=\"object\"&&e.setAttribute(o,s===!0?\"\":s)}let n=t.tag||\"div\";for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||typeof t[o]==\"function\"||_t.has(o)||o===\"on\"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!hn(o)&&!(pt[o]||yt&&yt.has(o))&&Xe(n,o)){let i=t[o];if(i==null||i===!1||(typeof i==\"string\"&&i.includes(\"{{\")&&(i=lr(i,t,t.state,t.context),t[o]=i),i==null||i===!1||typeof i==\"function\"||typeof i==\"object\"))continue;e.setAttribute(o,i===!0?\"\":i)}}}function k0(t){if(!t.autoGrow)return;let e=t.node;if(!e||e.tagName!==\"TEXTAREA\")return;let r=t.autoGrow,n=r&&typeof r==\"object\"&&r.max?String(r.max):null;n&&(e.style.maxHeight=n);let o=()=>{e.style.height=\"auto\",e.style.height=e.scrollHeight+\"px\"};o(),e.addEventListener(\"input\",o),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener(\"input\",o)}catch{}})}var Tm=new Set([\"onSwipe\",\"onSwipeLeft\",\"onSwipeRight\",\"onSwipeUp\",\"onSwipeDown\"]);function Om(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!hn(r)||Tm.has(r))continue;let n=t[r];if(typeof n==\"string\"&&/^[A-Za-z_$][\\w$]*$/.test(n)){let s=n;n=function(a){return t.call(s,a)}}if(typeof n!=\"function\")continue;let o=d0(r);qe.has(o)||cn(h0(o),t,n)}v0(t)}function v0(t){let e=t.node;if(!e||!e.addEventListener)return;let r={},n=!1;for(let p of Tm){let d=t[p];typeof d==\"function\"&&(r[p]=d,n=!0)}if(!n)return;let o=typeof t.swipeThreshold==\"number\"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration==\"number\"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,f=p=>{let d=p.touches&&p.touches[0]||p.changedTouches&&p.changedTouches[0];d&&(i=d.clientX,a=d.clientY,c=Date.now(),l=!0)},u=p=>{if(!l)return;l=!1;let d=p.changedTouches&&p.changedTouches[0]||p.touches&&p.touches[0];if(!d)return;let h=d.clientX-i,g=d.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(h),b=Math.abs(g);if(Math.max(y,b)<o)return;let _;if(y>b*1.2)_=h<0?\"left\":\"right\";else if(b>y*1.2)_=g<0?\"up\":\"down\";else return;let x=\"onSwipe\"+_.charAt(0).toUpperCase()+_.slice(1),C=r[x],E=r.onSwipe;C&&C.call(t,p,t,t.state,t.context),E&&E.call(t,{direction:_,dx:h,dy:g,dt:m,event:p},t,t.state,t.context)};e.addEventListener(\"touchstart\",f,{passive:!0}),e.addEventListener(\"touchend\",u,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener(\"touchstart\",f)}catch{}try{e.removeEventListener(\"touchend\",u)}catch{}})}function Gp(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o==\"object\"&&typeof s==\"object\"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!=\"function\"&&typeof s!=\"function\"?r[n]=Gp(o,s):r[n]=s}return r}function qp(t,e,r){if(!e||!t.node)return;let n=t.childExtends;if(Array.isArray(e)){let s=(t.context?.document||globalThis.document)?.createDocumentFragment();if(!s)return;let i=t.childProps,a=t.childrenAs;for(let c=0;c<e.length;c++){let l=e[c],f=l;(typeof l==\"string\"||typeof l==\"number\")&&(l={text:l});let u=i;if(typeof i==\"function\")try{u=i(t,l)}catch{u=null}if(a===\"state\"){let h=f;(typeof f==\"string\"||typeof f==\"number\")&&(h={value:f,text:f}),l=u?{...u,state:h}:{state:h}}else u&&(l=Gp(u,l));if(n&&!l.ignoreChildExtends)if(l.extends){let h=Array.isArray(l.extends)?l.extends:[l.extends],g=Array.isArray(n)?n:[n];l={...l,extends:[...g,...h]}}else l={extends:n,...l};let p=l?.key||f&&typeof f==\"object\"&&f.key||`${c}`,d=Ht(l,t,p,r);d?.node&&s.appendChild(d.node)}t.node.appendChild(s);return}if(typeof e==\"string\"){let o=Am(e,t);if(Array.isArray(o)){qp(t,o,r);return}}if(typeof e==\"object\")for(let o in e){if(_t.has(o))continue;let s=e[o];if(!(s==null||s===!1)){if((typeof s==\"string\"||typeof s==\"number\")&&(s={text:s}),t.childProps&&(s=Gp(t.childProps,s)),n&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(n)?n:[n];s={...s,extends:[...a,...i]}}else s={extends:n,...s};Ht(s,t,o,r)}}}function Rm(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r==\"function\"){let i=r;r=i(t,t.state,t.context),t.children=r;let a=t.__ref,c=!1,l=et(()=>{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 C=0;C<f.length;C++){let E=f[C],P=d;if(typeof d==\"function\")try{P=d(t,E)}catch{P=null}let V=P&&P.key||E&&E.key||`${C}`;h.push(V),g.set(V,{rawChild:E,childProps:P})}let m=new Set(h),y=a.__children.slice();for(let C of y)if(!m.has(C)){let E=t[C];E?.remove&&E.remove(),delete t[C]}let b=t.childExtends,x=(t.context?.document||globalThis.document)?.createDocumentFragment();for(let C of h){let E=g.get(C),P=E.rawChild,V=t[C];if(V&&V.state){if(P&&typeof P==\"object\"){let B=V.state;if(typeof B.replace==\"function\")B.replace(P);else if(typeof B.update==\"function\"){for(let $ in B)if(!($===\"__element\"||$===\"root\"||$===\"parent\"||$===\"update\")&&!Object.prototype.hasOwnProperty.call(P,$))try{B[$]=void 0}catch{}B.update(P)}else for(let $ in P)B[$]=P[$]}continue}let O=P;(typeof P==\"string\"||typeof P==\"number\")&&(O={value:P,text:P});let F=E.childProps,H=F?{...F,state:O}:{state:O};if(b&&!H.ignoreChildExtends)if(H.extends){let B=Array.isArray(H.extends)?H.extends:[H.extends],$=Array.isArray(b)?b:[b];H={...H,extends:[...$,...B]}}else H={extends:b,...H};let st=Ht(H,t,C,e);st?.node&&x&&x.appendChild(st.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=[],qp(t,f,e)},{depth:a.path.length});a.__effects.push(l)}if(qp(t,r||n,e),r||n)return;let s=t.context?.components||{};{let i=Object.keys(t);for(let a=0;a<i.length;a++){let c=i[a];if(!c.endsWith(\"Extends\")||typeof t[c]!=\"string\")continue;let l=c.slice(0,-7);if(!l||l.charCodeAt(0)<65||l.charCodeAt(0)>90)continue;let f={extends:t[c]};delete t[c];for(let u=a+1;u<i.length;u++){let p=i[u],d=p.charCodeAt(0);if(d>=65&&d<=90||_t.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)||_t.has(i)||typeof t[i]!=\"object\"||t[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let c=t[i];if(!c.__ref){if(!c.extends&&!c.extend){let l=s[i]||s[`smbls.${i}`];l&&(c={extends:l,...c})}if(t.childProps&&(c={...t.childProps,...c}),o&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(o)?o:[o];c={...c,extends:[...f,...l]}}else c={extends:o,...c};Ht(c,t,i,e)}}}function Kp(t,e,r){let{node:n}=t;if(!n)return;n.ref=t;let o=e?.node||(e?.nodeType?e:null);if(o)if(r?.position===\"before\"&&r.node)o.insertBefore(n,r.node);else if(r?.position===\"after\"&&r.node){let s=r.node.nextSibling;s?o.insertBefore(n,s):o.appendChild(n)}else o.appendChild(n)}function Ze(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Nt(n,e,r);let o=\"on\"+t,s=e[o];if(typeof s==\"function\"){let i=t===\"Render\"||t===\"RenderRouter\";if(i){if(e.__ref.__inRender)return!0;e.__ref.__inRender=!0}let a=e.context?.designSystem;a&&ot(a);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(c){if(e.context?.plugins?.length&&Nt(\"error\",e,{hook:o,error:c})||console.error(`[DOMQL] Lifecycle \"${o}\" error:`,c),e.context?.strictMode)throw c}finally{a&&tt(),i&&(e.__ref.__inRender=!1)}}return!0}var Pm={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\"]},Im={\"gradient-blue-light\":`linear-gradient(to right,\n rgba(4, 116, 242, 1),\n rgba(0, 48, 103, 1)\n )`,\"gradient-blue-dark\":`linear-gradient(to right,\n #0474F2,\n #003067\n )`,\"gradient-dark\":`linear-gradient(0deg,\n rgba(0,0,0,0.06) 0%,\n rgba(0,0,0,0.07) 100%\n )`,\"gradient-dark-active\":`linear-gradient(0deg,\n rgba(0,0,0,0.09) 0%,\n rgba(0,0,0,0.1) 100%\n )`,\"gradient-light\":`linear-gradient(\n 0deg,\n rgba(255,255,255,0.05) 0%,\n rgba(255,255,255,0.06) 100%\n )`,\"gradient-light-active\":`linear-gradient(\n 0deg,\n rgba(255,255,255,0.09) 0%,\n rgba(255,255,255,0.10) 100%\n )`,\"gradient-colorful\":`linear-gradient(60deg,\n #00A2E7 0%,\n #185DF3 31%,\n #1E54F0 36%,\n #8B4CCA 69%,\n #C66894 100%\n )`};var C0={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\"}}}},A0={alert:{\"@dark\":{color:\"white\",background:\"red\"}},warning:{\"@dark\":{color:\"black\",background:\"yellow\"}},success:{\"@dark\":{color:\"black\",background:\"green\"}}},E0={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\"}}},$m={document:{\"@light\":{color:\"black\",background:\"white\"},\"@dark\":{color:\"white\",background:\"black\"}},...C0,...A0,...E0,none:{color:\"none\",background:\"none\"},transparent:{color:\"currentColor\",background:\"transparent\"}};var Fm={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var Dm={ratio:1.618,subSequence:!0};var Lm={SourceSans:[{url:\"\"}]},Mm={system:{isDefault:!0,isSystemFallback:!0,value:[\"system-ui\",\"-apple-system\",\"BlinkMacSystemFont\",'\"Segoe UI\"',\"Roboto\",'\"Helvetica Neue\"',\"Arial\",'\"Noto Sans\"','\"Liberation Sans\"'],type:\"sans-serif\"}};var Nm={symbols:'<svg height=\"24\" width=\"24\"><path d=\"M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z\" fill-rule=\"evenodd\"/></svg>',logo:'<svg height=\"24\" width=\"24\"><path d=\"M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z\" fill-rule=\"evenodd\"/></svg>',arrowDownCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down-circle\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M8 12l4 4 4-4M12 8v8\"/></svg>',arrowDownLeft:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down-left\"><path d=\"M17 7L7 17M17 17H7V7\"/></svg>',arrowDownRight:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down-right\"><path d=\"M7 7l10 10M17 7v10H7\"/></svg>',arrowDown:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down\"><path d=\"M12 5v14M19 12l-7 7-7-7\"/></svg>',arrowLeftCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-left-circle\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 8l-4 4 4 4M16 12H8\"/></svg>',arrowLeft:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-left\"><path d=\"M19 12H5M12 19l-7-7 7-7\"/></svg>',arrowRight:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-right\"><path d=\"M5 12h14M12 5l7 7-7 7\"/></svg>',arrowRightCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-right-circle\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 16l4-4-4-4M8 12h8\"/></svg>',arrowUpCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-up-circle\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M16 12l-4-4-4 4M12 16V8\"/></svg>',arrowUpLeft:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-up-left\"><path d=\"M17 17L7 7M7 17V7h10\"/></svg>',arrowUpRight:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-up-right\"><path d=\"M7 17L17 7M7 7h10v10\"/></svg>',arrowUp:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-up\"><path d=\"M12 19V5M5 12l7-7 7 7\"/></svg>',checkCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-check-circle\"><path d=\"M22 11.08V12a10 10 0 11-5.93-9.14\"/><path d=\"M22 4L12 14.01l-3-3\"/></svg>',check:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-check\"><path d=\"M20 6L9 17l-5-5\"/></svg>',chevronDown:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-chevron-down\"><path d=\"M6 9l6 6 6-6\"/></svg>',chevronLeft:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-chevron-left\"><path d=\"M15 18l-6-6 6-6\"/></svg>',chevronRight:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-chevron-right\"><path d=\"M9 18l6-6-6-6\"/></svg>',chevronUp:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-chevron-up\"><path d=\"M18 15l-6-6-6 6\"/></svg>',copy:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-copy\"><rect x=\"9\" y=\"9\" width=\"13\" height=\"13\" rx=\"2\" ry=\"2\"/><path d=\"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1\"/></svg>',eyeOff:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-eye-off\"><path d=\"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22\"/></svg>',eye:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-eye\"><path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/></svg>',info:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-info\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 16v-4M12 8h.01\"/></svg>',lock:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-lock\"><rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\"/><path d=\"M7 11V7a5 5 0 0110 0v4\"/></svg>',minus:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-minus\"><path d=\"M5 12h14\"/></svg>',sun:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-sun\"><circle cx=\"12\" cy=\"12\" r=\"5\"/><path d=\"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42\"/></svg>',moon:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-moon\"><path d=\"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z\"/></svg>',moreHorizontal:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-more-horizontal\"><circle cx=\"12\" cy=\"12\" r=\"1\"/><circle cx=\"19\" cy=\"12\" r=\"1\"/><circle cx=\"5\" cy=\"12\" r=\"1\"/></svg>',moreVertical:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-more-vertical\"><circle cx=\"12\" cy=\"12\" r=\"1\"/><circle cx=\"12\" cy=\"5\" r=\"1\"/><circle cx=\"12\" cy=\"19\" r=\"1\"/></svg>',send:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-send\"><path d=\"M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z\"/></svg>',smile:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-smile\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01\"/></svg>',search:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-search\"><circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"M21 21l-4.35-4.35\"/></svg>',upload:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-upload\"><path d=\"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12\"/></svg>',video:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-video\"><path d=\"M23 7l-7 5 7 5V7z\"/><rect x=\"1\" y=\"5\" width=\"15\" height=\"14\" rx=\"2\" ry=\"2\"/></svg>',x:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-x\"><path d=\"M18 6L6 18M6 6l12 12\"/></svg>',star:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-star\"><path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\"/></svg>',plus:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-plus\"><path d=\"M12 5v14M5 12h14\"/></svg>'};var jm={tv:\"(min-width: 2780px)\",screenL:\"(max-width: 1920px)\",\"screenL<\":\"(min-width: 1920px)\",screenM:\"(max-width: 1680px)\",\"screenM<\":\"(min-width: 1680px)\",screenS:\"(max-width: 1440px)\",\"screenS<\":\"(min-width: 1440px)\",tabletL:\"(max-width: 1366px)\",\"tabletL<\":\"(min-width: 1366px)\",tabletM:\"(max-width: 1280px)\",\"tabletM<\":\"(min-width: 1280px)\",tabletS:\"(max-width: 1024px)\",\"tabletS<\":\"(min-width: 1024px)\",mobileL:\"(max-width: 768px)\",\"mobileL<\":\"(min-width: 768px)\",mobileM:\"(max-width: 560px)\",\"mobileM<\":\"(min-width: 560px)\",mobileS:\"(max-width: 480px)\",\"mobileS<\":\"(min-width: 480px)\",mobileXS:\"(max-width: 375px)\",\"mobileXS<\":\"(min-width: 375px)\",light:\"(prefers-color-scheme: light)\",dark:\"(prefers-color-scheme: dark)\",print:\"print\"};var Bm={base:150,ratio:1.333,unit:\"ms\",subSequence:!0};var Ls={version:\"0.0.1\",color:Pm,gradient:Im,theme:$m,typography:Fm,spacing:Dm,font:Lm,fontFamily:Mm,timing:Bm,icons:Nm,media:jm,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var mn={};I(mn,{A:()=>tb,AssetPicture:()=>oy,Audio:()=>ay,Avatar:()=>gb,B:()=>Ay,Block:()=>Vm,Box:()=>Ka,Br:()=>Ry,Button:()=>nb,ButtonSet:()=>ab,COMPONENTS:()=>vr,Caption:()=>yy,Checkbox:()=>By,CheckboxHgroup:()=>Vy,Circle:()=>ey,CircleButton:()=>sb,Clickable:()=>Jm,Data:()=>Ty,Dialog:()=>lb,DialogFooter:()=>ub,DialogHeader:()=>fb,Dropdown:()=>yb,DropdownList:()=>bb,DropdownParent:()=>xb,DropdownParentFocus:()=>_b,DropdownSiblingFocus:()=>Sb,FileIcon:()=>Xy,Flex:()=>zm,Focusable:()=>Qm,FocusableComponent:()=>ty,Footnote:()=>Cy,Form:()=>Ym,Grid:()=>Hm,Gutter:()=>qm,H1:()=>fy,H2:()=>uy,H3:()=>py,H4:()=>dy,H5:()=>hy,H6:()=>gy,Headline:()=>ky,Hgroup:()=>Dy,HgroupButton:()=>My,HgroupRows:()=>Ly,Hoverable:()=>Zm,Hr:()=>Oy,I:()=>Ey,Icon:()=>Ky,IconButton:()=>cb,IconText:()=>Yy,Iframe:()=>Xm,Img:()=>Km,Inline:()=>Um,InlineFlex:()=>Wm,InlineGrid:()=>Gm,Input:()=>Ny,Italic:()=>Sy,KangorooButton:()=>ib,Li:()=>Py,Link:()=>vd,Notification:()=>wb,NumberInput:()=>jy,Ol:()=>$y,P:()=>my,Picture:()=>ny,Radio:()=>Uy,RadioHgroup:()=>zy,Range:()=>mb,RouteLink:()=>eb,RouterLink:()=>Cd,SHAPES:()=>Ga,Select:()=>rb,Shape:()=>ed,Span:()=>ly,SquareButton:()=>ob,Strong:()=>by,Subhead:()=>vy,Svg:()=>sy,Text:()=>cy,Textarea:()=>Gy,TextareaWithButton:()=>qy,Theme:()=>ry,Title:()=>wy,Toggle:()=>Wy,ToggleHgroup:()=>Hy,Tooltip:()=>pb,TooltipHidden:()=>db,TooltipParent:()=>hb,U:()=>xy,Ul:()=>Iy,Underline:()=>_y,Video:()=>iy,depth:()=>qa,getSystemGlobalTheme:()=>Ms});var Xp={};I(Xp,{Block:()=>Vm,Flex:()=>zm,Grid:()=>Hm,Gutter:()=>qm,Inline:()=>Um,InlineFlex:()=>Wm,InlineGrid:()=>Gm});var Vm={display:\"block\"},Um={display:\"inline\"},zm={display:\"flex\"},Wm={display:\"inline-flex\"},Hm={display:\"grid\"},Gm={display:\"inline-grid\"},qm={boxSize:\"C1\"};var Zp={};I(Zp,{Img:()=>Km});R();var Km={tag:\"img\",attr:{title:t=>t.title||t.alt,alt:t=>t.alt!=null?t.alt:t.title||\"\",src:t=>{let e=Tt(t);return e&&e.src||t.src},srcset:t=>{let e=Tt(t);return(e?qo(e):\"\")||t.srcset}}};var Jp={};I(Jp,{Form:()=>Ym});var Ym={tag:\"form\"};var Qp={};I(Qp,{Iframe:()=>Xm});var Xm={tag:\"iframe\",position:\"relative\",minWidth:\"G\",minHeight:\"G\"};var td={};I(td,{Clickable:()=>Jm,Focusable:()=>Qm,FocusableComponent:()=>ty,Hoverable:()=>Zm});var T0={appearance:\"none\",cursor:\"pointer\",fontFamily:\"inherit\"},Zm={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}}},Jm={extends:\"Hoverable\",\":active\":{opacity:1,transform:\"scale(1.015)\"},\".active\":{opacity:1}},Qm={border:\"none\",outline:\"solid 0 blue.3\",\":focus-visible\":{opacity:1,outline:\"solid X blue.3\"},attr:{tabIndex:t=>t.tabIndex}},ty={extends:\"Focusable\",tag:\"button\",fontSize:\"A\",type:\"button\",border:\"none\",textDecoration:\"none\",lineHeight:\"1\",whiteSpace:\"nowrap\",fontFamily:\"inherit\",style:T0};var od={};I(od,{Picture:()=>ny});var nd={};I(nd,{Theme:()=>ry,getSystemGlobalTheme:()=>Ms});var rd={};I(rd,{Circle:()=>ey,SHAPES:()=>Ga,Shape:()=>ed,default:()=>O0,depth:()=>qa});R();var qt=A(),qa={4:{boxShadow:`rgba(0,0,0,.10) 0 2${qt.unit.default} 4${qt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${qt.unit.default} 6${qt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${qt.unit.default} 10${qt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${qt.unit.default} 16${qt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${qt.unit.default} 26${qt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${qt.unit.default} 42${qt.unit.default}`}},gn=t=>Z(t.shapeDirectionColor)||Z(t.borderColor)||Z(t.backgroundColor)||Z(t.background),Ha=t=>{let e=Fs.transition(t.transition,t);return e&&e.transition},Ga={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:gn(t),transition:Ha(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:gn(t),transition:Ha(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:gn(t),transition:Ha(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:Ha(t),transitionProperty:\"background\"},\"&:before\":{background:`linear-gradient(225deg, ${gn(t)} 25%, transparent 25%), linear-gradient(315deg, ${gn(t)} 25%, transparent 25%)`},\"&:after\":{background:gn(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)\"}}}},ed={deps:{exec:K,getSpacingBasedOnRatio:te,getMediaColor:mt},classlist:{shape:t=>t.deps.exec(Ga[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Ga[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}}},ey={round:\"100%\"},O0=ed;R();var Ms=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n===\"auto\"?null:n},ry={deps:{depth:qa},classlist:{depth:t=>!ht(t.depth)&&t.deps.depth[t.depth]}};var ny={deps:{getSystemGlobalTheme:Ms},tag:\"picture\",childExtends:{deps:{getSystemGlobalTheme:Ms},tag:\"source\",attr:{media:t=>{let{key:e,context:r,deps:n}=t,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?\"(min-width: 0px)\":i===\"dark\"||i===\"light\"?\"(max-width: 0px)\":o[i]}}},Img:{width:\"inherit\",ignoreChildExtends:!0,height:\"inherit\",src:(t,e)=>t.parent?.src||e.src}};var sd={};I(sd,{AssetPicture:()=>oy});R();var oy={tag:\"picture\",children:t=>{let e=Tt(t);if(e)return Ko(e,t.alt)}};var id={};I(id,{Svg:()=>sy});var sy={tag:\"svg\",attr:{xmlns:\"http://www.w3.org/2000/svg\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!=\"function\")return t.call(\"exec\",t.html,t);let{designSystem:r,utils:n}=e,o=r&&r.svg,s=t.spriteId||r&&r.useSvgSprite,i=t.call(\"exec\",t.src,t);if(!s&&i)return i;let a=p=>`<use xlink:href=\"#${p}\" />`,c=t.spriteId;if(c)return a(c);if(o&&o[i])return a(i);let l=Symbol.for(i),f=o[l];if(f&&o[f])return a(f);if(!i)return a(\"\");if(typeof i==\"string\"&&!i.includes(\"<\"))return typeof console<\"u\"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol \"${i}\" \\u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a(\"\");let u=0;for(let p=0;p<i.length;p++)u=(u<<5)-u+i.charCodeAt(p)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var ad={};I(ad,{Video:()=>iy});R();var iy={tag:\"video\",controls:!0,attr:{src:t=>{let e=Tt(t);return e&&e.src||t.src}},children:t=>{let e=Tt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:\"source\",attr:{src:r.src,type:r.format}}))},childExtends:{tag:\"source\"}};var cd={};I(cd,{Audio:()=>ay});R();var ay={tag:\"audio\",controls:!0,attr:{src:t=>{let e=Tt(t);return e&&e.src||t.src}},children:t=>{let e=Tt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:\"source\",attr:{src:r.src,type:r.format}}))},childExtends:{tag:\"source\"}};var ld={};I(ld,{B:()=>Ay,Caption:()=>yy,Data:()=>Ty,Footnote:()=>Cy,H1:()=>fy,H2:()=>uy,H3:()=>py,H4:()=>dy,H5:()=>hy,H6:()=>gy,Headline:()=>ky,I:()=>Ey,Italic:()=>Sy,P:()=>my,Span:()=>ly,Strong:()=>by,Subhead:()=>vy,Text:()=>cy,Title:()=>wy,U:()=>xy,Underline:()=>_y});var cy={},ly={tag:\"span\"},fy={tag:\"h1\"},uy={tag:\"h2\"},py={tag:\"h3\"},dy={tag:\"h4\"},hy={tag:\"h5\"},gy={tag:\"h6\"},my={tag:\"p\"},yy={tag:\"caption\"},by={tag:\"strong\",fontWeight:\"700\"},xy={tag:\"u\"},_y={tag:\"u\"},Sy={tag:\"i\"},wy={},ky={tag:\"h6\",fontSize:\"B\",fontWeight:500},vy={tag:\"span\",fontSize:\"Z1\"},Cy={tag:\"span\",fontSize:\"Z\"},Ay={tag:\"b\"},Ey={tag:\"i\"},Ty={tag:\"data\"};var fd={};I(fd,{Box:()=>Ka,Br:()=>Ry,Hr:()=>Oy,Li:()=>Py,Ol:()=>$y,Ul:()=>Iy});var R0=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Ft(e,t,{unpack:!1});r.__class=n},Ka={extends:[\"Shape\",\"Theme\"],boxSizing:\"border-box\",onBeforeClassAssign:R0},Oy={tag:\"hr\",margin:\"C1 0\"},Ry={tag:\"br\"},Py={tag:\"li\"},Iy={tag:\"ul\",childExtends:{extends:\"Li\"}},$y={tag:\"ol\",childExtends:{extends:\"Li\"}};var ud={};I(ud,{Hgroup:()=>Dy,HgroupButton:()=>My,HgroupRows:()=>Ly});var Fy=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},Dy={display:\"flex\",tag:\"hgroup\",flow:\"y\",gap:\"Y2\",H:{if:Fy,color:\"title\",tag:\"h3\",lineHeight:\"1em\",margin:\"0\"},P:{if:Fy,margin:\"0\",color:\"paragraph\"}},Ly={extends:\"Hgroup\",H:{display:\"flex\",color:\"title\",align:\"center space-between\"},P:{color:\"paragraph\",align:\"center space-between\"}},My={extends:\"HgroupRows\",H:{justifyContent:\"space-between\",Span:{},Button:{background:\"transparent\",color:\"currentColor\",padding:\"0\",Icon:{name:\"x\",fontSize:\"C\"}}},P:{}};var pd={};I(pd,{Input:()=>Ny});var Ny={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 dd={};I(dd,{NumberInput:()=>jy});var jy={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 hd={};I(hd,{Checkbox:()=>By,CheckboxHgroup:()=>Vy});var By={extends:\"Focusable\",tag:\"label\",boxSize:\"fit-content fit-content\",cursor:\"pointer\",round:\"Y\",Input:{type:\"checkbox\",position:\"absolute\",opacity:\"0\",width:\"1px\",height:\"1px\",margin:\"-1px\",overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",\":checked + div\":{theme:\"primary\"},\":checked + div > svg\":{transform:\"none\",opacity:\"1\"},\":focus-visible + div\":{outline:\"solid X blue.3\",outlineOffset:\"Z\"},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\"}}},Vy={display:\"flex\",tag:\"label\",boxSize:\"fit-content\",align:\"flex-start flex-start\",gap:\"A\",Checkbox:{tag:\"div\"},HgroupRows:{gap:\"Z1\",margin:\"Y - - -\"}};var gd={};I(gd,{Radio:()=>Uy,RadioHgroup:()=>zy});var Uy={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}},zy={extends:\"CheckboxHgroup\",Checkbox:null,Radio:{}};var md={};I(md,{Toggle:()=>Wy,ToggleHgroup:()=>Hy});var Wy={extends:\"Checkbox\",Input:{role:\"switch\",\":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}},Hy={extends:\"CheckboxHgroup\",Checkbox:null,Toggle:{}};var yd={};I(yd,{Textarea:()=>Gy,TextareaWithButton:()=>qy});var Gy={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\"}},qy={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 bd={};I(bd,{FileIcon:()=>Xy,Icon:()=>Ky,IconText:()=>Yy});var Ky={extends:\"Svg\",width:\"A\",height:\"A\",display:\"inline-block\",style:{fill:\"currentColor\",\"*\":{fill:\"currentColor\"}},onInit:(t,e,r)=>{let{parent:n}=t,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=h=>{let g=h[\".isActive\"];if(g)return h.call(\"exec\",g.name||g.icon)},l=(h,g,m)=>{let{semanticIcons:y}=m&&m.designSystem,{toCamelCase:b}=m&&m.utils,_=f(h,g),C=b(_).split(/([a-z])([A-Z])/g),E=C[1]?C[0]:_.split(\".\")[0].split(\" \")[0],P=y&&y[E];if(P){let V=_.includes(\".\")?\"sfsymbols.\"+_.split(\".\").slice(1).join(\".\"):\"sfsymbols\";return _=P[V]||P[_.split(\".\")[0].split(\" \")[0]],{tag:\"span\",semanticIcons:!0,width:\"A\",height:\"A\",lineHeight:\"1em\",\":after\":{fontSize:\"Z\",fontWeight:\"300\",content:`\"${_}\"`,textAlign:\"center\",display:\"inline-block\",style:{color:\"currentColor\",fontFamily:\"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'\"}}}}},f=(h,g)=>{let{key:m}=h,y=h.call(\"exec\",h.name||h.icon||m,h);return h.call(\"isString\",y)&&y.includes(\"{{\")&&(y=h.call(\"replaceLiteralsWithObjectFields\",y)),h.call(\"isString\",y)?y:m},u=t.src,d=et(()=>{let h=f(t,e);if(h.includes(\" \")){let O=h.split(\" \");h=O[0]+O.slice(1).map(F=>F.charAt(0).toUpperCase()+F.slice(1)).join(\"\")}let g=a(h),m=g.split(/([a-z])([A-Z])/g),y=l(t,e,r);if(y){Object.assign(t,y);return}let b;t.isActive&&(b=c(t));let _=n[\".isActive\"];n&&n.isActive&&_&&_.icon&&(b=t.call(\"exec\",_.icon||_.Icon.name||_.Icon.icon,t)),t.call(\"isString\",b)&&b.includes(\"{{\")&&(b=t.call(\"replaceLiteralsWithObjectFields\",b));let x;o[b]&&(x=b),o[g]?x=g:o[m[0]+m[1]]?x=m[0]+m[1]:o[m[0]]?x=m[0]:i&&t.warn(\"Can't find icon:\",h,x);let C=o[x],E=n&&n.src||u,P=s&&x,V=C||E||o.noIcon;if(!(t.spriteId===P&&t.src===V&&t.node&&t.node.innerHTML)&&(t.spriteId=P,t.src=V,typeof t.html==\"function\"&&t.node)){let O=t.context&&t.context.designSystem;O&&ot(O);try{let F=t.html(t,t.state,t.context);F!=null&&typeof F!=\"function\"&&(t.node.innerHTML=F)}finally{O&&tt()}}},{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0});t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(d))},attr:{viewBox:\"0 0 24 24\",\"aria-hidden\":t=>t.ariaLabel||t.role===\"img\"?null:\"true\",focusable:\"false\"}},Yy={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},Xy={display:\"flex\",theme:\"tertiary\",boxSize:\"C1\",align:\"center center\",round:\"Z2\",Icon:{fontSize:\"B\",margin:\"auto\",icon:\"file\"}};var Ad={};I(Ad,{A:()=>tb,Link:()=>vd,RouteLink:()=>eb,RouterLink:()=>Cd});var Ns={};I(Ns,{default:()=>D0,getActiveRoute:()=>kd,lastLevel:()=>Xa,lastPathname:()=>Ya,matchRoute:()=>_d,parseQuery:()=>Sd,parseRoutePattern:()=>xd,router:()=>he,runGuards:()=>wd});R();var Jy=/^:(.+)/,Qy=/^\\*$/,Zy=new Map,xd=t=>{let e=Zy.get(t);if(e)return e;let r=t.replace(/^\\//,\"\").split(\"/\"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(Jy);a?n.push({index:i,name:a[1]}):Qy.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return Zy.set(t,s),s},_d=(t,e,r=0)=>{let o=t.replace(/^\\//,\"\").split(\"/\").filter(Boolean).slice(r),s=\"/\"+(o[0]||\"\");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l===\"/*\")continue;let f=xd(l),u=P0(o,f);u>a&&(a=u,i=l,c=I0(o,f))}return!i&&e[\"/*\"]&&(i=\"/*\"),{key:i,content:i?e[i]:null,params:c,routePath:s}},P0=(t,e)=>{let{segments:r,hasWildcard:n}=e;if(!n&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let o=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])o+=3;else if(Jy.test(r[i]))o+=1;else if(Qy.test(r[i]))o+=.5;else return-1;return o},I0=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},Sd=t=>{if(!t||t===\"?\")return{};let e={};return new URLSearchParams(t).forEach((n,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(n)):e[o]=n}),e},wd=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let n=await r(e);if(n===!1)return!1;if(typeof n==\"string\")return n}return!0},kd=(t=0,e)=>{e||(e=typeof k<\"u\"?k.location.pathname:\"/\");let n=e.split(\"/\")[t+1];if(n)return`/${n}`},Ya,Xa=0,$0=t=>!t||t===\"srcdoc\"||t===\"about:srcdoc\"?\"/\":t,F0={level:Xa,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,get scrollNode(){return typeof q<\"u\"&&(q.scrollingElement||q.documentElement)||null},scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:\"content\",scrollToOptions:{behavior:\"smooth\"},useParamsMatching:!0},he=async(t,e,r={},n={})=>{let o=e||void 0,s=o?.context?.window||k,i=o?.context?.document||q,a={...F0,...o.context.routerOptions,...n};Xa=a.lastLevel;let c=o.__ref;(a.contentElementKey!==\"content\"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||\"content\");let l=c.contentElementKey||a.contentElementKey||\"content\",f=s.location.origin!==\"null\"?s.location.origin:\"http://localhost\";t=$0(t);let u=typeof s.URL==\"function\"?s.URL:typeof globalThis<\"u\"&&globalThis.URL||URL,p=new u(f+t),{pathname:d,search:h,hash:g}=p,m=Sd(h),y=o.node,b=g&&g!==s.location.hash.slice(1),_=d!==Ya;Ya=d;let x,C,E,P;if(a.useParamsMatching){let O=_d(d,o.routes,a.level);x=O.key,C=O.routePath,E=O.content,P=O.params}else{x=kd(a.level,d),C=x;let O=o.routes;E=O?O[x||\"/\"]||O[\"/*\"]:null,P={}}let V=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!E){a.onNotFound?a.onNotFound({pathname:d,route:x,element:o}):a.silent||console.warn(\"[smbls/router] no content matched for path\",d,\"\\u2014 available routes:\",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let O={pathname:d,route:x,params:P,query:m,hash:g,element:o,state:r},F=await wd(a.guards,O);if(F===!1)return;if(typeof F==\"string\")return he(F,e,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,d+(h||\"\")+(g||\"\"))}catch{}if(_||!b){let O={route:x,routePath:C,hash:g,debugging:!1};Object.keys(P).length&&(O.params=P),Object.keys(m).length&&(O.query=m),a.updateState&&o.state.update(O,{preventContentUpdate:!0}),l&&a.removeOldElement&&o[l].remove();let F=o.__ref?.origin?.content,H={};if(F)for(let B in F){let $=F[B];B===\"__ref\"||B===\"props\"||B===\"node\"||B===\"parent\"||B===\"key\"||(typeof $==\"string\"||typeof $==\"number\"||typeof $==\"boolean\"||typeof $==\"object\"&&$!==null&&!$.node&&!$.__ref)&&(H[B]=$)}let st={...H,...typeof E==\"object\"?E:{extends:E}};a.useFragment&&(st.tag=\"fragment\");try{if(typeof o?.set!=\"function\")return;o.set(st,{contentElementKey:l})}catch(B){console.error(\"[smbls/router] failed to render route content\",d,B)}}if(a.scrollToTop&&V?.scrollTo&&V.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&E[l]?.node?.scrollTo&&E[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let O=i.getElementById(g);if(O&&V?.scrollTo){let F=O.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);V.scrollTo({...a.scrollToOptions||{},top:F,left:0})}}$e(\"routeChanged\",o,a)},D0=he;var L0=(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call(\"exec\",o,e);if(e.call(\"isString\",a)&&a.includes(\"{{\")&&(a=e.call(\"replaceLiteralsWithObjectFields\",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:u}=n,p=e.__ref.root,d=a.startsWith(\"http://\")||a.startsWith(\"https://\")||a.startsWith(\"mailto:\")||a.startsWith(\"tel:\")||a.startsWith(\"sketch:\")||a.startsWith(\"whatsapp:\")||a.startsWith(\"sms:\")||a.startsWith(\"skype:\")||a.startsWith(\"viber:\")||a.startsWith(\"callto:\")||a.startsWith(\"facetime:\")||a.startsWith(\"facetime-audio:\")||a.startsWith(\"geo:\")||a.startsWith(\"maps:\");if(a&&!d){t.preventDefault();try{let h=p;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split(\".\"),m=p;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,p.routes&&(h.routes=p.routes))}(f.router||l.router||c.router||he)(a,h,{},{scrollToOptions:{behavior:\"instant\"},scrollToTop:e.call(\"isDefined\",s)?s:!0,...u,...e.routerOptions})}catch(h){console.warn(h)}}},vd={extends:\"Focusable\",tag:\"a\",aria:{},fontWeight:\"bold\",textDecoration:\"none\",color:\"currentColor\",draggable:!1,attr:{href:t=>Ye(t,t.href)||Ye(t,t.call(\"exec\",t,t).href),\"aria-label\":t=>t.aria?t.aria.label:t.text},onClick:L0},tb={extends:\"Link\"},Cd={onClick:(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call(\"exec\",o,e);if(e.call(\"isString\",a)&&a.includes(\"{{\")&&(a=e.call(\"replaceLiteralsWithObjectFields\",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:u}=n,p=e.__ref.root,d=a.startsWith(\"http://\")||a.startsWith(\"https://\")||a.startsWith(\"mailto:\")||a.startsWith(\"tel:\")||a.startsWith(\"sketch:\")||a.startsWith(\"whatsapp:\")||a.startsWith(\"sms:\")||a.startsWith(\"skype:\")||a.startsWith(\"viber:\")||a.startsWith(\"callto:\")||a.startsWith(\"facetime:\")||a.startsWith(\"facetime-audio:\")||a.startsWith(\"geo:\")||a.startsWith(\"maps:\");if(a&&!d){t.preventDefault();try{let h=p;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split(\".\"),m=p;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,p.routes&&(h.routes=p.routes))}(f.router||l.router||c.router||he)(a,h,{},{scrollToOptions:{behavior:\"instant\"},scrollToTop:e.call(\"isDefined\",s)?s:!0,...u,...e.routerOptions})}catch(h){console.warn(h)}}}},eb={extends:[vd,Cd]};var Ed={};I(Ed,{Select:()=>rb});var rb={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 Td={};I(Td,{Button:()=>nb,ButtonSet:()=>ab,CircleButton:()=>sb,IconButton:()=>cb,KangorooButton:()=>ib,SquareButton:()=>ob});var nb={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)},ob={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\"},sb={extends:\"SquareButton\",round:\"C\"},ib={extends:\"Button\",childExtends:\"IconText\"},ab={tag:\"nav\",display:\"flex\",childExtends:\"SquareButton\"},cb={extends:[\"SquareButton\",\"ClickableItem\"],round:\"Z\"};var Od={};I(Od,{Dialog:()=>lb,DialogFooter:()=>ub,DialogHeader:()=>fb});var lb={display:\"flex\",tag:\"dialog\",flow:\"column\",border:\"0\",theme:\"dialog\",round:\"Z2\"},fb={extends:\"Hgroup\",minWidth:\"100%\",gap:\"A\",Title:{align:\"center space-between\",Text:{text:\"Title\"},SquareButton:{icon:\"x\",theme:\"transparent\"}},Paragraph:{color:\"caption\"}},ub={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 Rd={};I(Rd,{Tooltip:()=>pb,TooltipHidden:()=>db,TooltipParent:()=>hb});R();var pb={display:\"flex\",theme:\"dialog\",background:\"black\",flow:\"column\",shape:\"tooltip\",shapeDirection:\"left\",padding:\"Z1 A\",round:\"Y2\",width:\"fit-content\",minWidth:\"D2\",maxWidth:\"F2\",gap:\"X\",textAlign:\"center\",attr:{tooltip:!0},Title:{if:t=>vt(t.parent.title)||t.parent.title,width:\"fit-content\",fontWeight:500,color:\"gray12\",text:t=>t.parent.title},P:{if:(t,e)=>t.call(\"isDefined\",t.call(\"exec\",t.parent.description,t))||t.text,width:\"fit-content\",fontSize:\"Z2\",margin:\"0\",color:\"gray6\",fontWeight:\"400\",text:(t,e)=>t.call(\"exec\",t.parent.description,t)}},db={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)}},hb={position:\"relative\",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;if(!n)return;let o=n&&n[\".isActive\"];Object.assign(t,{\":hover, &:focus-visible\":{zIndex:1e3,\"& [tooltip]\":o||{transform:\"translate3d(-50%, 0, 0)\",opacity:1,visibility:\"visible\"}}})}};var Pd={};I(Pd,{Avatar:()=>gb});var gb={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\"}`,attr:{alt:t=>t.alt!=null?t.alt:t.text?t.call(\"exec\",t.text,t):t.key&&t.key!==\"no-avatar\"?t.key:\"\"}};var Id={};I(Id,{Range:()=>mb});var mb={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:qr(\"#454646\",.75)},\":hover\":{\"::-webkit-slider-thumb\":{borderColor:qr(\"#fff\",.35)}},\":focus\":{\"::-webkit-slider-thumb\":{borderColor:\"#3C6AC0\"}}},\"@light\":{background:\"gray9\",\"::-webkit-slider-thumb\":{background:\"white\",borderColor:\"gray9\"},\":hover\":{\"::-webkit-slider-thumb\":{borderColor:\"gray7\"}},\":focus\":{\"::-webkit-slider-thumb\":{borderColor:\"blue\"}}},deps:{returnPropertyValue:(t,e,r)=>{let n=t.call(\"exec\",t[e],t);return(t.call(\"isFunction\",n)?n(t,t.state):n!==void 0?n:r!==void 0?r:0)+\"\"}},attr:{type:\"range\",value:(t,e)=>t.call(\"exec\",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,\"min\",0),max:(t,e)=>t.deps.returnPropertyValue(t,\"max\",100),step:(t,e)=>t.deps.returnPropertyValue(t,\"step\",1)}};var $d={};I($d,{Dropdown:()=>yb,DropdownList:()=>bb,DropdownParent:()=>xb,DropdownParentFocus:()=>_b,DropdownSiblingFocus:()=>Sb});var yb={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\"},bb={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\"}}},xb={position:\"relative\",zIndex:999,\":hover\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}}},_b={position:\"relative\",tabindex:\"0\",\":focus-within\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}},Input_trigger:{type:\"checkbox\",opacity:\"0\",position:\"absolute\",inset:\"0\",width:\"100%\",height:\"100%\",cursor:\"pointer\",onClick:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Sb={position:\"relative\",tabindex:\"0\",\":focus-within\":{zIndex:1e3,\"& ~ [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}},Input_trigger:{type:\"checkbox\",opacity:\"0\",position:\"absolute\",inset:\"0\",width:\"100%\",height:\"100%\",cursor:\"pointer\",onClick:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var Fd={};I(Fd,{Notification:()=>wb});var wb={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({},Xp,Zp,Jp,Qp,td,od,sd,id,rd,ad,cd,nd,ld,fd,ud,pd,dd,hd,gd,md,yd,bd,Ad,Ed,Td,Od,Rd,Pd,Id,$d,Fd);function Za(t){if(t==null)return 0;if(typeof t!=\"object\")return kb(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let n=0;n<t.length;n++)e=(e^Za(t[n]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let n=0;n<r.length;n++)e=(e^kb(r[n]))*16777619,e=(e^Za(t[r[n]]))*16777619;return e>>>0}function kb(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function Ja(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!=\"object\")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!Ja(t[o],e[o]))return!1;return!0}let r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(e,s)||!Ja(t[s],e[s]))return!1}return!0}function Dd(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!=\"object\"||Array.isArray(e))return e;if(typeof t!=\"object\"||Array.isArray(t))return{...e};let r=!1,n={};for(let o in t)if(o in e){let s=Dd(t[o],e[o]);n[o]=s,s!==t[o]&&(r=!0)}else n[o]=t[o];for(let o in e)o in t||(n[o]=e[o],r=!0);return r?n:t}function Ld(t,e,r){if(!e||typeof e!=\"object\")return t;if(!t||typeof t!=\"object\")return e;if(r||(r=new WeakSet),r.has(e))return t;r.add(e);for(let n in e){let o=e[n];o&&typeof o==\"object\"&&!Array.isArray(o)&&t[n]&&typeof t[n]==\"object\"&&!Array.isArray(t[n])?Ld(t[n],o,r):t[n]=o}return t}function Je(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 yn(t){return t.replace(/[A-Z]/g,e=>\"-\"+e.toLowerCase())}function js(t){let e=String(t);return e.length<=20?e.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():Je(e)}function vb(t){return t.split(`\n`).map(Je).join(`\n`)}var Cb={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 Ab(t,e){let r=Cb[t]||Je(t),n=js(e),o=`_${r}-${n}`,s=yn(t),i=`.${o}{${s}: ${e}}`;return`${o}\n${i}`}var Eb=t=>typeof t==\"string\"&&(t.indexOf(\"{\")!==-1||t.indexOf(\"}\")!==-1);function Tb(t){let e=t.split(\"\\0\"),r=[],n=[];for(let o=0;o+1<e.length;o+=2){let s=e[o],i=e[o+1];if(!i||Eb(i))continue;let a=Cb[s]||Je(s),c=js(i),l=`_${a}-${c}`,f=yn(s);r.push(l),n.push(`.${l}{${f}:${i}}`)}return r.join(\" \")+\"\\0\"+n.join(`\n`)}function Ob(t,e){let r=t+e,n=`_c${Je(r)}`,o=e.split(\"\\0\"),s=\"\";for(let a=0;a+1<o.length;a+=2){let c=o[a],l=o[a+1];l&&(Eb(l)||(s+=`${yn(c)}:${l};`))}let i;if(t.startsWith(\"@media\"))i=`${t}{.${n}{${s}}}`;else if(t.startsWith(\":\")||t.startsWith(\"&\")){let a=t.startsWith(\"&\")?t.slice(1):t;i=`.${n}${a}{${s}}`}else t.includes(\"&\")?i=`${t.replace(\"&\",`.${n}`)}{${s}}`:i=`.${n} ${t}{${s}}`;return`${n}\n${i}`}var Md=null;function tc(t){Md=t}var ee={structuralHash:Za,deepEqual:Ja,mergeStructural:Dd,overwriteDeep:Ld,shortHash:Je,toKebab:yn,sanitizeValue:js,batchShortHash:vb,atomicCssClass:Ab,batchAtomicCss:Tb,compoundCssClass:Ob},Rb=!1,Qa=null;function Pb(t){return Qa||(Qa=import(t||\"@symbo.ls/wasm/pkg\").then(e=>(e.structuralHash&&(ee.structuralHash=e.structuralHash),e.deepEqual&&(ee.deepEqual=e.deepEqual),e.mergeStructural&&(ee.mergeStructural=e.mergeStructural),e.overwriteDeep&&(ee.overwriteDeep=e.overwriteDeep),e.shortHash&&(ee.shortHash=e.shortHash),e.toKebab&&(ee.toKebab=e.toKebab),e.sanitizeValue&&(ee.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(ee.batchShortHash=e.batchShortHash),e.atomicCssClass&&(ee.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(ee.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(ee.compoundCssClass=e.compoundCssClass),Rb=!0,Md&&e.batchAtomicCss&&Md({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug(\"[smbls] WASM not available, using JS fallbacks:\",e.message),!1)),Qa)}function Ib(){return Rb}R();var Bs={};I(Bs,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>yl,DOMQ_PROPERTIES:()=>Oe,ENV:()=>$l,HTML_TAGS:()=>Nr,METHODS:()=>Ir,METHODS_EXL:()=>Hn,NODE_ENV:()=>Yt,OPTIONS:()=>go,PACKAGE_MANAGER_TO_CDN:()=>Me,PARSED_DOMQ_PROPERTIES:()=>Wn,PROPS_METHODS:()=>Re,STATE_METHODS:()=>ur,STATE_PROPERTIES:()=>ml,SVG_TAGS:()=>Mh,TYPES:()=>Mn,UNIVERSAL_RESERVED_KEYS:()=>sa,addCaching:()=>Ui,addContext:()=>Vi,addExtend:()=>of,addExtends:()=>Et,addItemAfterEveryElement:()=>nl,addProtoToArray:()=>Bn,addRef:()=>Ni,applyCSS:()=>jd,applyDependentState:()=>vf,applyEvent:()=>Ki,applyEventUpdate:()=>Yi,applyExtends:()=>Bh,applyProps:()=>co,arrayContainsOtherArray:()=>Xc,arraysEqual:()=>sl,arrayzeValue:()=>br,buildImgSrcset:()=>qo,buildSourcesAndImg:()=>Ko,cache:()=>Of,call:()=>qf,captureSnapshot:()=>Yf,checkForStateTypes:()=>_f,checkIfInherits:()=>qi,checkIfStringIsInArray:()=>cl,clone:()=>xl,cloneAndMergeArrayExtend:()=>to,cloneFunction:()=>Ul,concatAddExtends:()=>ef,copyJavaScriptToClipboard:()=>gu,copyStringToClipboard:()=>hu,createBasedOnType:()=>Mi,createElement:()=>xf,createElementExtends:()=>Ci,createExtends:()=>ro,createExtendsFromKeys:()=>jr,createExtendsStack:()=>Oi,createIfConditionFlag:()=>zl,createInheritedState:()=>Sf,createKey:()=>Jn,createNestedObject:()=>Al,createNestedObjectByKeyPath:()=>kf,createObjectWithoutPrototype:()=>bi,createParent:()=>ji,createPath:()=>Bi,createProps:()=>lo,createPropsStack:()=>Di,createRoot:()=>bf,createScope:()=>Af,createSnapshotId:()=>Zn,customDecodeURIComponent:()=>gl,customEncodeURIComponent:()=>hl,cutArrayAfterValue:()=>el,cutArrayBeforeValue:()=>tl,debounce:()=>Qn,debounceOnContext:()=>jl,decodeNewlines:()=>dl,deepClone:()=>Q,deepContains:()=>vl,deepDefaults:()=>Uo,deepDestringifyFunctions:()=>oe,deepExtend:()=>vi,deepMerge:()=>W,deepMergeExtends:()=>se,deepStringifyFunctions:()=>Gn,defineSetter:()=>Hf,destringifyGlobalScope:()=>Kn,detectHeightOnInit:()=>tu,detectInfiniteLoop:()=>Rl,document:()=>q,encodeNewlines:()=>pl,error:()=>yr,excludeKeysFromObject:()=>Il,exec:()=>K,extendCachedRegistry:()=>rf,extendStackRegistry:()=>no,extractArrayExtend:()=>so,fetchLibraryData:()=>la,fibonacciNumberByIndex:()=>eu,filterArrays:()=>il,filterArraysFast:()=>al,finalizeExtends:()=>Ri,findClosestNumber:()=>aa,findClosestNumberInFactory:()=>uu,findInheritedState:()=>Gi,findKeyPosition:()=>fl,flattenExtend:()=>Br,formatDate:()=>Qf,generateHash:()=>Si,generateKey:()=>Xn,generateMetaTags:()=>lu,get:()=>Uf,getActiveRoute:()=>kd,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>cf,getCdnProviderFromConfig:()=>zr,getChildStateInKey:()=>Hi,getChildren:()=>To,getContext:()=>Do,getCookie:()=>Kl,getDB:()=>Bo,getEmotionStylesheet:()=>xu,getExtendsInElement:()=>sf,getExtendsStack:()=>eo,getExtendsStackRegistry:()=>ki,getFrequencyInArray:()=>Zc,getHashedExtend:()=>oo,getImportMapScript:()=>Jf,getInObjectByPath:()=>Ol,getLocalStorage:()=>Xl,getNev:()=>Ml,getPageMetadata:()=>fu,getParentStateInKey:()=>Wi,getPath:()=>Oo,getQuery:()=>Vo,getRef:()=>Wf,getRoot:()=>Io,getRootContext:()=>Fo,getRootData:()=>$o,getRootState:()=>Po,getRootStateInKey:()=>zi,getSpreadChildren:()=>lf,global:()=>qc,hasFunction:()=>Fr,hasHandlerPlugin:()=>Dr,hasOwnProperty:()=>Sl,inheritChildExtends:()=>Ei,inheritChildPropsExtends:()=>Ai,inheritParentProps:()=>fo,inheritRecursiveChildExtends:()=>Ti,init:()=>Ce,initProps:()=>gf,is:()=>Ct,isArray:()=>T,isBoolean:()=>di,isContextComponent:()=>ff,isCyclic:()=>Pl,isDOMNode:()=>kt,isDate:()=>gi,isDefined:()=>vt,isDevelopment:()=>Ie,isEmpty:()=>mi,isEmptyObject:()=>wl,isEqualDeep:()=>yi,isFunction:()=>v,isHtmlElement:()=>Dn,isLocal:()=>Ll,isMethod:()=>Kf,isMobile:()=>Gl,isNode:()=>ye,isNot:()=>Yc,isNotProduction:()=>hr,isNull:()=>hi,isNumber:()=>ne,isObject:()=>S,isObjectLike:()=>N,isPhoto:()=>ru,isProduction:()=>Pe,isStaging:()=>Dl,isState:()=>wf,isString:()=>w,isStringFunction:()=>Vl,isTest:()=>_i,isTesting:()=>Fl,isUndefined:()=>ht,isUniversallyReservedKey:()=>Xf,isValidHtmlTag:()=>Jl,isWrappedLibrary:()=>zo,joinArrays:()=>Or,jointStacks:()=>nf,keys:()=>na,lastLevel:()=>Xa,lastPathname:()=>Ya,loadCssFile:()=>iu,loadJavascript:()=>au,loadJavascriptFile:()=>nu,loadJavascriptFileEmbedSync:()=>su,loadJavascriptFileSync:()=>ou,loadRemoteCSS:()=>cu,loadRemoteScript:()=>Wr,log:()=>Gf,logGroupIf:()=>Hl,logIf:()=>Wl,lookdown:()=>Bf,lookdownAll:()=>Vf,lookup:()=>jf,lowercaseFirstLetter:()=>fr,makeObjectWithoutPrototype:()=>kl,map:()=>bl,mapStringsWithContextComponents:()=>io,matchRoute:()=>_d,matchesComponentNaming:()=>ie,memoize:()=>Bl,merge:()=>nt,mergeSharedLibraries:()=>Wo,nextElement:()=>Mo,normalizeIgnoreList:()=>ca,normalizeLibraryKey:()=>Hr,objectToString:()=>qn,objectizeStringProperty:()=>ao,overwrite:()=>Yn,overwriteDeep:()=>At,overwriteShallow:()=>dr,overwriteState:()=>Cf,parse:()=>oa,parseDeep:()=>Ao,parseQuery:()=>Sd,parseRoutePattern:()=>xd,pickupElementFromProps:()=>$i,pickupPropsFromElement:()=>Ii,previousElement:()=>No,propExists:()=>df,propertizeElement:()=>Fi,propertizeUpdate:()=>pf,reinit:()=>Nd,remove:()=>gg,removeChars:()=>mu,removeCookie:()=>Yl,removeDuplicateProps:()=>po,removeDuplicatesInArray:()=>Rr,removeFromArray:()=>Jc,removeFromObject:()=>Cl,removeNestedKeyByPath:()=>El,removeValueFromArray:()=>jn,removeValueFromArrayAll:()=>rl,reorderArrayByValues:()=>ol,replaceLiteralsWithObjectFields:()=>lr,replaceOctalEscapeSequences:()=>ul,resolveAsset:()=>Tt,resolveHandler:()=>Lr,resolveSharedLibraries:()=>du,returnValueAsText:()=>Li,router:()=>he,runGuards:()=>wd,runPluginHook:()=>Nt,scratchSystem:()=>tn,scratchUtils:()=>Ve,self:()=>Kc,set:()=>Sr,setActiveRootState:()=>Ro,setCookie:()=>ql,setHashedExtend:()=>wi,setInObjectByPath:()=>Tl,setLocalStorage:()=>Zl,setNodeStyles:()=>ra,setProps:()=>zf,setPropsPrototype:()=>uo,sharedLibrary:()=>pu,spotByPath:()=>Eo,srcsetFor:()=>Gr,stringIncludesAny:()=>Un,stringToObject:()=>_l,swapItemsInArray:()=>Qc,syncProps:()=>ho,toCamelCase:()=>Ho,toDashCase:()=>Go,toDescriptionCase:()=>bu,toTitleCase:()=>yu,toggleFullscreen:()=>Zf,triggerEventOn:()=>$e,triggerEventOnUpdate:()=>Ef,trimStringFromSymbols:()=>ll,unstackArrayOfObjects:()=>Nn,update:()=>hf,updateProps:()=>mf,variables:()=>jo,verbose:()=>Ur,warn:()=>Lo,window:()=>k});R();R();var V0=A(),$b=(t=V0,e)=>{let r=S(e.localFile)?e.localFile:{},n=Q(r.designSystem||{});return W(t,n)},U0={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Ce=(t,e=U0)=>{let r=$b(t||{},e),n=e.scopeSelector||\":root\",o=n===\":root\"?\":root:not([data-theme])\":`${n}:not([data-theme])`,s=e.globalTheme;if(typeof window<\"u\"&&window.location){let m=new URLSearchParams(window.location.search).get(\"globalTheme\");m&&(s=m)}let i=Sr({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:s,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...r},{newConfig:e.newConfig,config:e.config});i&&(i.scopeSelector=n);let a=Xo(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&&lt(a),l&&(lt({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith(\"@media\")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];lt(m)}c&&lt(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];lt(m)}return(p||u)&&ks(i.svg,{document:e.document}),(h||d)&&Cs(i.icons,{document:e.document}),i},ec={},Nd=(t,e=ec)=>{let r=$b(t||{},e),n=e.scopeSelector||\":root\",o=n===\":root\"?\":root:not([data-theme])\":`${n}:not([data-theme])`,s=Sr({verbose:!1,...r});if(!e.preventInject){if(lt({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith(\"@media\")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];lt(i)}lt(s.reset)}return s},jd=(t,e=ec)=>{lt(t)},z0=(t,e=ec)=>{let r=e.scopeSelector||\":root\",n=r===\":root\"?\":root:not([data-theme])\":`${r}:not([data-theme])`;if(lt({[r]:t.CSS_VARS}),t.CSS_MEDIA_VARS){let o={};for(let s in t.CSS_MEDIA_VARS)s.startsWith(\"@media\")?o[s]={[n]:t.CSS_MEDIA_VARS[s]}:o[s]=t.CSS_MEDIA_VARS[s];lt(o)}};var W0=(t,e=ec)=>{};R();var Fb=t=>!t||t===\"srcdoc\"||t===\"about:srcdoc\"||t===\"blank\"||t===\"about:blank\"?\"/\":t,Bd={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Vs=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split(\".\"),n=t;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},Db=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Bd:e.router=nt(e.router||{},Bd);let r=e.router,n=async(s,i)=>{let a=s.context?.window||k;if(!a.location)return;let{pathname:c,search:l,hash:f}=a.location;c=Fb(c);let u=c+l+f,p=s;if(r.customRouterElement){let d=Vs(s,r.customRouterElement);d&&(p=d,s.routes&&(p.routes=s.routes))}p.routes&&await he(u,p,{},{initialRender:!0,pushState:!1})},o=!ht(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.onRenderRouter=n),H0(e,r),r},Vd=(t,e)=>{if(e.router===!1)return;let r=e.router||Bd;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:he,o=e.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=Fb(a);let f=a+c+l,u=t;if(r.customRouterElement){let p=Vs(t,r.customRouterElement);p&&(u=p,t.routes&&(u.routes=t.routes))}await u.call(\"router\",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener(\"popstate\",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>o.removeEventListener(\"popstate\",s))},H0=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return W(r.Link||r[\"smbls.Link\"],r.RouterLink||r[\"smbls.RouterLink\"])};R();var Ud=k&&k.location?k.location.host.includes(\"dev.\"):Ie(),Lb=Ud?\"http://localhost:8080/get\":\"https://api.symbols.app/get\",G0={endpoint:Lb},Mb=async(t,e=G0)=>{let r=e.endpoint||Lb,n=e.serviceRoute?T(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+\"=true\").join(\"&\"):e.serviceRoute:\"\",o;try{return o=await globalThis.fetch(r+\"/?\"+n,{method:\"GET\",headers:{\"Content-Type\":\"application/json\",\"X-AppKey\":t,\"X-Metadata\":e.metadata}}),await o.json()}catch(s){if(v(e.onError))return e.onError(s);console.error(s)}},q0=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await Mb(t,r),o=Ud||e.isDevelopment?oe(n):oe(n.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{At(e[s],o[s.toLowerCase()])}):At(e[r.serviceRoute],o):[\"state\",\"designSystem\",\"components\",\"snippets\",\"pages\",\"utils\",\"files\",\"assets\",\"packages\",\"functions\",\"globalScope\"].forEach(s=>{At(e[s],o[s.toLowerCase()])})}return e},K0=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await Mb(t,n),s=Ud||e.isDevelopment?oe(o):oe(o.releases[0]);r(s)}},Nb=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await q0(t,e)}catch(r){console.error(r)}},jb=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&K0(e,r,n||(o=>{let s=o.designSystem;S(s)&&r.utils.init(s),S(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var Us=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let r of e.__teardowns)try{r()}catch(n){console.error(\"[smbls] destroy teardown error:\",n)}e.__teardowns.length=0}try{Ke(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};R();var Y0={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\"}},X0=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}\"]`},rc=(t,e,r)=>{if(!t)return{};let n=v(t)?K(t,e,r):{...t};if(!S(n))return{};for(let o in n){let s=n[o];v(s)&&(s=K(s,e,r)),w(s)&&s.includes(\"{{\")&&e?.call&&(s=e.call(\"replaceLiteralsWithObjectFields\",s,r)),n[o]=s}return n};var Z0=(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},Bb=t=>{let e=5381,r=String(t);for(let n=0;n<r.length;n++)e=(e*33^r.charCodeAt(n))>>>0;return e.toString(36)},zd=(t,e,r,n)=>{let o=t.head||t.querySelector(\"head\");if(!o)return;let s=new Map;for(let a of o.querySelectorAll(`[${e}]`))s.set(a.getAttribute(e),a);let i=new Set;for(let a of r)i.add(a);for(let[a,c]of s)i.has(a)||c.remove();for(let a of r){if(s.has(a))continue;let c=n(a);c&&(c.setAttribute(e,a),o.appendChild(c))}},nc=(t,e)=>{if(!(!S(t)||!e)){for(let r in t){let n=t[r];if(n==null||r===\"jsonLd\"||r===\"styles\"||r===\"scripts\")continue;let o=Y0[r];if(!o)continue;let s=X0(o),i=e.querySelector(s)||Z0(o,e);i&&(r===\"title\"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute(\"content\",n))}if(Array.isArray(t.jsonLd)){let n=t.jsonLd.filter(s=>s!=null).map(s=>w(s)?s:JSON.stringify(s)),o=n.map(Bb);zd(e,\"data-smbls-jsonld\",o,s=>{let i=o.indexOf(s),a=e.createElement(\"script\");return a.setAttribute(\"type\",\"application/ld+json\"),a.textContent=n[i],a})}if(Array.isArray(t.styles)){let r=t.styles.filter(o=>o!=null&&String(o).trim()),n=r.map(Bb);zd(e,\"data-smbls-style\",n,o=>{let s=n.indexOf(o),i=e.createElement(\"style\");return i.textContent=String(r[s]),i})}if(Array.isArray(t.scripts)){let r=t.scripts.filter(o=>o&&(w(o)?o.trim():o.src)),n=r.map(o=>w(o)?o:String(o.src));zd(e,\"data-smbls-script\",n,o=>{let s=n.indexOf(o),i=r[s],a=e.createElement(\"script\");return w(i)?a.setAttribute(\"src\",i):(i.src&&a.setAttribute(\"src\",i.src),i.type&&a.setAttribute(\"type\",i.type),i.async&&(a.async=!0),i.defer&&(a.defer=!0),i.integrity&&a.setAttribute(\"integrity\",i.integrity),i.crossorigin&&a.setAttribute(\"crossorigin\",i.crossorigin),i.referrerpolicy&&a.setAttribute(\"referrerpolicy\",i.referrerpolicy),i.nomodule&&(a.noModule=!0),i.body&&(a.textContent=String(i.body))),a})}}};var Vb={name:\"helmet\",create(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<\"u\"&&document;if(!r)return;let n=rc(e,t,t.state);nc(n,r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<\"u\"&&document;if(!r)return;let n=rc(e,t,t.state);nc(n,r)}};mr();var Ub=(t,e,r,n)=>{t&&vo(t,e,r,n)},zb=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<\"u\"&&document;if(!n)return;let o=rc(t,e,r);nc(o,n)},Wb=async(t,e)=>{if(!t)return;let r={tag:\"fragment\",...t},n=async()=>{await e.set(r,{preventDefineUpdate:\"$router\"})};return e.lazyLoad?window.requestAnimationFrame(n):await n(),r},bn={routes:t=>t,metadata:zb,fetch:Ub,$router:Wb},Hb=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=zb),t.fetch!==!1&&(e.fetch=Ub),t.router!==!1&&(e.$router=Wb),e};var Wd={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},oc={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},sc={...Wd,router:oc},J0={state:{},pages:{},components:{},router:oc,define:bn},Qe=J0;R();R();var Gb=(t,e)=>N(t.extends)?t.extends:[];R();var Xb=t=>{let e=typeof window<\"u\"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<\"u\"?document:e.document;t.document=t.document||r;let n=t.window;return n&&n!==e&&typeof n.URL!=\"function\"?(typeof console<\"u\"&&console.warn&&!globalThis.__smblsRouterUrlWarned&&(globalThis.__smblsRouterUrlWarned=!0,console.warn(\"[smbls/router] context.window lacks URL, falling back to globalThis \\u2014 passed-in window may be a stub (warned once; applies to every embed app this session)\")),t.window=e):t.window=n||e,t.window},qb=(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},Zb=t=>t.components?{...qb(),...t.components}:qb(),Jb=t=>({...Bs,...Ns,...Ve,...t.utils,...t.snippets,...t.functions}),Qb=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),Kb={},tx=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Me[s]||zr(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=Ie()&&n?`?${Math.random()}`:\"\",u=Jt(c,l,o)+f;try{if(Kb[c])continue;Kb[c]=!0,await Promise.race([Wr(u,{document:r,type:\"module\"}),new Promise((p,d)=>setTimeout(()=>d(new Error(`Timeout loading ${c}`)),1e4))])}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!==\"symbols\")try{let d=Jt(c,l,\"symbols\")+f;await Promise.race([Wr(d,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${c}`)),2e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},ex=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||zr(e.symbolsConfig)||\"esmsh\",o=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f==\"function\"?f():f},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]){let p=Ie()?`?${Math.random()}`:\"\";if(l&&l[a]){let d=l[a],h=Jt(a,d,c)+p;try{await i.utils.loadRemoteScript(h,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!==\"symbols\"){let m=Jt(a,d,\"symbols\")+p;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let d=Jt(a,\"latest\",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!==\"symbols\"){let g=Jt(a,\"latest\",\"symbols\")+p;await i.utils.loadRemoteScript(g,{window:u,document:f})}}u.packages[a]=\"loadedOnDeman\"}}return await u.require(a,c)};r.packages?r.packages=nt(r.packages,t):r.packages=t,r.require||(e.utils.require=await o(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},Q0=/\\s+/g,rx=(t,e)=>typeof t==\"function\"?t(e,e?.state,e?.context):t,tk=(t,e)=>{let r=\"\";for(let n in t){let o=t[n];typeof o==\"boolean\"&&o?r+=` ${n}`:typeof o==\"string\"?r+=` ${o}`:typeof o==\"function\"&&(r+=` ${rx(o,e)}`)}return r},ek=(t,e,r)=>{if(!t)return;let{key:n}=e;t===!0&&(t=e.classlist={key:n}),typeof t==\"string\"&&(t=e.classlist={default:t}),t!==null&&typeof t==\"object\"&&!Array.isArray(t)&&(t=tk(t,e));let o=t.replace(Q0,\" \").trim();if(r&&typeof r.setAttribute==\"function\")r.setAttribute(\"class\",o);else if(r)try{r.className=o}catch{}return o},rk=()=>(t,e,r)=>{let n=rx(t,e);if(t){let{__ref:o}=e;o.__class.style=n}nx()(e.classlist,e,e.state,!0)},nx=()=>(t,e,r,n)=>{if(e.style&&!n)return;let{__ref:o}=e,{__class:s,__classNames:i}=o;if(!(t===null||typeof t!=\"object\"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c==\"string\"||typeof c==\"number\"?l=c:typeof c==\"boolean\"?l=e.key:l=ve(c),i[a]=l}for(let a in i)a===\"classProps\"||a===\"class\"||s[a]===void 0&&delete i[a];e.node&&ek(i,e,e.node)}},nk=()=>({style:rk(),classlist:nx()}),ok=[\"useReset\",\"useVariable\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\",\"verbose\",\"globalTheme\"],Yb=!1,ox=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,n=e.initOptions||{},o=e.registry||nk(),s=e.designSystem?W(Q(e.designSystem),Ls):Q(Ls),i={};for(let d of ok)e[d]!==void 0&&(i[d]=e[d]);let a,c=Yb&&!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){ot(a);try{if(lt({[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];lt(d)}}finally{tt()}}}else if(c){let d=Ca(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,ot(d);try{a=Ce(d,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...sc,...i,...n})}finally{tt()}}else{let d=A();d&&(d.document=r),a=Ce(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...sc,...i,...n}),a&&a!==d&&(a.document=r),Yb=!0}let u=a?.CONFIG||a,p=u?.font;if(p){ot(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\")&&lt(`@font-face { ${m} }`)}}finally{tt()}}return[a,o]},sx=(t,e)=>{let r={};e.state&&W(r,e.state),t&&t.state&&W(r,t.state);let n=e.polyglot;if(n?.translations){let o=null;try{typeof localStorage<\"u\"&&(o=localStorage.getItem(n.storageLangKey||\"smbls_lang\")||localStorage.getItem(\"lang\"))}catch{}let s=o||r.lang||n.defaultLang||\"en\";o&&o!==r.lang&&(r.lang=o);let i=n.translations[s];if(i&&typeof i==\"object\")for(let c in i)r[c]=i[c];let a=new Set(n.languages||[]);for(let c in n.translations)!a.has(c)&&r[c]===void 0&&(r[c]=n.translations[c])}return r.isRootState=!0,Q(r)},ix=(t,e)=>{S(t.routes)&&S(e.pages)&&nt(t.routes,e.pages);let r=t.routes||e.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n===\"index\"?\"\":n;r[\"/\"+o]=r[n],delete r[n]}return r},ax=t=>{Wo(t,t.sharedLibraries)};R();var lx=\"smbls_lang\",sk=\"smbls_t_\",ik=\"smbls_tv_\",xn={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)}}},zs={};function Ws(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||\"en\"}function ac(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var ic=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(\".\")===-1)return;let r=e.split(\".\"),n=t;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},cx=(t,e,r)=>{let n=e.lastIndexOf(\".\");if(n===-1)return t[e+\"_\"+r];let o=ic(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+\"_\"+r]};function cc(t,e){if(!t)return\"\";let r=this?.context,n=r?.polyglot,o=e||this.call(\"getActiveLang\"),s=this?.state;if(s){let l=cx(s,t,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=ic(l,t);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[o];if(l){let f=ic(l,t);if(f!==void 0)return f}}let c=n?.defaultLang||\"en\";if(s){let l=cx(s,t,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=ic(l,t);if(f!==void 0)return f}}return t}async function lc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||sk,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,\"v_\"):ik);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=xn.get(o+t);if(c)try{let l=JSON.parse(c),f={translations:{...n.translations||{}}};f.translations[t]=l,n.update&&n.update(f)}catch(l){console.warn(\"[polyglot] Failed to apply language update:\",l.message)}}let i=(r.storagePrefix||\"smbls\")+\":\"+t;if(zs[i])return zs[i];let a=this;return zs[i]=(async()=>{try{let c=r.fetch,l=parseInt(xn.get(s+t),10)||0,f,u,p;if(v(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=v(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 _=b.data;if(!_||!_.changed)return;f=_.translations||{},u=_.version||0,p=!0}else return;if(!p||!f)return;xn.set(o+t,JSON.stringify(f)),u&&xn.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=f,n.update&&n.update(d)}catch(c){if(r.verbose!==!1){let l=c?.message||c?.details||(typeof c==\"object\"?JSON.stringify(c):String(c));console.warn(\"[polyglot] Failed to load translations for\",t,\"-\",l)}}finally{delete zs[i]}})(),zs[i]}async function fc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call(\"getActiveLang\")===t)return;let o=r?.storageLangKey||lx;xn.set(o,t),r?.fetch&&await this.call(\"loadTranslations\",t),e?.state&&(e.state.lang=t);let s=r?.translations?.[t],i={lang:t};if(s&&typeof s==\"object\")for(let c in s){let l=s[c];(Array.isArray(l)||typeof l==\"string\"||typeof l==\"number\")&&(i[c]=l)}if(n.update&&n.update(i),s&&typeof s==\"object\")for(let c in s){let l=s[c];if(l&&typeof l==\"object\"&&!Array.isArray(l)&&n[c]&&typeof n[c]==\"object\"&&!Array.isArray(n[c]))for(let f in l)n[c][f]=l[f]}let a=this?.context?.document||globalThis.document;if(a&&s){let c=a.querySelectorAll(\"[data-key]\");for(let l of c){let f=l.ref;if(!f)continue;let u=f.__ref?.__exec?.text;if(typeof u==\"string\"&&u.includes(\"{{\"))try{let p=f.call(\"replaceLiteralsWithObjectFields\",u,f.state);p!=null&&l.textContent!==p&&(l.textContent=p)}catch{}}}}async function uc(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&S(o.fetch)){let i=this.getDB||(()=>n.fetch),a=v(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||\"translations\",l=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(l?.error)throw l.error;return l.data}}async function Hd(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let n=e.storageLangKey||lx,s=xn.get(n)||e.defaultLang||r.lang||\"en\";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call(\"loadTranslations\",s)}function pc(t){try{let e=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||\"en\",o=this?.state;if(!o)return\"\";let s=t.lastIndexOf(\".\");if(s===-1)return o[t+n]??\"\";let i=t.substring(0,s).split(\".\"),a=o;for(let c=0;c<i.length;c++){if(a==null)return\"\";a=a[i[c]]}return a==null?\"\":a[t.substring(s+1)+n]??\"\"}catch{return\"\"}}var dc={name:\"polyglot\",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Hd.call(t))}};var Hs={polyglot:cc,getLocalStateLang:pc,getActiveLang:Ws,getLang:Ws,setLang:fc,getLanguages:ac,loadTranslations:lc,upsertTranslation:uc};mr();var hc={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}},gc=t=>parseFloat(t.toFixed(4)),ak=(t,e,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(o),l=n+c+s,f=r!==void 0?r:l/i*t,u=f/t,p=l/i,d=(n-a+s/2)/i-(u-p)/2,h=(c+s/2)/i-(u-p)/2;return{fontSize:`${gc(t/16)}rem`,lineHeight:`${gc(f)}px`,capHeightTrim:`${gc(-d)}em`,baselineTrim:`${gc(-h)}em`}},ck=(t,e)=>{if(typeof t==\"number\")return t;let r=e?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(t).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(t);return isNaN(o)?null:typeof t==\"string\"&&t.endsWith(\"rem\")?o*(r.typography?.browserDefault||16):o},lk=(t,e)=>{let n=e?.designSystem?.font_family||{};if(t){let s=n[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['\"]/g,\"\").trim();if(hc[i])return hc[i]}let o=n.default||Object.keys(n)[0];if(o){let s=n[o];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['\"]/g,\"\").trim();if(hc[a])return hc[a]}}return null},fx=(t,e,r,n)=>{if(!t)return;let o=ck(e.fontSize,n);if(!o)return;let s=lk(e.fontFamily,n);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=ak(o,s,i),f={};return e.lineHeight||(f.lineHeight=a),f[\"::before\"]={content:'\"\"',marginBottom:c,display:\"table\"},f[\"::after\"]={content:'\"\"',marginTop:l,display:\"table\"},f},ux={name:\"capsize\",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}};var Gs={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\"},Kt=Object.create(null);for(let t in Gs)Kt[Gs[t]]=t;var Gd=Object.create(null);for(let t in Gs){let e=Gs[t];if(Gd[e])throw new Error(`Duplicate abbreviation \"${e}\" for \"${t}\" \\u2014 already used by \"${Gd[e]}\"`);Gd[e]=t}var tr=new Set([\"state\",\"st\",\"scope\",\"scp\",\"attr\",\"at\",\"style\",\"sy\",\"data\",\"dt\",\"context\",\"ctx\",\"query\",\"qy\",\"class\",\"cl\"]);function qs(t){return/^[A-Z]/.test(t)}function Ks(t){return/^[:@.!$>&]/.test(t)||t.startsWith(\"> \")}function fk(t){return t.trim().split(/\\s+/).filter(Boolean)}function px(t){return t.replace(/_/g,\" \")}function uk(t){if(!t||typeof t!=\"string\")return{};let e={},r=fk(t);for(let n of r){if(n.startsWith(\"!\")){let c=n.slice(1),l=Kt[c]||c;e[l]=!1;continue}let o=n.indexOf(\":\");if(o===-1){let c=Kt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Kt[s]||s;if(i.includes(\",\")){e[a]=i.split(\",\").map(px);continue}e[a]=px(i)}return e}function Ys(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?Ys(r):r});let e={};for(let r in t){let n=t[r];if(qs(r)){e[r]=qd(n);continue}let o=Kt[r]||r;if(Ks(r)&&o===r){e[r]=qd(n);continue}if(tr.has(o)||tr.has(r)){e[o]=n;continue}e[o]=qd(n)}return e}function qd(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?Ys(e):e}):typeof t==\"object\"?Ys(t):t}function Xs(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?Xs(r):r});let e={};if(typeof t.in==\"string\"){let r=uk(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r===\"in\")continue;let n=t[r];if(qs(r)){e[r]=Kd(n);continue}let o=Kt[r]||r;if(Ks(r)&&o===r){e[r]=Kd(n);continue}if(tr.has(o)||tr.has(r)){e[o]=n;continue}e[o]=Kd(n)}return e}function Kd(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?Xs(e):e}):typeof t==\"object\"?Xs(t):t}function pk(t){let e=\"\",r=0;for(;r<t.length;){if(t[r]===\"\\\\\"&&r+1<t.length){let n=t[r+1];if(n===\",\"||n===\"_\"||n===\"\\\\\"){e+=n,r+=2;continue}}t[r]===\"_\"?e+=\" \":e+=t[r],r++}return e}function dk(t){let e=[],r=\"\",n=0;for(;n<t.length;){if(t[n]===\"\\\\\"&&n+1<t.length){r+=t[n]+t[n+1],n+=2;continue}if(t[n]===\",\"){e.push(r),r=\"\",n++;continue}r+=t[n],n++}return e.push(r),e}function dx(t){return t.startsWith(\"#\")&&/^#-?\\d+(\\.\\d+)?$/.test(t)?Number(t.slice(1)):pk(t)}function Yd(t){if(!t||typeof t!=\"string\")return{};let e={},r=t.trim().split(/\\s+/).filter(Boolean);for(let n of r){if(n.startsWith(\"!\")){let l=n.slice(1),f=Kt[l]||l;e[f]=!1;continue}let o=n.indexOf(\":\");if(o===-1){let l=Kt[n]||n;e[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Kt[s]||s,c=dk(i);if(c.length>1){e[a]=c.map(dx);continue}e[a]=dx(i)}return e}function Zs(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?Zs(r):r});let e={};if(typeof t.in==\"string\"){let r=Yd(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r===\"in\")continue;let n=t[r];if(qs(r)){typeof n==\"string\"?e[r]=Yd(n):e[r]=Xd(n);continue}let o=Kt[r]||r;if(Ks(r)&&o===r){typeof n==\"string\"?e[r]=Yd(n):e[r]=Xd(n);continue}if(tr.has(o)||tr.has(r)){e[o]=n;continue}e[o]=Xd(n)}return e}function Xd(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?Zs(e):e}):typeof t==\"object\"?Zs(t):t}var hk={shorten:Ys,stringify:Xs,stringifyFurther:Zs};function gk(t,e){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(n=>e(n));let r={};for(let n in t){let o=t[n];r[n]=o&&typeof o==\"object\"?e(o):o}return r}var mk=[\"components\",\"pages\",\"snippets\"],mc={name:\"shorthand\",prepareContext(t){let e=t.shorthand;if(!e)return;let n=hk[e===!0?\"shorten\":e];if(n){for(let o of mk)t[o]&&(t[o]=gk(t[o],n));t.app&&typeof t.app==\"object\"&&(t.app=n(t.app))}}};var yk=0,bk=()=>`${Date.now().toString(36)}-${(yk++).toString(36)}`,z=(t,e,r={})=>({id:bk(),ts:Date.now(),type:t,level:e,...r}),xk=t=>{let e=[],r=t,n=0;for(;r&&n<32;)r.key!=null&&e.unshift(String(r.key)),r=r.parent,n++;return e.join(\" > \")},_n=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:xk(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Sn=t=>t?.context?.analyze,_k={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\"}},Sk=(t,{category:e,type:r,level:n})=>o=>{let s=Sn(o);!s||!s.shouldCapture(e)||s.emit(z(r,n,{hook:t,element:_n(o)}))},hx=t=>(e,r)=>{let n=Sn(e);!n||!n.shouldCapture(\"state\")||n.emit(z(\"state\",\"debug\",{hook:t,element:_n(e),changedKeys:r?.changedKeys||null}))},Js={name:\"analyze\",error(t,e){let r=Sn(t);if(!r||r.config.enabled===!1||!r.shouldCapture(\"errors\"))return;let n=e?.error||e?.err||(e instanceof Error?e:null);r.emit(z(\"error\",\"error\",{hook:e?.hook||\"error\",element:_n(t),error:n,message:n?.message||(typeof e?.message==\"string\"?e.message:null)}))},renderRouter(t){let e=Sn(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=Sn(t);!e||!e.shouldCapture(\"updates\")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<\"u\"?performance.now():Date.now())},update(t){let e=Sn(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:_n(t),durationMs:r}))},beforeStateUpdate:hx(\"beforeStateUpdate\"),stateUpdate:hx(\"stateUpdate\")};for(let[t,e]of Object.entries(_k))Js[t]=Sk(t,e);R();var yc={error:0,warn:1,info:2,debug:3,trace:4};var Zd=(t,e)=>{let r=yc[t],n=yc[e];return r==null||n==null?!0:r<=n},bc=t=>yc[t]!=null?t:\"warn\";R();var xc=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var wk=(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},kk=(t,e)=>{if(e!==\"redact\"){if(e===\"hash\"){let r=0,n=String(t);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return\"***\"}},Jd=(t,e,r,n)=>{if(n>6||t==null||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(s=>Jd(s,e,r,n+1));let o={};for(let s of Object.keys(t))if(wk(s,e)||xc.test(s)){let a=kk(t[s],r);a!==void 0&&(o[s]=a)}else o[s]=Jd(t[s],e,r,n+1);return o},Qd=(t=[],e=\"mask\")=>{let r=Array.isArray(t)?t:[t];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:p,target:d,...h}=n,g=Jd(h,r,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:p,target:d,...g}}};var gx=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<\"u\"?navigator.userAgent:null,n=t.config.buildHash||null,o=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=k,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:o,build:n,route:i},meta:{ua:r,viewport:c}}}},mx=()=>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},yx=(t=1e3,e=500)=>{let r=new Map;return n=>{if(!n)return n;let o=`${n.type}:${n.level}:${n.message||\"\"}:${n.error?.message||\"\"}`,s=r.get(o),i=n.ts||Date.now();if(s&&i-s<t)return null;if(r.set(o,i),r.size>e){let a=Math.ceil(e/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return n}},bx=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},xx={redact:t=>Qd(t.config.redact||[],t.config.maskStrategy),enrich:t=>gx(t),summarize:()=>mx(),dedupe:t=>yx(t.config.cache?.dedupeWindowMs||1e3),sample:t=>bx(t.config.sample||{})},vk=(t,e)=>{if(typeof t==\"function\")return t;if(typeof t==\"string\"){let r=xx[t];return r?r(e):null}return null},th=t=>{let e=t.config,r=Array.isArray(e.transformers)?e.transformers.slice():[],n=r.findIndex(s=>s===\"redact\");n>=0&&r.splice(n,1);let o=[];e.redact!==!1&&o.push(xx.redact(t));for(let s of r){let i=vk(s,t);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=o.slice(o.indexOf(a)+1),f=[];for(let u of c){let p=u,d=!1;for(let h of l)if(p=h(p),p==null){d=!0;break}!d&&p!=null&&f.push(p)}return f}i=c}return i}};R();R();var _c=typeof k<\"u\"&&typeof k.document<\"u\",Ck=5e3,Ak=50,Ek=3,Tk=1500,Ok=1e3,_x=t=>t?t.level===\"error\"||t.type===\"error\"?\"bug\":t.type===\"network\"?\"network\":t.type===\"console\"?t.level===\"error\"||t.level===\"warn\"?\"bug\":\"log\":t.level===\"warn\"?\"bug\":t.level===\"info\"?\"log\":\"verbose\":\"verbose\",Rk=t=>{try{return JSON.stringify(t)}catch{return null}},Pk=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},Ik=t=>{if(!t)return null;let e=String(t),r;return(r=e.match(/Edg\\/([\\d.]+)/))?{name:\"Edge\",version:r[1]}:(r=e.match(/OPR\\/([\\d.]+)/))?{name:\"Opera\",version:r[1]}:(r=e.match(/Firefox\\/([\\d.]+)/))?{name:\"Firefox\",version:r[1]}:/Chrome\\/([\\d.]+)/.test(e)&&/Safari\\//.test(e)?(r=e.match(/Chrome\\/([\\d.]+)/),{name:\"Chrome\",version:r[1]}):(r=e.match(/Version\\/([\\d.]+).*Safari/))?{name:\"Safari\",version:r[1]}:{name:null,version:null}},$k=()=>{if(!_c)return null;try{let t=k.document?.documentElement?.getAttribute(\"data-theme\")||null,e=typeof k.matchMedia==\"function\"?k.matchMedia(\"(prefers-color-scheme: dark)\").matches:null;return{active:t||(e?\"dark\":e===!1?\"light\":null),forced:t||null,prefers:e==null?null:e?\"dark\":\"light\"}}catch{return null}},Fk=()=>{if(!_c)return null;let t=k.location,e=typeof navigator<\"u\"?navigator:null,r=typeof screen<\"u\"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:k.document?.referrer||null,title:k.document?.title||null,ua:e?.userAgent||null,browser:Ik(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:Pk(),viewport:k.innerWidth?{w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}:null,screen:r?{w:r.width||null,h:r.height||null,availW:r.availWidth||null,availH:r.availHeight||null,colorDepth:r.colorDepth||null,orientation:r.orientation?.type||null}:null,theme:$k()}},eh=(t={})=>{let e=t.url,r=typeof t.transport==\"function\"?t.transport:null;if(!e&&!r)return()=>{};let n=t.apiKey||null,o=t.appKey||t.appId||null,s=t.tenantKey||t.tenant||null,i=t.release||null,a=t.env||null,c=t.sdk||null,l=typeof t.getAuth==\"function\"?t.getAuth:null,f=typeof t.getContext==\"function\"?t.getContext:null,u=typeof t.classify==\"function\"?t.classify:_x,p=typeof t.beforeSend==\"function\"?t.beforeSend:null,d=t.batchMs!=null?t.batchMs:Ck,h=t.maxBatch||Ak,g=t.maxRetries!=null?t.maxRetries:Ek,m=t.backoffMs||Tk,y=t.queueLimit||Ok,b=t.sampleRate!=null?t.sampleRate:1,_=t.sessionId||(typeof crypto<\"u\"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),x=[],C=[],E=null,P=null,V=()=>{E||!x.length||(E=setTimeout(st,d))},O=$=>{if(P)return;let G=m*Math.pow(2,Math.max(0,$-1));P=setTimeout(()=>{if(P=null,!C.length)return;let Y=C.shift();H(Y.envelope,Y.attempt)},G)},F=$=>{let G=f?Dk(f):null,Y={v:1,session:{id:_,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:c,page:Fk(),user:G?.user||null,traits:G?.traits||null,tags:G?.tags||null,events:$};if(p)try{return p(Y)||null}catch{return Y}return Y},H=async($,G=1)=>{if($)try{let Y=!0;if(r){let dt=await r($);Y=dt!==!1&&dt?.ok!==!1}else Y=await Lk(e,$,{apiKey:n,getAuth:l});!Y&&G<g&&(C.push({envelope:$,attempt:G+1}),O(G+1))}catch{G<g&&(C.push({envelope:$,attempt:G+1}),O(G+1))}},st=($=!1)=>{if(E&&(clearTimeout(E),E=null),!x.length)return;let G=x;x=[];let Y=F(G);if(Y){if($&&_c&&navigator.sendBeacon&&e){let dt=Rk(Y);if(dt)try{navigator.sendBeacon(e,new k.Blob([dt],{type:\"application/json\"}));return}catch{}}H(Y)}};_c&&(k.addEventListener(\"pagehide\",()=>st(!0),{passive:!0}),k.addEventListener(\"beforeunload\",()=>st(!0),{passive:!0}),k.addEventListener(\"visibilitychange\",()=>{k.document.visibilityState===\"hidden\"&&st(!0)},{passive:!0}));let B=$=>{if(!$||b<1&&Math.random()>b)return;let G={...$,log_type:u($)};x.push(G),x.length>y&&(x=x.slice(-y)),x.length>=h?st():V()};return B.flush=()=>st(!1),B.sessionId=_,B},Dk=t=>{try{return t()}catch{return null}},Lk=async(t,e,{apiKey:r,getAuth:n})=>{let o={\"Content-Type\":\"application/json\",\"X-Analyze-Beacon\":\"1\"};if(r&&(o[\"X-Analyze-Key\"]=r),n)try{let s=await n();s&&(o.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(t,{method:\"POST\",headers:o,body:JSON.stringify(e),keepalive:!0,credentials:\"omit\",mode:\"cors\"})).ok}catch{return!1}};var Mk={error:\"\\x1B[31m\",warn:\"\\x1B[33m\",info:\"\\x1B[36m\",debug:\"\\x1B[90m\",trace:\"\\x1B[90m\"},Nk=\"\\x1B[0m\",Sc=typeof k<\"u\"&&typeof k.document<\"u\",wx=(t={})=>{let e=t.minLevel||null,r=console.error.bind(console),n=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level===\"error\"?r:s.level===\"warn\"?n:o,a=`[analyze:${s.type}]`;if(Sc)i(a,s);else{let c=Mk[s.level]||\"\";i(`${c}${a}${Nk}`,s)}}},kx=(t,e={})=>{let r=e.max||t.config.cache?.max||500,n=new Array(r),o=0,s=0,i=a=>{n[o]=a,o=(o+1)%r,s<r&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+r)%r;for(let l=0;l<s;l++)a[l]=n[(c+l)%r];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{o=0,s=0}},i},vx=(t={})=>{let e=t.url,r=t.batchMs!=null?t.batchMs:5e3,n=t.maxBatch||50;if(!e)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let c=JSON.stringify({events:o});o=[];let l=Sc?new k.Blob([c],{type:\"application/json\"}):c;if(Sc&&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(()=>{})};Sc&&(k.addEventListener(\"pagehide\",i,{passive:!0}),k.addEventListener(\"beforeunload\",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},Sx={console:wx,memory:kx,beacon:vx,remote:eh},rh=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:[\"console\"],r=[];for(let n of e)if(typeof n==\"function\")r.push(n);else if(typeof n==\"string\"){let o=Sx[n];if(!o)continue;r.push(n===\"memory\"?o(t,{}):o({}))}else if(n&&typeof n==\"object\"&&n.type){let o=Sx[n.type];if(!o)continue;r.push(n.type===\"memory\"?o(t,n):o(n))}return r};R();var jk=typeof k<\"u\"&&typeof k.document<\"u\",Bk=new Set([\"password\",\"hidden\"]),Cx=(t,e)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=e?(r=i,t(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(t(...o),o=null)},e-(i-r))))}},nh=\"__analyzeKeyPath\",wn=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[nh])return e[nh];let r=[],n=e,o=0,s=null;for(;n&&o<64;){if(n.getAttribute){let a=n.getAttribute(\"data-key\");a&&(s==null&&(s=a),r.unshift(a))}n=n.parentNode,o++}let i;if(r.length)i={selector:null,key:s,path:r.join(\" > \"),tag:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||\"unknown\").toLowerCase(),c=e.id?`#${e.id}`:\"\",l=e.className&&typeof e.className==\"string\"?\".\"+e.className.trim().split(/\\s+/).slice(0,2).join(\".\"):\"\";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[nh]=i}catch{}return i},Vk=(t,e)=>{if(e===\"mask\")return\"***\";if(e!==\"redact\"){if(e===\"hash\"){let r=0,n=String(t||\"\");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return\"***\"}},Uk=t=>!!(!t||t.tagName===\"INPUT\"&&Bk.has(t.type)||xc.test(t.name||\"\")||xc.test(t.id||\"\")||t.dataset?.analyze===\"skip\"),oh=t=>{if(!jk)return;let e=t.config.capture,r=t.config.throttle,n=t.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),n.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(o(k,\"error\",s=>{t.emit(z(\"error\",\"error\",{hook:\"window.onerror\",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),o(k,\"unhandledrejection\",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(z(\"error\",\"error\",{hook:\"unhandledrejection\",message:a?.message||(typeof i==\"string\"?i:\"Unhandled promise rejection\"),error:a}))})),e.pointer){o(k,\"click\",i=>{t.emit(z(\"pointer\",\"info\",{hook:\"click\",target:wn(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:Ax(i)}))},{passive:!0,capture:!0}),o(k,\"dblclick\",i=>{t.emit(z(\"pointer\",\"info\",{hook:\"dblclick\",target:wn(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(k,\"contextmenu\",i=>{t.emit(z(\"pointer\",\"info\",{hook:\"contextmenu\",target:wn(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=Cx(i=>{t.emit(z(\"pointer\",\"trace\",{hook:\"pointermove\",x:i.clientX,y:i.clientY}))},r.pointermove);o(k,\"pointermove\",s,{passive:!0})}if(e.keyboard&&o(k,\"keydown\",s=>{t.emit(z(\"keyboard\",\"info\",{hook:\"keydown\",code:s.code,key:s.key&&s.key.length===1?\"\\xB7\":s.key,modifiers:Ax(s),target:wn(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=Uk(a),f=a.dataset?.analyze===\"track\",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=Vk(a.value,t.config.maskStrategy)),t.emit(z(\"forms\",\"info\",{hook:i.type,target:wn(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(k,\"input\",s,{passive:!0,capture:!0}),o(k,\"change\",s,{passive:!0,capture:!0}),o(k,\"submit\",i=>{t.emit(z(\"forms\",\"info\",{hook:\"submit\",target:wn(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=Cx(()=>{t.emit(z(\"scroll\",\"trace\",{hook:\"scroll\",x:k.scrollX,y:k.scrollY}))},r.scroll);o(k,\"scroll\",s,{passive:!0,capture:!0})}if(e.viewport){let s=Qn(()=>{t.emit(z(\"viewport\",\"info\",{hook:\"resize\",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))},r.resize);o(k,\"resize\",s,{passive:!0}),o(k,\"orientationchange\",()=>{t.emit(z(\"viewport\",\"info\",{hook:\"orientationchange\",orientation:typeof screen<\"u\"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(k.document,\"visibilitychange\",()=>{t.emit(z(\"viewport\",\"info\",{hook:\"visibilitychange\",hidden:k.document.hidden}))},{passive:!0}),t.emit(z(\"viewport\",\"info\",{hook:\"initial\",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))}if(e.console)for(let s of[\"log\",\"warn\",\"error\",\"debug\"]){let i=console[s];console[s]=function(...a){try{t.emit(z(\"console\",s===\"error\"?\"error\":s===\"warn\"?\"warn\":\"debug\",{hook:`console.${s}`,args:a.map(Ex)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<\"u\")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(z(\"performance\",\"info\",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.value:null}))}),i=[\"largest-contentful-paint\",\"layout-shift\",\"longtask\",\"paint\",\"first-input\",\"event\"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}n.push(()=>s.disconnect())}catch{}},Ax=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),zk=t=>{let e={name:t.name||\"Error\",message:typeof t.message==\"string\"?t.message:String(t),stack:typeof t.stack==\"string\"?t.stack:null};return t.cause!==void 0&&(e.cause=Ex(t.cause)),e},Ex=t=>{if(t==null)return t;if(t instanceof Error)return zk(t);if(typeof t==\"object\")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};R();var Wk=typeof k<\"u\"&&typeof k.document<\"u\";var sh=t=>{if(Wk&&t.config.capture.network){if(typeof k.fetch==\"function\"){let e=k.fetch.bind(k),r=function(n,o){if(o?.headers?.[\"X-Analyze-Beacon\"])return e(n,o);let s=typeof n==\"string\"?n:n&&n.url||\"\",i=(o?.method||typeof n==\"object\"&&n?.method||\"GET\").toUpperCase(),a=typeof performance<\"u\"?performance.now():Date.now();return t.emit(z(\"network\",\"info\",{hook:\"fetch.start\",source:\"window.fetch\",url:s,method:i})),e(n,o).then(c=>{let l=(typeof performance<\"u\"?performance.now():Date.now())-a;return t.emit(z(\"network\",c.ok?\"info\":\"warn\",{hook:\"fetch.success\",source:\"window.fetch\",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<\"u\"?performance.now():Date.now())-a;throw t.emit(z(\"network\",\"error\",{hook:\"fetch.error\",source:\"window.fetch\",url:s,method:i,error:c,durationMs:l})),c})};k.fetch=r,t.__teardown.push(()=>{k.fetch=e})}if(typeof k.XMLHttpRequest==\"function\"){let e=k.XMLHttpRequest,r=e.prototype.open,n=e.prototype.send;e.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},e.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<\"u\"?performance.now():Date.now();t.emit(z(\"network\",\"info\",{hook:\"xhr.start\",source:\"xhr\",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<\"u\"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(z(\"network\",f?\"info\":\"warn\",{hook:\"xhr.success\",source:\"xhr\",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<\"u\"?performance.now():Date.now())-i;t.emit(z(\"network\",\"error\",{hook:\"xhr.error\",source:\"xhr\",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener(\"loadend\",a),this.addEventListener(\"error\",c),n.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=r,e.prototype.send=n})}}};var Hk={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},Gk={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},qk={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},Kk={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},Yk=t=>{let e={...Hk,...t};return e.replay&&Object.assign(e,Gk),e.telemetry&&Object.assign(e,qk),e.remote&&Object.assign(e,Kk),e},Xk=64,Zk=()=>{if(typeof k>\"u\"||!k.location)return null;try{let e=new URLSearchParams(k.location.search).get(\"analyze\");return e||null}catch{return null}},ih=(t={})=>{let e=t===!0?{}:{...t};e.capture=Yk(e.capture||{});let r=Zk();(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=bc(e.level||\"warn\"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy=\"mask\"),Array.isArray(e.sinks)||(e.sinks=[\"console\",\"memory\"]),Array.isArray(e.transformers)||(e.transformers=[\"enrich\",\"summarize\"]);let n={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=th(n),n.__sinks=rh(n))};return n.shouldCapture=s=>n.config.enabled===!1?!1:!!n.config.capture[s],n.emit=s=>{if(s&&n.config.enabled!==!1&&!n.__paused&&Zd(s.level,n.config.level)){if(!n.__ready){if(s.level!==\"error\"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<Xk&&n.__preBuffer.push(s);return}o(),Tx(n,s)}},n.activate=s=>{if(n.context==null&&(n.context=s||null),n.__ready)return;n.__ready=!0;let i=n.__preBuffer;if(n.__preBuffer=[],i.length){o();for(let a of i)Tx(n,a)}try{oh(n)}catch(a){console.error(\"[analyze] browser attach error:\",a)}try{sh(n)}catch(a){console.error(\"[analyze] network attach error:\",a)}for(let a of n.__onActivate||[])try{a(n)}catch(c){console.error(\"[analyze] onActivate error:\",c)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=bc(s)},n.setCapture=(s,i)=>{n.config.capture[s]=!!i},n.query=s=>n.__memory?n.__memory.query(s):[],n.snapshot=()=>n.__memory?n.__memory.snapshot():[],n.emitNetwork=s=>{if(!n.shouldCapture(\"network\"))return;let i=s?.phase,a=i===\"error\"?\"error\":i===\"success\"&&s.ok===!1?\"warn\":\"info\";n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:\"network\",level:a,hook:`fetch.${i||\"unknown\"}`,...s})},n.flush=()=>{if(n.__sinks)for(let s of n.__sinks)typeof s.flush==\"function\"&&s.flush()},n.replay=()=>({initialSnapshot:n.__initialSnapshot,events:n.snapshot()}),n.destroy=()=>{for(let s of n.__teardown)try{s()}catch{}n.__teardown=[],n.__ready=!1,n.__paused=!0},n.__onActivate=[],n.onActivate=s=>{n.__onActivate.push(s)},n},Tx=(t,e)=>{let r=t.__pipeline(e);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof t.config.onEvent==\"function\")try{t.config.onEvent(o)}catch{}for(let s of t.__sinks)try{s(o)}catch(i){console.error(\"[analyze] sink error:\",i)}}};var re=Object.create(null);re.open=\"0\";re.close=\"1\";re.ping=\"2\";re.pong=\"3\";re.message=\"4\";re.upgrade=\"5\";re.noop=\"6\";var Qs=Object.create(null);Object.keys(re).forEach(t=>{Qs[re[t]]=t});var ti={type:\"error\",data:\"parser error\"};var Px=typeof Blob==\"function\"||typeof Blob<\"u\"&&Object.prototype.toString.call(Blob)===\"[object BlobConstructor]\",Ix=typeof ArrayBuffer==\"function\",$x=t=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,ei=({type:t,data:e},r,n)=>Px&&e instanceof Blob?r?n(e):Ox(e,n):Ix&&(e instanceof ArrayBuffer||$x(e))?r?n(e):Ox(new Blob([e]),n):n(re[t]+(e||\"\")),Ox=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(\",\")[1];e(\"b\"+(n||\"\"))},r.readAsDataURL(t)};function Rx(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var ah;function Fx(t,e){if(Px&&t.data instanceof Blob)return t.data.arrayBuffer().then(Rx).then(e);if(Ix&&(t.data instanceof ArrayBuffer||$x(t.data)))return e(Rx(t.data));ei(t,!1,r=>{ah||(ah=new TextEncoder),e(ah.encode(r))})}var Dx=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",ri=typeof Uint8Array>\"u\"?[]:new Uint8Array(256);for(let t=0;t<Dx.length;t++)ri[Dx.charCodeAt(t)]=t;var Lx=t=>{let e=t.length*.75,r=t.length,n,o=0,s,i,a,c;t[t.length-1]===\"=\"&&(e--,t[t.length-2]===\"=\"&&e--);let l=new ArrayBuffer(e),f=new Uint8Array(l);for(n=0;n<r;n+=4)s=ri[t.charCodeAt(n)],i=ri[t.charCodeAt(n+1)],a=ri[t.charCodeAt(n+2)],c=ri[t.charCodeAt(n+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l};var Jk=typeof ArrayBuffer==\"function\",ni=(t,e)=>{if(typeof t!=\"string\")return{type:\"message\",data:Mx(t,e)};let r=t.charAt(0);return r===\"b\"?{type:\"message\",data:Qk(t.substring(1),e)}:Qs[r]?t.length>1?{type:Qs[r],data:t.substring(1)}:{type:Qs[r]}:ti},Qk=(t,e)=>{if(Jk){let r=Lx(t);return Mx(r,e)}else return{base64:!0,data:t}},Mx=(t,e)=>e===\"blob\"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var Nx=\"\u001e\",jx=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{ei(s,!1,a=>{n[i]=a,++o===r&&e(n.join(Nx))})})},Bx=(t,e)=>{let r=t.split(Nx),n=[];for(let o=0;o<r.length;o++){let s=ni(r[o],e);if(n.push(s),s.type===\"error\")break}return n};function Vx(){return new TransformStream({transform(t,e){Fx(t,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}t.data&&typeof t.data!=\"string\"&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})}var ch;function wc(t){return t.reduce((e,r)=>e+r.length,0)}function kc(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function Ux(t,e){ch||(ch=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(wc(r)<1)break;let c=kc(r,1);s=(c[0]&128)===128,o=c[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(wc(r)<2)break;let c=kc(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(wc(r)<8)break;let c=kc(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(ti);break}o=f*Math.pow(2,32)+l.getUint32(4),n=3}else{if(wc(r)<o)break;let c=kc(r,o);a.enqueue(ni(s?c:ch.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(ti);break}}}})}var lh=4;function J(t){if(t)return tv(t)}function tv(t){for(var e in J.prototype)t[e]=J.prototype[e];return t}J.prototype.on=J.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+t]=this._callbacks[\"$\"+t]||[]).push(e),this};J.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};J.prototype.off=J.prototype.removeListener=J.prototype.removeAllListeners=J.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks[\"$\"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks[\"$\"+t],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}return r.length===0&&delete this._callbacks[\"$\"+t],this};J.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks[\"$\"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this};J.prototype.emitReserved=J.prototype.emit;J.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[\"$\"+t]||[]};J.prototype.hasListeners=function(t){return!!this.listeners(t).length};var Ae=typeof Promise==\"function\"&&typeof Promise.resolve==\"function\"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),St=typeof self<\"u\"?self:typeof window<\"u\"?window:Function(\"return this\")(),zx=\"arraybuffer\";function vc(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var ev=St.setTimeout,rv=St.clearTimeout;function Ee(t,e){e.useNativeTimers?(t.setTimeoutFn=ev.bind(St),t.clearTimeoutFn=rv.bind(St)):(t.setTimeoutFn=St.setTimeout.bind(St),t.clearTimeoutFn=St.clearTimeout.bind(St))}var nv=1.33;function Wx(t){return typeof t==\"string\"?ov(t):Math.ceil((t.byteLength||t.size)*nv)}function ov(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}function Cc(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Hx(t){let e=\"\";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+=\"&\"),e+=encodeURIComponent(r)+\"=\"+encodeURIComponent(t[r]));return e}function Gx(t){let e={},r=t.split(\"&\");for(let n=0,o=r.length;n<o;n++){let s=r[n].split(\"=\");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var Ac=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type=\"TransportError\"}},Te=class extends J{constructor(e){super(),this.writable=!1,Ee(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,n){return super.emitReserved(\"error\",new Ac(e,r,n)),this}open(){return this.readyState=\"opening\",this.doOpen(),this}close(){return(this.readyState===\"opening\"||this.readyState===\"open\")&&(this.doClose(),this.onClose()),this}send(e){this.readyState===\"open\"&&this.write(e)}onOpen(){this.readyState=\"open\",this.writable=!0,super.emitReserved(\"open\")}onData(e){let r=ni(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=Hx(e);return r.length?\"?\"+r:\"\"}};var oi=class extends Te{constructor(){super(...arguments),this._polling=!1}get name(){return\"polling\"}doOpen(){this._poll()}pause(e){this.readyState=\"pausing\";let r=()=>{this.readyState=\"paused\",e()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once(\"pollComplete\",function(){--n||r()})),this.writable||(n++,this.once(\"drain\",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(\"poll\")}onData(e){let r=n=>{if(this.readyState===\"opening\"&&n.type===\"open\"&&this.onOpen(),n.type===\"close\")return this.onClose({description:\"transport closed by the server\"}),!1;this.onPacket(n)};Bx(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,jx(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]=Cc()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var qx=!1;try{qx=typeof XMLHttpRequest<\"u\"&&\"withCredentials\"in new XMLHttpRequest}catch{}var Kx=qx;function sv(){}var fh=class extends oi{constructor(e){if(super(e),typeof location<\"u\"){let r=location.protocol===\"https:\",n=location.port;n||(n=r?\"443\":\"80\"),this.xd=typeof location<\"u\"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,r){let n=this.request({method:\"POST\",data:e});n.on(\"success\",r),n.on(\"error\",(o,s)=>{this.onError(\"xhr post error\",o,s)})}doPoll(){let e=this.request();e.on(\"data\",this.onData.bind(this)),e.on(\"error\",(r,n)=>{this.onError(\"xhr poll error\",r,n)}),this.pollXhr=e}},er=class t extends J{constructor(e,r,n){super(),this.createRequest=e,Ee(this,n),this._opts=n,this._method=n.method||\"GET\",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var e;let r=vc(this._opts,\"agent\",\"pfx\",\"key\",\"passphrase\",\"cert\",\"ca\",\"ciphers\",\"rejectUnauthorized\",\"autoUnref\");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method===\"POST\")try{n.setRequestHeader(\"Content-type\",\"text/plain;charset=UTF-8\")}catch{}try{n.setRequestHeader(\"Accept\",\"*/*\")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(n),\"withCredentials\"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader(\"set-cookie\"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status==\"number\"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<\"u\"&&(this._index=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved(\"error\",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>\"u\"||this._xhr===null)){if(this._xhr.onreadystatechange=sv,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()}};er.requestsCount=0;er.requests={};if(typeof document<\"u\"){if(typeof attachEvent==\"function\")attachEvent(\"onunload\",Yx);else if(typeof addEventListener==\"function\"){let t=\"onpagehide\"in St?\"pagehide\":\"unload\";addEventListener(t,Yx,!1)}}function Yx(){for(let t in er.requests)er.requests.hasOwnProperty(t)&&er.requests[t].abort()}var iv=(function(){let t=Xx({xdomain:!1});return t&&t.responseType!==null})(),rr=class extends fh{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=iv&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new er(Xx,this.uri(),e)}};function Xx(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<\"u\"&&(!e||Kx))return new XMLHttpRequest}catch{}if(!e)try{return new St[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\")}catch{}}var Zx=typeof navigator<\"u\"&&typeof navigator.product==\"string\"&&navigator.product.toLowerCase()===\"reactnative\",ph=class extends Te{get name(){return\"websocket\"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=Zx?{}:vc(this.opts,\"agent\",\"perMessageDeflate\",\"pfx\",\"key\",\"passphrase\",\"cert\",\"ca\",\"ciphers\",\"rejectUnauthorized\",\"localAddress\",\"protocolVersion\",\"origin\",\"maxPayload\",\"family\",\"checkServerIdentity\");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,r,n)}catch(o){return this.emitReserved(\"error\",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:\"websocket connection closed\",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(\"websocket error\",e)}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;ei(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&Ae(()=>{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]=Cc()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},uh=St.WebSocket||St.MozWebSocket,nr=class extends ph{createSocket(e,r,n){return Zx?new uh(e,r,n):r?new uh(e,r):new uh(e)}doWrite(e,r){this.ws.send(r)}};var kn=class extends Te{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=Ux(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=Vx();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:c})=>{a||(this.onPacket(c),s())}).catch(a=>{})};s();let i={type:\"open\"};this.query.sid&&(i.data=`{\"sid\":\"${this.query.sid}\"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;this._writer.write(n).then(()=>{o&&Ae(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var dh={websocket:nr,webtransport:kn,polling:rr};var av=/^(?:(?![^:@\\/?#]+:[^:@\\/]*@)(http|https|ws|wss):\\/\\/)?((?:(([^:@\\/?#]*)(?::([^:@\\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/,cv=[\"source\",\"protocol\",\"authority\",\"userInfo\",\"user\",\"password\",\"host\",\"port\",\"relative\",\"path\",\"directory\",\"file\",\"query\",\"anchor\"];function vn(t){if(t.length>8e3)throw\"URI too long\";let e=t,r=t.indexOf(\"[\"),n=t.indexOf(\"]\");r!=-1&&n!=-1&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,\";\")+t.substring(n,t.length));let o=av.exec(t||\"\"),s={},i=14;for(;i--;)s[cv[i]]=o[i]||\"\";return r!=-1&&n!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,\":\"),s.authority=s.authority.replace(\"[\",\"\").replace(\"]\",\"\").replace(/;/g,\":\"),s.ipv6uri=!0),s.pathNames=lv(s,s.path),s.queryKey=fv(s,s.query),s}function lv(t,e){let r=/\\/{2,9}/g,n=e.replace(r,\"/\").split(\"/\");return(e.slice(0,1)==\"/\"||e.length===0)&&n.splice(0,1),e.slice(-1)==\"/\"&&n.splice(n.length-1,1),n}function fv(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var hh=typeof addEventListener==\"function\"&&typeof removeEventListener==\"function\",Ec=[];hh&&addEventListener(\"offline\",()=>{Ec.forEach(t=>t())},!1);var Cr=class t extends J{constructor(e,r){if(super(),this.binaryType=zx,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==\"object\"&&(r=e,e=null),e){let n=vn(e);r.hostname=n.host,r.secure=n.protocol===\"https\"||n.protocol===\"wss\",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=vn(r.host).host);Ee(this,r),this.secure=r.secure!=null?r.secure:typeof location<\"u\"&&location.protocol===\"https:\",r.hostname&&!r.port&&(r.port=this.secure?\"443\":\"80\"),this.hostname=r.hostname||(typeof location<\"u\"?location.hostname:\"localhost\"),this.port=r.port||(typeof location<\"u\"&&location.port?location.port:this.secure?\"443\":\"80\"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:\"/engine.io\",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:\"t\",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\\/$/,\"\")+(this.opts.addTrailingSlash?\"/\":\"\"),typeof this.opts.query==\"string\"&&(this.opts.query=Gx(this.opts.query)),hh&&(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\"})},Ec.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=lh,r.transport=e,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(\"error\",\"No transports available\")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf(\"websocket\")!==-1?\"websocket\":this.transports[0];this.readyState=\"opening\";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(\"drain\",this._onDrain.bind(this)).on(\"packet\",this._onPacket.bind(this)).on(\"error\",this._onError.bind(this)).on(\"close\",r=>this._onClose(\"transport close\",r))}onOpen(){this.readyState=\"open\",t.priorWebsocketSuccess=this.transport.name===\"websocket\",this.emitReserved(\"open\"),this.flush()}_onPacket(e){if(this.readyState===\"opening\"||this.readyState===\"open\"||this.readyState===\"closing\")switch(this.emitReserved(\"packet\",e),this.emitReserved(\"heartbeat\"),e.type){case\"open\":this.onHandshake(JSON.parse(e.data));break;case\"ping\":this._sendPacket(\"pong\"),this.emitReserved(\"ping\"),this.emitReserved(\"pong\"),this._resetPingTimeout();break;case\"error\":let r=new Error(\"server error\");r.code=e.data,this._onError(r);break;case\"message\":this.emitReserved(\"data\",e.data),this.emitReserved(\"message\",e.data);break}}onHandshake(e){this.emitReserved(\"handshake\",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==\"closed\"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(\"ping timeout\")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved(\"drain\"):this.flush()}flush(){if(this.readyState!==\"closed\"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(\"flush\")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===\"polling\"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=Wx(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Ae(()=>{this._onClose(\"ping timeout\")},this.setTimeoutFn)),e}write(e,r,n){return this._sendPacket(\"message\",e,r,n),this}send(e,r,n){return this._sendPacket(\"message\",e,r,n),this}_sendPacket(e,r,n,o){if(typeof r==\"function\"&&(o=r,r=void 0),typeof n==\"function\"&&(o=n,n=null),this.readyState===\"closing\"||this.readyState===\"closed\")return;n=n||{},n.compress=n.compress!==!1;let s={type:e,data:r,options:n};this.emitReserved(\"packetCreate\",s),this.writeBuffer.push(s),o&&this.once(\"flush\",o),this.flush()}close(){let e=()=>{this._onClose(\"forced close\"),this.transport.close()},r=()=>{this.off(\"upgrade\",r),this.off(\"upgradeError\",r),e()},n=()=>{this.once(\"upgrade\",r),this.once(\"upgradeError\",r)};return(this.readyState===\"opening\"||this.readyState===\"open\")&&(this.readyState=\"closing\",this.writeBuffer.length?this.once(\"drain\",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===\"opening\")return this.transports.shift(),this._open();this.emitReserved(\"error\",e),this._onClose(\"transport error\",e)}_onClose(e,r){if(this.readyState===\"opening\"||this.readyState===\"open\"||this.readyState===\"closing\"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners(\"close\"),this.transport.close(),this.transport.removeAllListeners(),hh&&(this._beforeunloadEventListener&&removeEventListener(\"beforeunload\",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Ec.indexOf(this._offlineEventListener);n!==-1&&Ec.splice(n,1)}this.readyState=\"closed\",this.id=null,this.emitReserved(\"close\",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Cr.protocol=lh;var Tc=class extends Cr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===\"open\"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let r=this.createTransport(e),n=!1;Cr.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:\"ping\",data:\"probe\"}]),r.once(\"packet\",u=>{if(!n)if(u.type===\"pong\"&&u.data===\"probe\"){if(this.upgrading=!0,this.emitReserved(\"upgrading\",r),!r)return;Cr.priorWebsocketSuccess=r.name===\"websocket\",this.transport.pause(()=>{n||this.readyState!==\"closed\"&&(f(),this.setTransport(r),r.send([{type:\"upgrade\"}]),this.emitReserved(\"upgrade\",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error(\"probe error\");p.transport=r.name,this.emitReserved(\"upgradeError\",p)}}))};function s(){n||(n=!0,f(),r.close(),r=null)}let i=u=>{let p=new Error(\"probe error: \"+u);p.transport=r.name,s(),this.emitReserved(\"upgradeError\",p)};function a(){i(\"transport closed\")}function c(){i(\"socket closed\")}function l(u){r&&u.name!==r.name&&s()}let f=()=>{r.removeListener(\"open\",o),r.removeListener(\"error\",i),r.removeListener(\"close\",a),this.off(\"close\",c),this.off(\"upgrading\",l)};r.once(\"open\",o),r.once(\"error\",i),r.once(\"close\",a),this.once(\"close\",c),this.once(\"upgrading\",l),this._upgrades.indexOf(\"webtransport\")!==-1&&e!==\"webtransport\"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&r.push(e[n]);return r}},Cn=class extends Tc{constructor(e,r={}){let n=typeof e==\"object\"?e:r;(!n.transports||n.transports&&typeof n.transports[0]==\"string\")&&(n.transports=(n.transports||[\"polling\",\"websocket\",\"webtransport\"]).map(o=>dh[o]).filter(o=>!!o)),super(e,n)}};var jF=Cn.protocol;function Jx(t,e=\"\",r){let n=t;r=r||typeof location<\"u\"&&location,t==null&&(t=r.protocol+\"//\"+r.host),typeof t==\"string\"&&(t.charAt(0)===\"/\"&&(t.charAt(1)===\"/\"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\\/\\//.test(t)||(typeof r<\"u\"?t=r.protocol+\"//\"+t:t=\"https://\"+t),n=vn(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port=\"80\":/^(http|ws)s$/.test(n.protocol)&&(n.port=\"443\")),n.path=n.path||\"/\";let s=n.host.indexOf(\":\")!==-1?\"[\"+n.host+\"]\":n.host;return n.id=n.protocol+\"://\"+s+\":\"+n.port+e,n.href=n.protocol+\"://\"+s+(r&&r.port===n.port?\"\":\":\"+n.port),n}var Sh={};I(Sh,{Decoder:()=>xh,Encoder:()=>bh,PacketType:()=>L,isPacketValid:()=>Pv,protocol:()=>l_});var pv=typeof ArrayBuffer==\"function\",dv=t=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Qx=Object.prototype.toString,hv=typeof Blob==\"function\"||typeof Blob<\"u\"&&Qx.call(Blob)===\"[object BlobConstructor]\",gv=typeof File==\"function\"||typeof File<\"u\"&&Qx.call(File)===\"[object FileConstructor]\";function ii(t){return pv&&(t instanceof ArrayBuffer||dv(t))||hv&&t instanceof Blob||gv&&t instanceof File}function si(t,e){if(!t||typeof t!=\"object\")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(si(t[r]))return!0;return!1}if(ii(t))return!0;if(t.toJSON&&typeof t.toJSON==\"function\"&&arguments.length===1)return si(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&si(t[r]))return!0;return!1}function t_(t){let e=[],r=t.data,n=t;return n.data=gh(r,e),n.attachments=e.length,{packet:n,buffers:e}}function gh(t,e){if(!t)return t;if(ii(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=gh(t[n],e);return r}else if(typeof t==\"object\"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=gh(t[n],e));return r}return t}function e_(t,e){return t.data=mh(t.data,e),delete t.attachments,t}function mh(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]=mh(t[r],e);else if(typeof t==\"object\")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=mh(t[r],e));return t}var a_=L_(i_(),1),yh=(0,a_.default)(\"socket.io-parser\"),c_=[\"connect\",\"connect_error\",\"disconnect\",\"disconnecting\",\"newListener\",\"removeListener\"],l_=5,L;(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\"})(L||(L={}));var bh=class{constructor(e){this.replacer=e}encode(e){return yh(\"encoding packet %j\",e),(e.type===L.EVENT||e.type===L.ACK)&&si(e)?this.encodeAsBinary({type:e.type===L.EVENT?L.BINARY_EVENT:L.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=\"\"+e.type;return(e.type===L.BINARY_EVENT||e.type===L.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)),yh(\"encoded %j as %s\",e,r),r}encodeAsBinary(e){let r=t_(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},xh=class t extends J{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==\"function\"?{reviver:e}:e)}add(e){let r;if(typeof e==\"string\"){if(this.reconstructor)throw new Error(\"got plaintext data when reconstructing a packet\");r=this.decodeString(e);let n=r.type===L.BINARY_EVENT;n||r.type===L.BINARY_ACK?(r.type=n?L.EVENT:L.ACK,this.reconstructor=new _h(r),r.attachments===0&&super.emitReserved(\"decoded\",r)):super.emitReserved(\"decoded\",r)}else if(ii(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),r&&(this.reconstructor=null,super.emitReserved(\"decoded\",r));else throw new Error(\"got binary data when not reconstructing a packet\");else throw new Error(\"Unknown type: \"+e)}decodeString(e){let r=0,n={type:Number(e.charAt(0))};if(L[n.type]===void 0)throw new Error(\"unknown packet type \"+n.type);if(n.type===L.BINARY_EVENT||n.type===L.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(!f_(a)||a<0)throw new Error(\"Illegal attachments\");if(a>this.opts.maxAttachments)throw new Error(\"too many attachments\");n.attachments=a}if(e.charAt(r+1)===\"/\"){let s=r+1;for(;++r&&!(e.charAt(r)===\",\"||r===e.length););n.nsp=e.substring(s,r)}else n.nsp=\"/\";let o=e.charAt(r+1);if(o!==\"\"&&Number(o)==o){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}n.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(n.type,s))n.data=s;else throw new Error(\"invalid payload\")}return yh(\"decoded %s as %j\",e,n),n}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case L.CONNECT:return Pc(r);case L.DISCONNECT:return r===void 0;case L.CONNECT_ERROR:return typeof r==\"string\"||Pc(r);case L.EVENT:case L.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]==\"number\"||typeof r[0]==\"string\"&&c_.indexOf(r[0])===-1);case L.ACK:case L.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},_h=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=e_(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Tv(t){return typeof t==\"string\"}var f_=Number.isInteger||function(t){return typeof t==\"number\"&&isFinite(t)&&Math.floor(t)===t};function Ov(t){return t===void 0||f_(t)}function Pc(t){return Object.prototype.toString.call(t)===\"[object Object]\"}function Rv(t,e){switch(t){case L.CONNECT:return e===void 0||Pc(e);case L.DISCONNECT:return e===void 0;case L.EVENT:return Array.isArray(e)&&(typeof e[0]==\"number\"||typeof e[0]==\"string\"&&c_.indexOf(e[0])===-1);case L.ACK:return Array.isArray(e);case L.CONNECT_ERROR:return typeof e==\"string\"||Pc(e);default:return!1}}function Pv(t){return Tv(t.nsp)&&Ov(t.id)&&Rv(t.type,t.data)}function Lt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var Iv=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),On=class extends J{constructor(e,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Lt(e,\"open\",this.onopen.bind(this)),Lt(e,\"packet\",this.onpacket.bind(this)),Lt(e,\"error\",this.onerror.bind(this)),Lt(e,\"close\",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState===\"open\"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift(\"message\"),this.emit.apply(this,e),this}emit(e,...r){var n,o,s;if(Iv.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:L.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]==\"function\"){let f=this.ids++,u=r.pop();this._registerAckCallback(f,u),i.id=f}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);r.call(this,new Error(\"operation has timed out\"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]==\"function\"&&(r=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((o,...s)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...s)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==\"function\"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:L.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(\"connect_error\",e)}onclose(e,r){this.connected=!1,delete this.id,this.emitReserved(\"disconnect\",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error(\"socket has been disconnected\"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case L.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 L.EVENT:case L.BINARY_EVENT:this.onevent(e);break;case L.ACK:case L.BINARY_ACK:this.onack(e);break;case L.DISCONNECT:this.ondisconnect();break;case L.CONNECT_ERROR:this.destroy();let n=new Error(e.data.message);n.data=e.data.data,this.emitReserved(\"connect_error\",n);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==\"string\"&&(this._lastOffset=e[e.length-1])}ack(e){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:L.ACK,id:e,data:o}))}}onack(e){let r=this.acks[e.id];typeof r==\"function\"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(\"connect\")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(\"io server disconnect\")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:L.DISCONNECT}),this.destroy(),this.connected&&this.onclose(\"io client disconnect\"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,e.data)}}};function Er(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Er.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};Er.prototype.reset=function(){this.attempts=0};Er.prototype.setMin=function(t){this.ms=t};Er.prototype.setMax=function(t){this.max=t};Er.prototype.setJitter=function(t){this.jitter=t};var Rn=class extends J{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&typeof e==\"object\"&&(r=e,e=void 0),r=r||{},r.path=r.path||\"/socket.io\",this.opts=r,Ee(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new Er({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState=\"closed\",this.uri=e;let o=r.parser||Sh;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(\"open\"))return this;this.engine=new Cn(this.uri,this.opts);let r=this.engine,n=this;this._readyState=\"opening\",this.skipReconnect=!1;let o=Lt(r,\"open\",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState=\"closed\",this.emitReserved(\"error\",a),e?e(a):this.maybeReconnectOnOpen()},i=Lt(r,\"error\",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error(\"timeout\")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=\"open\",this.emitReserved(\"open\");let e=this.engine;this.subs.push(Lt(e,\"ping\",this.onping.bind(this)),Lt(e,\"data\",this.ondata.bind(this)),Lt(e,\"error\",this.onerror.bind(this)),Lt(e,\"close\",this.onclose.bind(this)),Lt(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){Ae(()=>{this.emitReserved(\"packet\",e)},this.setTimeoutFn)}onerror(e){this.emitReserved(\"error\",e)}socket(e,r){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new On(this,e,r),this.nsps[e]=n),n}_destroy(e){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let n=0;n<r.length;n++)this.engine.write(r[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(\"forced close\")}disconnect(){return this._close()}onclose(e,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState=\"closed\",this.emitReserved(\"close\",e,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(\"reconnect_failed\"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(\"reconnect_attempt\",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved(\"reconnect_error\",o)):e.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(\"reconnect\",e)}};var ai={};function Pn(t,e){typeof t==\"object\"&&(e=t,t=void 0),e=e||{};let r=Jx(t,e.path||\"/socket.io\"),n=r.source,o=r.id,s=r.path,i=ai[o]&&s in ai[o].nsps,a=e.forceNew||e[\"force new connection\"]||e.multiplex===!1||i,c;return a?c=new Rn(n,e):(ai[o]||(ai[o]=new Rn(n,e)),c=ai[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Pn,{Manager:Rn,Socket:On,io:Pn,connect:Pn});R();var $v=new Set([\"__proto__\",\"constructor\",\"prototype\"]),u_=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if($v.has(t[e]))return!1;return!0},Fv=(t,e)=>{!t||!u_(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},Dv=(t,e,r,n=!1)=>{!t||!u_(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},t)},p_=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[n,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case\"delete\":Fv(t,o);break;case\"update\":case\"set\":Dv(t,o,s,!0);break;default:break}return r};R();var d_=(t,e,r)=>{let n=!1;return(o={})=>{let{data:s}=o,{schema:i}=o;s&&(s=t.call(\"deepDestringifyFunctions\",s,Array.isArray(s)?[]:{}),Object.entries(s).forEach(([a,c])=>{r[a]&&typeof r[a]==\"object\"?a===\"designSystem\"?n&&Ce(c):dr(r[a],c):r[a]=c}),n=!0,i&&(r.schema=i))}},h_=(t,e,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=t.call(\"deepDestringifyFunctions\",o,Array.isArray(o)?[]:{});let s=p_(r,o);if(s.has(\"state\")&&e.update(r.state),[\"pages\",\"components\",\"snippets\",\"functions\",\"assets\"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call(\"router\",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has(\"designSystem\")&&Ce(r.designSystem)};var Lv={success:\"green\",error:\"red\",warning:\"yellow\"},g_=(t,e,r)=>{if(t.symbols){if(!r.connected){r.notifications.connected={title:\"Connected\",message:\"to the Symbols live server\"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected.update({animation:\"fadeOutDown\"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:\"Disconnected\",type:\"error\"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:\"fadeOutDown\"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},m_={state:{notifications:[]},Notifications:{position:\"fixed\",left:\"A2\",bottom:\"Z2\",zIndex:\"999\",childExtends:\"Notification\",childProps:({state:t})=>({animationDuration:\"C\",background:Lv[t.type||\"success\"],icon:null,Flex:{Title:{text:\"{{ title }}\"},P:{text:\"{{ title }}\"}},onRender:(e,r,n)=>{r.update({animation:\"fadeInUp\"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.update({animation:\"fadeOutDown\"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:\"state\",children:({state:t})=>t.notifications}};var Mv=!1,Nv=()=>Mv?\"http://localhost:8080\":\"https://api.symbols.app\",jv=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}},Bv=async t=>{try{let e=t||Nv(),r=await k.fetch(`${e}/service-token`,{method:\"GET\"}),n;try{let o=await r.clone().json();if(o&&typeof o.token==\"string\")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||\"\").replace(/\\s+/gu,\"\")||void 0}catch(e){console.error(\"[sync] Failed to fetch service-token\",e)}},x_=(t,e,r,n)=>{t.on(\"snapshot\",d_(e,r,n)),t.on(\"ops\",h_(e,r,n)),t.on(\"clients\",o=>{n.editor?.verbose&&g_(o,e,r)}),t.on(\"disconnect\",o=>{n.editor?.verbose&&console.info(\"[sync] disconnected\",o)})},Vv=async(t,e,r,n)=>{let o=await Bv(n);if(!o)return console.warn(\"[sync] no service token \\u2014 collab disabled\"),null;let s=r.key;if(!s)return console.warn(\"[sync] ctx.key missing \\u2014 collab cannot authenticate\"),null;let i=r.editor?.projectId||null,a=Pn(n,{path:\"/collab-socket\",transports:[\"websocket\"],auth:{token:o,projectId:i,projectKey:s,branch:\"main\",live:!0,clientType:\"platform\"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on(\"connect\",()=>{r.editor?.verbose&&console.info(\"[sync] connected (collab)\")}),x_(a,t,e,r),a},Uv=(t,e,r)=>{let n=Pn({transports:[\"websocket\",\"polling\"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on(\"connect\",()=>{r.editor?.verbose!==!1&&console.info(\"[sync] connected (runner)\")}),x_(n,t,e,r),n.on(\"reload\",()=>{typeof k<\"u\"&&k.location&&k.location.reload()}),n},zv=async(t,e,r)=>{let{mode:n,baseUrl:o}=jv(r);return n?n===\"collab\"?Vv(t,e,r,o):n===\"runner\"?Uv(t,e,r):null:null},Wv={onInit:zv};var __=t=>typeof t>\"u\",y_=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),b_=t=>t?.editor?.runtime===\"runner\",S_=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},w_={name:\"sync\",beforeCreate(t,e){let r=e&&e.editor;(r&&!__(r.liveSync)?r.liveSync:y_(e)||b_(e))&&(y_(e)&&!b_(e)&&!e?.key||S_(t,Wv))}},k_={name:\"notifications\",beforeCreate(t,e){if(!e)return;let r=__(e.notifications)?null:e.notifications,n=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&n)&&S_(t,m_)}};R();function v_(t){return w(t)?t:T(t)?t.find(e=>w(e)):\"\"}function kh(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&v_(t.extends),n=t.parent&&t.parent.childExtends&&v_(t.parent.childExtends);return(e||r||n||\"\").split(\"_\")[0].split(\".\")[0].split(\"+\")[0]}function Ic(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:n}=t.context,o=kh(t);return n&&n.onInitInspect&&!n.onInitInspect(o,t,t.state)?Ic(t.parent):o&&(e[o]||r[o])?t:Ic(t.parent)}var Hv=(t,e,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{t.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},wh={\".preventSelect\":{userSelect:\"none\"},\"!preventSelect\":{userSelect:\"auto\"},onInspect:Hv,onMousemove:(t,e,r)=>{let n=t.target.ref,o=Ic(n),s=e.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=kh(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:p}=o.node.getBoundingClientRect(),d={x:l,y:f,width:u,height:p};if(!s.area)return a(d);s.area.x!==d.x&&a(d)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,r)=>{if(!r.debugging)return;let n=t.target.ref,o=Ic(n);if(!o)return;let s=kh(o);if(!s)return;let i=n.context.editor;if(i&&i.onInspect)return i.onInspect(s,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return n.context.socket?.emit&&n.context.socket.emit(\"route\",a),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:\"all, defaultBezier, X\",position:\"fixed\",hide:(t,e)=>!(e.area&&e.parent.debugging),style:{boxShadow:\"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A\",zIndex:\"9999999\",borderRadius:\"10px\",pointerEvents:\"none\"},Span:{position:\"absolute\",margin:\"A2 0\",fontSize:\"Z\",color:\"text\",zIndex:\"99999999\",transition:\"all, defaultBezier, X\",textDecoration:\"underline\",fontWeight:\"500\",top:\"100%\",style:{boxShadow:\"0 25px 10px 35px black\",textShadow:\"0 0 10px black\"},text:\"{{ focusKey }}\"},onInit:({context:t})=>{let{components:e}=t;if(S(e)){let{Content:r,...n}=e;for(let o in n)mn[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(t,e,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,s;if(!o)s=\"display: none !important\";else if(n){let{x:i,y:a,width:c,height:l}=n;s=`\n display: block !important;\n top: ${a-6}px;\n left: ${i-6}px;\n width: ${c+12}px;\n height: ${l+12}px;\n `}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},C_={name:\"inspect\",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(wh):t.extends?t.extends=[t.extends,wh]:t.extends=[wh]}};var Gv=async(t,e={})=>{let r=e.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=e.key=e.key||n||(w(t)?t:\"smblsapp\");if(e.define=e.define||bn,e.cssPropsRegistry=pt,e.window=Xb(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(d=>typeof d==\"string\")){let{resolveSharedLibraries:d}=await Promise.resolve().then(()=>(R(),fa));e.sharedLibraries=await d(e.sharedLibraries)}ax(e)}let[s,i]=ox(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&mc.prepareContext(e);let a=sx(t,e);e.state=a,Ro(a),e.pages=ix(t,e),e.components=Zb(e),e.utils=Jb(e),Me[e.packageManager]&&(e.dependencies=await tx(e)),e.methods=Qb(e),e.routerOptions=Db(t,e),e.defaultExtends=[Ka],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&S(e.globalScope)&&(e.globalScope=Kn(e.globalScope));let c=(p,d)=>{let h=d?p[d]:p;if(!S(h))return;let g=oe(h);try{Object.assign(h,g)}catch(m){if(d)p[d]=g;else throw m}};c(t),c(e,\"components\"),c(e,\"pages\"),c(e,\"functions\"),c(e,\"methods\"),c(e,\"snippets\"),c(e,\"app\");let l=p=>p&&typeof p.select==\"function\";e.fetch?.__resolved&&!l(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!l(e.db.__resolved)&&delete e.db.__resolved;let f=p=>e.plugins.some(d=>d.name===p);if(e.polyglot&&!f(\"polyglot\")){e.plugins.push(dc);for(let p in Hs)p in e.functions||(e.functions[p]=Hs[p])}if(f(\"helmet\")||e.plugins.push(Vb),e.fetch&&!f(\"fetch\")&&e.plugins.push(Mf),e.designSystem?.typography?.useCapsize!==!1&&!f(\"capsize\")&&(e.plugins.push(ux),e.cssPropsRegistry.useCapsize=fx),e.shorthand&&!f(\"shorthand\")&&e.plugins.push(mc),e.analyze&&!f(\"analyze\")){let p=e.analyze===!0?{}:e.analyze;e.analyze=ih(p),e.plugins.push(Js)}return e.sync!==!1&&!f(\"sync\")&&e.plugins.push(w_),e.inspect&&!f(\"inspect\")&&e.plugins.push(C_),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!f(\"notifications\")&&e.plugins.push(k_),e},vh=async(t,e)=>{S(e)||(e={}),ye(t)?(t={},e.parent=t):w(t)?(t={},e.key=t):S(t)||(t={});let r=e.window||(typeof window<\"u\"?window:null),n=r?.__BRENDER__,o=null;if(n){let c=e.document||(typeof document<\"u\"?document:null);c&&(o=Array.from(c.head.querySelectorAll(\"style\")))}if(await Gv(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=Gb(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await ex({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate==\"function\")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin \"${c.name||\"?\"}\" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return t;let i=e.parent||s.body;if(n)return qv(Ht,t,i,e,r,o);let a=Ht(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<\"u\"&&!e.document&&(window.__smblsApp=a),a},qv=async(t,e,r,n,o,s)=>{let i=r.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of r.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f===\"script\"||f===\"link\"||f===\"style\"||f===\"svg\"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll(\"[data-br]\").forEach(l=>l.removeAttribute(\"data-br\"));let c=t(e,r,n.key,{verbose:n.verbose,context:n,...n.domqlOptions});return Kv(o),c},Kv=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var Ch=(t,e)=>W(t,S(e)?e:{}),Yv=t=>{if(typeof document>\"u\")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!=\"function\")return;let r=t.globalTheme||\"auto\";try{if(typeof window<\"u\"&&window.location){let s=new URLSearchParams(window.location.search).get(\"globalTheme\");s&&(r=s)}}catch{}let n=t.themeStorageKey;if(r===\"auto\"&&n&&typeof localStorage<\"u\")try{let s=localStorage.getItem(n);s&&(r=s)}catch{}let o=r===\"auto\"?(()=>{try{return typeof window<\"u\"&&window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}catch{return\"light\"}})():r;e.setAttribute(\"data-theme\",o),t.globalTheme=r,t.themeRoot=e},Xv=()=>{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}},A_=t=>{let e=Xv();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e===\"runner\"&&typeof t.editor.livesync>\"u\"&&(t.editor.livesync=!0))},Ah=(t,e=Qe,r)=>{let n={...Qe,...Ch(e,r)};return A_(n),Yv(n),vh(t,n).then(s=>{if(Vd(s,n),s.destroy=()=>Us(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Vs(s,l.customRouterElement);f&&(c=f)}return c.call(\"router\",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&s.onCreate(s,s.state,s.context,n),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error(\"[analyze] activate error:\",i)}return s}).catch(s=>{throw console.error(\"[smbls] create error:\",s),s})},Zv=(t,e=Qe,r)=>{let n=Ah(t,e,r),o={...Qe,...Ch(e,r)},s=o.key;return jb(n,s,{utils:Bs,...o}),n},Jv=async(t,e=Qe,r)=>{let n={...Qe,...Ch(e,r)};A_(n);let o=e.key;await Nb(o,n);let s=await vh(t,n);return Vd(s,n),s.destroy=()=>Us(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Vs(s,l.customRouterElement);f&&(c=f)}return c.call(\"router\",i,c,a.state||{},{pushState:!0,...a})},n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},Qv=(t={},e=Qe,r)=>Ah({deps:{isUndefined:ht},...t},W({domqlOptions:{onlyResolveExtends:!0}},e),r);R();var E_={\"@symbo.ls/signal\":Gc,\"@symbo.ls/scratch\":cp,\"@symbo.ls/element\":Yp,\"@symbo.ls/css\":dp,\"@symbo.ls/utils\":fa,\"@symbo.ls/state\":Fp,\"@symbo.ls/router\":Ns},T_=(t,e)=>{let r=t||(typeof globalThis<\"u\"?globalThis:{}),n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o in E_)n[o]||(n[o]=E_[o]);if(e)for(let o in e)n[o]||(n[o]=e[o]);return n};tc(Ps);T_(void 0,{smbls:Eh});return M_(Eh);})();\n";
2
+ export default "\"use strict\";var Smbls=(()=>{var $_=Object.create;var li=Object.defineProperty;var F_=Object.getOwnPropertyDescriptor;var D_=Object.getOwnPropertyNames;var L_=Object.getPrototypeOf,M_=Object.prototype.hasOwnProperty;var D=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var Nc=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},I=(t,e)=>{for(var r in e)li(t,r,{get:e[r],enumerable:!0})},Oh=(t,e,r,n)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of D_(e))!M_.call(t,o)&&o!==r&&li(t,o,{get:()=>e[o],enumerable:!(n=F_(e,o))||n.enumerable});return t};var N_=(t,e,r)=>(r=t!=null?$_(L_(t)):{},Oh(e||!t||!t.__esModule?li(r,\"default\",{value:t,enumerable:!0}):r,t)),j_=t=>Oh(li({},\"__esModule\",{value:!0}),t);var Yc,Xc,k,q,Fn=D(()=>{\"use strict\";Yc=globalThis,Xc=globalThis,k=globalThis,q=k.document});var be,Dn,kt,Ln=D(()=>{\"use strict\";Fn();be=t=>(typeof Node==\"object\"?t instanceof k.Node:t&&typeof t==\"object\"&&typeof t.nodeType==\"number\"&&typeof t.nodeName==\"string\")||!1,Dn=t=>(typeof HTMLElement==\"object\"?t instanceof k.HTMLElement:t&&typeof t==\"object\"&&t!==null&&t.nodeType===1&&typeof t.nodeName==\"string\")||!1,kt=t=>typeof k<\"u\"&&(k.Node&&t instanceof k.Node||k.Window&&t instanceof k.Window||t===k||t===document)});var w,S,ne,v,hi,gi,T,mi,B,vt,ht,Mn,Ct,Zc,gt=D(()=>{\"use strict\";Ln();w=t=>t===null?!1:typeof t==\"object\"&&t.constructor===Object,S=t=>typeof t==\"string\",ne=t=>typeof t==\"number\",v=t=>typeof t==\"function\",hi=t=>t===!0||t===!1,gi=t=>t===null,T=t=>Array.isArray(t),mi=t=>t instanceof Date,B=t=>t===null?!1:typeof t==\"object\",vt=t=>t!==void 0,ht=t=>t===void 0,Mn={boolean:hi,array:T,object:w,string:S,date:mi,number:ne,null:gi,function:v,objectLike:B,node:be,htmlElement:Dn,defined:vt},Ct=t=>(...e)=>e.some(r=>Mn[r](t)),Zc=t=>(...e)=>!e.some(r=>Mn[r](t))});var Jc,Qc,tl,el,Or,Nn,rl,nl,jn,ol,sl,il,al,cl,ll,fl,Rr,Bn,Pr=D(()=>{\"use strict\";xe();gt();Jc=(t,e)=>e.every(r=>t.includes(r)),Qc=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},tl=(t,e)=>{if(S(e)&&(e=parseInt(e)),ne(e)){if(e<0||e>=t.length||isNaN(e))throw new Error(\"Invalid index\");t.splice(e,1)}else throw new Error(\"Invalid index\");return t},el=(t,e,r)=>{e<0||r<0||e>=t.length||r>=t.length||([t[e],t[r]]=[t[r],t[e]])},Or=(...t)=>[].concat(...t),Nn=(t,e=[])=>t.reduce((r,n)=>H(r,Q(n,{exclude:e}),e),{}),rl=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},nl=(t,e)=>{if(!T(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},jn=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},ol=(t,e)=>t.filter(r=>r!==e),sl=(t,e)=>{let r=[];for(let n=0;n<t.length;n++)r.push(t[n]),n<t.length-1&&r.push(e);return r},il=(t,e,r)=>{let n=[...t],o=n.indexOf(e),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},al=(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},cl=(t,e)=>t.filter(r=>!e.includes(r)),ll=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},fl=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},Rr=t=>T(t)?[...new Set(t)]:t,Bn=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function lr(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?\"{{{\":\"{{\";if(!t.includes(o))return t;let s=z_[n],i=e||this.state||{},a=this;return t.replace(s,(c,l,f,u)=>{let p=f.trim();if(u){let d=a?.context,h=d?.functions?.[u]||d?.utils?.[u]||d?.methods?.[u]||d?.snippets?.[u]||a?.[u];if(h&&typeof h==\"function\")try{return String(h.call(a,p)??\"\")}catch{return\"\"}return\"\"}if(l){let d=(l.match(/\\.\\.\\//g)||[]).length,h=i;for(let m=0;m<d;m++){if(!h||!h.parent)return\"\";h=h.parent}if(p===\"parent\")return String(h.value??\"\");let g=Vn(h,p);return String(g??\"\")}else{let d=Vn(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=Vn(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 E=Vn(_,p);if(E!=null&&typeof E!=\"object\")return String(E)}}}let y=Vn(h.translations,p);if(y!=null&&typeof y!=\"object\")return String(y)}return\"\"}})}var Un,ul,z_,Vn,fr,pl,W_,dl,hl,gl,H_,ml,yl,zn=D(()=>{\"use strict\";Un=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},ul=(t,e)=>{let r=new RegExp(`[${e.join(\"\\\\\")}]`,\"g\");return t.replace(r,\"\")},z_={2:/{{\\s*((?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}/g,3:/{{{(\\s*(?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}}/g},Vn=(t,e)=>e.split(\".\").reduce((r,n)=>r?.[n],t);fr=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,pl=(t,e)=>{let r=t.split(`\n`),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\\\b${e}\\\\b\\\\s*:\\\\s*`),c=0,l=!1;for(let f=0;f<r.length;f++)if(a.test(r[f])&&!l){if(l=!0,n=f+1,s=r[f].indexOf(e)+1,r[f].includes(\"{}\")){o=n,i=r[f].indexOf(\"{}\")+3;break}let u=r[f].slice(s+e.length);if(u.includes(\"{\")||u.includes(\"[\"))c=1;else{o=f+1,i=r[f].length+1;break}}else if(l&&(c+=(r[f].match(/{/g)||[]).length,c+=(r[f].match(/\\[/g)||[]).length,c-=(r[f].match(/}/g)||[]).length,c-=(r[f].match(/]/g)||[]).length,c===0)){o=f+1,i=r[f].lastIndexOf(\"}\")!==-1?r[f].lastIndexOf(\"}\")+2:r[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},W_=/\\\\([0-7]{1,3})/g,dl=t=>t.replace(W_,(e,r)=>String.fromCharCode(parseInt(r,8))),hl=t=>t.replace(/\\n/g,\"/////n\").replace(/`/g,\"/////tilde\").replace(/\\$/g,\"/////dlrsgn\"),gl=t=>t.replace(/\\/\\/\\/\\/\\/n/g,`\n`).replace(/\\/\\/\\/\\/\\/tilde/g,\"`\").replace(/\\/\\/\\/\\/\\/dlrsgn/g,\"$\"),H_=/[^a-zA-Z0-9\\s]/g,ml=t=>t.replace(H_,e=>\"%\"+e.charCodeAt(0).toString(16).toUpperCase()),yl=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var Oe,Wn,bl,ur,Re,Ir,Hn,xl,$r=D(()=>{\"use strict\";Oe=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\"]),Wn=new Set([\"attr\",\"style\",\"text\",\"html\",\"content\",\"data\",\"class\",\"state\",\"scope\",\"children\",\"props\",\"if\",\"key\",\"tag\",\"query\",\"on\",\"context\"]),bl=[\"ref\",\"parent\",\"__element\",\"__depends\",\"__ref\",\"__children\",\"root\"],ur=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\"]),Re=new Set([\"update\",\"__element\"]),Ir=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\"]),Hn=new Set([\"node\",\"context\",\"extends\",\"__element\",\"__ref\",...Ir,...ur,...Re]),xl=new Set([\"init\",\"beforeClassAssign\",\"render\",\"renderRouter\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeStateUpdate\",\"stateUpdate\",\"beforeUpdate\",\"done\",\"create\",\"complete\",\"frame\",\"update\",\"fetchError\",\"fetchComplete\"])});var Ph,pr,K,_l,nt,H,$h,Sl,Q,Gn,G_,qn,q_,K_,Y_,Fr,X_,Z_,Ih,oe,J_,Q_,tS,Kn,wl,kl,yi,vl,Cl,Yn,dr,At,bi,eS,Al,El,xi,Tl,Ol,Rl,Pl,Il,$l,Fl,xe=D(()=>{\"use strict\";Fn();gt();Pr();zn();Ln();$r();Ph=\"production\",pr=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,K=(t,e,r,n)=>{if(v(t))return e?typeof t.call!=\"function\"?t:t.call(e,e,r||e.state,n||e.context):void 0;if(t!=null&&e?.context?.plugins&&(T(t)||w(t)&&!kt(t))){let o=e.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i==\"function\")return K(i,e,r,n)}}return t},_l=(t,e,r)=>{for(let n in e)t[n]=K(e[n],r)},nt=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(pr(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},H=(t,e,r=Hn)=>$h(t,e,r,null),$h=(t,e,r,n)=>{if(t===e)return t;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===t&&n[s+1]===e)return t}let o=r instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||pr(s)||s===\"constructor\"||s===\"prototype\"||(o?r.has(s):r.includes(s)))continue;let i=t[s],a=e[s];if(B(i)&&B(a)){let c=n||[];c.push(t,e),$h(i,a,r,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},Sl=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(pr(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},Q=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!B(t)||kt(t))return t;if(s.has(t))return s.get(t);let a=r instanceof Set?r:r.length>3?new Set(r):null,c=u=>a?a.has(u):r.includes(u),l=T(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,p]=f.pop();for(let d in u){if(!Object.prototype.hasOwnProperty.call(u,d)||pr(d)||d===\"__proto__\"||c(d))continue;let h=u[d];if(!(n&&h===void 0)&&!(o&&h===null)){if(kt(h)){p[d]=h;continue}if(i&&d===\"extends\"&&T(h)){p[d]=Nn(h,r);continue}if(v(h)){p[d]=h;continue}if(B(h))if(s.has(h))p[d]=s.get(h);else{let g=T(h)?[]:{};s.set(h,g),p[d]=g,f.push([h,g])}else p[d]=h}}}return l},Gn=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn(\"Trying to clone element or state at\",t),t=t.parse?.());for(let r in t){let n=t[r];if(v(n))e[r]=n.toString();else if(w(n))e[r]={},Gn(n,e[r]);else if(T(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];w(i)?(o[s]={},Gn(i,o[s])):v(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},G_=new Set([\"&\",\"*\",\"-\",\":\",\"%\",\"{\",\"}\",\">\",\"<\",\"@\",\".\",\"/\",\"!\",\" \"]),qn=(t={},e=0)=>{if(t===null||typeof t!=\"object\")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return\"{}\";let n=\" \".repeat(e),o=`{\n`;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(G_.has(s[l])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,T(i)){o+=`[\n`;for(let l of i)B(l)&&l!==null?o+=`${n} ${qn(l,e+2)},\n`:S(l)?o+=`${n} '${l}',\n`:o+=`${n} ${l},\n`;o+=`${n} ]`}else B(i)?o+=qn(i,e+1):S(i)?o+=Un(i,[`\n`,\"'\"])?`\\`${i}\\``:`'${i}'`:o+=i;o+=`,\n`}return o+=`${n}}`,o},q_=[/^\\(\\s*\\{[^}]*\\}\\s*\\)\\s*=>/,/^(\\([^)]*\\)|[^=]*)\\s*=>/,/^function[\\s(]/,/^async\\s+/,/^\\(\\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\\s*=>/],K_=/^[\"[{]/,Y_=/^(export|import)\\s/,Fr=t=>{if(!t)return!1;let e=t.trim().replace(/\\n\\s*/g,\" \").trim();if(e===\"\"||e===\"{}\"||e===\"[]\"||Y_.test(e)||!q_.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes(\"=>\");return!(n===123&&!o||n===91||K_.test(e)&&!o)},X_=t=>(0,eval)(t),Z_=(t,e)=>{let r=/^(\\s*(?:async\\s+)?function\\s*[\\w$]*\\s*\\([^)]*\\)\\s*)\\{/.exec(t);if(!r)return null;let n=r[0].length,o=[],s=n,i=1,a=null,c=t.length,l=new RegExp(\"^(?:const|let|var)\\\\s+\"+e+\"\\\\b\");for(;s<c&&i>0;){let u=t[s];if(u===\"/\"&&t[s+1]===\"/\"){let p=t.indexOf(`\n`,s);s=p===-1?c:p;continue}if(u===\"/\"&&t[s+1]===\"*\"){let p=t.indexOf(\"*/\",s+2);s=p===-1?c:p+2;continue}if(u==='\"'||u===\"'\"||u===\"`\"){let p=u;for(s++;s<c;){if(t[s]===\"\\\\\"){s+=2;continue}if(t[s]===p){s++;break}if(p===\"`\"&&t[s]===\"$\"&&t[s+1]===\"{\"){s+=2;let d=1;for(;s<c&&d>0;)t[s]===\"{\"?d++:t[s]===\"}\"&&d--,s++;continue}s++}continue}if(u===\"{\"){i++,s++;continue}if(u===\"}\"){i--,s++;continue}if(i===1&&l.test(t.slice(s))){let p=s,d=0,h=s;for(;h<c;){let g=t[h];if(g==='\"'||g===\"'\"||g===\"`\"){let m=g;for(h++;h<c;){if(t[h]===\"\\\\\"){h+=2;continue}if(t[h]===m){h++;break}h++}continue}if(g===\"(\"||g===\"[\"||g===\"{\"){d++,h++;continue}if(g===\")\"||g===\"]\"||g===\"}\"){if(d===0)break;d--,h++;continue}if(d===0&&(g===\";\"||g===`\n`)){h++;break}h++}o.push([p,h]),s=h;continue}s++}if(!o.length)return null;let f=t;for(let u=o.length-1;u>=0;u--)f=f.slice(0,o[u][0])+f.slice(o[u][1]);return f},Ih=(t,e,r)=>{let n=String(t).trimStart();if(/^(export|import)\\s/.test(n))return t;try{return r.window.eval(`(${t})`)}catch(o){let s=o&&o.message?o.message:String(o),i=/await is only valid in async/.test(s),a=/Identifier '([^']+)' has already been declared/.exec(s),c=null;if(i){let l=String(t).trim();if(/^function[\\s(]/.test(l))try{c=r.window.eval(\"(async \"+l+\")\")}catch{}}else if(a){let l=String(t),f=a[1];for(let u=0;u<5;u++){let p=Z_(l,f);if(!p||p===l)break;l=p;try{c=r.window.eval(\"(\"+l+\")\");break}catch(d){let h=/Identifier '([^']+)' has already been declared/.exec(d&&d.message||String(d));if(!h||h[1]!==f)break}}}return c||(typeof console<\"u\"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \\u2014 value will be left as a string. Reason: `+s+`.\nFirst 200 chars of source: `+String(t).slice(0,200)),t)}},oe=(t,e={},r={window:{eval:X_}})=>{if(!t||typeof t!=\"object\")return e;let n=[[t,e]];for(;n.length;){let[o,s]=n.pop();for(let i in o){if(!Object.prototype.hasOwnProperty.call(o,i))continue;let a=o[i];if(S(a))Fr(a)?s[i]=Ih(a,`\"${i}\"`,r):s[i]=a;else if(T(a)){let c=s[i]=[];for(let l=0;l<a.length;l++){let f=a[l];if(S(f))c.push(Fr(f)?Ih(f,`array index ${l} (prop \"${i}\")`,r):f);else if(w(f)){let u={};c.push(u),n.push([f,u])}else c.push(f)}}else if(w(a)){let c=s[i]&&typeof s[i]==\"object\"&&!T(s[i])?s[i]:s[i]={};n.push([a,c])}else s[i]=a}}return e},J_=\"Set\",Q_=\"Map\",tS=t=>!t||typeof t!=\"object\"?t:t.__type===J_&&Array.isArray(t.values)?new Set(t.values):t.__type===Q_&&Array.isArray(t.entries)?new Map(t.entries):t,Kn=t=>{if(!t||typeof t!=\"object\")return t;let e={},r=[];for(let i of Object.keys(t)){let a=t[i];S(a)&&Fr(a)?r.push([i,a]):e[i]=tS(a)}if(r.length===0)return e;let n=i=>/^[A-Za-z_$][\\w$]*$/.test(i),o=r.filter(([i])=>n(i)),s=Object.keys(e).filter(n).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`\n`);try{let i=o.map(([l,f])=>`var ${l} = (${f});`).join(`\n`),a=\"{ \"+o.map(([l])=>`${JSON.stringify(l)}: ${l}`).join(\", \")+\" }\",c=k.eval(`(function(__gs__) { ${s}\n${i}\n return ${a}; })`)(e);Object.assign(e,c)}catch{for(let[a,c]of o)try{let l=Object.keys(e).filter(n).map(f=>`var ${f} = __gs__[${JSON.stringify(f)}];`).join(`\n`);e[a]=k.eval(`(function(__gs__) { ${l}\n return (${c}); })`)(e)}catch{try{e[a]=k.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of r)if(!n(i))try{e[i]=k.eval(`(${a})`)}catch{e[i]=a}return e},wl=(t,e={verbose:!0})=>{try{return t?k.eval(\"(\"+t+\")\"):{}}catch(r){e.verbose&&console.warn(r)}},kl=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),yi=t=>{for(let e in t)return!1;return!0},vl=t=>w(t)&&yi(t),Cl=()=>Object.create(null),Yn=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&pr(s)||s===\"constructor\"||s===\"prototype\"||e[s]!==void 0&&(t[s]=e[s]);return t},dr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)pr(o)||o===\"constructor\"||o===\"prototype\"||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},At=(t,e,r={},n=new WeakMap)=>{if(!B(t)||!B(e)||kt(t)||kt(e))return e;if(n.has(t))return n.get(t);n.set(t,t);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&pr(a)||a===\"constructor\"||a===\"prototype\")continue;let c=t[a],l=e[a];kt(l)?t[a]=l:B(c)&&B(l)?t[a]=At(c,l,r,n):l!==void 0&&(t[a]=l)}return t},bi=(t,e,r=new Set)=>{if(typeof t!=\"object\"||typeof e!=\"object\"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!bi(t[i],e[i],r))return!1}return!0},eS=new Set([\"node\",\"__ref\"]),Al=(t,e,r=eS)=>{if(t===e)return!0;if(!B(t)||!B(e)||kt(t)||kt(e))return t===e;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(kt(l)||kt(f)){if(l!==f)return!1}else if(B(l)&&B(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},El=(t,e)=>{if(e==null)return t;if(Ct(e)(\"string\",\"number\"))delete t[e];else if(T(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error(\"Invalid input: props must be a string or an array of strings\");return t},xi=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]=xi(t[r]));return e},Tl=(t,e)=>{if(t.length===0)return e;let r={},n=r;for(let o=0;o<t.length;o++)o===t.length-1&&e?n[t[o]]=e:(n[t[o]]={},n=n[t[o]]);return r},Ol=(t,e)=>{if(!Array.isArray(e))throw new Error(\"Path must be an array.\");let r=t;for(let o=0;o<e.length-1;o++){if(r[e[o]]===void 0)return;r=r[e[o]]}let n=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},Rl=(t,e,r)=>{if(!Array.isArray(e))throw new Error(\"Path must be an array.\");let n=t;for(let o=0;o<e.length-1;o++)(!n[e[o]]||typeof n[e[o]]!=\"object\")&&(n[e[o]]={}),n=n[e[o]];return n[e[e.length-1]]=r,t},Pl=(t,e)=>{if(!Array.isArray(e))throw new Error(\"Path must be an array.\");let r=t;for(let n=0;n<e.length;n++){if(r==null)return;r=r[e[n]]}return r},Il=t=>{let r=[],n=0;for(let o=0;o<t.length;o++)if(r.length<2)r.push(t[o]);else if(t[o]===r[o%2]?n++:(r=[t[o-1],t[o]],n=1),n>=20)return(Ph===\"test\"||Ph===\"development\")&&console.warn(\"Warning: Potential infinite loop detected due to repeated sequence:\",r),!0},$l=t=>{let e=new WeakSet;function r(n){if(n&&typeof n==\"object\"){if(e.has(n))return!0;e.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,\"cycle at \"+o),!0}return!1}return r(t)},Fl=(t,e)=>{let r=e instanceof Set?e:new Set(e),n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!r.has(o)&&(n[o]=t[o]);return n}});var Xn,Zn,Jn,_i=D(()=>{\"use strict\";xe();Xn=(function(){let t=0;function e(){return t++,t}return e})(),Zn=Xn,Jn=(t,e,r)=>(K(r,t)||r||t.key||Xn()).toString()});var Yt,Dl,Pe,Si,Ll,Ml,Nl,Ie,jl,hr,Bl=D(()=>{\"use strict\";Yt=\"production\",Dl=Yt,Pe=(t=Yt)=>t===\"production\",Si=(t=Yt)=>t===\"testing\"||t===\"test\",Ll=Si,Ml=(t=Yt)=>t===\"staging\",Nl=(t=Yt)=>t===\"local\",Ie=(t=Yt)=>t===\"development\"||t===\"dev\"||t===\"local\",jl=(t,e=Yt)=>e[t],hr=(t=Yt)=>!Pe(t)});function Qn(t,e,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||t.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,e),a&&t.apply(o,s)}}function Wl(t,e=window){let r=function(){return t.apply(e,arguments)};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var Vl,Ul,rS,zl,Dr,Lr,Nt,Mr=D(()=>{\"use strict\";Vl=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},Ul=t=>{let e={};return(...r)=>{let n=r[0];if(n in e)return e[n];{let o=t(n);return e[n]=o,o}}},rS=/^((function\\s*\\([^)]*\\)\\s*\\{[^}]*\\})|(\\([^)]*\\)\\s*=>))/,zl=t=>rS.test(t),Dr=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Lr=(t,e)=>{if(typeof t==\"function\")return t;let r=e?.context?.plugins;if(!r)return t;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(t,e);if(typeof o==\"function\")return o}return t},Nt=(t,e,...r)=>{let n=e?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[t]==\"function\"&&(s[t](e,...r),o=!0);return o}});var Hl,Fh=D(()=>{\"use strict\";gt();xe();Hl=(t,e)=>{let{__ref:r}=t,n=t.if;if(v(n)){let o;try{o=n(t,t.state,t.context)}catch(s){typeof console<\"u\"&&console.warn(\"[DOMQL] if condition error:\",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n==\"object\"?K(n,t)?r.__if=!0:delete r.__if:r.__if=!0}});var Gl,ql,Dh=D(()=>{\"use strict\";Gl=(t,...e)=>{t&&e.map(r=>console.log(r))},ql=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function Jl(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 Ql(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 Kl,Yl,Xl,Zl,Lh=D(()=>{\"use strict\";gt();Fn();Kl=typeof navigator>\"u\"?!1:/Mobi/.test(navigator.userAgent),Yl=(t,e,r=365)=>{if(ht(q)||ht(q.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;q.cookie=`${t}=${e};${o};path=/`},Xl=t=>{if(ht(q)||ht(q.cookie))return;let e=`${t}=`,n=decodeURIComponent(q.cookie).split(\";\");for(let o=0;o<n.length;o++){let s=n[o];for(;s.charAt(0)===\" \";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return\"\"},Zl=t=>{ht(q)||ht(q.cookie)||(q.cookie=t+\"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;\")}});var Nr,Mh,tf,ef=D(()=>{\"use strict\";Nr={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\"])},Mh=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\"]),tf=t=>Nr.body.has(t)});var rf,Nh,jr,ro,Et,nf,wi,no,of,oo,ki,vi,so,Ci,Br,nS,se,jh,to,io,sf,eo,af,cf,Ai,Ei,Ti,Oi,Ri,Pi,Bh,Ii=D(()=>{\"use strict\";Pr();lf();xe();gt();rf=\"production\",Nh=t=>t.sourcemap!==!1&&rf!==\"production\",jr=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]},ro=(t,e,r)=>{let n=[],o=jr(r);o&&(n=[...o]);let s=t.extends;return s&&(n=T(s)?[...n,...s]:[...n,s]),n},Et=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t==\"string\"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return n.includes(t)||(n=Array.isArray(t)?[...n,...t]:[...n,t],r.__extends=n),n},nf=(t,e)=>{if(!t)return e;let{extends:r}=e,n=T(r)?r:[r],o=T(t)?t:[t];return{...e,extends:Or(o,n)}},wi=()=>Math.random().toString(36).substring(2),no={},of={},oo=t=>no[t.__hash],ki=(t,e)=>{let r=wi();return S(t)||(t.__hash=r),r!==\"__proto__\"&&r!==\"constructor\"&&r!==\"prototype\"&&(no[r]=e),e},vi=(t,e)=>t.__hash?e.concat(oo(t)):ki(t,e),so=(t,e,r,n=new Set,o,s)=>{for(let i of t)T(i)?so(i,e,r,n,o,s):Br(i,e,r,n,o,void 0,s);return e},Ci=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends,c={...t};delete c.extends;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),o&&o.push(s)),a&&Br(a,e,r,n,o,s,i),e},Br=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(T(t))return so(t,e,r,n,o,i);let a=s;return S(t)?(a=t,t=io(t,r)):i&&w(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends?Ci(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},nS=new Set([\"parent\",\"node\",\"__ref\",\"__proto__\",\"extends\",\"childExtends\",\"childExtendsRecursive\"]),se=(t,e,r,n,o)=>{e=Q(e);for(let s in e){if(nS.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!==\"__proto__\"&&s!==\"constructor\"&&s!==\"prototype\"){if(i===void 0)t[s]=a,r&&n?w(a)&&!T(a)?(r[s]=r[s]||{},jh(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(w(i)&&w(a)){let c=r?r[s]=r[s]||{}:void 0,l=o?.[s];ie(s)?t[s]=se(i,a,c,n,l):se(i,a,c,n,l)}if(s===\"extends\"||s===\"childExtends\"||s===\"childExtendsRecursive\"){if(T(i)&&T(a))t[s]=i.concat(a);else if(T(i)&&w(a)){let c=se({},i);t[s]=se(c,a)}}}}return t},jh=(t,e,r,n)=>{if(n||(n=new WeakSet),!n.has(e)){n.add(e);for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o===\"__proto__\"||o===\"constructor\"||o===\"prototype\")continue;let s=e[o];w(s)&&!T(s)?(t[o]=t[o]||{},jh(t[o],s,r,n)):t[o]=r}}},to=(t,e,r)=>t.reduce((n,o,s)=>{let i=Q(o),a=r?r[s]:void 0;return se(n,i,e,a)},{}),io=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(S(t)){let i=o&&(o[t+\".\"+n]||o[t]||o[\"smbls.\"+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(rf===\"test\"||rf===\"development\")&&console.warn(\"Extend is string but component was not found:\",t);return}return t},sf=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),eo=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return oo(t)||[];let s=Br(t,[],e,new Set,r,void 0,n);return r?s:vi(t,s)},af=(t,e)=>{if(!t)return e;let r=T(t)?t:[t];return Or(r,e)},cf=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(ie(o)&&e.push(o),o===\"extends\"&&(typeof n[o]==\"string\"?e.push(n[o]):Array.isArray(n[o])&&(e=e.concat(n[o]))),typeof n[o]==\"object\"&&n[o]!==null&&r(n[o]))}return r(t),e},Ai=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant;if(t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i==\"string\"&&s&&o?.components){let c=`${i}.${s}`;o.components[c]?Et([c,...a],t):Et(t.extends,t)}else Et(t.extends,t)}else if(typeof t.extends==\"string\"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Et(i,t):Et(t.extends,t)}else Et(t.extends,t);return Ei(t,e,r),Ti(t,e,r),Oi(t,e,r),t.component&&Et(K(t.component,t),t),o.defaultExtends&&Et(o.defaultExtends,t),Rr(n.__extends)},Ei=(t,e,r={})=>{let{__ref:n}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Et(e.childProps.extends,t),n.__extends},Ti=(t,e,r={})=>{let{__ref:n}=t,o=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Et(s,t),n.__extends},Oi=(t,e,r={})=>{let{__ref:n}=t,o=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key===\"__text\";return o&&!i&&!s&&Et(o,t),n.__extends},Ri=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=Nh(r),a=i?[...n.__extends]:null,c=Rr(n.__extends.map((l,f)=>io(l,o,r,f===0&&s)));if(i){let l=new WeakMap;for(let p=0;p<c.length;p++){let d=c[p],h=a[p];d&&w(d)&&S(h)&&l.set(d,h)}let f=[],u=eo(c,o,f,l);n.__extendsStack=u,n.__extendsNames=f}else{let l=eo(c,o);n.__extendsStack=l}return n.__extendsStack},Pi=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Nh(r)){let s={},i=n.__extendsNames||[],a=to(o,s,i),c={};se(t,a,c,void 0,s),n.__sourcemap=c}else{let s=to(o);se(t,s)}return t},Bh=(t,e,r={})=>(Ai(t,e,r),Ri(t,e,r),Pi(t,e,r),t)});function ff(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function uf(t){return Object.keys(t).filter(e=>/^\\d+$/.test(e))}function pf(t,e,r){let{context:n}=e||{},[o]=jr(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var ie,lf=D(()=>{\"use strict\";Ii();gt();ie=t=>{if(!S(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Vh(t,e){let{props:r,on:n}=e,o=fr(t.split(\"on\")[1]),s=n[o],i=r[t];v(s)?n[o]=(...a)=>{if(s(...a)!==!1&&v(i))return i(...a)}:n[o]=i}var Uh=D(()=>{\"use strict\";zn();gt()});function $i(t,e={}){let r=e.cachedKeys||[];for(let n in t){let o=t[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(v(o)||o!=null&&Dr(this.context))){let h=fr(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n===\"childProps\"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],l=w(a)||v(a),f=w(c)||v(c);if(l||f)continue;let u=n.charAt(0);if(Wh.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=df.test(n)||zh.test(n)||sS(o),d=Oe.has(n);!p&&!d&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function Fi(t=this,e){let r=e.cachedKeys||[];for(let n in t.props){let o=t.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=v(o)||o!=null&&Dr(this.context);if(s&&i){Vh(n,t),delete t.props[n];continue}if(r.includes(n)||n===\"childProps\")continue;let a=n.charAt(0);if(Wh.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=w(c)||v(c),u=w(l)||v(l),p=df.test(n)||zh.test(n),d=Oe.has(n);(p||d||f||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function Di(t=this){let e=[];return $i.call(this,t,{cachedKeys:e}),Fi.call(this,t,{cachedKeys:e}),t}function hf(t={}){return t.on||(t.on={}),t.props||(t.props={}),Di.call(this,t)}function mf(t,e){this.__element.update({props:t},e)}function uo(t){let e={update:mf.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var df,zh,Wh,oS,sS,lo,ao,gf,fo,po,ho,Li,co,yf,bf,xf=D(()=>{\"use strict\";$r();Uh();xe();gt();zn();Mr();df=/^[A-Z]/,zh=/^\\d+$/,Wh=new Set([\":\",\"@\",\"[\",\"*\",\"+\",\"~\",\"&\",\">\",\"$\",\"-\",\".\",\"!\"]),oS=new Set([\"extend\",\"props\",\"text\",\"tag\",\"on\",\"if\",\"childExtend\",\"children\",\"childrenAs\",\"state\",\"html\",\"attr\",\"define\",\"content\"]),sS=t=>{if(!t||typeof t!=\"object\"||Array.isArray(t))return!1;for(let e in t)if(oS.has(e)||df.test(e))return!0;return!1},lo=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return B(n)?{...n}:(o.__propsStack.push(n),{})};ao=t=>Ct(t)(\"string\",\"number\")?{inheritedString:t}:t,gf=(t,e)=>!t||!e.length?!1:e.includes(t),fo=(t,e)=>{let{__ref:r}=t,n=r.__propsStack||[],o=e.props;if(!o)return n;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=ao(i);n.unshift(c)}if(s){let c=ao(s);n.unshift(c)}return n};po=t=>{let e=new Set;return t.filter(r=>!r||Re.has(r)||e.has(r)?!1:(e.add(r),!0))},ho=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(Re.has(o))return n;for(;v(o);)o=K(o,e);return H(n,Q(o,{exclude:Re}))},{}),uo(e),e.props),Li=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...fo(t,e)]),w(r)?o.push(r):r===\"inherit\"&&e?.props?o.push(e.props):r&&o.push(r),T(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=po(o),n.__propsStack},co=(t,e)=>{let{__ref:r}=t,n=Li(t,e);n.length?ho(n,t):(r.__propsStack=[],t.props={})},yf=function(t,e,r){let{__ref:n}=t;if(n.__if)co(t,e);else try{co(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn(\"initProps error at\",n.path?.join(\".\"),o),t.props={},n.__propsStack=[]}return uo(t),t},bf=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=fo(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=po(s),n.__propsStack.length&&ho(n.__propsStack,e),e}});var Hh,Mi,Ni,ji,Bi,_f,Vi,Ui,zi,Sf,Gh=D(()=>{\"use strict\";Ii();_i();Ln();xf();ef();gt();Hh=\"production\",Mi=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=Nr.body.has(r)&&r;return{text:t,tag:n||o||s||\"string\"}},Ni=(t,e,r)=>{if(t===void 0)return(Hh===\"test\"||Hh===\"development\")&&console.warn(r,\"element is undefined in\",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Ct(t)(\"string\",\"number\")?Mi(t,e,r):v(t)?{props:t}:t},ji=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Bi=(t,e,r,n,o)=>{if(!e)return o;if(be(e)){let s={key:\":root\",node:e};return o[`${r}_parent`]=s,s}return e},_f=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===\":root\";r?.root||(r.root=o?t:n?.root)},Vi=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Ui=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),zi=(t,e,r)=>{let n=ji(t,e);return t.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=ro(t,e,r),n.path=Vi(t,e,r),n},Sf=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:Ni(t,e,r);if(!i)return;let a=Bi(i,e,r,n,o),c=Jn(i,a,r);zi(i,a,c);let l=lo(i,a,c),f=Ui(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var wf,Wi,Hi,Gi,qi,kf,Ki,vf,Cf,Af,Ef,qh=D(()=>{\"use strict\";Pr();$r();xe();gt();wf=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Ct(o)(\"string\",\"number\")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},Wi=(t,e)=>{if(!t.includes(\"~/\"))return;if(t.split(\"~/\").length>1)return e.root},Hi=(t,e)=>{if(!t.includes(\"../\"))return;let n=t.split(\"../\").length-1;for(let o=0;o<n;o++){if(!e.parent)return null;e=e.parent}return e},Gi=(t,e,r={})=>{let n=S(t)?t.split(\"/\"):[t],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i===\"__proto__\"||a===\"__proto__\")return;let c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},qi=(t,e,r={})=>{let o=t.__ref.__state;if(!Ki(t))return;let s=Wi(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll(\"~/\",\"\");else{let a=Hi(o,e.state);a&&(i=a,o=o.replaceAll(\"../\",\"\"))}if(i)return Gi(o,i,r)},kf=(t,e)=>{let r=t.__ref,n=qi(t,e);if(n===void 0)return t.state;if(Ct(n)(\"object\",\"array\"))return Q(n);if(Ct(n)(\"string\",\"number\",\"boolean\"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,\"is not present. Replacing with\",{})},Ki=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Ct(r)(\"number\",\"string\",\"boolean\"))},vf=function(t){return B(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},Cf=(t,e)=>{if(!t)return e||{};let r=t.split(\"/\"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?e||{}:{},o=o[r[i]];return n},Af=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=Q(n,ur),s={[t.key]:o},i=w(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Bn(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Ef=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n===\"shallow\";if(n===\"merge\"){H(t,e,ur);return}(o?dr:At)(t,e,ur)}});var iS,Tf,Kh=D(()=>{\"use strict\";iS=(t,e)=>{let r=e;for(;r;){if(r===t)return!0;r=Object.getPrototypeOf(r)}return!1},Tf=(t,e)=>{let{__ref:r}=t,n=t.context||e.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=e.scope||r.root?.scope,s=n?.globalScope;if(!t.scope)o?t.scope=o:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope==\"object\"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=o||s;i&&!iS(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var Yh,Yi,$e,Xi,Of,Rf=D(()=>{\"use strict\";gt();Mr();Yh=(t,e)=>{let r=\"on\"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},Yi=(t,e,r,n,o)=>{if(t=Lr(t,e),!!v(t))try{let s=t.call(e,e,r||e.state,n||e.context,o);return s&&typeof s.then==\"function\"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn(\"[DOMQL] Async event warning:\",i.message):console.error(\"[DOMQL] Async event error:\",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn(\"[DOMQL] Event handler warning:\",s.message):console.error(\"[DOMQL] Event handler error:\",s),e.context?.strictMode)throw s}},$e=(t,e,r)=>{if(!e)throw new Error(\"Element is required\");Nt(t,e,r);let n=Yh(t,e);if(n){let{state:o,context:s}=e;return Yi(n,e,o,s,r)}},Xi=(t,e,r,n,o,s)=>{if(t=Lr(t,r),!!v(t))try{let i=t.call(r,e,r,n||r.state,o||r.context,s);return i&&typeof i.then==\"function\"&&i.catch(a=>{r.error=a,console.error(\"[DOMQL] Async event update error:\",a)}),i}catch(i){if(r.error=i,console.error(\"[DOMQL] Event update error:\",i),r.context?.strictMode)throw i}},Of=(t,e,r,n)=>{Nt(t,r,e,n);let o=Yh(t,r);if(o){let{state:s,context:i}=r;return Xi(o,e,r,s,i,n)}}});var Pf,go,If=D(()=>{\"use strict\";Pf={},go={}});var Jh={};I(Jh,{setup:()=>cS,supabaseAdapter:()=>Zh});var Xh,aS,cS,$f,lS,Zh,Qh=D(()=>{\"use strict\";Xh=new Map,aS=(t,e,r)=>`${t}|${e}|${r?\"off\":\"on\"}`,cS=async({url:t,key:e,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let c=t||r&&`https://${r}.supabase.co`;if(!c||!e)throw new Error(\"@symbo.ls/fetch supabase: url (or projectId) and key are required\");n||(n=(await import(\"@supabase/supabase-js\")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let l=aS(c,e,o===!1),f=Xh.get(l);return f||(f=await n(c,e,a),f?.auth&&Xh.set(l,f)),!f||!f.auth?null:Zh(f)},$f=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n==\"object\")for(let o in n)o===\"gt\"?t=t.gt(r,n[o]):o===\"gte\"?t=t.gte(r,n[o]):o===\"lt\"?t=t.lt(r,n[o]):o===\"lte\"?t=t.lte(r,n[o]):o===\"neq\"?t=t.neq(r,n[o]):o===\"like\"?t=t.like(r,n[o]):o===\"ilike\"?t=t.ilike(r,n[o]):o===\"in\"?t=t.in(r,n[o]):o===\"is\"?t=t.is(r,n[o]):o===\"contains\"?t=t.contains(r,n[o]):o===\"containedBy\"?t=t.containedBy(r,n[o]):o===\"textSearch\"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},lS=(t,{limit:e,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s==\"string\"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n==\"string\"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},Zh=t=>({name:\"supabase\",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,schema:r,select:n,params:o,headers:s,...i})=>{let c=(r?t.schema(r):t).from(e).select(n||\"*\");if(c=$f(c,o),c=lS(c,i),s)try{for(let l in s)c.setHeader?c=c.setHeader(l,s[l]):t.rest&&(t.rest.headers[l]=s[l])}catch(l){console.warn(\"[supabase] setHeader failed:\",l.message)}return c},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).insert(n).select(o||\"*\"),update:({from:e,schema:r,data:n,params:o,select:s})=>{let a=(r?t.schema(r):t).from(e).update(n);return a=$f(a,o),a.select(s||\"*\")},upsert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).upsert(n).select(o||\"*\"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=$f(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||\"*\",i=t.channel(`db-${e}-${Date.now()}`).on(\"postgres_changes\",{event:s,schema:\"public\",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var eg={};I(eg,{restAdapter:()=>tg,setup:()=>uS});var fS,Fe,uS,tg,rg=D(()=>{\"use strict\";fS=(t,e,r)=>{let n=e&&!e.startsWith(\"/\")?\"/\":\"\",o=new URL(`${t}${n}${e}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i==\"object\"?JSON.stringify(i):i)}return o.toString()},Fe=async(t,e)=>{let r=await globalThis.fetch(t,e),n=r.headers.get(\"content-type\"),o=n&&n.includes(\"json\")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},uS=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error(\"@symbo.ls/fetch rest: url is required\");return tg(t,e,r,n)},tg=(t,e={},r,n={})=>{let o=r?.token||null,s=f=>{let u={...e,...f};return o&&(u.Authorization=`Bearer ${o}`),u},i=f=>({...s(f),\"Content-Type\":\"application/json\"}),a=f=>({...n,...f}),c=(f,u)=>{let p=u||t;if(f&&(f.startsWith(\"http://\")||f.startsWith(\"https://\")))return f;let d=f&&!f.startsWith(\"/\")?\"/\":\"\";return`${p}${d}${f||\"\"}`};return{name:\"rest\",setToken:f=>{o=f},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let f=await Fe(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 Fe(c(r.signInUrl,r.baseUrl),a({method:\"POST\",headers:i(),body:JSON.stringify(f)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await Fe(c(r.signOutUrl,r.baseUrl),a({method:\"POST\",headers:s()})),o=null,{error:null}),select:({from:f,params:u,select:p,limit:d,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let 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\"}`)),Fe(fS(b||t,f||\"\",x),a({headers:s(y)}))},rpc:({from:f,params:u,headers:p,baseUrl:d})=>Fe(c(`rpc/${f}`,d),a({method:\"POST\",headers:i(p),body:JSON.stringify(u)})),insert:({from:f,data:u,headers:p,baseUrl:d})=>Fe(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 Fe(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 Fe(c(g,d),a({method:\"DELETE\",headers:s(p)}))}}}});var og={};I(og,{localAdapter:()=>ng,setup:()=>dS});var Ff,pS,dS,ng,sg=D(()=>{\"use strict\";Ff=(t,e)=>{if(!e)return!0;for(let r in e){let n=e[r];if(n===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(t[r]))return!1}else if(typeof n==\"object\"){for(let o in n)if(o===\"gt\"&&!(t[r]>n[o])||o===\"gte\"&&!(t[r]>=n[o])||o===\"lt\"&&!(t[r]<n[o])||o===\"lte\"&&!(t[r]<=n[o])||o===\"neq\"&&t[r]===n[o]||o===\"like\"&&!String(t[r]).includes(n[o]))return!1}else if(t[r]!==n)return!1}return!0},pS=(t,{order:e,limit:r,offset:n,single:o})=>{let s=[...t];if(e){let i=typeof e==\"string\"?e:e.by,a=e.asc!==!1;s.sort((c,l)=>c[i]<l[i]?a?-1:1:c[i]>l[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},dS=async({data:t,...e})=>ng(t,e),ng=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<\"u\",s=e.prefix||\"smbls_db_\",i=f=>{if(!r[f])if(o)try{let u=localStorage.getItem(s+f);r[f]=u?JSON.parse(u):t[f]||[]}catch{r[f]=t[f]||[]}else r[f]=t[f]||[];return r[f]},a=f=>{if(o)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},c=(f,u,p,d)=>{let h=n[f];if(h)for(let g of h)g(p,d,{event:u,table:f})},l=Date.now();return{name:\"local\",store:r,select:async({from:f,params:u,...p})=>{let h=i(f).filter(g=>Ff(g,u));return pS(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(Ff(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--)Ff(p[h],u)&&(d.push(p[h]),p.splice(h,1),c(f,\"DELETE\",null,d[d.length-1]));return a(f),{data:d,error:null}},subscribe:({from:f,on:u},p)=>{n[f]||(n[f]=[]);let d=(h,g,m)=>{u&&u!==\"*\"&&u!==m.event||p(h,g,m)};return n[f].push(d),()=>{let h=n[f].indexOf(d);h>-1&&n[f].splice(h,1)}}}}});var Co={};I(Co,{createAdapter:()=>xS,default:()=>OS,executeFetch:()=>vo,fetchPlugin:()=>jf,initAdapterAuth:()=>ea,parseDuration:()=>xo,queryClient:()=>TS,registerAdapter:()=>bS,resolveDb:()=>lg});var hS,gS,Zi,yo,Ji,bo,mS,yS,bS,xS,lg,xo,xt,fg,mo,_S,ko,_o,So,Qi,Mf,ta,SS,ig,Df,ug,pg,Vr,ag,wS,cg,kS,ra,dg,ea,Nf,jt,Xt,wo,gr,ae,De,vS,CS,AS,Lf,ES,vo,TS,jf,OS,mr=D(()=>{\"use strict\";R();hS=[\"select\",\"rpc\",\"insert\",\"update\",\"delete\",\"subscribe\"],gS={supabase:()=>Promise.resolve().then(()=>(Qh(),Jh)),rest:()=>Promise.resolve().then(()=>(rg(),eg)),local:()=>Promise.resolve().then(()=>(sg(),og))},Zi=Symbol.for(\"@symbo.ls/fetch:CUSTOM_ADAPTERS\"),yo=(()=>{if(typeof globalThis<\"u\"&&globalThis[Zi])return globalThis[Zi];let t={};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Zi,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Zi]}catch{}return t})(),Ji=Symbol.for(\"@symbo.ls/fetch:PENDING_ADAPTERS\"),bo=(()=>{if(typeof globalThis<\"u\"&&globalThis[Ji])return globalThis[Ji];let t={};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Ji,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ji]}catch{}return t})(),mS=5e3,yS=t=>new Promise(e=>{if(yo[t])return e(yo[t]);let r=bo[t]||(bo[t]=[]),n=!1,o=()=>{n||(n=!0,e(yo[t]||null))};r.push(o),setTimeout(o,mS)}),bS=(t,e)=>{yo[t]=e;let r=bo[t];if(r&&r.length){bo[t]=[];for(let n of r)n()}},xS=t=>{let e={};for(let r of hS)t[r]&&(e[r]=t[r]);return e.name=t.name||\"custom\",e},lg=async t=>{if(!t)return null;if(typeof t.select==\"function\")return t;let{adapter:e,...r}=t,n=typeof e==\"string\"?e:typeof t==\"string\"?t:null;if(!n)return null;let o=yo[n]||gS[n];if(!o&&(o=await yS(n),!o))throw new Error(`Unknown db adapter: \"${n}\". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!=\"function\")throw new Error(`Adapter \"${n}\" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(\", \")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},xo=t=>{if(!t)return 0;if(typeof t==\"number\")return t;let e=t.match(/^(\\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),n=e[2];return n===\"ms\"?r:n===\"s\"?r*1e3:n===\"m\"?r*6e4:n===\"h\"?r*36e5:0},xt=new Map,fg=new Map,mo=new Map,_S=(t,e)=>{if(t.cache?.key)return t.cache.key;let r=kS(t.params),n=`${t.from}:${t.method}:${JSON.stringify(r||\"\")}`;return e?`${n}:${e}`:n},ko=t=>xt.get(t)||null,_o=(t,e,r)=>{let n=xt.get(t),o={data:e,error:r,time:Date.now(),stale:!1};xt.set(t,o);let s=fg.get(t);if(s)for(let i of s)v(i)&&i(o);return o},So=t=>{if(t){let e=xt.get(t);e&&(e.stale=!0);return}for(let[,e]of xt)e.stale=!0},Qi=t=>{if(t){xt.delete(t);return}xt.clear()},Mf=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t==\"number\"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:S(t)?{staleTime:xo(t),gcTime:3e5}:{staleTime:xo(t.stale||t.staleTime)||6e4,gcTime:xo(t.gc||t.gcTime||t.expire)||3e5,key:t.key},ta=null,SS=()=>{ta||(ta=setInterval(()=>{let t=Date.now();for(let[e,r]of xt){let n=fg.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&xt.delete(e)}},3e4),ta.unref&&ta.unref())};SS();ig=3,Df=t=>Math.min(1e3*2**t,3e4),ug=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:ig,delay:Df}:typeof e==\"number\"?{count:e,delay:Df}:{count:e.count??ig,delay:v(e.delay)?e.delay:typeof e.delay==\"number\"?()=>e.delay:Df}},pg=async(t,e)=>{let{count:r,delay:n}=e,o;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(o=i.error,s<r){let a=v(n)?n(s,o):n;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=v(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},Vr={focus:new Set,online:new Set},ag=!1,wS=()=>{if(ag||typeof window>\"u\")return;ag=!0;let t=()=>{for(let r of Vr.focus)r()},e=()=>{for(let r of Vr.online)r()};window.addEventListener(\"visibilitychange\",()=>{document.visibilityState===\"visible\"&&t()}),window.addEventListener(\"focus\",t),window.addEventListener(\"online\",e)},cg=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:\"select\",query:!0,on:\"create\"};if(S(t))return{from:t,method:\"select\",query:!0,on:\"create\"};if(w(t)){let n={...t};return n.from=n.from||r.__state||e.key,n.method=n.method||\"select\",n.on=n.on||\"create\",n.query===void 0&&(n.query=!0),n}return null},kS=t=>(!t||v(t),t),ra=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},dg=(t,e,r)=>{let n;if(!t)n=void 0;else if(v(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=v(s)?s(e,e.state):s}}return n},ea=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(n,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await t.getSession();r(n?.user||null,n)}catch(n){console.warn(\"[fetch] Failed to restore auth session:\",n.message)}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Nf=async(t,e)=>{if(v(t.select))return t.auth!==!1&&await ea(t,e),t;if(t.__resolved)return t.auth!==!1&&await ea(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=lg(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 ea(r,e),r):null},jt=(t,e,...r)=>{let n=v(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},Xt=(t,e,r,...n)=>{let o=t&&v(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},wo=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName===\"FORM\"){let o=new FormData(r);for(let[s,i]of o.entries())e[s]=i;return e}let n=r.querySelectorAll(\"input, textarea, select\");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute(\"name\");i&&(s.type===\"checkbox\"?e[i]=s.checked:s.type===\"file\"?e[i]=s.files:e[i]=s.value)}return e},gr=(t,e,r,n={})=>{let o=r&&r.startsWith(\"~/\"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=r.slice(2);e&&typeof e==\"object\"&&!Array.isArray(e)&&i in e?s.update(e,{preventFetch:!0,...n}):s.update({[i]:e},{preventFetch:!0,...n})}else{let i=r?{[r]:e}:e;s.update(i,{preventFetch:!0,...n})}},ae=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},De=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||!e||!e.__ref||t.enabled===!1||v(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||v(t.skip)&&t.skip(e,e.state))return;let s=await Nf(o,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:u,transform:p,single:d,auth:h,fields:g,as:m,limit:y,offset:b,order:x,headers:_,baseUrl:E,page:C,cursor:P,getNextPageParam:L,getPreviousPageParam:O,infinite:$,placeholderData:lt,initialData:W,select:G,keepPreviousData:F}=t,N=S(G)?G:void 0;if(l&&v(e.getQuery)){let X=e.getQuery(s.name||\"paths\");X&&(N=X.select||X.length&&X.join(\",\")||N)}let Y=dg(f,e,r),dt=Mf(u),In=ug(t),Dc=ra(e,r),P_=Dc?`:${Dc}`:\"\",ft=dt?u?.key||`${a}:${c}:${JSON.stringify(Y||\"\")}${$?\":infinite\":\"\"}${C?\":p\"+JSON.stringify(C):\"\"}${P_}`:null;if(!i.__fetchInitialized&&ft&&(i.__fetchInitialized=!0,W!==void 0)){let X=v(W)?W():W;_o(ft,X,null)}if((c===\"select\"||c===\"rpc\")&&ft&&dt){let X=ko(ft);if(X&&!X.error){let U=Date.now()-X.time,at=X.stale||U>(dt.staleTime||0),V=X.data;if(v(G)&&(V=G(V,e,e.state)),p&&(V=p(V,e,e.state)),gr(e,V,m),!at){ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"});return}}else if(lt!==void 0){let U=v(lt)?lt(e,e.state):lt;U!==void 0&&gr(e,U,m)}}if(ft&&mo.has(ft)&&!n.force){let X=mo.get(ft);try{let U=await Promise.race([X,new Promise((at,V)=>setTimeout(()=>V(\"DEDUP_TIMEOUT\"),15e3))]);if(U?.data!==void 0){let at=U.data;v(G)&&(at=G(at,e,e.state)),p&&(at=p(at,e,e.state)),gr(e,at,m),jt(e,\"onFetchComplete\",at),Xt(t,e,\"onFetchComplete\",at)}}catch{}return}let I_=!ko(ft)?.data;ae(e,{isFetching:!0,isLoading:I_,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),jt(e,\"onFetchStart\"),Xt(t,e,\"onFetchStart\");let me=r?.analyze?.emitNetwork,Lc=me?typeof performance<\"u\"?performance.now():Date.now():0;me&&me({phase:\"start\",mode:\"query\",from:a,method:c,cacheKey:ft,lang:Dc});let Th=pg(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let V=await s.getSession();if(h===!0&&!V){let bt={message:\"Not authenticated\"};return ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:bt,status:\"error\",fetchStatus:\"idle\"}),jt(e,\"onFetchError\",bt),Xt(t,e,\"onFetchError\",bt),{data:null,error:bt}}}let X=s[c];if(!v(X))return{data:null,error:{message:`Method \"${c}\" not found on adapter`}};let U={from:a,select:N,params:Y,single:d,limit:y,offset:b,order:x,headers:_,baseUrl:E},at=ra(e,r);if(at&&(U.headers={...U.headers,\"Accept-Language\":at}),C!==void 0){if(w(C))C.offset!==void 0&&(U.offset=C.offset),C.limit!==void 0&&(U.limit=C.limit),C.cursor!==void 0&&(U.params={...U.params,cursor:C.cursor});else if(typeof C==\"number\"){let V=t.pageSize||y||20;U.offset=(C-1)*V,U.limit=V}}if(P!==void 0&&(U.params={...U.params,cursor:P}),c===\"insert\"||c===\"update\"||c===\"upsert\"){let V;if(g===!0||t.on===\"submit\")V=wo(e);else if(T(g)){let bt=wo(e);V={};for(let Mc of g)V[Mc]=bt[Mc]}else e.state?.parse?V=e.state.parse():w(e.state)&&(V={...e.state});p&&(V=p(V,e,e.state)),U.data=V}if(c===\"rpc\"){let V=Y;if(t.on===\"submit\"){let bt=wo(e);V=t.transformParams?t.transformParams(bt,e,e.state):bt}U.params=V}if(c===\"subscribe\"){let V=s.subscribe({from:a,params:Y,on:t.subscribeOn},(bt,Mc,nC)=>{gr(e,bt,m),jt(e,\"onFetchComplete\",bt),Xt(t,e,\"onFetchComplete\",bt)});return i.__unsubscribe=V,{data:null,error:null,subscribed:!0}}return X(U)},In);ft&&mo.set(ft,Th);try{let X=await Th;if(X?.subscribed)return;let{data:U,error:at}=X||{};if(at){ft&&_o(ft,null,at),ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:at,status:\"error\",fetchStatus:\"idle\"}),jt(e,\"onFetchError\",at),Xt(t,e,\"onFetchError\",at),me&&me({phase:\"error\",mode:\"query\",from:a,method:c,cacheKey:ft,error:at.message||at,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Lc});return}if(U!==void 0){if((c===\"select\"||c===\"rpc\")&&ft){let bt=_o(ft,U,null);bt.gcTime=dt?.gcTime||3e5}let V=U;$&&T(U)&&(i.__pages||(i.__pages=[]),n.direction===\"previous\"?i.__pages.unshift(U):i.__pages.push(U),V=i.__pages.flat(),L&&(i.__nextPageParam=L(U,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),O&&(i.__prevPageParam=O(U,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),v(G)&&(V=G(V,e,e.state)),p&&(V=p(V,e,e.state)),(!F||V!==void 0)&&gr(e,V,m),ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),jt(e,\"onFetchComplete\",V),Xt(t,e,\"onFetchComplete\",V),me&&me({phase:\"success\",mode:\"query\",ok:!0,from:a,method:c,cacheKey:ft,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Lc})}}catch(X){ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:X,status:\"error\",fetchStatus:\"idle\"}),jt(e,\"onFetchError\",X),Xt(t,e,\"onFetchError\",X),me&&me({phase:\"error\",mode:\"query\",from:a,method:c,cacheKey:ft,error:X.message||String(X),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Lc})}finally{ft&&mo.delete(ft)}},vS=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||De;if(n===\"submit\"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener(\"submit\",i),o.__fetchListeners.push(()=>a.removeEventListener(\"submit\",i)))}else if(n===\"click\"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener(\"click\",i),o.__fetchListeners.push(()=>a.removeEventListener(\"click\",i)))}else n===\"stateChange\"&&(o.__fetchOnStateChange=()=>s(t,e,r))},CS=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),wS();let o=t.refetchInterval;if(o){let s=typeof o==\"number\"?o:xo(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>\"u\"||document.visibilityState===\"visible\")&&De(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=ra(e,r),a=_S(t,i),c=ko(a),l=Mf(t.cache);(!c||c.stale||Date.now()-c.time>(l?.staleTime||0))&&De(t,e,r,{force:!0})};Vr.focus.add(s),n.__fetchCleanups.push(()=>Vr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>De(t,e,r,{force:!0});Vr.online.add(s),n.__fetchCleanups.push(()=>Vr.online.delete(s))}},AS=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():w(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=v(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&gr(t,i,o),s},Lf=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(gr(t,n,e.as),delete r.__optimisticSnapshot)},ES=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await Nf(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:p,headers:d,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:_}=t,E;if(c===!0||u===\"submit\")E=wo(e);else if(T(c)){let O=wo(e);E={};for(let $ of c)E[$]=O[$]}else e.state?.parse?E=e.state.parse():w(e.state)&&(E={...e.state});l&&(E=l(E,e,e.state)),v(y)&&y(E,e,e.state);let C=m?AS(e,t,E):null;s.__fetching=!0,ae(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),jt(e,\"onFetchStart\"),Xt(t,e,\"onFetchStart\");let P=r?.analyze?.emitNetwork,L=P?typeof performance<\"u\"?performance.now():Date.now():0;P&&P({phase:\"start\",mode:\"mutation\",from:a,method:i});try{if(p!==!1&&o.auth!==!1&&o.getSession){let Y=await o.getSession();if(p===!0&&!Y){C!==void 0&&Lf(e,t);let dt={message:\"Not authenticated\"};jt(e,\"onFetchError\",dt),Xt(t,e,\"onFetchError\",dt);return}}let O=o[i];if(!v(O))return;let $={from:a,data:E,headers:d,baseUrl:h};t.params&&($.params=dg(t.params,e,r));let lt=ra(e,r);lt&&($.headers={...$.headers,\"Accept-Language\":lt});let W=ug(t),G=await pg(()=>O($),W),{data:F,error:N}=G||{};if(N){C!==void 0&&Lf(e,t),ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:N,status:\"error\",fetchStatus:\"idle\"}),jt(e,\"onFetchError\",N),v(x)&&x(N,E,e),v(_)&&_(null,N,E,e),P&&P({phase:\"error\",mode:\"mutation\",from:a,method:i,error:N.message||String(N),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-L});return}if(delete s.__optimisticSnapshot,F!==void 0){let Y=f?{[f]:F}:F;e.state?.update&&e.state.update(Y,{preventFetch:!0})}if(ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),jt(e,\"onFetchComplete\",F),Xt(t,e,\"onFetchComplete\",F),v(b)&&b(F,E,e),v(_)&&_(F,null,E,e),P&&P({phase:\"success\",mode:\"mutation\",ok:!0,from:a,method:i,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-L}),g){let Y=T(g)?g:[g];for(let dt of Y)if(dt===!0||dt===\"*\")for(let[In]of xt)In.startsWith(a+\":\")&&So(In);else So(dt)}}catch(O){C!==void 0&&Lf(e,t),ae(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:O,status:\"error\",fetchStatus:\"idle\"}),jt(e,\"onFetchError\",O),Xt(t,e,\"onFetchError\",O),v(x)&&x(O,E,e),v(_)&&_(null,O,E,e),P&&P({phase:\"error\",mode:\"mutation\",from:a,method:i,error:O.message||String(O),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-L})}finally{s.__fetching=!1}},vo=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=K(t,e);if(!s)return;let i=T(s)?s.map(c=>cg(K(c,e),e)).filter(Boolean):[cg(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?ES:De;c.on===\"create\"?f(c,e,n):Promise.resolve().then(()=>{vS({...c,__runner:f},e,n)}),!l&&c.on===\"create\"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&CS(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let l of i)De(l,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__nextPageParam;if(l==null)return;let f={...c,cursor:l};De(f,e,n,{direction:\"next\",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__prevPageParam;if(l==null)return;let f={...c,cursor:l};De(f,e,n,{direction:\"previous\",force:!0})}},TS={invalidateQueries:t=>{if(!t){So();return}if(S(t))for(let[e]of xt)(e.startsWith(t)||e.includes(t))&&So(e);else if(T(t)){let e=t.join(\":\");for(let[r]of xt)r.includes(e)&&So(r)}},removeQueries:t=>{if(!t){Qi();return}if(S(t))for(let[e]of xt)(e.startsWith(t)||e.includes(t))&&Qi(e)},getQueryData:t=>ko(t)?.data??void 0,setQueryData:(t,e)=>{let r=ko(t),n=v(e)?e(r?.data):e;_o(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await Nf(r,e);if(!n)return;let o=t.cache?.key||`${t.from}:${t.method||\"select\"}:${JSON.stringify(t.params||\"\")}`,s=n[t.method||\"select\"];if(!v(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=_o(o,i.data,null);a.gcTime=Mf(t.cache)?.gcTime||3e5}return i},getCache:()=>xt,clear:()=>Qi(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of xt)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||Qi(r))}},jf={name:\"fetch\",create(t){let e=t.fetch;e&&(t.parent||mo.clear(),vo(e,t,t.state,t.context))}},OS=vo});function Eo(t){let e=this,{__ref:r}=e,n=[].concat(t),o=r.root[n[0]];if(!n||!n.length)return console.log(n,\"on\",e.key,\"is undefined\");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function Vf(t){let e=this,{parent:r}=e;if(v(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 Uf(t){let e=this,{__ref:r}=e,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=e[s];if(s===t)return i;if(v(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 zf(t,e=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===t)e.push(a);else if(v(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 na(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];if(w(n)&&o)na.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>\"-\"+a.toLowerCase()),i=String(n).replace(/\\s*!important\\s*$/,\"\");e.node.style.setProperty(s,i,\"important\")}}return e}}function gg(t){let e=this;if($e(\"beforeRemove\",e,t)===!1)return e;v(e.node.remove)?e.node.remove():Pe()||(console.warn(\"This item cant be removed\"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=jn(e.parent.__ref.__children,e.key)),$e(\"remove\",e,t)}function Wf(t){return this[t]}function Hf(t,e){let r=this;if(t)return r.update(t,e),r}function Gf(t){return t?this.__ref&&this.__ref[t]:this.__ref}function To(){return this.getRef(\"__children\").map(e=>this[e])}function Oo(){return this.getRef().path}function Po(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=hg();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=v(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=hg()),t?e?.[t]:e}function Io(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function $o(t){return this.getRoot(\"data\")&&Object.keys(this.getRoot(\"data\")).length>0&&t?this.getRoot(\"data\")[t]:this.getRoot(\"data\")}function Fo(t){let e=this.getRoot()?.context;return t?e[t]:e}function Do(t){let e=this.context;return t?e[t]:e}function oa(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Oe.has(r)&&!Wn.has(r)||e.push(r);return e}function sa(t=[]){let e=this,r={},n=oa.call(e),o=n.includes(\"children\"),s=t.length?new Set(t):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a===\"content\")continue;let c=e[a];if(a===\"state\"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=v(c&&c.parse)?c.parse():c;r[a]=v(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a===\"scope\"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a===\"props\"){let{__element:l,update:f,...u}=e[a];r[a]=u}else vt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Ao(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=sa.call(r,t),o=t.length?new Set(t):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>B(a)?Ao.call(a,t,e):a):B(i)&&(n[s]=Ao.call(i,t,e))}return n}function Ur(...t){if(Le!==\"test\"&&Le!==\"development\")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:\n`,\"font-weight: bold\",e[n])):(console.log(r.path),e.keys().forEach(o=>console.log(`%c${o}:`,\"font-weight: bold\",e[o]))),console.log(e),console.groupEnd(e.key),e}function Kf(...t){(Le===\"test\"||Le===\"development\")&&console.log(...t)}function Lo(...t){(Le===\"test\"||Le===\"development\")&&console.warn(...t)}function yr(...t){if(Le===\"test\"||Le===\"development\"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&Ur.call(this),new Error(...t)}}function Mo(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function No(t){let e=t||this,{key:r,parent:n}=e,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function jo(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,n={},o;for(let s in t)t[s]!==r[s]&&(o=!0,n[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(n,Q(r));for(let a in n)r[a]=n[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(n),clearTimeout(a)},i)}}}function Yf(t,...e){let r=this.context,n=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(n)try{let o=n.call(this,...e);return o&&typeof o.then==\"function\"&&o.catch(s=>{yr.call(this,s)}),o}catch(o){if(yr.call(this,o),r?.strictMode)throw o}}async function Bo(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select==\"function\"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(mr(),Co));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(mr(),Co));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(mr(),Co)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.fetch=n,delete e.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(mr(),Co));await o(n,t.context)}return n}function Vo(t){let e=this,r=t||go.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(Bf(e,n),r===!0)return n;let o=MS[r];return o?o(n):n}function Xf(t,e){return!!(Ir.has(t)||e?.context?.methods?.[t])}var Le,mg,Ro,hg,qf,Bf,RS,yg,PS,IS,$S,FS,DS,LS,MS,bg=D(()=>{\"use strict\";Rf();$r();gt();xe();Bl();Pr();If();Le=\"production\";mg=null,Ro=t=>{mg=t||null},hg=()=>mg||null;qf=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});Bf=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n==\"string\"&&RS(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&Bf(c,e)}let s=r.contentElementKey||\"content\",i=t[s];i&&i.__ref&&Bf(i,e)},RS=(t,e)=>{let n=e.replaceAll(\"../\",\"\").replaceAll(\"~/\",\"\").split(\"/\"),o=t;for(let s=0;s<n.length;s++){let i=n[s];s===n.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},yg=(t,e=0)=>{let r=\" \".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {\n${yg(i,e+1)}\n${r}}`).join(`\n`):\"\"},PS=t=>`{\n${yg(t,1)}\n}`,IS=t=>{let e={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),r(n[i],a)}s.length&&(e.fields[o||\"_root\"]=s)};return r(t,\"\"),e},$S=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(\";\")})`:c)}return{select:i.length?i.join(\",\"):\"\",expand:a.length?a.join(\",\"):\"\"}},{select:r,expand:n}=e(t),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join(\"&\")},FS=(t,e)=>{let r=[],n=[],o=new Set,s=(f,u,p)=>{o.add(u),p&&n.push(`LEFT JOIN ${u} ON ${u}.${p}_id = ${p}.id`);for(let d in f)f[d]===!0?r.push(`${u}.${d}`):s(f[d],d,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,\"_root\",null);let a=[...o][0]||\"_root\",c=r.length?r.join(\", \"):\"*\",l=n.length?`\n`+n.join(`\n`):\"\";return`SELECT ${c}\nFROM ${a}${l}`},DS=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?e.push(i):r(n[s],i)}};return r(t,\"\"),e},LS=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(\", \")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},MS={graphql:PS,\"json-api\":IS,odata:$S,sql:FS,supabase:LS,paths:DS}});var NS,Zf,xg=D(()=>{\"use strict\";_i();NS={snapshotId:Zn},Zf=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=NS.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var ia,Jf,_g=D(()=>{ia=new Set([\"__proto__\",\"constructor\",\"prototype\",\"_id\",\"__v\",\"id\",\"createdAt\",\"updatedAt\",\"schema\"]),Jf=t=>typeof t==\"string\"&&ia.has(t)});async function Qf(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 Sg=D(()=>{\"use strict\"});function jS(t){return/^[0-9.]+$/.test(t)&&t!==\"\"}var Zt,Me,zr,Jt,tu,wg=D(()=>{\"use strict\";Zt={skypack:{url:\"https://cdn.skypack.dev\",formatUrl:(t,e)=>`${Zt.skypack.url}/${t}${e!==\"latest\"?`@${e}`:\"\"}`},esmsh:{url:\"https://esm.sh\",formatUrl:(t,e)=>`${Zt.esmsh.url}/${t}${e!==\"latest\"?`@${e}`:\"\"}`},unpkg:{url:\"https://unpkg.com\",formatUrl:(t,e)=>`${Zt.unpkg.url}/${t}${e!==\"latest\"?`@${e}`:\"\"}?module`},jsdelivr:{url:\"https://cdn.jsdelivr.net/npm\",formatUrl:(t,e)=>`${Zt.jsdelivr.url}/${t}${e!==\"latest\"?`@${e}`:\"\"}/+esm`},symbols:{url:\"https://pkg.symbo.ls\",formatUrl:(t,e)=>t.split(\"/\").length>2||!jS(e)?`${Zt.symbols.url}/${t}`:`${Zt.symbols.url}/${t}/${e}.js`}},Me={\"esm.sh\":\"esmsh\",unpkg:\"unpkg\",skypack:\"skypack\",jsdelivr:\"jsdelivr\",\"pkg.symbo.ls\":\"symbols\"},zr=(t={})=>{let{packageManager:e}=t;return Me[e]||null},Jt=(t,e=\"latest\",r=\"esmsh\")=>(Zt[r]||Zt.esmsh).formatUrl(t,e),tu=(t,e=\"skypack\")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return\"\";let o={};for(let s of n){let i=r[s]||\"latest\";o[s]=Jt(s,i,e)}return`<script type=\"importmap\">{\n \"imports\": ${JSON.stringify(o,null,2)}\n }<\\/script>`}});var eu,kg=D(()=>{\"use strict\";eu=t=>{if(!t)return\"\";let e=new Date(t),r=new Intl.DateTimeFormat(\"en\",{year:\"numeric\"}).format(e),n=new Intl.DateTimeFormat(\"en\",{month:\"short\"}).format(e);return`${new Intl.DateTimeFormat(\"en\",{day:\"2-digit\"}).format(e)} ${n}, ${r}`}});var ru,vg=D(()=>{\"use strict\";ru=(t,e)=>{let r=setTimeout(()=>{let{props:n}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(n.height===\"auto\")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{t.update({height:\"auto\"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else t.update({height:\"0\"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var nu,Cg=D(()=>{\"use strict\";nu=function(e){let r=[0,1];for(let n=2;n<=e;n++)r[n]=r[n-1]+r[n-2];return r[e]}});var ou,Ag=D(()=>{\"use strict\";ou=t=>[\"jpeg\",\"gif\",\"jpg\",\"png\",\"tiff\",\"woff\"].includes(t)});function Wr(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`script[src=\"${t}\"]`);if(i)return o(i);let a=n.createElement(\"script\");a.src=t,a.async=e.async===!0,a.type=e.type||\"text/javascript\",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},n.head.appendChild(a)})}async function fu(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`link[href=\"${t}\"]`);if(i)return o(i);let a=n.createElement(\"link\");a.href=t,a.rel=e.rel||\"stylesheet\",a.type=\"text/css\",a.media=e.media||\"all\",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},n.head.appendChild(a)})}var su,iu,au,cu,lu,Eg=D(()=>{\"use strict\";su=(t,e=!1,r=document,n=\"text/javascript\")=>new Promise((o,s)=>{try{let i=r.createElement(\"script\");i.type=n,i.async=e,i.src=t,i.addEventListener(\"load\",a=>{o({status:!0})}),i.addEventListener(\"error\",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),iu=(t,e=document,r=\"text/javascript\")=>new Promise((n,o)=>{let s=e.createElement(\"script\");s.type=r,s.src=t;let i=e.createElement(\"div\");i.style.cssText=\"position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;\",e.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),n()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),au=(t,e=document,r,n=\"text/javascript\")=>{let o=new window.XMLHttpRequest;if(o.open(\"GET\",t,!1),o.send(),o.status===200){let s=e.createElement(\"script\");s.type=n,s.text=o.responseText,e.body.appendChild(s),typeof r==\"function\"&&r()}else throw new Error(`Failed to load the script ${t}`)},cu=(t,e=!1,r=document,n=\"text/javascript\")=>new Promise((o,s)=>{try{let i=r.createElement(\"link\");i.rel=\"stylesheet\",i.href=t,i.addEventListener(\"load\",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),lu=(t,e=!1,r=document,n=\"text/javascript\",o=\"smbls-script\")=>{try{let s=r.createElement(\"script\");s.type=n,s.async=e,s.id=o,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}}});function US(t,e){if(!e||typeof e!=\"object\")return t;let r=o=>{if(!VS(o))return o;let s=e[o];return s?.src?s.src:o},n={...t};for(let[o,s]of Object.entries(n))typeof s==\"string\"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i==\"string\"?r(i):i));return n}function aa(t,e){if(!t||!e)return;let r=e.split(\".\"),n=t;for(let o of r){if(n==null||typeof n!=\"object\")return;n=n[o]}return n}function zS(t,e,r){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=r?.lang||o?.defaultLang||\"en\",a=(o?.translations||{})[s]||{},c=r?.state||{},l={...t};for(let[f,u]of Object.entries(l))typeof u!=\"string\"||!u.includes(\"{{\")||(l[f]=u.replace(/\\{\\{\\s*([^|{}]+?)\\s*(?:\\|\\s*(\\w+)\\s*)?\\}\\}/g,(p,d,h)=>{let g=d.trim();if(h===\"polyglot\")return a[g]??aa(a,g)??p;if(h===\"getLocalStateLang\")return aa(c,g+s)??p;let m=aa(c,g);return m!==void 0?m:a[g]??aa(a,g)??p}));return l}function Tg(t){let e={...t};for(let[r,n]of Object.entries(e))if(typeof n==\"function\"){let o=n.toString(),s=o.match(/el\\.call\\(\\s*[\"']getLocalStateLang[\"']\\s*,\\s*[\"']([^\"']+)[\"']\\s*\\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\\.call\\(\\s*[\"']polyglot[\"']\\s*,\\s*[\"']([^\"']+)[\"']\\s*\\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\\.(\\w+(?:\\.\\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof n==\"string\"){let o=n.match(/el\\.call\\(\\s*[\"']getLocalStateLang[\"']\\s*,\\s*[\"']([^\"']+)[\"']\\s*\\)/);if(o){e[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\\.call\\(\\s*[\"']polyglot[\"']\\s*,\\s*[\"']([^\"']+)[\"']\\s*\\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes(\"=>\")&&n.includes(\"s.\")){let i=n.match(/s\\.(\\w+(?:\\.\\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function pu(t,e,r,{isProduction:n=!1,channel:o=\"production\"}={}){let s=t.pages?.[e],i=w(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=Tg(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=Tg(f),p={};if(t.integrations?.seo?p={...t.integrations.seo,...u,...c}:Object.keys(u).length?p={...u,...c}:p={...c},!p.title){let g=t.name||t.key;g?n?p.title=g:o===\"development\"?p.title=`${g} / dev:symbo.ls`:o===\"staging\"?p.title=`${g} / staging:symbo.ls`:p.title=`${g} / symbo.ls`:p.title=\"Symbols demo\"}p=zS(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=US(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 Bt,BS,uu,VS,Og=D(()=>{\"use strict\";gt();Bt=t=>{if(t==null)return\"\";let e={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#039;\"};return t.toString().replace(/[&<>\"']/g,r=>e[r])},BS=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}=\"${Bt(r)}\"`).join(\" \"),uu=(t,e)=>(e||(t={...t,robots:\"noindex\"}),Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o===\"title\")return n.push(`<title>${Bt(s)}</title>`),n;if(o===\"canonical\")return n.push(`<link rel=\"canonical\" href=\"${Bt(s)}\">`),n;if(o===\"manifest\")return n.push(`<link rel=\"manifest\" href=\"${Bt(s)}\">`),n;if(o===\"favicon\"||o===\"favicons\"||o===\"icon\"||o===\"icons\")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f==\"string\")n.push(`<link rel=\"icon\" href=\"${Bt(f)}\">`);else if(typeof f==\"object\"){let u=BS(f);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel=\"icon\" ${u}>`)}}),n;if(o===\"alternate\")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f==\"object\"){let u=Object.entries(f).filter(([p,d])=>d!==void 0).map(([p,d])=>`${p}=\"${Bt(d)}\"`).join(\" \");n.push(`<link rel=\"alternate\" ${u}>`)}}),n;let i=(l,f,u=\"name\")=>{if(typeof f==\"string\"||typeof f==\"number\"||typeof f==\"boolean\")n.push(`<meta ${u}=\"${Bt(l)}\" content=\"${Bt(f)}\">`);else if(Array.isArray(f))f.forEach(p=>{if(typeof p==\"string\"||typeof p==\"number\"||typeof p==\"boolean\")n.push(`<meta ${u}=\"${Bt(l)}\" content=\"${Bt(p)}\">`);else if(typeof p==\"object\"){let d=Object.entries(p).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}=\"${Bt(g)}\"`).join(\" \");n.push(`<meta ${d}>`)}});else if(typeof f==\"object\"){let p=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}=\"${Bt(h)}\"`).join(\" \");n.push(`<meta ${p}>`)}};if(o.startsWith(\"http-equiv:\")){let l=o.replace(\"http-equiv:\",\"\");return i(l,s,\"http-equiv\"),n}if(o.startsWith(\"itemprop:\")){let l=o.replace(\"itemprop:\",\"\");return i(l,s,\"itemprop\"),n}let c=[\"og:\",\"twitter:\",\"fb:\",\"article:\",\"profile:\",\"book:\",\"business:\",\"music:\",\"product:\",\"video:\",\"DC:\",\"DCTERMS:\"].find(l=>o.startsWith(l));if(c){let l=o.replace(c,\"\");return i(`${c.replace(\":\",\"\")}:${l}`,s,c===\"twitter:\"||c===\"DC:\"||c===\"DCTERMS:\"?\"name\":\"property\"),n}if(o.startsWith(\"apple:\")||o.startsWith(\"msapplication:\")){let l=o.startsWith(\"apple:\")?\"apple-\":\"msapplication-\",f=o.replace(/^apple:|^msapplication:/,\"\");return i(`${l}${f}`,s,\"name\"),n}return i(o,s),n},['<meta charset=\"UTF-8\">','<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">']).join(`\n`)),VS=t=>typeof t==\"string\"&&t.length>0&&!t.startsWith(\"/\")&&!t.startsWith(\"http\")});var ca,du,Rg=D(()=>{\"use strict\";gt();ca=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),du=(t,e)=>(t=parseFloat(t),w(e)&&(e=Object.values(e)),ca(t,e))});function Hr(t){let e=String(t||\"\").trim();if(!e)return{owner:Pg,key:\"\",full:\"\"};let r=null,n=e;if(e.includes(\"/\")){let s=e.indexOf(\"/\");r=e.slice(0,s),n=e.slice(s+1)}n=n.replace(/\\.symbo\\.ls$/iu,\"\"),r||(r=Pg);let o=n?`${r}/${n}`:\"\";return{owner:r,key:n,full:o}}async function fa(t,e={}){if((e.provider||\"kv\")===\"api\")return Ig(t,e);let n=await XS(t,e);return n||Ig(t,e)}async function XS(t,e={}){let r=e.kvBaseUrl||WS,n=e.env||\"production\",o=`${r}/kv/${encodeURIComponent(t)}?env=${n}`;try{let s=await fetch(o,{method:\"GET\"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function Ig(t,e={}){let r=e.apiBaseUrl||HS,{key:n}=Hr(t);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:\"GET\"});if(!s.ok)return null;let i=await s.json(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(d=>{let{key:h}=Hr(d?.key);return h.toLowerCase()===n.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(f,{method:\"GET\"});if(!u.ok)return null;let p=await u.json();return p?.data||p||null}catch{return null}}async function $g(t,e={}){if(w(t))return t;if(S(t)){let{full:r}=Hr(t);if(!r)return null;try{let n=await fa(r,e);return n||console.warn(`[smbls] Shared library \"${r}\" not found`),n}catch(n){return console.warn(`[smbls] Failed to fetch shared library \"${r}\":`,n.message),null}}return null}async function gu(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(zo(n)){let o=await $g(KS(n),e);return o?{library:o,ignoreList:n.ignoreList}:null}return $g(n,e)}))).filter(Boolean)}var Pg,WS,HS,Uo,GS,qS,la,hu,zo,KS,YS,Wo,Fg=D(()=>{\"use strict\";gt();Pg=\"system\",WS=\"https://smbls-kv.nika-980.workers.dev\",HS=\"https://api.symbols.app\";Uo=(t,e,r,n)=>{for(let o in e){let s=n?`${n}/${o}`:o;r&&r.has(s)||(o in t?w(t[o])&&w(e[o])&&Uo(t[o],e[o],r,s):t[o]=e[o])}},GS=new Set,qS=t=>t.replace(/\\.js$/iu,\"\"),la=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let r of t){if(!S(r))continue;let n=r.split(\"/\").map(o=>qS(o.trim())).filter(Boolean).join(\"/\");n&&e.add(n)}return e},hu=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),zo=t=>w(t)&&Array.isArray(t.ignoreList)&&(\"library\"in t||\"key\"in t||\"name\"in t),KS=t=>t.library!==void 0?t.library:t.key??t.name,YS=(t,e,r)=>{for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!r.has(n))if(w(e[n])&&w(t[n]))if(n===\"designSystem\")Uo(t[n],e[n],r,n);else for(let o in e[n])r.has(`${n}/${o}`)||o in t[n]||(t[n][o]=e[n][o]);else n in t||(t[n]=e[n])},Wo=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r],o=GS;zo(n)&&(o=la(n.ignoreList),n=n.library),w(n)&&YS(t,n,o)}}});var mu,yu,bu,Ho,xu,Go,_u,br,Dg=D(()=>{\"use strict\";gt();mu=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn(\"Failed to copy text: \",e)}},yu=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)}},bu=t=>t.replace(/[^a-zA-Z0-9_]/g,\"\"),Ho=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,\"\")),xu=t=>t&&t.replace(/\\w\\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Go=t=>t.replace(/[^a-zA-Z0-9]/g,\" \").trim().toLowerCase().replace(/\\s+/g,\"-\").replace(/-+/g,\"-\").replace(/^-|-$/g,\"\"),_u=(t=\"\")=>{if(typeof t!=\"string\")return;let e=t.replace(/([A-Z])/g,\" $1\");return e.charAt(0).toUpperCase()+e.slice(1)},br=t=>{if(T(t))return t;if(S(t))return t.split(\" \");if(w(t))return Object.values(t);if(ne(t))return[t]}});var Su,Lg=D(()=>{\"use strict\";Su=()=>{let t=document.styleSheets[0],e=\"\";if(t)try{let r=t.cssRules||t.rules;for(let n=0;n<r.length;n++)e+=r[n].cssText}catch(r){console.error(\"Unable to access CSS rules. This may be due to CORS restrictions:\",r)}else console.log(\"No stylesheets found in document.styleSheets[0].\");return e}});var Tt,Gr,qo,Ko,Mg=D(()=>{\"use strict\";Tt=t=>{let e=t&&t.src;if(!e||typeof e!=\"string\")return null;let r=t.context;if(!r)return null;let n=r.assets&&r.assets[e]||r.files&&r.files[e];return n?typeof n==\"string\"?{src:n,type:null,variants:null}:typeof n==\"object\"&&typeof n.src==\"string\"?n:null:null},Gr=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return\"\";let r=t.some(o=>typeof o.width==\"number\"),n=[];for(let o of t)r&&typeof o.width==\"number\"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&e?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(\", \")},qo=t=>{if(!t||!Array.isArray(t.variants))return\"\";let e=t.variants.filter(r=>r.format===t.type);return Gr(e,{keepOneX:!1})},Ko=(t,e)=>{if(!t||typeof t!=\"object\"||typeof t.src!=\"string\")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:\"img\",attr:{src:t.src,alt:e||\"\"}}];let r=new Map;for(let a of t.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,c]of r)a!==t.type&&n.push({tag:\"source\",attr:{type:a,srcset:Gr(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=Gr(o,{keepOneX:!1}),i={src:t.src,alt:e||\"\"};return s&&(i.srcset=s),[...n,{tag:\"img\",attr:i}]}});var ua={};I(ua,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>xl,DOMQ_PROPERTIES:()=>Oe,ENV:()=>Dl,HTML_TAGS:()=>Nr,METHODS:()=>Ir,METHODS_EXL:()=>Hn,NODE_ENV:()=>Yt,OPTIONS:()=>go,PACKAGE_MANAGER_TO_CDN:()=>Me,PARSED_DOMQ_PROPERTIES:()=>Wn,PROPS_METHODS:()=>Re,STATE_METHODS:()=>ur,STATE_PROPERTIES:()=>bl,SVG_TAGS:()=>Mh,TYPES:()=>Mn,UNIVERSAL_RESERVED_KEYS:()=>ia,addCaching:()=>zi,addContext:()=>Ui,addExtend:()=>af,addExtends:()=>Et,addItemAfterEveryElement:()=>sl,addProtoToArray:()=>Bn,addRef:()=>ji,applyDependentState:()=>Af,applyEvent:()=>Yi,applyEventUpdate:()=>Xi,applyExtends:()=>Bh,applyProps:()=>co,arrayContainsOtherArray:()=>Jc,arraysEqual:()=>al,arrayzeValue:()=>br,buildImgSrcset:()=>qo,buildSourcesAndImg:()=>Ko,cache:()=>Pf,call:()=>Yf,captureSnapshot:()=>Zf,checkForStateTypes:()=>wf,checkIfInherits:()=>Ki,checkIfStringIsInArray:()=>fl,clone:()=>Sl,cloneAndMergeArrayExtend:()=>to,cloneFunction:()=>Wl,concatAddExtends:()=>nf,copyJavaScriptToClipboard:()=>yu,copyStringToClipboard:()=>mu,createBasedOnType:()=>Ni,createElement:()=>Sf,createElementExtends:()=>Ai,createExtends:()=>ro,createExtendsFromKeys:()=>jr,createExtendsStack:()=>Ri,createIfConditionFlag:()=>Hl,createInheritedState:()=>kf,createKey:()=>Jn,createNestedObject:()=>Tl,createNestedObjectByKeyPath:()=>Cf,createObjectWithoutPrototype:()=>xi,createParent:()=>Bi,createPath:()=>Vi,createProps:()=>lo,createPropsStack:()=>Li,createRoot:()=>_f,createScope:()=>Tf,createSnapshotId:()=>Zn,customDecodeURIComponent:()=>yl,customEncodeURIComponent:()=>ml,cutArrayAfterValue:()=>nl,cutArrayBeforeValue:()=>rl,debounce:()=>Qn,debounceOnContext:()=>Vl,decodeNewlines:()=>gl,deepClone:()=>Q,deepContains:()=>Al,deepDefaults:()=>Uo,deepDestringifyFunctions:()=>oe,deepExtend:()=>Ci,deepMerge:()=>H,deepMergeExtends:()=>se,deepStringifyFunctions:()=>Gn,defineSetter:()=>qf,destringifyGlobalScope:()=>Kn,detectHeightOnInit:()=>ru,detectInfiniteLoop:()=>Il,document:()=>q,encodeNewlines:()=>hl,error:()=>yr,excludeKeysFromObject:()=>Fl,exec:()=>K,extendCachedRegistry:()=>of,extendStackRegistry:()=>no,extractArrayExtend:()=>so,fetchLibraryData:()=>fa,fibonacciNumberByIndex:()=>nu,filterArrays:()=>cl,filterArraysFast:()=>ll,finalizeExtends:()=>Pi,findClosestNumber:()=>ca,findClosestNumberInFactory:()=>du,findInheritedState:()=>qi,findKeyPosition:()=>pl,flattenExtend:()=>Br,formatDate:()=>eu,generateHash:()=>wi,generateKey:()=>Xn,generateMetaTags:()=>uu,get:()=>Wf,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>ff,getCdnProviderFromConfig:()=>zr,getChildStateInKey:()=>Gi,getChildren:()=>To,getContext:()=>Do,getCookie:()=>Xl,getDB:()=>Bo,getEmotionStylesheet:()=>Su,getExtendsInElement:()=>cf,getExtendsStack:()=>eo,getExtendsStackRegistry:()=>vi,getFrequencyInArray:()=>Qc,getHashedExtend:()=>oo,getImportMapScript:()=>tu,getInObjectByPath:()=>Pl,getLocalStorage:()=>Jl,getNev:()=>jl,getPageMetadata:()=>pu,getParentStateInKey:()=>Hi,getPath:()=>Oo,getQuery:()=>Vo,getRef:()=>Gf,getRoot:()=>Io,getRootContext:()=>Fo,getRootData:()=>$o,getRootState:()=>Po,getRootStateInKey:()=>Wi,getSpreadChildren:()=>uf,global:()=>Yc,hasFunction:()=>Fr,hasHandlerPlugin:()=>Dr,hasOwnProperty:()=>kl,inheritChildExtends:()=>Ti,inheritChildPropsExtends:()=>Ei,inheritParentProps:()=>fo,inheritRecursiveChildExtends:()=>Oi,initProps:()=>yf,is:()=>Ct,isArray:()=>T,isBoolean:()=>hi,isContextComponent:()=>pf,isCyclic:()=>$l,isDOMNode:()=>kt,isDate:()=>mi,isDefined:()=>vt,isDevelopment:()=>Ie,isEmpty:()=>yi,isEmptyObject:()=>vl,isEqualDeep:()=>bi,isFunction:()=>v,isHtmlElement:()=>Dn,isLocal:()=>Nl,isMethod:()=>Xf,isMobile:()=>Kl,isNode:()=>be,isNot:()=>Zc,isNotProduction:()=>hr,isNull:()=>gi,isNumber:()=>ne,isObject:()=>w,isObjectLike:()=>B,isPhoto:()=>ou,isProduction:()=>Pe,isStaging:()=>Ml,isState:()=>vf,isString:()=>S,isStringFunction:()=>zl,isTest:()=>Si,isTesting:()=>Ll,isUndefined:()=>ht,isUniversallyReservedKey:()=>Jf,isValidHtmlTag:()=>tf,isWrappedLibrary:()=>zo,joinArrays:()=>Or,jointStacks:()=>sf,keys:()=>oa,loadCssFile:()=>cu,loadJavascript:()=>lu,loadJavascriptFile:()=>su,loadJavascriptFileEmbedSync:()=>au,loadJavascriptFileSync:()=>iu,loadRemoteCSS:()=>fu,loadRemoteScript:()=>Wr,log:()=>Kf,logGroupIf:()=>ql,logIf:()=>Gl,lookdown:()=>Uf,lookdownAll:()=>zf,lookup:()=>Vf,lowercaseFirstLetter:()=>fr,makeObjectWithoutPrototype:()=>Cl,map:()=>_l,mapStringsWithContextComponents:()=>io,matchesComponentNaming:()=>ie,memoize:()=>Ul,merge:()=>nt,mergeSharedLibraries:()=>Wo,nextElement:()=>Mo,normalizeIgnoreList:()=>la,normalizeLibraryKey:()=>Hr,objectToString:()=>qn,objectizeStringProperty:()=>ao,overwrite:()=>Yn,overwriteDeep:()=>At,overwriteShallow:()=>dr,overwriteState:()=>Ef,parse:()=>sa,parseDeep:()=>Ao,pickupElementFromProps:()=>Fi,pickupPropsFromElement:()=>$i,previousElement:()=>No,propExists:()=>gf,propertizeElement:()=>Di,propertizeUpdate:()=>hf,remove:()=>gg,removeChars:()=>bu,removeCookie:()=>Zl,removeDuplicateProps:()=>po,removeDuplicatesInArray:()=>Rr,removeFromArray:()=>tl,removeFromObject:()=>El,removeNestedKeyByPath:()=>Ol,removeValueFromArray:()=>jn,removeValueFromArrayAll:()=>ol,reorderArrayByValues:()=>il,replaceLiteralsWithObjectFields:()=>lr,replaceOctalEscapeSequences:()=>dl,resolveAsset:()=>Tt,resolveHandler:()=>Lr,resolveSharedLibraries:()=>gu,returnValueAsText:()=>Mi,runPluginHook:()=>Nt,self:()=>Xc,setActiveRootState:()=>Ro,setCookie:()=>Yl,setHashedExtend:()=>ki,setInObjectByPath:()=>Rl,setLocalStorage:()=>Ql,setNodeStyles:()=>na,setProps:()=>Hf,setPropsPrototype:()=>uo,sharedLibrary:()=>hu,spotByPath:()=>Eo,srcsetFor:()=>Gr,stringIncludesAny:()=>Un,stringToObject:()=>wl,swapItemsInArray:()=>el,syncProps:()=>ho,toCamelCase:()=>Ho,toDashCase:()=>Go,toDescriptionCase:()=>_u,toTitleCase:()=>xu,toggleFullscreen:()=>Qf,triggerEventOn:()=>$e,triggerEventOnUpdate:()=>Of,trimStringFromSymbols:()=>ul,unstackArrayOfObjects:()=>Nn,update:()=>mf,updateProps:()=>bf,variables:()=>jo,verbose:()=>Ur,warn:()=>Lo,window:()=>k});var R=D(()=>{\"use strict\";_i();Bl();gt();xe();Mr();Pr();Ln();Fh();Dh();zn();Fn();Lh();ef();lf();xf();Ii();Gh();qh();$r();Kh();bg();If();xg();Rf();_g();Sg();wg();kg();vg();Cg();Ag();Eg();Og();Rg();Fg();Dg();Lg();Mg()});var s_=Nc((iD,o_)=>{var An=1e3,En=An*60,Tn=En*60,Ar=Tn*24,bv=Ar*7,xv=Ar*365.25;o_.exports=function(t,e){e=e||{};var r=typeof t;if(r===\"string\"&&t.length>0)return _v(t);if(r===\"number\"&&isFinite(t))return e.long?wv(t):Sv(t);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(t))};function _v(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||\"ms\").toLowerCase();switch(n){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return r*xv;case\"weeks\":case\"week\":case\"w\":return r*bv;case\"days\":case\"day\":case\"d\":return r*Ar;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*Tn;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*En;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return r*An;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return r;default:return}}}}function Sv(t){var e=Math.abs(t);return e>=Ar?Math.round(t/Ar)+\"d\":e>=Tn?Math.round(t/Tn)+\"h\":e>=En?Math.round(t/En)+\"m\":e>=An?Math.round(t/An)+\"s\":t+\"ms\"}function wv(t){var e=Math.abs(t);return e>=Ar?Pc(t,e,Ar,\"day\"):e>=Tn?Pc(t,e,Tn,\"hour\"):e>=En?Pc(t,e,En,\"minute\"):e>=An?Pc(t,e,An,\"second\"):t+\" ms\"}function Pc(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+\" \"+n+(o?\"s\":\"\")}});var a_=Nc((aD,i_)=>{function kv(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=s_(),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,(C,P)=>{if(C===\"%%\")return\"%\";_++;let L=r.formatters[P];if(typeof L==\"function\"){let O=m[_];C=L.call(y,O),m.splice(_,1),_--}return C}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=f,g.useColors=r.useColors(),g.color=r.selectColor(f),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,\"enabled\",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(f)),h),set:m=>{p=m}}),typeof r.init==\"function\"&&r.init(g),g}function n(f,u){let p=r(this.namespace+(typeof u>\"u\"?\":\":u)+f);return p.log=this.log,p}function o(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let u=(typeof f==\"string\"?f:\"\").trim().replace(/\\s+/g,\",\").split(\",\").filter(Boolean);for(let p of u)p[0]===\"-\"?r.skips.push(p.slice(1)):r.names.push(p)}function s(f,u){let p=0,d=0,h=-1,g=0;for(;p<f.length;)if(d<u.length&&(u[d]===f[p]||u[d]===\"*\"))u[d]===\"*\"?(h=d,g=p,d++):(p++,d++);else if(h!==-1)d=h+1,g++,p=g;else return!1;for(;d<u.length&&u[d]===\"*\";)d++;return d===u.length}function i(){let f=[...r.names,...r.skips.map(u=>\"-\"+u)].join(\",\");return r.enable(\"\"),f}function a(f){for(let u of r.skips)if(s(f,u))return!1;for(let u of r.names)if(s(f,u))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function l(){console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\")}return r.enable(r.load()),r}i_.exports=kv});var c_=Nc((Rt,Ic)=>{Rt.formatArgs=Cv;Rt.save=Av;Rt.load=Ev;Rt.useColors=vv;Rt.storage=Tv();Rt.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`.\"))}})();Rt.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 vv(){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 Cv(t){if(t[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+t[0]+(this.useColors?\"%c \":\" \")+\"+\"+Ic.exports.humanize(this.diff),!this.useColors)return;let e=\"color: \"+this.color;t.splice(1,0,e,\"color: inherit\");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!==\"%%\"&&(r++,o===\"%c\"&&(n=r))}),t.splice(n,0,e)}Rt.log=console.debug||console.log||(()=>{});function Av(t){try{t?Rt.storage.setItem(\"debug\",t):Rt.storage.removeItem(\"debug\")}catch{}}function Ev(){let t;try{t=Rt.storage.getItem(\"debug\")||Rt.storage.getItem(\"DEBUG\")}catch{}return!t&&typeof process<\"u\"&&\"env\"in process&&(t=process.env.DEBUG),t}function Tv(){try{return localStorage}catch{}}Ic.exports=a_()(Rt);var{formatters:Ov}=Ic.exports;Ov.j=function(t){try{return JSON.stringify(t)}catch(e){return\"[UnexpectedJSONParseError]: \"+e.message}}});var Eh={};I(Eh,{ANIMATION_PROPS:()=>_p,ARIA_ROLES:()=>c0,ATTR_TRANSFORMS:()=>Np,BLOCK_PROPS:()=>Sp,CDN_PROVIDERS:()=>Zt,CONFIG:()=>ts,CSS_NATIVE_COLOR_REGEX:()=>Qt,CSS_PROPS_REGISTRY:()=>pt,CSS_UNITS:()=>cr,DEFAULT_CONFIG:()=>Ms,DEFAULT_CSS_PROPERTIES_LIST:()=>yt,DELEGATED_EVENTS:()=>an,DESIGN_SYSTEM_OPTIONS:()=>Wd,DOMQL_EVENTS:()=>xl,DOMQ_PROPERTIES:()=>Oe,DOM_EVENTS:()=>vm,ENV:()=>Dl,FACTORY:()=>fe,FLEX_PROPS:()=>Ap,FONT_PROPS:()=>wp,GRID_PROPS:()=>Ep,HTML_ATTRIBUTES:()=>Ha,HTML_TAGS:()=>Nr,LIFECYCLE_EVENTS:()=>qe,METHODS:()=>Ir,METHODS_EXL:()=>Hn,MISC_PROPS:()=>kp,MIXINS:()=>Ua,NODE_ENV:()=>Yt,OPTIONS:()=>go,PACKAGE_MANAGER_TO_CDN:()=>Me,PARSED_DOMQ_PROPERTIES:()=>Wn,POSITION_PROPS:()=>vp,PROPS_METHODS:()=>Re,REGISTRY:()=>_t,ROUTER_OPTIONS:()=>ic,STATE_PROPERTIES:()=>bl,SVG_TAGS:()=>on,THEME_PROPS:()=>Cp,TIMING_PROPS:()=>Fs,TYPES:()=>Mn,UNIVERSAL_RESERVED_KEYS:()=>ia,VALUE_TRANSFORMERS:()=>Na,activateConfig:()=>Vg,addCaching:()=>zi,addContext:()=>Ui,addDelegatedEvent:()=>Is,addExtend:()=>af,addExtends:()=>Et,addItemAfterEveryElement:()=>sl,addMethods:()=>pn,addProtoToArray:()=>Bn,addRef:()=>ji,animation:()=>Gu,appendSVGSprite:()=>ks,appendSvgIconsSprite:()=>Cs,applyAttrTransforms:()=>Vp,applyCSS:()=>jd,applyDependentState:()=>Af,applyDocument:()=>ws,applyEvent:()=>Yi,applyEventUpdate:()=>Xi,applyExtends:()=>ln,applyHeadings:()=>Ia,applyInitialState:()=>Wa,applyMediaSequenceVars:()=>Be,applyProps:()=>co,applyReset:()=>As,applySequenceGlobalVars:()=>as,applySequenceVars:()=>ve,applySpacingSequence:()=>bs,applyStateMethods:()=>Dt,applyTimingSequence:()=>Ss,applyTrueProps:()=>Op,applyTypographySequence:()=>gs,arrayContainsOtherArray:()=>Jc,arraysEqual:()=>al,arrayzeValue:()=>br,batch:()=>ye,breakpoints:()=>Wu,buildImgSrcset:()=>qo,buildSourcesAndImg:()=>Ko,cache:()=>Pf,cacheNode:()=>Ge,call:()=>Yf,captureSnapshot:()=>Zf,changeGlobalTheme:()=>ja,changeLightness:()=>Eu,checkAttributeByTagName:()=>Xe,checkEventFunctions:()=>Bp,checkForStateTypes:()=>wf,checkIfBoxSize:()=>ys,checkIfInherits:()=>Ki,checkIfStringIsInArray:()=>fl,class:()=>Zu,clone:()=>Sl,cloneAndMergeArrayExtend:()=>to,cloneFunction:()=>Wl,color:()=>Mu,colorStringToRgbaArray:()=>ce,components:()=>mn,concatAddExtends:()=>nf,convertSvgToSymbol:()=>cs,copyJavaScriptToClipboard:()=>yu,copyStringToClipboard:()=>mu,create:()=>Ah,createAsync:()=>Qv,createBasedOnType:()=>Ni,createComputed:()=>zc,createConfig:()=>Aa,createDefine:()=>qb,createEffect:()=>et,createElement:()=>Sf,createElementExtends:()=>Ai,createExtends:()=>ro,createExtendsFromKeys:()=>jr,createExtendsStack:()=>Ri,createHTMLNode:()=>nn,createIfConditionFlag:()=>Hl,createInheritedState:()=>kf,createKey:()=>Jn,createNestedObject:()=>Tl,createNestedObjectByKeyPath:()=>Cf,createObjectWithoutPrototype:()=>xi,createParent:()=>Bi,createPath:()=>Vi,createProps:()=>lo,createPropsStack:()=>Li,createRoot:()=>_f,createScope:()=>Tf,createScopeStore:()=>$n,createSignal:()=>Mt,createSkeleton:()=>eC,createSnapshotId:()=>Zn,createState:()=>$p,createStore:()=>Pt,createSync:()=>tC,css:()=>he,cssMediaVars:()=>va,cssVars:()=>ka,customDecodeURIComponent:()=>yl,customEncodeURIComponent:()=>ml,cutArrayAfterValue:()=>nl,cutArrayBeforeValue:()=>rl,debounce:()=>Qn,debounceOnContext:()=>Vl,decodeNewlines:()=>gl,deepClone:()=>Q,deepContains:()=>Al,deepDefaults:()=>Uo,deepDestringifyFunctions:()=>oe,deepExtend:()=>Ci,deepMerge:()=>H,deepMergeExtends:()=>se,deepStringifyFunctions:()=>Gn,defaultDefine:()=>bn,defineSetter:()=>qf,destringifyGlobalScope:()=>Kn,destroy:()=>zs,detectHeightOnInit:()=>ru,detectInfiniteLoop:()=>Il,detectTag:()=>He,devices:()=>Hu,dispose:()=>Ke,encodeNewlines:()=>hl,error:()=>yr,excludeKeysFromObject:()=>Fl,exec:()=>K,executeAttr:()=>f0,exetuteClassPerComponent:()=>Zw,extendCachedRegistry:()=>of,extendStackRegistry:()=>no,extractArrayExtend:()=>so,extractConditionalAttrs:()=>d0,fetchLibraryData:()=>fa,fibonacciNumberByIndex:()=>nu,filterArrays:()=>cl,filterArraysFast:()=>ll,filterAttributesByTagName:()=>l0,finalizeExtends:()=>Pi,findClosestNumber:()=>ca,findClosestNumberInFactory:()=>du,findHeadingLetter:()=>Oa,findHeadings:()=>is,findInheritedState:()=>qi,findKeyPosition:()=>pl,flattenExtend:()=>Br,font:()=>Pu,fontFace:()=>Fu,fontFamily:()=>Iu,fontFamilyTypes:()=>$u,formatDate:()=>eu,generateHash:()=>wi,generateKey:()=>Xn,generateMetaTags:()=>uu,generateSequence:()=>Ot,generateSequencePosition:()=>ep,generateSprite:()=>Zr,generateSubSequence:()=>os,get:()=>Wf,getActiveConfig:()=>A,getActiveDocument:()=>Va,getActiveLang:()=>Hs,getCDNUrl:()=>Jt,getCacheSize:()=>hp,getCapitalCaseKeys:()=>ff,getCdnProviderFromConfig:()=>zr,getChildStateInKey:()=>Gi,getChildren:()=>To,getColor:()=>Z,getColorShade:()=>ma,getContext:()=>Do,getCookie:()=>Xl,getDB:()=>Bo,getDefaultOrFirstKey:()=>xr,getEmotionStylesheet:()=>Su,getExtendsInElement:()=>cf,getExtendsStack:()=>eo,getExtendsStackRegistry:()=>vi,getFnPrefixAndValue:()=>ke,getFontFace:()=>Ou,getFontFaceEach:()=>_r,getFontFaceEachString:()=>_a,getFontFaceString:()=>Xo,getFontFamily:()=>hs,getFontFormat:()=>ba,getFontSizeByKey:()=>ms,getFrequencyInArray:()=>Qc,getHashedExtend:()=>oo,getImportMapScript:()=>tu,getInObjectByPath:()=>Pl,getLanguages:()=>lc,getLocalStateLang:()=>hc,getLocalStorage:()=>Jl,getMediaColor:()=>mt,getMediaTheme:()=>Ut,getNev:()=>jl,getObserver:()=>sr,getPageMetadata:()=>pu,getParentStateInKey:()=>Hi,getPath:()=>Oo,getQuery:()=>Vo,getRef:()=>Gf,getRgbTone:()=>Ne,getRoot:()=>Io,getRootContext:()=>Fo,getRootData:()=>$o,getRootState:()=>Po,getRootStateInKey:()=>Wi,getSequenceValue:()=>ss,getSequenceValueBySymbols:()=>Ta,getSequenceValuePropertyPair:()=>pe,getShadow:()=>_s,getSignals:()=>qc,getSpacingBasedOnRatio:()=>te,getSpacingByKey:()=>ut,getSpreadChildren:()=>uf,getSubratio:()=>ns,getSubratioDifference:()=>rs,getSystemGlobalTheme:()=>Gt,getTheme:()=>fs,getTimingByKey:()=>It,getTimingFunction:()=>zt,global:()=>Yc,gradient:()=>Nu,grid:()=>Xu,hasFunction:()=>Fr,hasHandlerPlugin:()=>Dr,hasOwnProperty:()=>kl,hexToRgb:()=>ku,hexToRgbArray:()=>pa,hexToRgba:()=>Cu,hslToRgb:()=>ga,icons:()=>Vu,inheritChildExtends:()=>Ti,inheritChildPropsExtends:()=>Ei,inheritParentProps:()=>fo,inheritRecursiveChildExtends:()=>Oi,init:()=>Ce,initPolyglot:()=>Hd,initProps:()=>yf,injectGlobal:()=>ct,is:()=>Ct,isArray:()=>T,isBoolean:()=>hi,isCSSVar:()=>st,isContextComponent:()=>pf,isCyclic:()=>$l,isDOMNode:()=>kt,isDate:()=>mi,isDefined:()=>vt,isDevelopment:()=>Ie,isEmpty:()=>yi,isEmptyObject:()=>vl,isEqualDeep:()=>bi,isFunction:()=>v,isGoogleFontsUrl:()=>Kr,isHtmlElement:()=>Dn,isLocal:()=>Nl,isMethod:()=>Xf,isMobile:()=>Kl,isNode:()=>be,isNot:()=>Zc,isNotProduction:()=>hr,isNull:()=>gi,isNumber:()=>ne,isObject:()=>w,isObjectLike:()=>B,isPhoto:()=>ou,isProduction:()=>Pe,isResolvedColor:()=>le,isScalingUnit:()=>ar,isStaging:()=>Ml,isState:()=>vf,isStore:()=>rt,isString:()=>S,isStringFunction:()=>zl,isSvgTag:()=>sn,isTest:()=>Si,isTesting:()=>Ll,isTracking:()=>Dp,isUndefined:()=>ht,isUniversallyReservedKey:()=>Jf,isValidHtmlTag:()=>tf,isValidTag:()=>rn,isWasmLoaded:()=>Fb,isWrappedLibrary:()=>zo,joinArrays:()=>Or,jointStacks:()=>sf,keyframes:()=>en,keys:()=>oa,loadCssFile:()=>cu,loadJavascript:()=>lu,loadJavascriptFile:()=>su,loadJavascriptFileEmbedSync:()=>au,loadJavascriptFileSync:()=>iu,loadRemoteCSS:()=>fu,loadRemoteScript:()=>Wr,loadTranslations:()=>uc,loadWasm:()=>$b,log:()=>Kf,logGroupIf:()=>ql,logIf:()=>Gl,lookdown:()=>Uf,lookdownAll:()=>zf,lookup:()=>Vf,lowercaseFirstLetter:()=>fr,makeObjectWithoutPrototype:()=>Cl,map:()=>_l,mapStringsWithContextComponents:()=>io,matchesComponentNaming:()=>ie,media:()=>Du,memoize:()=>Ul,merge:()=>nt,mergeSharedLibraries:()=>Wo,mixTwoColors:()=>wu,mixTwoRgb:()=>Au,mixTwoRgba:()=>ya,nextElement:()=>Mo,normalizeIgnoreList:()=>la,normalizeLibraryKey:()=>Hr,numToLetterMap:()=>ue,objectToString:()=>qn,objectizeStringProperty:()=>ao,opacify:()=>qr,overwrite:()=>Yn,overwriteDeep:()=>At,overwriteShallow:()=>dr,overwriteState:()=>Ef,parse:()=>sa,parseColorToken:()=>_e,parseDeep:()=>Ao,pickupElementFromProps:()=>Fi,pickupPropsFromElement:()=>$i,polyglotFunctions:()=>Gs,polyglotPlugin:()=>gc,popConfig:()=>tt,previousElement:()=>No,propExists:()=>gf,propertizeElement:()=>Di,propertizeUpdate:()=>hf,pushConfig:()=>ot,registerEvent:()=>cn,reinit:()=>Nd,remove:()=>un,removeChars:()=>bu,removeCookie:()=>Zl,removeDelegatedEvent:()=>$s,removeDuplicateProps:()=>po,removeDuplicatesInArray:()=>Rr,removeFromArray:()=>tl,removeFromObject:()=>El,removeNestedKeyByPath:()=>Ol,removeValueFromArray:()=>jn,removeValueFromArrayAll:()=>ol,reorderArrayByValues:()=>il,replaceLiteralsWithObjectFields:()=>lr,replaceOctalEscapeSequences:()=>dl,resolveAsset:()=>Tt,resolveColorsInGradient:()=>Ts,resolveFileSource:()=>Mp,resolveFileUrl:()=>Vt,resolveHandler:()=>Lr,resolvePropValue:()=>Ye,resolveSharedLibraries:()=>gu,returnSubThemeOrDefault:()=>Tu,returnValueAsText:()=>Mi,rgbArrayToHex:()=>da,rgbToHSL:()=>ha,rgbToHex:()=>vu,runPluginHook:()=>Nt,runThroughMedia:()=>Pa,scratchDefaultConfig:()=>Xr,scratchSystem:()=>tn,scratchUtils:()=>Ve,self:()=>Xc,semanticIcons:()=>Uu,sequence:()=>we,set:()=>Sr,setActiveConfig:()=>Ca,setActiveDocument:()=>dp,setActiveRootState:()=>Ro,setClass:()=>G0,setClassname:()=>Jw,setColor:()=>Ue,setCookie:()=>Yl,setCssEngineHook:()=>rc,setCustomFont:()=>Yo,setCustomFontMedia:()=>je,setEach:()=>lp,setFont:()=>ds,setFontFamily:()=>Jr,setFontImport:()=>Yr,setGradient:()=>ze,setHashedExtend:()=>ki,setInCustomFontMedia:()=>xa,setInObjectByPath:()=>Rl,setLang:()=>pc,setLocalStorage:()=>Ql,setMediaTheme:()=>ps,setNodeStyles:()=>na,setObserver:()=>Uc,setProps:()=>Hf,setPropsPrototype:()=>uo,setSVG:()=>Qr,setScalingVar:()=>es,setShadow:()=>We,setSubScalingVar:()=>Ea,setSvgIcon:()=>vs,setTheme:()=>us,setValue:()=>cp,setVariables:()=>rp,setWasmEngine:()=>Ps,shadow:()=>Bu,sharedLibrary:()=>hu,sizes:()=>Qu,spacing:()=>Lu,splitSpacedValue:()=>xs,splitTopLevelCommas:()=>Se,splitTransition:()=>Ma,spotByPath:()=>Eo,srcsetFor:()=>Gr,stringIncludesAny:()=>Un,stringToObject:()=>wl,svg:()=>qu,svgData:()=>Ku,swapItemsInArray:()=>el,syncProps:()=>ho,templates:()=>Yu,theme:()=>ju,timing:()=>zu,toCamel:()=>Qo,toCamelCase:()=>Ho,toDashCase:()=>Go,toDescriptionCase:()=>_u,toTitleCase:()=>xu,toggleFullscreen:()=>Qf,transformBackgroundImage:()=>Da,transformBorder:()=>de,transformBorderRadius:()=>Rs,transformBoxShadow:()=>Es,transformClassname:()=>mm,transformDuration:()=>Os,transformShadow:()=>Fa,transformSize:()=>it,transformSizeRatio:()=>j,transformTextStroke:()=>$a,transformTransition:()=>ap,transformersByPrefix:()=>Rp,transfromGap:()=>La,translate:()=>fc,triggerEventOn:()=>$e,triggerEventOnUpdate:()=>Of,trimStringFromSymbols:()=>ul,typography:()=>Zo,unit:()=>Ru,unstackArrayOfObjects:()=>Nn,update:()=>fn,updateProps:()=>bf,updateVars:()=>H0,upsertTranslation:()=>dc,useCssInProps:()=>Ft,useHostState:()=>Fp,usePropsAsCSS:()=>hm,useSelectorsAsCSS:()=>gm,variables:()=>jo,vars:()=>Ju,verbose:()=>Ur,warn:()=>Lo,window:()=>k});var Kc={};I(Kc,{batch:()=>ye,createComputed:()=>zc,createEffect:()=>et,createScopeStore:()=>$n,createSignal:()=>Mt,createStore:()=>Pt,getObserver:()=>sr,getSignals:()=>qc,isStore:()=>rt,setObserver:()=>Uc});var wt=null,fi=0,ui=[],sr=()=>wt,Uc=t=>{wt=t},pi=0,jc=[];function Mt(t){let e=new Set;function r(){return wt&&(e.add(wt),wt._sources.add(s)),t}function n(i){i!==t&&(t=i,U_(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:\"signal\"};return s}function zc(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:\"computed\",_subscribers:n,_execute(){Vc(o);let s=wt;wt=o;try{e=t(),r=!1}finally{wt=s}},_notify(){r=!0,n.size>0&&Rh(n)},get(){return wt&&(n.add(wt),wt._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var or=new Set,Bc=!1;function et(t,e){let r=e?.depth??0,n={_sources:new Set,_type:\"effect\",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;Vc(n);let o=wt;wt=n;try{t()}catch(s){console.error(\"[smbls] effect error:\",s)}finally{wt=o}},_notify(){n._disposed||(fi>0?ui.push(n):pi>0?jc.push(n):Wc(n))},dispose(){n._disposed=!0,Vc(n)}};return n._execute(),n}function ye(t){fi++;try{t()}finally{fi--,fi===0&&V_()}}function Wc(t){or.add(t),Bc||(Bc=!0,queueMicrotask(B_))}var Tr=[];function B_(){if(Bc=!1,or.size!==0){if(or.size===1){let[t]=or;or.clear(),t._disposed||t._execute();return}Tr.length=0;for(let t of or)Tr.push(t);or.clear(),Tr.sort((t,e)=>t._depth-e._depth);for(let t=0;t<Tr.length;t++){let e=Tr[t];e._disposed||e._execute()}Tr.length=0}}function V_(){for(let t=0;t<ui.length;t++)Wc(ui[t]);ui.length=0}function Rh(t){pi++;try{for(let e of t)e._notify()}finally{if(pi--,pi===0&&jc.length>0){let e=jc.splice(0);for(let r=0;r<e.length;r++)Wc(e[r])}}}function U_(t){Rh(t)}function Vc(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var ir=Symbol(\"store\"),di=Symbol(\"signals\"),Hc=t=>!t||typeof t!=\"object\"||Array.isArray(t)||t[ir]||Object.isFrozen(t)||typeof Node<\"u\"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function Pt(t,e,r){r===void 0&&(r=0);let n={},o={},s=e&&e.maxDepth||8;if(t&&typeof t==\"object\")for(let y in t){if(y===\"__proto__\"||!Object.prototype.hasOwnProperty.call(t,y))continue;let b=t[y];r<s&&b&&typeof b==\"object\"&&!Hc(b)?(o[y]=b,n[y]=Mt(Pt(b,e,r+1))):(o[y]=b,n[y]=Mt(b))}let i=new Proxy(o,{get(y,b){if(b===ir)return!0;if(b===di)return n;if(b===\"__raw\")return y;if(b===\"update\")return a;if(b===\"parse\")return l;if(b===\"clean\")return f;if(b===\"keys\")return u;if(b===\"values\")return p;if(b===\"replace\")return d;if(b===\"add\")return h;if(b===\"remove\")return g;if(b===\"destroy\")return m;if(b===\"quietUpdate\")return c;if(b===\"__element\")return y.__element;if(b===\"parent\")return y.parent;if(b===\"root\")return y.root;if(Object.prototype.hasOwnProperty.call(n,b)){let _=n[b].get();if(_!==void 0||!(b!==\"root\"&&y.root&&y.root!==i))return _}if(y[b]!==void 0)return y[b];let x=typeof b==\"string\"&&!b.startsWith(\"__\")&&b!==\"then\"&&b!==\"constructor\"&&sr()!=null;if(b!==\"root\"&&y.root&&y.root!==i){let _=y.root[b];return _===void 0&&x&&!Object.prototype.hasOwnProperty.call(n,b)?(n[b]=Mt(void 0),n[b].get()):_}if(x)return n[b]=Mt(void 0),n[b].get()},set(y,b,x){return b===\"__proto__\"?!1:b===\"__element\"||b===\"parent\"||b===\"root\"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=x,x&&typeof x==\"object\"&&!Hc(x)?n[b].set(Pt(x,e,r+1)):n[b].set(x)):(y[b]=x,x&&typeof x==\"object\"&&!Hc(x)?n[b]=Mt(Pt(x,e,r+1)):n[b]=Mt(x)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){ye(()=>{for(let _ in y)_!==\"__proto__\"&&(i[_]=y[_])});let x=o.__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 n){if(x===\"parent\"||x===\"root\"||x.startsWith(\"__\"))continue;let _=n[x].peek();_&&_[ir]?b[x]=_.parse(y):b[x]=_}return b}function f(){return ye(()=>{for(let y in n)delete i[y]}),i}function u(){return Object.keys(n)}function p(){return Object.keys(n).map(y=>n[y].peek())}function d(y){return ye(()=>{for(let b in n)b in y||delete i[b];for(let b in y)b!==\"__proto__\"&&(i[b]=y[b])}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){f(),o.__element=null,o.parent=null}return i}function rt(t){return t&&t[ir]===!0}function qc(t){return t[di]}function $n(t,e){let r={},n={};if(t&&typeof t==\"object\")for(let i in t)n[i]=t[i],r[i]=Mt(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[di];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[ir]?a[Gc]:null}return null};return new Proxy(n,{get(i,a){return a===ir?!0:a===di?r:a===Gc?e:a===\"__raw\"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():e&&a!==\"then\"&&a!==\"constructor\"?e[a]:i[a]},set(i,a,c){let l=o(a);return l?(l===r&&(i[a]=c),l[a].set(c),!0):(i[a]=c,r[a]=Mt(c),!0)},has(i,a){if(a in r||a in i)return!0;let c=e;for(;c;){if(a in c)return!0;c=c[ir]?c[Gc]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var Gc=Symbol(\"scope.parent\");var gp={};I(gp,{css:()=>he,getActiveDocument:()=>Va,getCacheSize:()=>hp,injectGlobal:()=>ct,keyframes:()=>en,reset:()=>nm,setActiveDocument:()=>dp,setWasmEngine:()=>Ps});var fp={};I(fp,{CONFIG:()=>ts,CSS_NATIVE_COLOR_REGEX:()=>Qt,CSS_UNITS:()=>cr,FACTORY:()=>fe,VALUE_TRANSFORMERS:()=>Na,activateConfig:()=>Vg,animation:()=>Gu,appendSVGSprite:()=>ks,appendSvgIconsSprite:()=>Cs,applyDocument:()=>ws,applyHeadings:()=>Ia,applyMediaSequenceVars:()=>Be,applyReset:()=>As,applySequenceGlobalVars:()=>as,applySequenceVars:()=>ve,applySpacingSequence:()=>bs,applyTimingSequence:()=>Ss,applyTypographySequence:()=>gs,breakpoints:()=>Wu,changeGlobalTheme:()=>ja,changeLightness:()=>Eu,checkIfBoxSize:()=>ys,class:()=>Zu,color:()=>Mu,colorStringToRgbaArray:()=>ce,convertSvgToSymbol:()=>cs,createConfig:()=>Aa,cssMediaVars:()=>va,cssVars:()=>ka,devices:()=>Hu,document:()=>Ng,findHeadingLetter:()=>Oa,findHeadings:()=>is,font:()=>Pu,fontFace:()=>Fu,fontFamily:()=>Iu,fontFamilyTypes:()=>$u,generateSequence:()=>Ot,generateSequencePosition:()=>ep,generateSprite:()=>Zr,generateSubSequence:()=>os,getActiveConfig:()=>A,getColor:()=>Z,getColorShade:()=>ma,getDefaultOrFirstKey:()=>xr,getFnPrefixAndValue:()=>ke,getFontFace:()=>Ou,getFontFaceEach:()=>_r,getFontFaceEachString:()=>_a,getFontFaceString:()=>Xo,getFontFamily:()=>hs,getFontFormat:()=>ba,getFontSizeByKey:()=>ms,getMediaColor:()=>mt,getMediaTheme:()=>Ut,getRgbTone:()=>Ne,getSequenceValue:()=>ss,getSequenceValueBySymbols:()=>Ta,getSequenceValuePropertyPair:()=>pe,getShadow:()=>_s,getSpacingBasedOnRatio:()=>te,getSpacingByKey:()=>ut,getSubratio:()=>ns,getSubratioDifference:()=>rs,getTheme:()=>fs,getTimingByKey:()=>It,getTimingFunction:()=>zt,gradient:()=>Nu,grid:()=>Xu,hexToRgb:()=>ku,hexToRgbArray:()=>pa,hexToRgba:()=>Cu,hslToRgb:()=>ga,icons:()=>Vu,isCSSVar:()=>st,isGoogleFontsUrl:()=>Kr,isResolvedColor:()=>le,isScalingUnit:()=>ar,media:()=>Du,mixTwoColors:()=>wu,mixTwoRgb:()=>Au,mixTwoRgba:()=>ya,numToLetterMap:()=>ue,opacify:()=>qr,parseColorToken:()=>_e,popConfig:()=>tt,pushConfig:()=>ot,reset:()=>jg,resolveColorsInGradient:()=>Ts,resolveFileUrl:()=>Vt,returnSubThemeOrDefault:()=>Tu,rgbArrayToHex:()=>da,rgbToHSL:()=>ha,rgbToHex:()=>vu,runThroughMedia:()=>Pa,scratchDefaultConfig:()=>Xr,scratchSystem:()=>tn,scratchUtils:()=>Ve,semanticIcons:()=>Uu,sequence:()=>we,set:()=>Sr,setActiveConfig:()=>Ca,setColor:()=>Ue,setCustomFont:()=>Yo,setCustomFontMedia:()=>je,setEach:()=>lp,setFont:()=>ds,setFontFamily:()=>Jr,setFontImport:()=>Yr,setGradient:()=>ze,setInCustomFontMedia:()=>xa,setMediaTheme:()=>ps,setSVG:()=>Qr,setScalingVar:()=>es,setShadow:()=>We,setSubScalingVar:()=>Ea,setSvgIcon:()=>vs,setTheme:()=>us,setValue:()=>cp,setVariables:()=>rp,shadow:()=>Bu,sizes:()=>Qu,spacing:()=>Lu,splitSpacedValue:()=>xs,splitTopLevelCommas:()=>Se,splitTransition:()=>Ma,svg:()=>qu,svgData:()=>Ku,templates:()=>Yu,theme:()=>ju,timing:()=>zu,toCamel:()=>Qo,transformBackgroundImage:()=>Da,transformBorder:()=>de,transformBorderRadius:()=>Rs,transformBoxShadow:()=>Es,transformDuration:()=>Os,transformShadow:()=>Fa,transformSize:()=>it,transformSizeRatio:()=>j,transformTextStroke:()=>$a,transformTransition:()=>ap,transfromGap:()=>La,typography:()=>Zo,unit:()=>Ru,vars:()=>Ju});var Ve={};I(Ve,{CSS_NATIVE_COLOR_REGEX:()=>Qt,CSS_UNITS:()=>cr,applyMediaSequenceVars:()=>Be,applySequenceGlobalVars:()=>as,applySequenceVars:()=>ve,changeLightness:()=>Eu,colorStringToRgbaArray:()=>ce,convertSvgToSymbol:()=>cs,findHeadingLetter:()=>Oa,findHeadings:()=>is,generateSequence:()=>Ot,generateSequencePosition:()=>ep,generateSprite:()=>Zr,generateSubSequence:()=>os,getColorShade:()=>ma,getDefaultOrFirstKey:()=>xr,getFnPrefixAndValue:()=>ke,getFontFace:()=>Ou,getFontFaceEach:()=>_r,getFontFaceEachString:()=>_a,getFontFaceString:()=>Xo,getFontFormat:()=>ba,getRgbTone:()=>Ne,getSequenceValue:()=>ss,getSequenceValueBySymbols:()=>Ta,getSequenceValuePropertyPair:()=>pe,getSubratio:()=>ns,getSubratioDifference:()=>rs,hexToRgb:()=>ku,hexToRgbArray:()=>pa,hexToRgba:()=>Cu,hslToRgb:()=>ga,isCSSVar:()=>st,isGoogleFontsUrl:()=>Kr,isResolvedColor:()=>le,isScalingUnit:()=>ar,mixTwoColors:()=>wu,mixTwoRgb:()=>Au,mixTwoRgba:()=>ya,numToLetterMap:()=>ue,opacify:()=>qr,parseColorToken:()=>_e,resolveFileUrl:()=>Vt,returnSubThemeOrDefault:()=>Tu,rgbArrayToHex:()=>da,rgbToHSL:()=>ha,rgbToHex:()=>vu,setCustomFont:()=>Yo,setCustomFontMedia:()=>je,setFontImport:()=>Yr,setInCustomFontMedia:()=>xa,setScalingVar:()=>es,setSubScalingVar:()=>Ea,setVariables:()=>rp,splitTopLevelCommas:()=>Se});var ar=t=>t===\"em\"||t===\"rem\"||t===\"vw\"||t===\"vh\"||t===\"vmax\"||t===\"vmin\",cr=[\"px\",\"cm\",\"mm\",\"in\",\"pt\",\"pc\",\"em\",\"rem\",\"ex\",\"cap\",\"ch\",\"ic\",\"lh\",\"rlh\",\"%\",\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\",\"cqw\",\"cqh\",\"cqi\",\"cqb\",\"cqmin\",\"cqmax\",\"deg\",\"rad\",\"grad\",\"turn\",\"s\",\"ms\",\"dpi\",\"dpcm\",\"dppx\",\"fr\",\"auto\"];R();var ce=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]},wu=(t,e,r=.5)=>(t=ce(t),e=ce(e),ya(t,e,r)),ku=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},pa=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return[r,n,o]},vu=(t,e,r)=>\"#\"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),da=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),Cu=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},Au=(t,e,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(t[o]+(e[o]-t[o])*r);return`rgb(${n})`},Eu=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},ha=(t,e,r)=>{let n=Math.max(t,e,r),o=n-Math.min(t,e,r),s=1-Math.abs(n+n-o-1),i=o&&(n==t?(e-r)/o:n==e?2+(r-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},ga=(t,e,r,n=e*Math.min(r,1-r),o=(s,i=(s+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],ma=(t,e)=>{let r=parseInt(t,16),n=(r>>16)+e;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},ya=(t,e,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(t[o]+(e[o]-t[o])*r)}return`rgba(${n})`},qr=(t,e)=>{let r=ce(t);if(!r){hr()&&console.warn(t+\" color is not rgba\");return}return r[3]=e,`rgba(${r})`},st=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Qt=/(?:rgba?\\(|hsla?\\(|#[0-9a-fA-F]{3,8}\\b)/,ZS=/^([a-zA-Z]\\w*(?:-[a-zA-Z]\\w*)*)(?:\\.(\\d+))?(?:([+-]\\d+|=\\d+))?$/,_e=t=>{if(!S(t))return null;if(Qt.test(t))return{passthrough:t};if(st(t))return{cssVar:t};let e=t.match(ZS);if(!e)return null;let[,r,n,o]=e,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]===\"=\"?o.slice(1):o;return{name:r,alpha:s,tone:i}},le=t=>S(t)&&(t.includes(\"rgb\")||t.includes(\"var(\")||t.includes(\"#\")),Se=t=>{let e=[],r=\"\",n=0;for(let o of t){if(o===\"(\"?n+=1:o===\")\"&&n>0&&(n-=1),o===\",\"&&n===0){e.push(r),r=\"\";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},Ne=(t,e)=>{S(t)&&t.includes(\"rgb\")&&(t=ce(t).join(\", \")),S(t)&&(t=t.split(\",\").map(o=>parseFloat(o.trim()))),ne(e)&&(e+=\"\");let r=da(t),n=e.slice(0,1);if(n===\"-\"||n===\"+\"){let o=ma(r,parseFloat(e));return pa(o).join(\", \")}else{let[o,s,i]=t,a=ha(o,s,i),[c,l,f]=a;return ga(c,l,parseFloat(e)/100*255)}};var Tu=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Vt=(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},xr=(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},ba=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},Kr=t=>t&&(t.includes(\"fonts.googleapis.com\")||t.includes(\"fonts.gstatic.com\")),Yr=t=>`@import url('${t}');`,xa=t=>`@font-face { ${t} }`,Yo=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a==\"string\"&&a).map(a=>{let c=ba(a),l=c?` format('${c}')`:\"\";return`url('${a}')${l}`}).join(`,\n `);return`\n font-family: '${t}';\n font-style: ${n.fontStyle||\"normal\"};${r?`\n font-weight: ${r};`:\"\"}${n.fontStretch?`\n font-stretch: ${n.fontStretch};`:\"\"}${n.fontDisplay?`\n font-display: ${n.fontDisplay};`:\"\"}\n src: ${i};`},je=(t,e,r,n)=>`@font-face {${Yo(t,e,r,n)}\n}`,_r=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=e[o],f=Array.isArray(s)?s.map(u=>Vt(u,r)||u):Vt(s,r)||s;return Yo(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),Ou=t=>Object.keys(t).map(r=>_r(r,t[r].value)),_a=(t,e,r)=>{if(e&&e.isVariable){let s=Vt(e.url,r)||e.url;return Kr(s)?Yr(s):je(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||\"swap\"})}if(e[0])return _r(t,e,r).map(xa);let o=Array.isArray(e.url)?e.url.map(s=>Vt(s,r)||s):Vt(e.url,r)||e.url;return je(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Xo=(t,e)=>Object.keys(t).map(n=>_a(n,t[n].value,e));R();R();R();var Xr={};I(Xr,{animation:()=>Gu,breakpoints:()=>Wu,class:()=>Zu,color:()=>Mu,devices:()=>Hu,document:()=>Ng,font:()=>Pu,fontFace:()=>Fu,fontFamily:()=>Iu,fontFamilyTypes:()=>$u,gradient:()=>Nu,grid:()=>Xu,icons:()=>Vu,media:()=>Du,reset:()=>jg,semanticIcons:()=>Uu,sequence:()=>we,shadow:()=>Bu,sizes:()=>Qu,spacing:()=>Lu,svg:()=>qu,svgData:()=>Ku,templates:()=>Yu,theme:()=>ju,timing:()=>zu,typography:()=>Zo,unit:()=>Ru,vars:()=>Ju});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 Ru={default:\"em\"};var JS={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:{}},Zo=JS;var Pu={};var Iu={},$u={\"sans-serif\":\"Helvetica, Arial, sans-serif, --system-default\",serif:\"Times New Roman, Georgia, serif, --system-default\",monospace:\"Courier New, monospace, --system-default\"},Fu={};var Du={tv:\"(min-width: 2780px)\",light:\"(prefers-color-scheme: light)\",dark:\"(prefers-color-scheme: dark)\",print:\"print\"};var QS={base:Zo.base,type:\"spacing\",ratio:we.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:\"em\",sequence:{},scales:{},vars:{}},Lu=QS;var Mu={},Nu={};var ju={};var Bu={};var Vu={},Uu={};var tw={default:150,base:150,type:\"timing\",ratio:we[\"perfect-fourth\"],range:[-3,12],mediaRegenerate:!1,unit:\"ms\",sequence:{},scales:{},vars:{}},zu=tw;var Ng={};var Wu={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Hu={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 Gu={};var qu={},Ku={};var Yu={};var ew={},Xu=ew;var Zu={};var jg={},Ju={},Qu={};var ka={},va={},Sa=Xr,wa={},Qo=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in Sa){let e=t.toLowerCase();wa[e]=Sa[t];let r=Qo(e);r!==e&&(wa[r]=Sa[t]),e!==t&&(wa[t]=Sa[t])}var ts={verbose:!1,useVariable:!0,useReset:!0,globalTheme:\"auto\",cssVars:ka,cssMediaVars:va,CSS_VARS:ka,CSS_MEDIA_VARS:va,_scratchConfig:!0,...wa},Bg=Q(ts),fe={active:\"0\",0:ts},Vg=t=>(vt(t)&&(fe.active=t),fe[t||fe.active]),Jo=[],ot=t=>{t&&t._scratchConfig&&Jo.push(t)},tt=()=>{Jo.pop()},A=t=>Jo.length?Jo[Jo.length-1]:fe[t||fe.active]||ts,Ca=t=>{if(w(t))return fe.active=\"1\",fe[1]=H(t,Q(Bg)),t},rw=[\"useReset\",\"useVariable\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\",\"verbose\",\"globalTheme\"],nw=[[\"fontfamily\",\"fontFamily\",\"font_family\"],[\"fontfamilytypes\",\"fontFamilyTypes\"],[\"semanticicons\",\"semanticIcons\"],[\"svgdata\",\"svgData\"]],ow=t=>{for(let e of nw){let r;for(let n of e){let o=t[n];w(o)&&(r=r?H(o,r):o)}if(r)for(let n of e)w(t[n])&&(t[n]=r)}},Aa=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:A(),o=Q(!r&&n&&n._scratchConfig?n:Bg);for(let i of rw)delete o[i];let s=H(e||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,ow(s),t&&(fe[t]=s),s};var ue={\"-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\"},tp=(t,e)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},e.scales[r]=s;let c=Ug.has(e.unit)?\"rem\":e.unit;e.vars[n]=s+c},ke=t=>{if(!t.includes(\"(\"))return t;let e=t.split(\"(\")[0],r=t.slice(t.indexOf(\"(\")+1,t.lastIndexOf(\")\"));return[e,r]},Ug=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),es=(t,e)=>{let{base:r,type:n,unit:o}=e,s=Ug.has(o)?\"rem\":o,i=(ar(s)?1:r)+s;if(t===0)return i;let c=\"--\"+(e.varPrefix?e.varPrefix+\"-\":\"\")+(n&&n.replace(\".\",\"-\")),l=`${c}-ratio`;if(t>0){let f=ue[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=ue[t+1],u=Math.abs(t),p=Math.pow(zg,2*u),d=ue[u];return d?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${d}) / ${p.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Ea=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,l=`${\"--\"+(n.varPrefix?n.varPrefix+\"-\":\"\")+(o&&o.replace(\".\",\"-\"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},rs=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},ns=(t,e)=>rs(t,e).map(r=>r/t),os=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,p,d]=rs(o,s);l>16?f=[u,p,d]:f=[u,d],f.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,x=Ea(g+1,f,i,e),_={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:x,index:b};tp(_,e)})},zg=1.618,sw=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let n=Math.abs(t),o=e*Math.pow(r,t),s=e*Math.pow(r,n)/Math.pow(zg,2*n);return Math.max(o,s)},Ot=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),c=\"--\"+(t.varPrefix?t.varPrefix+\"-\":\"\")+(e&&e.replace(\".\",\"-\"))+\"-\";for(let l=0;l<=i;l++){let f=o[1]-l,u=ue[f],p=sw(f,r,n),d=~~(p/r*100)/100,h=c+u,g=es(f,t),m={key:u,variable:h,value:p,base:r,scaling:d,scalingVariable:g,ratio:n,index:f};tp(m,t),s&&os(m,t)}return t},ep=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=S(e)?e:ue[e],a=S(e)?Object.entries(ue).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=n*Math.pow(o,a),f=~~(l/n*100)/100,d=\"--\"+(t.varPrefix?t.varPrefix+\"-\":\"\")+(r&&r.replace(\".\",\"-\"))+\"-\"+i,h=es(a,t),g={key:i,variable:d,value:l,base:n,scaling:f,scalingVariable:h,ratio:o,index:a};return tp(g,c),s&&os(g,c),c},ss=(t=\"A\",e)=>{let r=A(),{unit:n}=r;if(S(t)&&st(t))return`var(${t})`;if(S(t)&&/^(?:env|var|calc|min|max|clamp)\\(/.test(t.trim()))return t;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(cr.some(_=>t.includes(_))||!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+\"-\":\"\"}${Go(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=_=>a.test(_)?`var(${p}${_}${m})`:_;if(g.includes(\"+\")){let[_,E]=g.split(\"+\"),C=`${y(_)} + ${y(E)}`;return h?`calc((${C}) * -1)`:`calc(${C})`}else if(g.includes(\"*\")){let[_,E]=g.split(\"*\"),C=`${y(_)} * ${y(E)}`;return h?`calc((${C}) * -1)`:`calc(${C})`}else if(g.includes(\"-\")){let[_,E]=g.split(\"-\"),C=`${y(_)} - ${y(E)}`;return h?`calc((${C}) * -1)`:`calc(${C})`}let b=r.sizes;if(b){let _=b[t]||b[t.toLowerCase()];if(_!==void 0)return h?`calc(${_} * -1)`:_}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,\"- value is not found because `subSequence` is set to false\"),g=g.slice(0,1)),i||r.useVariable){let _=`var(${p}${g}${m})`;return h?`calc(${_} * -1)`:_}let x=o?o[g]:null;return x?s===\"ms\"||s===\"s\"?h+x.val+s:h+x.scaling+s:console.warn(\"can't find\",o,g)},Ta=(t,e)=>{if(![\"+\",\"-\",\"*\",\"/\",\",\"].filter(s=>t.includes(s+\" \")).length)return t;let n=/(\\s+-\\s+|\\s*[+*/,]\\s*)/;return t.split(n).map(s=>{let i=s.trim();return!i||[\"+\",\"-\",\"*\",\"/\",\",\"].includes(i)?s:ss(i,e)}).join(\"\")},pe=(t,e,r,n)=>{if(typeof t!=\"string\")return A().verbose&&console.warn(e,t,\"is not a string\"),{[e]:t};if(t===\"-\"||t===\"\")return{};if(!n&&t.includes(\"(\")){if(/^(?:env|var)\\(/.test(t.trim()))return{[e]:t};let s=ke(t);n=s[0],t=s[1]}return[\"+\",\"-\",\"*\",\"/\",\",\"].filter(s=>t.includes(s+\" \")).length?t=Ta(t,r):t=ss(t,r),{[e]:n?`${n}(${t})`:t}},Oa=(t,e)=>ue[t-e],is=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Oa(e,o);return r[s]})};R();var rp=(t,e)=>{let r=A(),{cssVars:n}=r;B(t.value)||(n[t.var]=t.value)},as=(t,e,r)=>{let n=A(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f=\"--\"+(e.varPrefix?e.varPrefix+\"-\":\"\")+(c&&c.replace(\".\",\"-\"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let u=`${f}-ratio`;t[u]=a;let[p,d,h]=ns(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})`},Wg=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),ve=(t,e={})=>{let r=A(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=Wg.has(i)?\"rem\":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||as(s,t,e);for(let u in l){let p=l[u],d=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[p.variable+\"_default\"]=d,s[p.variable]=p.scalingVariable;continue}e.useDefault===!1?s[p.variable]=d:(s[p.variable+\"_default\"]=d,s[p.variable]=`var(${p.variable+\"_default\"})`)}},Be=(t,e,r={})=>{let n=A(),{unit:o,media:s,cssVars:i}=n,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=Wg.has(l)?\"rem\":l,{mediaRegenerate:u}=t,{sequence:p,scales:d}=c,h=s[a];if(!h&&n.verbose&&console.warn(\"Can't find media query \",h),!u){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),as(g,c,r);let m=t.unit||o.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=(ar(f)?d[g]:p[g].val)+f;!h&&n.verbose&&console.warn(\"Can't find query \",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+\"_\"+a})`,i[m.variable+\"_\"+a]=y}};R();var Gg=hr(),Zr=t=>{let e=A(),r=\"\";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},iw=t=>{let e=t&&(t.default||t);if(!S(e))return Gg&&console.warn(\"parseRootAttributes:\",e,\"is not a string\"),{};let r=e.match(/<svg\\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\\S+)=[\"']?((?:.(?![\"']?\\s+(?:\\S+)=|\\s*\\/?[>\"']))+.)[\"']?/gm);return o?o.reduce((s,i)=>{let[a,c]=i.split(\"=\");return s[a]=c.replace(/['\"]/g,\"\"),s},{}):{}},aw=(t,e)=>{let r=[];if(t.replace(/id=\"([^\"]*)\"/g,(o,s)=>(r.push(s),o)),!r.length)return t;let n=t;for(let o of r){let s=o.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\"),i=`${e}-${o}`;n=n.replace(new RegExp(`id=\"${s}\"`,\"g\"),`id=\"${i}\"`).replace(new RegExp(`url\\\\(#${s}\\\\)`,\"g\"),`url(#${i})`).replace(new RegExp(`xlink:href=\"#${s}\"`,\"g\"),`xlink:href=\"#${i}\"`).replace(new RegExp(`href=\"#${s}\"`,\"g\"),`href=\"#${i}\"`)}return n},Hg=new Set,cs=(t,e)=>{let r=e&&e.default?e.default:e;if(!S(r))return Gg&&!Hg.has(t)&&(Hg.add(t),console.warn(\"convertSvgToSymbol:\",t,\"is not a string\")),\"\";e=r;let n=iw(e),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,l=aw(e,t).replace(\"<svg\",`<symbol id=\"${t}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"${i}\"`);return l=l.replace(/width=\"[^\"]*\"/,\"\"),l=l.replace(/height=\"[^\"]*\"/,\"\"),l=l.replace(\"</svg\",\"</symbol\"),l=fw(l),l},cw=\"line|circle|ellipse|rect|polyline|polygon|path|stop|use|image\",lw=new RegExp(`<(${cw})\\\\b([^>]*?)\\\\s*/>`,\"g\"),fw=t=>t.replace(lw,\"<$1$2></$1>\");var tn={};I(tn,{appendSVGSprite:()=>ks,appendSvgIconsSprite:()=>Cs,applyDocument:()=>ws,applyHeadings:()=>Ia,applyReset:()=>As,applySpacingSequence:()=>bs,applyTimingSequence:()=>Ss,applyTypographySequence:()=>gs,checkIfBoxSize:()=>ys,getColor:()=>Z,getFontFamily:()=>hs,getFontSizeByKey:()=>ms,getMediaColor:()=>mt,getMediaTheme:()=>Ut,getShadow:()=>_s,getSpacingBasedOnRatio:()=>te,getSpacingByKey:()=>ut,getTheme:()=>fs,getTimingByKey:()=>It,getTimingFunction:()=>zt,runThroughMedia:()=>Pa,setColor:()=>Ue,setFont:()=>ds,setFontFamily:()=>Jr,setGradient:()=>ze,setMediaTheme:()=>ps,setSVG:()=>Qr,setShadow:()=>We,setSvgIcon:()=>vs,setTheme:()=>us,splitSpacedValue:()=>xs});R();var Z=(t,e,r)=>{let n=r||A();if(!S(t)){n.verbose&&console.warn(t,\"- type for color is not valid\");return}if(st(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(T(t))[o,s,i]=t;else{let u=_e(t);if(!u){let{color:p,gradient:d}=n,h=d[t]||p[t];return h?(e&&h[e]&&(h=h[e]),n.useVariable?`var(${h.var})`:h.value):t}if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}let{color:a,gradient:c}=n,l=a[o]||c[o];if(!l)return n.verbose&&console.warn(\"Can't find color \",o),t;e&&(l[e]?l=l[e]:n.verbose&&console.warn(t,\" - does not have \",e));let f=l.rgb;if(!f){let u=n.useVariable?`var(${l.var})`:l.value;if(s&&u){let p=Math.round(parseFloat(s)*100);return`color-mix(in srgb, ${u} ${p}%, transparent)`}return u}return i&&!l[i]&&(f=Ne(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:n.useVariable?`var(${l.var})`:`rgb(${f})`},mt=(t,e,r)=>{let n=r||A();if(e||(e=n.globalTheme===\"auto\"?null:n.globalTheme),!S(t)){n.verbose&&console.warn(t,\"- type for color is not valid\");return}if(st(t))return`var(${t})`;let o,s,i;if(T(t))o=t[0];else{let u=_e(t);if(u){if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}else o=t}let{color:a,gradient:c}=n,l=a[o]||c[o],f=w(l);if(f&&l.value)return Z(t,`@${e}`,r);if(f){if(n.useVariable&&l.var)return s||i?Z(t,null,r):`var(${l.var})`;if(e)return Z(t,`@${e}`,r);{let u={};for(let p in l){if(p.charCodeAt(0)!==64)continue;let d=n.media[p.slice(1)];if(!d)continue;let h=\"@media \"+(d===\"print\"?`${d}`:`screen and ${d}`);u[h]=Z(t,p,r)}return u}}else return n.verbose&&console.warn(\"Can't find color\",t),t},Ue=(t,e,r)=>{let n=A();if(S(t)&&st(t)){let g=t.slice(2);if(t=Z(g),!(t.includes(\"rgb\")||t.includes(\"var\")||t.includes(\"#\"))){let m=g.split(\" \"),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(S(y)||T(y)||w(y))&&(n.color[m[0]]=Ue(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,x=m[1]!==void 0?m[1]:\"1\",_=m[2];_&&(b=Ne(b,_)),t=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:\"1\";if(b)try{let _=ce(m[0]);_&&_.length>=3?t=`rgba(${Ne(_.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]}),w(t)){let g={};for(let m in t)g[m]=Ue(t[m],e,m.slice(0,1)===\"@\"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}color-${e}`,b,x={};for(let _ in g){if(_.charCodeAt(0)!==64)continue;let E=_.slice(1),C=g[_],P=C&&(C.value||C);!P||typeof P!=\"string\"||(x[E]=P,(E===\"light\"||b===void 0)&&(b=P))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let _ in x){let E=`[data-theme=\"${_}\"]`;if(n.cssMediaVars[E]||(n.cssMediaVars[E]={}),n.cssMediaVars[E][y]=x[_],_===\"light\"||_===\"dark\"){let C=`@media (prefers-color-scheme: ${_})`;n.cssMediaVars[C]||(n.cssMediaVars[C]={}),n.cssMediaVars[C][y]=x[_]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}color-${e}`+(r?`-${r}`:\"\"),i=t.value||t;if(S(i)&&i.includes(\".\")&&!i.includes(\"(\")){let[g,m]=i.split(\".\"),y=n.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat(\"0.\"+m)||1})`)}if(S(i)&&!i.includes(\"(\")&&!i.startsWith(\"#\")){let g=_e(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(S(m)||T(m)||w(m))&&(n.color[g.name]=Ue(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=Ne(b,g.tone));let x=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${x})`}}}let a=ce(i),[c,l,f,u=1]=a,p=parseFloat(u.toFixed(2)),d=`${c}, ${l}, ${f}`,h=`rgba(${d}, ${p})`;return n.useVariable&&(n.cssVars[s]=h),{var:s,rgb:d,alpha:p,value:h}},ze=(t,e,r)=>{let n=A();if(S(t)&&st(t)&&(t=Z(t.slice(2))),T(t))return{\"@light\":ze(t[0],e,\"light\"),\"@dark\":ze(t[0],e,\"dark\")};if(w(t)){let i={};for(let a in t)i[a]=ze(t[a],e,a.slice(0,1)===\"@\"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}gradient-${e}`+(r?`-${r}`:\"\");return n.useVariable&&(n.cssVars[s]=t.value||t),{var:s,value:t.value||t}};R();var uw=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\"]),qg=[\"color\",\"Color\",\"background\",\"Background\",\"fill\",\"Fill\",\"stroke\",\"Stroke\"],pw=t=>{for(let e=0;e<qg.length;e++)if(t.includes(qg[e]))return!0;return!1},Ra=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let l=[\"color\",\"Color\",\"background\",\"border\"].some(f=>a.includes(f));return e[a]=l?Z(t[a]):t[a]}),e},ls=t=>(t.value||(t.value=Ra(t)),t.value),fs=(t,e)=>{let r=A();if(r.useVariable)return Ut(t,e);let n=r.theme;if(S(t)){let[o,s]=t.split(\" \"),i=n[o];if(i){if(!s&&!e)return ls(i);t=[o,s||e]}}if(B(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return ls(a[s]);if(i&&i[s])return ls(i[s]);if(c&&c[s])return ls(c[s])}else if(w(t))return Ra(t)},dw=(t,e,r)=>{if(w(e))t.variants.inverse.value=Ra(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},hw=(t,e,r,n)=>{let o=fs(r);n[`&:${e}`]=o,w(r)&&!r.value&&(r.value=o)},gw=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return hw(t,o,s,e),t}),t):void 0},mw=(t,e,r,n)=>{let o=fs(r);n[`@media (prefers-color-scheme: ${e})`]=o,w(r)&&!r.value&&(r.value=o)},yw=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o===\"dark\"||o===\"light\")&&mw(t,o,s,e),o===\"inverse\"&&dw(t,s,e),t}),t):void 0},bw=(t,e)=>{let r=A(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return S(i)?n[s]=r.theme[i]:ls(n[s]),t}),t):void 0},us=(t,e)=>{let r=A();if(r.useVariable)return ps(t,e);let{state:n,media:o,helpers:s}=t,i=Ra(t,e),c=`--${r.varPrefix?r.varPrefix+\"-\":\"\"}theme-${e}`;return gw(t,i),yw(t,i),bw(t,i),{var:c,value:i,state:n,media:o,helpers:s}};var np=(t,e,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:\"auto\",i={},a=new Set;for(let l in t)if(t[l])for(let f of Object.keys(t[l]))a.add(f);let c=new Set;for(let l of a){let f=l.slice(0,1);if(!(f===\"@\"||f===\".\"||f===\":\")&&pw(l))for(let u in t){if(c.has(u))continue;let p=t[u]?.[l];if(p===void 0)continue;let d=Z(p,`@${u}`);d!==void 0&&S(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!uw.has(d)&&c.add(u)}}for(let l of a){let f=l.slice(0,1),u=Object.values(t).some(p=>B(p?.[l]));if(f===\".\"&&u){let p=l.slice(1),d={};for(let h in t)B(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=np(d,`${e}-${p}`,r)}else if(f===\":\"&&u){let p=l.replace(/^:+/,\"\"),d={};for(let h in t)B(t[h]?.[l])&&(d[h]=t[h][l]);i[l]=np(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=Z(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m===\"light\"||g===void 0))&&(g=b);let x=`[data-theme=\"${m}\"]`;if(o[x]||(o[x]={}),o[x][d]=b,m===\"dark\"||m===\"light\"){let _=`@media (prefers-color-scheme: ${m})`;o[_]||(o[_]={}),o[_][d]=b}}g!==void 0&&(n[d]=g),i[l]=`var(${d})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[\".inversed\"]={color:i.background||i.backgroundColor,background:i.color}),i},ps=(t,e,r,n)=>{let o=A(),{cssVars:s}=o,i={value:t},a=!r&&!n;if(B(t)){if(a&&o.useVariable){let c={};for(let l in t)l.startsWith(\"@\")&&B(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=np(c,e,o);Object.assign(i,l)}}for(let c in t){let l=c.slice(0,1),f=t[c];if(l===\"@\"||l===\":\"||l===\".\"){let u=l===\"@\"&&c;i[c]=ps(f,e,c,n||u)}else if(!a){let u=Z(f,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?\"-\"+p.join(\"-\"):\"\",g=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=u),i[c]=`var(${g})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[\".inversed\"]&&(i.background||i.color||i.backgroundColor)&&(i[\".inversed\"]={color:i.background||i.backgroundColor,background:i.color})}if(S(t)&&st(t)){let l=o.theme[t.slice(2)];return Ut(l,n)}return i},op=t=>{let e=A(),r={};for(let n in t){let o=n.slice(0,1);if(B(t[n])){if(o===\"@\")continue;o===\":\"?r[`&${n}`]=op(t[n]):o===\".\"&&(r[`&${n}`]=op(t[n]))}else r[n]=t[n]}return r},Yg=(t,e)=>{let r=e.shift();return t[r]?Yg(t[r],e):t},Kg=(t,e)=>T(e)?Yg(t,e):S(e)&&t[e]?t[e]:t;var Ut=(t,e)=>{let r=A();if(S(t)&&st(t)&&(t=Ut(t.slice(2))),!t||!S(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=T(t)?t:t.split(\" \"),s=r.theme[n];return s&&o.length?s=Kg(s,o):s&&e&&(s=Kg(s,e)),op(s)};R();R();var ds=(t,e)=>{let r=A(),n=`--font-${e}`;if(!t||T(t)&&!t[0])return;let o;if(t.isVariable){let s=Vt(t.url,r.files)||t.url;Kr(s)?o=Yr(s):o=je(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||\"swap\"})}else if(t[0])o=_r(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Vt(i,r.files)||i):Vt(t.url,r.files)||t.url;o=je(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},hs=(t,e)=>{let r=A(),{fontFamily:n}=r;return xr(e||n,t)},Jr=(t,e)=>{let r=A(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!n.default)&&(n.default=e),w(s)&&(s=br(s));let a=`--font-family-${e}`,c=`${s.join(\", \")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};R();var Pa=t=>{let e=A(),{typography:r,media:n}=e;for(let o in t){let s=o.slice(0,1)===\"@\",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:l,base:f,ratio:u,range:p,subSequence:d,h1Matches:h,unit:g}=t;nt(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=n[c],_=\"@media \"+(x===\"print\"?`${x}`:`screen and ${x}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+b},!a){nt(i,{sequence:{},scales:{},vars:{}}),Ot(i),Be(t,o);continue}nt(i,{sequence:{},scales:{},templates:{},vars:{}}),Ot(i),Be(t,o)}},Ia=t=>{let e=A();if(t.h1Matches){let r=t.unit,n=is(t),{templates:o}=t;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},gs=()=>{let t=A(),{typography:e}=t;Ot(e),Ia(e),ve(e),Pa(e)},ms=t=>{let e=A(),{typography:r}=e;return pe(t,\"fontSize\",r)};R();R();var xw=t=>{let r=A().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return Ot(o),o},_w=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)===\"@\"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;nt(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),Ot(r),Be(t,e)}},ys=t=>{let e=t.toLowerCase(),r=e.includes(\"width\")||e.includes(\"height\"),n=e.includes(\"border\")||e.includes(\"outline\");return r&&!n},bs=()=>{let t=A(),{spacing:e}=t;Ot(e),ve(e),_w(e)},Sw=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Ot(t)},ut=(t,e=\"padding\",r,n)=>{let o=Sw(r);if(S(t)&&!n&&t.includes(\"(\")){let i=ke(t);n=i[0],t=i[1]}let s=n?[t]:br(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)=>pe(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return pe(t,e,o,n)}},te=(t,e,r,n)=>{let o=A(),{spacing:s}=o,i=r||t[e];if(!n&&S(i)&&i.includes(\"(\")){let a=ke(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=xw(t);return ut(i,e,a,n)}return ut(i,e,s,n)},xs=t=>{let e=r=>{let n=[\"+\",\"-\",\"*\",\"/\"].includes(r),o=cr.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+\"_default\":r};return t.split(\",\").map(r=>r.trim()).map(e).join(\",\").split(\" \").map(e).join(\" \")};R();var We=(t,e,r,n)=>{let o=A();if(T(t))return{\"@light\":We(t[0],e,\"light\"),\"@dark\":We(t[1],e,\"dark\")};if(w(t)){let a={};for(let c in t)a[c]=We(t[c],e,c.startsWith(\"@\")?c.slice(1):c);return a}S(t)&&!Qt.test(t)&&(t=Se(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=Z(c);if(le(l))return l;if(/^\\d/.test(c)||c===\"0\"||c.includes(\"px\")||c.slice(-2)===\"em\"||c===\"inset\"||c===\"none\")return c;let f=ut(c,\"shadow\");return f&&f.shadow?f.shadow:c}).join(\" \"))).join(\", \"));let i=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}shadow-${e}`+(r?`-${r}`:\"\");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},_s=(t,e)=>{let r=A();if(e||(e=r.globalTheme),!S(t)){r.verbose&&console.warn(t,\"- type for color is not valid\");return}if(st(t))return`var(${t})`;let[n]=T(t)?t:t.split(\" \"),s=r.shadow[n],i=w(s);if(!s)return r.verbose&&console.warn(\"Can't find color \",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t,\" - does not have \",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let l=r.media[c.slice(1)],f=\"@media \"+(l===\"print\"?`${l}`:`screen and ${l}`);a[f]=s.value}return a}return r.verbose&&console.warn(\"Can't find color\",t),t};R();var Ss=()=>{let t=A(),{timing:e}=t;Ot(e),ve(e)},zt=t=>{let e=A(),{timing:r}=e;return r[t]||r[Ho(t)]||t},It=(t,e=\"timing\")=>{let r=A(),{timing:n}=r;return pe(t,e,n)};R();var ws=()=>{let t=A(),{document:e,fontFamily:r,theme:n,typography:o}=t;return nt(e,{theme:n.document,fontFamily:xr(r),fontSize:o.base,lineHeight:o.lineHeight})};R();var ip={document:q},Qr=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn(\"setSVG: val is not defined\",e);return}return r.useSvgSprite?cs(e,t):t},ks=(t,e=ip)=>{let r=A(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];Zg(n,e)},vs=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?Qr(t,e):t},Cs=(t,e=ip)=>{let r=A(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];Zg(n,e)},sp=(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},ww=(t,e)=>{let r=typeof DOMParser<\"u\"?DOMParser:null;if(r){let n=`<svg xmlns=\"http://www.w3.org/2000/svg\">${e}</svg>`,s=new r().parseFromString(n,\"image/svg+xml\");return s.querySelector(\"parsererror\")?null:s.documentElement}return null},Xg=(t,e,r)=>{for(;e.firstChild;){let n=e.firstChild;r.appendChild(t.importNode(n,!0)),n.remove()}},Zg=(t,e=ip)=>{let r=A(),n=e.document||q;if(!n||!n.documentElement)return r.verbose&&console.warn(\"To append SVG sprites it should be run in browser environment\"),Zr(t);let o=n.querySelector(\"#svgSprite\"),s=Zr(t),i=`<svg aria-hidden=\"true\" width=\"0\" height=\"0\" style=\"position:absolute\" id=\"svgSprite\">${s}</svg>`,a=ww(n,s);if(o)if(a)Xg(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML(\"beforeend\",s);else{let c=sp(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=sp(n);c&&c.nodeType&&(Xg(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML(\"afterbegin\",i);else{let c=sp(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};R();var As=(t={})=>{let e=A(),{reset:r,typography:n,document:o}=e;if(r){if(r[\":root\"]){let c=r,l=n.templates;c.body={...e.useDocumentTheme?Ut(\"document\"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?Ut(\"document\"):{};if(r.html&&At(r.html,a),n.unit){let{media:c}=e;for(let l in n){if(l.charAt(0)!==\"@\")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let u=f.unit,p=f.base||n.base,d=f.browserDefault||n.browserDefault,h=l.slice(1),g=c[h];if(!g)continue;let m=\"@media \"+(g===\"print\"?g:\"screen and \"+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=p/d+u}}return H(nt(r,t),{html:{position:\"absolute\",width:\"100%\",height:\"100%\",top:\"0\",left:\"0\",margin:\"0\",WebkitFontSmoothing:\"subpixel-antialiased\",scrollBehavior:\"smooth\",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+\"px\",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:\"border-box\",height:\"100%\",margin:0,fontFamily:o.fontFamily,fontSize:n.unit?\"1\"+e.unit.default:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:\"currentColor\"},button:{color:\"inherit\",font:\"inherit\",background:\"transparent\",border:\"none\",cursor:\"pointer\",appearance:\"none\",WebkitAppearance:\"none\"},\"input, select, textarea\":{color:\"inherit\",font:\"inherit\"},fieldset:{border:0,padding:0,margin:0}})}};R();var kw=new Set([\"none\",\"hidden\",\"dotted\",\"dashed\",\"solid\",\"double\",\"groove\",\"ridge\",\"inset\",\"outset\",\"initial\"]),vw=new Set([\"to\",\"top\",\"bottom\",\"left\",\"right\",\"center\",\"at\",\"circle\",\"ellipse\",\"closest-side\",\"farthest-side\",\"closest-corner\",\"farthest-corner\"]),Cw=t=>kw.has(t),de=t=>{let e=t+\"\";if(Qt.test(e))return e;let r=e.trim();return r===\"none\"||r===\"0\"||r===\"initial\"||r===\"inherit\"||r===\"unset\"?e:e.split(/\\s+/).map(o=>{if(o=o.trim(),!o)return\"\";if(st(o))return`var(${o})`;if(Cw(o)||/^\\d/.test(o)||o===\"0\")return o;let s=Z(o);if(le(s))return s;let i=ut(o,\"border\");return i&&i.border?i.border:o}).join(\" \")},$a=t=>Qt.test(t)?t:t.split(/\\s+/).map(e=>{if(e=e.trim(),!e)return\"\";if(st(e))return`var(${e})`;if(/^\\d/.test(e)||e.includes(\"px\")||e===\"0\")return e;let r=Z(e);return le(r)?r:e}).join(\" \"),Fa=(t,e)=>_s(t,e),Es=(t,e)=>Qt.test(t)?t:Se(t).map(r=>(r=r.trim(),r?r.split(/\\s+/).map(n=>{if(n=n.trim(),!n)return\"\";if(st(n))return`var(${n})`;if(n===\"inset\"||n===\"none\")return n;let o=Z(n);if(le(o)){let i=mt(n,e);return w(i)?Object.values(i).filter(a=>a.includes(\": \"+e))[0]:i}if(/^\\d/.test(n)||n===\"0\"||n.includes(\"px\")||n.slice(-2)===\"em\")return n;let s=ut(n,\"shadow\");return s&&s.shadow?s.shadow:n}).join(\" \"):\"\")).join(\", \"),Ts=(t,e)=>{let r=t.indexOf(\"(\");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(\")\")),s=\")\",a=Se(o).map(c=>(c=c.trim(),c.split(/\\s+/).map(f=>{if(!f||/^\\d/.test(f)||f===\"0\"||vw.has(f)||f===\"transparent\"||Qt.test(f))return f;let u=Z(f);return le(u)?u:f}).join(\" \")));return n+a.join(\", \")+s},Da=(t,e)=>{let r=A();return Se(t).map(n=>{let o=n.trim();return st(o)?`var(${o})`:/^var\\(/.test(o)||o.includes(\"url\")?o:o.includes(\"gradient\")?Ts(o,e):r.gradient[t]?{backgroundImage:mt(t,e||r.globalTheme)}:o.includes(\"/\")||o.startsWith(\"http\")||o.includes(\".\")&&!_e(o)?`url(${o})`:o}).join(\", \")},La=t=>S(t)&&t.split(\" \").map(e=>ut(e,\"gap\").gap).join(\" \"),ap=t=>{let e=t.split(\" \");return e.length?e.map(r=>st(r)?`var(${r})`:r.length<3||r.includes(\"ms\")?It(r).timing||r:zt(r)?zt(r):r).join(\" \"):t},Os=(t,e,r)=>{if(S(t))return t.split(\",\").map(n=>It(n).timing||n).join(\",\")},Ma=t=>{let e=t.split(\",\");if(e.length)return e.map(ap).join(\",\")};function it(t,e,r={},n={}){let o=K.call(this,e||r[t]);if(o==null)return;let s;if(S(o)){if(o.includes(\"(\")){let c=ke(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=ys(t);!i&&a&&!n.ratio&&(o=xs(o))}return n.ratio?te(r,t,o,s):ut(o,t,void 0,s)}var j=(t,e=null,r)=>it(t,e,r,{ratio:!0}),Rs=(t,e,r)=>{if(S(t))return{borderRadius:t.split(\" \").map((n,o)=>te(e,r,n)[r]).join(\" \")}};R();var Aw=(t,e)=>{let r=A(),{cssVars:n}=r,o=e.startsWith(\"--\")?e:`--${e}`;return n[o]=t,t},$t=t=>t,Na={color:Ue,gradient:ze,font:ds,fontFamily:Jr,fontfamily:Jr,theme:us,icons:vs,semanticIcons:$t,semanticicons:$t,svg:Qr,svgData:$t,typography:$t,shadow:We,spacing:$t,media:$t,grid:$t,class:$t,timing:$t,reset:$t,unit:$t,animation:$t,vars:Aw,sizes:$t},cp=(t,e,r)=>{let n=A(),o=Qo(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=Na[o]||Na[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){n.verbose&&console.warn(\"Error setting\",s,\"value\",e,r,c)}n.verbose&&console.warn(\"Can not find\",s,\"method in scratch\")},lp=(t,e)=>{let r=A(),n=t.toLowerCase();return Object.keys(e).sort((s,i)=>{let a=w(e[s])||T(e[s])?1:0,c=w(e[i])||T(e[i])?1:0;return a-c}).forEach(s=>{try{return cp(n,e[s],s)}catch(i){r.verbose&&console.warn(\"Error setting\",n,\"value\",e[s],s,i)}}),r[n]||r[t]},ja=(t,e)=>{let r=e||A();r.globalTheme=t;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<\"u\"?document:null),s=o&&o.defaultView||(typeof window<\"u\"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(t&&t!==\"auto\")a.setAttribute(\"data-theme\",t),t===\"dark\"||t===\"light\"?a.style.colorScheme=t:a.style.colorScheme=\"light dark\";else if(s&&s.matchMedia){let l=u=>{a.setAttribute(\"data-theme\",u.matches?\"dark\":\"light\")},f=s.matchMedia(\"(prefers-color-scheme: dark)\");if(l(f),a.style.colorScheme=\"light dark\",!r.__prefersListener){r.__prefersListener=l;try{f.addEventListener(\"change\",l)}catch{f.addListener(l)}}}else a.setAttribute(\"data-theme\",\"light\"),a.style.colorScheme=\"light\"}let i=r.varPrefix?`--${r.varPrefix}-theme-`:\"--theme-\";for(let a in r.cssVars)a.startsWith(i)&&delete r.cssVars[a];for(let a in r.cssMediaVars)delete r.cssMediaVars[a];if(o&&r.cssVars){let a=r.scopeSelector||\":root\",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let u=0;u<f.length;u++)if(f[u].selectorText===a){for(let p in r.cssVars)f[u].style.setProperty(p,r.cssVars[p]);return r}}catch{}}return r},Ew={},Sr=(t,e=Ew)=>{let r=e.config||A(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:p,useDefaultConfig:d,semanticIcons:h,files:g,assets:m,...y}=t;e.newConfig&&(r=Ca(e.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),l!==void 0&&(r.useIconSprite=l),p!==void 0&&(r.useDocumentTheme=p),f!==void 0&&(r.globalTheme=f),u!==void 0&&(r.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),d!==void 0&&(r.useDefaultConfig=d),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let x=(r.document&&r.document.documentElement?r.document:null)||(typeof document<\"u\"?document:null),_=x&&x.defaultView||(typeof window<\"u\"?window:null),E=x&&(r.themeRoot||x.documentElement);if(E&&typeof E.setAttribute==\"function\")if(r.globalTheme&&r.globalTheme!==\"auto\")E.setAttribute(\"data-theme\",r.globalTheme),r.globalTheme===\"dark\"||r.globalTheme===\"light\"?E.style.colorScheme=r.globalTheme:E.style.colorScheme=\"light dark\";else if(_&&_.matchMedia){let $=W=>{E.setAttribute(\"data-theme\",W.matches?\"dark\":\"light\")},lt=_.matchMedia(\"(prefers-color-scheme: dark)\");if($(lt),E.style.colorScheme=\"light dark\",!r.__prefersListener){r.__prefersListener=$;try{lt.addEventListener(\"change\",$)}catch{lt.addListener($)}}}else E.setAttribute(\"data-theme\",\"light\"),E.style.colorScheme=\"light\";r.__svgCache||(r.__svgCache={});let C=Object.keys(y),P=new Set(C);if(C.forEach(O=>{let $=O.toLowerCase();$!==O&&P.has($)&&H(y[$],y[O])}),C.map(O=>{let $=O.toLowerCase();if(!($!==O&&P.has($)))return lp(O,y[O])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{gs()}catch(O){r.verbose&&console.warn(\"Error applying typography sequence\",O)}if(y.spacing)try{bs()}catch(O){r.verbose&&console.warn(\"Error applying spacing sequence\",O)}if(y.timing)try{Ss()}catch(O){r.verbose&&console.warn(\"Error applying timing sequence\",O)}ws();let L=As();return L&&(r.reset=L),r};var wr=new Map,em=null,pp=null,Tw=null;function Ps(t){t.batchAtomicCss&&(pp=t.batchAtomicCss),t.compoundCssClass&&(Tw=t.compoundCssClass)}var Ow=new Set;function dp(t){try{let e=A();e&&(e.document=t)}catch{}t&&Ow.add(t)}function Va(){try{let t=A();if(t?.document)return t.document}catch{}return typeof document<\"u\"?document:null}var Rw={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 kr(t){return t.replace(/[A-Z]/g,e=>\"-\"+e.toLowerCase())}function Ba(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 Pw(t){let e=String(t);return e.length<=20?e.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():Ba(e)}function Jg(t,e,r){let n=(r?r+\"\u0001\":\"\")+t+\":\"+e,o=wr.get(n),s=o?null:kr(t);if(!o){let a=Rw[t]||Ba(t),c=Pw(e);o=r?`_${r}_${a}-${c}`:`_${a}-${c}`,wr.set(n,o)}if(typeof e==\"string\"&&(e.indexOf(\"}\")!==-1||e.indexOf(\"{\")!==-1))return o;let i=`.${o}{${s||kr(t)}:${e}}`;return Wt(i),o}var Qg=new WeakMap;function Wt(t,e){let r=rm(e);if(!r)return;let n=Qg.get(r);if(n||(n=new Set,Qg.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var tm=new WeakMap;function rm(t){let e=t||Va();if(!e||!e.head)return null;let r=tm.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let n=e.head.querySelector(\"style[data-smbls]\");n||(n=e.createElement(\"style\"),n.setAttribute(\"data-smbls\",\"\"),e.head.appendChild(n));let o=n.sheet;return tm.set(e,o),em=o,o}var Iw=8;function he(t,e,r){if(!t||typeof t!=\"object\")return\"\";let n=null,o=0,s=[],i=[];for(let c in t){let l=t[c];l==null||l===!1||l===\"\"||(typeof l==\"object\"?i.push([c,l]):pp?(n||(n=[]),n.push(c,String(l)),o++):s.push(Jg(c,String(l),r)))}if(n&&o>=Iw){let c=n.join(\"\\0\"),l=pp(c),f=l.indexOf(\"\\0\"),u=l.substring(0,f),p=l.substring(f+1);if(p){let d=p.split(`\n`);for(let h=0;h<d.length;h++)d[h]&&Wt(d[h])}s.push(u)}else if(n)for(let c=0;c<n.length;c+=2)s.push(Jg(n[c],n[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push($w(i[c][0],i[c][1],r));return s.concat(a).join(\" \").trim()}var up=new Map;function $w(t,e,r){let n=(r?r+\"\u0001\":\"\")+t+JSON.stringify(e),o=wr.get(n);if(o){let p=up.get(o);if(p)for(let d=0;d<p.length;d++)Wt(p[d]);return o}o=r?`_${r}_c${Ba(n)}`:`_c${Ba(n)}`;let s=\"\",i=[],a=p=>typeof p==\"string\"&&(p.indexOf(\"{\")!==-1||p.indexOf(\"}\")!==-1),c=(p,d)=>{let h=\"\";for(let g in d){let m=d[g];if(m!=null)if(typeof m==\"object\")c([...p,g],m);else{if(a(m))continue;h+=`${kr(g)}:${m};`}}h&&(p.length===0?s+=h:i.push({chain:p,body:h}))};c([],e);let l=p=>{if(!p.length)return`.${o}`;let d=p[0].split(\",\").map(h=>h.trim()).map(h=>h.includes(\"&\")?h.replace(/&/g,`.${o}`):h.startsWith(\":\")?`.${o}${h}`:`.${o} ${h}`);for(let h=1;h<p.length;h++){let g=p[h].split(\",\").map(y=>y.trim()),m=[];for(let y of d)for(let b of g)b.includes(\"&\")?m.push(b.replace(/&/g,y)):b.startsWith(\":\")?m.push(y+b):m.push(y+\" \"+b);d=m}return d.join(\", \")},f=[];if(t.startsWith(\"@media\")||t.startsWith(\"@supports\")){if(s){let p=`${t}{.${o}{${s}}}`;f.push(p),Wt(p)}for(let p of i){let d=l(p.chain),h=`${t}{${d}{${p.body}}}`;f.push(h),Wt(h)}return up.set(o,f),wr.set(n,o),o}let u=l([t]);if(s){let p=`${u}{${s}}`;f.push(p),Wt(p)}for(let p of i){let h=`${l([t,...p.chain])}{${p.body}}`;f.push(h),Wt(h)}return up.set(o,f),wr.set(n,o),o}function ct(t){if(rm(),typeof t==\"string\"){Wt(t);return}let e=Object.keys(t),r=n=>{let o=n.match(/max-width:\\s*(\\d+)/);return o?parseInt(o[1]):0};e.sort((n,o)=>{let s=n.startsWith(\"@media\"),i=o.startsWith(\"@media\");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of e){let o=t[n];if(n.startsWith(\"@media\")||n.startsWith(\"@supports\"))for(let s in o){let i=o[s];if(typeof i==\"object\"&&i!==null){let a=\"\";for(let c in i){let l=c.startsWith(\"--\")?c:kr(c);a+=`${l}:${i[c]};`}Wt(`${n}{${s}{${a}}}`)}else{let a=s.startsWith(\"--\")?s:kr(s);Wt(`${n}{${a}:${i};}`)}}else{let s=\"\",i=!1;for(let a in o){let c=o[a];if(typeof c==\"object\"&&c!==null)i=!0;else{let l=a.startsWith(\"--\")?a:kr(a);s+=`${l}:${c};`}}if(s&&Wt(`${n}{${s}}`),i){let a=[],c=[];for(let l in o)typeof o[l]==\"object\"&&o[l]!==null&&(l.startsWith(\"@media\")||l.startsWith(\"@supports\")?a.push(l):c.push(l));a.sort((l,f)=>{let u=p=>{let d=p.match(/max-width:\\s*(\\d+)/);return d?parseInt(d[1]):0};return u(f)-u(l)});for(let l of c)ct({[`${n} ${l}`]:o[l]});for(let l of a)ct({[l]:{[n]:o[l]}})}}}}function en(t,e){let r=\"\";for(let n in e){let o=\"\";for(let s in e[n])o+=`${kr(s)}:${e[n][s]};`;r+=`${n}{${o}}`}return Wt(`@keyframes ${t}{${r}}`),t}function nm(){wr.clear(),em=null}function hp(){return wr.size}R();var Yp={};I(Yp,{DELEGATED_EVENTS:()=>an,LIFECYCLE_EVENTS:()=>qe,MIXINS:()=>Ua,NON_BUBBLING_EVENTS:()=>za,REGISTRY:()=>_t,SVG_TAGS:()=>on,addDelegatedEvent:()=>Is,addMethods:()=>pn,applyExtends:()=>ln,cacheNode:()=>Ge,create:()=>Ht,createHTMLNode:()=>nn,detectTag:()=>He,dispose:()=>Ke,isSvgTag:()=>sn,isValidTag:()=>rn,registerEvent:()=>cn,remove:()=>un,removeDelegatedEvent:()=>$s,update:()=>fn});var mp=\"http://www.w3.org/2000/svg\",on=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\"]),Fw=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 rn(t){return Fw.has(t)||on.has(t)}function sn(t){return on.has(t)}function He(t){let{tag:e,key:r}=t;if(typeof e==\"function\"&&(e=e(t)),e===!0&&(e=r),typeof e==\"string\"&&rn(e))return e;if(!r||typeof r!=\"string\")return\"div\";let n=new Set([\"html\",\"head\",\"body\",\"meta\",\"link\",\"script\",\"style\",\"title\",\"base\",\"noscript\",\"template\"]),o=r.toLowerCase();return o.includes(\".\")&&(o=o.split(\".\")[0]),o.includes(\"_\")&&(o=o.split(\"_\")[0]),rn(o)&&!n.has(o)?o:\"div\"}var om={};function nn(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(sn(t)){let n=e?.parent;if(t===\"svg\"||n?.node?.namespaceURI===mp)return r.createElementNS(mp,t);if(t!==\"svg\")return r.createElement(\"div\")}return r.createElement(t)}function Ge(t){let e=t.tag=He(t),n=sn(e)&&(e===\"svg\"||t.parent?.node?.namespaceURI===mp)?\"svg:\"+e:e,o=t?.context?.document||globalThis.document,s=om[n];if(s||(s=om[n]=nn(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?nn(e,t):s.cloneNode(!0);return e===\"string\"&&(i.nodeValue=t.text||\"\"),i}var _t=new Set([\"extends\",\"children\",\"content\",\"childrenAs\",\"childExtends\",\"childExtendsRecursive\",\"childProps\",\"inheritParentProps\",\"state\",\"if\",\"define\",\"deps\",\"tag\",\"attr\",\"style\",\"text\",\"html\",\"value\",\"data\",\"classlist\",\"class\",\"scope\",\"root\",\"context\",\"$router\",\"routes\",\"fetch\",\"variables\",\"query\",\"key\",\"component\",\"preventContentUpdate\",\"preventContentRecreate\",\"subscribeTo\",\"autoGrow\",\"__name\",\"__ref\",\"__hash\",\"__text\",\"parent\",\"node\"]),Ua={text:\"text\",html:\"html\",style:\"style\",attr:\"attr\",data:\"data\",classlist:\"classlist\",state:\"state\",scope:\"scope\"},qe=new Set([\"start\",\"init\",\"complete\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeUpdate\",\"update\",\"afterUpdate\",\"beforeClassAssign\",\"lazyLoad\",\"render\",\"renderRouter\",\"done\",\"create\",\"frame\",\"startUpdate\",\"stateUpdate\",\"beforeStateUpdate\",\"initInspect\",\"initSync\",\"beforeRemove\",\"remove\"]),za=new Set([\"load\",\"error\",\"abort\",\"scroll\",\"canplay\",\"canplaythrough\",\"ended\",\"pause\",\"play\",\"playing\",\"ratechange\",\"seeked\",\"seeking\",\"stalled\",\"suspend\",\"timeupdate\",\"volumechange\",\"waiting\",\"durationchange\",\"loadeddata\",\"loadedmetadata\",\"progress\",\"emptied\",\"resize\"]),sm=new Set([\"wheel\",\"mousewheel\",\"touchstart\",\"touchmove\",\"touchend\",\"touchcancel\"]),an=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\",\"wheel\",\"contextmenu\",\"drag\",\"dragstart\",\"dragend\",\"dragenter\",\"dragleave\",\"dragover\",\"drop\"]);var yp=new WeakMap,Dw={passive:!0},Lw={passive:!0,capture:!0},bp=(t,e)=>sm.has(t)?e?Lw:Dw:e||!1;function am(t){let e=yp.get(t);return e||(e={handlers:new Map,installed:new Set},yp.set(t,e)),e}function Mw(t,e){let r=am(e);if(r.installed.has(t))return;r.installed.add(t);let n=t===\"focus\"||t===\"blur\"||t===\"focusin\"||t===\"focusout\"||t===\"mouseenter\"||t===\"mouseleave\",o=t===\"mouseenter\"||t===\"mouseleave\";e.addEventListener(t,s=>{let i=s.target;for(;i&&i!==e;){let a=r.handlers.get(t);if(a){let c=a.get(i);if(c){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},bp(t,n))}function Is(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=am(n);Mw(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function $s(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=yp.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function im(t){return an.has(t)&&!qe.has(t)}function cn(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o?.designSystem,i=c=>{s&&ot(s);try{let l=r.call(e,c,e,e.state,o);if(l&&typeof l.then==\"function\"){l.catch(f=>{e.error=f,console.error(\"[DOMQL] Async event error:\",f)}).finally(()=>{s&&tt()});return}}catch(l){if(e.error=l,console.error(\"[DOMQL] Event error:\",l),o?.strictMode)throw l}s&&tt()},a=za.has(t);if(!a&&im(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;Is(t,n,i,c)}else n.addEventListener(t,i,bp(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(!a&&im(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;$s(t,n,c)}else n.removeEventListener(t,i,bp(t,!1))})}function cm(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 ln(t,e,r){let n=cm(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=lm(n[i],s);a&&a!==e&&fm(t,a,r,new Set([e]))}}function lm(t,e){if(typeof t==\"string\"){if(t.includes(\">\")){let r=t.split(\">\").map(o=>o.trim()),n=e[r[0]]||e[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return e[t]||e[`smbls.${t}`]||null}return typeof t==\"object\"&&t!==null?t:null}function fm(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=cm(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=lm(o[a],i);c&&fm(t,c,r,n)}}for(let s in e){if(s===\"extends\"||s===\"extend\")continue;let i=e[s];t[s]===void 0?i&&typeof i==\"object\"&&!Array.isArray(i)&&typeof i!=\"function\"?t[s]={...i}:t[s]=i:typeof t[s]==\"object\"&&typeof i==\"object\"&&!Array.isArray(t[s])&&!Array.isArray(i)&&t[s]!==null&&i!==null?t[s]=um(t[s],i):t[s]=i}}function um(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o==\"object\"&&typeof s==\"object\"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!=\"function\"&&typeof s!=\"function\"?r[n]=um(o,s):r[n]=s}return r}Mr();function fn(t={},e={}){let r=this,n=r.__ref;if(!n)return;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;let o=!t||Object.keys(t).length===0;if(ye(()=>{if(t.state&&rt(r.state)&&r.state.update(t.state),t.text!==void 0&&(r.text=t.text,!n.__exec.text&&r.node&&(r.tag===\"string\"?r.node.nodeValue=t.text??\"\":r.node.textContent=t.text??\"\")),t.html!==void 0&&(r.html=t.html,!n.__exec.html&&r.node&&(r.node.innerHTML=t.html)),t.style&&r.node?.style){if(!n.__exec.style)for(let s in t.style){let i=t.style[s];if(i==null)continue;let a=s.replace(/[A-Z]/g,l=>\"-\"+l.toLowerCase()),c=String(i).replace(/\\s*!important\\s*$/,\"\");r.node.style.setProperty(a,c,\"important\")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let s in t.attr){let i=t.attr[s];i==null||i===!1?r.node.removeAttribute(s):typeof i!=\"function\"&&typeof i!=\"object\"&&r.node.setAttribute(s,i===!0?\"\":i)}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let s in t.data)r.node.dataset[s]=t.data[s];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let s in t){if(_t.has(s)||s===\"state\")continue;let i=t[s],a=r[s];if(a&&a.__ref&&typeof a.update==\"function\")a.update(i,e);else if(typeof i==\"object\"&&i!==null){let c=s.charCodeAt(0);c>=65&&c<=90&&Ht(i,r,s,e)}else s!==\"text\"&&s!==\"html\"&&s!==\"style\"&&s!==\"attr\"&&s!==\"data\"&&(r[s]=i)}}),r.node&&o&&n.__effects&&n.__effects.length)for(let s=0;s<n.__effects.length;s++){let i=n.__effects[s];i&&!i._disposed&&!i._isSubscribeToEffect&&typeof i._execute==\"function\"&&i._execute()}else if(r.node&&n.__conditionalRunners)for(let s of n.__conditionalRunners)s();return Nt(\"update\",r),!e.preventListeners&&typeof r.onUpdate==\"function\"&&r.onUpdate(r,r.state,r.context,e),r}function Ke(t){if(!t)return;let e=t.__ref;if(e){try{typeof t.onBeforeRemove==\"function\"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error(\"[smbls] onBeforeRemove error:\",r)}if(e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){for(let r=0;r<e.__children.length;r++){let n=e.__children[r],o=t[n];o&&o.__ref&&Ke(o)}e.__children.length=0}if(t.node?.parentNode?t.node.remove():t.tag===\"fragment\"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.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 un(){Ke(this)}R();R();var Nw=[\"ease\",\"linear\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"step-start\",\"step-end\"],jw=[\"none\",\"forwards\",\"backwards\",\"both\"],Bw=[\"normal\",\"reverse\",\"alternate\",\"alternate-reverse\"],Vw=[\"running\",\"paused\"],Uw=t=>/^[\\d.]+m?s$/.test(t),zw=0,pm=new Map,xp=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(w(t)){let o=JSON.stringify(t),s=pm.get(o);if(s)return s;let i=`smbls-anim-${zw++}`,a=en(i,t);return pm.set(o,a),a}let n=r&&r[t];return w(n)?en(t,n):t},Ww=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},n=t.split(/\\s+/),o=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let u of n)r&&r[u]?o=u:Uw(u)?s.push(u):Nw.includes(u)||u.startsWith(\"cubic-bezier\")||u.startsWith(\"steps(\")?i=u:u===\"infinite\"||/^\\d+$/.test(u)?a=u===\"infinite\"?u:Number(u):Bw.includes(u)?c=u:jw.includes(u)?l=u:Vw.includes(u)?f=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},_p={animation:(t,e)=>{if(S(t)&&t.includes(\" \")){let r=Ww(t,e);return{animationName:xp(r.name||t,e),animationDuration:r.durations[0]||It(e.animationDuration||\"A\").timing,animationDelay:r.durations[1]||It(e.animationDelay||\"0s\").timing,animationTimingFunction:r.timingFunction||zt(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:xp(t,e),animationDuration:It(e.animationDuration||\"A\").timing,animationDelay:It(e.animationDelay||\"0s\").timing,animationTimingFunction:zt(e.animationTimingFunction||\"ease\"),animationFillMode:e.animationFillMode||\"both\",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:xp(t,e)}),animationDuration:t=>({animationDuration:It(t).timing}),animationDelay:t=>({animationDelay:It(t).timing}),animationTimingFunction:t=>({animationTimingFunction:zt(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};R();var Sp={show:t=>t?void 0:{display:\"none !important\"},hide:t=>t?{display:\"none !important\"}:void 0,height:(t,e)=>j(\"height\",t,e),width:(t,e)=>j(\"width\",t,e),boxSizing:t=>ht(t)?{boxSizing:\"border-box\"}:{boxSizing:t},boxSize:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...it(\"height\",e),...it(\"width\",r||e)}},inlineSize:(t,e)=>j(\"inlineSize\",t,e),blockSize:(t,e)=>j(\"blockSize\",t,e),minWidth:(t,e)=>j(\"minWidth\",t,e),maxWidth:(t,e)=>j(\"maxWidth\",t,e),widthRange:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...it(\"minWidth\",e),...it(\"maxWidth\",r||e)}},minHeight:(t,e)=>j(\"minHeight\",t,e),maxHeight:(t,e)=>j(\"maxHeight\",t,e),heightRange:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...it(\"minHeight\",e),...it(\"maxHeight\",r||e)}},size:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...j(\"inlineSize\",e),...j(\"blockSize\",r||e)}},minBlockSize:(t,e)=>j(\"minBlockSize\",t,e),minInlineSize:(t,e)=>j(\"minInlineSize\",t,e),maxBlockSize:(t,e)=>j(\"maxBlockSize\",t,e),maxInlineSize:(t,e)=>j(\"maxInlineSize\",t,e),minSize:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...it(\"minInlineSize\",e),...it(\"minBlockSize\",r||e)}},maxSize:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...it(\"maxInlineSize\",e),...it(\"maxBlockSize\",r||e)}},borderWidth:(t,e)=>j(\"borderWidth\",t,e),padding:(t,e)=>j(\"padding\",t,e),scrollPadding:(t,e)=>j(\"scrollPadding\",t,e),paddingInline:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...it(\"paddingInlineStart\",e),...it(\"paddingInlineEnd\",r||e)}},paddingBlock:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...it(\"paddingBlockStart\",e),...it(\"paddingBlockEnd\",r||e)}},paddingTop:(t,e)=>j(\"paddingBlockStart\",t,e),paddingBottom:(t,e)=>j(\"paddingBlockEnd\",t,e),paddingLeft:(t,e)=>j(\"paddingInlineStart\",t,e),paddingRight:(t,e)=>j(\"paddingInlineEnd\",t,e),paddingBlockStart:(t,e)=>j(\"paddingBlockStart\",t,e),paddingBlockEnd:(t,e)=>j(\"paddingBlockEnd\",t,e),paddingInlineStart:(t,e)=>j(\"paddingInlineStart\",t,e),paddingInlineEnd:(t,e)=>j(\"paddingInlineEnd\",t,e),margin:(t,e)=>j(\"margin\",t,e),marginInline:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...it(\"marginInlineStart\",e),...it(\"marginInlineEnd\",r||e)}},marginBlock:(t,e)=>{if(!S(e.marginBlock))return;let[r,n]=e.marginBlock.split(\" \");return{...it(\"marginBlockStart\",r),...it(\"marginBlockEnd\",n||r)}},marginTop:(t,e)=>j(\"marginBlockStart\",t,e),marginBottom:(t,e)=>j(\"marginBlockEnd\",t,e),marginLeft:(t,e)=>j(\"marginInlineStart\",t,e),marginRight:(t,e)=>j(\"marginInlineEnd\",t,e),marginInlineStart:(t,e)=>j(\"marginInlineStart\",t,e),marginInlineEnd:(t,e)=>j(\"marginInlineEnd\",t,e),marginBlockStart:(t,e)=>j(\"marginBlockStart\",t,e),marginBlockEnd:(t,e)=>j(\"marginBlockEnd\",t,e),gap:t=>({gap:La(t)}),columnGap:(t,e)=>te(e,\"columnGap\",t),rowGap:(t,e)=>te(e,\"rowGap\",t),flexWrap:t=>({display:\"flex\",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!S(t))return;let[n,o]=(t||\"row\").split(\" \");return(t.startsWith(\"x\")||t===\"row\")&&(n=\"row\"),(t.startsWith(\"y\")||t===\"column\")&&(n=\"column\"),{display:\"flex\",flexFlow:(n||\"\")+(!n.includes(\"-reverse\")&&r?\"-reverse\":\"\")+\" \"+(o||\"\")}},flexAlign:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{display:\"flex\",alignItems:e,justifyContent:r}},round:(t,e)=>Rs(t??e.borderRadius,e,\"round\"),borderRadius:(t,e)=>Rs(t??e.round,e,\"borderRadius\")};var wp={fontSize:t=>ms(t)||t,fontFamily:t=>({fontFamily:hs(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'\"wght\" '+t})};var kp={overflow:t=>({overflow:t}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.assets&&n.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=n.files&&n.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var vp={inset:(t,e)=>{if(e.call(\"isNumber\",t))return{inset:t};if(e.call(\"isString\",t))return{inset:t.split(\" \").map(r=>ut(r,\"k\").k).join(\" \")}},left:t=>ut(t,\"left\"),top:t=>ut(t,\"top\"),right:t=>ut(t,\"right\"),bottom:t=>ut(t,\"bottom\"),verticalInset:t=>{if(typeof t!=\"string\")return;let e=t.split(\" \").map(r=>ut(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=>ut(r,\"k\").k);return{left:e[0],right:e[1]||e[0]}}};R();var Gt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r===\"auto\"?null:r},Cp={theme:(t,e)=>{if(t)return e.themeModifier?Ut(t,`@${e.themeModifier}`):Ut(t)},color:(t,e)=>{let r=Gt(e);if(t)return{color:mt(t,r)}},background:(t,e)=>{let r=Gt(e);if(t)return S(t)&&t.includes(\"gradient\")?{background:Ts(t,r)}:{background:mt(t,r)}},backgroundColor:(t,e)=>{let r=Gt(e);if(t)return{backgroundColor:mt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Gt(e);if(!t)return;let s=n.assets&&n.assets[t];if(s&&s.content)t=s.content.src;else{let i=n.files&&n.files[t];i&&i.content&&(t=i.content.src)}return{backgroundImage:Da(t,o)}},textStroke:t=>({WebkitTextStroke:$a(t)}),outline:t=>({outline:de(t)}),outlineOffset:(t,e)=>j(\"outlineOffset\",t,e),border:t=>({border:de(t)}),borderColor:(t,e)=>{let r=Gt(e);if(t)return{borderColor:mt(t,r)}},borderTopColor:(t,e)=>{let r=Gt(e);if(t)return{borderTopColor:mt(t,r)}},borderBottomColor:(t,e)=>{let r=Gt(e);if(t)return{borderBottomColor:mt(t,r)}},borderLeftColor:(t,e)=>{let r=Gt(e);if(t)return{borderLeftColor:mt(t,r)}},borderRightColor:(t,e)=>{let r=Gt(e);if(t)return{borderRightColor:mt(t,r)}},borderLeft:t=>({borderLeft:de(t)}),borderTop:t=>({borderTop:de(t)}),borderRight:t=>({borderRight:de(t)}),borderBottom:t=>({borderBottom:de(t)}),shadow:(t,e)=>{let r=Gt(e);if(t)return{boxShadow:Fa(t,r)}},boxShadow:(t,e)=>{if(!S(t))return;let[r,n]=t.split(\"!importan\"),o=Gt(e),s=n?\" !important\":\"\";return{boxShadow:Es(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:Es(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:de(t)})};var Fs={transition:t=>({transition:Ma(t)}),transitionDuration:t=>({transitionDuration:Os(t)}),transitionDelay:t=>({transitionDelay:Os(t)}),transitionTimingFunction:t=>({transitionTimingFunction:zt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};R();var Ap={flow:(t,e)=>{let r=e.reverse;if(!S(t))return;let[n,o]=(t||\"row\").split(\" \");return(t.startsWith(\"x\")||t===\"row\")&&(n=\"row\"),(t.startsWith(\"y\")||t===\"column\")&&(n=\"column\"),{display:\"flex\",flexFlow:(n||\"\")+(!n.includes(\"-reverse\")&&r?\"-reverse\":\"\")+\" \"+(o||\"\")}},wrap:(t,e)=>({display:\"flex\",flexWrap:t}),align:(t,e)=>{let[r,n]=t.split(\" \");return{display:\"flex\",alignItems:r,justifyContent:n}}};var Ep={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var pt={..._p,...Sp,...wp,...kp,...vp,...Cp,...Fs,...Ap,...Ep};var yt=new Set([\"accentColor\",\"alignContent\",\"alignItems\",\"alignSelf\",\"alignmentBaseline\",\"all\",\"animation\",\"animationDelay\",\"animationDirection\",\"animationDuration\",\"animationFillMode\",\"animationIterationCount\",\"animationName\",\"animationPlayState\",\"animationTimingFunction\",\"appearance\",\"aspectRatio\",\"backdropFilter\",\"backfaceVisibility\",\"background\",\"backgroundAttachment\",\"backgroundBlendMode\",\"backgroundClip\",\"backgroundColor\",\"backgroundImage\",\"backgroundOrigin\",\"backgroundPosition\",\"backgroundPositionX\",\"backgroundPositionY\",\"backgroundRepeat\",\"backgroundRepeatX\",\"backgroundRepeatY\",\"backgroundSize\",\"baselineShift\",\"blockSize\",\"border\",\"borderBlock\",\"borderBlockColor\",\"borderBlockEnd\",\"borderBlockEndColor\",\"borderBlockEndStyle\",\"borderBlockEndWidth\",\"borderBlockStart\",\"borderBlockStartColor\",\"borderBlockStartStyle\",\"borderBlockStartWidth\",\"borderBlockStyle\",\"borderBlockWidth\",\"borderBottom\",\"borderBottomColor\",\"borderBottomLeftRadius\",\"borderBottomRightRadius\",\"borderBottomStyle\",\"borderBottomWidth\",\"borderCollapse\",\"borderColor\",\"borderImage\",\"borderImageOutset\",\"borderImageRepeat\",\"borderImageSlice\",\"borderImageSource\",\"borderImageWidth\",\"borderLeft\",\"borderLeftColor\",\"borderLeftStyle\",\"borderLeftWidth\",\"borderRadius\",\"borderRight\",\"borderRightColor\",\"borderRightStyle\",\"borderRightWidth\",\"borderSpacing\",\"borderStyle\",\"borderTop\",\"borderTopColor\",\"borderTopLeftRadius\",\"borderTopRightRadius\",\"borderTopStyle\",\"borderTopWidth\",\"borderWidth\",\"bottom\",\"boxDecorationBreak\",\"boxShadow\",\"boxSizing\",\"breakAfter\",\"breakBefore\",\"breakInside\",\"captionSide\",\"caretColor\",\"clear\",\"clip\",\"clipPath\",\"color\",\"colorAdjust\",\"colorInterpolation\",\"colorInterpolationFilters\",\"colorRendering\",\"columnCount\",\"columnFill\",\"columnGap\",\"columnRule\",\"columnRuleColor\",\"columnRuleStyle\",\"columnRuleWidth\",\"columnSpan\",\"columnWidth\",\"columns\",\"contain\",\"content\",\"counterIncrement\",\"counterReset\",\"cursor\",\"direction\",\"display\",\"emptyCells\",\"filter\",\"flex\",\"flexBasis\",\"flexDirection\",\"flexFlow\",\"flexGrow\",\"flexShrink\",\"flexWrap\",\"float\",\"font\",\"fontFamily\",\"fontFeatureSettings\",\"fontKerning\",\"fontLanguageOverride\",\"fontSize\",\"fontSizeAdjust\",\"fontStretch\",\"fontStyle\",\"fontVariant\",\"fontVariantAlternates\",\"fontVariantCaps\",\"fontVariantEastAsian\",\"fontVariantNumeric\",\"fontVariantPosition\",\"fontWeight\",\"fontVariationSettings\",\"fontSynthesis\",\"forcedColorAdjust\",\"gap\",\"grid\",\"gridArea\",\"gridAutoColumns\",\"gridAutoFlow\",\"gridAutoRows\",\"gridColumn\",\"gridColumnEnd\",\"gridColumnGap\",\"gridColumnStart\",\"gridGap\",\"gridRow\",\"gridRowEnd\",\"gridRowGap\",\"gridRowStart\",\"gridTemplate\",\"gridTemplateAreas\",\"gridTemplateColumns\",\"gridTemplateRows\",\"height\",\"hyphens\",\"imageOrientation\",\"imageRendering\",\"imeMode\",\"inset\",\"insetBlock\",\"insetBlockEnd\",\"insetBlockStart\",\"insetInline\",\"insetInlineEnd\",\"insetInlineStart\",\"initialLetter\",\"isolation\",\"justifyContent\",\"justifyItems\",\"justifySelf\",\"left\",\"letterSpacing\",\"lineBreak\",\"lineClamp\",\"lineHeight\",\"listStyle\",\"listStyleImage\",\"listStylePosition\",\"listStyleType\",\"margin\",\"marginBottom\",\"marginLeft\",\"marginRight\",\"marginTop\",\"marginBlock\",\"marginBlockEnd\",\"marginBlockStart\",\"marginInline\",\"marginInlineEnd\",\"marginInlineStart\",\"mask\",\"maskBorder\",\"maskBorderImage\",\"maskBorderOutset\",\"maskBorderRepeat\",\"maskBorderSlice\",\"maskBorderSource\",\"maskBorderWidth\",\"maskClip\",\"maskComposite\",\"maskImage\",\"maskOrigin\",\"maskPosition\",\"maskRepeat\",\"maskSize\",\"maskType\",\"maxBlockSize\",\"maxHeight\",\"maxInlineSize\",\"maxWidth\",\"minBlockSize\",\"minHeight\",\"minInlineSize\",\"minWidth\",\"mixBlendMode\",\"objectFit\",\"objectPosition\",\"objectViewBox\",\"offset\",\"offsetDistance\",\"offsetPath\",\"offsetRotate\",\"opacity\",\"order\",\"orientation\",\"outline\",\"outlineColor\",\"outlineOffset\",\"outlineStyle\",\"outlineWidth\",\"overflow\",\"overflowAnchor\",\"overflowClip\",\"overflowScrolling\",\"overflowWrap\",\"overflowX\",\"overflowY\",\"padding\",\"paddingBottom\",\"paddingLeft\",\"paddingRight\",\"paddingTop\",\"pageBreakAfter\",\"pageBreakBefore\",\"pageBreakInside\",\"paintOrder\",\"perspective\",\"perspectiveOrigin\",\"placeContent\",\"placeItems\",\"placeSelf\",\"pointerEvents\",\"position\",\"resize\",\"right\",\"rotate\",\"rowGap\",\"scrollBehavior\",\"scrollPadding\",\"scrollSnapAlign\",\"scrollSnapType\",\"scrollbarColor\",\"scrollbarWidth\",\"shapeImageThreshold\",\"shapeMargin\",\"shapeOutside\",\"tabSize\",\"tableLayout\",\"textAlign\",\"textAlignLast\",\"textDecoration\",\"textDecorationColor\",\"textDecorationLine\",\"textDecorationSkipInk\",\"textDecorationStyle\",\"textDecorationThickness\",\"textIndent\",\"textOverflow\",\"textShadow\",\"textTransform\",\"textUnderlineOffset\",\"top\",\"transform\",\"transformOrigin\",\"transformStyle\",\"transition\",\"transitionDelay\",\"transitionDuration\",\"transitionProperty\",\"transitionTimingFunction\",\"translate\",\"translateX\",\"translateY\",\"translateZ\",\"unicodeBidi\",\"userSelect\",\"verticalAlign\",\"visibility\",\"whiteSpace\",\"widows\",\"width\",\"willChange\",\"wordBreak\",\"wordSpacing\",\"wordWrap\",\"writingMode\",\"zIndex\"]);R();var Hw=/^\\[data-theme=(?:\"([^\"]+)\"|'([^']+)')\\]$/,Gw=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=Ft(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(Hw),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c===\"dark\"||c===\"light\"){let f=n.designSystem?.scopeSelector||\":root\",u=f===\":root\"?\":root:not([data-theme])\":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},dm=(t,e,r)=>({[t]:Ft(e,r)}),Ds=(t,e,r)=>{let n=`&${t}`,o=Ft(e,r);if(t.includes(\",\")&&o){let s={},i={};for(let a in o)typeof o[a]==\"object\"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(\",\").map(l=>l.trim()),c={};Object.keys(s).length&&(c[n]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(\", \");c[f]=i[l]}return c}}return{[n]:o}},Tp=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return v(r)?r.call(e,e):!!r},qw=(t,e,r)=>{let n=t.slice(1),o=Tp(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Ft(e,r)},Kw=(t,e,r)=>({[t]:e}),Yw=(t,e,r)=>{let n=t.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]==\"function\")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Tp(n,r);s!==void 0&&(o=s)}if(o)return Ft(e,r)},Xw=(t,e,r)=>{let n=t.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]==\"function\")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Tp(n,r);s!==void 0&&(o=s)}if(!o)return Ft(e,r)},Op=(t,e)=>Ft(t,e),Rp={\"@\":Gw,\":\":Ds,\"[\":Ds,\"*\":Ds,\"+\":Ds,\"~\":Ds,\"&\":dm,\">\":dm,$:qw,\"-\":Kw,\".\":Yw,\"!\":Xw};var Pp=Pe(),hm=(t,e,r)=>{let n=e?.context?.designSystem;n&&ot(n);try{let o={},s={},i=(a,c)=>{if(r.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(a===\"class\"&&e.call(\"isString\",t.class)){let l=c.split(\" \");if(l.length){let f=e.context.designSystem.class,u=l.reduce((p,d)=>nt(p,f[d]),{});o.designSystemClass=u}}else if(a===\"true\"){let l=K(c,e);nt(o,Op(l,e))}else if(e.classlist[a]){let l=e.classlist[a],f=v(l)?l(e,e.state,e.context):l;f&&i(a,f),!Pp&&w(o[a])&&(o[a].label=a)}else if(pt[a]){let l=K(c,e);T(l)&&(l=l.reduce((u,p)=>nt(u,p),{}));let f=pt[a](l,e,e.state,e.context);T(f)&&(f=f.reduce((u,p)=>nt(u,p),{})),f&&i(a,f),!Pp&&w(o[a])&&(o[a].label=a)}else if(yt.has(a)){let l=K(c,e);typeof l==\"string\"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!Pp&&w(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&tt()}},gm=(t,e)=>{let r={};for(let n in t){let o=Rp[n.slice(0,1)];if(o){let s=o(n,t[n],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]==\"object\"&&typeof s[i]==\"object\"?At(r[i],s[i]):r[i]=s[i])}}return r},Ft=(t,e,r={unpack:!0})=>{let[n,o]=hm(t,e,r),s=gm(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return Yn(n,s);n._selectors=s}return n},Zw=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};R();var mm=t=>{if(w(t))return Ft(t,t)},Jw=(t,e)=>{let r=mm(t);return typeof e==\"function\"?e(r):he(r)};R();function xm(t,e,r){let n=t?.context?.analyze;if(!n||!n.emit||e===\"warn\"&&!n.shouldCapture(\"warnings\")||e===\"error\"&&!n.shouldCapture(\"errors\"))return;let o=r.map(s=>s?.message||(typeof s==\"string\"?s:null)).filter(Boolean).join(\" \");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e===\"error\"?\"error\":\"warning\",level:e,hook:e===\"error\"?\"el.error\":\"el.warn\",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:o||null,args:r})}function Qw(...t){return xm(this,\"warn\",t),Lo.apply(this,t)}function t0(...t){return xm(this,\"error\",t),yr.apply(this,t)}var ym={update:fn,remove:un,getDB:Bo,getQuery:Vo,getRootData:$o,getChildren:To,getPath:Oo,nextElement:Mo,previousElement:No,verbose:Ur,warn:Qw,error:t0,variables:jo,spotByPath:Eo,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,\"content\",e)}this.__ref&&(this.__ref.contentManaged=!0)},reset(t){let e=this.context?.__create;if(!e)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),e(o,r,n,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t==\"function\"){if(t(e))return e}else if(typeof t==\"string\"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let r of e.__children){let n=this[r];if(!n)continue;if(typeof t==\"function\"){if(t(n))return n}else if(typeof t==\"string\"&&n.key===t)return n;let o=n.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let r=this.__ref;if(!r?.__children)return e;for(let n of r.__children){let o=this[n];o&&(typeof t==\"function\"?t(o)&&e.push(o):typeof t==\"string\"&&o.key===t&&e.push(o),o.lookdownAll?.(t,e))}return e},getRef(){return this.__ref},getRoot:Io,getRootState:Po,getRootContext:Fo,getContext:Do,parse(t){let e={},r=t?new Set(t):null,n=this.__ref?.__exec;for(let o in this)if(!(o===\"parent\"||o===\"node\"||o===\"__ref\")&&!r?.has(o)){if(n&&n[o]!==void 0){e[o]=n[o];continue}typeof this[o]!=\"function\"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(e[n]=this[n].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let r of t)e[r]=this[r];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let r=t[e];if(r==null)continue;let n=e.replace(/[A-Z]/g,s=>\"-\"+s.toLowerCase()),o=String(r).replace(/\\s*!important\\s*$/,\"\");this.node.style.setProperty(n,o,\"important\")}},call(t,...e){let r=this.context,n=r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof n==\"function\")return n.call(this,...e)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let r=t.__children.indexOf(\"content\");r!==-1&&t.__children.splice(r,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},bm=new WeakMap;function e0(t){if(!t)return ym;let e=bm.get(t);if(e)return e;e=Object.create(ym);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return bm.set(t,e),e}function pn(t){let e=e0(t.context);Object.setPrototypeOf(t,e)}R();Mr();var Lp={};I(Lp,{STATE_METHODS:()=>_m,applyInitialState:()=>Wa,applyStateMethods:()=>Dt,createState:()=>$p,isTracking:()=>Dp,useHostState:()=>Fp});var _m=new Set([\"update\",\"parse\",\"clean\",\"destroy\",\"create\",\"add\",\"toggle\",\"remove\",\"set\",\"replace\",\"setByPath\",\"setPathCollection\",\"removeByPath\",\"removePathCollection\",\"getByPath\",\"reset\",\"apply\",\"applyReplace\",\"applyFunction\",\"quietUpdate\",\"quietReplace\",\"rootUpdate\",\"parentUpdate\",\"keys\",\"values\",\"__element\",\"__children\",\"parent\",\"root\"]),r0=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Dt=(t,e)=>{if(rt(e)){let o=e.__raw||e;e.toggle||Object.defineProperty(o,\"toggle\",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(o,\"set\",{value:function(s,i={}){return e.clean({preventStateUpdate:!0}),typeof s==\"object\"&&s!==null&&e.update(s,i),e},enumerable:!1,configurable:!0}),Object.defineProperty(o,\"setByPath\",{value:function(s,i,a={}){let c=s.split(\".\"),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"getByPath\",{value:function(s){let i=s.split(\".\"),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"removeByPath\",{value:function(s,i={}){let a=s.split(\".\"),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"reset\",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"apply\",{value:function(s,i={}){if(typeof s==\"function\"){let a=s(e);return e.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"applyFunction\",{value:function(s,i={}){if(typeof s==\"function\")return s(e),e.update(e.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"rootUpdate\",{value:function(s,i={}){let a=e;for(;a?.parent&&rt(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"parentUpdate\",{value:function(s,i={}){if(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,\"quietReplace\",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,\"root\")||Object.defineProperty(o,\"root\",{get:function(){let s=e,i=rt(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,rt(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!e||typeof e!=\"object\")return;let r=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},n={update(o){if(!o||typeof o!=\"object\")return e;for(let s in o)e[s]=o[s];return e},apply(o){if(typeof o!=\"function\")return e;let s=o(e);return s?e.update(s):e},parse(){return{...e}},toggle(o){return e[o]=!e[o],e},set(o){if(!o||typeof o!=\"object\")return e;r();for(let s in o)e[s]=o[s];return e},replace(o){return e.set(o)},clean(){return r(),e}};for(let o in n)typeof e[o]!=\"function\"&&r0(e,o,n[o])};var $p=function(t,e,r){return t.state=Wa(t,e,r),t.state},Wa=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Dt(t,s),s}if(typeof o==\"string\")return n&&(n.__state=o),n.__stateType=\"string\",n0(o,t,e);if(typeof o==\"number\"||typeof o==\"boolean\"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=Pt({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Dt(t,s),s}if(typeof o==\"function\"&&(o=o(t,e?.state)||{}),typeof o==\"object\"&&!rt(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=Pt({...o});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,\"root\")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,\"root\",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Dt(t,s),typeof t.onStateCreated==\"function\"&&t.onStateCreated(t,s,t.context,r),s}return rt(o)?(o.__element=t,o):e?.state||{}};function Ip(t,e){if(!e)return t;let r=e.split(\"/\"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function n0(t,e,r){if(!r?.state)return{};if(t===\".\")return r.state;if(t.startsWith(\"../\")){let o=t.slice(3),s=r.state?.parent;return o&&s?Ip(s,o):s??r.state??{}}if(t.startsWith(\"~/\")){let o=r.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?Ip(o,s):o??{}}let n=Ip(r.state,t);if(n&&typeof n==\"object\"&&!rt(n)&&!Object.getOwnPropertyDescriptor(n,\"root\")){let o=r.state?.root||r.state;Object.defineProperty(n,\"root\",{get:()=>o,enumerable:!1,configurable:!0})}return n}var Fp=(t,e)=>{if(!t)return wm;let r=s0(t,e);return!r||!r.state?wm:a0(r.state)},Dp=()=>sr()!=null,o0=128;function s0(t,e){let r=typeof e==\"function\"?e:typeof e==\"string\"?s=>!!s?.[e]:s=>!!s?.state,n=t,o=null;for(let s=0;s<o0&&n;s++){if(r(n)&&n.state)return n;if(n.state&&!o&&(o=n),!n.parent||n.parent===n)break;n=n.parent}return o}var i0={get(t,e){return t[e]}},Sm=new WeakMap,a0=t=>{let e=Sm.get(t);return e||(e=new Proxy(t,i0),Sm.set(t,e)),e},wm=new Proxy(Object.create(null),{get(){},has(){return!1}});R();var c0=[\"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\"],Ha={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\"]},vm=[\"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\"],jp=t=>t.startsWith(\"aria\")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?\"aria-\"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>\"-\"+e.toLowerCase()):t.startsWith(\"data\")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?\"data-\"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>\"-\"+e.toLowerCase()):null,Xe=(t,e)=>e.startsWith(\"aria-\")||e.startsWith(\"data-\")||jp(e)||Ha.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(Ha,t)?Ha[t].includes(e):!1,Bp=t=>{if(!S(t))return!1;let e=t.toLowerCase();return vm.includes(e)},l0=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;if(o===\"aria\"&&e[o]&&typeof e[o]==\"object\"){for(let a in e[o])vt(e[o][a])&&(n[\"aria-\"+a]=e[o][a]);continue}if(o===\"data\"&&e[o]&&typeof e[o]==\"object\"){for(let a in e[o])if(vt(e[o][a])){let c=a.replace(/([A-Z])/g,l=>\"-\"+l.toLowerCase());n[\"data-\"+c]=e[o][a]}continue}let s=Xe(t,o),i=Bp(o);if(vt(e[o])&&(s||i)){let a=jp(o)||o;n[a]=e[o]}}return n},f0=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);if(t.aria&&typeof t.aria==\"object\")for(let n in t.aria){let o=t.aria[n];typeof o==\"function\"&&(r[\"aria-\"+n]=o(e,e.state,e.context))}if(t.data&&typeof t.data==\"object\")for(let n in t.data){let o=t.data[n];if(typeof o==\"function\"){let s=n.replace(/([A-Z])/g,i=>\"-\"+i.toLowerCase());r[\"data-\"+s]=o(e,e.state,e.context)}}return r},Ye=(t,e)=>{let r=t.call(\"exec\",e,t);if(r)return S(r)&&r.includes(\"{{\")&&(r=t.call(\"replaceLiteralsWithObjectFields\",r)),r},Mp=(t,e)=>{let r=(t.preSrc||\"\")+(Ye(t,e)||\"\");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=t;if(!n.files&&!n.assets)return r;if(r.startsWith(\"/assets/\")){let o=r.slice(8),s=n.assets&&(n.assets[r]||n.assets[o]);return s&&s.content?s.content.src:r}if(r.startsWith(\"/files/\")){let o=r.slice(7),s=n.files&&(n.files[r]||n.files[o]);return s&&s.content?s.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},Np={src:t=>Mp(t,t.src),href:t=>Ye(t,t.href),action:t=>Ye(t,t.action),poster:t=>Mp(t,t.poster),data:t=>Ye(t,t.data)},Vp=t=>{let e=t.tag||\"div\",r={};for(let n in Np)if(t[n]!==void 0&&Xe(e,n)){let o=Np[n](t);o!==void 0&&(r[n]=o)}return r},km=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return v(r)?r.call(e,e):!!r},u0=(t,e,r)=>{if(t===\"$\"){let o=km(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=km(e,r);o!==void 0&&(n=o)}return t===\".\"?!!n:!n},p0=new Set([\"$\",\".\",\"!\"]),d0=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(u0(a,c,f))return v(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!p0.has(i))continue;let a=t[s];if(!a||typeof a!=\"object\")continue;let c=s.slice(1);for(let l in a){if(r&&l in r)continue;if(l===\"aria\"&&a[l]&&typeof a[l]==\"object\"){for(let d in a[l])o(\"aria-\"+d,a[l][d],i,c);continue}if(l===\"data\"&&a[l]&&typeof a[l]==\"object\"){for(let d in a[l]){let h=d.replace(/([A-Z])/g,g=>\"-\"+g.toLowerCase());o(\"data-\"+h,a[l][d],i,c)}continue}let f=Xe(e,l),u=Bp(l);if(!f&&!u)continue;let p=jp(l)||l;o(p,a[l],i,c)}}return n};var h0=1;function hn(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function g0(t){return t.charAt(2).toLowerCase()+t.slice(3)}function m0(t){return t.toLowerCase()}function Cm(t){let e=t.charCodeAt(0);return e===58||e===64||e===38}function Ls(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o==\"object\"&&typeof s==\"object\"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!=\"function\"&&typeof s!=\"function\"?r[n]=Ls(o,s):r[n]=s}return r}function Ht(t,e,r,n={},o){if(t==null||t===!1)return null;(typeof t==\"string\"||typeof t==\"number\")&&(t={text:t});let s=Object.create(null);s.key=r||t.key||`_${h0++}`,s.parent=e||null,s.context=t.context||e?.context||n.context||{},s.context.__create||(s.context.__create=Ht);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={...t,extends:m})}}ln(s,t,n);let a=new Set([\"childProps\",\"attr\",\"style\",\"scope\",\"data\"]),c=s.props&&typeof s.props==\"object\"?s.props:null;for(let g in t){if(g===\"parent\"||g===\"node\"||g===\"__ref\"||g===\"extends\"||g===\"context\"||g===\"props\")continue;let m=t[g],y=s[g],b=y&&m&&typeof y==\"object\"&&typeof m==\"object\"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!=\"function\"&&typeof m!=\"function\";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=Ls(y,m):b&&a.has(g)?s[g]={...y,...m}:b&&Cm(g)?s[g]=Ls(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]=Ls(b,y):x&&a.has(m)?s[m]={...b,...y}:x&&Cm(m)?s[m]=Ls(b,y):s[m]=y}}c&&l(c),t.props&&typeof t.props==\"object\"&&l(t.props),t.data!==void 0&&(s.data=t.data),t.classlist!==void 0&&(s.classlist=t.classlist),t.text!==void 0&&(s.text=t.text),t.html!==void 0&&(s.html=t.html);let f=s.scope&&typeof s.scope==\"object\"?s.scope:null,u=e?.scope,p=s.context&&typeof s.context.globalScope==\"object\"&&s.context.globalScope||null,d=u||p||null;if(t.scope!==void 0||f){let g={};f&&Object.assign(g,f),t.scope!==void 0&&Object.assign(g,t.scope),s.scope=$n(g,d)}else d&&(s.scope=d);if(t.if!==void 0&&(s.if=t.if),pn(s),y0(s,e,t),s.if!=null){let g;if(typeof s.if==\"function\")try{g=s.if(s,s.state,s.context)}catch(m){if(g=!1,i.__ifError=m,typeof console<\"u\"&&console.warn){let y=s.key||s.tag||\"?\";console.warn(`[smbls] \\`if:\\` evaluator threw on ${y} \\u2014 treating as false:`,m?.message||m)}}else g=s.if;i.__if=!!g}if(i.__if)typeof t.if==\"function\"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof t.if==\"function\"&&Hp(s,{if:t.if}),s;s.tag||(s.tag=He(s)),Ze(\"Init\",s,n);let h=s.node=Ge(s);if(!h)return s;if(s.tag===\"fragment\"){let m=(s.context?.document||globalThis.document).createComment(\"\");h.appendChild(m),i.__fragmentAnchor=m}Ze(\"AttachNode\",s,n),h.setAttribute&&s.key&&h.setAttribute(\"data-key\",s.key),h.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==\":root\"&&s.context.key&&s.key===s.context.key&&h.setAttribute(\"data-smbls-app\",s.context.key),s.id&&h.setAttribute&&(h.id=s.id),Pm(s,n),Hp(s,t),Gp(s),Om(s),C0(s);try{Im(s,n)}catch(g){if(typeof console<\"u\"&&console.error){let m=s.__ref?.path?.join(\".\")||s.key||\"<root>\";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`\n`+g.stack.split(`\n`).slice(0,6).join(`\n`):\"\")}}if(Kp(s,e,o),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),typeof s.html==\"function\"&&s.node&&!s.node.innerHTML){let g=s.context?.designSystem;g&&ot(g);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!=\"function\"&&(s.node.innerHTML=m)}catch{}finally{g&&tt()}}if(Ze(\"Create\",s,n),Ze(\"Complete\",s,n),Ze(\"Render\",s,n),Ze(\"RenderRouter\",s,n),typeof s.onFrame==\"function\"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&ot(m);try{g(s,s.state,s.context)}catch(b){console.error(\"[DOMQL] onFrame error:\",b)}finally{m&&tt()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function y0(t,e,r){let n=!e,o=r.state&&typeof r.state==\"object\"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&t.context?.state,i=r.state!==void 0&&!s?r.state:t.state&&!rt(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,Dt(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=rt(c)?c:Pt(c),t.state.__element=t,t.state.root=t.state,Dt(t,t.state)}else t.state={},Object.defineProperty(t.state,\"root\",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Dt(t,t.state);return}if(typeof i==\"string\"){if(t.state=Tm(i,e),t.state&&typeof t.state==\"object\"&&!rt(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,\"root\",{value:a,enumerable:!1,configurable:!0,writable:!0})}Dt(t,t.state);return}if(typeof i==\"function\"){let a=i(t,e?.state);t.state=rt(a)?a:Pt(a||{})}else rt(i)?t.state=i:t.state=Pt({...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,Dt(t,t.state)}function Up(t,e){if(!e)return t;let r=e.split(\"/\"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function Tm(t,e){if(!e)return{};if(t===\".\")return e.state||{};if(t.startsWith(\"../\")){let o=t.slice(3);return o?Up(e.state,o):e.state??{}}if(t.startsWith(\"~/\")){let o=e.state?.root||e.state,s=t.slice(2);return s?Up(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=Up(e.state,t);if(r!=null&&Object.keys(r).length>0)return r;let n=e.context?.polyglot;if(n?.translations){let o=e.state?.root?.lang||n.defaultLang||\"en\",s=n.translations[o];if(s?.[t]!==void 0)return s[t];if(n.translations[t]!==void 0)return n.translations[t]}return{}}function b0(t){let e=t.__ref,r=t.tag||\"div\",n=t.context?.designSystem,o=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!=\"function\"||_t.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||hn(a)||pt[a]||yt&&yt.has(a)||Xe(r,a)||o.push({prop:a,fn:t[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:c}=o[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){n&&ot(n);try{return c(t,t.state,t.context)}catch{return}finally{n&&tt()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Hp(t,e){let r=t.__ref;if(b0(t),typeof t.text==\"function\"){let o=t.text,s=et(()=>{if(!r.contentManaged)try{let i=o(t,t.state,t.context);t.node&&i!=null&&typeof i!=\"function\"&&typeof i!=\"object\"&&(typeof i==\"string\"&&i.includes(\"{{\")&&(i=lr.call(t,i,t.state)),t.tag===\"string\"?t.node.nodeValue=i:t.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}else if(typeof t.text==\"string\"&&t.text.includes(\"{{\")){let o=t.text,s=et(()=>{if(r.contentManaged)return;let i=lr.call(t,o,t.state);i!=null&&(t.text=i),t.node&&(t.tag===\"string\"?t.node.nodeValue=i??\"\":t.node.textContent=i??\"\")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&typeof t[o]==\"function\"&&!_t.has(o)&&!hn(o)&&!r.__exec[o]){if(pt[o]){let s=t[o],i=o,a,c=et(()=>{let l=t.context?.designSystem;l&&ot(l);try{let f=s(t,t.state,t.context),u=pt[i](f,t,t.state,t.context);if(u&&t.node){let p=Am(u);(p===null||p!==a)&&(a=p,dn(t.node,u))}else t.node&&(i===\"show\"||i===\"hide\")&&(a=void 0,t.node.style.display=\"\")}finally{l&&tt()}},{depth:r.path.length});r.__effects.push(c),r.__exec[o]=s}else if(yt&&yt.has(o)){let s=t[o],i=o,a,c=et(()=>{let l=t.context?.designSystem;l&&ot(l);try{let f=s(t,t.state,t.context);if(t.node)if(f!=null){let u=i+\":\"+String(f);u!==a&&(a=u,dn(t.node,{[i]:f}))}else a=void 0,t.node.style[i]=\"\"}finally{l&&tt()}},{depth:r.path.length});r.__effects.push(c),r.__exec[o]=s}}if(typeof e.html==\"function\"){let o=e.html,s=et(()=>{let i=t.context?.designSystem;i&&ot(i);try{let a=o(t,t.state,t.context);t.node&&a!=null&&typeof a!=\"function\"&&(t.node.innerHTML=a)}finally{i&&tt()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof e.value==\"function\"){let o=e.value,s=et(()=>{try{let i=o(t,t.state,t.context);if(!t.node||!(\"value\"in t.node))return;let a=i==null?\"\":String(i);if(t.node.value===a)return;let c=typeof document<\"u\"&&document.activeElement===t.node,l=c&&typeof t.node.selectionStart==\"number\"?t.node.selectionStart:null,f=c&&typeof t.node.selectionEnd==\"number\"?t.node.selectionEnd:null;if(t.node.value=a,c&&l!=null&&f!=null)try{t.node.setSelectionRange(l,f)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=o}if(typeof e.style==\"function\"){let o=e.style,s,i=et(()=>{let a=o(t,t.state,t.context),c=Am(a);(c===null||c!==s)&&(s=c,dn(t.node,a))},{depth:r.path.length});r.__effects.push(i),r.__exec.style=o}else if(t.style&&typeof t.style==\"object\")for(let o in t.style){let s=t.style[o];if(typeof s!=\"function\")continue;let i,a=et(()=>{try{let c=s(t,t.state,t.context);if(t.node){let l=o+\":\"+String(c);l!==i&&(i=l,dn(t.node,{[o]:c}))}}catch{}},{depth:r.path.length});r.__effects.push(a)}if(t.attr&&typeof t.attr==\"object\"){for(let o in t.attr)if(typeof t.attr[o]==\"function\"){let s=t.attr[o],i=o,a=et(()=>{try{let c=s(t,t.state,t.context);t.node?.setAttribute&&(c==null||c===!1?t.node.removeAttribute(i):typeof c!=\"function\"&&typeof c!=\"object\"&&t.node.setAttribute(i,c===!0?\"\":c))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(t.aria&&typeof t.aria==\"object\")for(let o in t.aria){let s=t.aria[o];if(typeof s!=\"function\")continue;let i=\"aria-\"+o.replace(/[A-Z]/g,c=>\"-\"+c.toLowerCase()),a=et(()=>{try{let c=s(t,t.state,t.context);if(!t.node?.setAttribute)return;c==null||c===!1?t.node.removeAttribute(i):typeof c!=\"function\"&&typeof c!=\"object\"&&t.node.setAttribute(i,c===!0?\"\":c)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(t.data&&typeof t.data==\"object\")for(let o in t.data){let s=t.data[o];if(typeof s!=\"function\")continue;let a=\"data-\"+o.replace(/[A-Z]/g,l=>\"-\"+l.toLowerCase()),c=et(()=>{try{let l=s(t,t.state,t.context);if(!t.node?.setAttribute)return;l==null||l===!1?t.node.removeAttribute(a):typeof l!=\"function\"&&typeof l!=\"object\"&&t.node.setAttribute(a,l===!0?\"\":l)}catch{}},{depth:r.path.length});r.__effects.push(c)}let n=t.classlist&&typeof t.classlist==\"object\"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class==\"object\"&&!Array.isArray(t.class)?t.class:null;if(n)for(let o in n){let s=n[o];if(typeof s!=\"function\")continue;let i=et(()=>{try{let a=s(t,t.state,t.context);if(!t.node?.classList)return;typeof a==\"string\"?t.node.classList.add(a):a?t.node.classList.add(o):t.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof e.if==\"function\"){let o=e.if,s=et(()=>{let i;try{i=o(t,t.state,t.context)}catch(c){if(i=!1,r.__ifError=c,typeof console<\"u\"&&console.warn){let l=t.key||t.tag||\"?\";console.warn(`[smbls] \\`if:\\` reactive effect threw on ${l} \\u2014 treating as false:`,c?.message||c)}return}let a=r.__if;if(r.__if=!!i,a&&!r.__if&&t.node)t.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){t.node||(t.node=Ge(t)),t.node&&(t.node.ref=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 Kp(t,t.parent);Gp(t)}else{if(r.__ifInitialized=!0,t.tag||(t.tag=He(t)),Ze(\"Init\",t,{}),t.node||(t.node=Ge(t)),!t.node)return;if(t.tag===\"fragment\"&&!r.__fragmentAnchor){let f=(t.context?.document||globalThis.document).createComment(\"\");t.node.appendChild(f),r.__fragmentAnchor=f}Ze(\"AttachNode\",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute(\"data-key\",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),Pm(t,{});let c=e.if;delete e.if;try{Hp(t,e)}finally{e.if=c}Gp(t),Om(t),Im(t,{}),Kp(t,t.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||_t.has(o)||typeof t[o]!=\"function\")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||hn(o))continue;let i=t[o];r.__exec[o]=i;let a=t.tag||\"div\";if(Xe(a,o)&&!pt[o]&&!(yt&&yt.has(o))){let c=o,l=et(()=>{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)}}S0(t),w0(t)}function Gp(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),v0(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\"&&dn(e,t.style),t.attr&&typeof t.attr==\"object\")for(let r in t.attr){let n=t.attr[r];typeof n==\"function\"||typeof n==\"object\"||n==null||n===!1||e.setAttribute&&e.setAttribute(r,n===!0?\"\":n)}if(t.data&&typeof t.data==\"object\")for(let r in t.data){let n=t.data[r];typeof n==\"function\"||typeof n==\"object\"||n==null||n===!1||e.dataset&&(e.dataset[r]=n===!0?\"\":n)}if(t.classlist||t.class){let r=t.classlist||t.class;if(typeof r==\"string\")r.split(\" \").forEach(n=>n&&e.classList.add(n));else if(typeof r==\"object\")for(let n in r){let o=typeof r[n]==\"function\"?r[n](t,t.state,t.context):r[n];o&&e.classList.add(typeof o==\"string\"?o:n)}}}}function Am(t){if(t==null||typeof t!=\"object\")return\"s:\"+String(t);try{return\"o:\"+JSON.stringify(t)}catch{return null}}function dn(t,e){if(!t||!e||!t.style)return;let r=null;for(let n in e){let o=e[n];if(o!=null){if(n.charAt(0)===\"&\"&&typeof o==\"object\"){r||(r={}),r[n]=o;continue}try{let s=String(o),i=n.replace(/[A-Z]/g,f=>\"-\"+f.toLowerCase()),a=s.trim(),c=/\\s*!important\\s*$/.test(a),l=a.replace(/\\s*!important\\s*$/,\"\");t.style.setProperty(i,l,c?\"important\":\"\")}catch{}}}r&&_0(t,r)}var x0=0;function _0(t,e){let r=`_ds${x0++}`;t.classList.add(r);let n=t.ownerDocument,o=n.querySelector(\"style[data-smbls-scoped]\");o||(o=n.createElement(\"style\"),o.setAttribute(\"data-smbls-scoped\",\"\"),n.head.appendChild(o));let s=\"\";for(let i in e){let a=\".\"+r,c=i.replace(/&/g,a).split(\",\").map(f=>{let u=f.trim();return u.includes(a)?u:a+u}).join(\", \"),l=e[i];if(typeof l==\"object\"){let f=\"\",u=\"\";for(let p in l){let d=l[p];if(typeof d==\"object\"){let h=p.includes(\"&\")?c.split(\", \").map(m=>p.replace(/&/g,m)).join(\", \"):c.split(\", \").map(m=>`${m} ${p}`).join(\", \"),g=\"\";for(let m in d)g+=`${m.replace(/[A-Z]/g,y=>\"-\"+y.toLowerCase())}: ${d[m]};`;u+=`${h} { ${g} }\n`}else f+=`${p.replace(/[A-Z]/g,h=>\"-\"+h.toLowerCase())}: ${d};`}f&&(s+=`${c} { ${f} }\n`),u&&(s+=u)}}s&&(o.textContent+=s)}function S0(t){let e=t.subscribeTo;if(!Array.isArray(e)||e.length===0)return;let r=t.__ref;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o!=\"string\"||o.length===0)continue;let s=o.split(\".\"),i=s[0],a=s.slice(1),c={value:!1},l=et(()=>{let f=t.state&&(rt(t.state)?t.state.root:null);if(!f||!rt(f))return;let u=f;u=u[i];for(let p=0;p<a.length&&!(u==null||typeof u!=\"object\");p++)if(rt(u))u=u[a[p]];else break;if(c.value&&(typeof t.onBeforeUpdate==\"function\"||typeof t.onUpdate==\"function\")){let p=t.context?.designSystem;p&&ot(p);let d=\"onBeforeUpdate\";try{let h=!1;typeof t.onBeforeUpdate==\"function\"&&t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0})===!1&&(h=!0),d=\"onUpdate\",!h&&typeof t.onUpdate==\"function\"&&t.onUpdate(t,t.state,t.context)}catch(h){t.context?.plugins?.length&&Nt(\"error\",t,{hook:d,error:h})||console.error(`[DOMQL] subscribeTo ${d} error:`,h)}finally{p&&tt()}}},{depth:r.path.length});c.value=!0,l._isSubscribeToEffect=!0,r.__effects.push(l)}}function w0(t){let e=t.__ref;e.__conditionalRunners=[];for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=r.charAt(0);if(n!==\".\"&&n!==\"!\")continue;let o=r.slice(1);if(!o)continue;let s=t[r];if(!s||typeof s!=\"object\")continue;let i=n===\"!\",a={lastMatch:!1,appliedKeys:null},c=()=>{if(!t.node)return;let f,u=t[o];if(u===void 0)if(t.state&&o in t.state)f=t.state[o];else{let h=t.context?.cases?.[o];if(h===void 0)return;try{f=typeof h==\"function\"?h.call(t,t):h}catch(g){f=!1,e.__conditionalError=g,typeof console<\"u\"&&console.warn&&console.warn(`[smbls] conditional \\`${r}\\` case fn threw on ${t.key||\"?\"} \\u2014 treating as false:`,g?.message||g)}}else if(typeof u==\"function\")try{f=u(t,t.state,t.context)}catch(h){f=!1,e.__conditionalError=h,typeof console<\"u\"&&console.warn&&console.warn(`[smbls] conditional \\`${r}\\` predicate threw on ${t.key||\"?\"} \\u2014 treating as false:`,h?.message||h)}else f=u;let p=i?!f:!!f;if(p===a.lastMatch)return;a.lastMatch=p;let d=t.context?.designSystem;d&&ot(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(pt[m]){let b=pt[m](y,t,t.state,t.context);if(b){let x=Array.isArray(b)?b:[b];for(let _ of x)_&&Object.assign(h,_)}}else yt&&yt.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(dn(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&&tt()}};e.__conditionalRunners.push(c);let l=et(c,{depth:e.path.length});e.__effects.push(l)}}var zp=new WeakSet;function k0(t){let e=t.ownerDocument;!e||zp.has(e)||(zp.add(e),queueMicrotask(()=>{zp.delete(e);let r=e.body||e.documentElement;r&&r.offsetWidth}))}var Wp=new WeakSet,Em=!1;function v0(t){let{node:e}=t;if(!e)return;if(Em||(Em=!0,he({display:\"none\"})),Wp.has(t)){console.error(\"[applyCssInProps] re-entry detected for element\",t.key,\"prop path:\",t.__ref?.path);return}Wp.add(t);let r=t.context?.designSystem;r&&ot(r);try{let n={},o=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]==\"function\"||_t.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!hn(s)){if(pt[s]){let a=t[s],c=pt[s](a,t,t.state,t.context);if(c){if(Array.isArray(c))for(let l of c)l&&Object.assign(n,l);else Object.assign(n,c);o=!0}}else if(yt&&yt.has(s)){let a=t[s];a!=null&&typeof a!=\"object\"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=t[s];a!=null&&typeof a!=\"object\"&&(n[s]=a,o=!0)}else if(s.charAt(0)===\"&\"){let a=t[s];a&&typeof a==\"object\"&&(n[s]=a,o=!0)}else if(s.charAt(0)===\"@\"||s.charAt(0)===\":\"){let a=t[s];if(a&&typeof a==\"object\"){let c={},l=(f,u,p)=>{if(pt[u]){let d=pt[u](p,t,t.state,t.context);if(d)if(Array.isArray(d))for(let h of d)h&&Object.assign(f,h);else Object.assign(f,d)}else f[u]=p};for(let f in a){let u=a[f];if(typeof u==\"function\"&&(u=u(t,t.state,t.context)),!(u==null||typeof u==\"function\")){if(f===\"style\"&&typeof u==\"object\"&&!Array.isArray(u)){for(let p in u){let d=u[p];typeof d==\"function\"&&(d=d(t,t.state,t.context)),!(d==null||typeof d==\"function\")&&l(c,p,d)}continue}l(c,f,u)}}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 u={};for(let d in c){let h=c[d];u[d]=typeof h==\"string\"&&!h.includes(\"!important\")?h+\" !important\":h}let p=s.slice(1);n[`[data-theme=\"${p}\"] &`]=u}else{let u=s;if(s.charAt(0)===\"@\"&&!s.startsWith(\"@media\")&&!s.startsWith(\"@keyframes\")){let d=s.slice(1),h=t.context?.designSystem?.media?.[d]||t.context?.designSystem?.media?.[d];h&&(u=`@media ${h}`)}let p={};for(let d in c){let h=c[d];if(h&&typeof h==\"object\"&&!Array.isArray(h)){let g={};for(let m in h)if(pt[m]){let y=pt[m](h[m],t,t.state,t.context);if(y)if(Array.isArray(y))for(let b of y)b&&Object.assign(g,b);else Object.assign(g,y)}else g[m]=h[m];p[d]=g}else p[d]=h}Object.keys(p).length&&(n[u]=p)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes(\"!important\")&&(e.style.setProperty(\"display\",String(n.display).replace(/\\s*!important\\s*$/,\"\"),\"important\"),delete n.display);let s=he(n,null,t.context?.cssPrefix);if(s&&e.classList){let a=s.split(\" \").filter(Boolean),c=!1;for(let l of a)e.classList.add(l),c||(l.charCodeAt(0)===95&&l.charCodeAt(1)===99||l.charCodeAt(0)===95&&l.indexOf(\"_c\",1)!==-1)&&(c=!0);c&&k0(e)}let i=t.display!=null&&typeof t.display!=\"function\"?t.display:t.hide===!0||t.show===!1?\"none\":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i===\"none\"){let c=[];for(let l of e.classList)l.startsWith(\"_d-\")&&l!==\"_d-none\"&&c.push(l);for(let l of c)e.classList.remove(l);e.classList.add(\"_d-none\")}else e.style.display=t.display}}}finally{r&&tt(),Wp.delete(t)}}function Om(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria==\"object\")for(let o in t.aria){let s=t.aria[o];if(typeof s==\"function\"||typeof s==\"object\"||s==null||s===!1)continue;let i=\"aria-\"+o.replace(/[A-Z]/g,a=>\"-\"+a.toLowerCase());e.setAttribute(i,s===!0?\"\":s)}let r=Vp(t);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!=\"function\"&&typeof s!=\"object\"&&e.setAttribute(o,s===!0?\"\":s)}let n=t.tag||\"div\";for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||typeof t[o]==\"function\"||_t.has(o)||o===\"on\"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!hn(o)&&!(pt[o]||yt&&yt.has(o))&&Xe(n,o)){let i=t[o];if(i==null||i===!1||(typeof i==\"string\"&&i.includes(\"{{\")&&(i=lr(i,t,t.state,t.context),t[o]=i),i==null||i===!1||typeof i==\"function\"||typeof i==\"object\"))continue;e.setAttribute(o,i===!0?\"\":i)}}}function C0(t){if(!t.autoGrow)return;let e=t.node;if(!e||e.tagName!==\"TEXTAREA\")return;let r=t.autoGrow,n=r&&typeof r==\"object\"&&r.max?String(r.max):null;n&&(e.style.maxHeight=n);let o=()=>{e.style.height=\"auto\",e.style.height=e.scrollHeight+\"px\"};o(),e.addEventListener(\"input\",o),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener(\"input\",o)}catch{}})}var Rm=new Set([\"onSwipe\",\"onSwipeLeft\",\"onSwipeRight\",\"onSwipeUp\",\"onSwipeDown\"]);function Pm(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!hn(r)||Rm.has(r))continue;let n=t[r];if(typeof n==\"string\"&&/^[A-Za-z_$][\\w$]*$/.test(n)){let s=n;n=function(a){return t.call(s,a)}}if(typeof n!=\"function\")continue;let o=g0(r);qe.has(o)||cn(m0(o),t,n)}A0(t)}function A0(t){let e=t.node;if(!e||!e.addEventListener)return;let r={},n=!1;for(let p of Rm){let d=t[p];typeof d==\"function\"&&(r[p]=d,n=!0)}if(!n)return;let o=typeof t.swipeThreshold==\"number\"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration==\"number\"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,f=p=>{let d=p.touches&&p.touches[0]||p.changedTouches&&p.changedTouches[0];d&&(i=d.clientX,a=d.clientY,c=Date.now(),l=!0)},u=p=>{if(!l)return;l=!1;let d=p.changedTouches&&p.changedTouches[0]||p.touches&&p.touches[0];if(!d)return;let h=d.clientX-i,g=d.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(h),b=Math.abs(g);if(Math.max(y,b)<o)return;let x;if(y>b*1.2)x=h<0?\"left\":\"right\";else if(b>y*1.2)x=g<0?\"up\":\"down\";else return;let _=\"onSwipe\"+x.charAt(0).toUpperCase()+x.slice(1),E=r[_],C=r.onSwipe;E&&E.call(t,p,t,t.state,t.context),C&&C.call(t,{direction:x,dx:h,dy:g,dt:m,event:p},t,t.state,t.context)};e.addEventListener(\"touchstart\",f,{passive:!0}),e.addEventListener(\"touchend\",u,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener(\"touchstart\",f)}catch{}try{e.removeEventListener(\"touchend\",u)}catch{}})}function Ga(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o==\"object\"&&typeof s==\"object\"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!=\"function\"&&typeof s!=\"function\"?r[n]=Ga(o,s):r[n]=s}return r}function qp(t,e,r){if(!e||!t.node)return;let n=t.childExtends;if(Array.isArray(e)){let o=t.tag===\"fragment\",s=t.context?.document||globalThis.document,i=o?null:s?.createDocumentFragment();if(!o&&!i)return;let a=t.childProps,c=t.childrenAs;for(let l=0;l<e.length;l++){let f=e[l],u=f;(typeof f==\"string\"||typeof f==\"number\")&&(f={text:f});let p=a;if(typeof a==\"function\")try{p=a(t,f)}catch{p=null}if(c===\"state\"){let g=u;(typeof u==\"string\"||typeof u==\"number\")&&(g={value:u,text:u}),f=p?{...p,state:g}:{state:g}}else p&&(f=Ga(p,f));if(n&&!f.ignoreChildExtends)if(f.extends){let g=Array.isArray(f.extends)?f.extends:[f.extends],m=Array.isArray(n)?n:[n];f={...f,extends:[...m,...g]}}else f={...f,extends:n};let d=f?.key||u&&typeof u==\"object\"&&u.key||`${l}`,h=Ht(f,t,d,r);!o&&h?.node&&i.appendChild(h.node)}o||t.node.appendChild(i);return}if(typeof e==\"string\"){let o=Tm(e,t);if(Array.isArray(o)){qp(t,o,r);return}}if(typeof e==\"object\")for(let o in e){if(_t.has(o))continue;let s=e[o];if(!(s==null||s===!1)){if((typeof s==\"string\"||typeof s==\"number\")&&(s={text:s}),t.childProps&&(s=Ga(t.childProps,s)),n&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(n)?n:[n];s={...s,extends:[...a,...i]}}else s={...s,extends:n};Ht(s,t,o,r)}}}function Im(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r==\"function\"){let i=r;r=i(t,t.state,t.context),t.children=r;let a=t.__ref,c=!1,l=et(()=>{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 C=0;C<f.length;C++){let P=f[C],L=d;if(typeof d==\"function\")try{L=d(t,P)}catch{L=null}let O=L&&L.key||P&&P.key||`${C}`;h.push(O),g.set(O,{rawChild:P,childProps:L})}let m=new Set(h),y=a.__children.slice();for(let C of y)if(!m.has(C)){let P=t[C];P?.remove&&P.remove(),delete t[C]}let b=t.childExtends,x=t.tag===\"fragment\",_=t.context?.document||globalThis.document,E=x?null:_?.createDocumentFragment();for(let C of h){let P=g.get(C),L=P.rawChild,O=t[C];if(O&&O.state){if(L&&typeof L==\"object\"){let F=O.state;if(typeof F.replace==\"function\")F.replace(L);else if(typeof F.update==\"function\"){for(let N in F)if(!(N===\"__element\"||N===\"root\"||N===\"parent\"||N===\"update\")&&!Object.prototype.hasOwnProperty.call(L,N))try{F[N]=void 0}catch{}F.update(L)}else for(let N in L)F[N]=L[N]}continue}let $=L;(typeof L==\"string\"||typeof L==\"number\")&&($={value:L,text:L});let lt=P.childProps,W=lt?{...lt,state:$}:{state:$};if(b&&!W.ignoreChildExtends)if(W.extends){let F=Array.isArray(W.extends)?W.extends:[W.extends],N=Array.isArray(b)?b:[b];W={...W,extends:[...N,...F]}}else W={...W,extends:b};let G=Ht(W,t,C,e);!x&&G?.node&&E&&E.appendChild(G.node)}!x&&E&&E.childNodes.length&&t.node&&t.node.appendChild(E),a.__children=h;return}for(let d of[...a.__children]){let h=t[d];h?.remove&&h.remove(),delete t[d]}a.__children=[],qp(t,f,e)},{depth:a.path.length});a.__effects.push(l)}if(qp(t,r||n,e),r||n)return;let s=t.context?.components||{};{let i=Object.keys(t);for(let a=0;a<i.length;a++){let c=i[a];if(!c.endsWith(\"Extends\")||typeof t[c]!=\"string\")continue;let l=c.slice(0,-7);if(!l||l.charCodeAt(0)<65||l.charCodeAt(0)>90)continue;let f={extends:t[c]};delete t[c];for(let u=a+1;u<i.length;u++){let p=i[u],d=p.charCodeAt(0);if(d>=65&&d<=90||_t.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)||_t.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={...c,extends:l})}if(t.childProps&&(c=Ga(t.childProps,c)),o&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(o)?o:[o];c={...c,extends:[...f,...l]}}else c={...c,extends:o};Ht(c,t,i,e)}}}function Kp(t,e,r){let{node:n}=t;if(!n)return;n.ref=t;let o=e?.tag===\"fragment\"?e.__ref?.__fragmentAnchor:null;if(o){let i=o.parentNode;if(i){if(r?.position===\"before\"&&r.node)i.insertBefore(n,r.node);else if(r?.position===\"after\"&&r.node){let a=r.node.nextSibling;i.insertBefore(n,a||o)}else i.insertBefore(n,o);return}}let s=e?.node||(e?.nodeType?e:null);if(s)if(r?.position===\"before\"&&r.node)s.insertBefore(n,r.node);else if(r?.position===\"after\"&&r.node){let i=r.node.nextSibling;i?s.insertBefore(n,i):s.appendChild(n)}else s.appendChild(n)}function Ze(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Nt(n,e,r);let o=\"on\"+t,s=e[o];if(typeof s==\"function\"){let i=t===\"Render\"||t===\"RenderRouter\";if(i){if(e.__ref.__inRender)return!0;e.__ref.__inRender=!0}let a=e.context?.designSystem;a&&ot(a);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(c){if(e.context?.plugins?.length&&Nt(\"error\",e,{hook:o,error:c})||console.error(`[DOMQL] Lifecycle \"${o}\" error:`,c),e.context?.strictMode)throw c}finally{a&&tt(),i&&(e.__ref.__inRender=!1)}}return!0}var $m={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\"]},Fm={\"gradient-blue-light\":`linear-gradient(to right,\n rgba(4, 116, 242, 1),\n rgba(0, 48, 103, 1)\n )`,\"gradient-blue-dark\":`linear-gradient(to right,\n #0474F2,\n #003067\n )`,\"gradient-dark\":`linear-gradient(0deg,\n rgba(0,0,0,0.06) 0%,\n rgba(0,0,0,0.07) 100%\n )`,\"gradient-dark-active\":`linear-gradient(0deg,\n rgba(0,0,0,0.09) 0%,\n rgba(0,0,0,0.1) 100%\n )`,\"gradient-light\":`linear-gradient(\n 0deg,\n rgba(255,255,255,0.05) 0%,\n rgba(255,255,255,0.06) 100%\n )`,\"gradient-light-active\":`linear-gradient(\n 0deg,\n rgba(255,255,255,0.09) 0%,\n rgba(255,255,255,0.10) 100%\n )`,\"gradient-colorful\":`linear-gradient(60deg,\n #00A2E7 0%,\n #185DF3 31%,\n #1E54F0 36%,\n #8B4CCA 69%,\n #C66894 100%\n )`};var E0={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\"}}}},T0={alert:{\"@dark\":{color:\"white\",background:\"red\"}},warning:{\"@dark\":{color:\"black\",background:\"yellow\"}},success:{\"@dark\":{color:\"black\",background:\"green\"}}},O0={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\"}}},Dm={document:{\"@light\":{color:\"black\",background:\"white\"},\"@dark\":{color:\"white\",background:\"black\"}},...E0,...T0,...O0,none:{color:\"none\",background:\"none\"},transparent:{color:\"currentColor\",background:\"transparent\"}};var Lm={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var Mm={ratio:1.618,subSequence:!0};var Nm={SourceSans:[{url:\"\"}]},jm={system:{isDefault:!0,isSystemFallback:!0,value:[\"system-ui\",\"-apple-system\",\"BlinkMacSystemFont\",'\"Segoe UI\"',\"Roboto\",'\"Helvetica Neue\"',\"Arial\",'\"Noto Sans\"','\"Liberation Sans\"'],type:\"sans-serif\"}};var Bm={symbols:'<svg height=\"24\" width=\"24\"><path d=\"M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z\" fill-rule=\"evenodd\"/></svg>',logo:'<svg height=\"24\" width=\"24\"><path d=\"M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z\" fill-rule=\"evenodd\"/></svg>',arrowDownCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down-circle\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M8 12l4 4 4-4M12 8v8\"/></svg>',arrowDownLeft:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down-left\"><path d=\"M17 7L7 17M17 17H7V7\"/></svg>',arrowDownRight:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down-right\"><path d=\"M7 7l10 10M17 7v10H7\"/></svg>',arrowDown:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down\"><path d=\"M12 5v14M19 12l-7 7-7-7\"/></svg>',arrowLeftCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-left-circle\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 8l-4 4 4 4M16 12H8\"/></svg>',arrowLeft:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-left\"><path d=\"M19 12H5M12 19l-7-7 7-7\"/></svg>',arrowRight:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-right\"><path d=\"M5 12h14M12 5l7 7-7 7\"/></svg>',arrowRightCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-right-circle\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 16l4-4-4-4M8 12h8\"/></svg>',arrowUpCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-up-circle\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M16 12l-4-4-4 4M12 16V8\"/></svg>',arrowUpLeft:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-up-left\"><path d=\"M17 17L7 7M7 17V7h10\"/></svg>',arrowUpRight:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-up-right\"><path d=\"M7 17L17 7M7 7h10v10\"/></svg>',arrowUp:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-up\"><path d=\"M12 19V5M5 12l7-7 7 7\"/></svg>',checkCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-check-circle\"><path d=\"M22 11.08V12a10 10 0 11-5.93-9.14\"/><path d=\"M22 4L12 14.01l-3-3\"/></svg>',check:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-check\"><path d=\"M20 6L9 17l-5-5\"/></svg>',chevronDown:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-chevron-down\"><path d=\"M6 9l6 6 6-6\"/></svg>',chevronLeft:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-chevron-left\"><path d=\"M15 18l-6-6 6-6\"/></svg>',chevronRight:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-chevron-right\"><path d=\"M9 18l6-6-6-6\"/></svg>',chevronUp:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-chevron-up\"><path d=\"M18 15l-6-6-6 6\"/></svg>',copy:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-copy\"><rect x=\"9\" y=\"9\" width=\"13\" height=\"13\" rx=\"2\" ry=\"2\"/><path d=\"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1\"/></svg>',eyeOff:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-eye-off\"><path d=\"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22\"/></svg>',eye:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-eye\"><path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/></svg>',info:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-info\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 16v-4M12 8h.01\"/></svg>',lock:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-lock\"><rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\"/><path d=\"M7 11V7a5 5 0 0110 0v4\"/></svg>',minus:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-minus\"><path d=\"M5 12h14\"/></svg>',sun:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-sun\"><circle cx=\"12\" cy=\"12\" r=\"5\"/><path d=\"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42\"/></svg>',moon:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-moon\"><path d=\"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z\"/></svg>',moreHorizontal:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-more-horizontal\"><circle cx=\"12\" cy=\"12\" r=\"1\"/><circle cx=\"19\" cy=\"12\" r=\"1\"/><circle cx=\"5\" cy=\"12\" r=\"1\"/></svg>',moreVertical:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-more-vertical\"><circle cx=\"12\" cy=\"12\" r=\"1\"/><circle cx=\"12\" cy=\"5\" r=\"1\"/><circle cx=\"12\" cy=\"19\" r=\"1\"/></svg>',send:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-send\"><path d=\"M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z\"/></svg>',smile:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-smile\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01\"/></svg>',search:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-search\"><circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"M21 21l-4.35-4.35\"/></svg>',upload:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-upload\"><path d=\"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12\"/></svg>',video:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-video\"><path d=\"M23 7l-7 5 7 5V7z\"/><rect x=\"1\" y=\"5\" width=\"15\" height=\"14\" rx=\"2\" ry=\"2\"/></svg>',x:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-x\"><path d=\"M18 6L6 18M6 6l12 12\"/></svg>',star:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-star\"><path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\"/></svg>',plus:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-plus\"><path d=\"M12 5v14M5 12h14\"/></svg>'};var Vm={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 Um={base:150,ratio:1.333,unit:\"ms\",subSequence:!0};var Ms={version:\"0.0.1\",color:$m,gradient:Fm,theme:Dm,typography:Lm,spacing:Mm,font:Nm,fontFamily:jm,timing:Um,icons:Bm,media:Vm,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var mn={};I(mn,{A:()=>rb,AssetPicture:()=>iy,Audio:()=>ly,Avatar:()=>yb,B:()=>Ty,Block:()=>zm,Box:()=>Xa,Br:()=>Iy,Button:()=>sb,ButtonSet:()=>lb,COMPONENTS:()=>vr,Caption:()=>xy,Checkbox:()=>Uy,CheckboxHgroup:()=>zy,Circle:()=>ny,CircleButton:()=>ab,Clickable:()=>ty,Data:()=>Ry,Dialog:()=>ub,DialogFooter:()=>db,DialogHeader:()=>pb,Dropdown:()=>xb,DropdownList:()=>_b,DropdownParent:()=>Sb,DropdownParentFocus:()=>wb,DropdownSiblingFocus:()=>kb,FileIcon:()=>Jy,Flex:()=>Hm,Focusable:()=>ey,FocusableComponent:()=>ry,Footnote:()=>Ey,Form:()=>Zm,Grid:()=>qm,Gutter:()=>Ym,H1:()=>py,H2:()=>dy,H3:()=>hy,H4:()=>gy,H5:()=>my,H6:()=>yy,Headline:()=>Cy,Hgroup:()=>My,HgroupButton:()=>jy,HgroupRows:()=>Ny,Hoverable:()=>Qm,Hr:()=>Py,I:()=>Oy,Icon:()=>Xy,IconButton:()=>fb,IconText:()=>Zy,Iframe:()=>Jm,Img:()=>Xm,Inline:()=>Wm,InlineFlex:()=>Gm,InlineGrid:()=>Km,Input:()=>By,Italic:()=>ky,KangorooButton:()=>cb,Li:()=>$y,Link:()=>vd,Notification:()=>vb,NumberInput:()=>Vy,Ol:()=>Dy,P:()=>by,Picture:()=>sy,Radio:()=>Wy,RadioHgroup:()=>Hy,Range:()=>bb,RouteLink:()=>nb,RouterLink:()=>Cd,SHAPES:()=>Ka,Select:()=>ob,Shape:()=>ed,Span:()=>uy,SquareButton:()=>ib,Strong:()=>_y,Subhead:()=>Ay,Svg:()=>ay,Text:()=>fy,Textarea:()=>Ky,TextareaWithButton:()=>Yy,Theme:()=>oy,Title:()=>vy,Toggle:()=>Gy,ToggleHgroup:()=>qy,Tooltip:()=>hb,TooltipHidden:()=>gb,TooltipParent:()=>mb,U:()=>Sy,Ul:()=>Fy,Underline:()=>wy,Video:()=>cy,depth:()=>Ya,getSystemGlobalTheme:()=>Ns});var Xp={};I(Xp,{Block:()=>zm,Flex:()=>Hm,Grid:()=>qm,Gutter:()=>Ym,Inline:()=>Wm,InlineFlex:()=>Gm,InlineGrid:()=>Km});var zm={display:\"block\"},Wm={display:\"inline\"},Hm={display:\"flex\"},Gm={display:\"inline-flex\"},qm={display:\"grid\"},Km={display:\"inline-grid\"},Ym={boxSize:\"C1\"};var Zp={};I(Zp,{Img:()=>Xm});R();var Xm={tag:\"img\",attr:{title:t=>t.title||t.alt,alt:t=>t.alt!=null?t.alt:t.title||\"\",src:t=>{let e=Tt(t);return e&&e.src||t.src},srcset:t=>{let e=Tt(t);return(e?qo(e):\"\")||t.srcset}}};var Jp={};I(Jp,{Form:()=>Zm});var Zm={tag:\"form\"};var Qp={};I(Qp,{Iframe:()=>Jm});var Jm={tag:\"iframe\",position:\"relative\",minWidth:\"G\",minHeight:\"G\"};var td={};I(td,{Clickable:()=>ty,Focusable:()=>ey,FocusableComponent:()=>ry,Hoverable:()=>Qm});var R0={appearance:\"none\",cursor:\"pointer\",fontFamily:\"inherit\"},Qm={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}}},ty={extends:\"Hoverable\",\":active\":{opacity:1,transform:\"scale(1.015)\"},\".active\":{opacity:1}},ey={border:\"none\",outline:\"solid 0 blue.3\",\":focus-visible\":{opacity:1,outline:\"solid X blue.3\"},attr:{tabIndex:t=>t.tabIndex}},ry={extends:\"Focusable\",tag:\"button\",fontSize:\"A\",type:\"button\",border:\"none\",textDecoration:\"none\",lineHeight:\"1\",whiteSpace:\"nowrap\",fontFamily:\"inherit\",style:R0};var od={};I(od,{Picture:()=>sy});var nd={};I(nd,{Theme:()=>oy,getSystemGlobalTheme:()=>Ns});var rd={};I(rd,{Circle:()=>ny,SHAPES:()=>Ka,Shape:()=>ed,default:()=>P0,depth:()=>Ya});R();var qt=A(),Ya={4:{boxShadow:`rgba(0,0,0,.10) 0 2${qt.unit.default} 4${qt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${qt.unit.default} 6${qt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${qt.unit.default} 10${qt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${qt.unit.default} 16${qt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${qt.unit.default} 26${qt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${qt.unit.default} 42${qt.unit.default}`}},gn=t=>Z(t.shapeDirectionColor)||Z(t.borderColor)||Z(t.backgroundColor)||Z(t.background),qa=t=>{let e=Fs.transition(t.transition,t);return e&&e.transition},Ka={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:gn(t),transition:qa(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:gn(t),transition:qa(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:gn(t),transition:qa(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:qa(t),transitionProperty:\"background\"},\"&:before\":{background:`linear-gradient(225deg, ${gn(t)} 25%, transparent 25%), linear-gradient(315deg, ${gn(t)} 25%, transparent 25%)`},\"&:after\":{background:gn(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)\"}}}},ed={deps:{exec:K,getSpacingBasedOnRatio:te,getMediaColor:mt},classlist:{shape:t=>t.deps.exec(Ka[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Ka[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}}},ny={round:\"100%\"},P0=ed;R();var Ns=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n===\"auto\"?null:n},oy={deps:{depth:Ya},classlist:{depth:t=>!ht(t.depth)&&t.deps.depth[t.depth]}};var sy={deps:{getSystemGlobalTheme:Ns},tag:\"picture\",childExtends:{deps:{getSystemGlobalTheme:Ns},tag:\"source\",attr:{media:t=>{let{key:e,context:r,deps:n}=t,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?\"(min-width: 0px)\":i===\"dark\"||i===\"light\"?\"(max-width: 0px)\":o[i]}}},Img:{width:\"inherit\",ignoreChildExtends:!0,height:\"inherit\",src:(t,e)=>t.parent?.src||e.src}};var sd={};I(sd,{AssetPicture:()=>iy});R();var iy={tag:\"picture\",children:t=>{let e=Tt(t);if(e)return Ko(e,t.alt)}};var id={};I(id,{Svg:()=>ay});var ay={tag:\"svg\",attr:{xmlns:\"http://www.w3.org/2000/svg\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!=\"function\")return t.call(\"exec\",t.html,t);let{designSystem:r,utils:n}=e,o=r&&r.svg,s=t.spriteId||r&&r.useSvgSprite,i=t.call(\"exec\",t.src,t);if(!s&&i)return i;let a=p=>`<use xlink:href=\"#${p}\" />`,c=t.spriteId;if(c)return a(c);if(o&&o[i])return a(i);let l=Symbol.for(i),f=o[l];if(f&&o[f])return a(f);if(!i)return a(\"\");if(typeof i==\"string\"&&!i.includes(\"<\"))return typeof console<\"u\"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol \"${i}\" \\u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a(\"\");let u=0;for(let p=0;p<i.length;p++)u=(u<<5)-u+i.charCodeAt(p)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var ad={};I(ad,{Video:()=>cy});R();var cy={tag:\"video\",controls:!0,attr:{src:t=>{let e=Tt(t);return e&&e.src||t.src}},children:t=>{let e=Tt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:\"source\",attr:{src:r.src,type:r.format}}))},childExtends:{tag:\"source\"}};var cd={};I(cd,{Audio:()=>ly});R();var ly={tag:\"audio\",controls:!0,attr:{src:t=>{let e=Tt(t);return e&&e.src||t.src}},children:t=>{let e=Tt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:\"source\",attr:{src:r.src,type:r.format}}))},childExtends:{tag:\"source\"}};var ld={};I(ld,{B:()=>Ty,Caption:()=>xy,Data:()=>Ry,Footnote:()=>Ey,H1:()=>py,H2:()=>dy,H3:()=>hy,H4:()=>gy,H5:()=>my,H6:()=>yy,Headline:()=>Cy,I:()=>Oy,Italic:()=>ky,P:()=>by,Span:()=>uy,Strong:()=>_y,Subhead:()=>Ay,Text:()=>fy,Title:()=>vy,U:()=>Sy,Underline:()=>wy});var fy={},uy={tag:\"span\"},py={tag:\"h1\"},dy={tag:\"h2\"},hy={tag:\"h3\"},gy={tag:\"h4\"},my={tag:\"h5\"},yy={tag:\"h6\"},by={tag:\"p\"},xy={tag:\"caption\"},_y={tag:\"strong\",fontWeight:\"700\"},Sy={tag:\"u\"},wy={tag:\"u\"},ky={tag:\"i\"},vy={},Cy={tag:\"h6\",fontSize:\"B\",fontWeight:500},Ay={tag:\"span\",fontSize:\"Z1\"},Ey={tag:\"span\",fontSize:\"Z\"},Ty={tag:\"b\"},Oy={tag:\"i\"},Ry={tag:\"data\"};var fd={};I(fd,{Box:()=>Xa,Br:()=>Iy,Hr:()=>Py,Li:()=>$y,Ol:()=>Dy,Ul:()=>Fy});var I0=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Ft(e,t,{unpack:!1});r.__class=n},Xa={extends:[\"Shape\",\"Theme\"],boxSizing:\"border-box\",onBeforeClassAssign:I0},Py={tag:\"hr\",margin:\"C1 0\"},Iy={tag:\"br\"},$y={tag:\"li\"},Fy={tag:\"ul\",childExtends:{extends:\"Li\"}},Dy={tag:\"ol\",childExtends:{extends:\"Li\"}};var ud={};I(ud,{Hgroup:()=>My,HgroupButton:()=>jy,HgroupRows:()=>Ny});var Ly=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},My={display:\"flex\",tag:\"hgroup\",flow:\"y\",gap:\"Y2\",H:{if:Ly,color:\"title\",tag:\"h3\",lineHeight:\"1em\",margin:\"0\"},P:{if:Ly,margin:\"0\",color:\"paragraph\"}},Ny={extends:\"Hgroup\",H:{display:\"flex\",color:\"title\",align:\"center space-between\"},P:{color:\"paragraph\",align:\"center space-between\"}},jy={extends:\"HgroupRows\",H:{justifyContent:\"space-between\",Span:{},Button:{background:\"transparent\",color:\"currentColor\",padding:\"0\",Icon:{name:\"x\",fontSize:\"C\"}}},P:{}};var pd={};I(pd,{Input:()=>By});var By={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 dd={};I(dd,{NumberInput:()=>Vy});var Vy={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 hd={};I(hd,{Checkbox:()=>Uy,CheckboxHgroup:()=>zy});var Uy={extends:\"Focusable\",tag:\"label\",boxSize:\"fit-content fit-content\",cursor:\"pointer\",round:\"Y\",Input:{type:\"checkbox\",position:\"absolute\",opacity:\"0\",width:\"1px\",height:\"1px\",margin:\"-1px\",overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",\":checked + div\":{theme:\"primary\"},\":checked + div > svg\":{transform:\"none\",opacity:\"1\"},\":focus-visible + div\":{outline:\"solid X blue.3\",outlineOffset:\"Z\"},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\"}}},zy={display:\"flex\",tag:\"label\",boxSize:\"fit-content\",align:\"flex-start flex-start\",gap:\"A\",Checkbox:{tag:\"div\"},HgroupRows:{gap:\"Z1\",margin:\"Y - - -\"}};var gd={};I(gd,{Radio:()=>Wy,RadioHgroup:()=>Hy});var Wy={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}},Hy={extends:\"CheckboxHgroup\",Checkbox:null,Radio:{}};var md={};I(md,{Toggle:()=>Gy,ToggleHgroup:()=>qy});var Gy={extends:\"Checkbox\",Input:{role:\"switch\",\":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}},qy={extends:\"CheckboxHgroup\",Checkbox:null,Toggle:{}};var yd={};I(yd,{Textarea:()=>Ky,TextareaWithButton:()=>Yy});var Ky={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\"}},Yy={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 bd={};I(bd,{FileIcon:()=>Jy,Icon:()=>Xy,IconText:()=>Zy});var Xy={extends:\"Svg\",width:\"A\",height:\"A\",display:\"inline-block\",style:{fill:\"currentColor\",\"*\":{fill:\"currentColor\"}},onInit:(t,e,r)=>{let{parent:n}=t,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=h=>{let g=h[\".isActive\"];if(g)return h.call(\"exec\",g.name||g.icon)},l=(h,g,m)=>{let{semanticIcons:y}=m&&m.designSystem,{toCamelCase:b}=m&&m.utils,x=f(h,g),E=b(x).split(/([a-z])([A-Z])/g),C=E[1]?E[0]:x.split(\".\")[0].split(\" \")[0],P=y&&y[C];if(P){let L=x.includes(\".\")?\"sfsymbols.\"+x.split(\".\").slice(1).join(\".\"):\"sfsymbols\";return x=P[L]||P[x.split(\".\")[0].split(\" \")[0]],{tag:\"span\",semanticIcons:!0,width:\"A\",height:\"A\",lineHeight:\"1em\",\":after\":{fontSize:\"Z\",fontWeight:\"300\",content:`\"${x}\"`,textAlign:\"center\",display:\"inline-block\",style:{color:\"currentColor\",fontFamily:\"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'\"}}}}},f=(h,g)=>{let{key:m}=h,y=h.call(\"exec\",h.name||h.icon||m,h);return h.call(\"isString\",y)&&y.includes(\"{{\")&&(y=h.call(\"replaceLiteralsWithObjectFields\",y)),h.call(\"isString\",y)?y:m},u=t.src,d=et(()=>{let h=f(t,e);if(h.includes(\" \")){let O=h.split(\" \");h=O[0]+O.slice(1).map($=>$.charAt(0).toUpperCase()+$.slice(1)).join(\"\")}let g=a(h),m=g.split(/([a-z])([A-Z])/g),y=l(t,e,r);if(y){Object.assign(t,y);return}let b;t.isActive&&(b=c(t));let x=n[\".isActive\"];n&&n.isActive&&x&&x.icon&&(b=t.call(\"exec\",x.icon||x.Icon.name||x.Icon.icon,t)),t.call(\"isString\",b)&&b.includes(\"{{\")&&(b=t.call(\"replaceLiteralsWithObjectFields\",b));let _;o[b]&&(_=b),o[g]?_=g:o[m[0]+m[1]]?_=m[0]+m[1]:o[m[0]]?_=m[0]:i&&t.warn(\"Can't find icon:\",h,_);let E=o[_],C=n&&n.src||u,P=s&&_,L=E||C||o.noIcon;if(!(t.spriteId===P&&t.src===L&&t.node&&t.node.innerHTML)&&(t.spriteId=P,t.src=L,typeof t.html==\"function\"&&t.node)){let O=t.context&&t.context.designSystem;O&&ot(O);try{let $=t.html(t,t.state,t.context);$!=null&&typeof $!=\"function\"&&(t.node.innerHTML=$)}finally{O&&tt()}}},{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0});t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(d))},attr:{viewBox:\"0 0 24 24\",\"aria-hidden\":t=>t.ariaLabel||t.role===\"img\"?null:\"true\",focusable:\"false\"}},Zy={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},Jy={display:\"flex\",theme:\"tertiary\",boxSize:\"C1\",align:\"center center\",round:\"Z2\",Icon:{fontSize:\"B\",margin:\"auto\",icon:\"file\"}};var Ad={};I(Ad,{A:()=>rb,Link:()=>vd,RouteLink:()=>nb,RouterLink:()=>Cd});var js={};I(js,{default:()=>M0,getActiveRoute:()=>kd,lastLevel:()=>Ja,lastPathname:()=>Za,matchRoute:()=>_d,parseQuery:()=>Sd,parseRoutePattern:()=>xd,router:()=>ge,runGuards:()=>wd});R();var tb=/^:(.+)/,eb=/^\\*$/,Qy=new Map,xd=t=>{let e=Qy.get(t);if(e)return e;let r=t.replace(/^\\//,\"\").split(\"/\"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(tb);a?n.push({index:i,name:a[1]}):eb.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return Qy.set(t,s),s},_d=(t,e,r=0)=>{let o=t.replace(/^\\//,\"\").split(\"/\").filter(Boolean).slice(r),s=\"/\"+(o[0]||\"\");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l===\"/*\")continue;let f=xd(l),u=$0(o,f);u>a&&(a=u,i=l,c=F0(o,f))}return!i&&e[\"/*\"]&&(i=\"/*\"),{key:i,content:i?e[i]:null,params:c,routePath:s}},$0=(t,e)=>{let{segments:r,hasWildcard:n}=e;if(!n&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let o=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])o+=3;else if(tb.test(r[i]))o+=1;else if(eb.test(r[i]))o+=.5;else return-1;return o},F0=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},Sd=t=>{if(!t||t===\"?\")return{};let e={};return new URLSearchParams(t).forEach((n,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(n)):e[o]=n}),e},wd=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let n=await r(e);if(n===!1)return!1;if(typeof n==\"string\")return n}return!0},kd=(t=0,e)=>{e||(e=typeof k<\"u\"?k.location.pathname:\"/\");let n=e.split(\"/\")[t+1];if(n)return`/${n}`},Za,Ja=0,D0=t=>!t||t===\"srcdoc\"||t===\"about:srcdoc\"?\"/\":t,L0={level:Ja,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,get scrollNode(){return typeof q<\"u\"&&(q.scrollingElement||q.documentElement)||null},scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:\"content\",scrollToOptions:{behavior:\"smooth\"},useParamsMatching:!0},ge=async(t,e,r={},n={})=>{let o=e||void 0,s=o?.context?.window||k,i=o?.context?.document||q,a={...L0,...o.context.routerOptions,...n};Ja=a.lastLevel;let c=o.__ref;(a.contentElementKey!==\"content\"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||\"content\");let l=c.contentElementKey||a.contentElementKey||\"content\",f=s.location.origin!==\"null\"?s.location.origin:\"http://localhost\";t=D0(t);let u=typeof s.URL==\"function\"?s.URL:typeof globalThis<\"u\"&&globalThis.URL||URL,p=new u(f+t),{pathname:d,search:h,hash:g}=p,m=Sd(h),y=o.node,b=g&&g!==s.location.hash.slice(1),x=d!==Za;Za=d;let _,E,C,P;if(a.useParamsMatching){let O=_d(d,o.routes,a.level);_=O.key,E=O.routePath,C=O.content,P=O.params}else{_=kd(a.level,d),E=_;let O=o.routes;C=O?O[_||\"/\"]||O[\"/*\"]:null,P={}}let L=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!C){a.onNotFound?a.onNotFound({pathname:d,route:_,element:o}):a.silent||console.warn(\"[smbls/router] no content matched for path\",d,\"\\u2014 available routes:\",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let O={pathname:d,route:_,params:P,query:m,hash:g,element:o,state:r},$=await wd(a.guards,O);if($===!1)return;if(typeof $==\"string\")return ge($,e,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,d+(h||\"\")+(g||\"\"))}catch{}if(x||!b){let O={route:_,routePath:E,hash:g,debugging:!1};Object.keys(P).length&&(O.params=P),Object.keys(m).length&&(O.query=m),a.updateState&&o.state.update(O,{preventContentUpdate:!0}),l&&a.removeOldElement&&o[l].remove();let $=o.__ref?.origin?.content,lt={};if($)for(let G in $){let F=$[G];G===\"__ref\"||G===\"props\"||G===\"node\"||G===\"parent\"||G===\"key\"||(typeof F==\"string\"||typeof F==\"number\"||typeof F==\"boolean\"||typeof F==\"object\"&&F!==null&&!F.node&&!F.__ref)&&(lt[G]=F)}let W={...lt,...typeof C==\"object\"?C:{extends:C}};a.useFragment&&(W.tag=\"fragment\");try{if(typeof o?.set!=\"function\")return;o.set(W,{contentElementKey:l})}catch(G){console.error(\"[smbls/router] failed to render route content\",d,G)}}if(a.scrollToTop&&L?.scrollTo&&L.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&C[l]?.node?.scrollTo&&C[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let O=i.getElementById(g);if(O&&L?.scrollTo){let $=O.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);L.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}$e(\"routeChanged\",o,a)},M0=ge;var N0=(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call(\"exec\",o,e);if(e.call(\"isString\",a)&&a.includes(\"{{\")&&(a=e.call(\"replaceLiteralsWithObjectFields\",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:u}=n,p=e.__ref.root,d=a.startsWith(\"http://\")||a.startsWith(\"https://\")||a.startsWith(\"mailto:\")||a.startsWith(\"tel:\")||a.startsWith(\"sketch:\")||a.startsWith(\"whatsapp:\")||a.startsWith(\"sms:\")||a.startsWith(\"skype:\")||a.startsWith(\"viber:\")||a.startsWith(\"callto:\")||a.startsWith(\"facetime:\")||a.startsWith(\"facetime-audio:\")||a.startsWith(\"geo:\")||a.startsWith(\"maps:\");if(a&&!d){t.preventDefault();try{let h=p;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split(\".\"),m=p;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,p.routes&&(h.routes=p.routes))}(f.router||l.router||c.router||ge)(a,h,{},{scrollToOptions:{behavior:\"instant\"},scrollToTop:e.call(\"isDefined\",s)?s:!0,...u,...e.routerOptions})}catch(h){console.warn(h)}}},vd={extends:\"Focusable\",tag:\"a\",aria:{},fontWeight:\"bold\",textDecoration:\"none\",color:\"currentColor\",draggable:!1,attr:{href:t=>Ye(t,t.href)||Ye(t,t.call(\"exec\",t,t).href),\"aria-label\":t=>t.aria?t.aria.label:t.text},onClick:N0},rb={extends:\"Link\"},Cd={onClick:(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call(\"exec\",o,e);if(e.call(\"isString\",a)&&a.includes(\"{{\")&&(a=e.call(\"replaceLiteralsWithObjectFields\",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:u}=n,p=e.__ref.root,d=a.startsWith(\"http://\")||a.startsWith(\"https://\")||a.startsWith(\"mailto:\")||a.startsWith(\"tel:\")||a.startsWith(\"sketch:\")||a.startsWith(\"whatsapp:\")||a.startsWith(\"sms:\")||a.startsWith(\"skype:\")||a.startsWith(\"viber:\")||a.startsWith(\"callto:\")||a.startsWith(\"facetime:\")||a.startsWith(\"facetime-audio:\")||a.startsWith(\"geo:\")||a.startsWith(\"maps:\");if(a&&!d){t.preventDefault();try{let h=p;if(u&&u.customRouterElement){let g=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split(\".\"),m=p;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,p.routes&&(h.routes=p.routes))}(f.router||l.router||c.router||ge)(a,h,{},{scrollToOptions:{behavior:\"instant\"},scrollToTop:e.call(\"isDefined\",s)?s:!0,...u,...e.routerOptions})}catch(h){console.warn(h)}}}},nb={extends:[vd,Cd]};var Ed={};I(Ed,{Select:()=>ob});var ob={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 Td={};I(Td,{Button:()=>sb,ButtonSet:()=>lb,CircleButton:()=>ab,IconButton:()=>fb,KangorooButton:()=>cb,SquareButton:()=>ib});var sb={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)},ib={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\"},ab={extends:\"SquareButton\",round:\"C\"},cb={extends:\"Button\",childExtends:\"IconText\"},lb={tag:\"nav\",display:\"flex\",childExtends:\"SquareButton\"},fb={extends:[\"SquareButton\",\"ClickableItem\"],round:\"Z\"};var Od={};I(Od,{Dialog:()=>ub,DialogFooter:()=>db,DialogHeader:()=>pb});var ub={display:\"flex\",tag:\"dialog\",flow:\"column\",border:\"0\",theme:\"dialog\",round:\"Z2\"},pb={extends:\"Hgroup\",minWidth:\"100%\",gap:\"A\",Title:{align:\"center space-between\",Text:{text:\"Title\"},SquareButton:{icon:\"x\",theme:\"transparent\"}},Paragraph:{color:\"caption\"}},db={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 Rd={};I(Rd,{Tooltip:()=>hb,TooltipHidden:()=>gb,TooltipParent:()=>mb});R();var hb={display:\"flex\",theme:\"dialog\",background:\"black\",flow:\"column\",shape:\"tooltip\",shapeDirection:\"left\",padding:\"Z1 A\",round:\"Y2\",width:\"fit-content\",minWidth:\"D2\",maxWidth:\"F2\",gap:\"X\",textAlign:\"center\",attr:{tooltip:!0},Title:{if:t=>vt(t.parent.title)||t.parent.title,width:\"fit-content\",fontWeight:500,color:\"gray12\",text:t=>t.parent.title},P:{if:(t,e)=>t.call(\"isDefined\",t.call(\"exec\",t.parent.description,t))||t.text,width:\"fit-content\",fontSize:\"Z2\",margin:\"0\",color:\"gray6\",fontWeight:\"400\",text:(t,e)=>t.call(\"exec\",t.parent.description,t)}},gb={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)}},mb={position:\"relative\",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;if(!n)return;let o=n&&n[\".isActive\"];Object.assign(t,{\":hover, &:focus-visible\":{zIndex:1e3,\"& [tooltip]\":o||{transform:\"translate3d(-50%, 0, 0)\",opacity:1,visibility:\"visible\"}}})}};var Pd={};I(Pd,{Avatar:()=>yb});var yb={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\"}`,attr:{alt:t=>t.alt!=null?t.alt:t.text?t.call(\"exec\",t.text,t):t.key&&t.key!==\"no-avatar\"?t.key:\"\"}};var Id={};I(Id,{Range:()=>bb});var bb={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:qr(\"#454646\",.75)},\":hover\":{\"::-webkit-slider-thumb\":{borderColor:qr(\"#fff\",.35)}},\":focus\":{\"::-webkit-slider-thumb\":{borderColor:\"#3C6AC0\"}}},\"@light\":{background:\"gray9\",\"::-webkit-slider-thumb\":{background:\"white\",borderColor:\"gray9\"},\":hover\":{\"::-webkit-slider-thumb\":{borderColor:\"gray7\"}},\":focus\":{\"::-webkit-slider-thumb\":{borderColor:\"blue\"}}},deps:{returnPropertyValue:(t,e,r)=>{let n=t.call(\"exec\",t[e],t);return(t.call(\"isFunction\",n)?n(t,t.state):n!==void 0?n:r!==void 0?r:0)+\"\"}},attr:{type:\"range\",value:(t,e)=>t.call(\"exec\",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,\"min\",0),max:(t,e)=>t.deps.returnPropertyValue(t,\"max\",100),step:(t,e)=>t.deps.returnPropertyValue(t,\"step\",1)}};var $d={};I($d,{Dropdown:()=>xb,DropdownList:()=>_b,DropdownParent:()=>Sb,DropdownParentFocus:()=>wb,DropdownSiblingFocus:()=>kb});var xb={attr:{dropdown:!0},position:\"absolute\",top:\"100%\",left:\"0\",zIndex:1e3,theme:\"quaternary\",padding:\"Y\",round:\"Z2\",flow:\"column\",gap:\"X\",transition:\"B defaultBezier\",transitionProperty:\"transform, opacity, visibility\",transform:\"translate3d(0,10%,0)\",opacity:0,visibility:\"hidden\"},_b={display:\"flex\",attr:{dropdown:!0},padding:\"0 Y\",maxHeight:\"G\",flow:\"column\",theme:\"quaternary\",overflow:\"hidden auto\",style:{listStyleType:\"none\"},transition:\"B defaultBezier\",transitionProperty:\"transform, opacity, visibility\",children: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\"}}},Sb={position:\"relative\",zIndex:999,\":hover\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}}},wb={position:\"relative\",tabindex:\"0\",\":focus-within\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}},Input_trigger:{type:\"checkbox\",opacity:\"0\",position:\"absolute\",inset:\"0\",width:\"100%\",height:\"100%\",cursor:\"pointer\",onClick:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},kb={position:\"relative\",tabindex:\"0\",\":focus-within\":{zIndex:1e3,\"& ~ [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}},Input_trigger:{type:\"checkbox\",opacity:\"0\",position:\"absolute\",inset:\"0\",width:\"100%\",height:\"100%\",cursor:\"pointer\",onClick:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var Fd={};I(Fd,{Notification:()=>vb});var vb={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({},Xp,Zp,Jp,Qp,td,od,sd,id,rd,ad,cd,nd,ld,fd,ud,pd,dd,hd,gd,md,yd,bd,Ad,Ed,Td,Od,Rd,Pd,Id,$d,Fd);function Qa(t){if(t==null)return 0;if(typeof t!=\"object\")return Cb(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let n=0;n<t.length;n++)e=(e^Qa(t[n]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let n=0;n<r.length;n++)e=(e^Cb(r[n]))*16777619,e=(e^Qa(t[r[n]]))*16777619;return e>>>0}function Cb(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function tc(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!=\"object\")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!tc(t[o],e[o]))return!1;return!0}let r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(e,s)||!tc(t[s],e[s]))return!1}return!0}function Dd(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!=\"object\"||Array.isArray(e))return e;if(typeof t!=\"object\"||Array.isArray(t))return{...e};let r=!1,n={};for(let o in t)if(o in e){let s=Dd(t[o],e[o]);n[o]=s,s!==t[o]&&(r=!0)}else n[o]=t[o];for(let o in e)o in t||(n[o]=e[o],r=!0);return r?n:t}function Ld(t,e,r){if(!e||typeof e!=\"object\")return t;if(!t||typeof t!=\"object\")return e;if(r||(r=new WeakSet),r.has(e))return t;r.add(e);for(let n in e){let o=e[n];o&&typeof o==\"object\"&&!Array.isArray(o)&&t[n]&&typeof t[n]==\"object\"&&!Array.isArray(t[n])?Ld(t[n],o,r):t[n]=o}return t}function Je(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 yn(t){return t.replace(/[A-Z]/g,e=>\"-\"+e.toLowerCase())}function Bs(t){let e=String(t);return e.length<=20?e.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():Je(e)}function Ab(t){return t.split(`\n`).map(Je).join(`\n`)}var Eb={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 Tb(t,e){let r=Eb[t]||Je(t),n=Bs(e),o=`_${r}-${n}`,s=yn(t),i=`.${o}{${s}: ${e}}`;return`${o}\n${i}`}var Ob=t=>typeof t==\"string\"&&(t.indexOf(\"{\")!==-1||t.indexOf(\"}\")!==-1);function Rb(t){let e=t.split(\"\\0\"),r=[],n=[];for(let o=0;o+1<e.length;o+=2){let s=e[o],i=e[o+1];if(!i||Ob(i))continue;let a=Eb[s]||Je(s),c=Bs(i),l=`_${a}-${c}`,f=yn(s);r.push(l),n.push(`.${l}{${f}:${i}}`)}return r.join(\" \")+\"\\0\"+n.join(`\n`)}function Pb(t,e){let r=t+e,n=`_c${Je(r)}`,o=e.split(\"\\0\"),s=\"\";for(let a=0;a+1<o.length;a+=2){let c=o[a],l=o[a+1];l&&(Ob(l)||(s+=`${yn(c)}:${l};`))}let i;if(t.startsWith(\"@media\"))i=`${t}{.${n}{${s}}}`;else if(t.startsWith(\":\")||t.startsWith(\"&\")){let a=t.startsWith(\"&\")?t.slice(1):t;i=`.${n}${a}{${s}}`}else t.includes(\"&\")?i=`${t.replace(\"&\",`.${n}`)}{${s}}`:i=`.${n} ${t}{${s}}`;return`${n}\n${i}`}var Md=null;function rc(t){Md=t}var ee={structuralHash:Qa,deepEqual:tc,mergeStructural:Dd,overwriteDeep:Ld,shortHash:Je,toKebab:yn,sanitizeValue:Bs,batchShortHash:Ab,atomicCssClass:Tb,batchAtomicCss:Rb,compoundCssClass:Pb},Ib=!1,ec=null;function $b(t){return ec||(ec=import(t||\"@symbo.ls/wasm/pkg\").then(e=>(e.structuralHash&&(ee.structuralHash=e.structuralHash),e.deepEqual&&(ee.deepEqual=e.deepEqual),e.mergeStructural&&(ee.mergeStructural=e.mergeStructural),e.overwriteDeep&&(ee.overwriteDeep=e.overwriteDeep),e.shortHash&&(ee.shortHash=e.shortHash),e.toKebab&&(ee.toKebab=e.toKebab),e.sanitizeValue&&(ee.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(ee.batchShortHash=e.batchShortHash),e.atomicCssClass&&(ee.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(ee.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(ee.compoundCssClass=e.compoundCssClass),Ib=!0,Md&&e.batchAtomicCss&&Md({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug(\"[smbls] WASM not available, using JS fallbacks:\",e.message),!1)),ec)}function Fb(){return Ib}R();var Vs={};I(Vs,{CDN_PROVIDERS:()=>Zt,DOMQL_EVENTS:()=>xl,DOMQ_PROPERTIES:()=>Oe,ENV:()=>Dl,HTML_TAGS:()=>Nr,METHODS:()=>Ir,METHODS_EXL:()=>Hn,NODE_ENV:()=>Yt,OPTIONS:()=>go,PACKAGE_MANAGER_TO_CDN:()=>Me,PARSED_DOMQ_PROPERTIES:()=>Wn,PROPS_METHODS:()=>Re,STATE_METHODS:()=>ur,STATE_PROPERTIES:()=>bl,SVG_TAGS:()=>Mh,TYPES:()=>Mn,UNIVERSAL_RESERVED_KEYS:()=>ia,addCaching:()=>zi,addContext:()=>Ui,addExtend:()=>af,addExtends:()=>Et,addItemAfterEveryElement:()=>sl,addProtoToArray:()=>Bn,addRef:()=>ji,applyCSS:()=>jd,applyDependentState:()=>Af,applyEvent:()=>Yi,applyEventUpdate:()=>Xi,applyExtends:()=>Bh,applyProps:()=>co,arrayContainsOtherArray:()=>Jc,arraysEqual:()=>al,arrayzeValue:()=>br,buildImgSrcset:()=>qo,buildSourcesAndImg:()=>Ko,cache:()=>Pf,call:()=>Yf,captureSnapshot:()=>Zf,checkForStateTypes:()=>wf,checkIfInherits:()=>Ki,checkIfStringIsInArray:()=>fl,clone:()=>Sl,cloneAndMergeArrayExtend:()=>to,cloneFunction:()=>Wl,concatAddExtends:()=>nf,copyJavaScriptToClipboard:()=>yu,copyStringToClipboard:()=>mu,createBasedOnType:()=>Ni,createElement:()=>Sf,createElementExtends:()=>Ai,createExtends:()=>ro,createExtendsFromKeys:()=>jr,createExtendsStack:()=>Ri,createIfConditionFlag:()=>Hl,createInheritedState:()=>kf,createKey:()=>Jn,createNestedObject:()=>Tl,createNestedObjectByKeyPath:()=>Cf,createObjectWithoutPrototype:()=>xi,createParent:()=>Bi,createPath:()=>Vi,createProps:()=>lo,createPropsStack:()=>Li,createRoot:()=>_f,createScope:()=>Tf,createSnapshotId:()=>Zn,customDecodeURIComponent:()=>yl,customEncodeURIComponent:()=>ml,cutArrayAfterValue:()=>nl,cutArrayBeforeValue:()=>rl,debounce:()=>Qn,debounceOnContext:()=>Vl,decodeNewlines:()=>gl,deepClone:()=>Q,deepContains:()=>Al,deepDefaults:()=>Uo,deepDestringifyFunctions:()=>oe,deepExtend:()=>Ci,deepMerge:()=>H,deepMergeExtends:()=>se,deepStringifyFunctions:()=>Gn,defineSetter:()=>qf,destringifyGlobalScope:()=>Kn,detectHeightOnInit:()=>ru,detectInfiniteLoop:()=>Il,document:()=>q,encodeNewlines:()=>hl,error:()=>yr,excludeKeysFromObject:()=>Fl,exec:()=>K,extendCachedRegistry:()=>of,extendStackRegistry:()=>no,extractArrayExtend:()=>so,fetchLibraryData:()=>fa,fibonacciNumberByIndex:()=>nu,filterArrays:()=>cl,filterArraysFast:()=>ll,finalizeExtends:()=>Pi,findClosestNumber:()=>ca,findClosestNumberInFactory:()=>du,findInheritedState:()=>qi,findKeyPosition:()=>pl,flattenExtend:()=>Br,formatDate:()=>eu,generateHash:()=>wi,generateKey:()=>Xn,generateMetaTags:()=>uu,get:()=>Wf,getActiveRoute:()=>kd,getCDNUrl:()=>Jt,getCapitalCaseKeys:()=>ff,getCdnProviderFromConfig:()=>zr,getChildStateInKey:()=>Gi,getChildren:()=>To,getContext:()=>Do,getCookie:()=>Xl,getDB:()=>Bo,getEmotionStylesheet:()=>Su,getExtendsInElement:()=>cf,getExtendsStack:()=>eo,getExtendsStackRegistry:()=>vi,getFrequencyInArray:()=>Qc,getHashedExtend:()=>oo,getImportMapScript:()=>tu,getInObjectByPath:()=>Pl,getLocalStorage:()=>Jl,getNev:()=>jl,getPageMetadata:()=>pu,getParentStateInKey:()=>Hi,getPath:()=>Oo,getQuery:()=>Vo,getRef:()=>Gf,getRoot:()=>Io,getRootContext:()=>Fo,getRootData:()=>$o,getRootState:()=>Po,getRootStateInKey:()=>Wi,getSpreadChildren:()=>uf,global:()=>Yc,hasFunction:()=>Fr,hasHandlerPlugin:()=>Dr,hasOwnProperty:()=>kl,inheritChildExtends:()=>Ti,inheritChildPropsExtends:()=>Ei,inheritParentProps:()=>fo,inheritRecursiveChildExtends:()=>Oi,init:()=>Ce,initProps:()=>yf,is:()=>Ct,isArray:()=>T,isBoolean:()=>hi,isContextComponent:()=>pf,isCyclic:()=>$l,isDOMNode:()=>kt,isDate:()=>mi,isDefined:()=>vt,isDevelopment:()=>Ie,isEmpty:()=>yi,isEmptyObject:()=>vl,isEqualDeep:()=>bi,isFunction:()=>v,isHtmlElement:()=>Dn,isLocal:()=>Nl,isMethod:()=>Xf,isMobile:()=>Kl,isNode:()=>be,isNot:()=>Zc,isNotProduction:()=>hr,isNull:()=>gi,isNumber:()=>ne,isObject:()=>w,isObjectLike:()=>B,isPhoto:()=>ou,isProduction:()=>Pe,isStaging:()=>Ml,isState:()=>vf,isString:()=>S,isStringFunction:()=>zl,isTest:()=>Si,isTesting:()=>Ll,isUndefined:()=>ht,isUniversallyReservedKey:()=>Jf,isValidHtmlTag:()=>tf,isWrappedLibrary:()=>zo,joinArrays:()=>Or,jointStacks:()=>sf,keys:()=>oa,lastLevel:()=>Ja,lastPathname:()=>Za,loadCssFile:()=>cu,loadJavascript:()=>lu,loadJavascriptFile:()=>su,loadJavascriptFileEmbedSync:()=>au,loadJavascriptFileSync:()=>iu,loadRemoteCSS:()=>fu,loadRemoteScript:()=>Wr,log:()=>Kf,logGroupIf:()=>ql,logIf:()=>Gl,lookdown:()=>Uf,lookdownAll:()=>zf,lookup:()=>Vf,lowercaseFirstLetter:()=>fr,makeObjectWithoutPrototype:()=>Cl,map:()=>_l,mapStringsWithContextComponents:()=>io,matchRoute:()=>_d,matchesComponentNaming:()=>ie,memoize:()=>Ul,merge:()=>nt,mergeSharedLibraries:()=>Wo,nextElement:()=>Mo,normalizeIgnoreList:()=>la,normalizeLibraryKey:()=>Hr,objectToString:()=>qn,objectizeStringProperty:()=>ao,overwrite:()=>Yn,overwriteDeep:()=>At,overwriteShallow:()=>dr,overwriteState:()=>Ef,parse:()=>sa,parseDeep:()=>Ao,parseQuery:()=>Sd,parseRoutePattern:()=>xd,pickupElementFromProps:()=>Fi,pickupPropsFromElement:()=>$i,previousElement:()=>No,propExists:()=>gf,propertizeElement:()=>Di,propertizeUpdate:()=>hf,reinit:()=>Nd,remove:()=>gg,removeChars:()=>bu,removeCookie:()=>Zl,removeDuplicateProps:()=>po,removeDuplicatesInArray:()=>Rr,removeFromArray:()=>tl,removeFromObject:()=>El,removeNestedKeyByPath:()=>Ol,removeValueFromArray:()=>jn,removeValueFromArrayAll:()=>ol,reorderArrayByValues:()=>il,replaceLiteralsWithObjectFields:()=>lr,replaceOctalEscapeSequences:()=>dl,resolveAsset:()=>Tt,resolveHandler:()=>Lr,resolveSharedLibraries:()=>gu,returnValueAsText:()=>Mi,router:()=>ge,runGuards:()=>wd,runPluginHook:()=>Nt,scratchSystem:()=>tn,scratchUtils:()=>Ve,self:()=>Xc,set:()=>Sr,setActiveRootState:()=>Ro,setCookie:()=>Yl,setHashedExtend:()=>ki,setInObjectByPath:()=>Rl,setLocalStorage:()=>Ql,setNodeStyles:()=>na,setProps:()=>Hf,setPropsPrototype:()=>uo,sharedLibrary:()=>hu,spotByPath:()=>Eo,srcsetFor:()=>Gr,stringIncludesAny:()=>Un,stringToObject:()=>wl,swapItemsInArray:()=>el,syncProps:()=>ho,toCamelCase:()=>Ho,toDashCase:()=>Go,toDescriptionCase:()=>_u,toTitleCase:()=>xu,toggleFullscreen:()=>Qf,triggerEventOn:()=>$e,triggerEventOnUpdate:()=>Of,trimStringFromSymbols:()=>ul,unstackArrayOfObjects:()=>Nn,update:()=>mf,updateProps:()=>bf,variables:()=>jo,verbose:()=>Ur,warn:()=>Lo,window:()=>k});R();R();var z0=A(),Db=(t=z0,e)=>{let r=w(e.localFile)?e.localFile:{},n=Q(r.designSystem||{});return H(t,n)},W0={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Ce=(t,e=W0)=>{let r=Db(t||{},e),n=e.scopeSelector||\":root\",o=n===\":root\"?\":root:not([data-theme])\":`${n}:not([data-theme])`,s=e.globalTheme;if(typeof window<\"u\"&&window.location){let m=new URLSearchParams(window.location.search).get(\"globalTheme\");m&&(s=m)}let i=Sr({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:s,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...r},{newConfig:e.newConfig,config:e.config});i&&(i.scopeSelector=n);let a=Xo(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,u=i.useSvgSprite,p=t.svg,d=i.useIconSprite,h=t.icons;if(f&&ct(a),l&&(ct({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith(\"@media\")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];ct(m)}c&&ct(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];ct(m)}return(p||u)&&ks(i.svg,{document:e.document}),(h||d)&&Cs(i.icons,{document:e.document}),i},nc={},Nd=(t,e=nc)=>{let r=Db(t||{},e),n=e.scopeSelector||\":root\",o=n===\":root\"?\":root:not([data-theme])\":`${n}:not([data-theme])`,s=Sr({verbose:!1,...r});if(!e.preventInject){if(ct({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith(\"@media\")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];ct(i)}ct(s.reset)}return s},jd=(t,e=nc)=>{ct(t)},H0=(t,e=nc)=>{let r=e.scopeSelector||\":root\",n=r===\":root\"?\":root:not([data-theme])\":`${r}:not([data-theme])`;if(ct({[r]:t.CSS_VARS}),t.CSS_MEDIA_VARS){let o={};for(let s in t.CSS_MEDIA_VARS)s.startsWith(\"@media\")?o[s]={[n]:t.CSS_MEDIA_VARS[s]}:o[s]=t.CSS_MEDIA_VARS[s];ct(o)}};var G0=(t,e=nc)=>{};R();var Lb=t=>!t||t===\"srcdoc\"||t===\"about:srcdoc\"||t===\"blank\"||t===\"about:blank\"?\"/\":t,Bd={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Us=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split(\".\"),n=t;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},Mb=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Bd:e.router=nt(e.router||{},Bd);let r=e.router,n=async(s,i)=>{let a=s.context?.window||k;if(!a.location)return;let{pathname:c,search:l,hash:f}=a.location;c=Lb(c);let u=c+l+f,p=s;if(r.customRouterElement){let d=Us(s,r.customRouterElement);d&&(p=d,s.routes&&(p.routes=s.routes))}p.routes&&await ge(u,p,{},{initialRender:!0,pushState:!1})},o=!ht(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.onRenderRouter=n),q0(e,r),r},Vd=(t,e)=>{if(e.router===!1)return;let r=e.router||Bd;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:ge,o=e.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=Lb(a);let f=a+c+l,u=t;if(r.customRouterElement){let p=Us(t,r.customRouterElement);p&&(u=p,t.routes&&(u.routes=t.routes))}await u.call(\"router\",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener(\"popstate\",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>o.removeEventListener(\"popstate\",s))},q0=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return H(r.Link||r[\"smbls.Link\"],r.RouterLink||r[\"smbls.RouterLink\"])};R();var Ud=k&&k.location?k.location.host.includes(\"dev.\"):Ie(),Nb=Ud?\"http://localhost:8080/get\":\"https://api.symbols.app/get\",K0={endpoint:Nb},jb=async(t,e=K0)=>{let r=e.endpoint||Nb,n=e.serviceRoute?T(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+\"=true\").join(\"&\"):e.serviceRoute:\"\",o;try{return o=await globalThis.fetch(r+\"/?\"+n,{method:\"GET\",headers:{\"Content-Type\":\"application/json\",\"X-AppKey\":t,\"X-Metadata\":e.metadata}}),await o.json()}catch(s){if(v(e.onError))return e.onError(s);console.error(s)}},Y0=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await jb(t,r),o=Ud||e.isDevelopment?oe(n):oe(n.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{At(e[s],o[s.toLowerCase()])}):At(e[r.serviceRoute],o):[\"state\",\"designSystem\",\"components\",\"snippets\",\"pages\",\"utils\",\"files\",\"assets\",\"packages\",\"functions\",\"globalScope\"].forEach(s=>{At(e[s],o[s.toLowerCase()])})}return e},X0=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await jb(t,n),s=Ud||e.isDevelopment?oe(o):oe(o.releases[0]);r(s)}},Bb=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await Y0(t,e)}catch(r){console.error(r)}},Vb=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&X0(e,r,n||(o=>{let s=o.designSystem;w(s)&&r.utils.init(s),w(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var zs=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let r of e.__teardowns)try{r()}catch(n){console.error(\"[smbls] destroy teardown error:\",n)}e.__teardowns.length=0}try{Ke(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};R();var Z0={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\"}},J0=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}\"]`},oc=(t,e,r)=>{if(!t)return{};let n=v(t)?K(t,e,r):{...t};if(!w(n))return{};for(let o in n){let s=n[o];v(s)&&(s=K(s,e,r)),S(s)&&s.includes(\"{{\")&&e?.call&&(s=e.call(\"replaceLiteralsWithObjectFields\",s,r)),n[o]=s}return n};var Q0=(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},Ub=t=>{let e=5381,r=String(t);for(let n=0;n<r.length;n++)e=(e*33^r.charCodeAt(n))>>>0;return e.toString(36)},zd=(t,e,r,n)=>{let o=t.head||t.querySelector(\"head\");if(!o)return;let s=new Map;for(let a of o.querySelectorAll(`[${e}]`))s.set(a.getAttribute(e),a);let i=new Set;for(let a of r)i.add(a);for(let[a,c]of s)i.has(a)||c.remove();for(let a of r){if(s.has(a))continue;let c=n(a);c&&(c.setAttribute(e,a),o.appendChild(c))}},sc=(t,e)=>{if(!(!w(t)||!e)){for(let r in t){let n=t[r];if(n==null||r===\"jsonLd\"||r===\"styles\"||r===\"scripts\")continue;let o=Z0[r];if(!o)continue;let s=J0(o),i=e.querySelector(s)||Q0(o,e);i&&(r===\"title\"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute(\"content\",n))}if(Array.isArray(t.jsonLd)){let n=t.jsonLd.filter(s=>s!=null).map(s=>S(s)?s:JSON.stringify(s)),o=n.map(Ub);zd(e,\"data-smbls-jsonld\",o,s=>{let i=o.indexOf(s),a=e.createElement(\"script\");return a.setAttribute(\"type\",\"application/ld+json\"),a.textContent=n[i],a})}if(Array.isArray(t.styles)){let r=t.styles.filter(o=>o!=null&&String(o).trim()),n=r.map(Ub);zd(e,\"data-smbls-style\",n,o=>{let s=n.indexOf(o),i=e.createElement(\"style\");return i.textContent=String(r[s]),i})}if(Array.isArray(t.scripts)){let r=t.scripts.filter(o=>o&&(S(o)?o.trim():o.src)),n=r.map(o=>S(o)?o:String(o.src));zd(e,\"data-smbls-script\",n,o=>{let s=n.indexOf(o),i=r[s],a=e.createElement(\"script\");return S(i)?a.setAttribute(\"src\",i):(i.src&&a.setAttribute(\"src\",i.src),i.type&&a.setAttribute(\"type\",i.type),i.async&&(a.async=!0),i.defer&&(a.defer=!0),i.integrity&&a.setAttribute(\"integrity\",i.integrity),i.crossorigin&&a.setAttribute(\"crossorigin\",i.crossorigin),i.referrerpolicy&&a.setAttribute(\"referrerpolicy\",i.referrerpolicy),i.nomodule&&(a.noModule=!0),i.body&&(a.textContent=String(i.body))),a})}}};var zb={name:\"helmet\",create(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<\"u\"&&document;if(!r)return;let n=oc(e,t,t.state);sc(n,r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<\"u\"&&document;if(!r)return;let n=oc(e,t,t.state);sc(n,r)}};mr();var Wb=(t,e,r,n)=>{t&&vo(t,e,r,n)},Hb=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<\"u\"&&document;if(!n)return;let o=oc(t,e,r);sc(o,n)},Gb=async(t,e)=>{if(!t)return;let r={tag:\"fragment\",...t},n=async()=>{await e.set(r,{preventDefineUpdate:\"$router\"})};return e.lazyLoad?window.requestAnimationFrame(n):await n(),r},bn={routes:t=>t,metadata:Hb,fetch:Wb,$router:Gb},qb=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=Hb),t.fetch!==!1&&(e.fetch=Wb),t.router!==!1&&(e.$router=Gb),e};var Wd={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},ic={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},ac={...Wd,router:ic},tk={state:{},pages:{},components:{},router:ic,define:bn},Qe=tk;R();R();var Kb=(t,e)=>B(t.extends)?t.extends:[];R();var Jb=t=>{let e=typeof window<\"u\"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<\"u\"?document:e.document;t.document=t.document||r;let n=t.window;return n&&n!==e&&typeof n.URL!=\"function\"?(typeof console<\"u\"&&console.warn&&!globalThis.__smblsRouterUrlWarned&&(globalThis.__smblsRouterUrlWarned=!0,console.warn(\"[smbls/router] context.window lacks URL, falling back to globalThis \\u2014 passed-in window may be a stub (warned once; applies to every embed app this session)\")),t.window=e):t.window=n||e,t.window},Yb=(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},Qb=t=>t.components?{...Yb(),...t.components}:Yb(),tx=t=>({...Vs,...js,...Ve,...t.utils,...t.snippets,...t.functions}),ex=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),Xb={},rx=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Me[s]||zr(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=Ie()&&n?`?${Math.random()}`:\"\",u=Jt(c,l,o)+f;try{if(Xb[c])continue;Xb[c]=!0,await Promise.race([Wr(u,{document:r,type:\"module\"}),new Promise((p,d)=>setTimeout(()=>d(new Error(`Timeout loading ${c}`)),1e4))])}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!==\"symbols\")try{let d=Jt(c,l,\"symbols\")+f;await Promise.race([Wr(d,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${c}`)),2e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},nx=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||zr(e.symbolsConfig)||\"esmsh\",o=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f==\"function\"?f():f},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]){let p=Ie()?`?${Math.random()}`:\"\";if(l&&l[a]){let d=l[a],h=Jt(a,d,c)+p;try{await i.utils.loadRemoteScript(h,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!==\"symbols\"){let m=Jt(a,d,\"symbols\")+p;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let d=Jt(a,\"latest\",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!==\"symbols\"){let g=Jt(a,\"latest\",\"symbols\")+p;await i.utils.loadRemoteScript(g,{window:u,document:f})}}u.packages[a]=\"loadedOnDeman\"}}return await u.require(a,c)};r.packages?r.packages=nt(r.packages,t):r.packages=t,r.require||(e.utils.require=await o(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},ek=/\\s+/g,ox=(t,e)=>typeof t==\"function\"?t(e,e?.state,e?.context):t,rk=(t,e)=>{let r=\"\";for(let n in t){let o=t[n];typeof o==\"boolean\"&&o?r+=` ${n}`:typeof o==\"string\"?r+=` ${o}`:typeof o==\"function\"&&(r+=` ${ox(o,e)}`)}return r},nk=(t,e,r)=>{if(!t)return;let{key:n}=e;t===!0&&(t=e.classlist={key:n}),typeof t==\"string\"&&(t=e.classlist={default:t}),t!==null&&typeof t==\"object\"&&!Array.isArray(t)&&(t=rk(t,e));let o=t.replace(ek,\" \").trim();if(r&&typeof r.setAttribute==\"function\")r.setAttribute(\"class\",o);else if(r)try{r.className=o}catch{}return o},ok=()=>(t,e,r)=>{let n=ox(t,e);if(t){let{__ref:o}=e;o.__class.style=n}sx()(e.classlist,e,e.state,!0)},sx=()=>(t,e,r,n)=>{if(e.style&&!n)return;let{__ref:o}=e,{__class:s,__classNames:i}=o;if(!(t===null||typeof t!=\"object\"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c==\"string\"||typeof c==\"number\"?l=c:typeof c==\"boolean\"?l=e.key:l=he(c),i[a]=l}for(let a in i)a===\"classProps\"||a===\"class\"||s[a]===void 0&&delete i[a];e.node&&nk(i,e,e.node)}},sk=()=>({style:ok(),classlist:sx()}),ik=[\"useReset\",\"useVariable\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\",\"verbose\",\"globalTheme\"],Zb=!1,ix=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,n=e.initOptions||{},o=e.registry||sk(),s=e.designSystem?H(Q(e.designSystem),Ms):Q(Ms),i={};for(let d of ik)e[d]!==void 0&&(i[d]=e[d]);let a,c=Zb&&!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){ot(a);try{if(ct({[l]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let d={};for(let h in a.CSS_MEDIA_VARS)h.startsWith(\"@media\")?d[h]={[f]:a.CSS_MEDIA_VARS[h]}:d[h]=a.CSS_MEDIA_VARS[h];ct(d)}}finally{tt()}}}else if(c){let d=Aa(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,ot(d);try{a=Ce(d,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...ac,...i,...n})}finally{tt()}}else{let d=A();d&&(d.document=r),a=Ce(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:l,...ac,...i,...n}),a&&a!==d&&(a.document=r),Zb=!0}let u=a?.CONFIG||a,p=u?.font;if(p){ot(u);try{for(let d in p){let h=p[d];if(!h?.fontFace)continue;let g=Array.isArray(h.fontFace)?h.fontFace:[h.fontFace];for(let m of g)typeof m==\"string\"&&m.includes(\"font-family\")&&ct(`@font-face { ${m} }`)}}finally{tt()}}return[a,o]},ax=(t,e)=>{let r={};e.state&&H(r,e.state),t&&t.state&&H(r,t.state);let n=e.polyglot;if(n?.translations){let o=null;try{typeof localStorage<\"u\"&&(o=localStorage.getItem(n.storageLangKey||\"smbls_lang\")||localStorage.getItem(\"lang\"))}catch{}let s=o||r.lang||n.defaultLang||\"en\";o&&o!==r.lang&&(r.lang=o);let i=n.translations[s];if(i&&typeof i==\"object\")for(let c in i)r[c]=i[c];let a=new Set(n.languages||[]);for(let c in n.translations)!a.has(c)&&r[c]===void 0&&(r[c]=n.translations[c])}return r.isRootState=!0,Q(r)},cx=(t,e)=>{w(t.routes)&&w(e.pages)&&nt(t.routes,e.pages);let r=t.routes||e.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n===\"index\"?\"\":n;r[\"/\"+o]=r[n],delete r[n]}return r},lx=t=>{Wo(t,t.sharedLibraries)};R();var ux=\"smbls_lang\",ak=\"smbls_t_\",ck=\"smbls_tv_\",xn={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)}}},Ws={};function Hs(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||\"en\"}function lc(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var cc=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(\".\")===-1)return;let r=e.split(\".\"),n=t;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},fx=(t,e,r)=>{let n=e.lastIndexOf(\".\");if(n===-1)return t[e+\"_\"+r];let o=cc(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+\"_\"+r]};function fc(t,e){if(!t)return\"\";let r=this?.context,n=r?.polyglot,o=e||this.call(\"getActiveLang\"),s=this?.state;if(s){let l=fx(s,t,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=cc(l,t);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[o];if(l){let f=cc(l,t);if(f!==void 0)return f}}let c=n?.defaultLang||\"en\";if(s){let l=fx(s,t,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=cc(l,t);if(f!==void 0)return f}}return t}async function uc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||ak,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,\"v_\"):ck);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=xn.get(o+t);if(c)try{let l=JSON.parse(c),f={translations:{...n.translations||{}}};f.translations[t]=l,n.update&&n.update(f)}catch(l){console.warn(\"[polyglot] Failed to apply language update:\",l.message)}}let i=(r.storagePrefix||\"smbls\")+\":\"+t;if(Ws[i])return Ws[i];let a=this;return Ws[i]=(async()=>{try{let c=r.fetch,l=parseInt(xn.get(s+t),10)||0,f,u,p;if(v(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(w(c)){let h=a.getDB||(()=>e.fetch),g=v(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;xn.set(o+t,JSON.stringify(f)),u&&xn.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=f,n.update&&n.update(d)}catch(c){if(r.verbose!==!1){let l=c?.message||c?.details||(typeof c==\"object\"?JSON.stringify(c):String(c));console.warn(\"[polyglot] Failed to load translations for\",t,\"-\",l)}}finally{delete Ws[i]}})(),Ws[i]}async function pc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call(\"getActiveLang\")===t)return;let o=r?.storageLangKey||ux;xn.set(o,t),r?.fetch&&await this.call(\"loadTranslations\",t),e?.state&&(e.state.lang=t);let s=r?.translations?.[t],i={lang:t};if(s&&typeof s==\"object\")for(let c in s){let l=s[c];(Array.isArray(l)||typeof l==\"string\"||typeof l==\"number\")&&(i[c]=l)}if(n.update&&n.update(i),s&&typeof s==\"object\")for(let c in s){let l=s[c];if(l&&typeof l==\"object\"&&!Array.isArray(l)&&n[c]&&typeof n[c]==\"object\"&&!Array.isArray(n[c]))for(let f in l)n[c][f]=l[f]}let a=this?.context?.document||globalThis.document;if(a&&s){let c=a.querySelectorAll(\"[data-key]\");for(let l of c){let f=l.ref;if(!f)continue;let u=f.__ref?.__exec?.text;if(typeof u==\"string\"&&u.includes(\"{{\"))try{let p=f.call(\"replaceLiteralsWithObjectFields\",u,f.state);p!=null&&l.textContent!==p&&(l.textContent=p)}catch{}}}}async function dc(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&w(o.fetch)){let i=this.getDB||(()=>n.fetch),a=v(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||\"translations\",l=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(l?.error)throw l.error;return l.data}}async function Hd(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let n=e.storageLangKey||ux,s=xn.get(n)||e.defaultLang||r.lang||\"en\";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call(\"loadTranslations\",s)}function hc(t){try{let e=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||\"en\",o=this?.state;if(!o)return\"\";let s=t.lastIndexOf(\".\");if(s===-1)return o[t+n]??\"\";let i=t.substring(0,s).split(\".\"),a=o;for(let c=0;c<i.length;c++){if(a==null)return\"\";a=a[i[c]]}return a==null?\"\":a[t.substring(s+1)+n]??\"\"}catch{return\"\"}}var gc={name:\"polyglot\",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Hd.call(t))}};var Gs={polyglot:fc,getLocalStateLang:hc,getActiveLang:Hs,getLang:Hs,setLang:pc,getLanguages:lc,loadTranslations:uc,upsertTranslation:dc};mr();var mc={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}},yc=t=>parseFloat(t.toFixed(4)),lk=(t,e,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(o),l=n+c+s,f=r!==void 0?r:l/i*t,u=f/t,p=l/i,d=(n-a+s/2)/i-(u-p)/2,h=(c+s/2)/i-(u-p)/2;return{fontSize:`${yc(t/16)}rem`,lineHeight:`${yc(f)}px`,capHeightTrim:`${yc(-d)}em`,baselineTrim:`${yc(-h)}em`}},fk=(t,e)=>{if(typeof t==\"number\")return t;let r=e?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(t).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(t);return isNaN(o)?null:typeof t==\"string\"&&t.endsWith(\"rem\")?o*(r.typography?.browserDefault||16):o},uk=(t,e)=>{let n=e?.designSystem?.font_family||{};if(t){let s=n[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['\"]/g,\"\").trim();if(mc[i])return mc[i]}let o=n.default||Object.keys(n)[0];if(o){let s=n[o];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['\"]/g,\"\").trim();if(mc[a])return mc[a]}}return null},px=(t,e,r,n)=>{if(!t)return;let o=fk(e.fontSize,n);if(!o)return;let s=uk(e.fontFamily,n);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=lk(o,s,i),f={};return e.lineHeight||(f.lineHeight=a),f[\"::before\"]={content:'\"\"',marginBottom:c,display:\"table\"},f[\"::after\"]={content:'\"\"',marginTop:l,display:\"table\"},f},dx={name:\"capsize\",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}};var qs={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\"},Kt=Object.create(null);for(let t in qs)Kt[qs[t]]=t;var Gd=Object.create(null);for(let t in qs){let e=qs[t];if(Gd[e])throw new Error(`Duplicate abbreviation \"${e}\" for \"${t}\" \\u2014 already used by \"${Gd[e]}\"`);Gd[e]=t}var tr=new Set([\"state\",\"st\",\"scope\",\"scp\",\"attr\",\"at\",\"style\",\"sy\",\"data\",\"dt\",\"context\",\"ctx\",\"query\",\"qy\",\"class\",\"cl\"]);function Ks(t){return/^[A-Z]/.test(t)}function Ys(t){return/^[:@.!$>&]/.test(t)||t.startsWith(\"> \")}function pk(t){return t.trim().split(/\\s+/).filter(Boolean)}function hx(t){return t.replace(/_/g,\" \")}function dk(t){if(!t||typeof t!=\"string\")return{};let e={},r=pk(t);for(let n of r){if(n.startsWith(\"!\")){let c=n.slice(1),l=Kt[c]||c;e[l]=!1;continue}let o=n.indexOf(\":\");if(o===-1){let c=Kt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Kt[s]||s;if(i.includes(\",\")){e[a]=i.split(\",\").map(hx);continue}e[a]=hx(i)}return e}function Xs(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?Xs(r):r});let e={};for(let r in t){let n=t[r];if(Ks(r)){e[r]=qd(n);continue}let o=Kt[r]||r;if(Ys(r)&&o===r){e[r]=qd(n);continue}if(tr.has(o)||tr.has(r)){e[o]=n;continue}e[o]=qd(n)}return e}function qd(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?Xs(e):e}):typeof t==\"object\"?Xs(t):t}function Zs(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?Zs(r):r});let e={};if(typeof t.in==\"string\"){let r=dk(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r===\"in\")continue;let n=t[r];if(Ks(r)){e[r]=Kd(n);continue}let o=Kt[r]||r;if(Ys(r)&&o===r){e[r]=Kd(n);continue}if(tr.has(o)||tr.has(r)){e[o]=n;continue}e[o]=Kd(n)}return e}function Kd(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?Zs(e):e}):typeof t==\"object\"?Zs(t):t}function hk(t){let e=\"\",r=0;for(;r<t.length;){if(t[r]===\"\\\\\"&&r+1<t.length){let n=t[r+1];if(n===\",\"||n===\"_\"||n===\"\\\\\"){e+=n,r+=2;continue}}t[r]===\"_\"?e+=\" \":e+=t[r],r++}return e}function gk(t){let e=[],r=\"\",n=0;for(;n<t.length;){if(t[n]===\"\\\\\"&&n+1<t.length){r+=t[n]+t[n+1],n+=2;continue}if(t[n]===\",\"){e.push(r),r=\"\",n++;continue}r+=t[n],n++}return e.push(r),e}function gx(t){return t.startsWith(\"#\")&&/^#-?\\d+(\\.\\d+)?$/.test(t)?Number(t.slice(1)):hk(t)}function Yd(t){if(!t||typeof t!=\"string\")return{};let e={},r=t.trim().split(/\\s+/).filter(Boolean);for(let n of r){if(n.startsWith(\"!\")){let l=n.slice(1),f=Kt[l]||l;e[f]=!1;continue}let o=n.indexOf(\":\");if(o===-1){let l=Kt[n]||n;e[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Kt[s]||s,c=gk(i);if(c.length>1){e[a]=c.map(gx);continue}e[a]=gx(i)}return e}function Js(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?Js(r):r});let e={};if(typeof t.in==\"string\"){let r=Yd(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r===\"in\")continue;let n=t[r];if(Ks(r)){typeof n==\"string\"?e[r]=Yd(n):e[r]=Xd(n);continue}let o=Kt[r]||r;if(Ys(r)&&o===r){typeof n==\"string\"?e[r]=Yd(n):e[r]=Xd(n);continue}if(tr.has(o)||tr.has(r)){e[o]=n;continue}e[o]=Xd(n)}return e}function Xd(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?Js(e):e}):typeof t==\"object\"?Js(t):t}var mk={shorten:Xs,stringify:Zs,stringifyFurther:Js};function yk(t,e){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(n=>e(n));let r={};for(let n in t){let o=t[n];r[n]=o&&typeof o==\"object\"?e(o):o}return r}var bk=[\"components\",\"pages\",\"snippets\"],bc={name:\"shorthand\",prepareContext(t){let e=t.shorthand;if(!e)return;let n=mk[e===!0?\"shorten\":e];if(n){for(let o of bk)t[o]&&(t[o]=yk(t[o],n));t.app&&typeof t.app==\"object\"&&(t.app=n(t.app))}}};var xk=0,_k=()=>`${Date.now().toString(36)}-${(xk++).toString(36)}`,z=(t,e,r={})=>({id:_k(),ts:Date.now(),type:t,level:e,...r}),Sk=t=>{let e=[],r=t,n=0;for(;r&&n<32;)r.key!=null&&e.unshift(String(r.key)),r=r.parent,n++;return e.join(\" > \")},_n=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:Sk(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Sn=t=>t?.context?.analyze,wk={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\"}},kk=(t,{category:e,type:r,level:n})=>o=>{let s=Sn(o);!s||!s.shouldCapture(e)||s.emit(z(r,n,{hook:t,element:_n(o)}))},mx=t=>(e,r)=>{let n=Sn(e);!n||!n.shouldCapture(\"state\")||n.emit(z(\"state\",\"debug\",{hook:t,element:_n(e),changedKeys:r?.changedKeys||null}))},Qs={name:\"analyze\",error(t,e){let r=Sn(t);if(!r||r.config.enabled===!1||!r.shouldCapture(\"errors\"))return;let n=e?.error||e?.err||(e instanceof Error?e:null);r.emit(z(\"error\",\"error\",{hook:e?.hook||\"error\",element:_n(t),error:n,message:n?.message||(typeof e?.message==\"string\"?e.message:null)}))},renderRouter(t){let e=Sn(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=Sn(t);!e||!e.shouldCapture(\"updates\")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<\"u\"?performance.now():Date.now())},update(t){let e=Sn(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:_n(t),durationMs:r}))},beforeStateUpdate:mx(\"beforeStateUpdate\"),stateUpdate:mx(\"stateUpdate\")};for(let[t,e]of Object.entries(wk))Qs[t]=kk(t,e);R();var xc={error:0,warn:1,info:2,debug:3,trace:4};var Zd=(t,e)=>{let r=xc[t],n=xc[e];return r==null||n==null?!0:r<=n},_c=t=>xc[t]!=null?t:\"warn\";R();var Sc=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var vk=(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},Ck=(t,e)=>{if(e!==\"redact\"){if(e===\"hash\"){let r=0,n=String(t);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return\"***\"}},Jd=(t,e,r,n)=>{if(n>6||t==null||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(s=>Jd(s,e,r,n+1));let o={};for(let s of Object.keys(t))if(vk(s,e)||Sc.test(s)){let a=Ck(t[s],r);a!==void 0&&(o[s]=a)}else o[s]=Jd(t[s],e,r,n+1);return o},Qd=(t=[],e=\"mask\")=>{let r=Array.isArray(t)?t:[t];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:p,target:d,...h}=n,g=Jd(h,r,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:p,target:d,...g}}};var yx=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<\"u\"?navigator.userAgent:null,n=t.config.buildHash||null,o=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=k,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:o,build:n,route:i},meta:{ua:r,viewport:c}}}},bx=()=>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},xx=(t=1e3,e=500)=>{let r=new Map;return n=>{if(!n)return n;let o=`${n.type}:${n.level}:${n.message||\"\"}:${n.error?.message||\"\"}`,s=r.get(o),i=n.ts||Date.now();if(s&&i-s<t)return null;if(r.set(o,i),r.size>e){let a=Math.ceil(e/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return n}},_x=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},Sx={redact:t=>Qd(t.config.redact||[],t.config.maskStrategy),enrich:t=>yx(t),summarize:()=>bx(),dedupe:t=>xx(t.config.cache?.dedupeWindowMs||1e3),sample:t=>_x(t.config.sample||{})},Ak=(t,e)=>{if(typeof t==\"function\")return t;if(typeof t==\"string\"){let r=Sx[t];return r?r(e):null}return null},th=t=>{let e=t.config,r=Array.isArray(e.transformers)?e.transformers.slice():[],n=r.findIndex(s=>s===\"redact\");n>=0&&r.splice(n,1);let o=[];e.redact!==!1&&o.push(Sx.redact(t));for(let s of r){let i=Ak(s,t);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=o.slice(o.indexOf(a)+1),f=[];for(let u of c){let p=u,d=!1;for(let h of l)if(p=h(p),p==null){d=!0;break}!d&&p!=null&&f.push(p)}return f}i=c}return i}};R();R();var wc=typeof k<\"u\"&&typeof k.document<\"u\",Ek=5e3,Tk=50,Ok=3,Rk=1500,Pk=1e3,wx=t=>t?t.level===\"error\"||t.type===\"error\"?\"bug\":t.type===\"network\"?\"network\":t.type===\"console\"?t.level===\"error\"||t.level===\"warn\"?\"bug\":\"log\":t.level===\"warn\"?\"bug\":t.level===\"info\"?\"log\":\"verbose\":\"verbose\",Ik=t=>{try{return JSON.stringify(t)}catch{return null}},$k=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},Fk=t=>{if(!t)return null;let e=String(t),r;return(r=e.match(/Edg\\/([\\d.]+)/))?{name:\"Edge\",version:r[1]}:(r=e.match(/OPR\\/([\\d.]+)/))?{name:\"Opera\",version:r[1]}:(r=e.match(/Firefox\\/([\\d.]+)/))?{name:\"Firefox\",version:r[1]}:/Chrome\\/([\\d.]+)/.test(e)&&/Safari\\//.test(e)?(r=e.match(/Chrome\\/([\\d.]+)/),{name:\"Chrome\",version:r[1]}):(r=e.match(/Version\\/([\\d.]+).*Safari/))?{name:\"Safari\",version:r[1]}:{name:null,version:null}},Dk=()=>{if(!wc)return null;try{let t=k.document?.documentElement?.getAttribute(\"data-theme\")||null,e=typeof k.matchMedia==\"function\"?k.matchMedia(\"(prefers-color-scheme: dark)\").matches:null;return{active:t||(e?\"dark\":e===!1?\"light\":null),forced:t||null,prefers:e==null?null:e?\"dark\":\"light\"}}catch{return null}},Lk=()=>{if(!wc)return null;let t=k.location,e=typeof navigator<\"u\"?navigator:null,r=typeof screen<\"u\"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:k.document?.referrer||null,title:k.document?.title||null,ua:e?.userAgent||null,browser:Fk(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:$k(),viewport:k.innerWidth?{w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}:null,screen:r?{w:r.width||null,h:r.height||null,availW:r.availWidth||null,availH:r.availHeight||null,colorDepth:r.colorDepth||null,orientation:r.orientation?.type||null}:null,theme:Dk()}},eh=(t={})=>{let e=t.url,r=typeof t.transport==\"function\"?t.transport:null;if(!e&&!r)return()=>{};let n=t.apiKey||null,o=t.appKey||t.appId||null,s=t.tenantKey||t.tenant||null,i=t.release||null,a=t.env||null,c=t.sdk||null,l=typeof t.getAuth==\"function\"?t.getAuth:null,f=typeof t.getContext==\"function\"?t.getContext:null,u=typeof t.classify==\"function\"?t.classify:wx,p=typeof t.beforeSend==\"function\"?t.beforeSend:null,d=t.batchMs!=null?t.batchMs:Ek,h=t.maxBatch||Tk,g=t.maxRetries!=null?t.maxRetries:Ok,m=t.backoffMs||Rk,y=t.queueLimit||Pk,b=t.sampleRate!=null?t.sampleRate:1,x=t.sessionId||(typeof crypto<\"u\"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),_=[],E=[],C=null,P=null,L=()=>{C||!_.length||(C=setTimeout(W,d))},O=F=>{if(P)return;let N=m*Math.pow(2,Math.max(0,F-1));P=setTimeout(()=>{if(P=null,!E.length)return;let Y=E.shift();lt(Y.envelope,Y.attempt)},N)},$=F=>{let N=f?Mk(f):null,Y={v:1,session:{id:x,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:c,page:Lk(),user:N?.user||null,traits:N?.traits||null,tags:N?.tags||null,events:F};if(p)try{return p(Y)||null}catch{return Y}return Y},lt=async(F,N=1)=>{if(F)try{let Y=!0;if(r){let dt=await r(F);Y=dt!==!1&&dt?.ok!==!1}else Y=await Nk(e,F,{apiKey:n,getAuth:l});!Y&&N<g&&(E.push({envelope:F,attempt:N+1}),O(N+1))}catch{N<g&&(E.push({envelope:F,attempt:N+1}),O(N+1))}},W=(F=!1)=>{if(C&&(clearTimeout(C),C=null),!_.length)return;let N=_;_=[];let Y=$(N);if(Y){if(F&&wc&&navigator.sendBeacon&&e){let dt=Ik(Y);if(dt)try{navigator.sendBeacon(e,new k.Blob([dt],{type:\"application/json\"}));return}catch{}}lt(Y)}};wc&&(k.addEventListener(\"pagehide\",()=>W(!0),{passive:!0}),k.addEventListener(\"beforeunload\",()=>W(!0),{passive:!0}),k.addEventListener(\"visibilitychange\",()=>{k.document.visibilityState===\"hidden\"&&W(!0)},{passive:!0}));let G=F=>{if(!F||b<1&&Math.random()>b)return;let N={...F,log_type:u(F)};_.push(N),_.length>y&&(_=_.slice(-y)),_.length>=h?W():L()};return G.flush=()=>W(!1),G.sessionId=x,G},Mk=t=>{try{return t()}catch{return null}},Nk=async(t,e,{apiKey:r,getAuth:n})=>{let o={\"Content-Type\":\"application/json\",\"X-Analyze-Beacon\":\"1\"};if(r&&(o[\"X-Analyze-Key\"]=r),n)try{let s=await n();s&&(o.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(t,{method:\"POST\",headers:o,body:JSON.stringify(e),keepalive:!0,credentials:\"omit\",mode:\"cors\"})).ok}catch{return!1}};var jk={error:\"\\x1B[31m\",warn:\"\\x1B[33m\",info:\"\\x1B[36m\",debug:\"\\x1B[90m\",trace:\"\\x1B[90m\"},Bk=\"\\x1B[0m\",kc=typeof k<\"u\"&&typeof k.document<\"u\",vx=(t={})=>{let e=t.minLevel||null,r=console.error.bind(console),n=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level===\"error\"?r:s.level===\"warn\"?n:o,a=`[analyze:${s.type}]`;if(kc)i(a,s);else{let c=jk[s.level]||\"\";i(`${c}${a}${Bk}`,s)}}},Cx=(t,e={})=>{let r=e.max||t.config.cache?.max||500,n=new Array(r),o=0,s=0,i=a=>{n[o]=a,o=(o+1)%r,s<r&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+r)%r;for(let l=0;l<s;l++)a[l]=n[(c+l)%r];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{o=0,s=0}},i},Ax=(t={})=>{let e=t.url,r=t.batchMs!=null?t.batchMs:5e3,n=t.maxBatch||50;if(!e)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let c=JSON.stringify({events:o});o=[];let l=kc?new k.Blob([c],{type:\"application/json\"}):c;if(kc&&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(()=>{})};kc&&(k.addEventListener(\"pagehide\",i,{passive:!0}),k.addEventListener(\"beforeunload\",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},kx={console:vx,memory:Cx,beacon:Ax,remote:eh},rh=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:[\"console\"],r=[];for(let n of e)if(typeof n==\"function\")r.push(n);else if(typeof n==\"string\"){let o=kx[n];if(!o)continue;r.push(n===\"memory\"?o(t,{}):o({}))}else if(n&&typeof n==\"object\"&&n.type){let o=kx[n.type];if(!o)continue;r.push(n.type===\"memory\"?o(t,n):o(n))}return r};R();var Vk=typeof k<\"u\"&&typeof k.document<\"u\",Uk=new Set([\"password\",\"hidden\"]),Ex=(t,e)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=e?(r=i,t(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(t(...o),o=null)},e-(i-r))))}},nh=\"__analyzeKeyPath\",wn=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[nh])return e[nh];let r=[],n=e,o=0,s=null;for(;n&&o<64;){if(n.getAttribute){let a=n.getAttribute(\"data-key\");a&&(s==null&&(s=a),r.unshift(a))}n=n.parentNode,o++}let i;if(r.length)i={selector:null,key:s,path:r.join(\" > \"),tag:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||\"unknown\").toLowerCase(),c=e.id?`#${e.id}`:\"\",l=e.className&&typeof e.className==\"string\"?\".\"+e.className.trim().split(/\\s+/).slice(0,2).join(\".\"):\"\";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[nh]=i}catch{}return i},zk=(t,e)=>{if(e===\"mask\")return\"***\";if(e!==\"redact\"){if(e===\"hash\"){let r=0,n=String(t||\"\");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return\"***\"}},Wk=t=>!!(!t||t.tagName===\"INPUT\"&&Uk.has(t.type)||Sc.test(t.name||\"\")||Sc.test(t.id||\"\")||t.dataset?.analyze===\"skip\"),oh=t=>{if(!Vk)return;let e=t.config.capture,r=t.config.throttle,n=t.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),n.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(o(k,\"error\",s=>{t.emit(z(\"error\",\"error\",{hook:\"window.onerror\",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),o(k,\"unhandledrejection\",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(z(\"error\",\"error\",{hook:\"unhandledrejection\",message:a?.message||(typeof i==\"string\"?i:\"Unhandled promise rejection\"),error:a}))})),e.pointer){o(k,\"click\",i=>{t.emit(z(\"pointer\",\"info\",{hook:\"click\",target:wn(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:Tx(i)}))},{passive:!0,capture:!0}),o(k,\"dblclick\",i=>{t.emit(z(\"pointer\",\"info\",{hook:\"dblclick\",target:wn(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(k,\"contextmenu\",i=>{t.emit(z(\"pointer\",\"info\",{hook:\"contextmenu\",target:wn(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=Ex(i=>{t.emit(z(\"pointer\",\"trace\",{hook:\"pointermove\",x:i.clientX,y:i.clientY}))},r.pointermove);o(k,\"pointermove\",s,{passive:!0})}if(e.keyboard&&o(k,\"keydown\",s=>{t.emit(z(\"keyboard\",\"info\",{hook:\"keydown\",code:s.code,key:s.key&&s.key.length===1?\"\\xB7\":s.key,modifiers:Tx(s),target:wn(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=Wk(a),f=a.dataset?.analyze===\"track\",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=zk(a.value,t.config.maskStrategy)),t.emit(z(\"forms\",\"info\",{hook:i.type,target:wn(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(k,\"input\",s,{passive:!0,capture:!0}),o(k,\"change\",s,{passive:!0,capture:!0}),o(k,\"submit\",i=>{t.emit(z(\"forms\",\"info\",{hook:\"submit\",target:wn(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=Ex(()=>{t.emit(z(\"scroll\",\"trace\",{hook:\"scroll\",x:k.scrollX,y:k.scrollY}))},r.scroll);o(k,\"scroll\",s,{passive:!0,capture:!0})}if(e.viewport){let s=Qn(()=>{t.emit(z(\"viewport\",\"info\",{hook:\"resize\",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))},r.resize);o(k,\"resize\",s,{passive:!0}),o(k,\"orientationchange\",()=>{t.emit(z(\"viewport\",\"info\",{hook:\"orientationchange\",orientation:typeof screen<\"u\"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(k.document,\"visibilitychange\",()=>{t.emit(z(\"viewport\",\"info\",{hook:\"visibilitychange\",hidden:k.document.hidden}))},{passive:!0}),t.emit(z(\"viewport\",\"info\",{hook:\"initial\",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))}if(e.console)for(let s of[\"log\",\"warn\",\"error\",\"debug\"]){let i=console[s];console[s]=function(...a){try{t.emit(z(\"console\",s===\"error\"?\"error\":s===\"warn\"?\"warn\":\"debug\",{hook:`console.${s}`,args:a.map(Ox)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<\"u\")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(z(\"performance\",\"info\",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.value:null}))}),i=[\"largest-contentful-paint\",\"layout-shift\",\"longtask\",\"paint\",\"first-input\",\"event\"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}n.push(()=>s.disconnect())}catch{}},Tx=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),Hk=t=>{let e={name:t.name||\"Error\",message:typeof t.message==\"string\"?t.message:String(t),stack:typeof t.stack==\"string\"?t.stack:null};return t.cause!==void 0&&(e.cause=Ox(t.cause)),e},Ox=t=>{if(t==null)return t;if(t instanceof Error)return Hk(t);if(typeof t==\"object\")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};R();var Gk=typeof k<\"u\"&&typeof k.document<\"u\";var sh=t=>{if(Gk&&t.config.capture.network){if(typeof k.fetch==\"function\"){let e=k.fetch.bind(k),r=function(n,o){if(o?.headers?.[\"X-Analyze-Beacon\"])return e(n,o);let s=typeof n==\"string\"?n:n&&n.url||\"\",i=(o?.method||typeof n==\"object\"&&n?.method||\"GET\").toUpperCase(),a=typeof performance<\"u\"?performance.now():Date.now();return t.emit(z(\"network\",\"info\",{hook:\"fetch.start\",source:\"window.fetch\",url:s,method:i})),e(n,o).then(c=>{let l=(typeof performance<\"u\"?performance.now():Date.now())-a;return t.emit(z(\"network\",c.ok?\"info\":\"warn\",{hook:\"fetch.success\",source:\"window.fetch\",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<\"u\"?performance.now():Date.now())-a;throw t.emit(z(\"network\",\"error\",{hook:\"fetch.error\",source:\"window.fetch\",url:s,method:i,error:c,durationMs:l})),c})};k.fetch=r,t.__teardown.push(()=>{k.fetch=e})}if(typeof k.XMLHttpRequest==\"function\"){let e=k.XMLHttpRequest,r=e.prototype.open,n=e.prototype.send;e.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},e.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<\"u\"?performance.now():Date.now();t.emit(z(\"network\",\"info\",{hook:\"xhr.start\",source:\"xhr\",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<\"u\"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(z(\"network\",f?\"info\":\"warn\",{hook:\"xhr.success\",source:\"xhr\",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<\"u\"?performance.now():Date.now())-i;t.emit(z(\"network\",\"error\",{hook:\"xhr.error\",source:\"xhr\",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener(\"loadend\",a),this.addEventListener(\"error\",c),n.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=r,e.prototype.send=n})}}};var qk={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},Kk={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},Yk={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},Xk={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},Zk=t=>{let e={...qk,...t};return e.replay&&Object.assign(e,Kk),e.telemetry&&Object.assign(e,Yk),e.remote&&Object.assign(e,Xk),e},Jk=64,Qk=()=>{if(typeof k>\"u\"||!k.location)return null;try{let e=new URLSearchParams(k.location.search).get(\"analyze\");return e||null}catch{return null}},ih=(t={})=>{let e=t===!0?{}:{...t};e.capture=Zk(e.capture||{});let r=Qk();(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=_c(e.level||\"warn\"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy=\"mask\"),Array.isArray(e.sinks)||(e.sinks=[\"console\",\"memory\"]),Array.isArray(e.transformers)||(e.transformers=[\"enrich\",\"summarize\"]);let n={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=th(n),n.__sinks=rh(n))};return n.shouldCapture=s=>n.config.enabled===!1?!1:!!n.config.capture[s],n.emit=s=>{if(s&&n.config.enabled!==!1&&!n.__paused&&Zd(s.level,n.config.level)){if(!n.__ready){if(s.level!==\"error\"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<Jk&&n.__preBuffer.push(s);return}o(),Rx(n,s)}},n.activate=s=>{if(n.context==null&&(n.context=s||null),n.__ready)return;n.__ready=!0;let i=n.__preBuffer;if(n.__preBuffer=[],i.length){o();for(let a of i)Rx(n,a)}try{oh(n)}catch(a){console.error(\"[analyze] browser attach error:\",a)}try{sh(n)}catch(a){console.error(\"[analyze] network attach error:\",a)}for(let a of n.__onActivate||[])try{a(n)}catch(c){console.error(\"[analyze] onActivate error:\",c)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=_c(s)},n.setCapture=(s,i)=>{n.config.capture[s]=!!i},n.query=s=>n.__memory?n.__memory.query(s):[],n.snapshot=()=>n.__memory?n.__memory.snapshot():[],n.emitNetwork=s=>{if(!n.shouldCapture(\"network\"))return;let i=s?.phase,a=i===\"error\"?\"error\":i===\"success\"&&s.ok===!1?\"warn\":\"info\";n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:\"network\",level:a,hook:`fetch.${i||\"unknown\"}`,...s})},n.flush=()=>{if(n.__sinks)for(let s of n.__sinks)typeof s.flush==\"function\"&&s.flush()},n.replay=()=>({initialSnapshot:n.__initialSnapshot,events:n.snapshot()}),n.destroy=()=>{for(let s of n.__teardown)try{s()}catch{}n.__teardown=[],n.__ready=!1,n.__paused=!0},n.__onActivate=[],n.onActivate=s=>{n.__onActivate.push(s)},n},Rx=(t,e)=>{let r=t.__pipeline(e);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof t.config.onEvent==\"function\")try{t.config.onEvent(o)}catch{}for(let s of t.__sinks)try{s(o)}catch(i){console.error(\"[analyze] sink error:\",i)}}};var re=Object.create(null);re.open=\"0\";re.close=\"1\";re.ping=\"2\";re.pong=\"3\";re.message=\"4\";re.upgrade=\"5\";re.noop=\"6\";var ti=Object.create(null);Object.keys(re).forEach(t=>{ti[re[t]]=t});var ei={type:\"error\",data:\"parser error\"};var $x=typeof Blob==\"function\"||typeof Blob<\"u\"&&Object.prototype.toString.call(Blob)===\"[object BlobConstructor]\",Fx=typeof ArrayBuffer==\"function\",Dx=t=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,ri=({type:t,data:e},r,n)=>$x&&e instanceof Blob?r?n(e):Px(e,n):Fx&&(e instanceof ArrayBuffer||Dx(e))?r?n(e):Px(new Blob([e]),n):n(re[t]+(e||\"\")),Px=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(\",\")[1];e(\"b\"+(n||\"\"))},r.readAsDataURL(t)};function Ix(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var ah;function Lx(t,e){if($x&&t.data instanceof Blob)return t.data.arrayBuffer().then(Ix).then(e);if(Fx&&(t.data instanceof ArrayBuffer||Dx(t.data)))return e(Ix(t.data));ri(t,!1,r=>{ah||(ah=new TextEncoder),e(ah.encode(r))})}var Mx=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",ni=typeof Uint8Array>\"u\"?[]:new Uint8Array(256);for(let t=0;t<Mx.length;t++)ni[Mx.charCodeAt(t)]=t;var Nx=t=>{let e=t.length*.75,r=t.length,n,o=0,s,i,a,c;t[t.length-1]===\"=\"&&(e--,t[t.length-2]===\"=\"&&e--);let l=new ArrayBuffer(e),f=new Uint8Array(l);for(n=0;n<r;n+=4)s=ni[t.charCodeAt(n)],i=ni[t.charCodeAt(n+1)],a=ni[t.charCodeAt(n+2)],c=ni[t.charCodeAt(n+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l};var tv=typeof ArrayBuffer==\"function\",oi=(t,e)=>{if(typeof t!=\"string\")return{type:\"message\",data:jx(t,e)};let r=t.charAt(0);return r===\"b\"?{type:\"message\",data:ev(t.substring(1),e)}:ti[r]?t.length>1?{type:ti[r],data:t.substring(1)}:{type:ti[r]}:ei},ev=(t,e)=>{if(tv){let r=Nx(t);return jx(r,e)}else return{base64:!0,data:t}},jx=(t,e)=>e===\"blob\"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var Bx=\"\u001e\",Vx=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{ri(s,!1,a=>{n[i]=a,++o===r&&e(n.join(Bx))})})},Ux=(t,e)=>{let r=t.split(Bx),n=[];for(let o=0;o<r.length;o++){let s=oi(r[o],e);if(n.push(s),s.type===\"error\")break}return n};function zx(){return new TransformStream({transform(t,e){Lx(t,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}t.data&&typeof t.data!=\"string\"&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})}var ch;function vc(t){return t.reduce((e,r)=>e+r.length,0)}function Cc(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function Wx(t,e){ch||(ch=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(vc(r)<1)break;let c=Cc(r,1);s=(c[0]&128)===128,o=c[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(vc(r)<2)break;let c=Cc(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(vc(r)<8)break;let c=Cc(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(ei);break}o=f*Math.pow(2,32)+l.getUint32(4),n=3}else{if(vc(r)<o)break;let c=Cc(r,o);a.enqueue(oi(s?c:ch.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(ei);break}}}})}var lh=4;function J(t){if(t)return rv(t)}function rv(t){for(var e in J.prototype)t[e]=J.prototype[e];return t}J.prototype.on=J.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+t]=this._callbacks[\"$\"+t]||[]).push(e),this};J.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};J.prototype.off=J.prototype.removeListener=J.prototype.removeAllListeners=J.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks[\"$\"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks[\"$\"+t],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}return r.length===0&&delete this._callbacks[\"$\"+t],this};J.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks[\"$\"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this};J.prototype.emitReserved=J.prototype.emit;J.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[\"$\"+t]||[]};J.prototype.hasListeners=function(t){return!!this.listeners(t).length};var Ae=typeof Promise==\"function\"&&typeof Promise.resolve==\"function\"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),St=typeof self<\"u\"?self:typeof window<\"u\"?window:Function(\"return this\")(),Hx=\"arraybuffer\";function Ac(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var nv=St.setTimeout,ov=St.clearTimeout;function Ee(t,e){e.useNativeTimers?(t.setTimeoutFn=nv.bind(St),t.clearTimeoutFn=ov.bind(St)):(t.setTimeoutFn=St.setTimeout.bind(St),t.clearTimeoutFn=St.clearTimeout.bind(St))}var sv=1.33;function Gx(t){return typeof t==\"string\"?iv(t):Math.ceil((t.byteLength||t.size)*sv)}function iv(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}function Ec(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function qx(t){let e=\"\";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+=\"&\"),e+=encodeURIComponent(r)+\"=\"+encodeURIComponent(t[r]));return e}function Kx(t){let e={},r=t.split(\"&\");for(let n=0,o=r.length;n<o;n++){let s=r[n].split(\"=\");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var Tc=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type=\"TransportError\"}},Te=class extends J{constructor(e){super(),this.writable=!1,Ee(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,n){return super.emitReserved(\"error\",new Tc(e,r,n)),this}open(){return this.readyState=\"opening\",this.doOpen(),this}close(){return(this.readyState===\"opening\"||this.readyState===\"open\")&&(this.doClose(),this.onClose()),this}send(e){this.readyState===\"open\"&&this.write(e)}onOpen(){this.readyState=\"open\",this.writable=!0,super.emitReserved(\"open\")}onData(e){let r=oi(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=qx(e);return r.length?\"?\"+r:\"\"}};var si=class extends Te{constructor(){super(...arguments),this._polling=!1}get name(){return\"polling\"}doOpen(){this._poll()}pause(e){this.readyState=\"pausing\";let r=()=>{this.readyState=\"paused\",e()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once(\"pollComplete\",function(){--n||r()})),this.writable||(n++,this.once(\"drain\",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(\"poll\")}onData(e){let r=n=>{if(this.readyState===\"opening\"&&n.type===\"open\"&&this.onOpen(),n.type===\"close\")return this.onClose({description:\"transport closed by the server\"}),!1;this.onPacket(n)};Ux(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,Vx(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]=Ec()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var Yx=!1;try{Yx=typeof XMLHttpRequest<\"u\"&&\"withCredentials\"in new XMLHttpRequest}catch{}var Xx=Yx;function av(){}var fh=class extends si{constructor(e){if(super(e),typeof location<\"u\"){let r=location.protocol===\"https:\",n=location.port;n||(n=r?\"443\":\"80\"),this.xd=typeof location<\"u\"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,r){let n=this.request({method:\"POST\",data:e});n.on(\"success\",r),n.on(\"error\",(o,s)=>{this.onError(\"xhr post error\",o,s)})}doPoll(){let e=this.request();e.on(\"data\",this.onData.bind(this)),e.on(\"error\",(r,n)=>{this.onError(\"xhr poll error\",r,n)}),this.pollXhr=e}},er=class t extends J{constructor(e,r,n){super(),this.createRequest=e,Ee(this,n),this._opts=n,this._method=n.method||\"GET\",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var e;let r=Ac(this._opts,\"agent\",\"pfx\",\"key\",\"passphrase\",\"cert\",\"ca\",\"ciphers\",\"rejectUnauthorized\",\"autoUnref\");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method===\"POST\")try{n.setRequestHeader(\"Content-type\",\"text/plain;charset=UTF-8\")}catch{}try{n.setRequestHeader(\"Accept\",\"*/*\")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(n),\"withCredentials\"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader(\"set-cookie\"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status==\"number\"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<\"u\"&&(this._index=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved(\"error\",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>\"u\"||this._xhr===null)){if(this._xhr.onreadystatechange=av,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()}};er.requestsCount=0;er.requests={};if(typeof document<\"u\"){if(typeof attachEvent==\"function\")attachEvent(\"onunload\",Zx);else if(typeof addEventListener==\"function\"){let t=\"onpagehide\"in St?\"pagehide\":\"unload\";addEventListener(t,Zx,!1)}}function Zx(){for(let t in er.requests)er.requests.hasOwnProperty(t)&&er.requests[t].abort()}var cv=(function(){let t=Jx({xdomain:!1});return t&&t.responseType!==null})(),rr=class extends fh{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=cv&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new er(Jx,this.uri(),e)}};function Jx(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<\"u\"&&(!e||Xx))return new XMLHttpRequest}catch{}if(!e)try{return new St[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\")}catch{}}var Qx=typeof navigator<\"u\"&&typeof navigator.product==\"string\"&&navigator.product.toLowerCase()===\"reactnative\",ph=class extends Te{get name(){return\"websocket\"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=Qx?{}:Ac(this.opts,\"agent\",\"perMessageDeflate\",\"pfx\",\"key\",\"passphrase\",\"cert\",\"ca\",\"ciphers\",\"rejectUnauthorized\",\"localAddress\",\"protocolVersion\",\"origin\",\"maxPayload\",\"family\",\"checkServerIdentity\");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,r,n)}catch(o){return this.emitReserved(\"error\",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:\"websocket connection closed\",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(\"websocket error\",e)}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;ri(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&Ae(()=>{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]=Ec()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},uh=St.WebSocket||St.MozWebSocket,nr=class extends ph{createSocket(e,r,n){return Qx?new uh(e,r,n):r?new uh(e,r):new uh(e)}doWrite(e,r){this.ws.send(r)}};var kn=class extends Te{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=Wx(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=zx();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:c})=>{a||(this.onPacket(c),s())}).catch(a=>{})};s();let i={type:\"open\"};this.query.sid&&(i.data=`{\"sid\":\"${this.query.sid}\"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;this._writer.write(n).then(()=>{o&&Ae(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var dh={websocket:nr,webtransport:kn,polling:rr};var lv=/^(?:(?![^:@\\/?#]+:[^:@\\/]*@)(http|https|ws|wss):\\/\\/)?((?:(([^:@\\/?#]*)(?::([^:@\\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/,fv=[\"source\",\"protocol\",\"authority\",\"userInfo\",\"user\",\"password\",\"host\",\"port\",\"relative\",\"path\",\"directory\",\"file\",\"query\",\"anchor\"];function vn(t){if(t.length>8e3)throw\"URI too long\";let e=t,r=t.indexOf(\"[\"),n=t.indexOf(\"]\");r!=-1&&n!=-1&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,\";\")+t.substring(n,t.length));let o=lv.exec(t||\"\"),s={},i=14;for(;i--;)s[fv[i]]=o[i]||\"\";return r!=-1&&n!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,\":\"),s.authority=s.authority.replace(\"[\",\"\").replace(\"]\",\"\").replace(/;/g,\":\"),s.ipv6uri=!0),s.pathNames=uv(s,s.path),s.queryKey=pv(s,s.query),s}function uv(t,e){let r=/\\/{2,9}/g,n=e.replace(r,\"/\").split(\"/\");return(e.slice(0,1)==\"/\"||e.length===0)&&n.splice(0,1),e.slice(-1)==\"/\"&&n.splice(n.length-1,1),n}function pv(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var hh=typeof addEventListener==\"function\"&&typeof removeEventListener==\"function\",Oc=[];hh&&addEventListener(\"offline\",()=>{Oc.forEach(t=>t())},!1);var Cr=class t extends J{constructor(e,r){if(super(),this.binaryType=Hx,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==\"object\"&&(r=e,e=null),e){let n=vn(e);r.hostname=n.host,r.secure=n.protocol===\"https\"||n.protocol===\"wss\",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=vn(r.host).host);Ee(this,r),this.secure=r.secure!=null?r.secure:typeof location<\"u\"&&location.protocol===\"https:\",r.hostname&&!r.port&&(r.port=this.secure?\"443\":\"80\"),this.hostname=r.hostname||(typeof location<\"u\"?location.hostname:\"localhost\"),this.port=r.port||(typeof location<\"u\"&&location.port?location.port:this.secure?\"443\":\"80\"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:\"/engine.io\",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:\"t\",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\\/$/,\"\")+(this.opts.addTrailingSlash?\"/\":\"\"),typeof this.opts.query==\"string\"&&(this.opts.query=Kx(this.opts.query)),hh&&(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\"})},Oc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=lh,r.transport=e,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(\"error\",\"No transports available\")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf(\"websocket\")!==-1?\"websocket\":this.transports[0];this.readyState=\"opening\";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(\"drain\",this._onDrain.bind(this)).on(\"packet\",this._onPacket.bind(this)).on(\"error\",this._onError.bind(this)).on(\"close\",r=>this._onClose(\"transport close\",r))}onOpen(){this.readyState=\"open\",t.priorWebsocketSuccess=this.transport.name===\"websocket\",this.emitReserved(\"open\"),this.flush()}_onPacket(e){if(this.readyState===\"opening\"||this.readyState===\"open\"||this.readyState===\"closing\")switch(this.emitReserved(\"packet\",e),this.emitReserved(\"heartbeat\"),e.type){case\"open\":this.onHandshake(JSON.parse(e.data));break;case\"ping\":this._sendPacket(\"pong\"),this.emitReserved(\"ping\"),this.emitReserved(\"pong\"),this._resetPingTimeout();break;case\"error\":let r=new Error(\"server error\");r.code=e.data,this._onError(r);break;case\"message\":this.emitReserved(\"data\",e.data),this.emitReserved(\"message\",e.data);break}}onHandshake(e){this.emitReserved(\"handshake\",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==\"closed\"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(\"ping timeout\")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved(\"drain\"):this.flush()}flush(){if(this.readyState!==\"closed\"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(\"flush\")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===\"polling\"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=Gx(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Ae(()=>{this._onClose(\"ping timeout\")},this.setTimeoutFn)),e}write(e,r,n){return this._sendPacket(\"message\",e,r,n),this}send(e,r,n){return this._sendPacket(\"message\",e,r,n),this}_sendPacket(e,r,n,o){if(typeof r==\"function\"&&(o=r,r=void 0),typeof n==\"function\"&&(o=n,n=null),this.readyState===\"closing\"||this.readyState===\"closed\")return;n=n||{},n.compress=n.compress!==!1;let s={type:e,data:r,options:n};this.emitReserved(\"packetCreate\",s),this.writeBuffer.push(s),o&&this.once(\"flush\",o),this.flush()}close(){let e=()=>{this._onClose(\"forced close\"),this.transport.close()},r=()=>{this.off(\"upgrade\",r),this.off(\"upgradeError\",r),e()},n=()=>{this.once(\"upgrade\",r),this.once(\"upgradeError\",r)};return(this.readyState===\"opening\"||this.readyState===\"open\")&&(this.readyState=\"closing\",this.writeBuffer.length?this.once(\"drain\",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===\"opening\")return this.transports.shift(),this._open();this.emitReserved(\"error\",e),this._onClose(\"transport error\",e)}_onClose(e,r){if(this.readyState===\"opening\"||this.readyState===\"open\"||this.readyState===\"closing\"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners(\"close\"),this.transport.close(),this.transport.removeAllListeners(),hh&&(this._beforeunloadEventListener&&removeEventListener(\"beforeunload\",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Oc.indexOf(this._offlineEventListener);n!==-1&&Oc.splice(n,1)}this.readyState=\"closed\",this.id=null,this.emitReserved(\"close\",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Cr.protocol=lh;var Rc=class extends Cr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===\"open\"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let r=this.createTransport(e),n=!1;Cr.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:\"ping\",data:\"probe\"}]),r.once(\"packet\",u=>{if(!n)if(u.type===\"pong\"&&u.data===\"probe\"){if(this.upgrading=!0,this.emitReserved(\"upgrading\",r),!r)return;Cr.priorWebsocketSuccess=r.name===\"websocket\",this.transport.pause(()=>{n||this.readyState!==\"closed\"&&(f(),this.setTransport(r),r.send([{type:\"upgrade\"}]),this.emitReserved(\"upgrade\",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error(\"probe error\");p.transport=r.name,this.emitReserved(\"upgradeError\",p)}}))};function s(){n||(n=!0,f(),r.close(),r=null)}let i=u=>{let p=new Error(\"probe error: \"+u);p.transport=r.name,s(),this.emitReserved(\"upgradeError\",p)};function a(){i(\"transport closed\")}function c(){i(\"socket closed\")}function l(u){r&&u.name!==r.name&&s()}let f=()=>{r.removeListener(\"open\",o),r.removeListener(\"error\",i),r.removeListener(\"close\",a),this.off(\"close\",c),this.off(\"upgrading\",l)};r.once(\"open\",o),r.once(\"error\",i),r.once(\"close\",a),this.once(\"close\",c),this.once(\"upgrading\",l),this._upgrades.indexOf(\"webtransport\")!==-1&&e!==\"webtransport\"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&r.push(e[n]);return r}},Cn=class extends Rc{constructor(e,r={}){let n=typeof e==\"object\",o=n?{...e}:{...r};(!o.transports||o.transports&&typeof o.transports[0]==\"string\")&&(o.transports=(o.transports||[\"polling\",\"websocket\",\"webtransport\"]).map(s=>dh[s]).filter(s=>!!s)),super(n?o:e,o)}};var VF=Cn.protocol;function t_(t,e=\"\",r){let n=t;r=r||typeof location<\"u\"&&location,t==null&&(t=r.protocol+\"//\"+r.host),typeof t==\"string\"&&(t.charAt(0)===\"/\"&&(t.charAt(1)===\"/\"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\\/\\//.test(t)||(typeof r<\"u\"?t=r.protocol+\"//\"+t:t=\"https://\"+t),n=vn(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port=\"80\":/^(http|ws)s$/.test(n.protocol)&&(n.port=\"443\")),n.path=n.path||\"/\";let s=n.host.indexOf(\":\")!==-1?\"[\"+n.host+\"]\":n.host;return n.id=n.protocol+\"://\"+s+\":\"+n.port+e,n.href=n.protocol+\"://\"+s+(r&&r.port===n.port?\"\":\":\"+n.port),n}var Sh={};I(Sh,{Decoder:()=>xh,Encoder:()=>bh,PacketType:()=>M,isPacketValid:()=>$v,protocol:()=>u_});var hv=typeof ArrayBuffer==\"function\",gv=t=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,e_=Object.prototype.toString,mv=typeof Blob==\"function\"||typeof Blob<\"u\"&&e_.call(Blob)===\"[object BlobConstructor]\",yv=typeof File==\"function\"||typeof File<\"u\"&&e_.call(File)===\"[object FileConstructor]\";function ai(t){return hv&&(t instanceof ArrayBuffer||gv(t))||mv&&t instanceof Blob||yv&&t instanceof File}function ii(t,e){if(!t||typeof t!=\"object\")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(ii(t[r]))return!0;return!1}if(ai(t))return!0;if(t.toJSON&&typeof t.toJSON==\"function\"&&arguments.length===1)return ii(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&ii(t[r]))return!0;return!1}function r_(t){let e=[],r=t.data,n=t;return n.data=gh(r,e),n.attachments=e.length,{packet:n,buffers:e}}function gh(t,e){if(!t)return t;if(ai(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=gh(t[n],e);return r}else if(typeof t==\"object\"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=gh(t[n],e));return r}return t}function n_(t,e){return t.data=mh(t.data,e),delete t.attachments,t}function mh(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]=mh(t[r],e);else if(typeof t==\"object\")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=mh(t[r],e));return t}var l_=N_(c_(),1),yh=(0,l_.default)(\"socket.io-parser\"),f_=[\"connect\",\"connect_error\",\"disconnect\",\"disconnecting\",\"newListener\",\"removeListener\"],u_=5,M;(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\"})(M||(M={}));var bh=class{constructor(e){this.replacer=e}encode(e){return yh(\"encoding packet %j\",e),(e.type===M.EVENT||e.type===M.ACK)&&ii(e)?this.encodeAsBinary({type:e.type===M.EVENT?M.BINARY_EVENT:M.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=\"\"+e.type;return(e.type===M.BINARY_EVENT||e.type===M.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)),yh(\"encoded %j as %s\",e,r),r}encodeAsBinary(e){let r=r_(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},xh=class t extends J{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==\"function\"?{reviver:e}:e)}add(e){let r;if(typeof e==\"string\"){if(this.reconstructor)throw new Error(\"got plaintext data when reconstructing a packet\");r=this.decodeString(e);let n=r.type===M.BINARY_EVENT;n||r.type===M.BINARY_ACK?(r.type=n?M.EVENT:M.ACK,this.reconstructor=new _h(r),r.attachments===0&&super.emitReserved(\"decoded\",r)):super.emitReserved(\"decoded\",r)}else if(ai(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),r&&(this.reconstructor=null,super.emitReserved(\"decoded\",r));else throw new Error(\"got binary data when not reconstructing a packet\");else throw new Error(\"Unknown type: \"+e)}decodeString(e){let r=0,n={type:Number(e.charAt(0))};if(M[n.type]===void 0)throw new Error(\"unknown packet type \"+n.type);if(n.type===M.BINARY_EVENT||n.type===M.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(!p_(a)||a<0)throw new Error(\"Illegal attachments\");if(a>this.opts.maxAttachments)throw new Error(\"too many attachments\");n.attachments=a}if(e.charAt(r+1)===\"/\"){let s=r+1;for(;++r&&!(e.charAt(r)===\",\"||r===e.length););n.nsp=e.substring(s,r)}else n.nsp=\"/\";let o=e.charAt(r+1);if(o!==\"\"&&Number(o)==o){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}n.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(n.type,s))n.data=s;else throw new Error(\"invalid payload\")}return yh(\"decoded %s as %j\",e,n),n}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case M.CONNECT:return $c(r);case M.DISCONNECT:return r===void 0;case M.CONNECT_ERROR:return typeof r==\"string\"||$c(r);case M.EVENT:case M.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]==\"number\"||typeof r[0]==\"string\"&&f_.indexOf(r[0])===-1);case M.ACK:case M.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},_h=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=n_(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Rv(t){return typeof t==\"string\"}var p_=Number.isInteger||function(t){return typeof t==\"number\"&&isFinite(t)&&Math.floor(t)===t};function Pv(t){return t===void 0||p_(t)}function $c(t){return Object.prototype.toString.call(t)===\"[object Object]\"}function Iv(t,e){switch(t){case M.CONNECT:return e===void 0||$c(e);case M.DISCONNECT:return e===void 0;case M.EVENT:return Array.isArray(e)&&(typeof e[0]==\"number\"||typeof e[0]==\"string\"&&f_.indexOf(e[0])===-1);case M.ACK:return Array.isArray(e);case M.CONNECT_ERROR:return typeof e==\"string\"||$c(e);default:return!1}}function $v(t){return Rv(t.nsp)&&Pv(t.id)&&Iv(t.type,t.data)}function Lt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var Fv=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),On=class extends J{constructor(e,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Lt(e,\"open\",this.onopen.bind(this)),Lt(e,\"packet\",this.onpacket.bind(this)),Lt(e,\"error\",this.onerror.bind(this)),Lt(e,\"close\",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState===\"open\"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift(\"message\"),this.emit.apply(this,e),this}emit(e,...r){var n,o,s;if(Fv.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:M.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]==\"function\"){let f=this.ids++,u=r.pop();this._registerAckCallback(f,u),i.id=f}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);r.call(this,new Error(\"operation has timed out\"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]==\"function\"&&(r=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((o,...s)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...s)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==\"function\"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:M.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(\"connect_error\",e)}onclose(e,r){this.connected=!1,delete this.id,this.emitReserved(\"disconnect\",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error(\"socket has been disconnected\"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case M.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 M.EVENT:case M.BINARY_EVENT:this.onevent(e);break;case M.ACK:case M.BINARY_ACK:this.onack(e);break;case M.DISCONNECT:this.ondisconnect();break;case M.CONNECT_ERROR:this.destroy();let n=new Error(e.data.message);n.data=e.data.data,this.emitReserved(\"connect_error\",n);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==\"string\"&&(this._lastOffset=e[e.length-1])}ack(e){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:M.ACK,id:e,data:o}))}}onack(e){let r=this.acks[e.id];typeof r==\"function\"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(\"connect\")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(\"io server disconnect\")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:M.DISCONNECT}),this.destroy(),this.connected&&this.onclose(\"io client disconnect\"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,e.data)}}};function Er(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Er.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};Er.prototype.reset=function(){this.attempts=0};Er.prototype.setMin=function(t){this.ms=t};Er.prototype.setMax=function(t){this.max=t};Er.prototype.setJitter=function(t){this.jitter=t};var Rn=class extends J{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&typeof e==\"object\"&&(r=e,e=void 0),r=r||{},r.path=r.path||\"/socket.io\",this.opts=r,Ee(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new Er({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState=\"closed\",this.uri=e;let o=r.parser||Sh;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(\"open\"))return this;this.engine=new Cn(this.uri,this.opts);let r=this.engine,n=this;this._readyState=\"opening\",this.skipReconnect=!1;let o=Lt(r,\"open\",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState=\"closed\",this.emitReserved(\"error\",a),e?e(a):this.maybeReconnectOnOpen()},i=Lt(r,\"error\",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error(\"timeout\")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=\"open\",this.emitReserved(\"open\");let e=this.engine;this.subs.push(Lt(e,\"ping\",this.onping.bind(this)),Lt(e,\"data\",this.ondata.bind(this)),Lt(e,\"error\",this.onerror.bind(this)),Lt(e,\"close\",this.onclose.bind(this)),Lt(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){Ae(()=>{this.emitReserved(\"packet\",e)},this.setTimeoutFn)}onerror(e){this.emitReserved(\"error\",e)}socket(e,r){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new On(this,e,r),this.nsps[e]=n),n}_destroy(e){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let n=0;n<r.length;n++)this.engine.write(r[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(\"forced close\")}disconnect(){return this._close()}onclose(e,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState=\"closed\",this.emitReserved(\"close\",e,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(\"reconnect_failed\"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(\"reconnect_attempt\",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved(\"reconnect_error\",o)):e.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(\"reconnect\",e)}};var ci={};function Pn(t,e){typeof t==\"object\"&&(e=t,t=void 0),e=e||{};let r=t_(t,e.path||\"/socket.io\"),n=r.source,o=r.id,s=r.path,i=ci[o]&&s in ci[o].nsps,a=e.forceNew||e[\"force new connection\"]||e.multiplex===!1||i,c;return a?c=new Rn(n,e):(ci[o]||(ci[o]=new Rn(n,e)),c=ci[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Pn,{Manager:Rn,Socket:On,io:Pn,connect:Pn});R();var Dv=new Set([\"__proto__\",\"constructor\",\"prototype\"]),d_=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(Dv.has(t[e]))return!1;return!0},Lv=(t,e)=>{!t||!d_(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},Mv=(t,e,r,n=!1)=>{!t||!d_(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},t)},h_=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[n,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case\"delete\":Lv(t,o);break;case\"update\":case\"set\":Mv(t,o,s,!0);break;default:break}return r};R();var g_=(t,e,r)=>{let n=!1;return(o={})=>{let{data:s}=o,{schema:i}=o;s&&(s=t.call(\"deepDestringifyFunctions\",s,Array.isArray(s)?[]:{}),Object.entries(s).forEach(([a,c])=>{r[a]&&typeof r[a]==\"object\"?a===\"designSystem\"?n&&Ce(c):dr(r[a],c):r[a]=c}),n=!0,i&&(r.schema=i))}},m_=(t,e,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=t.call(\"deepDestringifyFunctions\",o,Array.isArray(o)?[]:{});let s=h_(r,o);if(s.has(\"state\")&&e.update(r.state),[\"pages\",\"components\",\"snippets\",\"functions\",\"assets\"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call(\"router\",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has(\"designSystem\")&&Ce(r.designSystem)};var Nv={success:\"green\",error:\"red\",warning:\"yellow\"},y_=(t,e,r)=>{if(t.symbols){if(!r.connected){r.notifications.connected={title:\"Connected\",message:\"to the Symbols live server\"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected.update({animation:\"fadeOutDown\"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:\"Disconnected\",type:\"error\"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:\"fadeOutDown\"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},b_={state:{notifications:[]},Notifications:{position:\"fixed\",left:\"A2\",bottom:\"Z2\",zIndex:\"999\",childExtends:\"Notification\",childProps:({state:t})=>({animationDuration:\"C\",background:Nv[t.type||\"success\"],icon:null,Flex:{Title:{text:\"{{ title }}\"},P:{text:\"{{ title }}\"}},onRender:(e,r,n)=>{r.update({animation:\"fadeInUp\"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.update({animation:\"fadeOutDown\"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:\"state\",children:({state:t})=>t.notifications}};var jv=!1,Bv=()=>jv?\"http://localhost:8080\":\"https://api.symbols.app\",Vv=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}},Uv=async t=>{try{let e=t||Bv(),r=await k.fetch(`${e}/service-token`,{method:\"GET\"}),n;try{let o=await r.clone().json();if(o&&typeof o.token==\"string\")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||\"\").replace(/\\s+/gu,\"\")||void 0}catch(e){console.error(\"[sync] Failed to fetch service-token\",e)}},S_=(t,e,r,n)=>{t.on(\"snapshot\",g_(e,r,n)),t.on(\"ops\",m_(e,r,n)),t.on(\"clients\",o=>{n.editor?.verbose&&y_(o,e,r)}),t.on(\"disconnect\",o=>{n.editor?.verbose&&console.info(\"[sync] disconnected\",o)})},zv=async(t,e,r,n)=>{let o=await Uv(n);if(!o)return console.warn(\"[sync] no service token \\u2014 collab disabled\"),null;let s=r.key;if(!s)return console.warn(\"[sync] ctx.key missing \\u2014 collab cannot authenticate\"),null;let i=r.editor?.projectId||null,a=Pn(n,{path:\"/collab-socket\",transports:[\"websocket\"],auth:{token:o,projectId:i,projectKey:s,branch:\"main\",live:!0,clientType:\"platform\"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on(\"connect\",()=>{r.editor?.verbose&&console.info(\"[sync] connected (collab)\")}),S_(a,t,e,r),a},Wv=(t,e,r)=>{let n=Pn({transports:[\"websocket\",\"polling\"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on(\"connect\",()=>{r.editor?.verbose!==!1&&console.info(\"[sync] connected (runner)\")}),S_(n,t,e,r),n.on(\"reload\",()=>{typeof k<\"u\"&&k.location&&k.location.reload()}),n},Hv=async(t,e,r)=>{let{mode:n,baseUrl:o}=Vv(r);return n?n===\"collab\"?zv(t,e,r,o):n===\"runner\"?Wv(t,e,r):null:null},Gv={onInit:Hv};var w_=t=>typeof t>\"u\",x_=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),__=t=>t?.editor?.runtime===\"runner\",k_=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},v_={name:\"sync\",beforeCreate(t,e){let r=e&&e.editor;(r&&!w_(r.liveSync)?r.liveSync:x_(e)||__(e))&&(x_(e)&&!__(e)&&!e?.key||k_(t,Gv))}},C_={name:\"notifications\",beforeCreate(t,e){if(!e)return;let r=w_(e.notifications)?null:e.notifications,n=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&n)&&k_(t,b_)}};R();function A_(t){return S(t)?t:T(t)?t.find(e=>S(e)):\"\"}function kh(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&A_(t.extends),n=t.parent&&t.parent.childExtends&&A_(t.parent.childExtends);return(e||r||n||\"\").split(\"_\")[0].split(\".\")[0].split(\"+\")[0]}function Fc(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:n}=t.context,o=kh(t);return n&&n.onInitInspect&&!n.onInitInspect(o,t,t.state)?Fc(t.parent):o&&(e[o]||r[o])?t:Fc(t.parent)}var qv=(t,e,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{t.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},wh={\".preventSelect\":{userSelect:\"none\"},\"!preventSelect\":{userSelect:\"auto\"},onInspect:qv,onMousemove:(t,e,r)=>{let n=t.target.ref,o=Fc(n),s=e.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=kh(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:p}=o.node.getBoundingClientRect(),d={x:l,y:f,width:u,height:p};if(!s.area)return a(d);s.area.x!==d.x&&a(d)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,r)=>{if(!r.debugging)return;let n=t.target.ref,o=Fc(n);if(!o)return;let s=kh(o);if(!s)return;let i=n.context.editor;if(i&&i.onInspect)return i.onInspect(s,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return n.context.socket?.emit&&n.context.socket.emit(\"route\",a),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:\"all, defaultBezier, X\",position:\"fixed\",hide:(t,e)=>!(e.area&&e.parent.debugging),style:{boxShadow:\"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A\",zIndex:\"9999999\",borderRadius:\"10px\",pointerEvents:\"none\"},Span:{position:\"absolute\",margin:\"A2 0\",fontSize:\"Z\",color:\"text\",zIndex:\"99999999\",transition:\"all, defaultBezier, X\",textDecoration:\"underline\",fontWeight:\"500\",top:\"100%\",style:{boxShadow:\"0 25px 10px 35px black\",textShadow:\"0 0 10px black\"},text:\"{{ focusKey }}\"},onInit:({context:t})=>{let{components:e}=t;if(w(e)){let{Content:r,...n}=e;for(let o in n)mn[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(t,e,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,s;if(!o)s=\"display: none !important\";else if(n){let{x:i,y:a,width:c,height:l}=n;s=`\n display: block !important;\n top: ${a-6}px;\n left: ${i-6}px;\n width: ${c+12}px;\n height: ${l+12}px;\n `}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},E_={name:\"inspect\",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(wh):t.extends?t.extends=[t.extends,wh]:t.extends=[wh]}};var Kv=async(t,e={})=>{let r=e.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=e.key=e.key||n||(S(t)?t:\"smblsapp\");if(e.define=e.define||bn,e.cssPropsRegistry=pt,e.window=Jb(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(d=>typeof d==\"string\")){let{resolveSharedLibraries:d}=await Promise.resolve().then(()=>(R(),ua));e.sharedLibraries=await d(e.sharedLibraries)}lx(e)}let[s,i]=ix(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&bc.prepareContext(e);let a=ax(t,e);e.state=a,Ro(a),e.pages=cx(t,e),e.components=Qb(e),e.utils=tx(e),Me[e.packageManager]&&(e.dependencies=await rx(e)),e.methods=ex(e),e.routerOptions=Mb(t,e),e.defaultExtends=[Xa],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&w(e.globalScope)&&(e.globalScope=Kn(e.globalScope));let c=(p,d)=>{let h=d?p[d]:p;if(!w(h))return;let g=oe(h);try{Object.assign(h,g)}catch(m){if(d)p[d]=g;else throw m}};c(t),c(e,\"components\"),c(e,\"pages\"),c(e,\"functions\"),c(e,\"methods\"),c(e,\"snippets\"),c(e,\"app\");let l=p=>p&&typeof p.select==\"function\";e.fetch?.__resolved&&!l(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!l(e.db.__resolved)&&delete e.db.__resolved;let f=p=>e.plugins.some(d=>d.name===p);if(e.polyglot&&!f(\"polyglot\")){e.plugins.push(gc);for(let p in Gs)p in e.functions||(e.functions[p]=Gs[p])}if(f(\"helmet\")||e.plugins.push(zb),e.fetch&&!f(\"fetch\")&&e.plugins.push(jf),e.designSystem?.typography?.useCapsize!==!1&&!f(\"capsize\")&&(e.plugins.push(dx),e.cssPropsRegistry.useCapsize=px),e.shorthand&&!f(\"shorthand\")&&e.plugins.push(bc),e.analyze&&!f(\"analyze\")){let p=e.analyze===!0?{}:e.analyze;e.analyze=ih(p),e.plugins.push(Qs)}return e.sync!==!1&&!f(\"sync\")&&e.plugins.push(v_),e.inspect&&!f(\"inspect\")&&e.plugins.push(E_),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!f(\"notifications\")&&e.plugins.push(C_),e},vh=async(t,e)=>{w(e)||(e={}),be(t)?(t={},e.parent=t):S(t)?(t={},e.key=t):w(t)||(t={});let r=e.window||(typeof window<\"u\"?window:null),n=r?.__BRENDER__,o=null;if(n){let c=e.document||(typeof document<\"u\"?document:null);c&&(o=Array.from(c.head.querySelectorAll(\"style\")))}if(await Kv(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&&w(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=Kb(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await nx({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate==\"function\")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin \"${c.name||\"?\"}\" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return t;let i=e.parent||s.body;if(n)return Yv(Ht,t,i,e,r,o);let a=Ht(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<\"u\"&&!e.document&&(window.__smblsApp=a),a},Yv=async(t,e,r,n,o,s)=>{let i=r.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of r.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f===\"script\"||f===\"link\"||f===\"style\"||f===\"svg\"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll(\"[data-br]\").forEach(l=>l.removeAttribute(\"data-br\"));let c=t(e,r,n.key,{verbose:n.verbose,context:n,...n.domqlOptions});return Xv(o),c},Xv=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var Ch=(t,e)=>H(t,w(e)?e:{}),Zv=t=>{if(typeof document>\"u\")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!=\"function\")return;let r=t.globalTheme||\"auto\";try{if(typeof window<\"u\"&&window.location){let s=new URLSearchParams(window.location.search).get(\"globalTheme\");s&&(r=s)}}catch{}let n=t.themeStorageKey;if(r===\"auto\"&&n&&typeof localStorage<\"u\")try{let s=localStorage.getItem(n);s&&(r=s)}catch{}let o=r===\"auto\"?(()=>{try{return typeof window<\"u\"&&window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}catch{return\"light\"}})():r;e.setAttribute(\"data-theme\",o),t.globalTheme=r,t.themeRoot=e},Jv=()=>{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}},T_=t=>{let e=Jv();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e===\"runner\"&&typeof t.editor.livesync>\"u\"&&(t.editor.livesync=!0))},Ah=(t,e=Qe,r)=>{let n={...Qe,...Ch(e,r)};return T_(n),Zv(n),vh(t,n).then(s=>{if(Vd(s,n),s.destroy=()=>zs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Us(s,l.customRouterElement);f&&(c=f)}return c.call(\"router\",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&s.onCreate(s,s.state,s.context,n),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error(\"[analyze] activate error:\",i)}return s}).catch(s=>{throw console.error(\"[smbls] create error:\",s),s})},Qv=(t,e=Qe,r)=>{let n=Ah(t,e,r),o={...Qe,...Ch(e,r)},s=o.key;return Vb(n,s,{utils:Vs,...o}),n},tC=async(t,e=Qe,r)=>{let n={...Qe,...Ch(e,r)};T_(n);let o=e.key;await Bb(o,n);let s=await vh(t,n);return Vd(s,n),s.destroy=()=>zs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Us(s,l.customRouterElement);f&&(c=f)}return c.call(\"router\",i,c,a.state||{},{pushState:!0,...a})},n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},eC=(t={},e=Qe,r)=>Ah({deps:{isUndefined:ht},...t},H({domqlOptions:{onlyResolveExtends:!0}},e),r);R();var O_={\"@symbo.ls/signal\":Kc,\"@symbo.ls/scratch\":fp,\"@symbo.ls/element\":Yp,\"@symbo.ls/css\":gp,\"@symbo.ls/utils\":ua,\"@symbo.ls/state\":Lp,\"@symbo.ls/router\":js},R_=(t,e)=>{let r=t||(typeof globalThis<\"u\"?globalThis:{}),n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o in O_)n[o]||(n[o]=O_[o]);if(e)for(let o in e)n[o]||(n[o]=e[o]);return n};rc(Ps);R_(void 0,{smbls:Eh});return j_(Eh);})();\n";